/* XQR V2.9 visual trial: institution-led hierarchy, restrained surfaces. */
:root {
  --v29-bg: #06131f;
  --v29-panel: #0a1a28;
  --v29-panel-deep: #071522;
  --v29-ink: #f2f5f4;
  --v29-muted: #8fa3ad;
  --v29-faint: #6e828d;
  --v29-line: rgba(142, 169, 180, .18);
  --v29-line-strong: rgba(160, 182, 190, .3);
  --v29-gold: #c9ad7d;
  --v29-gold-soft: rgba(201, 173, 125, .11);
  --v29-risk: #dfa08e;
}

body {
  background:
    radial-gradient(ellipse 70% 24% at 50% 0%, rgba(35, 87, 114, .14), transparent 74%),
    linear-gradient(180deg, #071725 0%, var(--v29-bg) 42%, #071521 100%);
}

.ambient-grid {
  opacity: .17;
  background-size: 52px 52px;
}

.site-header {
  min-height: 58px;
  gap: 28px;
  border-bottom-color: rgba(142, 169, 180, .16);
  background: rgba(5, 18, 30, .96);
  box-shadow: none;
}

.brand {
  gap: 10px;
}

.brand-symbol {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  padding: 6px 5px;
  border: 1px solid rgba(201, 173, 125, .58);
  background: rgba(201, 173, 125, .04);
}

.brand-symbol::after {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 50%;
  width: 1px;
  background: rgba(201, 173, 125, .22);
  content: "";
  transform: rotate(27deg);
}

.brand-symbol i {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 1px;
  background: #d8e1df;
}

.brand-symbol i:nth-child(2) {
  width: 70%;
  margin-left: auto;
}

.brand-symbol i:nth-child(3) {
  width: 45%;
}

.brand-name,
.brand-separator,
.brand-lab {
  display: none;
}

.brand-copy-v29 {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.brand-wordmark-v29 {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-wordmark-v29 strong {
  color: #f3f2ed;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: .1em;
}

.brand-wordmark-v29 em {
  color: #8dc7d4;
  font: 700 13px/1 Georgia, "Times New Roman", serif;
  font-style: normal;
  letter-spacing: .08em;
}

.brand-sub-v29 {
  color: #7f929c;
  font: 600 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
}

.desktop-nav {
  height: 58px;
  gap: clamp(18px, 2.2vw, 34px);
}

.desktop-nav a {
  color: #9baab2;
  font-size: 12px;
  letter-spacing: .025em;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #f0eee7;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 18%;
  left: 18%;
  height: 1px;
  background: var(--v29-gold);
  box-shadow: none;
}

.header-status {
  min-height: 29px;
  border-color: rgba(141, 167, 177, .25);
  border-radius: 2px;
  background: rgba(10, 28, 43, .7);
  box-shadow: none;
  font-size: 10px;
}

.header-status b {
  color: #d8d4ca;
}

.status-dot {
  width: 5px;
  height: 5px;
  background: #85ac98;
  box-shadow: none;
}

.hero.hero-v29 {
  position: relative;
  display: grid;
  min-height: 155px;
  grid-template-columns: 292px minmax(0, 1fr) 308px;
  align-items: stretch;
  max-width: none;
  margin: 18px 0 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--v29-line-strong);
  border-radius: 3px;
  background:
    linear-gradient(105deg, rgba(201, 173, 125, .045), transparent 26%),
    linear-gradient(150deg, #0a1b29 0%, #081723 70%, #0a1b27 100%);
  box-shadow: none;
  text-align: left;
}

.hero-v29::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(129, 164, 177, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 164, 177, .045) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.hero-v29 > * {
  position: relative;
  z-index: 1;
}

.hero-brand-panel-v29 {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px 24px;
  border-right: 1px solid var(--v29-line);
}

.hero-brand-mark-v29 {
  display: grid;
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  place-items: center;
  border: 1px solid rgba(201, 173, 125, .54);
  background: rgba(201, 173, 125, .05);
  color: #dfd2ba;
  font: 700 28px/1 "Songti SC", SimSun, serif;
  letter-spacing: -.08em;
}

.hero-brand-name-v29 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
}

.hero-brand-name-v29 strong {
  color: #f4f1e9;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: .11em;
}

.hero-brand-name-v29 span {
  color: #8ac7d5;
  font: 700 14px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
}

.hero-brand-sub-v29 {
  margin: 7px 0 0;
  color: #82949d;
  font: 600 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .15em;
}

.hero-brand-note-v29 {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--v29-line);
  color: #a8b3b8;
  font-size: 10px;
  line-height: 1.5;
}

.hero-copy-v29 {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 23px 34px;
}

.hero-copy-v29 .eyebrow,
.hero-principle-v29 > span {
  color: var(--v29-gold);
}

.hero-copy-v29 .eyebrow {
  margin-bottom: 9px;
  font-size: 9px;
  letter-spacing: .18em;
}

.hero-copy-v29 h1 {
  margin: 0;
  color: var(--v29-ink);
  font: 750 clamp(31px, 3.05vw, 45px)/1.18 "Songti SC", SimSun, serif;
  letter-spacing: -.045em;
  text-shadow: none;
}

.hero-copy-v29 h1 em {
  display: inline-block;
  color: #d5bc91;
  font-style: normal;
  white-space: nowrap;
}

.hero-copy-v29 .hero-sub {
  max-width: none;
  margin: 11px 0 0;
  color: #a6b3ba;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: .04em;
}

.hero-principle-v29 {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 22px 25px;
  border-left: 1px solid var(--v29-line);
  background: rgba(4, 16, 27, .3);
}

.hero-principle-v29 > span {
  margin-bottom: 9px;
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .13em;
}

.hero-principle-v29 > strong {
  color: #e4e5e1;
  font: 650 15px/1.7 "Songti SC", SimSun, serif;
  letter-spacing: -.015em;
}

.hero-principle-v29 .data-status {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--v29-line);
  color: #92a7b0;
  font-size: 10px;
  line-height: 1.35;
}

.hero-principle-v29 .data-status > span {
  min-width: 0;
  padding-left: 7px;
  border-left: 1px solid rgba(142, 169, 180, .16);
}

.hero-principle-v29 .data-status > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-principle-v29 .data-status small,
.hero-principle-v29 .data-status b {
  display: block;
}

.hero-principle-v29 .data-status small {
  margin-bottom: 3px;
  color: #70858f;
  font: 600 8px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .06em;
  white-space: nowrap;
}

.hero-principle-v29 .data-status b {
  color: #c7d2d4;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.simulation-notice-v29 {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin: 20px 0 12px;
  padding: 12px 16px;
  border: 1px solid rgba(201, 173, 125, .25);
  border-left: 2px solid var(--v29-gold);
  background: linear-gradient(90deg, rgba(201, 173, 125, .075), rgba(7, 23, 36, .74) 38%);
}

.simulation-notice-v29 > span {
  color: #b8a37f;
  font: 700 8px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
}

.simulation-notice-v29 > p {
  margin: 0;
  color: #aeb9bd;
  font-size: 11px;
  line-height: 1.65;
}

.simulation-notice-v29 strong {
  color: #e8e1d4;
  font-weight: 700;
}

.cohort-switch {
  display: grid;
  max-width: none;
  min-height: 50px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
  overflow: hidden;
  border-color: var(--v29-line-strong);
  border-radius: 3px;
  background: rgba(7, 23, 36, .72);
}

.cohort-switch button {
  min-height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 9px;
  padding: 9px 18px;
  text-align: center;
}

.cohort-switch button span {
  color: #aab8bf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.cohort-switch button small {
  color: #8da2ac;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
}

.cohort-switch button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(201, 173, 125, .08), rgba(201, 173, 125, .025));
  box-shadow: inset 0 -1px 0 rgba(201, 173, 125, .82);
}

.cohort-switch button[aria-pressed="true"] span {
  color: #f0eee8;
}

.model-grid {
  gap: 10px;
}

.model-card {
  padding: 16px 16px 14px;
  overflow: hidden;
  border: 1px solid var(--v29-line) !important;
  border-radius: 3px !important;
  background: linear-gradient(180deg, #0a1c2b 0%, #071724 100%) !important;
  box-shadow: none !important;
  isolation: isolate;
}

.model-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 2px;
  opacity: .28;
  background: var(--model-color);
  content: "";
}

.model-card:hover {
  transform: translateY(-1px);
  border-color: var(--v29-line-strong) !important;
  box-shadow: none !important;
}

.model-card.selected {
  border-color: rgba(185, 166, 129, .48) !important;
  background: linear-gradient(180deg, #0b1f2f 0%, #071724 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(201, 173, 125, .08) !important;
}

.model-card.selected::before {
  opacity: 1;
}

.card-model-code {
  display: block;
  margin-bottom: 6px;
  color: var(--model-color);
  font: 700 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .13em;
}

.card-heading h3 {
  color: #eef3f3;
  font-size: 19px;
  font-weight: 720;
}

.card-kicker {
  margin-top: 5px;
  color: #7d909a;
  font-size: 9px;
}

.sparkline svg {
  filter: none !important;
}

.card-main {
  margin-top: 9px !important;
}

.card-main-label {
  color: #93a3aa;
  font-size: 10px;
}

.card-main-value {
  margin-top: 2px !important;
  font-size: clamp(27px, 2.15vw, 35px) !important;
  font-weight: 720;
  text-shadow: none !important;
}

.card-main-value.long-number {
  font-size: clamp(23px, 1.8vw, 30px) !important;
}

.card-cumulative {
  border-color: var(--v29-line);
  border-radius: 2px;
  background: rgba(255, 255, 255, .02);
}

.card-compound-reference {
  margin-top: 8px !important;
  padding: 7px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--v29-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #8d9da4;
}

.card-compound-reference em {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--v29-risk);
  font-size: 7px;
  letter-spacing: .1em;
}

.risk-value {
  color: var(--v29-risk) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.card-metrics {
  margin-top: 9px !important;
  padding-top: 9px !important;
  border-top-color: var(--v29-line) !important;
}

.card-metric + .card-metric {
  border-left-color: var(--v29-line);
}

.card-metric span {
  color: #778b95;
}

.card-metric b {
  color: #dfe5e5;
  font-size: 15px;
  white-space: normal;
}

.card-metric small {
  display: block;
  margin-top: 2px;
  color: #718690;
  font-size: 8px;
  line-height: 1.25;
  white-space: normal;
}

.card-latest-assets b {
  color: #f0e6d5;
  font-size: 15px;
  letter-spacing: -.02em;
}

.card-metric .card-daily-change {
  display: flex;
  min-height: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 5px;
  margin-top: 4px;
  color: #9aabb2;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}

.card-metric .card-daily-change.positive {
  color: var(--red);
}

.card-metric .card-daily-change.negative {
  color: var(--green);
}

.card-metric .card-daily-change.neutral {
  color: #a8b7bd;
}

.card-metric .card-daily-change em {
  color: #7f929b;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
}

.card-metric .card-daily-change b {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.card-metric .card-daily-change > span {
  min-height: 0;
  color: inherit;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

.chart-section {
  padding-top: 20px;
}

.chart-section .section-heading h2,
.drawdown-section .section-heading h2,
.annual-section .section-heading h2,
.returns-section .section-heading h2 {
  color: #edf1f1;
  font-weight: 700;
}

.segmented,
.period-control {
  border-radius: 2px;
  border-color: var(--v29-line);
  background: rgba(5, 19, 31, .76);
}

.segmented button {
  border-radius: 1px;
}

.segmented button[aria-pressed="true"],
.period-control button[aria-pressed="true"] {
  border-color: rgba(201, 173, 125, .48) !important;
  background: var(--v29-gold-soft) !important;
  color: #e7ddc9 !important;
  box-shadow: none !important;
}

.chart-panel,
.table-panel,
.drawdown-panel {
  border-color: var(--v29-line);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(9, 27, 42, .96), rgba(6, 20, 32, .96));
  box-shadow: none;
}

.risk-pill {
  border-color: rgba(223, 160, 142, .24);
  border-radius: 2px;
  background: rgba(223, 160, 142, .055);
  color: #e3ac9b;
}

.drawdown-model-chip {
  border-radius: 2px;
  box-shadow: none;
}

.philosophy-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top-color: var(--v29-line);
  border-bottom-color: var(--v29-line);
}

.principle-manifesto-v29 {
  display: grid;
  grid-template-columns: 188px minmax(320px, 1fr) minmax(220px, .58fr);
  align-items: center;
  gap: 28px;
  margin: 0 0 29px;
  padding: 25px 28px;
  border: 1px solid rgba(201, 173, 125, .3);
  background:
    linear-gradient(90deg, rgba(201, 173, 125, .08), transparent 45%),
    #091b2a;
}

.principle-manifesto-v29 > span {
  color: #aa997c;
  font: 700 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
}

.principle-manifesto-v29 > strong {
  color: #eff2f1;
  font: 700 25px/1.5 "Songti SC", SimSun, serif;
  letter-spacing: -.035em;
}

.principle-manifesto-v29 > strong em {
  color: #d5bc91;
  font-style: normal;
}

.principle-manifesto-v29 > p {
  margin: 0;
  color: #a68f76;
  font-size: 11px;
  line-height: 1.75;
  text-align: right;
}

.philosophy-heading {
  grid-template-columns: minmax(190px, .35fr) minmax(0, .85fr);
}

.philosophy-grid {
  background: rgba(9, 28, 43, .32);
}

.method-note-v29 {
  margin: 14px 0 0;
  padding: 12px 15px;
  border-left: 2px solid rgba(201, 173, 125, .62);
  background: rgba(201, 173, 125, .045);
  color: #9eaaaf;
  font-size: 11px;
  line-height: 1.7;
}

footer strong {
  color: #c7c3b8;
  font-weight: 700;
  letter-spacing: .04em;
}

@media (max-width: 1180px) {
  .hero.hero-v29 {
    grid-template-columns: 255px minmax(0, 1fr);
  }

  .hero-principle-v29 {
    grid-column: 1 / -1;
    display: grid;
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px 18px;
    padding: 12px 22px;
    border-top: 1px solid var(--v29-line);
    border-left: 0;
  }

  .hero-principle-v29 > span {
    margin: 0;
  }

  .hero-principle-v29 > strong {
    font-size: 13px;
  }

  .hero-principle-v29 > strong br {
    display: none;
  }

  .hero-principle-v29 .data-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 2;
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .principle-manifesto-v29 {
    grid-template-columns: 170px 1fr;
  }

  .principle-manifesto-v29 > p {
    grid-column: 2;
    text-align: left;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-heading .chart-toolbar {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 55px;
  }

  .brand-symbol {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    padding: 6px 5px;
  }

  .brand-wordmark-v29 strong {
    font-size: 18px;
  }

  .brand-wordmark-v29 em {
    font-size: 11px;
  }

  .brand-sub-v29 {
    font-size: 7px;
  }

  .mobile-menu {
    top: 55px;
    background: rgba(5, 18, 30, .985);
  }

  .hero.hero-v29 {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    margin: 10px 0 12px;
  }

  .hero-brand-panel-v29 {
    gap: 11px;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--v29-line);
  }

  .hero-brand-mark-v29 {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 20px;
  }

  .hero-brand-name-v29 strong {
    font-size: 18px;
  }

  .hero-brand-name-v29 span {
    font-size: 11px;
  }

  .hero-brand-sub-v29 {
    margin-top: 4px;
    font-size: 7px;
  }

  .hero-brand-note-v29 {
    display: none;
  }

  .hero-copy-v29 {
    padding: 16px 15px 15px;
  }

  .hero-copy-v29 .eyebrow {
    margin-bottom: 7px;
    font-size: 8px;
  }

  .hero-copy-v29 h1 {
    font-size: clamp(25px, 7.15vw, 29px);
    line-height: 1.25;
    letter-spacing: -.04em;
  }

  .hero-copy-v29 .hero-sub {
    margin-top: 9px;
    font-size: 10px;
    line-height: 1.55;
    letter-spacing: .01em;
  }

  .hero-principle-v29 {
    display: block;
    min-height: 0;
    padding: 8px 14px;
  }

  .hero-principle-v29 > span,
  .hero-principle-v29 > strong {
    display: none;
  }

  .hero-principle-v29 .data-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin: 0;
    padding-top: 8px;
    color: #8499a2;
    font-size: 9px;
    text-align: left;
  }

  .hero-principle-v29 .data-status small {
    font-size: 8px;
  }

  .hero-principle-v29 .data-status b {
    font-size: 11px;
  }

  .simulation-notice-v29 {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 11px 13px;
  }

  .simulation-notice-v29 > p {
    font-size: 10px;
    line-height: 1.65;
  }

  .cohort-switch {
    min-height: 40px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-bottom: 10px;
  }

  .cohort-switch button {
    min-height: 38px;
    padding: 8px 7px;
  }

  .cohort-switch button + button {
    border-top: 0 !important;
    border-left: 1px solid var(--v29-line) !important;
  }

  .cohort-switch button span {
    font-size: 11px;
  }

  .cohort-switch button small {
    display: none;
  }

  .model-grid {
    gap: 8px;
  }

  .model-card {
    padding: 12px 10px 11px !important;
    border-radius: 2px !important;
  }

  .card-model-code {
    margin-bottom: 5px;
    font-size: 7px;
  }

  .card-heading h3 {
    font-size: 17px;
  }

  .card-kicker {
    font-size: 8px;
  }

  .sparkline {
    height: 34px;
  }

  .card-main-value {
    font-size: clamp(21px, 6.7vw, 27px) !important;
  }

  .card-main-value.long-number {
    font-size: clamp(16px, 5.2vw, 22px) !important;
  }

  .card-compound-reference {
    margin-top: 7px !important;
    padding-top: 6px !important;
    font-size: 8px;
  }

  .card-compound-reference b {
    font-size: 10px !important;
  }

  .card-metric b {
    font-size: 11px;
    letter-spacing: -.025em;
  }

  .card-latest-assets b {
    font-size: clamp(10px, 3.3vw, 13px);
  }

  .card-metric small {
    font-size: 7px;
  }

  .card-metric .card-daily-change {
    gap: 2px 4px;
    margin-top: 3px;
    font-size: 8px;
  }

  .card-metric .card-daily-change b {
    font-size: 9px;
  }

  .card-metric .card-daily-change em,
  .card-metric .card-daily-change > span {
    font-size: 7px;
  }

  .chart-panel,
  .table-panel,
  .drawdown-panel {
    border-radius: 2px;
  }

  .chart-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(112px, .8fr);
    gap: 7px;
  }

  .chart-toolbar .segmented {
    width: 100%;
  }

  .chart-toolbar .segmented button {
    min-height: 34px;
    padding-inline: 6px;
    font-size: 10px;
  }

  .chart-hint {
    display: block;
    font-size: 8px;
    line-height: 1.5;
  }

  .philosophy-heading {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .principle-manifesto-v29 {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
    padding: 19px 16px;
  }

  .principle-manifesto-v29 > strong {
    font-size: 22px;
  }

  .principle-manifesto-v29 > p {
    grid-column: auto;
    font-size: 10px;
  }

  .method-note-v29 {
    margin-top: 12px;
    font-size: 10px;
  }
}

@media (max-width: 370px) {
  .brand-sub-v29 {
    display: none;
  }

  .hero-copy-v29 h1 {
    font-size: 24px;
  }

  .card-model-code {
    font-size: 6px;
  }

  .card-heading h3 {
    font-size: 16px;
  }

  .card-metric b {
    font-size: 10px;
  }

  .card-latest-assets b {
    font-size: 10px;
  }

  .card-metric .card-daily-change b {
    font-size: 9px;
  }
}

/* V2.9.1: candidate, buy decision and EOD position remain independent. */
.card-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--v29-line);
}

.card-status-chip {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(142, 169, 180, .17);
  border-radius: 5px;
  background: rgba(255, 255, 255, .025);
  line-height: 1.2;
}

.card-status-chip em {
  flex: 0 0 auto;
  color: #8297a2;
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
}

.card-status-chip b {
  min-width: 0;
  overflow: hidden;
  color: #c4d0d6;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-status-chip.active {
  border-color: rgba(88, 213, 208, .28);
  background: rgba(88, 213, 208, .055);
}

.card-status-chip.active b {
  color: #8fe2dc;
}

.card-status-chip.empty {
  border-color: rgba(201, 173, 125, .24);
  background: rgba(201, 173, 125, .045);
}

.card-status-chip.empty b {
  color: #d5bd91;
}

.card-status-chip.blocked {
  border-color: rgba(239, 183, 92, .3);
  background: rgba(239, 183, 92, .065);
}

.card-status-chip.blocked b {
  color: #f1c679;
}

.card-status-chip.unknown {
  border-color: rgba(223, 160, 142, .3);
  background: rgba(223, 160, 142, .06);
}

.card-status-chip.unknown b {
  color: #e2b2a3;
}

.card-status-chip.pending b {
  color: #94a5ad;
}

.card-status-date {
  display: block;
  margin-top: 4px;
  color: #718690;
  font-size: 8px;
  line-height: 1.3;
}

.card-status-date.warning {
  color: #e2b2a3;
}

@media (max-width: 760px) {
  .card-status-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 7px;
    padding-top: 6px;
  }

  .card-status-chip {
    gap: 2px;
    padding: 4px 5px;
  }

  .card-status-chip em {
    font-size: 7px;
  }

  .card-status-chip b {
    font-size: 7.5px;
  }

  .card-status-chip.blocked b {
    overflow: visible;
    font-size: 7px;
    line-height: 1.15;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .card-status-chip:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* V3.0 homepage composition: denser analytical dashboard, restrained surfaces. */
main,
footer {
  width: min(1660px, calc(100vw - 5.2vw));
}

body {
  background:
    radial-gradient(ellipse 48% 24% at 50% 3%, rgba(30, 83, 114, .17), transparent 74%),
    radial-gradient(ellipse 32% 18% at 8% 24%, rgba(201, 173, 125, .055), transparent 80%),
    linear-gradient(180deg, #061522 0%, #071522 54%, #06121e 100%);
}

.zero-sense-section {
  position: relative;
  grid-template-columns: 138px minmax(0, .92fr) minmax(430px, .98fr);
  gap: clamp(22px, 3vw, 42px);
  min-height: 218px;
  margin: 14px 0 14px;
  padding: 24px 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(142, 169, 180, .17);
  border-radius: 9px;
  background:
    radial-gradient(ellipse 45% 120% at 0% 48%, rgba(201, 173, 125, .08), transparent 66%),
    radial-gradient(ellipse 36% 120% at 100% 50%, rgba(41, 109, 145, .12), transparent 72%),
    linear-gradient(145deg, rgba(8, 29, 46, .96), rgba(5, 19, 32, .98));
}

.zero-sense-section::before {
  position: absolute;
  top: 23%;
  right: -11%;
  left: -11%;
  height: 56%;
  border: 1px solid rgba(201, 173, 125, .18);
  border-right-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  opacity: .62;
  transform: rotate(-3deg);
  pointer-events: none;
}

.zero-sense-section::after {
  position: absolute;
  top: 34%;
  right: -5%;
  left: -7%;
  height: 30%;
  border-top: 1px solid rgba(110, 164, 182, .13);
  border-radius: 50%;
  content: "";
  transform: rotate(2deg);
  pointer-events: none;
}

.zero-sense-section > * {
  position: relative;
  z-index: 1;
}

.zero-sense-intro {
  justify-content: flex-start;
  gap: 16px;
  padding-top: 7px;
}

.zero-sense-intro .eyebrow {
  color: #bca272;
}

.zero-sense-copy {
  align-self: center;
}

.zero-sense-copy h2 {
  font-size: clamp(31px, 3.2vw, 46px);
  letter-spacing: .01em;
}

.zero-sense-copy > p {
  margin-top: 0;
}

.zero-sense-copy .zero-sense-core {
  max-width: 670px;
  margin-top: 7px;
  color: #e2d1ae;
  font: 720 clamp(22px, 2.25vw, 32px)/1.35 "Songti SC", SimSun, serif;
  letter-spacing: -.025em;
}

.zero-sense-copy .zero-sense-core > span {
  display: inline-block;
  white-space: nowrap;
}

.zero-sense-copy .zero-sense-sub {
  max-width: 570px;
  margin-top: 8px;
  color: #a5b3b8;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}

.zero-sense-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}

.zero-sense-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border: 1px solid rgba(201, 173, 125, .34);
  border-radius: 999px;
  background: rgba(201, 173, 125, .05);
  color: #d1c3a8;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .06em;
}

.zero-sense-tags i {
  color: #c7ab78;
  font-style: normal;
}

.zero-sense-dashboard {
  align-self: center;
  padding: 13px;
  border-color: rgba(201, 173, 125, .54);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(201, 173, 125, .055), transparent 46%),
    rgba(5, 18, 30, .84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18), 0 0 18px rgba(201, 173, 125, .045);
}

.zero-sense-status > div {
  padding-bottom: 9px;
}

.zero-sense-status b {
  font-size: 13px;
}

.zero-sense-days p {
  margin-bottom: 6px;
}

.zero-sense-days th {
  padding: 6px 9px;
  font-size: 9px;
}

.zero-sense-days td {
  padding: 8px 9px;
  font-size: 18px;
}

.zero-sense-system {
  position: absolute;
  bottom: 8px;
  left: 24px;
}

.cohort-switch {
  margin-top: 8px;
}

.models-section {
  margin-top: 12px;
}

.compact-heading {
  margin-bottom: 10px;
}

.model-grid {
  gap: 11px;
}

.model-card {
  border-radius: 9px;
  background:
    linear-gradient(158deg, rgba(10, 33, 51, .98), rgba(5, 19, 31, .98));
  box-shadow: none;
}

.model-card::before {
  height: 2px;
  opacity: .86;
}

.analysis-pair,
.tables-pair {
  display: grid;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}

.analysis-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 17px;
}

.tables-pair {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  margin-top: 17px;
}

.analysis-pair > section,
.tables-pair > section {
  min-width: 0;
  margin: 0;
  padding-top: 0;
}

.analysis-pair > section {
  display: flex;
  flex-direction: column;
}

.analysis-pair .section-heading,
.tables-pair .section-heading {
  min-height: 58px;
  gap: 12px;
  margin-bottom: 8px;
}

.analysis-pair .section-heading h2,
.tables-pair .section-heading h2 {
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.22;
}

.section-icon {
  display: inline-block;
  margin-right: 7px;
  color: #c5aa79;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78em;
  font-style: normal;
  font-weight: 500;
}

.analysis-pair .chart-heading {
  align-items: flex-start;
}

.analysis-pair .chart-toolbar {
  gap: 7px;
  padding-top: 1px;
}

.analysis-pair .segmented {
  height: 34px;
}

.analysis-pair .segmented button {
  min-height: 32px;
  padding-inline: 12px;
  font-size: 10px;
}

.analysis-pair .period-control {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 8px;
  padding: 5px;
}

.analysis-pair .period-control button {
  min-width: 0;
  min-height: 33px;
  padding-inline: 4px;
  font-size: 9px;
}

.analysis-pair .chart-panel,
.analysis-pair .drawdown-panel {
  flex: 1;
  min-width: 0;
  border-radius: 7px;
}

.analysis-pair .chart-wrap {
  min-height: 0;
}

.analysis-pair .chart-footer {
  padding: 8px 12px;
}

.analysis-pair .legend {
  gap: 4px 12px;
}

.analysis-pair .legend button {
  font-size: 9px;
}

.analysis-pair .chart-hint {
  max-width: 58%;
  font-size: 8px;
  text-align: right;
}

.analysis-pair .drawdown-panel {
  min-height: 0;
}

.analysis-pair #drawdownChart {
  height: auto;
}

.tables-pair .section-heading {
  margin-bottom: 7px;
}

.tables-pair .table-panel {
  min-width: 0;
  overflow: hidden;
  border-radius: 7px;
}

.tables-pair .table-scroll {
  width: 100%;
  overflow-x: hidden;
}

.tables-pair table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.tables-pair th,
.tables-pair td {
  overflow: hidden;
  padding: 8px 6px;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tables-pair th:first-child,
.tables-pair td:first-child {
  width: 22%;
  text-align: left;
}

.tables-pair thead th {
  background: rgba(36, 84, 112, .14);
  color: #9fb3bb;
  font-weight: 650;
}

.tables-pair tbody tr:nth-child(even) {
  background: rgba(29, 65, 87, .075);
}

.tables-pair .period-table {
  font-size: 9px;
}

.tables-pair .period-table th,
.tables-pair .period-table td {
  padding-inline: 3px;
  font-size: 9px;
}

.tables-pair .period-table th.period-active-heading {
  background: rgba(201, 173, 125, .13);
  color: #e1cfaa;
  box-shadow: inset 0 2px rgba(201, 173, 125, .46);
}

.tables-pair .period-table td.period-active-cell {
  background: rgba(201, 173, 125, .065);
  box-shadow: inset 1px 0 rgba(201, 173, 125, .15), inset -1px 0 rgba(201, 173, 125, .15);
}

.philosophy-section {
  margin-top: 17px;
  padding-top: 0;
  border-top: 0;
  border-bottom: 0;
}

.principles-execution-grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: stretch;
}

.principle-summary,
.execution-standard {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(142, 169, 180, .18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(11, 32, 49, .9), rgba(5, 19, 31, .95));
}

.principle-summary {
  border-left-color: rgba(201, 173, 125, .58);
}

.philosophy-heading {
  display: block;
  margin: 0;
}

.philosophy-heading h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.philosophy-lead {
  margin: 10px 0 0;
  color: #8fa3aa;
  font-size: 11px;
  line-height: 1.7;
  text-align: left;
}

.principle-manifesto-v29 {
  display: block;
  margin: 14px 0 0;
  padding: 14px;
  border: 0;
  border-left: 2px solid rgba(201, 173, 125, .62);
  background: rgba(201, 173, 125, .045);
}

.principle-manifesto-v29 > strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.5;
}

.principle-manifesto-v29 > p {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.65;
  text-align: left;
}

.philosophy-subheading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.philosophy-subheading h3 {
  margin: 3px 0 0;
  color: #edf0ed;
  font-size: 22px;
}

.philosophy-subheading > p {
  max-width: 320px;
  margin: 0;
  color: #82979f;
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
}

.philosophy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(142, 169, 180, .13);
}

.philosophy-grid article,
.philosophy-grid article:nth-child(even),
.philosophy-grid article:nth-child(n + 3) {
  min-height: 146px;
  padding: 13px 12px;
  border: 0;
  background: #081b29;
}

.philosophy-grid article > span {
  color: #b89e70;
  font-size: 9px;
}

.philosophy-grid h3 {
  margin: 10px 0 7px;
  font-size: 13px;
}

.philosophy-grid p {
  color: #7f949d;
  font-size: 10px;
  line-height: 1.6;
}

.philosophy-closing {
  margin-top: 14px;
  padding-top: 12px;
}

.philosophy-closing p {
  font-size: 10px;
}

.philosophy-closing strong {
  font-size: 10px;
}

.method-section {
  margin-top: 17px;
  padding-top: 0;
  border-top: 0;
}

.method-section > .section-heading {
  margin-bottom: 8px;
}

.method-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  background: transparent;
}

.method-grid article,
.method-grid article + article {
  min-width: 0;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(142, 169, 180, .17);
  border-radius: 7px;
  background: linear-gradient(155deg, rgba(9, 29, 45, .88), rgba(5, 18, 30, .9));
}

.method-grid span {
  color: #b89e70;
}

.method-grid h3 {
  margin: 9px 0 6px;
  font-size: 14px;
}

.method-grid p {
  font-size: 10px;
  line-height: 1.6;
}

.method-note-v29 {
  margin-top: 8px;
  padding: 9px 12px;
  font-size: 9px;
}

.record-section {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  margin-top: 16px;
  padding: 15px 0;
}

.record-section h2 {
  font-size: 20px;
}

.record-section ul {
  gap: 7px 20px;
}

.record-section li {
  font-size: 10px;
  line-height: 1.5;
}

.disclaimer {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.6;
}

footer {
  padding-top: 12px;
}

@media (max-width: 1180px) {
  .zero-sense-section {
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 0;
  }

  .zero-sense-dashboard {
    grid-column: 1 / -1;
  }

  .zero-sense-system {
    position: static;
    grid-column: 2;
  }

  .analysis-pair,
  .tables-pair {
    grid-template-columns: 1fr;
  }

  .principles-execution-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  main,
  footer {
    width: calc(100vw - 24px);
  }

  .zero-sense-section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 14px 17px;
  }

  .zero-sense-intro {
    flex-direction: row;
    gap: 8px;
    padding-top: 0;
  }

  .zero-sense-copy h2 {
    font-size: 30px;
  }

  .zero-sense-copy .zero-sense-core {
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.35;
  }

  .zero-sense-copy .zero-sense-sub {
    font-size: 12px;
  }

  .zero-sense-dashboard,
  .zero-sense-system {
    grid-column: auto;
  }

  .analysis-pair,
  .tables-pair {
    gap: 18px;
    margin-top: 16px;
  }

  .analysis-pair .section-heading,
  .tables-pair .section-heading {
    min-height: 0;
  }

  .analysis-pair .period-control {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .analysis-pair .chart-wrap {
    min-height: 0;
  }

  .analysis-pair .drawdown-panel {
    min-height: 0;
  }

  .analysis-pair .chart-hint {
    max-width: none;
    text-align: left;
  }

  .tables-pair .table-scroll {
    overflow-x: auto;
  }

  .tables-pair .annual-table {
    min-width: 0;
  }

  .tables-pair .period-table {
    min-width: 640px;
  }

  .principle-summary,
  .execution-standard {
    padding: 14px;
  }

  .philosophy-subheading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .philosophy-subheading > p {
    text-align: left;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-grid article,
  .philosophy-grid article:nth-child(even),
  .philosophy-grid article:nth-child(n + 3) {
    min-height: 0;
    border-top: 1px solid rgba(142, 169, 180, .13);
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article,
  .method-grid article + article {
    min-height: 0;
    border-left: 1px solid rgba(142, 169, 180, .17);
  }

  .record-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* V2.9.1 brand revision: Time Series Gravity and zero-sentiment quant. */
.brand-logo-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(207, 181, 125, .26);
  border-radius: 8px;
  object-fit: cover;
  mix-blend-mode: screen;
}

.brand-wordmark-v29 strong {
  letter-spacing: .13em;
}

.brand-sub-v29 {
  letter-spacing: .12em;
}

.hero.hero-v29.tsg-hero {
  min-height: 0;
  grid-template-columns: minmax(280px, .92fr) minmax(0, 1.3fr) minmax(230px, .72fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 52px);
  margin: 22px 0 18px;
  padding: 24px 0 28px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(142, 169, 180, .2);
  border-radius: 0;
  background: transparent;
}

.tsg-hero::before {
  display: none;
}

.tsg-hero-brand {
  display: grid;
  justify-items: start;
  gap: 9px;
  min-width: 0;
}

.tsg-hero-brand > img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .22));
  mix-blend-mode: screen;
}

.tsg-system-id {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #718892;
  font: 600 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

.tsg-system-id b {
  color: #aab8bc;
  font-weight: 650;
}

.tsg-system-id span {
  padding-left: 8px;
  border-left: 1px solid rgba(142, 169, 180, .22);
  color: #8fa3aa;
}

.hero-copy-v29.tsg-hero-copy {
  align-items: flex-start;
  padding: 0;
}

.tsg-hero-copy h1 {
  font-size: clamp(34px, 3.35vw, 50px);
}

.tsg-hero-copy .hero-sub {
  max-width: 690px;
}

.tsg-rule-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0 0;
  color: #d7c39d;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
}

.tsg-rule-line i {
  width: 28px;
  height: 1px;
  background: rgba(201, 173, 125, .52);
}

.hero-principle-v29.tsg-hero-aside {
  align-self: stretch;
  padding: 4px 0 4px clamp(18px, 2vw, 28px);
  border-left: 1px solid rgba(142, 169, 180, .2);
  background: transparent;
}

.tsg-hero-aside > span {
  color: #b89f75;
}

.tsg-hero-aside > strong {
  color: #e8e7e1;
  font-size: 17px;
}

.tsg-hero-aside > p:not(.data-status) {
  margin: 10px 0 0;
  color: #7f949d;
  font-size: 10px;
  line-height: 1.65;
}

.zero-sense-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(22px, 3vw, 46px);
  margin: 18px 0;
  padding: 27px 0 25px;
  border-top: 1px solid rgba(142, 169, 180, .16);
  border-bottom: 1px solid rgba(142, 169, 180, .16);
  background:
    linear-gradient(90deg, rgba(201, 173, 125, .035), transparent 34%),
    rgba(6, 23, 36, .18);
}

.zero-sense-intro {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 13px;
}

.zero-sense-intro .eyebrow {
  margin: 0;
  color: #bb9c67;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: .13em;
}

.zero-sense-intro > span {
  color: #627983;
  font: 600 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .1em;
}

.zero-sense-copy h2 {
  margin: 0;
  color: #f0eee8;
  font: 750 clamp(28px, 2.8vw, 40px)/1.1 "Songti SC", SimSun, serif;
  letter-spacing: .04em;
}

.zero-sense-copy > p {
  margin: 9px 0 0;
  color: #d8c297;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 650;
  line-height: 1.45;
}

.zero-sense-rules {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 15px;
  color: #d8c297;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: .05em;
}

.zero-sense-rules i {
  width: 34px;
  height: 1px;
  flex: 0 0 34px;
  background: rgba(201, 173, 125, .55);
}

.zero-sense-dashboard {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(142, 169, 180, .18);
  background:
    linear-gradient(145deg, rgba(201, 173, 125, .045), transparent 45%),
    rgba(7, 23, 36, .68);
}

.zero-sense-dashboard > *,
.zero-sense-status {
  width: 100%;
  min-width: 0;
}

.zero-sense-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(142, 169, 180, .16);
}

.zero-sense-status > div {
  min-width: 0;
  padding: 0 10px 10px;
  border-left: 1px solid rgba(142, 169, 180, .16);
}

.zero-sense-status > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.zero-sense-status small,
.zero-sense-status b,
.zero-sense-days small,
.zero-sense-days b {
  display: block;
}

.zero-sense-status small,
.zero-sense-days p span {
  color: #718892;
  font: 600 8px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .07em;
}

.zero-sense-status b {
  margin-top: 4px;
  color: #e3e6e2;
  font-size: 12px;
  font-weight: 720;
}

.zero-sense-days p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 7px;
}

.zero-sense-days p span {
  color: #82979f;
}

.zero-sense-days p b {
  color: #d8c297;
  font-size: 11px;
  font-weight: 680;
}

.zero-sense-days table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: rgba(3, 14, 24, .32);
}

.zero-sense-days th,
.zero-sense-days td {
  width: 50%;
  padding: 8px 10px;
  border: 1px solid rgba(142, 169, 180, .14);
  text-align: left;
}

.zero-sense-days th {
  color: #8ca0a8;
  font-size: 9px;
  font-weight: 620;
}

.zero-sense-days td {
  color: #e7e8e3;
  font-size: 15px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.zero-sense-system {
  grid-column: 2 / -1;
  margin: 0;
  color: #617782;
  font: 600 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

.zero-sense-system span {
  padding-left: 7px;
  border-left: 1px solid rgba(142, 169, 180, .2);
}

footer small {
  margin-left: 10px;
  color: #61747d;
  font-size: 9px;
  font-weight: 500;
}

@media (max-width: 1180px) {
  .hero.hero-v29.tsg-hero {
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  }

  .hero-principle-v29.tsg-hero-aside {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px 18px;
    padding: 13px 0 0;
    border-top: 1px solid rgba(142, 169, 180, .16);
    border-left: 0;
  }

  .tsg-hero-aside > strong br {
    display: none;
  }

  .tsg-hero-aside .data-status {
    grid-column: 2;
    margin: 0;
  }

  .zero-sense-section {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .zero-sense-dashboard,
  .zero-sense-system {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .brand-logo-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-wordmark-v29 strong {
    font-size: 18px;
  }

  .hero.hero-v29.tsg-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 12px 0;
    padding: 12px 0 16px;
  }

  .tsg-hero-brand {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    width: 100%;
  }

  .tsg-hero-brand > img {
    width: min(100%, 286px);
  }

  .tsg-system-id {
    justify-self: end;
    font-size: 8px;
    writing-mode: vertical-rl;
  }

  .tsg-system-id span {
    padding-top: 7px;
    padding-left: 0;
    border-top: 1px solid rgba(142, 169, 180, .2);
    border-left: 0;
  }

  .hero-copy-v29.tsg-hero-copy {
    padding: 0;
  }

  .tsg-hero-copy h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .tsg-rule-line {
    gap: 8px;
    margin-top: 12px;
    font-size: 10px;
  }

  .hero-principle-v29.tsg-hero-aside {
    display: block;
    grid-column: auto;
    padding: 4px 0 0;
    border-top: 0;
  }

  .tsg-hero-aside > span,
  .tsg-hero-aside > strong,
  .tsg-hero-aside > p:not(.data-status) {
    display: none;
  }

  .tsg-hero-aside .data-status {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(142, 169, 180, .16);
  }

  .zero-sense-section {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 21px 0 20px;
  }

  .zero-sense-intro {
    flex-direction: row;
  }

  .zero-sense-copy h2 {
    font-size: 30px;
  }

  .zero-sense-copy > p {
    font-size: 18px;
  }

  .zero-sense-rules {
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
  }

  .zero-sense-rules i {
    width: 21px;
    flex-basis: 21px;
  }

  .zero-sense-dashboard {
    padding: 11px;
  }

  .zero-sense-system {
    grid-column: auto;
  }

  footer span {
    line-height: 1.7;
  }

  footer small {
    display: block;
    margin: 3px 0 0;
  }
}


/* === V2.0 premium homepage polish: align closer to approved image concept === */
:root{
  --premium-bg-1:#071a2b;
  --premium-bg-2:#08111d;
  --premium-panel:#081a29;
  --premium-panel-2:#0b2032;
  --premium-soft:#93a9b6;
  --premium-text:#eef2f3;
  --premium-gold:#d5b47a;
  --premium-gold-2:#f0d59d;
  --premium-gold-line:rgba(213,180,122,.48);
  --premium-cyan:#58d7ea;
  --premium-purple:#a596ff;
  --premium-pink:#ff7bb6;
}
body{
  background:
    radial-gradient(60% 30% at 50% 0%, rgba(27,80,112,.22), transparent 70%),
    radial-gradient(35% 24% at 15% 20%, rgba(213,180,122,.08), transparent 70%),
    radial-gradient(35% 24% at 85% 14%, rgba(68,117,168,.12), transparent 70%),
    linear-gradient(180deg,#06121f 0%,#071726 35%,#06131e 100%);
}
.site-header{
  position:sticky; top:0; z-index:20;
  min-height:64px;
  background:linear-gradient(180deg, rgba(5,15,24,.96), rgba(6,17,28,.92));
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(112,146,168,.16);
  box-shadow:0 6px 24px rgba(0,0,0,.22);
}
.brand-logo-mark{
  width:44px; height:44px; border-radius:10px;
  border:1px solid rgba(213,180,122,.34);
  box-shadow:0 0 0 1px rgba(255,255,255,.03) inset, 0 10px 18px rgba(0,0,0,.22);
}
.brand-wordmark-v29 strong{font-size:21px;letter-spacing:.09em;}
.brand-sub-v29{font-size:8.5px;color:#9cb1bc;}
.desktop-nav a{font-size:13px;font-weight:700;color:#b8c5cc;}
.desktop-nav a.active,.desktop-nav a:hover{color:#fff8e9;}
.desktop-nav a.active::after,.desktop-nav a:hover::after{height:2px;background:linear-gradient(90deg, transparent, var(--premium-gold), transparent);box-shadow:0 0 14px rgba(213,180,122,.45);}
.header-status{border-radius:12px;padding-inline:14px;min-height:36px;background:rgba(8,22,35,.86);border:1px solid rgba(120,151,167,.22);}
main,footer{width:min(1450px, calc(100vw - 36px));}
.simulation-notice-v29{
  position:relative;
  display:flex; align-items:center; gap:18px;
  min-height:44px; margin:16px 0 14px; padding:12px 18px;
  border:1px solid rgba(213,180,122,.35); border-radius:10px;
  background:linear-gradient(180deg, rgba(14,26,38,.92), rgba(10,21,32,.88));
  box-shadow:0 0 0 1px rgba(255,255,255,.02) inset, 0 12px 22px rgba(0,0,0,.18);
}
.simulation-notice-v29::before{content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:linear-gradient(90deg, rgba(213,180,122,.12), transparent 18%, transparent 82%, rgba(213,180,122,.08));}
.simulation-notice-v29 > span{white-space:nowrap; color:#e0c38c; font-weight:800; letter-spacing:.18em;}
.simulation-notice-v29 > p{font-size:12px; color:#b6c0c7; margin:0;}
.zero-sense-section{
  grid-template-columns: 160px minmax(0,1.05fr) minmax(420px,.92fr);
  gap:30px; min-height:250px; padding:26px 26px 22px; margin:14px 0 18px;
  border:1px solid rgba(121,156,173,.18); border-radius:14px;
  background:
    radial-gradient(42% 80% at 0% 54%, rgba(213,180,122,.12), transparent 74%),
    radial-gradient(40% 80% at 100% 40%, rgba(59,120,162,.16), transparent 75%),
    linear-gradient(145deg, rgba(6,26,43,.96), rgba(4,17,30,.98));
  box-shadow:0 18px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.015) inset;
}
.zero-sense-section::before{top:42%;left:-6%;right:44%;height:60%;opacity:.8;border-top:1px solid rgba(231,200,139,.36);border-bottom:1px solid rgba(137,189,216,.1);border-left:none;border-right:none;transform:rotate(-6deg);}
.zero-sense-section::after{top:44%;left:58%;right:-8%;height:54%;opacity:.68;border-top:1px solid rgba(231,200,139,.26);border-bottom:1px solid rgba(137,189,216,.09);border-left:none;border-right:none;transform:rotate(5deg);}
.zero-sense-intro{padding-top:14px; align-self:start;}
.zero-sense-intro .eyebrow{font-size:10px;color:#d6b67d;}
.zero-sense-intro > span{color:#7f94a0;font-size:10px;letter-spacing:.16em;}
.zero-sense-copy{align-self:center; padding-top:4px;}
.zero-sense-copy h2{margin-bottom:6px; color:#f2ede0; font-size:56px; letter-spacing:.03em; text-shadow:0 8px 18px rgba(0,0,0,.18);}
.zero-sense-copy .zero-sense-core{margin-top:2px; max-width:760px; color:#efd6a2; font-size:27px; font-weight:760; line-height:1.3;}
.zero-sense-copy .zero-sense-sub{margin-top:6px; color:#d5dee4; font-size:14px; font-weight:600; opacity:.92;}
.zero-sense-tags{margin-top:18px; gap:12px;}
.zero-sense-tags span{min-height:46px; padding:0 20px; border:1px solid rgba(227,193,128,.6); background:linear-gradient(180deg, rgba(221,185,121,.14), rgba(221,185,121,.05)); color:#f0dbaf; font-size:13px; font-weight:750; letter-spacing:.04em; box-shadow:0 8px 18px rgba(0,0,0,.16), 0 0 0 1px rgba(255,255,255,.02) inset;}
.zero-sense-tags i{font-size:13px; color:#f0d59d;}
.zero-sense-dashboard{padding:16px 18px; border:1px solid rgba(225,192,130,.6); border-radius:18px; background:linear-gradient(180deg, rgba(23,32,42,.86), rgba(7,20,31,.9)); box-shadow:0 0 0 1px rgba(255,255,255,.04) inset, 0 20px 35px rgba(0,0,0,.22), 0 0 30px rgba(213,180,122,.07);}
.zero-sense-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-bottom:1px solid rgba(145,169,181,.18);}
.zero-sense-status > div{padding:6px 14px 14px;}
.zero-sense-status > div+div{border-left:1px solid rgba(145,169,181,.18);}
.zero-sense-status small,.zero-sense-days span,.zero-sense-days th{color:#9fb0b8;font-size:11px;font-weight:650;}
.zero-sense-status b{display:block;margin-top:4px;color:#f2f4f3;font-size:18px;}
.zero-sense-days p{display:flex;justify-content:space-between;align-items:center;margin:14px 2px 8px;color:#adbac0;}
.zero-sense-days p b{color:#ecc67f;font-size:20px;}
.zero-sense-days table{width:100%;border-collapse:collapse;border:1px solid rgba(145,169,181,.18);border-radius:10px;overflow:hidden;}
.zero-sense-days th,.zero-sense-days td{padding:12px 14px; text-align:left;}
.zero-sense-days th+th,.zero-sense-days td+td{border-left:1px solid rgba(145,169,181,.18);}
.zero-sense-days td{color:#f3f5f4;font-size:20px;font-weight:760;}
.zero-sense-system{bottom:14px; left:214px; color:#91a5b0; font-size:11px;}
.cohort-switch{margin-top:0; gap:0; padding:0; border:none; background:transparent;}
.cohort-switch button{min-height:42px; border-radius:0; border:1px solid rgba(126,153,167,.22); background:linear-gradient(180deg, rgba(9,24,37,.92), rgba(8,20,32,.86));}
.cohort-switch button:first-child{border-radius:10px 0 0 10px;}
.cohort-switch button:last-child{border-radius:0 10px 10px 0;}
.cohort-switch button[aria-pressed='true']{background:linear-gradient(90deg, rgba(221,186,124,.22), rgba(221,186,124,.08) 26%, rgba(12,26,39,.94) 62%); border-color:rgba(221,186,124,.55); box-shadow:0 0 0 1px rgba(255,255,255,.03) inset, 0 10px 18px rgba(0,0,0,.14);}
.cohort-switch button span{font-size:15px;font-weight:760;}
.cohort-switch button small{font-size:12px;}
.model-grid{grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px;}
.model-card{padding:14px 16px 12px; border:1px solid color-mix(in srgb, var(--model-color) 55%, rgba(255,255,255,.1)); border-radius:14px; background:linear-gradient(180deg, rgba(9,24,38,.96), rgba(7,20,31,.98)); box-shadow:0 10px 24px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.02) inset; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;}
.model-card::before{height:1px; left:14px; right:14px; top:auto; bottom:auto; background:linear-gradient(90deg, rgba(255,255,255,0), color-mix(in srgb, var(--model-color) 92%, white 8%), rgba(255,255,255,0)); opacity:.9;}
.model-card:hover,.model-card.selected{transform:translateY(-2px); box-shadow:0 14px 28px rgba(0,0,0,.22), 0 0 0 1px color-mix(in srgb, var(--model-color) 30%, rgba(255,255,255,.05)) inset, 0 0 26px color-mix(in srgb, var(--model-color) 18%, transparent);}
.card-heading{align-items:flex-start; gap:14px;}
.card-model-code{color:color-mix(in srgb, var(--model-color) 78%, white 10%); font-weight:800;}
.card-heading h3{font-size:24px; margin-top:4px;}
.card-kicker{font-size:12px; color:#97aab3;}
.sparkline{min-width:142px; width:142px; padding-top:4px; opacity:.95;}
.card-main{margin-top:10px;}
.card-main-label{font-size:12px;color:#b4c0c7;}
.card-main-value{font-size:32px;line-height:1.05; margin-top:8px;}
.card-compound-reference{margin-top:14px; padding-top:10px; border-top:1px solid rgba(120,147,161,.18);}
.card-compound-reference span{font-size:12px;}
.card-compound-reference em{margin-right:8px; color:#e8b273; font-style:normal; font-weight:800; letter-spacing:.12em;}
.card-cumulative{margin-top:8px;font-size:12px;}
.card-metrics{grid-template-columns:1.25fr .95fr; gap:10px; margin-top:10px;}
.card-metric{padding-top:8px; border-top:1px solid rgba(120,147,161,.16);}
.card-metric > span:first-child{font-size:12px;color:#9eb0b9;}
.card-latest-assets > b,.card-drawdown > b{font-size:18px;margin-top:3px;}
.card-daily-change{display:flex;align-items:baseline;gap:6px; margin-top:6px; font-size:12px; flex-wrap:wrap;}
.card-daily-change em{font-style:normal;color:#91a2ac;}
.card-daily-change b{font-size:14px;}
.card-latest-assets small{display:block;margin-top:5px;color:#8699a5;font-size:11px;}
.card-status-row{gap:8px;margin-top:12px;}
.card-status-chip{min-height:34px; padding:0 10px; border-radius:10px; background:rgba(7,20,32,.72); border:1px solid rgba(121,145,157,.22);}
.card-status-chip em{font-style:normal; font-size:11px;}
.card-status-chip b{font-size:13px;}
.card-status-chip.active{border-color:rgba(86,215,234,.36); background:rgba(88,215,234,.1);}
.card-status-chip.blocked{border-color:rgba(221,186,124,.42); background:rgba(221,186,124,.09);}
.card-status-chip.empty{border-color:rgba(145,169,181,.24); background:rgba(145,169,181,.08);}
.card-status-date{display:block; margin-top:8px; color:#8fa3ae; font-size:11px;}
.analysis-pair,.tables-pair{gap:16px;margin-top:18px;}
.analysis-pair > section,.tables-pair > section,.principle-summary,.execution-standard,.method-grid article,.record-section{border:1px solid rgba(121,156,173,.18); border-radius:14px; background:linear-gradient(180deg, rgba(8,23,36,.95), rgba(6,19,31,.96)); box-shadow:0 14px 26px rgba(0,0,0,.12), 0 0 0 1px rgba(255,255,255,.02) inset;}
.analysis-pair > section,.tables-pair > section{padding:16px 16px 14px;}
.analysis-pair .section-heading,.tables-pair .section-heading{min-height:auto; margin-bottom:10px;}
.analysis-pair .section-heading h2,.tables-pair .section-heading h2,.philosophy-heading h2,.section-heading h2{color:#f1f4f3; font-size:24px;}
.eyebrow{color:#d8b67a;}
.section-aside{color:#98acb5; font-size:12px;}
.section-icon{color:#e5c07f;}
.analysis-pair .chart-toolbar{gap:8px;}
.analysis-pair .segmented,.tables-pair .segmented,.analysis-pair .period-control{border-radius:12px; background:rgba(8,20,31,.76); border:1px solid rgba(121,156,173,.18);}
.analysis-pair .segmented button,.analysis-pair .period-control button{border-radius:10px;}
.analysis-pair .segmented button[aria-pressed='true'],.analysis-pair .period-control button[aria-pressed='true']{background:linear-gradient(180deg, rgba(221,186,124,.23), rgba(221,186,124,.08)); border-color:rgba(221,186,124,.38); color:#fff1ce; box-shadow:0 0 0 1px rgba(255,255,255,.02) inset;}
.analysis-pair .chart-panel,.analysis-pair .drawdown-panel,.tables-pair .table-panel{border-radius:12px; background:linear-gradient(180deg, rgba(7,19,31,.92), rgba(5,18,30,.96)); border:1px solid rgba(121,156,173,.15); overflow:hidden;}
.analysis-pair .chart-wrap{min-height:325px;}
#navChart,#drawdownChart{display:block; width:100%; height:auto; background:linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,0));}
.analysis-pair .chart-footer{border-top:1px solid rgba(121,156,173,.14);}
.analysis-pair .legend button{padding:5px 8px; border-radius:999px; background:rgba(9,21,33,.65);}
.risk-pill{padding:8px 12px; border-radius:999px; background:rgba(221,186,124,.11); border:1px solid rgba(221,186,124,.3); color:#efdfbb;}
.tables-pair th,.tables-pair td{padding:10px 8px; font-size:11px;}
.tables-pair thead th{background:linear-gradient(180deg, rgba(26,56,75,.48), rgba(21,46,61,.34)); color:#d8e2e7;}
.tables-pair tbody tr:nth-child(even){background:rgba(22,48,65,.16);}
.period-active-heading{box-shadow:inset 0 0 0 1px rgba(221,186,124,.24)!important;}
.principles-execution-grid{gap:16px; align-items:stretch;}
.principle-summary,.execution-standard{padding:18px;}
.philosophy-heading h2{margin-top:4px;}
.philosophy-lead{font-size:12px; color:#a7b6bd;}
.principle-manifesto-v29{padding:18px; border-left:0; border-radius:12px; border:1px solid rgba(221,186,124,.28); background:linear-gradient(180deg, rgba(221,186,124,.08), rgba(221,186,124,.03));}
.principle-manifesto-v29 > strong{font-size:28px; line-height:1.45; color:#f4ead1;}
.principle-manifesto-v29 > p{font-size:12px;color:#9db0ba;}
.philosophy-closing{display:flex; justify-content:space-between; gap:20px; align-items:flex-end; border-top:1px solid rgba(121,156,173,.14);}
.philosophy-closing p,.philosophy-closing strong{font-size:12px;line-height:1.7;}
.execution-standard{display:flex;flex-direction:column;}
.philosophy-subheading h3{font-size:28px;}
.philosophy-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; border-radius:12px; overflow:hidden; background:rgba(121,156,173,.14);}
.philosophy-grid article,.philosophy-grid article:nth-child(even),.philosophy-grid article:nth-child(n+3){min-height:168px; padding:16px 14px; background:linear-gradient(180deg, rgba(9,24,36,.98), rgba(7,18,28,.98));}
.philosophy-grid article>span{font-size:20px;font-weight:800;color:#ddb56d;}
.philosophy-grid h3{font-size:16px;color:#f0f3f3;}
.philosophy-grid p{font-size:11px;color:#95aab4;}
.method-section{margin-top:18px;}
.method-grid{gap:12px;}
.method-grid article,.method-grid article+article{border-radius:12px; min-height:146px; box-shadow:0 10px 20px rgba(0,0,0,.12) inset;}
.method-grid h3{font-size:16px;color:#f0f3f3;}
.method-grid p{font-size:11px;color:#98adb6;}
.method-note-v29{border-radius:10px; border:1px solid rgba(121,156,173,.14); background:rgba(10,23,35,.72); color:#9fb2bb; font-size:10px;}
.record-section{align-items:start; padding:18px 20px; margin-top:18px;}
.record-section h2{color:#f0f3f3;}
.record-section ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; list-style:none; padding:0; margin:0;}
.record-section li{position:relative; padding-left:18px; color:#9fb0b8; font-size:12px;}
.record-section li::before{content:"•"; position:absolute; left:0; top:0; color:#ddb56d;}
.disclaimer{margin-top:10px; font-size:10px; color:#7f96a2;}
footer{width:min(1450px, calc(100vw - 36px)); color:#8196a1;}
@media (max-width: 1220px){
  .model-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .zero-sense-section{grid-template-columns:120px 1fr; }
  .zero-sense-dashboard{grid-column:1/-1;}
  .zero-sense-system{position:static; grid-column:2;}
  .analysis-pair,.tables-pair,.principles-execution-grid{grid-template-columns:1fr;}
}
@media (max-width: 720px){
  main,footer{width:calc(100vw - 20px);}
  .simulation-notice-v29{display:block;padding:12px 14px;}
  .simulation-notice-v29 > span{display:block;margin-bottom:8px;}
  .zero-sense-section{grid-template-columns:1fr; padding:18px 14px; gap:14px; min-height:0;}
  .zero-sense-copy h2{font-size:42px;}
  .zero-sense-copy .zero-sense-core{font-size:24px;}
  .zero-sense-dashboard{padding:14px;}
  .zero-sense-status{grid-template-columns:1fr;}
  .zero-sense-status > div+div{border-left:0;border-top:1px solid rgba(145,169,181,.18);}
  .zero-sense-days table,.zero-sense-days thead,.zero-sense-days tbody,.zero-sense-days tr{display:block;width:100%;}
  .zero-sense-days th,.zero-sense-days td{display:block;width:100%;border-left:0!important;}
  .cohort-switch{display:grid;grid-template-columns:1fr;}
  .cohort-switch button:first-child,.cohort-switch button:last-child{border-radius:10px;}
  .model-grid{grid-template-columns:1fr;}
  .analysis-pair > section,.tables-pair > section,.principle-summary,.execution-standard{padding:14px;}
  .analysis-pair .chart-wrap{min-height:240px;}
  .principle-manifesto-v29 > strong{font-size:22px;}
  .philosophy-grid{grid-template-columns:1fr;}
  .record-section ul{grid-template-columns:1fr;}
}


/* =====================================================================
   V2.1 PREMIUM DETAIL PASS — visual-only refinement against approved art
   Scope: navigation, simulation notice, zero-sense light trails, summary
   panel, cohort switch, and nested table border cleanup.
   ===================================================================== */
:root {
  --tsg-gold-hi: #f0d9a7;
  --tsg-gold-mid: #d2ad70;
  --tsg-gold-low: #927044;
  --tsg-blue-edge: rgba(111, 160, 187, .24);
}

/* Active navigation: a lit brass tab, not an ordinary underline. */
.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px 8px 2px 2px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.desktop-nav a.active {
  color: #fff1d2;
  border-color: rgba(220, 184, 119, .34);
  border-bottom-color: rgba(243, 211, 157, .72);
  background:
    linear-gradient(180deg, rgba(235, 201, 142, .17), rgba(199, 156, 88, .055) 62%, rgba(8, 24, 38, .12));
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 218, .13),
    inset 0 -1px 0 rgba(235, 197, 131, .15),
    0 0 18px rgba(213, 180, 122, .075);
  text-shadow: 0 0 12px rgba(246, 215, 163, .22);
}
.desktop-nav a.active::before {
  position: absolute;
  right: 22%;
  bottom: -7px;
  left: 22%;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(242, 202, 132, .46), transparent 72%);
  content: "";
  pointer-events: none;
}
.desktop-nav a.active::after {
  right: 15%;
  bottom: -1px;
  left: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b88c50 18%, #ffe8b7 50%, #b88c50 82%, transparent);
  box-shadow: 0 0 8px rgba(245, 205, 137, .62), 0 0 17px rgba(225, 180, 107, .24);
}
.desktop-nav a:not(.active):hover {
  color: #f0dfbd;
  border-color: rgba(214, 180, 122, .16);
  background: rgba(213, 180, 122, .045);
}

/* Simulation disclosure: separate the gold label from its explanatory text. */
.simulation-notice-v29 {
  position: relative;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 48px;
  padding: 0 18px 0 0;
  overflow: hidden;
  border: 1px solid rgba(218, 185, 128, .4);
  border-left: 2px solid #e3c58c;
  border-radius: 9px;
  background:
    linear-gradient(100deg, rgba(211, 171, 105, .13), rgba(13, 30, 43, .9) 23%, rgba(7, 23, 37, .96) 76%, rgba(190, 148, 86, .055)),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 60%);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 222, .08),
    0 8px 22px rgba(0, 0, 0, .14),
    0 0 15px rgba(204, 165, 104, .045);
}
.simulation-notice-v29::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, .025);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255,255,255,.025), transparent 20%, transparent 84%, rgba(238,205,151,.035));
  content: "";
  pointer-events: none;
}
.simulation-notice-v29 > span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-right: 1px solid rgba(220, 185, 126, .35);
  color: #e5c58d;
  font-size: 9px;
  letter-spacing: .14em;
  white-space: nowrap;
  background: linear-gradient(90deg, rgba(218, 180, 115, .09), rgba(218, 180, 115, .015));
}
.simulation-notice-v29 > p {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 8px 18px 8px 20px;
  color: #aebdc4;
  font-size: 11px;
  line-height: 1.55;
}
.simulation-notice-v29 strong {
  margin-right: 5px;
  color: #f0e5ce;
  font-weight: 800;
  white-space: nowrap;
}

/* Hero: replace the two thin CSS ellipses with a layered, flowing light field. */
.zero-sense-section {
  isolation: isolate;
  min-height: 218px;
  border-color: rgba(113, 153, 176, .2);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 46% 115% at 0% 55%, rgba(214, 177, 111, .105), transparent 72%),
    radial-gradient(ellipse 40% 120% at 100% 46%, rgba(58, 115, 153, .16), transparent 73%),
    linear-gradient(145deg, rgba(7, 27, 44, .98), rgba(4, 17, 30, .985));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 15px 34px rgba(0,0,0,.14);
}
.zero-sense-section::before,
.zero-sense-section::after {
  display: none !important;
  content: none !important;
}
.zero-sense-waves {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  display: block;
  width: 100%;
  height: 100%;
  opacity: .92;
  pointer-events: none;
}
.zero-sense-section > *:not(.zero-sense-waves) {
  position: relative;
  z-index: 2;
}
.zero-sense-intro .eyebrow {
  color: #d5b47c;
  text-shadow: 0 0 12px rgba(213, 180, 122, .16);
}
.zero-sense-copy h2 {
  color: #f3eee3;
  text-shadow: 0 3px 16px rgba(0,0,0,.26);
}
.zero-sense-copy .zero-sense-core {
  color: #efd29a;
  text-shadow: 0 2px 12px rgba(213, 180, 122, .12);
}
.zero-sense-copy .zero-sense-sub {
  color: #b7c5cc;
}
.zero-sense-tags span {
  min-height: 29px;
  padding: 4px 13px;
  border-color: rgba(223, 190, 132, .48);
  background: linear-gradient(180deg, rgba(225, 190, 126, .13), rgba(225, 190, 126, .035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 4px 13px rgba(0,0,0,.13);
  color: #e8d4ad;
}

/* Right-hand summary: metallic glass panel with cleaner hierarchy. */
.zero-sense-dashboard {
  position: relative;
  overflow: hidden;
  padding: 15px 17px 14px;
  border: 1px solid rgba(224, 190, 132, .72);
  border-radius: 15px;
  background:
    radial-gradient(ellipse 90% 90% at 0% 0%, rgba(224, 187, 121, .14), transparent 62%),
    linear-gradient(145deg, rgba(24, 37, 48, .94), rgba(6, 21, 34, .97) 58%, rgba(7, 23, 36, .96));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, .15),
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 14px 30px rgba(0,0,0,.25),
    0 0 24px rgba(218, 181, 119, .105);
}
.zero-sense-dashboard::before {
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 13px;
  background: linear-gradient(115deg, rgba(255,255,255,.045), transparent 26%, transparent 78%, rgba(224,190,132,.035));
  content: "";
  pointer-events: none;
}
.zero-sense-dashboard > * { position: relative; z-index: 1; }
.zero-sense-status > div { padding: 3px 13px 11px; }
.zero-sense-status > div:first-child { padding-left: 4px; }
.zero-sense-status > div:last-child { padding-right: 4px; }
.zero-sense-status small { color: #aebdc4; letter-spacing: .06em; }
.zero-sense-status b { color: #f3f4f1; font-size: 17px; font-weight: 780; }
.zero-sense-days p { margin: 10px 2px 7px; }
.zero-sense-days p span { color: #b5c2c8; }
.zero-sense-days p b { color: #e8c37f; font-size: 17px; }
.zero-sense-days table {
  border: 1px solid rgba(131, 163, 181, .22);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(7, 24, 39, .72), rgba(5, 19, 32, .88));
  overflow: hidden;
}
.zero-sense-days th { padding: 8px 12px 6px; color: #a9bbc4; }
.zero-sense-days td { padding: 8px 12px 10px; color: #f0f3f2; font-size: 19px; }
.zero-sense-system { color: #8ea4af; letter-spacing: .08em; }

/* Cohort selector: one joined instrument with a brushed-gold selected half. */
.cohort-switch {
  position: relative;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid rgba(126, 158, 177, .3);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8, 24, 38, .96), rgba(5, 18, 30, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 20px rgba(0,0,0,.12);
}
.cohort-switch button {
  position: relative;
  min-height: 44px;
  padding: 7px 14px;
  gap: 10px;
  border: 0;
  border-right: 1px solid rgba(128, 157, 173, .2);
  background: transparent;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.cohort-switch button:last-child { border-right: 0; }
.cohort-switch button span { color: #c0cbd0; font-size: 13px; font-weight: 780; }
.cohort-switch button small { color: #8fa5b0; font-size: 10px; }
.cohort-switch button[aria-pressed="true"] {
  color: #172636;
  border: 1px solid rgba(244, 220, 178, .78);
  background:
    linear-gradient(180deg, rgba(255, 239, 204, .94) 0%, rgba(218, 185, 128, .96) 24%, rgba(171, 132, 78, .97) 56%, rgba(208, 172, 112, .98) 78%, rgba(241, 219, 179, .96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.62),
    inset 0 -1px 0 rgba(92, 65, 34, .28),
    0 0 16px rgba(216, 180, 118, .19);
}
.cohort-switch button[aria-pressed="true"]::before {
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(110deg, rgba(255,255,255,.17), transparent 28%, transparent 72%, rgba(255,255,255,.08));
  content: "";
  pointer-events: none;
}
.cohort-switch button[aria-pressed="true"] span { color: #172738; }
.cohort-switch button[aria-pressed="true"] small { color: rgba(27, 42, 54, .82); }
.cohort-switch button:not([aria-pressed="true"]):hover { background: rgba(214, 181, 122, .06); }

/* Table cards: remove nested panel borders that create a stray bright corner/strip. */
.tables-pair > section {
  border: 1px solid rgba(213, 180, 122, .26);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 28, 42, .96), rgba(5, 19, 31, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 22px rgba(0,0,0,.14);
}
.tables-pair .table-panel {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}
.tables-pair .table-panel::before,
.tables-pair .table-panel::after,
.returns-section::before,
.returns-section::after {
  display: none !important;
  content: none !important;
}
.tables-pair .period-table th.period-active-heading {
  background: linear-gradient(180deg, rgba(222, 185, 120, .15), rgba(222, 185, 120, .055));
  box-shadow: inset 0 1px rgba(240, 211, 160, .36) !important;
}
.tables-pair .period-table td.period-active-cell {
  background: rgba(218, 180, 116, .045);
  box-shadow: inset 1px 0 rgba(218,180,116,.1), inset -1px 0 rgba(218,180,116,.1) !important;
}

@media (max-width: 1220px) {
  .desktop-nav { gap: 10px; }
  .desktop-nav a { padding-inline: 9px; }
  .zero-sense-waves { opacity: .72; }
}
@media (max-width: 720px) {
  .simulation-notice-v29 { grid-template-columns: 1fr; padding: 0; }
  .simulation-notice-v29 > span { min-height: 34px; border-right: 0; border-bottom: 1px solid rgba(220,185,126,.25); padding-inline: 13px; }
  .simulation-notice-v29 > p { display: block; padding: 9px 13px 11px; }
  .zero-sense-waves { opacity: .42; }
  .zero-sense-dashboard { border-radius: 12px; }
  .cohort-switch { gap: 0; }
  .cohort-switch button { border-right: 0; border-bottom: 1px solid rgba(128,157,173,.18); }
  .cohort-switch button:last-child { border-bottom: 0; }
  .cohort-switch button[aria-pressed="true"] { border-radius: 7px; }
  .tables-pair > section { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .desktop-nav a, .cohort-switch button { transition: none; }
}

/* =====================================================================
   V2.1 R3 — quiet instrument ribbon for the A–D / V9H group selector
   Keeps selection obvious without letting a bright gold plate compete
   with the four model cards below.
   ===================================================================== */
.cohort-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(120, 151, 169, .22);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(10, 27, 40, .97), rgba(5, 17, 28, .99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 9px 22px rgba(0, 0, 0, .14);
}
.cohort-switch button {
  min-height: 42px;
  padding: 7px 17px;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(9, 24, 36, .46), rgba(7, 20, 31, .22));
  box-shadow: none;
  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}
.cohort-switch button + button {
  border: 1px solid transparent;
}
.cohort-switch button span {
  color: #b7c4ca;
  font-size: 13px;
  font-weight: 730;
  letter-spacing: .018em;
  white-space: nowrap;
}
.cohort-switch button span::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border: 1px solid rgba(157, 179, 189, .58);
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(3, 13, 22, .42);
  content: "";
  vertical-align: 1px;
}
.cohort-switch button small {
  color: #7f949e;
  font-size: 10px;
  letter-spacing: .01em;
}
.cohort-switch button[aria-pressed="true"] {
  color: #efe8dc;
  border-color: rgba(215, 178, 115, .34);
  background:
    radial-gradient(ellipse at 92% 0%, rgba(221, 181, 114, .105), transparent 54%),
    linear-gradient(180deg, rgba(28, 40, 47, .96), rgba(8, 24, 35, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 229, .09),
    inset 0 -2px 0 rgba(218, 178, 109, .38),
    0 4px 14px rgba(0, 0, 0, .14);
}
.cohort-switch button[aria-pressed="true"]::before {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, .05), transparent 34%, transparent 70%, rgba(226, 188, 123, .035));
  content: "";
  pointer-events: none;
}
.cohort-switch button[aria-pressed="true"]::after {
  position: absolute;
  top: 0;
  left: 18%;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 216, 171, .64), transparent);
  content: "";
  pointer-events: none;
}
.cohort-switch button[aria-pressed="true"] span {
  color: #efe9dd;
}
.cohort-switch button[aria-pressed="true"] span::before {
  border-color: rgba(237, 207, 151, .86);
  background: #d8b678;
  box-shadow:
    inset 0 0 0 1px rgba(48, 37, 22, .34),
    0 0 7px rgba(219, 183, 119, .28);
}
.cohort-switch button[aria-pressed="true"] small {
  color: #a99a7e;
}
.cohort-switch button:not([aria-pressed="true"]):hover {
  border-color: rgba(146, 169, 180, .16);
  background: rgba(177, 151, 103, .045);
}
.cohort-switch button:focus-visible {
  outline: 1px solid rgba(234, 204, 149, .72);
  outline-offset: -3px;
}

@media (max-width: 720px) {
  .cohort-switch {
    gap: 3px;
    padding: 3px;
  }
  .cohort-switch button {
    min-height: 46px;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
  }
  .cohort-switch button + button {
    border: 1px solid transparent;
  }
}

@media (max-width: 360px) {
  .cohort-switch button {
    gap: 8px;
    padding-inline: 8px;
  }
  .cohort-switch button span {
    font-size: 12px;
  }
  .cohort-switch button small {
    font-size: 9px;
  }
}

/* R3 responsive repair: the premium R2 hero must collapse to one column. */
@media (max-width: 720px) {
  .zero-sense-section {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 18px 14px 17px !important;
  }
  .zero-sense-section > .zero-sense-intro,
  .zero-sense-section > .zero-sense-copy,
  .zero-sense-section > .zero-sense-dashboard,
  .zero-sense-section > .zero-sense-system {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .zero-sense-intro {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 0 !important;
  }
  .zero-sense-copy {
    padding-top: 0 !important;
  }
  .zero-sense-copy h2 {
    font-size: clamp(36px, 10vw, 42px) !important;
  }
  .zero-sense-copy .zero-sense-core {
    font-size: clamp(22px, 7vw, 28px) !important;
  }
  .zero-sense-dashboard {
    position: relative !important;
    padding: 14px !important;
  }
  .zero-sense-status {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .zero-sense-status > div + div {
    border-top: 0 !important;
    border-left: 1px solid rgba(145, 169, 181, .18) !important;
  }
  .zero-sense-days table {
    display: table !important;
    width: 100% !important;
  }
  .zero-sense-days thead {
    display: table-header-group !important;
  }
  .zero-sense-days tbody {
    display: table-row-group !important;
  }
  .zero-sense-days tr {
    display: table-row !important;
  }
  .zero-sense-days th,
  .zero-sense-days td {
    display: table-cell !important;
    width: 50% !important;
  }
  .zero-sense-system {
    position: static !important;
  }
}

@media (max-width: 370px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto 34px !important;
    gap: 5px !important;
    padding-inline: 9px !important;
  }
  .brand {
    gap: 7px !important;
    overflow: hidden;
  }
  .brand-logo-mark {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }
  .brand-copy-v29 {
    min-width: 0;
  }
  .brand-wordmark-v29 strong {
    font-size: 16px !important;
    letter-spacing: .06em !important;
  }
  .header-status {
    min-height: 28px !important;
    padding-inline: 6px !important;
    font-size: 9px !important;
  }
  .zero-sense-section {
    padding-inline: 12px !important;
  }
}

/* =====================================================================
   V2.1 R4 — information hierarchy and chart legibility
   ===================================================================== */
.principles-execution-grid.principles-only {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.principles-only .principle-summary {
  width: 100%;
  padding: 20px 22px 18px;
}
.principles-only .philosophy-closing {
  margin-top: 16px;
}

.analysis-pair .chart-wrap {
  min-height: 0;
  padding: 2px 7px 0;
}
.analysis-pair #navChart,
.analysis-pair #drawdownChart {
  width: 100%;
  height: auto;
  min-height: 270px;
}
.analysis-pair .chart-panel {
  overflow: hidden;
}
.analysis-pair .chart-footer {
  gap: 12px;
  padding: 10px 12px 11px;
}
.analysis-pair .legend button {
  font-size: 10px;
}
.analysis-pair .chart-hint {
  font-size: 9px;
  line-height: 1.55;
}
.analysis-pair .drawdown-panel {
  display: flex;
  flex-direction: column;
}
.analysis-pair .drawdown-panel #drawdownChart {
  flex: 1;
}

.model-card .card-metrics {
  grid-template-columns: minmax(0, 1.28fr) minmax(96px, .72fr);
  gap: 12px;
}
.model-card .card-asset-value {
  font-size: 22px !important;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.card-account-basis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(121, 156, 173, .16);
}
.card-account-basis > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.card-account-basis em {
  color: #8fa3ad;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
}
.card-account-basis b {
  margin: 0;
  color: #e7e1d5;
  font-size: 12px;
  font-weight: 730;
  line-height: 1.3;
  white-space: nowrap;
}
.card-settlement-row {
  margin-top: 10px;
  padding: 9px 10px 8px;
  border: 1px solid rgba(218, 181, 118, .22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(218, 181, 118, .055), rgba(6, 19, 31, .2));
}
.card-settlement-row .card-daily-change {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}
.card-settlement-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.card-settlement-copy em {
  color: #c9d4d9;
  font-size: 11px;
  font-style: normal;
  font-weight: 680;
  line-height: 1.25;
}
.card-settlement-copy small {
  color: #7f949e;
  font-size: 10px;
  line-height: 1.2;
}
.card-settlement-row .card-daily-change b {
  font-size: 14px;
  white-space: nowrap;
}
.card-settlement-row .card-daily-change > span:last-child {
  font-size: 12px;
  white-space: nowrap;
}
.card-settlement-row > p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 7px 0 0;
  color: #8fa4ae;
  font-size: 10px;
  line-height: 1.45;
}
.card-settlement-row > p strong {
  flex: 0 0 auto;
  color: #d9b77e;
  font-size: 10px;
  letter-spacing: .04em;
}
.model-card .card-status-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.model-card .card-status-chip {
  min-height: 38px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 5px 8px;
}
.model-card .card-status-chip em {
  font-size: 9px;
  white-space: nowrap;
}
.model-card .card-status-chip b {
  overflow: visible;
  font-size: 12px;
  text-overflow: clip;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .principles-only .principle-summary {
    padding: 16px;
  }
  .analysis-pair #navChart,
  .analysis-pair #drawdownChart {
    min-height: 250px;
  }
  .model-card .card-metrics {
    grid-template-columns: minmax(0, 1fr) minmax(92px, .55fr);
  }
}

@media (max-width: 370px) {
  .model-card .card-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .model-card .card-metric + .card-metric {
    border-left: 0;
    border-top: 1px solid rgba(121, 156, 173, .16);
    padding-top: 8px;
  }
  .card-account-basis {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   V2.1 R5 — readability floor
   Raise materially important microcopy, controls, table data and status
   labels without enlarging decorative or editorial display type.
   ===================================================================== */
.eyebrow {
  font-size: 11px !important;
  line-height: 1.45;
  letter-spacing: .11em;
  color: #d9ba83 !important;
}
.simulation-notice-v29 > span {
  font-size: 11px !important;
  letter-spacing: .10em !important;
}
.simulation-notice-v29 > p {
  font-size: 13px !important;
  line-height: 1.7 !important;
}
.brand-sub-v29 {
  font-size: 11px !important;
}
.header-status {
  font-size: 11px !important;
}
.zero-sense-intro .eyebrow,
.zero-sense-intro > span {
  font-size: 11px !important;
}
.zero-sense-status small,
.zero-sense-days span,
.zero-sense-days th {
  color: #b8c8cf !important;
  font-size: 12px !important;
  line-height: 1.45;
}
.zero-sense-system {
  font-size: 12px !important;
}
.cohort-switch button span {
  font-size: 14px !important;
}
.cohort-switch button small {
  color: #a9bac2 !important;
  font-size: 11px !important;
}

.model-card .card-model-code {
  font-size: 11px !important;
  letter-spacing: .08em;
}
.model-card .card-kicker {
  color: #b3c2c9 !important;
  font-size: 12px !important;
}
.model-card .card-main-label {
  color: #bcc9cf !important;
  font-size: 13px !important;
}
.model-card .card-compound-reference span,
.model-card .card-cumulative {
  color: #b2c0c7 !important;
  font-size: 12px !important;
}
.model-card .card-compound-reference em {
  font-size: 11px !important;
}
.model-card .card-compound-reference b,
.model-card .risk-value {
  font-size: 11px !important;
}
.model-card .card-metric > span:first-child {
  color: #b9c7ce !important;
  font-size: 12px !important;
}
.model-card .card-account-basis em {
  color: #afc0c8 !important;
  font-size: 11px !important;
}
.model-card .card-account-basis b {
  font-size: 12.5px !important;
}
.card-settlement-copy em {
  color: #dce4e7 !important;
  font-size: 12px !important;
}
.card-settlement-copy small {
  color: #a8bac3 !important;
  font-size: 11px !important;
}
.card-settlement-row .card-daily-change {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}
.card-settlement-state {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(148, 171, 181, .28);
  border-radius: 999px;
  color: #c8d3d8;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}
.card-settlement-state.active {
  border-color: rgba(84, 218, 230, .45);
  background: rgba(84, 218, 230, .09);
  color: #8de5e7;
}
.card-settlement-state.empty {
  border-color: rgba(223, 188, 126, .48);
  background: rgba(223, 188, 126, .09);
  color: #f0cf94;
}
.card-settlement-state.unknown,
.card-settlement-state.pending {
  color: #e0b4a8;
}
.card-settlement-row .card-daily-change b {
  font-size: 14px !important;
}
.card-settlement-row .card-daily-change > span:last-child {
  font-size: 12px !important;
}
.card-settlement-row > p {
  color: #b2c2c9 !important;
  font-size: 11px !important;
}
.card-settlement-row > p strong {
  font-size: 11px !important;
}
.model-card .card-status-chip em {
  color: #b5c4cb !important;
  font-size: 11px !important;
}
.model-card .card-status-chip b {
  font-size: 13px !important;
}
.model-card .card-status-date {
  color: #aabcc4 !important;
  font-size: 12px !important;
}

.analysis-pair .segmented button,
.analysis-pair .period-control button,
.chart-toolbar .segmented button {
  font-size: 11px !important;
}
.analysis-pair .section-aside,
.drawdown-caption {
  color: #b3c2c9 !important;
  font-size: 12.5px !important;
}
.analysis-pair .legend button,
.analysis-pair .chart-hint {
  font-size: 11px !important;
  line-height: 1.55;
}
.analysis-pair .legend-nav {
  color: #aebfc7 !important;
  font-size: 11px !important;
}
.risk-pill {
  font-size: 12px !important;
}

.tables-pair .table-panel,
.tables-pair .table-scroll {
  overflow-x: auto;
}
.tables-pair {
  grid-template-columns: minmax(0, 1fr);
}
.tables-pair .period-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  font-size: 12px !important;
}
.tables-pair th,
.tables-pair td,
.tables-pair .period-table th,
.tables-pair .period-table td {
  padding: 11px 9px !important;
  color: #bed0d8;
  font-size: 12px !important;
  line-height: 1.45;
}
.tables-pair thead th {
  color: #e3ebee !important;
  font-size: 12px !important;
}
.tables-pair .period-table th:first-child,
.tables-pair .period-table td:first-child {
  color: #e5edef !important;
  font-size: 12px !important;
  font-weight: 750;
}

.philosophy-lead,
.principle-manifesto-v29 > p,
.philosophy-closing p,
.philosophy-closing strong {
  color: #b2c1c8 !important;
  font-size: 13px !important;
}
.principle-manifesto-v29 > span {
  font-size: 11px !important;
}
.method-grid h3 {
  font-size: 17px !important;
}
.method-grid p {
  color: #b0c0c7 !important;
  font-size: 13px !important;
  line-height: 1.7;
}
.method-grid article > span {
  font-size: 12px !important;
}
.method-note-v29 {
  color: #b4c3ca !important;
  font-size: 12px !important;
  line-height: 1.7;
}
.record-section li {
  color: #b0c0c7 !important;
  font-size: 12.5px !important;
}
.disclaimer {
  color: #a9bbc3 !important;
  font-size: 11.5px !important;
  line-height: 1.7;
}
footer,
footer small {
  color: #a8b9c1 !important;
  font-size: 11px !important;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .brand-sub-v29 {
    font-size: 11px !important;
  }
  .simulation-notice-v29 > span {
    font-size: 11px !important;
  }
  .simulation-notice-v29 > p {
    font-size: 12px !important;
  }
  .zero-sense-status small,
  .zero-sense-days span,
  .zero-sense-days th {
    font-size: 11px !important;
  }
  .card-settlement-row .card-daily-change {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .card-settlement-state {
    grid-row: 2;
    justify-self: start;
  }
  .card-settlement-row .card-daily-change b,
  .card-settlement-row .card-daily-change > span:last-child {
    grid-row: 1;
  }
  .tables-pair .annual-table th,
  .tables-pair .annual-table td {
    padding: 9px 3px !important;
    font-size: 11px !important;
  }
  .mobile-period-line b {
    font-size: 11.5px !important;
  }
  .mobile-model-name {
    font-size: 11px !important;
  }
}

@media (max-width: 370px) {
  .tables-pair .annual-table th,
  .tables-pair .annual-table td {
    font-size: 10.5px !important;
  }
}

@media (max-width: 430px) {
  .brand-sub-v29 {
    display: none !important;
  }
}

.mobile-model-hint {
  display: none;
}

@media (min-width: 360px) and (max-width: 720px) {
  #modelGrid:not(.is-single) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  #modelGrid:not(.is-single) .model-card {
    min-width: 0;
    padding: 10px !important;
    border-radius: 10px !important;
  }
  #modelGrid:not(.is-single) .card-heading {
    flex-direction: column !important;
    gap: 5px !important;
  }
  #modelGrid:not(.is-single) .sparkline {
    width: 100% !important;
    min-width: 0 !important;
    height: 30px !important;
  }
  #modelGrid:not(.is-single) .sparkline svg {
    height: 30px !important;
  }
  #modelGrid:not(.is-single) .card-heading h3 {
    font-size: 20px !important;
  }
  #modelGrid:not(.is-single) .card-main-value {
    font-size: clamp(20px, 7.5vw, 27px) !important;
  }
  #modelGrid:not(.is-single) .card-metrics {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
  }
  #modelGrid:not(.is-single) .card-metric + .card-metric {
    padding-top: 7px !important;
    border-top: 1px solid rgba(121, 156, 173, .16) !important;
    border-left: 0 !important;
  }
  #modelGrid:not(.is-single) .card-account-basis {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #modelGrid:not(.is-single) .card-settlement-row .card-daily-change {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  #modelGrid:not(.is-single) .card-settlement-state {
    grid-row: 2;
    justify-self: start;
  }
  #modelGrid:not(.is-single) .card-settlement-row .card-daily-change b {
    grid-row: 2;
    justify-self: end;
  }
  #modelGrid:not(.is-single) .card-settlement-row .card-daily-change > span:last-child {
    grid-row: 2;
    justify-self: end;
  }
  #modelGrid:not(.is-single) .card-status-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
  }
  #modelGrid:not(.is-single) .card-status-chip {
    min-height: 31px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  .mobile-model-hint {
    display: block;
    margin: 7px 2px 9px;
    color: #aebfc7;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
  }
  #nav-section {
    scroll-margin-top: 70px;
  }
}

/* =====================================================================
   V3.1 institutional data surface
   Borrow the restraint of high-star admin/data products: neutral surfaces,
   one-pixel boundaries, compact typography, and semantic color only.
   ===================================================================== */
:root {
  --v29-bg: #090e13;
  --v29-panel: #10171e;
  --v29-panel-deep: #0c1218;
  --v29-ink: #e8edef;
  --v29-muted: #93a0aa;
  --v29-faint: #697781;
  --v29-line: rgba(148, 164, 175, .18);
  --v29-line-strong: rgba(166, 181, 190, .3);
  --v29-gold: #c6aa76;
  --v29-gold-soft: rgba(198, 170, 118, .08);
  --v29-risk: #cf998b;
  color-scheme: dark;
}

html,
body {
  background: var(--v29-bg) !important;
}

body {
  color: var(--v29-ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

.ambient-grid,
.zero-sense-waves,
.section-icon {
  display: none !important;
}

.site-header {
  border-bottom: 1px solid #202b34;
  background: rgba(10, 15, 20, .96) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

.site-header::before,
.site-header::after {
  display: none !important;
}

.brand-sub-v29 {
  color: #7f8c95 !important;
  letter-spacing: .08em !important;
}

.desktop-nav {
  gap: 4px !important;
}

.desktop-nav a {
  min-height: 40px;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #9ba7af !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
}

.desktop-nav a:hover {
  background: #121a21 !important;
  color: #e7ecee !important;
}

.desktop-nav a.active {
  background: #151e26 !important;
  color: #f0f2f2 !important;
  box-shadow: inset 0 -2px 0 var(--v29-gold) !important;
}

.header-status {
  border: 1px solid #2a353e !important;
  border-radius: 999px !important;
  background: #0d141a !important;
  box-shadow: none !important;
  color: #8f9ca5 !important;
}

.header-status b {
  color: #dce3e6 !important;
}

.mobile-menu,
.mobile-bottom-nav {
  background: #0d141a !important;
  border-color: #26313a !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28) !important;
}

main {
  width: min(1500px, calc(100vw - 48px)) !important;
  padding-top: 20px !important;
}

.simulation-notice-v29 {
  min-height: 54px !important;
  border: 1px solid #26323b !important;
  border-left: 1px solid #26323b !important;
  border-radius: 8px !important;
  background: #0e151b !important;
  box-shadow: none !important;
}

.simulation-notice-v29::before {
  display: none !important;
}

.simulation-notice-v29 > span {
  color: #9caab3 !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: .08em !important;
}

.simulation-notice-v29 > p {
  color: #b7c2c8 !important;
}

.simulation-notice-v29 strong {
  color: #e4e8e9 !important;
}

.eyebrow {
  display: none !important;
}

.zero-sense-section {
  min-height: 270px !important;
  padding: 30px 32px !important;
  border: 1px solid #26323b !important;
  border-radius: 10px !important;
  background: #0e151b !important;
  box-shadow: none !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr) !important;
  grid-template-areas:
    "copy dashboard"
    "system dashboard" !important;
  gap: 18px 42px !important;
}

.zero-sense-section::before,
.zero-sense-section::after {
  display: none !important;
}

.zero-sense-intro {
  display: none !important;
}

.zero-sense-copy {
  grid-area: copy;
  align-self: end;
}

.zero-sense-copy h2 {
  color: #f0f2f2 !important;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif !important;
  font-size: clamp(38px, 4vw, 56px) !important;
  font-weight: 680 !important;
  letter-spacing: -.04em !important;
  text-shadow: none !important;
}

.zero-sense-core {
  margin-top: 10px !important;
  color: #d9dfe1 !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
}

.zero-sense-core span {
  color: inherit !important;
}

.zero-sense-sub {
  margin-top: 8px !important;
  color: #8d9aa3 !important;
  font-size: 14px !important;
}

.zero-sense-dashboard {
  grid-area: dashboard;
  border: 1px solid #2a3640 !important;
  border-radius: 8px !important;
  background: #111a21 !important;
  box-shadow: none !important;
}

.zero-sense-status,
.zero-sense-days {
  border-color: #29353e !important;
  background: transparent !important;
}

.zero-sense-status small,
.zero-sense-days span,
.zero-sense-days th {
  color: #8997a0 !important;
}

.zero-sense-status b,
.zero-sense-days td,
.zero-sense-days b {
  color: #e7ecee !important;
  text-shadow: none !important;
}

.zero-sense-system {
  grid-area: system;
  align-self: end;
  margin: 0 !important;
  color: #71808a !important;
  letter-spacing: .04em !important;
}

.cohort-switch {
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.cohort-switch button,
.cohort-switch button:first-child,
.cohort-switch button:last-child {
  min-height: 46px !important;
  border: 1px solid #28343d !important;
  border-radius: 7px !important;
  background: #0e151b !important;
  box-shadow: none !important;
}

.cohort-switch button[aria-pressed="true"] {
  border-color: #596873 !important;
  background: #172129 !important;
  box-shadow: inset 0 -2px 0 var(--v29-gold) !important;
}

.cohort-switch button[aria-pressed="true"]::before,
.cohort-switch button[aria-pressed="true"]::after,
.cohort-switch button span::before {
  display: none !important;
}

.cohort-switch button span {
  color: #d8dfe2 !important;
  font-size: 13px !important;
}

.cohort-switch button small {
  color: #84929b !important;
}

.model-grid {
  gap: 10px !important;
}

.model-card {
  padding: 16px !important;
  border: 1px solid #28343d !important;
  border-radius: 8px !important;
  background: #10171e !important;
  box-shadow: none !important;
  transform: none !important;
}

.model-card::before {
  display: none !important;
}

.model-card:hover {
  border-color: #3c4a55 !important;
  transform: none !important;
}

.model-card.selected {
  border-color: #88785b !important;
  background: #121b22 !important;
  box-shadow: none !important;
}

.card-model-code {
  display: none !important;
}

.card-heading h3 {
  color: #edf1f2 !important;
  font-size: 21px !important;
  font-weight: 660 !important;
}

.card-kicker,
.card-main-label,
.card-compound-reference span,
.card-metric > span:first-child,
.card-settlement-copy em,
.card-settlement-copy small {
  color: #8b99a2 !important;
}

.card-main-value {
  font-size: clamp(28px, 2.3vw, 36px) !important;
  letter-spacing: -.035em !important;
  text-shadow: none !important;
}

.card-compound-reference {
  border-top-color: #29343d !important;
}

.card-metric,
.card-metrics {
  border-color: #29343d !important;
}

.card-latest-assets b {
  color: #edf1f2 !important;
  font-size: 21px !important;
}

.card-account-basis {
  border-top-color: #29343d !important;
}

.card-account-basis em {
  color: #83919a !important;
}

.card-account-basis b {
  color: #dce3e6 !important;
}

.card-settlement-row {
  border: 1px solid #29343d !important;
  border-radius: 6px !important;
  background: #0d141a !important;
}

.card-settlement-state {
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.card-status-row {
  border-top-color: #29343d !important;
}

.card-status-chip {
  border-color: #2b3740 !important;
  border-radius: 4px !important;
  background: #0d141a !important;
  box-shadow: none !important;
}

.card-status-chip.active,
.card-status-chip.blocked,
.card-status-chip.empty,
.card-status-chip.unknown {
  background: transparent !important;
}

.section-heading h2 {
  color: #edf1f2 !important;
  font-weight: 660 !important;
  letter-spacing: -.02em !important;
}

.section-heading h2 i {
  display: none !important;
}

.section-aside,
.chart-hint,
.scroll-hint,
.cohort-note {
  color: #7e8c96 !important;
}

.analysis-pair > section,
.tables-pair > section,
.principle-summary,
.method-grid article,
.record-section {
  border: 1px solid #27333c !important;
  border-radius: 8px !important;
  background: #0f161d !important;
  box-shadow: none !important;
}

.analysis-pair .chart-panel,
.analysis-pair .drawdown-panel,
.tables-pair .table-panel {
  border: 1px solid #27333c !important;
  border-radius: 7px !important;
  background: #0c1319 !important;
  box-shadow: none !important;
}

.segmented,
.period-control {
  border: 1px solid #2a3640 !important;
  border-radius: 6px !important;
  background: #0c1319 !important;
  box-shadow: none !important;
}

.segmented button,
.period-control button {
  border-color: #26313a !important;
  background: transparent !important;
  color: #8f9ca5 !important;
  box-shadow: none !important;
}

.segmented button[aria-pressed="true"],
.period-control button[aria-pressed="true"] {
  background: #1a252e !important;
  color: #edf1f2 !important;
  box-shadow: inset 0 -2px 0 var(--v29-gold) !important;
}

.chart-panel svg,
.drawdown-panel svg {
  filter: none !important;
}

.legend button,
.legend-nav,
.drawdown-caption {
  color: #8c99a2 !important;
}

.table-panel thead th,
.annual-table th,
.period-table th {
  border-color: #29353e !important;
  background: #131c23 !important;
  color: #c8d1d5 !important;
}

.annual-table td,
.period-table td {
  border-color: #202b33 !important;
}

.annual-table tbody tr:nth-child(even),
.period-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .015) !important;
}

.principle-summary {
  padding: 22px !important;
}

.principle-manifesto-v29 {
  border: 1px solid #29343d !important;
  border-radius: 6px !important;
  background: #111a21 !important;
}

.principle-manifesto-v29 strong {
  color: #e5e9ea !important;
}

.method-grid article {
  min-height: 135px !important;
}

.method-grid article > span {
  color: #7b8993 !important;
}

.record-section {
  padding: 20px !important;
}

footer {
  border-top: 1px solid #252f37 !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  main {
    width: min(100% - 28px, 1500px) !important;
  }

  .zero-sense-section {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "copy"
      "dashboard"
      "system" !important;
    gap: 18px !important;
    padding: 24px 20px !important;
  }
}

@media (max-width: 720px) {
  .site-header {
    background: #0a1015 !important;
  }

  .desktop-nav,
  .header-status {
    display: none !important;
  }

  .simulation-notice-v29 {
    border-radius: 7px !important;
  }

  .zero-sense-section {
    min-height: 0 !important;
    padding: 22px 16px !important;
  }

  .zero-sense-copy h2 {
    font-size: 38px !important;
  }

  .zero-sense-core {
    font-size: 22px !important;
  }

  .cohort-switch {
    gap: 6px !important;
  }

  .model-grid {
    gap: 8px !important;
  }

  .model-card {
    padding: 12px 10px !important;
  }

  .analysis-pair > section,
  .tables-pair > section,
  .principle-summary,
  .record-section {
    padding: 14px !important;
  }
}

/* =====================================================================
   V2.1 R6 — return colors are semantic, never generic table copy
   ===================================================================== */
.tables-pair .annual-table td.positive,
.tables-pair .period-table td.positive {
  color: var(--red) !important;
  font-weight: 760;
}
.tables-pair .annual-table td.negative,
.tables-pair .period-table td.negative {
  color: var(--green) !important;
  font-weight: 760;
}

/* =====================================================================
   V2.1 R12 — mobile two-column card fit
   Keep A/B and C/D side by side without clipping risk metrics or
   overlapping settlement position, amount and return.
   ===================================================================== */
@media (max-width: 760px) {
  .model-card .card-compound-reference {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    align-items: end;
  }

  .model-card .card-compound-reference span {
    display: block;
    min-width: 0;
    line-height: 1.3;
    white-space: normal;
  }

  .model-card .card-compound-reference em {
    margin-right: 3px;
  }

  .model-card .card-compound-reference b,
  .model-card .risk-value {
    justify-self: end;
    font-size: 9px !important;
    white-space: nowrap;
  }

  .card-settlement-row {
    padding: 8px;
  }

  .card-settlement-row .card-daily-change {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "copy state"
      "amount rate";
    gap: 5px 6px;
    align-items: center;
  }

  .card-settlement-copy {
    grid-area: copy;
  }

  .card-settlement-copy em {
    overflow: hidden;
    font-size: 10px !important;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-settlement-copy small {
    font-size: 9px !important;
    white-space: nowrap;
  }

  .card-settlement-state {
    grid-area: state;
    justify-self: end;
    min-height: 19px;
    padding: 1px 5px;
    font-size: 9px !important;
  }

  .card-settlement-row .card-daily-change b {
    grid-area: amount;
    justify-self: start;
    font-size: 11px !important;
  }

  .card-settlement-row .card-daily-change > span:last-child {
    grid-area: rate;
    justify-self: end;
    font-size: 10px !important;
  }

  .card-settlement-row > p {
    display: block;
    margin-top: 5px;
    font-size: 9px !important;
    line-height: 1.45;
  }

  .card-settlement-row > p strong {
    display: inline;
    margin-right: 3px;
    font-size: 9px !important;
  }

  .card-settlement-row > p span {
    display: inline;
  }
}

@media (min-width: 360px) and (max-width: 720px) {
  #modelGrid:not(.is-single) .card-settlement-row .card-daily-change {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "copy state"
      "amount rate" !important;
  }

  #modelGrid:not(.is-single) .card-settlement-copy {
    grid-area: copy !important;
  }

  #modelGrid:not(.is-single) .card-settlement-state {
    grid-area: state !important;
    justify-self: end !important;
  }

  #modelGrid:not(.is-single) .card-settlement-row .card-daily-change b {
    grid-area: amount !important;
    justify-self: start !important;
  }

  #modelGrid:not(.is-single) .card-settlement-row .card-daily-change > span:last-child {
    grid-area: rate !important;
    justify-self: end !important;
  }
}

/* =====================================================================
   V3.1.6 — trust strip, visible data-health failure, compact mobile hero,
   and sticky return-table headings. Presentation-only.
   ===================================================================== */
.trust-strip-v316 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid #28343d;
  border-radius: 7px;
  background: #0d151b;
}

.trust-strip-v316 > div {
  min-width: 0;
  padding: 9px 13px;
  border-left: 1px solid #25313a;
}

.trust-strip-v316 > div:first-child {
  border-left: 0;
}

.trust-strip-v316 span,
.trust-strip-v316 b {
  display: block;
}

.trust-strip-v316 span {
  color: #84929b;
  font-size: 11px;
  line-height: 1.35;
}

.trust-strip-v316 b {
  margin-top: 2px;
  overflow: hidden;
  color: #dbe2e4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-strip-v316 b.is-warning {
  color: #e0b56c;
}

.data-health-alert-v316 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 13px;
  border: 1px solid rgba(205, 161, 87, .55);
  border-radius: 7px;
  background: #201a11;
  color: #d8c09a;
  font-size: 12px;
  line-height: 1.55;
}

.data-health-alert-v316[hidden] {
  display: none !important;
}

.data-health-alert-v316 strong {
  flex: 0 0 auto;
  color: #f0c986;
  font-size: 12px;
}

.tables-pair .table-panel,
.tables-pair .table-scroll {
  overflow: clip;
}

.tables-pair .annual-table thead th,
.tables-pair .period-table thead th {
  position: sticky;
  top: 64px;
  z-index: 4;
  background: #131c23 !important;
}

@media (max-width: 720px) {
  .trust-strip-v316 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 8px;
  }

  .trust-strip-v316 > div {
    padding: 7px 10px;
  }

  .trust-strip-v316 > div:nth-child(3) {
    border-top: 1px solid #25313a;
    border-left: 0;
  }

  .trust-strip-v316 > div:nth-child(4) {
    border-top: 1px solid #25313a;
  }

  .data-health-alert-v316 {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
    padding: 9px 11px;
  }

  .simulation-notice-v29 {
    margin-bottom: 8px !important;
  }

  .simulation-notice-v29 > span {
    min-height: 30px !important;
  }

  .simulation-notice-v29 > p {
    padding: 8px 12px 9px !important;
  }

  .zero-sense-section {
    gap: 10px !important;
    margin: 8px 0 10px !important;
    padding: 14px 12px 13px !important;
  }

  .zero-sense-intro {
    gap: 6px !important;
  }

  .zero-sense-copy h2 {
    font-size: 34px !important;
    line-height: 1.05 !important;
  }

  .zero-sense-core {
    margin-top: 5px !important;
    font-size: 19px !important;
    line-height: 1.35 !important;
  }

  .zero-sense-sub {
    margin-top: 5px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .zero-sense-dashboard {
    padding: 10px !important;
  }

  .zero-sense-status > div {
    padding: 1px 8px 7px !important;
  }

  .zero-sense-status b {
    font-size: 14px !important;
  }

  .zero-sense-days p {
    margin: 8px 1px 5px !important;
  }

  .zero-sense-days th {
    padding: 6px 8px 4px !important;
  }

  .zero-sense-days td {
    padding: 6px 8px 8px !important;
    font-size: 15px !important;
  }

  .zero-sense-system {
    font-size: 11px !important;
  }

  .tables-pair .annual-table thead th,
  .tables-pair .period-table thead th {
    top: 55px;
  }
}

/* =====================================================================
   V3.1.7 — denser disclosure and hero framing. No data or interaction
   changes; this only removes excess vertical space from the first view.
   ===================================================================== */
.data-disclosure-v317 {
  margin: 12px 0 10px;
  overflow: hidden;
  border: 1px solid #28343d;
  border-radius: 7px;
  background: #0d151b;
}

.data-disclosure-v317 .simulation-notice-v29 {
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  grid-template-columns: 190px minmax(0, 1fr) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #111a21 !important;
  box-shadow: none !important;
}

.data-disclosure-v317 .simulation-notice-v29::before {
  display: none;
}

.data-disclosure-v317 .simulation-notice-v29 > span {
  min-height: 42px !important;
  padding: 0 !important;
  border-right: 1px solid #29353e !important;
}

.data-disclosure-v317 .simulation-notice-v29 > p {
  padding: 8px 0 8px 16px !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.data-disclosure-v317 .trust-strip-v316 {
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid #25313a !important;
  border-radius: 0 !important;
  background: #0d151b !important;
}

.data-disclosure-v317 .trust-strip-v316 > div {
  padding: 7px 12px !important;
}

.data-disclosure-v317 .data-health-alert-v316 {
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(205, 161, 87, .55) !important;
  border-radius: 0 !important;
}

.zero-sense-section {
  min-height: 220px !important;
  margin: 10px 0 12px !important;
  padding: 22px 26px 20px !important;
}

.zero-sense-copy h2 {
  font-size: clamp(40px, 3.7vw, 50px) !important;
}

.zero-sense-core {
  font-size: clamp(22px, 2vw, 28px) !important;
}

.cohort-switch {
  min-height: 42px !important;
  margin-bottom: 10px !important;
}

.cohort-switch button {
  min-height: 40px !important;
  padding-block: 6px !important;
}

@media (max-width: 720px) {
  .data-disclosure-v317 {
    margin: 8px 0 8px;
  }

  .data-disclosure-v317 .simulation-notice-v29 {
    display: block !important;
    min-height: 0 !important;
    padding: 8px 10px 7px !important;
    grid-template-columns: none !important;
  }

  .data-disclosure-v317 .simulation-notice-v29 > span {
    display: inline !important;
    min-height: 0 !important;
    margin-right: 6px;
    padding: 0 !important;
    border: 0 !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  .data-disclosure-v317 .simulation-notice-v29 > p {
    display: inline !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  .data-disclosure-v317 .trust-strip-v316 {
    margin: 0 !important;
  }

  .data-disclosure-v317 .trust-strip-v316 > div {
    padding: 5px 9px !important;
  }

  .data-disclosure-v317 .trust-strip-v316 span {
    font-size: 11px !important;
    line-height: 1.3;
  }

  .data-disclosure-v317 .trust-strip-v316 b {
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.4;
  }

  .data-disclosure-v317 .data-health-alert-v316 {
    margin: 0 !important;
    padding: 8px 10px !important;
  }

  .zero-sense-section {
    gap: 7px !important;
    margin: 7px 0 8px !important;
    padding: 11px 10px 10px !important;
  }

  .zero-sense-copy h2 {
    font-size: 32px !important;
    line-height: 1.02 !important;
  }

  .zero-sense-core {
    margin-top: 4px !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  .zero-sense-sub {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .zero-sense-dashboard {
    padding: 8px !important;
  }

  .zero-sense-status > div {
    padding: 0 6px 5px !important;
  }

  .zero-sense-status b {
    margin-top: 2px;
    font-size: 13px !important;
  }

  .zero-sense-days p {
    margin: 6px 1px 4px !important;
  }

  .zero-sense-days th {
    padding: 4px 7px 3px !important;
  }

  .zero-sense-days td {
    padding: 4px 7px 6px !important;
    font-size: 14px !important;
  }

  .zero-sense-system {
    margin-top: 0 !important;
    font-size: 11px !important;
  }

  .cohort-switch {
    min-height: 38px !important;
    margin-bottom: 8px !important;
  }

  .cohort-switch button {
    min-height: 36px !important;
    padding-block: 5px !important;
  }
}
