@font-face {
  font-family: "GT Walsheim Pro";
  src: url("/assets/GTWalsheimPro-Regular-CGyz_Tqk.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Walsheim Pro";
  src: url("/assets/GTWalsheimPro-Medium-rY6mtMvf.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Walsheim Pro";
  src: url("/assets/GTWalsheimPro-Bold-C85exUkA.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --help-accent: #6e74e3;
  --help-accent-hover: #7d82e9;
  --help-accent-soft: #9599f0;
  --help-bg: #0f0f11;
  --help-bg-elevated: #131316;
  --help-surface: rgba(19, 19, 23, 0.86);
  --help-surface-solid: #141417;
  --help-surface-hover: #18181d;
  --help-text: #f4f4f6;
  --help-muted: #8d8e97;
  --help-muted-strong: #b4b5bd;
  --help-border: rgba(255, 255, 255, 0.09);
  --help-border-strong: rgba(255, 255, 255, 0.15);
  --help-success: #60d79c;
  --help-warning: #e0b96c;
  --help-danger: #e07982;
  --help-shadow: 0 24px 72px rgba(0, 0, 0, 0.36);
  --help-container: 1160px;
}

body[data-theme="light"] {
  color-scheme: light;
  --help-bg: #f5f5f7;
  --help-bg-elevated: #ffffff;
  --help-surface: rgba(255, 255, 255, 0.9);
  --help-surface-solid: #ffffff;
  --help-surface-hover: #f2f2f5;
  --help-text: #17171b;
  --help-muted: #6f7079;
  --help-muted-strong: #4d4f58;
  --help-border: rgba(19, 20, 26, 0.1);
  --help-border-strong: rgba(19, 20, 26, 0.17);
  --help-shadow: 0 24px 72px rgba(28, 28, 36, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--help-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--help-bg);
  color: var(--help-text);
  font-family: "GT Walsheim Pro", Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.help-skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--help-accent);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.help-skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.help-page {
  min-height: 100vh;
}

.help-container {
  width: min(calc(100% - 40px), var(--help-container));
  margin: 0 auto;
}

.help-island-wrap {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.help-island {
  display: flex;
  width: max-content;
  max-width: calc(100vw - 32px);
  min-height: 52px;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 6px 8px 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(13, 14, 18, 0.48);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px) saturate(125%);
  pointer-events: auto;
}

.help-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.help-brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.help-brand strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.help-brand span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.help-nav-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.help-nav-link:hover,
.help-nav-link.is-active {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.help-nav-link svg {
  width: 14px;
  height: 14px;
}

.help-theme-toggle,
.help-account-button,
.help-menu-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.help-theme-toggle,
.help-menu-toggle {
  width: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);
}

.help-theme-toggle svg,
.help-menu-toggle svg {
  width: 15px;
  height: 15px;
}

.help-account-button {
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.105);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.help-account-button img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
}

.help-menu-toggle {
  display: none;
}

.help-hero {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(680px, 68svh, 860px);
  margin: 0;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 8, 12, 0.62) 0%,
      rgba(8, 9, 12, 0.7) 44%,
      #0f0f11 100%
    ),
    url("/assets/spectra-hero-fortress-v3.webp") center 42% / cover no-repeat;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-theme="light"] .help-hero {
  background:
    linear-gradient(
      180deg,
      rgba(7, 8, 12, 0.62) 0%,
      rgba(8, 9, 12, 0.7) 44%,
      #0f0f11 100%
    ),
    url("/assets/spectra-hero-fortress-v3.webp") center 42% / cover no-repeat;
}

.help-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(110, 116, 227, 0.11), transparent 33%),
    linear-gradient(90deg, rgba(5, 6, 9, 0.46), transparent 34%, transparent 66%, rgba(5, 6, 9, 0.46));
  content: "";
}

.help-hero-content {
  width: min(760px, calc(100% - 40px));
  padding: 118px 0 76px;
  color: #fff;
  text-align: center;
}

.help-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #aeb1ff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-eyebrow svg {
  width: 14px;
  height: 14px;
}

.help-hero h1 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.help-hero h1 span {
  color: #8d92ee;
}

.help-hero-copy {
  max-width: 560px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.55;
}

.help-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.help-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--help-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.help-button:hover {
  background: var(--help-accent-hover);
  transform: translateY(-1px);
}

.help-button:active {
  transform: translateY(0);
}

.help-button svg {
  width: 15px;
  height: 15px;
}

.help-button-secondary {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
}

.help-button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.help-button-muted {
  border-color: var(--help-border);
  background: transparent;
  color: var(--help-muted-strong);
}

.help-button-muted:hover {
  border-color: var(--help-border-strong);
  background: var(--help-surface-hover);
  color: var(--help-text);
}

.help-button-danger {
  border-color: rgba(224, 121, 130, 0.2);
  background: rgba(224, 121, 130, 0.08);
  color: var(--help-danger);
}

.help-button[disabled] {
  cursor: wait;
  opacity: 0.5;
  transform: none;
}

.help-main {
  min-height: 60vh;
  background: var(--help-bg);
}

.help-tools-section {
  padding: 110px 0 116px;
}

.help-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.help-section-heading-copy {
  max-width: 650px;
}

.help-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--help-accent-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.help-kicker svg {
  width: 14px;
  height: 14px;
}

.help-section-heading h2,
.help-page-heading h1 {
  margin: 0;
  color: var(--help-text);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1;
}

.help-section-heading p,
.help-page-heading p {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--help-muted);
  line-height: 1.55;
}

.help-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 58px);
  background: transparent;
}

.help-tool-card {
  position: relative;
  display: flex;
  min-height: 430px;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 0 28px;
  border: 0;
  background: transparent;
  color: var(--help-text);
  cursor: pointer;
  text-align: left;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.help-tool-card + .help-tool-card::before {
  content: none;
}

.help-tool-card:hover {
  transform: translateY(-4px);
}

.help-tool-index {
  position: relative;
  z-index: 2;
  color: var(--help-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.help-tool-art {
  position: relative;
  display: grid;
  width: 100%;
  height: 188px;
  margin: 2px 0 4px;
  place-items: center;
}

.help-tool-art::before {
  position: absolute;
  width: 150px;
  height: 90px;
  border-radius: 50%;
  background: rgba(110, 116, 227, 0.14);
  content: "";
  filter: blur(42px);
  opacity: 0.8;
  pointer-events: none;
}

.help-tool-card:nth-child(2) .help-tool-art::before {
  background: rgba(219, 62, 146, 0.12);
}

.help-tool-card:nth-child(3) .help-tool-art::before {
  background: rgba(224, 55, 66, 0.12);
}

.help-tool-art img {
  position: relative;
  z-index: 1;
  width: 164px;
  height: 164px;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.25));
  transition:
    filter 300ms ease,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.help-tool-card:nth-child(3) .help-tool-art img {
  width: 184px;
  height: 184px;
}

.help-tool-card:hover .help-tool-art img {
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.32));
  transform: translateY(-5px) rotate(-1.5deg) scale(1.035);
}

.help-tool-card:nth-child(2):hover .help-tool-art img {
  transform: translateY(-5px) rotate(1.5deg) scale(1.035);
}

.help-tool-copy {
  display: flex;
  min-height: 150px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.help-tool-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.help-tool-card p {
  max-width: 280px;
  margin: 9px 0 26px;
  color: var(--help-muted);
  font-size: 13px;
  line-height: 1.5;
}

.help-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--help-accent-soft);
  font-size: 12px;
  font-weight: 500;
}

.help-tool-link svg {
  width: 13px;
  height: 13px;
}

.help-tickets-preview {
  padding: 0 0 120px;
}

.help-panel {
  border: 1px solid var(--help-border);
  border-radius: 20px;
  background: var(--help-surface-solid);
  box-shadow: var(--help-shadow);
}

.help-preview-shell {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: stretch;
}

.help-preview-shell::after {
  position: absolute;
  top: 5%;
  bottom: 5%;
  left: 40%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--help-border-strong) 18%, var(--help-border-strong) 82%, transparent);
  content: "";
  pointer-events: none;
}

.help-preview-copy {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px 44px 0;
}

.help-preview-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.help-preview-copy p {
  margin: 16px 0 28px;
  color: var(--help-muted);
}

.help-preview-list {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0 32px 32px;
}

.help-preview-stack {
  gap: 14px;
  perspective: 900px;
}

.help-preview-ticket {
  transform-origin: center;
  transition:
    opacity 360ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 360ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 360ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform, box-shadow;
}

.help-preview-list:not(.is-visible) .help-preview-ticket {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
}

.help-preview-list.is-visible .help-preview-ticket:nth-child(1) {
  transition-delay: 40ms;
}

.help-preview-list.is-visible .help-preview-ticket:nth-child(2) {
  transition-delay: 105ms;
}

.help-preview-list.is-visible .help-preview-ticket:nth-child(3) {
  transition-delay: 170ms;
}

.help-preview-ticket.is-edge {
  opacity: 0.32;
  filter: blur(0.55px);
  transform: scale(0.965);
}

.help-preview-ticket.is-center {
  z-index: 1;
  border-color: var(--help-border-strong);
  background: var(--help-surface-solid);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.24);
}

.help-preview-stack:hover .help-preview-ticket {
  opacity: 0.78;
  filter: none;
  transition-delay: 0ms;
}

.help-preview-stack:hover .help-preview-ticket:nth-child(1) {
  transition-delay: 0ms;
}

.help-preview-stack:hover .help-preview-ticket:nth-child(2) {
  transition-delay: 0ms;
}

.help-preview-stack:hover .help-preview-ticket:nth-child(3) {
  transition-delay: 0ms;
}

.help-preview-stack .help-preview-ticket:hover {
  opacity: 1;
  border-color: var(--help-border-strong);
  background: var(--help-surface-solid);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
  transform: translateX(6px) scale(1.025);
}

.help-page-content {
  min-height: 100vh;
  padding: 142px 0 100px;
}

.help-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.help-page-heading h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.help-page-heading-actions {
  display: flex;
  gap: 10px;
}

.help-panel {
  padding: 28px;
}

.help-ticket-list-surface,
.help-conversation-surface {
  min-width: 0;
}

.help-ticket-info-surface {
  padding: 18px 0;
  border-top: 1px solid var(--help-border);
  border-bottom: 1px solid var(--help-border);
}

.help-form {
  display: grid;
  gap: 24px;
}

.help-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.help-field {
  display: grid;
  gap: 8px;
}

.help-field-full {
  grid-column: 1 / -1;
}

.help-field label {
  color: var(--help-muted-strong);
  font-size: 12px;
  font-weight: 500;
}

.help-field input,
.help-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--help-text);
  font-size: 13px;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

body[data-theme="light"] .help-field input,
body[data-theme="light"] .help-field textarea {
  background: rgba(17, 18, 23, 0.025);
}

.help-field textarea {
  min-height: 132px;
  padding-top: 13px;
  resize: vertical;
}

.help-field input:focus,
.help-field textarea:focus {
  border-color: var(--help-border-strong);
  background: rgba(110, 116, 227, 0.035);
}

.help-field small {
  color: var(--help-muted);
  font-size: 11px;
}

.help-field-error {
  color: var(--help-danger) !important;
}

.help-custom-select {
  position: relative;
  min-width: 0;
}

.help-custom-select-trigger {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--help-text);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

body[data-theme="light"] .help-custom-select-trigger {
  background: rgba(17, 18, 23, 0.025);
}

.help-custom-select-trigger:hover,
.help-custom-select.is-open .help-custom-select-trigger {
  border-color: var(--help-border-strong);
  background: rgba(110, 116, 227, 0.035);
}

.help-custom-select-trigger svg {
  flex: 0 0 auto;
  color: var(--help-muted);
  transition: transform 180ms ease;
}

.help-custom-select.is-open .help-custom-select-trigger svg {
  transform: rotate(180deg);
}

.help-custom-select-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--help-border-strong);
  border-radius: 12px;
  background: rgba(18, 18, 22, 0.97);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px) scale(0.985);
  transform-origin: top;
  backdrop-filter: blur(20px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

body[data-theme="light"] .help-custom-select-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 54px rgba(32, 32, 42, 0.14);
}

.help-custom-select.is-open .help-custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.help-custom-select-option {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--help-muted-strong);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.help-custom-select-option:hover,
.help-custom-select-option.is-selected {
  background: var(--help-surface-hover);
  color: var(--help-text);
}

.help-custom-select-option svg {
  color: var(--help-accent-soft);
  opacity: 0;
}

.help-custom-select-option.is-selected svg {
  opacity: 1;
}

.help-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
}

.help-form-note {
  max-width: 520px;
  margin: 0;
  color: var(--help-muted);
  font-size: 12px;
}

.help-ticket-list {
  display: grid;
  gap: 10px;
}

.help-history-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  margin: 0 0 20px;
  padding: 4px;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  overflow-x: auto;
}

.help-history-tabs a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--help-muted);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.help-history-tabs a:hover {
  color: var(--help-text);
}

.help-history-tabs a.is-active {
  background: var(--help-surface-hover);
  color: var(--help-text);
}

.help-ticket-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 90px;
  padding: 18px 20px;
  border: 1px solid var(--help-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--help-text);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.help-ticket-row:hover {
  border-color: var(--help-border-strong);
  background: var(--help-surface-hover);
}

.help-ticket-main {
  min-width: 0;
}

.help-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--help-muted);
  font-size: 10px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.help-ticket-main h3 {
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-ticket-main p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--help-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--help-border);
  border-radius: 999px;
  color: var(--help-muted-strong);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.help-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.help-status-open {
  border-color: rgba(96, 215, 156, 0.18);
  color: var(--help-success);
}

.help-status-assistant_active {
  border-color: rgba(110, 116, 227, 0.22);
  color: var(--help-accent-soft);
}

.help-status-waiting_staff {
  border-color: rgba(224, 185, 108, 0.18);
  color: var(--help-warning);
}

.help-status-waiting_user {
  border-color: rgba(224, 185, 108, 0.18);
  color: var(--help-warning);
}

.help-status-in_progress {
  border-color: rgba(110, 116, 227, 0.22);
  color: var(--help-accent-soft);
}

.help-status-resolved {
  border-color: rgba(96, 215, 156, 0.18);
  color: var(--help-success);
}

.help-status-closed {
  color: var(--help-muted);
}

.help-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.help-empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--help-border);
  border-radius: 16px;
  color: var(--help-muted);
}

.help-empty-icon svg {
  width: 22px;
  height: 22px;
}

.help-empty h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.help-empty p {
  max-width: 390px;
  margin: 8px auto 20px;
  color: var(--help-muted);
  font-size: 13px;
}

.help-ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.help-conversation {
  display: grid;
  gap: 12px;
}

.help-message {
  display: grid;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--help-border);
}

.help-message:last-child {
  border-bottom: 0;
}

.help-message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--help-bg-elevated);
}

.help-message-head {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.help-message-head strong {
  font-size: 12px;
  font-weight: 500;
}

.help-message-head span {
  color: var(--help-muted);
  font-size: 10px;
}

.help-message-body {
  min-width: 0;
  max-width: 100%;
  margin: 7px 0 0;
  color: var(--help-muted-strong);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

.help-message-content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.help-staff-label {
  margin-left: 6px;
  color: var(--help-accent-soft);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.help-reply-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--help-border);
}

.help-reply-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 13px 14px;
  border: 1px solid var(--help-border);
  border-radius: 11px;
  outline: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--help-text);
  resize: vertical;
}

.help-reply-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.help-chat-main {
  height: 100svh;
  overflow: hidden;
}

.help-chat-page {
  position: relative;
  display: grid;
  width: min(100%, 1080px);
  height: 100svh;
  margin: 0 auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 94px 24px 0;
}

.help-chat-toolbar,
.help-chat-thread-head {
  display: grid;
  min-height: 58px;
  align-items: center;
  border-bottom: 1px solid var(--help-border);
  color: var(--help-muted);
  font-size: 11px;
}

.help-chat-toolbar {
  grid-template-columns: 1fr auto 1fr;
}

.help-chat-toolbar > span {
  grid-column: 2;
}

.help-chat-back {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  color: var(--help-muted);
  text-decoration: none;
  transition: color 170ms ease;
}

.help-chat-back:hover {
  color: var(--help-text);
}

.help-chat-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 40px 20px 160px;
  text-align: center;
}

.help-chat-empty .help-eyebrow {
  margin-bottom: 12px;
}

.help-chat-empty h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.help-chat-empty p {
  max-width: 500px;
  margin: 15px 0 0;
  color: var(--help-muted);
  font-size: 13px;
}

.help-chat-prompts {
  display: flex;
  max-width: 700px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
}

.help-chat-prompts button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  background: transparent;
  color: var(--help-muted-strong);
  cursor: pointer;
  font-size: 11px;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.help-chat-prompts button:hover {
  border-color: var(--help-border-strong);
  background: var(--help-surface-hover);
  color: var(--help-text);
}

.help-chat-composer-wrap {
  position: relative;
  z-index: 30;
  align-self: end;
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 24px 0 18px;
}

.help-chat-composer-wrap::before {
  position: absolute;
  z-index: -1;
  right: -18vw;
  bottom: 0;
  left: -18vw;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--help-bg) 42%);
  content: "";
  pointer-events: none;
}

.help-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: end;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--help-border-strong);
  border-radius: 19px;
  background: var(--help-surface-solid);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.24);
}

.help-chat-composer:focus-within {
  border-color: rgba(255, 255, 255, 0.21);
}

body[data-theme="light"] .help-chat-composer:focus-within {
  border-color: rgba(20, 20, 26, 0.2);
}

.help-chat-composer textarea {
  width: 100%;
  min-height: 38px;
  max-height: 170px;
  padding: 9px 0 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--help-text);
  font-size: 14px;
  line-height: 1.45;
  resize: none;
}

.help-chat-composer textarea::placeholder {
  color: var(--help-muted);
}

.help-chat-composer button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--help-accent);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 170ms ease,
    transform 170ms ease;
}

.help-chat-composer button:hover {
  background: var(--help-accent-hover);
  transform: translateY(-1px);
}

.help-chat-composer button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.help-chat-composer-wrap > p {
  margin: 9px 0 0;
  color: var(--help-muted);
  font-size: 10px;
  text-align: center;
}

.help-chat-assistance {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
}

.help-chat-assistance button,
.help-chat-assistance span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--help-muted);
  font-size: 10px;
}

.help-chat-assistance button {
  border-radius: 9px;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.help-chat-assistance button:hover {
  background: var(--help-surface-hover);
  color: var(--help-text);
}

.help-chat-assistance span {
  color: var(--help-warning);
}

.help-chat-thread-head {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 20px;
}

.help-chat-thread-title {
  display: grid;
  min-width: 0;
  justify-items: center;
  line-height: 1.25;
}

.help-chat-thread-title strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--help-text);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-chat-thread-title span {
  color: var(--help-muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.help-chat-thread-actions {
  display: flex;
  min-width: 150px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.help-chat-thread-actions .help-custom-select {
  width: 190px;
}

.help-chat-thread-actions .help-custom-select-trigger {
  min-height: 34px;
  font-size: 10px;
}

.help-chat-head-button,
.help-chat-closed button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  background: transparent;
  color: var(--help-muted-strong);
  cursor: pointer;
  font-size: 10px;
}

.help-chat-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--help-border-strong) transparent;
}

.help-chat-thread .help-conversation {
  width: min(780px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 34px 0 130px;
}

.help-chat-thread .help-message {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  padding: 19px 0;
  border: 0;
}

.help-chat-thread .help-message.is-user {
  display: flex;
  justify-content: flex-end;
}

.help-chat-thread .help-message.is-user .help-message-avatar {
  display: none;
}

.help-chat-thread .help-message.is-user .help-message-content {
  min-width: 0;
  max-width: min(76%, 620px);
  padding: 12px 15px;
  border-radius: 17px;
  background: var(--help-surface-hover);
}

.help-chat-thread .help-message.is-user .help-message-head strong {
  display: none;
}

.help-chat-thread .help-message.is-user .help-message-head {
  justify-content: flex-end;
}

.help-chat-thread .help-message.is-user .help-message-body {
  margin-top: 3px;
  color: var(--help-text);
}

.help-chat-thread .help-message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.help-thinking {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
}

.help-thinking span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--help-muted);
  animation: help-thinking-dot 1.05s ease-in-out infinite;
}

.help-thinking span:nth-child(2) {
  animation-delay: 140ms;
}

.help-thinking span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes help-thinking-dot {
  0%,
  65%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  32% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.help-chat-closed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--help-border);
  border-radius: 17px;
  background: var(--help-surface-solid);
  color: var(--help-muted);
  font-size: 11px;
}

.help-escalation-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  color: var(--help-warning);
  font-size: 11px;
}

.help-modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.help-modal {
  position: relative;
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid var(--help-border-strong);
  border-radius: 18px;
  background: var(--help-surface-solid);
  box-shadow: var(--help-shadow);
}

.help-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--help-muted);
  cursor: pointer;
}

.help-modal-close:hover {
  background: var(--help-surface-hover);
  color: var(--help-text);
}

.help-modal-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--help-border);
  border-radius: 14px;
  color: var(--help-accent-soft);
}

.help-modal h2 {
  margin: 10px 0 8px;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.help-modal > p {
  margin: 0;
  color: var(--help-muted);
  font-size: 13px;
}

.help-escalation-context {
  display: grid;
  gap: 0;
  margin: 24px 0;
}

.help-escalation-context div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--help-border);
}

.help-escalation-context dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--help-muted);
  font-size: 11px;
}

.help-escalation-context dd {
  margin: 0;
  color: var(--help-text);
  font-size: 11px;
  text-align: right;
}

.help-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.help-ticket-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.help-ticket-info {
  display: grid;
  gap: 14px;
  margin: 0;
}

.help-ticket-info div {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--help-border);
}

.help-ticket-info div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.help-ticket-info dt {
  color: var(--help-muted);
  font-size: 11px;
}

.help-ticket-info dd {
  margin: 0;
  color: var(--help-muted-strong);
  font-size: 11px;
  text-align: right;
}

.help-login-gate {
  display: grid;
  min-height: 520px;
  place-items: center;
  text-align: center;
}

.help-login-gate-inner {
  max-width: 470px;
}

.help-login-gate h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1;
}

.help-login-gate p {
  margin: 18px 0 28px;
  color: var(--help-muted);
}

.help-faq {
  display: grid;
  gap: 10px;
}

.help-faq details {
  border: 1px solid var(--help-border);
  border-radius: 13px;
  background: var(--help-surface-solid);
}

.help-faq summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: var(--help-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.help-faq summary::-webkit-details-marker {
  display: none;
}

.help-faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--help-muted);
  font-size: 13px;
}

.help-footer {
  padding: 50px 0 34px;
  border-top: 1px solid var(--help-border);
  background: var(--help-bg);
}

.help-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}

.help-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--help-text);
}

.help-footer-brand img {
  width: 23px;
  height: 23px;
}

body:not([data-theme="light"]) .help-footer-brand img {
  filter: brightness(0) invert(1);
}

body[data-theme="light"] .help-footer-brand img {
  filter: brightness(0);
}

.help-footer-brand strong {
  font-size: 15px;
}

.help-footer-copy {
  max-width: 290px;
  margin: 10px 0 0;
  color: var(--help-muted);
  font-size: 11px;
}

.help-footer-column strong {
  display: block;
  margin-bottom: 11px;
  font-size: 11px;
  font-weight: 500;
}

.help-footer-column a {
  display: block;
  margin: 7px 0;
  color: var(--help-muted);
  font-size: 11px;
  text-decoration: none;
}

.help-footer-column a:hover {
  color: var(--help-text);
}

.help-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--help-border);
  color: var(--help-muted);
  font-size: 10px;
}

.help-toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(390px, calc(100vw - 44px));
  padding: 13px 15px;
  border: 1px solid var(--help-border-strong);
  border-radius: 11px;
  background: rgba(18, 18, 22, 0.94);
  box-shadow: var(--help-shadow);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(18px);
  animation: help-toast-in 260ms ease-out both;
}

.help-toast-error {
  border-color: rgba(224, 121, 130, 0.34);
}

.help-enter {
  animation: help-enter 420ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.help-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px);
}

.help-reveal.is-visible {
  animation: help-enter 520ms cubic-bezier(0.2, 0.72, 0.25, 1) var(--reveal-delay, 0ms) both;
}

@keyframes help-enter {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes help-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 900px) {
  .help-island {
    width: calc(100% - 28px);
    justify-content: space-between;
  }

  .help-nav {
    position: fixed;
    top: 80px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(13, 14, 18, 0.94);
    box-shadow: var(--help-shadow);
    backdrop-filter: blur(22px);
  }

  .help-nav.is-open {
    display: flex;
  }

  .help-nav-link {
    min-height: 44px;
    border-radius: 10px;
  }

  .help-menu-toggle {
    display: inline-flex;
  }

  .help-tools-grid {
    grid-template-columns: 1fr;
  }

  .help-tool-card {
    min-height: 220px;
    align-items: center;
    flex-direction: row;
    gap: 22px;
    padding: 20px 24px;
    border-right: 0;
  }

  .help-tool-card + .help-tool-card::before {
    display: none;
  }

  .help-tool-index {
    position: absolute;
    top: 22px;
    left: 24px;
  }

  .help-tool-art {
    width: 190px;
    height: 180px;
    flex: 0 0 190px;
  }

  .help-tool-copy {
    min-height: 150px;
    justify-content: center;
  }

  .help-preview-shell {
    grid-template-columns: 1fr;
  }

  .help-preview-shell::after {
    display: none;
  }

  .help-preview-copy {
    min-height: auto;
    padding: 36px 0;
    border-right: 0;
    border-bottom: 0;
  }

  .help-preview-list {
    padding: 28px 0;
  }

  .help-ticket-layout {
    grid-template-columns: 1fr;
  }

  .help-ticket-aside {
    position: static;
  }

  .help-chat-thread-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .help-chat-thread-actions {
    display: none;
  }

  .help-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .help-container {
    width: min(calc(100% - 28px), var(--help-container));
  }

  .help-island-wrap {
    top: 10px;
  }

  .help-island {
    min-height: 48px;
    padding-left: 11px;
  }

  .help-brand {
    padding-right: 10px;
    border-right: 0;
  }

  .help-brand span,
  .help-account-button span {
    display: none;
  }

  .help-account-button {
    width: 38px;
    padding: 0;
  }

  .help-hero {
    width: 100%;
    min-height: 620px;
    margin: 0;
    border-radius: 0;
  }

  .help-hero h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .help-tools-section {
    padding: 82px 0;
  }

  .help-section-heading,
  .help-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-page-content {
    padding-top: 112px;
  }

  .help-page-heading-actions {
    width: 100%;
  }

  .help-page-heading-actions .help-button {
    flex: 1;
  }

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

  .help-form-grid {
    grid-template-columns: 1fr;
  }

  .help-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .help-form-footer .help-button {
    width: 100%;
  }

  .help-ticket-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .help-ticket-main p {
    white-space: normal;
  }

  .help-preview-copy,
  .help-preview-list {
    padding: 26px 20px;
  }

  .help-chat-page {
    padding: 72px 14px 0;
  }

  .help-chat-toolbar {
    min-height: 50px;
  }

  .help-chat-empty {
    padding-bottom: 120px;
  }

  .help-chat-prompts {
    gap: 6px;
    margin-top: 18px;
  }

  .help-chat-prompts button {
    min-height: 34px;
    font-size: 10px;
  }

  .help-chat-composer-wrap {
    padding-bottom: 10px;
  }

  .help-chat-thread-head {
    min-height: 52px;
    gap: 10px;
  }

  .help-chat-thread-title {
    justify-items: end;
  }

  .help-chat-thread-title strong {
    max-width: 220px;
  }

  .help-chat-thread .help-message.is-user .help-message-content {
    max-width: 88%;
  }

  .help-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .help-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-modal {
    padding: 24px 20px;
  }

  .help-escalation-context div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .help-escalation-context dd {
    padding-left: 22px;
    text-align: left;
  }

  .help-modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .help-modal-actions .help-button {
    width: 100%;
  }
}

/* Knowledge base */
.help-doc-main {
  min-height: 100svh;
  padding: 112px 32px 96px;
  background:
    radial-gradient(circle at 52% 0%, rgba(110, 116, 227, 0.055), transparent 28%),
    var(--help-bg);
}

.help-doc-layout {
  display: grid;
  width: min(1440px, 100%);
  margin: 0 auto;
  grid-template-columns: 250px minmax(0, 780px) 190px;
  gap: clamp(34px, 4vw, 66px);
  align-items: start;
}

.help-doc-sidebar {
  position: sticky;
  top: 106px;
  max-height: calc(100svh - 130px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--help-border-strong) transparent;
}

.help-doc-sidebar-head {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.help-doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--help-muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 160ms ease;
}

.help-doc-back:hover {
  color: var(--help-text);
}

.help-doc-sidebar-head button {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--help-muted);
  cursor: pointer;
}

.help-doc-search {
  display: grid;
  min-height: 42px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--help-border);
  border-radius: 11px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  color: var(--help-muted);
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.help-doc-search:focus-within {
  border-color: var(--help-border-strong);
  background: var(--help-surface);
}

.help-doc-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--help-text);
  font-size: 12px;
}

.help-doc-search input::placeholder {
  color: var(--help-muted);
}

.help-doc-home-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin: 18px 0 21px;
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--help-muted);
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.help-doc-home-link:hover,
.help-doc-home-link.is-active {
  background: var(--help-surface-hover);
  color: var(--help-text);
}

.help-doc-home-link > svg {
  flex: 0 0 auto;
}

.help-doc-home-link span {
  display: grid;
}

.help-doc-home-link strong {
  font-size: 12px;
  font-weight: 500;
}

.help-doc-home-link small {
  color: var(--help-muted);
  font-size: 10px;
}

.help-doc-tree {
  display: grid;
  gap: 23px;
}

.help-doc-tree section {
  display: grid;
  gap: 2px;
}

.help-doc-tree section[hidden],
.help-doc-category[hidden] {
  display: none;
}

.help-doc-tree h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  color: var(--help-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.help-doc-tree a {
  position: relative;
  display: grid;
  min-height: 35px;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 8px;
  color: var(--help-muted);
  font-size: 11px;
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.help-doc-tree a > svg {
  display: block;
  align-self: center;
}

.help-doc-tree a > span {
  display: flex;
  min-height: 16px;
  align-items: center;
  line-height: 1;
  transform: translateY(1px);
}

.help-doc-tree a:hover {
  background: var(--help-surface-hover);
  color: var(--help-muted-strong);
}

.help-doc-tree a.is-active {
  background: var(--help-surface-hover);
  color: var(--help-text);
}

.help-doc-tree a.is-active::before {
  content: none;
}

.help-doc-no-results {
  margin: 18px 6px 0;
  color: var(--help-muted);
  font-size: 11px;
  line-height: 1.55;
}

.help-doc-content {
  min-width: 0;
}

.help-doc-breadcrumbs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  color: var(--help-muted);
  font-size: 10px;
}

.help-doc-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.help-doc-breadcrumbs a:hover {
  color: var(--help-text);
}

.help-doc-breadcrumbs strong {
  overflow: hidden;
  color: var(--help-muted-strong);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-doc-home > h1,
.help-doc-article > header h1 {
  margin: 13px 0 0;
  color: var(--help-text);
  font-size: clamp(42px, 4.3vw, 66px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.help-doc-lead,
.help-doc-article > header > p {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--help-muted);
  font-size: 15px;
  line-height: 1.72;
}

.help-doc-quick {
  display: grid;
  margin: 48px 0 56px;
  border-top: 1px solid var(--help-border);
  border-bottom: 1px solid var(--help-border);
  grid-template-columns: repeat(3, 1fr);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.help-doc-quick > div {
  display: grid;
  min-height: 126px;
  align-content: center;
  padding: 22px;
  border-right: 1px solid var(--help-border);
}

.help-doc-quick > div:last-child {
  border-right: 0;
}

.help-doc-quick span {
  margin-bottom: 14px;
  color: var(--help-accent-soft);
  font-size: 10px;
}

.help-doc-quick strong {
  color: var(--help-text);
  font-size: 14px;
  font-weight: 500;
}

.help-doc-quick small {
  margin-top: 3px;
  color: var(--help-muted);
  font-size: 10px;
}

.help-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-doc-category {
  display: grid;
  min-height: 188px;
  overflow: hidden;
  border: 1px solid var(--help-border);
  border-radius: 14px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--help-accent) 5%, transparent), transparent 42%),
    color-mix(in srgb, var(--help-surface-solid) 34%, transparent);
  grid-template-columns: minmax(0, 1fr);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.help-doc-category:hover {
  border-color: var(--help-border-strong);
  transform: translateY(-2px);
}

.help-doc-category-head {
  display: flex;
  min-height: 82px;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  gap: 11px;
  padding: 16px 18px 10px;
  background: transparent;
}

.help-doc-category-head > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--help-accent) 11%, transparent);
  color: var(--help-accent-soft);
}

.help-doc-category-head h2,
.help-doc-category-head p {
  margin: 0;
}

.help-doc-category-head h2 {
  font-size: 14px;
  font-weight: 500;
}

.help-doc-category-head p {
  margin-top: 2px;
  color: var(--help-muted);
  font-size: 10px;
}

.help-doc-category-links {
  display: grid;
  align-items: stretch;
  padding: 4px 10px 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.help-doc-category-links > a {
  display: grid;
  min-height: 82px;
  align-items: center;
  align-content: initial;
  padding: 11px 9px;
  border-radius: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  color: var(--help-muted);
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.help-doc-category-links > a > svg {
  display: none;
}

.help-doc-category-links > a:hover {
  background: var(--help-surface-hover);
  color: var(--help-text);
  transform: translateY(-1px);
}

.help-doc-category-links > a > span {
  display: grid;
  align-self: center;
  place-items: center;
  color: var(--help-muted);
}

.help-doc-category-links > a > div {
  display: grid;
  align-self: center;
  gap: 2px;
}

.help-doc-category-links strong {
  color: var(--help-text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.help-doc-category-links small {
  display: none;
}

.help-doc-contact {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 20px 22px;
  border-top: 1px solid var(--help-border);
  border-bottom: 1px solid var(--help-border);
}

.help-doc-contact > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.help-doc-contact > div > svg {
  flex: 0 0 auto;
  color: var(--help-accent-soft);
}

.help-doc-contact span {
  display: grid;
}

.help-doc-contact strong {
  font-size: 13px;
  font-weight: 500;
}

.help-doc-contact small {
  max-width: 420px;
  margin-top: 3px;
  color: var(--help-muted);
  font-size: 10px;
}

.help-doc-outline {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 13px;
  padding-left: 20px;
  border-left: 1px solid var(--help-border);
}

.help-doc-outline-empty {
  min-height: 1px;
  border-left-color: transparent;
}

.help-doc-outline > strong {
  color: var(--help-muted-strong);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.help-doc-outline nav {
  display: grid;
  gap: 4px;
}

.help-doc-outline nav a {
  display: block;
  padding: 5px 0;
  color: var(--help-muted);
  font-size: 10px;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 150ms ease,
    transform 150ms ease;
}

.help-doc-outline nav a:hover {
  color: var(--help-text);
  transform: translateX(2px);
}

.help-doc-outline-help {
  display: grid;
  margin-top: 14px;
  padding-top: 17px;
  border-top: 1px dashed var(--help-border);
  grid-template-columns: auto 1fr;
  gap: 5px 8px;
}

.help-doc-outline-help > span {
  color: var(--help-accent-soft);
  grid-row: 1 / span 2;
}

.help-doc-outline-help p {
  margin: 0;
  color: var(--help-muted);
  font-size: 10px;
}

.help-doc-outline-help a {
  color: var(--help-accent-soft);
  font-size: 10px;
  text-decoration: none;
}

.help-doc-mobile-trigger {
  display: none;
}

.help-doc-article > header {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--help-border);
}

.help-doc-article > header h1 {
  font-size: clamp(40px, 4vw, 60px);
}

.help-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  color: var(--help-muted);
  font-size: 10px;
}

.help-doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.help-doc-prose {
  color: var(--help-muted-strong);
  font-size: 14px;
  line-height: 1.78;
}

.help-doc-prose h2,
.help-doc-prose h3 {
  scroll-margin-top: 110px;
  color: var(--help-text);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.help-doc-prose h2 {
  margin: 52px 0 15px;
  font-size: 25px;
}

.help-doc-prose h3 {
  margin: 34px 0 11px;
  font-size: 18px;
}

.help-doc-prose p {
  margin: 0 0 18px;
}

.help-doc-prose strong {
  color: var(--help-text);
  font-weight: 500;
}

.help-doc-prose ul,
.help-doc-prose ol:not(.help-doc-steps) {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding-left: 21px;
}

.help-doc-prose li::marker {
  color: var(--help-accent-soft);
}

.help-doc-note {
  display: grid;
  margin: 25px 0;
  padding: 16px 18px;
  border: 1px solid var(--help-border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--help-surface-solid) 72%, transparent);
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
}

.help-doc-note > span {
  color: var(--help-accent-soft);
}

.help-doc-note-warning > span {
  color: var(--help-warning);
}

.help-doc-note strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.help-doc-note p {
  margin: 0;
  color: var(--help-muted);
  font-size: 11px;
  line-height: 1.6;
}

.help-doc-steps {
  padding: 0 !important;
  list-style: none;
}

.help-doc-steps li {
  display: grid;
  min-height: 77px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--help-border);
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
}

.help-doc-steps li:first-child {
  border-top: 1px solid var(--help-border);
}

.help-doc-steps li > span {
  color: var(--help-accent-soft);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.help-doc-steps strong {
  display: block;
  font-size: 13px;
}

.help-doc-steps p {
  margin: 3px 0 0;
  color: var(--help-muted);
  font-size: 11px;
  line-height: 1.55;
}

.help-doc-media {
  margin: 30px 0;
}

.help-doc-media-grid {
  display: grid;
  margin: 30px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-doc-media-grid .help-doc-media {
  min-width: 0;
  margin: 0;
}

.help-doc-media-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--help-border);
  border-radius: 13px;
  background: var(--help-surface-solid);
  cursor: zoom-in;
}

.help-doc-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center;
  transition: transform 280ms ease;
}

.help-doc-media-link:hover img {
  transform: scale(1.012);
}

.help-doc-media--detail .help-doc-media-link {
  padding: 22px;
}

.help-doc-media--detail img {
  max-height: 340px;
  aspect-ratio: auto;
  object-fit: contain;
}

.help-doc-media figcaption {
  margin-top: 9px;
  color: var(--help-muted);
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .help-doc-media {
    margin: 22px 0;
  }

  .help-doc-media-grid {
    margin: 22px 0;
    grid-template-columns: 1fr;
  }

  .help-doc-media--detail .help-doc-media-link {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-doc-media img {
    transition: none;
  }
}

.help-doc-table-wrap {
  margin: 22px 0 30px;
  overflow: hidden;
  border: 1px solid var(--help-border);
  border-radius: 12px;
}

.help-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.help-doc-table th,
.help-doc-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--help-border);
  text-align: left;
  vertical-align: top;
}

.help-doc-table tr:last-child td {
  border-bottom: 0;
}

.help-doc-table th {
  background: var(--help-surface-hover);
  color: var(--help-muted);
  font-weight: 500;
}

.help-doc-table td:first-child {
  color: var(--help-text);
  font-weight: 500;
}

.help-doc-pagination {
  display: grid;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--help-border);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-doc-pagination a {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--help-border);
  border-radius: 11px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.help-doc-pagination a:hover {
  border-color: var(--help-border-strong);
  background: var(--help-surface-hover);
  transform: translateY(-1px);
}

.help-doc-pagination a:last-child {
  justify-content: flex-end;
  text-align: right;
}

.help-doc-pagination a span {
  display: grid;
}

.help-doc-pagination small {
  color: var(--help-muted);
  font-size: 9px;
}

.help-doc-pagination strong {
  color: var(--help-text);
  font-size: 11px;
  font-weight: 500;
}

@media (max-width: 1220px) {
  .help-doc-layout {
    grid-template-columns: 238px minmax(0, 780px);
    justify-content: center;
  }

  .help-doc-outline {
    display: none;
  }
}

@media (max-width: 860px) {
  .help-doc-main {
    padding: 96px 20px 76px;
  }

  .help-doc-layout {
    display: block;
    width: min(760px, 100%);
  }

  .help-doc-mobile-trigger {
    position: sticky;
    z-index: 12;
    top: 69px;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0 13px;
    border: 1px solid var(--help-border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--help-bg) 90%, transparent);
    backdrop-filter: blur(16px);
    color: var(--help-muted-strong);
    font-size: 11px;
    cursor: pointer;
  }

  .help-doc-sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, calc(100vw - 36px));
    max-height: none;
    padding: 24px 18px 30px;
    border-right: 1px solid var(--help-border);
    background: var(--help-bg-elevated);
    box-shadow: var(--help-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-102%);
    transition:
      opacity 190ms ease,
      transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .help-doc-sidebar.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .help-doc-sidebar-head button {
    display: inline-flex;
  }
}

@media (max-width: 620px) {
  .help-hero {
    min-height: 68svh;
  }

  .help-tool-card {
    min-height: 360px;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 20px 18px 26px;
  }

  .help-tool-index {
    top: 20px;
    left: 18px;
  }

  .help-tool-art {
    width: 100%;
    height: 178px;
    flex-basis: 178px;
    margin-top: 8px;
  }

  .help-tool-copy {
    width: 100%;
    min-height: 140px;
  }

  .help-doc-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .help-doc-breadcrumbs {
    margin-bottom: 25px;
  }

  .help-doc-home > h1,
  .help-doc-article > header h1 {
    font-size: clamp(38px, 12vw, 50px);
  }

  .help-doc-lead,
  .help-doc-article > header > p {
    font-size: 13px;
  }

  .help-doc-quick {
    grid-template-columns: 1fr;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
  }

  .help-doc-quick > div {
    min-height: 90px;
    padding: 17px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--help-border);
  }

  .help-doc-quick > div:last-child {
    border-bottom: 0;
  }

  .help-doc-grid {
    grid-template-columns: 1fr;
  }

  .help-doc-category {
    grid-template-columns: 1fr;
  }

  .help-doc-category-head {
    min-height: 86px;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    border-right: 0;
  }

  .help-doc-category-links {
    padding: 2px 8px 8px;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .help-doc-category-links > a {
    min-height: 72px;
    align-items: center;
    align-content: initial;
    border-right: 0;
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .help-doc-category-links > a > svg {
    align-self: center;
    grid-column: auto;
    opacity: 1;
  }

  .help-doc-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .help-doc-contact .help-button {
    width: 100%;
  }

  .help-doc-prose {
    font-size: 13px;
  }

  .help-doc-prose h2 {
    font-size: 22px;
  }

  .help-doc-table-wrap {
    overflow-x: auto;
  }

  .help-doc-table {
    min-width: 620px;
  }

  .help-doc-pagination {
    grid-template-columns: 1fr;
  }

  .help-doc-pagination > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared-account cabinet and structured support channels */
.help-cabinet-main {
  padding: 132px 0 88px;
}

.help-cabinet-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.help-cabinet-sidebar,
.help-cabinet-card {
  border: 1px solid var(--help-border);
  border-radius: 18px;
  background: var(--help-surface-solid);
  box-shadow: var(--help-shadow);
}

.help-cabinet-sidebar {
  position: sticky;
  top: 112px;
  padding: 14px;
}

.help-cabinet-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid var(--help-border);
}

.help-cabinet-identity img,
.help-cabinet-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
}

.help-cabinet-identity span,
.help-cabinet-identity strong,
.help-cabinet-identity small {
  display: block;
  min-width: 0;
}

.help-cabinet-identity strong {
  overflow: hidden;
  color: var(--help-text);
  font-size: 13px;
  text-overflow: ellipsis;
}

.help-cabinet-identity small {
  margin-top: 2px;
  color: var(--help-muted);
  font-size: 10px;
}

.help-cabinet-sidebar nav {
  display: grid;
  gap: 3px;
  padding: 12px 0;
}

.help-cabinet-sidebar nav a,
.help-cabinet-main-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border-radius: 10px;
  color: var(--help-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 180ms ease, color 180ms ease;
}

.help-cabinet-sidebar nav a:hover,
.help-cabinet-sidebar nav a.is-active {
  background: var(--help-surface-hover);
  color: var(--help-text);
}

.help-cabinet-sidebar nav a.is-active svg {
  color: var(--help-accent-soft);
}

.help-cabinet-main-link {
  border-top: 1px solid var(--help-border);
  border-radius: 0;
}

.help-cabinet-content {
  min-width: 0;
}

.help-cabinet-card {
  padding: 28px;
}

.help-cabinet-card > header {
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--help-border);
}

.help-cabinet-card h2 {
  margin: 8px 0 6px;
  color: var(--help-text);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.help-cabinet-card header p {
  max-width: 58ch;
  margin: 0;
  color: var(--help-muted);
  font-size: 12px;
}

.help-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.help-profile-grid div {
  padding: 22px 0;
  border-bottom: 1px solid var(--help-border);
}

.help-profile-grid div:nth-child(odd) {
  padding-right: 22px;
  border-right: 1px solid var(--help-border);
}

.help-profile-grid div:nth-child(even) {
  padding-left: 22px;
}

.help-profile-grid dt {
  color: var(--help-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.help-profile-grid dd {
  margin: 7px 0 0;
  color: var(--help-text);
  font-size: 13px;
  font-weight: 600;
}

.help-security-sessions {
  display: grid;
  margin-bottom: 22px;
}

.help-security-sessions article {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--help-border);
}

.help-security-sessions article > span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-security-sessions article strong,
.help-security-sessions article small {
  display: block;
}

.help-security-sessions article strong {
  color: var(--help-text);
  font-size: 12px;
}

.help-security-sessions article small {
  max-width: 58ch;
  margin-top: 3px;
  overflow: hidden;
  color: var(--help-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-security-sessions article em {
  color: var(--help-success);
  font-size: 10px;
  font-style: normal;
}

.help-cabinet-channel .help-ticket-list,
.help-cabinet-channel .help-empty {
  margin-top: 20px;
}

.help-site-controls {
  display: grid;
  gap: 10px;
  padding-top: 22px;
}

.help-site-controls article {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 12px 11px 16px;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  background: var(--help-surface-hover);
}

.help-site-controls article strong,
.help-site-controls article small {
  display: block;
}

.help-site-controls article strong { font-size: 12px; }
.help-site-controls article small { margin-top: 3px; color: var(--help-muted); font-size: 10px; }

.help-site-controls button,
.help-ticket-participant-add button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--help-border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--help-text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.help-site-controls button.is-active {
  border-color: rgba(224, 121, 130, 0.35);
  background: rgba(224, 121, 130, 0.1);
  color: var(--help-danger);
}

.help-ticket-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 16px 24px;
  border-bottom: 1px solid var(--help-border);
  background: var(--help-bg-elevated);
}

.help-ticket-metadata div {
  padding: 9px 12px;
  border-left: 2px solid var(--help-border-strong);
}

.help-ticket-metadata dt {
  color: var(--help-muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-ticket-metadata dd {
  margin: 4px 0 0;
  color: var(--help-text);
  font-size: 11px;
  white-space: pre-wrap;
}

.help-ticket-participants {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--help-border);
  background: var(--help-bg-elevated);
}

.help-ticket-participants > div:first-child strong,
.help-ticket-participants > div:first-child small {
  display: block;
}

.help-ticket-participants > div:first-child strong { font-size: 11px; }
.help-ticket-participants > div:first-child small { margin-top: 2px; color: var(--help-muted); font-size: 9px; }

.help-ticket-participant-list {
  display: flex;
  gap: 6px;
}

.help-ticket-participant-list > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--help-border);
  border-radius: 999px;
  font-size: 10px;
}

.help-ticket-participant-list img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.help-ticket-participant-list small { color: var(--help-muted); }

.help-ticket-participant-add {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 6px;
  margin-left: auto;
}

.help-ticket-participant-add label {
  grid-column: 1 / -1;
  color: var(--help-muted);
  font-size: 9px;
}

.help-ticket-participant-add select {
  min-height: 40px;
  border: 1px solid var(--help-border-strong);
  border-radius: 10px;
  background: var(--help-surface-solid);
  color: var(--help-text);
  padding: 0 10px;
  font-size: 11px;
}

.help-maintenance {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
  background: radial-gradient(circle at 50% 25%, rgba(110, 116, 227, 0.17), transparent 36%), var(--help-bg);
}

.help-maintenance > img { width: 40px; height: 40px; margin-bottom: 22px; }
.help-maintenance > span { color: var(--help-accent-soft); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.help-maintenance h1 { max-width: 720px; margin: 14px 0; font-size: clamp(32px, 6vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.help-maintenance p { max-width: 55ch; margin: 0; color: var(--help-muted); }
.help-maintenance a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin-top: 26px; padding: 0 17px; border-radius: 11px; background: var(--help-accent); color: #fff; text-decoration: none; font-weight: 600; }

@media (max-width: 820px) {
  .help-cabinet-main { padding-top: 108px; }
  .help-cabinet-layout { grid-template-columns: 1fr; }
  .help-cabinet-sidebar { position: static; }
  .help-cabinet-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-ticket-participants { align-items: stretch; flex-direction: column; }
  .help-ticket-participant-add { width: 100%; margin-left: 0; }
}

@media (max-width: 560px) {
  .help-cabinet-card { padding: 20px; }
  .help-profile-grid { grid-template-columns: 1fr; }
  .help-profile-grid div:nth-child(odd), .help-profile-grid div:nth-child(even) { padding: 18px 0; border-right: 0; }
  .help-ticket-metadata { grid-template-columns: 1fr; padding: 12px; }
  .help-site-controls article { align-items: stretch; flex-direction: column; }
  .help-site-controls button { min-height: 44px; }
  .help-ticket-participant-add { grid-template-columns: 1fr; }
  .help-ticket-participant-add label { grid-column: auto; }
}
