html[data-theme="light"] {
  --bg: #eef1f6;
  --bg2: #e6eaf1;
  --panel: #f7f9fc;
  --card: #ffffff;
  --card2: #f3f6fb;
  --line: #d7dee9;
  --line2: #e2e7ef;
  --text: #111827;
  --text2: #4b5563;
  --text3: #7b8492;
  --accent: #0d9488;
  --accent-deep: #0f766e;
  --accent-ink: #ecfeff;
}

body.support-body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.support-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
}

.support-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 10px;
  border-right: 1px solid var(--line2);
  background: color-mix(in srgb, var(--bg2) 86%, transparent);
}

.support-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

.support-logo img,
.support-logo-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

html:not([data-theme="light"]) .support-logo img,
html:not([data-theme="light"]) .support-logo-mark img {
  filter: invert(1) brightness(1.9);
}

.support-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.support-nav a {
  width: 56px;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  color: var(--text2);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 600;
}

.support-nav a:hover,
.support-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--card);
  border-color: var(--line);
}

.support-nav .g {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.support-nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-nav .l {
  line-height: 1;
}

.support-main {
  min-width: 0;
  padding: 18px 28px 54px;
}

.support-topbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line2);
}

.support-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}

.support-logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}

.support-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 18px;
}

.support-tabs a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}

.support-tabs a:hover,
.support-tabs a[aria-current="page"] {
  color: var(--text);
  background: var(--card);
}

.support-spacer { flex: 1; }

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

.support-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: end;
  padding: 34px 0 22px;
}

.support-kicker {
  font: 600 11px/1 "IBM Plex Mono", monospace;
  color: var(--accent);
  letter-spacing: .6px;
  text-transform: uppercase;
}

.support-intro h1 {
  margin: 10px 0 12px;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: 0;
  text-wrap: balance;
}

.support-lead {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 680px;
  margin: 0;
}

.support-panel,
.support-section,
.support-toc,
.support-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-note {
  padding: 16px;
}

.support-note b {
  display: block;
  margin-bottom: 8px;
}

.support-note p {
  margin: 0;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.55;
}

.support-price-head {
  text-align: center;
  padding: 34px 0 28px;
}

.support-price-head h1 {
  margin: 10px auto 12px;
  max-width: 680px;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: 0;
}

.support-price-head p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}

.support-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.support-tier {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.support-tier.featured {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
}

.support-tier .name {
  font: 600 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .6px;
  color: var(--accent);
  text-transform: uppercase;
}

.support-tier .price {
  font-size: 34px;
  font-weight: 650;
  margin: 12px 0 2px;
  letter-spacing: 0;
}

.support-tier .price span {
  font-size: 13px;
  color: var(--text3);
  font-weight: 500;
}

.support-tier .credits {
  font: 600 12px/1 "IBM Plex Mono", monospace;
  color: var(--text2);
  margin-bottom: 16px;
}

.support-tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.support-tier li {
  font-size: 13px;
  color: var(--text2);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.support-tier li:before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.support-tier .btn-primary,
.support-tier .btn-ghost {
  margin-top: auto;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 12px;
}

.support-tier .btn-ghost {
  text-align: center;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.billing-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-top: 18px;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--text2);
  border-radius: 999px;
  padding: 7px 16px;
  font: 600 12px/1 inherit;
  cursor: pointer;
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.save {
  color: var(--accent);
  font: 600 11px/1 "IBM Plex Mono", monospace;
}

.support-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.support-toc {
  position: sticky;
  top: 18px;
  padding: 10px;
}

.support-toc a {
  display: block;
  color: var(--text2);
  text-decoration: none;
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 13px;
}

.support-toc a:hover {
  color: var(--text);
  background: var(--card2);
}

.support-sections {
  display: grid;
  gap: 12px;
}

.support-section {
  padding: 18px;
}

.support-section h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0;
}

.support-section p,
.support-section li {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.65;
}

.support-section p { margin: 0; }
.support-section ul { margin: 10px 0 0; padding-left: 18px; }

.support-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.support-step {
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 12px;
  background: var(--bg2);
}

.support-step b {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.support-step span {
  color: var(--text2);
  font-size: 12.5px;
  line-height: 1.45;
}

.support-faq {
  max-width: 860px;
  display: grid;
  gap: 10px;
}

.support-faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.support-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 650;
}

.support-faq summary::-webkit-details-marker { display: none; }
.support-faq summary:after {
  content: "+";
  float: right;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
}
.support-faq details[open] summary:after { content: "-"; }
.support-faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--text2);
  line-height: 1.65;
  font-size: 14px;
}

code {
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}

@media (max-width: 860px) {
  .support-shell { grid-template-columns: 1fr; }
  .support-rail {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    height: 64px;
    flex-direction: row;
    justify-content: center;
    border-right: 0;
    border-top: 1px solid var(--line2);
    padding: 8px 12px;
  }
  .support-logo { display: none; }
  .support-nav {
    margin: 0;
    flex-direction: row;
    justify-content: center;
    max-width: 380px;
  }
  .support-nav a { min-height: 48px; }
  .support-main { padding: 12px 16px 86px; }
  .support-topbar { height: 54px; }
  .support-tabs { display: none; }
  .support-intro,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .support-intro {
    padding-top: 24px;
  }
  .support-intro h1 {
    font-size: 30px;
  }
  .support-toc {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .support-toc a {
    white-space: nowrap;
    flex: none;
  }
  .support-steps {
    grid-template-columns: 1fr;
  }
  .support-tiers {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .support-price-head h1 {
    font-size: 30px;
  }
}
