/* GSignalX Velocity Premium — manual layout (extracted + extended) */
:root, [data-theme="dark"] {
  /* Executive / Gocity brand floor palette */
  --bg: #0A121E;
  --bg-mid: #0D2D48;
  --bg-elev: #0D2D48;
  --bg-card: #144064;
  --bg-soft: #103A5C;
  --edge: #2D6EA0;
  --edge-soft: #1E4F78;
  --text: #F2F7FC;
  --muted: #A8C4DB;
  --heading-sub: #E8ECF5;
  --gold: #FBA927;
  --gold-dim: #D99212;
  --brand-blue: #469AD4;
  --bull: #16A34A;
  --bear: #DC2626;
  --link: #7EBFE8;
  --header-bg: rgba(10, 18, 30, 0.94);
  --header-edge: rgba(70, 154, 212, 0.35);
  --rail-bg: rgba(18, 22, 30, 0.55);
  --row-stripe: rgba(255, 255, 255, 0.02);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --glow-gold: rgba(251, 169, 39, 0.10);
  --glow-blue: rgba(70, 154, 212, 0.12);
  --tab-active-fg: #0A121E;
  --tab-glow: rgba(251, 169, 39, 0.35);
  --chip-beginner-bg: rgba(22, 163, 74, 0.14);
  --chip-beginner-fg: #4ADE80;
  --chip-beginner-edge: rgba(22, 163, 74, 0.4);
  --chip-perf-bg: rgba(220, 38, 38, 0.14);
  --chip-perf-fg: #F87171;
  --chip-perf-edge: rgba(220, 38, 38, 0.4);
  --cta-gold-hover: rgba(251, 169, 39, 0.14);
  --cta-gh-bg: rgba(70, 154, 212, 0.12);
  --cta-gh-hover: rgba(70, 154, 212, 0.22);
  --rail-active-wash: rgba(240, 185, 60, 0.18);
  --logo-shadow: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  --table-fade: linear-gradient(90deg, var(--bg), transparent);
  --rail-w: 220px;
  --header-h: 68px;
  --tabs-strip-h: 0px;
  --chrome-h: var(--header-h);
  --radius: 10px;
  --font: "Segoe UI", "Candara", system-ui, sans-serif;
  --mono: Consolas, "Cascadia Mono", monospace;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F4F8FC;
  --bg-mid: #E8F0F8;
  --bg-elev: #FFFFFF;
  --bg-card: #EEF4FA;
  --bg-soft: #E4EDF6;
  --edge: #8BB4D4;
  --edge-soft: #C5D8E8;
  --text: #0A1F33;
  --muted: #3D5A72;
  --heading-sub: #16324A;
  --gold: #D99212;
  --gold-dim: #B87A0E;
  --brand-blue: #2E7BB0;
  --bull: #15803D;
  --bear: #B91C1C;
  --link: #1E6FA8;
  --header-bg: rgba(244, 248, 252, 0.92);
  --header-edge: rgba(46, 123, 176, 0.28);
  --rail-bg: rgba(255, 255, 255, 0.72);
  --row-stripe: rgba(10, 31, 51, 0.03);
  --shadow: 0 4px 20px rgba(10, 31, 51, 0.08);
  --glow-gold: rgba(251, 169, 39, 0.14);
  --glow-blue: rgba(70, 154, 212, 0.10);
  --tab-active-fg: #0A121E;
  --tab-glow: rgba(217, 146, 18, 0.28);
  --chip-beginner-bg: rgba(22, 163, 74, 0.12);
  --chip-beginner-fg: #15803D;
  --chip-beginner-edge: rgba(22, 163, 74, 0.35);
  --chip-perf-bg: rgba(185, 28, 28, 0.10);
  --chip-perf-fg: #B91C1C;
  --chip-perf-edge: rgba(185, 28, 28, 0.35);
  --cta-gold-hover: rgba(217, 146, 18, 0.12);
  --cta-gh-bg: rgba(46, 123, 176, 0.10);
  --cta-gh-hover: rgba(46, 123, 176, 0.18);
  --rail-active-wash: rgba(217, 146, 18, 0.14);
  --logo-shadow: drop-shadow(0 2px 6px rgba(10, 31, 51, 0.12));
  --table-fade: linear-gradient(90deg, var(--bg), transparent);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--glow-gold), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, var(--glow-blue), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 55%, var(--bg) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  transition: color 0.25s ease, background 0.35s ease;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold); }
code, .mono {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--edge-soft);
}
pre {
  background: var(--bg-elev);
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
  tab-size: 2;
  color: var(--text);
}
pre code { background: none; border: none; padding: 0; color: inherit; }

/* Tables: scroll wrapper (JS wraps bare tables once — DRY) */
.table-scroll {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1em 0 1.25em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--edge-soft);
  scrollbar-width: thin;
}
.table-scroll::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  background: var(--table-fade);
  opacity: 0.85;
}
.table-scroll table {
  margin: 0;
  border: none;
  width: 100%;
  min-width: 520px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-edge);
  box-shadow: var(--shadow);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  min-height: var(--header-h);
  padding: 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.brand-mark {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
  filter: var(--logo-shadow);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.brand-text strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-text span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.header-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tab-btn:hover { color: var(--text); background: var(--bg-soft); }
.tab-btn:focus-visible,
.theme-toggle:focus-visible,
.header-cta:focus-visible,
.chapter-nav button:focus-visible,
.rail-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.tab-btn.active {
  color: var(--tab-active-fg);
  background: linear-gradient(180deg, #FDCD80, var(--gold));
  border-color: rgba(251, 169, 39, 0.55);
  box-shadow: 0 0 16px var(--tab-glow), 0 2px 8px rgba(0, 0, 0, 0.15);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.header-cta:hover { background: var(--cta-gold-hover); text-decoration: none; color: var(--gold); }
.header-cta.gh {
  border-color: rgba(70, 154, 212, 0.55);
  color: var(--brand-blue);
  background: var(--cta-gh-bg);
}
.header-cta.gh:hover { background: var(--cta-gh-hover); color: var(--link); }
.header-cta.community {
  border-color: rgba(70, 154, 212, 0.55);
  color: var(--brand-blue);
  background: var(--cta-gh-bg);
}
.header-cta.community:hover { background: var(--cta-gh-hover); color: var(--link); }
.header-cta.community .cm-short { display: none; }

.theme-toggle {
  appearance: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--edge-soft);
  background: var(--bg-card);
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}
.theme-toggle:hover { background: var(--bg-soft); border-color: var(--edge); }
.theme-toggle svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

/* Layout */
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - var(--chrome-h));
  min-height: calc(100dvh - var(--chrome-h));
}
.rail {
  position: sticky;
  top: var(--chrome-h);
  height: calc(100vh - var(--chrome-h));
  height: calc(100dvh - var(--chrome-h));
  overflow-y: auto;
  padding: 20px 12px 40px;
  border-right: 1px solid var(--edge-soft);
  background: var(--rail-bg);
  transition: background 0.3s ease;
}
.rail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 0 10px 8px;
}
.rail-btn {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2px;
}
.rail-btn:hover { background: var(--bg-soft); color: var(--text); }
.rail-btn.active {
  background: linear-gradient(90deg, var(--rail-active-wash), transparent);
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}
.main {
  padding: 28px 32px 80px;
  max-width: 920px;
  min-width: 0;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
.panel { display: none; animation: fadeIn 0.22s ease; }
.panel.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Typography */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
h1 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.35rem;
  margin: 2em 0 0.6em;
  color: var(--text);
  border-bottom: 1px solid var(--edge-soft);
  padding-bottom: 8px;
}
h2:first-of-type { margin-top: 1.2em; }
h3 { font-size: 1.05rem; margin: 1.5em 0 0.5em; color: var(--heading-sub); }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 62ch; margin: 0 0 1.4em; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.5em;
}

/* Chips & callouts */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--edge);
}
.chip-beginner {
  background: var(--chip-beginner-bg);
  color: var(--chip-beginner-fg);
  border-color: var(--chip-beginner-edge);
}
.chip-advanced { background: rgba(70, 154, 212, 0.16); color: var(--link); border-color: rgba(70, 154, 212, 0.4); }
.chip-prop { background: rgba(251, 169, 39, 0.14); color: var(--gold); border-color: rgba(251, 169, 39, 0.4); }
.chip-perf {
  background: var(--chip-perf-bg);
  color: var(--chip-perf-fg);
  border-color: var(--chip-perf-edge);
}
.chip-version { background: var(--bg-soft); color: var(--text); border-color: var(--edge); }

.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 1.1em 0;
  border: 1px solid var(--edge-soft);
  background: var(--bg-card);
  max-width: 100%;
}
.callout.gold { border-color: rgba(251, 169, 39, 0.5); background: linear-gradient(135deg, rgba(251, 169, 39, 0.12), var(--bg-card)); }
.callout.bull { border-color: rgba(22, 163, 74, 0.4); }
.callout.bear { border-color: rgba(220, 38, 38, 0.45); }
.callout.warn { border-color: rgba(251, 169, 39, 0.55); }
.callout strong.label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; color: var(--gold); }

/* Cards & tables */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
  margin: 1.2em 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}
.card h3 { margin-top: 0; }
.card .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
}
.day-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 1.2em 0;
}
.day-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.day-card header h3 { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 1em 0;
}
th, td {
  border: 1px solid var(--edge-soft);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--bg-soft);
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tr:nth-child(even) td { background: var(--row-stripe); }
.checklist { list-style: none; padding: 0; margin: 0.8em 0; }
.checklist li {
  position: relative;
  padding: 8px 10px 8px 36px;
  border-bottom: 1px solid var(--edge-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 11px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold-dim);
  border-radius: 4px;
}
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 1.2em 0;
  font-size: 13px;
  font-weight: 700;
}
.flow .node {
  background: var(--bg-card);
  border: 1px solid var(--edge);
  padding: 10px 14px;
  border-radius: 8px;
}
.flow .node.gold { border-color: var(--gold); color: var(--gold); }
.flow .node.bull { border-color: var(--bull); color: var(--bull); }
.flow .arrow { color: var(--muted); }

.chapter-nav {
  display: flex;
  gap: 10px;
  margin: 2.5em 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--edge-soft);
}
.chapter-nav button {
  appearance: none;
  flex: 1;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--edge-soft);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.chapter-nav button:hover:not(:disabled) {
  background: var(--bg-soft);
  border-color: var(--edge);
}
.chapter-nav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.chapter-nav button span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.chapter-nav #nextChapter { text-align: right; }

.kbd-hint {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.kbd-hint .hint-mobile { display: none; }
.header-cta.gh .gh-short { display: none; }
.header-cta.community .cm-short { display: none; }
.footer-note {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--edge-soft);
  font-size: 12px;
  color: var(--muted);
}
.brand-logo-hero {
  max-width: min(420px, 100%);
  height: auto;
  display: block;
  filter: var(--logo-shadow);
}

@media (max-width: 900px) {
  :root, [data-theme="dark"], [data-theme="light"] {
    --tabs-strip-h: 52px;
    --chrome-h: calc(var(--header-h) + var(--tabs-strip-h) + env(safe-area-inset-top, 0px));
  }
  .header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "tabs tabs";
    align-items: center;
    gap: 0;
    padding: 0;
    min-height: 0;
  }
  .brand {
    grid-area: brand;
    padding: 8px 12px 8px 16px;
  }
  .header-actions {
    grid-area: actions;
    margin-left: 0;
    padding: 8px 12px 8px 0;
    gap: 6px;
  }
  .header-tabs {
    grid-area: tabs;
    flex: none;
    width: 100%;
    gap: 6px;
    padding: 6px 12px 10px;
    border-top: 1px solid var(--edge-soft);
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }
  .tab-btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main {
    padding: 20px 16px 64px;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    max-width: 100%;
  }
  .header-cta span.hide-sm { display: none; }
  .brand-text { display: none; }
  .header-cta { padding: 8px 12px; font-size: 11px; }
  .kbd-hint .hint-desk { display: none; }
  .kbd-hint .hint-mobile { display: inline; }
  .table-scroll table { min-width: 440px; }
  h1 { font-size: 1.45rem; line-height: 1.25; overflow-wrap: anywhere; }
  .lede { font-size: 1rem; }
  .callout { padding: 12px 14px; font-size: 0.95rem; }
  .meta-row { gap: 6px; }
  .chip { font-size: 11px; padding: 4px 8px; }
  pre {
    font-size: 11px;
    padding: 12px;
    line-height: 1.4;
  }
  code { word-break: break-word; overflow-wrap: anywhere; }
  th, td { padding: 8px 10px; font-size: 13px; }
  .chapter-nav { gap: 8px; }
  .chapter-nav button { min-height: 44px; }
}

@media (max-width: 480px) {
  :root, [data-theme="dark"], [data-theme="light"] {
    --header-h: 56px;
  }
  body { font-size: 14.5px; }
  .brand-mark { height: 34px; max-width: 96px; }
  .header-cta.gh .gh-full { display: none; }
  .header-cta.gh .gh-short { display: inline; }
  .header-cta.community .cm-full { display: none; }
  .header-cta.community .cm-short { display: inline; }
  .header-actions { gap: 4px; }
  .main {
    padding: 16px 12px 56px;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .day-card { padding: 14px 12px; }
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1.12rem; }
  .table-scroll table { min-width: 360px; }
  .table-scroll::after { width: 18px; }
  .brand-logo-hero { max-width: min(280px, 88vw); margin-inline: auto; }
  .site-header { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18); }
}

@media print {
  :root, [data-theme="dark"], [data-theme="light"] {
    --bg: #fff;
    --text: #111;
    --muted: #444;
    --heading-sub: #111;
    --bg-card: #fff;
    --bg-soft: #f5f5f5;
    --bg-elev: #fff;
    --edge-soft: #ccc;
    --row-stripe: transparent;
  }
  body { background: #fff; color: #111; }
  .site-header, .rail, .header-cta, .theme-toggle, .kbd-hint, .chapter-nav, .gsx-community-strip { display: none !important; }
  .shell { display: block; }
  .panel { display: block !important; page-break-before: always; }
  .panel:first-of-type { page-break-before: avoid; }
  .tab-btn, .rail-btn { display: none; }
  a { color: #0B3D5C; }
  th, td, .card, .callout, .day-card { border-color: #ccc; background: #fff !important; color: #111; }
  th { color: #0B3D5C; }
  .table-scroll { overflow: visible; }
  .table-scroll::after { display: none; }
  .table-scroll table { min-width: 0; }
}
/* —— Premium extensions: mind maps, subtabs, checklist —— */
.brand-text strong .premium-mark,
.premium-mark {
  color: var(--gold);
  font-weight: 700;
}
.brand-text span.premium-line {
  letter-spacing: 0.04em;
}
.gsx-mindmap {
  margin: 1.1rem 0 1.4rem;
  padding: 14px 14px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--edge-soft);
  background:
    radial-gradient(120% 80% at 10% 0%, var(--glow-gold), transparent 55%),
    radial-gradient(100% 70% at 90% 20%, var(--glow-blue), transparent 50%),
    var(--bg-card);
  box-shadow: var(--shadow);
}
.mm-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.mm-caption {
  margin: 8px 2px 2px;
  font-size: 0.9rem;
  color: var(--muted);
}
.gsx-mindmap-svg {
  width: 100%;
  height: auto;
  display: block;
}
.mm-bg { fill: transparent; }
.mm-edge {
  stroke: var(--edge);
  stroke-width: 2;
  stroke-opacity: 0.55;
}
.mm-node rect {
  fill: var(--bg-elev);
  stroke: var(--edge);
  stroke-width: 1.5;
  transition: fill 0.15s ease, stroke 0.15s ease, transform 0.15s ease;
}
.mm-node text {
  fill: var(--text);
  font-size: 11px;
  font-family: var(--font);
  font-weight: 650;
  pointer-events: none;
}
.mm-node.mm-gold rect { stroke: var(--gold); fill: color-mix(in srgb, var(--gold) 14%, var(--bg-elev)); }
.mm-node.mm-bull rect { stroke: var(--bull); fill: color-mix(in srgb, var(--bull) 12%, var(--bg-elev)); }
.mm-node.mm-bear rect { stroke: var(--bear); fill: color-mix(in srgb, var(--bear) 12%, var(--bg-elev)); }
.mm-node.mm-blue rect { stroke: var(--brand-blue); fill: color-mix(in srgb, var(--brand-blue) 14%, var(--bg-elev)); }
.mm-node.mm-clickable { cursor: pointer; }
.mm-node.mm-clickable:hover rect,
.mm-node.mm-clickable:focus rect {
  stroke: var(--gold);
  filter: drop-shadow(0 0 6px var(--tab-glow));
}
.subtabs {
  margin: 1rem 0 1.25rem;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--edge-soft);
  background: var(--bg-soft);
}
.subtab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.subtab-btn {
  appearance: none;
  border: 1px solid var(--edge-soft);
  background: var(--bg-elev);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.subtab-btn:hover { color: var(--text); border-color: var(--edge); }
.subtab-btn.active {
  color: var(--tab-active-fg);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--tab-glow);
}
.subpane { display: none; }
.subpane.active { display: block; animation: gsxFade 0.22s ease; }
@keyframes gsxFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.check-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid var(--edge-soft);
  background: var(--bg-card);
}
.check-list li.done {
  border-color: color-mix(in srgb, var(--bull) 45%, var(--edge-soft));
  background: color-mix(in srgb, var(--bull) 10%, var(--bg-card));
}
.check-list input {
  margin-top: 3px;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold);
}
.hero-premium {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.25rem;
  align-items: center;
  margin: 0.4rem 0 1.2rem;
}
.hero-premium .brand-logo-hero { margin: 0; max-width: 100%; }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 1rem 0 1.25rem;
}
.stat-pill {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--edge-soft);
  background: var(--bg-card);
}
.stat-pill strong {
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
}
.stat-pill span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}
.style-chip {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--edge-soft);
  color: var(--muted);
}
.style-chip.scalp { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.style-chip.day { color: var(--brand-blue); border-color: color-mix(in srgb, var(--brand-blue) 50%, transparent); }
.style-chip.swing { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 50%, transparent); }
@media (max-width: 900px) {
  .hero-premium { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .subpane.active { animation: none; }
  .mm-node rect { transition: none; }
}
@media print {
  .gsx-mindmap { break-inside: avoid; box-shadow: none; }
  .subpane { display: block !important; }
  .subtab-bar { display: none; }
}