.pocketpe-support {
  min-height: 100vh;
  min-height: 100svh;
}

.pocketpe-support [hidden] {
  display: none !important;
}

.support-shell {
  box-sizing: border-box;
  width: min(1100px, calc(100% - 32px));
  min-height: 52vh;
  margin: clamp(24px, 6vw, 72px) auto;
  color: var(--launcher-text, #25243e);
}

.support-panel {
  box-sizing: border-box;
  padding: clamp(22px, 5vw, 52px);
  border: 1px solid #dfe4f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px #080d2080;
  color: #25243e;
}

.support-signin {
  width: min(100%, 760px);
  margin: 0 auto;
}

.support-panel h1,
.support-panel h2,
.support-panel h3,
.support-panel p {
  overflow-wrap: anywhere;
}

.support-panel h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.1;
  text-wrap: balance;
}

.support-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.support-panel h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.support-eyebrow {
  margin: 0 0 10px;
  color: #365a82;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
}

.support-intro {
  max-width: 42em;
  margin: 18px 0;
  color: #424862;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
}

.support-notice {
  margin: 18px 0;
  padding: 13px 16px;
  border-left: 4px solid #ffd13f;
  border-radius: 8px;
  background: #fff8de;
  color: #39344a;
  font-weight: 700;
  line-height: 1.5;
}

.support-google {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: flex-start;
  margin: 22px 0 8px;
}

.support-google > div {
  max-width: 100%;
}

.support-status {
  min-height: 1.5em;
  margin: 8px 0;
  color: #424862;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.support-status:empty {
  min-height: 0;
}

.support-status[data-tone="error"] {
  color: #9d1e2d;
  font-weight: 650;
}

.support-secondary,
.support-mode,
.support-primary {
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid #9ca8c0;
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: #25243e;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.support-primary {
  min-height: 50px;
  border-color: #f0c02d;
  background: #ffd13f;
  color: #25243e;
}

.support-secondary:hover,
.support-mode:hover {
  background: #f2f4fb;
}

.support-primary:hover {
  background: #ffdc66;
}

.support-secondary:disabled,
.support-primary:disabled,
.support-mode:disabled {
  cursor: wait;
  opacity: .65;
}

.pocketpe-support :focus-visible {
  outline: 3px solid #2867d6;
  outline-offset: 3px;
}

.support-account-bar,
.support-section-heading,
.support-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.support-account-bar {
  align-items: center;
}

.support-account {
  margin: 8px 0 0;
  color: #565b77;
  overflow-wrap: anywhere;
}

.support-inbox-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.support-mode[aria-pressed="true"] {
  border-color: #2867d6;
  background: #eaf1ff;
  color: #174caa;
}

.support-section {
  margin: 30px 0 0;
  padding-top: 26px;
  border-top: 1px solid #e0e4ee;
}

.support-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.support-form label,
.support-filters label,
.support-admin-status label {
  color: #303651;
  font-size: 15px;
  font-weight: 750;
}

.support-form label span {
  color: #626983;
  font-size: 13px;
  font-weight: 500;
}

.support-form input,
.support-form select,
.support-form textarea,
.support-filters select,
.support-admin-status select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0 0 10px;
  border: 1px solid #8994ad;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: #25243e;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}

.support-form textarea {
  min-height: 120px;
  resize: vertical;
}

.support-form button {
  justify-self: start;
}

.support-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  margin: 18px 0;
}

.support-filters select {
  margin: 0;
}

.support-ticket-list,
.support-messages,
.support-events {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.support-ticket-item {
  min-width: 0;
  border: 1px solid #dfe4f1;
  border-radius: 12px;
  background: #fff;
}

.support-ticket-open {
  display: grid;
  width: 100%;
  min-height: 68px;
  gap: 5px;
  border: 0;
  border-radius: inherit;
  padding: 13px 15px;
  background: transparent;
  color: #25243e;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.support-ticket-open:hover {
  background: #f7f8fc;
}

.support-ticket-title {
  font-size: 17px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.support-ticket-meta,
.support-meta {
  color: #565b77;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.support-empty {
  color: #565b77;
  line-height: 1.5;
}

.support-detail {
  margin-top: 28px;
}

.support-detail-heading {
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e4ee;
}

.support-detail-heading h2 {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.support-status-badge {
  flex: 0 0 auto;
  max-width: 100%;
  margin: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: #eef2fb;
  color: #303651;
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.support-requester {
  margin: 0 0 20px;
  color: #424862;
  overflow-wrap: anywhere;
}

.support-admin-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 14px;
  border-radius: 12px;
  background: #f2f4fb;
}

.support-admin-status select {
  width: auto;
  min-width: min(100%, 220px);
  margin: 0;
}

.support-thread,
.support-history {
  margin: 28px 0;
}

.support-message,
.support-event {
  min-width: 0;
  border: 1px solid #dfe4f1;
  border-radius: 12px;
  padding: 14px;
  background: #f7f8fc;
}

.support-message p,
.support-event p {
  margin: 8px 0 0;
  color: #25243e;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.support-message-meta {
  margin: 0;
  color: #565b77;
  font-size: 14px;
  font-weight: 700;
}

.support-reply {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e0e4ee;
}

@media (max-width: 600px) {
  .support-shell {
    width: min(100% - 24px, 1100px);
    margin: 18px auto 32px;
  }

  .support-panel {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .support-account-bar,
  .support-detail-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .support-account-bar > button {
    align-self: flex-start;
  }

  .support-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-detail-heading .support-status-badge {
    align-self: flex-start;
  }

  .support-admin-status {
    align-items: stretch;
    flex-direction: column;
  }

  .support-admin-status select,
  .support-admin-status button {
    width: 100%;
  }
}
