:root {
  --bg: #f4f7f4;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --ink: #17231d;
  --muted: #657169;
  --line: #dce5df;
  --line-strong: #c9d6ce;
  --brand: #123d2d;
  --brand-2: #1a5a42;
  --action: #16845b;
  --action-soft: #e7f5ed;
  --lime: #d7ff62;
  --warning: #a96f17;
  --warning-soft: #fff3d9;
  --danger: #bd4550;
  --danger-soft: #fcebed;
  --shadow: 0 18px 50px rgba(18, 61, 45, 0.08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --page: 1240px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(22, 132, 91, 0.24);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: none;
}

.hidden {
  display: none !important;
}

.data-mode-badge {
  position: fixed;
  z-index: 120;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 1px;
  max-width: min(340px, calc(100vw - 32px));
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(12, 38, 29, 0.94);
  color: #fff;
  box-shadow: 0 12px 36px rgba(12, 38, 29, 0.24);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.data-mode-badge strong {
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.data-mode-badge span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 8px;
}

.mono,
code {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.overline,
.kicker {
  margin: 0;
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
}

.live-dot,
.health-orb {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 0 0 5px rgba(22, 132, 91, 0.1);
}

.live-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(189, 69, 80, 0.1);
}

.public-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - var(--page)) / 2));
  border-bottom: 1px solid rgba(201, 214, 206, 0.8);
  background: rgba(244, 247, 244, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  width: fit-content;
  line-height: 1.1;
}

.brand-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: var(--brand);
  color: var(--lime);
  font-size: 19px;
  font-weight: 900;
}

.brand > span:last-child {
  display: grid;
  gap: 4px;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.12em;
}

.brand small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.desktop-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(18, 61, 45, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.language-toggle,
.quiet-button,
.small-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle:hover,
.quiet-button:hover,
.small-button:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.quiet-button {
  color: var(--brand);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  gap: 88px;
  align-items: center;
  min-height: 620px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 72px 24px 64px;
}

.home-hero::before {
  position: absolute;
  z-index: -1;
  top: 84px;
  right: 28%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(22, 132, 91, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(22, 132, 91, 0.025), 0 0 0 140px rgba(22, 132, 91, 0.018);
  content: "";
}

.hero-copy h1 {
  max-width: 760px;
  margin: 24px 0 24px;
  font-size: clamp(46px, 5.8vw, 76px);
  font-weight: 840;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-lede {
  max-width: 700px;
  margin: 0;
  color: #506057;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.detail-actions,
.report-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.light-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 61, 45, 0.14);
}

.secondary-button {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand);
}

.light-button {
  border-color: #fff;
  background: #fff;
  color: var(--brand);
}

.risk-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.proof-console {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 30px 70px rgba(18, 61, 45, 0.18);
}

.proof-console::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(215, 255, 98, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(215, 255, 98, 0.04), 0 0 0 88px rgba(215, 255, 98, 0.025);
  content: "";
}

.proof-console-head,
.panel-heading,
.platform-card-head,
.private-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.proof-console .overline,
.report-platform-card.dark .overline {
  color: rgba(255, 255, 255, 0.58);
}

.proof-console h2 {
  margin: 5px 0 0;
  font-size: 20px;
}

.status-pill,
.count-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.positive {
  background: rgba(215, 255, 98, 0.16);
  color: var(--lime);
}

.status-pill.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-pill.negative {
  background: var(--danger-soft);
  color: var(--danger);
}

.proof-hero-number {
  display: grid;
  gap: 2px;
  margin: 44px 0 34px;
}

.proof-hero-number span,
.proof-hero-number small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.proof-hero-number strong {
  color: var(--lime);
  font-size: 64px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.proof-stats,
.platform-metrics,
.report-platform-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.proof-stats div {
  padding: 15px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 0;
}

.proof-stats div:first-child {
  border-radius: 10px 0 0 10px;
}

.proof-stats div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 10px 10px 0;
}

.proof-stats dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.proof-stats dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.proof-timeline {
  display: flex;
  align-items: center;
  margin-top: 28px;
}

.proof-timeline span {
  position: relative;
  flex: 1;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.proof-timeline span::before {
  position: absolute;
  top: 7px;
  right: 50%;
  left: -50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
}

.proof-timeline span:first-child::before {
  display: none;
}

.proof-timeline span::after {
  position: absolute;
  top: 2px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.proof-timeline span.done,
.proof-timeline span.active {
  color: rgba(255, 255, 255, 0.82);
}

.proof-timeline span.done::after {
  border-color: var(--lime);
  background: var(--lime);
}

.proof-timeline span.active::after {
  border-color: var(--lime);
}

.last-updated {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px 50px;
}

.trust-strip p {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-right: 0;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.trust-strip p:first-child {
  border-radius: 12px 0 0 12px;
}

.trust-strip p:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 12px 12px 0;
}

.trust-strip strong {
  color: var(--action);
  font-size: 11px;
}

.content-section,
.method-section,
.report-banner,
.dashboard-main,
.detail-main,
.report-main {
  max-width: var(--page);
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.content-section {
  padding-top: 74px;
  padding-bottom: 74px;
}

.section-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.section-title-row h2,
.method-intro h2,
.report-banner h2 {
  margin: 7px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-title-row > p {
  margin: 0;
  color: var(--muted);
}

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

.platform-summary,
.panel,
.report-platform-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(18, 61, 45, 0.035);
}

.platform-summary {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.platform-summary::after {
  position: absolute;
  z-index: 0;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(22, 132, 91, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(22, 132, 91, 0.025);
  content: "";
}

.platform-summary > * {
  position: relative;
  z-index: 1;
}

.platform-summary.macau {
  background: var(--brand);
  color: #fff;
}

.platform-summary.macau::after {
  border-color: rgba(215, 255, 98, 0.18);
  box-shadow: 0 0 0 35px rgba(215, 255, 98, 0.035);
}

.platform-summary.macau .overline,
.platform-summary.macau .platform-balance span,
.platform-summary.macau .platform-balance small,
.platform-summary.macau dt {
  color: rgba(255, 255, 255, 0.58);
}

.platform-summary.macau .text-link {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--lime);
}

.platform-card-head {
  justify-content: flex-start;
}

.platform-card-head .status-pill {
  margin-left: auto;
}

.platform-card-head h3,
.report-platform-card h2 {
  margin: 3px 0 0;
  font-size: 23px;
  line-height: 1.3;
}

.platform-monogram {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--action-soft);
  color: var(--action);
  font-weight: 900;
}

.macau .platform-monogram,
.report-platform-card.dark .platform-monogram {
  background: rgba(215, 255, 98, 0.12);
  color: var(--lime);
}

.platform-balance {
  display: grid;
  gap: 4px;
  margin: 54px 0 30px;
}

.platform-balance span,
.platform-balance small {
  color: var(--muted);
  font-size: 12px;
}

.platform-balance strong {
  font-size: 42px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.platform-metrics {
  border-top: 1px solid rgba(201, 214, 206, 0.45);
  border-bottom: 1px solid rgba(201, 214, 206, 0.45);
}

.platform-metrics div {
  padding: 17px 0;
}

.platform-metrics dt,
.report-platform-card dt {
  color: var(--muted);
  font-size: 11px;
}

.platform-metrics dd,
.report-platform-card dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 190px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-weight: 800;
}

.text-link.compact {
  justify-self: end;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.latest-section {
  border-top: 1px solid var(--line);
}

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

.ticket-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(132px, 0.72fr) minmax(132px, 0.72fr) minmax(100px, 0.55fr) minmax(90px, 0.45fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.ticket-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(18, 61, 45, 0.05);
}

.ticket-row .ticket-main,
.ticket-row .ticket-data {
  display: grid;
  gap: 2px;
}

.ticket-row small,
.ticket-row time {
  color: var(--muted);
  font-size: 11px;
}

.ticket-row strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-row .ticket-data span {
  font-size: 12px;
  font-weight: 800;
}

.ticket-mobile-times {
  display: none;
}

.ticket-row .ticket-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--action);
}

.skeleton-row {
  height: 82px;
  border-radius: 12px;
  background: linear-gradient(90deg, #edf2ee 20%, #f7f9f7 50%, #edf2ee 80%);
  background-size: 240% 100%;
  animation: skeleton 1.7s infinite linear;
}

@keyframes skeleton {
  to {
    background-position: -240% 0;
  }
}

.empty-state {
  padding: 36px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.match-decision-list {
  display: grid;
  gap: 10px;
}

.match-decision-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(200px, 0.9fr) minmax(130px, 0.5fr);
  gap: 22px;
  align-items: center;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.match-decision-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.match-decision-row small,
.match-decision-row span {
  color: var(--muted);
  font-size: 11px;
}

.match-decision-row strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.match-decision-row .decision-value {
  justify-items: end;
  text-align: right;
}

.match-decision-row .decision-value strong {
  color: var(--action);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.team-name-review {
  color: var(--warning) !important;
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 90px;
  padding-top: 90px;
  padding-bottom: 90px;
  border-top: 1px solid var(--line);
}

.method-intro p {
  max-width: 470px;
  margin: 24px 0 0;
  color: var(--muted);
}

.method-steps,
.evidence-chain ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-steps li,
.evidence-chain li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.method-steps li:first-child {
  padding-top: 0;
}

.method-steps > li > span,
.evidence-chain li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--action);
  font-size: 11px;
  font-weight: 900;
}

.method-steps h3,
.method-steps p,
.evidence-chain h3,
.evidence-chain p {
  margin: 0;
}

.method-steps h3,
.evidence-chain h3 {
  font-size: 16px;
}

.method-steps p,
.evidence-chain p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.report-banner {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 74px;
  padding-top: 54px;
  padding-bottom: 54px;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.report-banner .overline {
  color: rgba(255, 255, 255, 0.52);
}

.report-banner h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.report-banner p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.public-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--page);
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  transform: scale(0.88);
  transform-origin: left center;
}

.public-footer > p {
  margin: 0;
  text-align: center;
}

.public-footer nav {
  display: flex;
  justify-self: end;
  gap: 18px;
}

.compact-footer {
  grid-template-columns: 1fr auto;
}

.compact-footer > p {
  text-align: left;
}

/* Public dashboard */

.dashboard-main,
.detail-main,
.report-main {
  padding-top: 32px;
  padding-bottom: 80px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--action);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  padding: 38px 0 32px;
}

.platform-switch {
  display: inline-flex;
  gap: 5px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.platform-switch a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.platform-switch a.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 4px 10px rgba(18, 61, 45, 0.07);
}

.dashboard-hero h1,
.ticket-detail-hero h1,
.report-cover h1 {
  margin: 16px 0 8px;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.dashboard-lede {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-account {
  display: grid;
  min-width: 260px;
  justify-items: end;
}

.hero-account > span,
.hero-account small {
  color: var(--muted);
  font-size: 11px;
}

.hero-account > strong {
  font-size: 42px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.hero-account p {
  margin: 3px 0 8px;
  color: var(--action);
  font-weight: 800;
}

.divider {
  padding: 0 7px;
  color: var(--line-strong);
}

.kpi-grid,
.private-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.kpi-grid article,
.private-kpis article {
  display: grid;
  gap: 3px;
  min-height: 126px;
  align-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.kpi-grid span,
.kpi-grid small,
.private-kpis span,
.private-kpis small {
  color: var(--muted);
  font-size: 11px;
}

.kpi-grid strong,
.private-kpis strong {
  font-size: clamp(21px, 2.3vw, 29px);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.tab-bar {
  position: sticky;
  z-index: 30;
  top: 76px;
  display: flex;
  gap: 2px;
  margin: 32px 0 20px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(244, 247, 244, 0.94);
  backdrop-filter: blur(16px);
}

.tab-bar button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tab-bar button.active {
  background: var(--brand);
  color: #fff;
}

.tab-panel {
  animation: panelIn 240ms ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.overview-grid,
.detail-grid,
.ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
  gap: 14px;
}

.panel {
  padding: 24px;
}

.panel-heading {
  align-items: center;
  margin-bottom: 22px;
}

.panel-heading h2,
.private-panel-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.panel-meta,
.panel-description {
  color: var(--muted);
  font-size: 11px;
}

.panel-description {
  margin: -8px 0 24px;
}

.chart-frame {
  position: relative;
  min-height: 280px;
}

#equityCanvas {
  display: block;
  width: 100%;
  height: 280px;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.chart-legend {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.legend-line {
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--action);
}

.integrity-list,
.detail-list,
.ledger-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.integrity-list div,
.detail-list div,
.ledger-facts div {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.integrity-list dt,
.detail-list dt,
.ledger-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.integrity-list dd,
.detail-list dd,
.ledger-facts dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.positive-text {
  color: var(--action);
}

.negative-text {
  color: var(--danger);
}

.recent-panel {
  margin-top: 14px;
}

.ticket-list.expanded .ticket-row {
  min-height: 92px;
}

.ledger-proof-card {
  display: flex;
  flex-direction: column;
}

.ledger-proof-card > h2 {
  margin: 6px 0 12px;
  font-size: 28px;
}

.ledger-proof-card > p,
.methodology-copy > p {
  max-width: 650px;
  color: var(--muted);
}

.hash-display {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 50px;
}

.hash-display > span {
  color: var(--muted);
  font-size: 11px;
}

.hash-display code {
  overflow-wrap: anywhere;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 11px;
}

.hash-display button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--action);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.methodology-copy {
  padding: clamp(24px, 5vw, 60px);
}

.methodology-copy > h2 {
  margin: 8px 0 32px;
  font-size: 34px;
}

.methodology-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.methodology-columns h3 {
  font-size: 16px;
}

.methodology-columns ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
}

.mobile-bottom-nav {
  display: none;
}

/* Ticket detail */

.ticket-detail-hero {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  padding: 35px 0;
}

.ticket-id {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ticket-verdict {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 14px;
  padding: 30px;
  background: var(--brand);
  color: #fff;
}

.ticket-verdict > div {
  display: grid;
  gap: 3px;
}

.ticket-verdict span,
.ticket-verdict p,
.ticket-verdict small {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.ticket-verdict strong {
  color: var(--lime);
  font-size: 30px;
}

.ticket-money {
  justify-items: end;
}

.detail-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 14px;
}

.evidence-chain {
  margin-bottom: 14px;
}

.evidence-chain ol {
  grid-template-columns: repeat(4, 1fr);
}

.evidence-chain li {
  grid-template-columns: 38px 1fr;
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--line);
}

.evidence-chain li:last-child {
  border-right: 0;
}

.evidence-chain li.done > span {
  border-color: var(--action);
  background: var(--action-soft);
}

.technical-proof summary {
  cursor: pointer;
  font-weight: 800;
}

.technical-proof details[open] summary {
  margin-bottom: 18px;
}

.offscreen-canvas {
  position: fixed;
  top: -9999px;
  left: -9999px;
}

/* Report */

.report-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  min-height: 430px;
  padding: 64px;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: #fff;
}

.report-cover .overline,
.report-cover p {
  color: rgba(255, 255, 255, 0.62);
}

.report-cover .kicker {
  color: var(--lime);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.report-cover h1 {
  max-width: 760px;
}

.report-cover > div:first-child > p:last-child {
  max-width: 760px;
}

.report-cover-meta {
  display: grid;
  justify-items: end;
  min-width: 200px;
}

.report-cover-meta span,
.report-cover-meta small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.report-cover-meta strong {
  margin: 4px 0;
  font-size: 20px;
}

.report-rule {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  margin: 42px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rule-number {
  color: var(--action);
  font-size: 32px;
  font-weight: 900;
}

.report-rule h2,
.report-rule p {
  margin: 0;
}

.report-rule h2 {
  font-size: 18px;
}

.report-rule p {
  max-width: 900px;
  margin-top: 5px;
  color: var(--muted);
}

.report-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.report-platform-card {
  padding: 30px;
}

.report-platform-card.dark {
  background: var(--brand);
  color: #fff;
}

.report-platform-card > strong {
  display: block;
  margin-top: 48px;
  font-size: 48px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.report-platform-card > p {
  margin: 4px 0 24px;
  color: var(--muted);
}

.report-platform-card.dark > p,
.report-platform-card.dark dt {
  color: rgba(255, 255, 255, 0.58);
}

.report-platform-card dl {
  padding-top: 18px;
  border-top: 1px solid rgba(201, 214, 206, 0.35);
}

.report-metrics,
.report-findings,
.report-ledger-table {
  margin-top: 42px;
}

.report-kpis {
  grid-template-columns: repeat(4, 1fr);
}

.report-kpis article {
  background: var(--surface-soft);
}

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

.finding-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.finding-grid article > span {
  color: var(--action);
  font-size: 11px;
  font-weight: 900;
}

.finding-grid h3 {
  margin: 50px 0 8px;
  font-size: 17px;
}

.finding-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.proof-table {
  display: grid;
}

.proof-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 2fr 1fr;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.proof-row code {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-head {
  min-height: 34px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

/* Login */

.login-body {
  min-height: 100vh;
  background: var(--brand);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  min-height: 100vh;
}

.login-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(34px, 6vw, 84px);
  background: var(--brand);
  color: #fff;
}

.light-brand {
  color: #fff;
}

.light-brand .brand-symbol {
  background: var(--lime);
  color: var(--brand);
}

.light-brand small {
  color: rgba(255, 255, 255, 0.48);
}

.login-brand-panel .overline {
  color: var(--lime);
}

.login-brand-panel h1 {
  margin: 15px 0 18px;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.login-brand-panel > div > p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
}

.login-assurances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-assurances li {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.login-assurances li:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.login-assurances li > span:first-child {
  color: var(--lime);
  font-weight: 900;
}

.login-form-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px;
  background: var(--bg);
}

.login-form-wrap {
  width: min(100%, 460px);
}

.prototype-notice,
.private-prototype-banner {
  display: grid;
  gap: 3px;
  margin-bottom: 34px;
  padding: 14px;
  border: 1px solid #ecd49f;
  border-radius: 11px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11px;
}

.login-heading {
  position: relative;
}

.login-heading .language-toggle {
  position: absolute;
  top: -4px;
  right: 0;
}

.login-heading h2 {
  margin: 10px 0 10px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.login-heading p {
  margin: 0;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.login-form input {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  min-width: 52px;
  min-height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  color: var(--action);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.password-toggle:hover {
  background: rgba(22, 132, 91, 0.08);
}

.login-message {
  margin: 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--action);
  background: rgba(22, 132, 91, 0.08);
  font-size: 12px;
}

.login-message.error {
  color: #a43d2a;
  background: rgba(164, 61, 42, 0.09);
}

.login-form[aria-busy="true"] input,
.login-form[aria-busy="true"] button {
  cursor: wait;
}

.auth-access-card {
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.auth-access-card > p {
  margin: 0;
  color: var(--muted);
}

.auth-enabled-notice {
  border-color: rgba(22, 132, 91, 0.28);
  background: rgba(22, 132, 91, 0.08);
  color: var(--action);
}

.full-width {
  width: 100%;
  margin-top: 8px;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}

.login-links a {
  color: var(--action);
  font-weight: 800;
}

/* Private console */

.private-body {
  min-height: 100vh;
  background: #edf1ee;
}

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

.private-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 26px 18px;
  background: #0c261d;
  color: #fff;
}

.private-sidebar .brand {
  margin: 0 8px 32px;
}

.private-sidebar nav {
  display: grid;
  gap: 4px;
}

.private-sidebar nav > p {
  margin: 22px 10px 7px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.private-sidebar nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.private-sidebar nav a:hover,
.private-sidebar nav a.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.private-sidebar nav a.active span:first-child {
  color: var(--lime);
}

.sidebar-status {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
}

.sidebar-status > div {
  display: grid;
}

.sidebar-status strong {
  font-size: 11px;
}

.sidebar-status small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
}

.private-main {
  min-width: 0;
  padding: 28px clamp(20px, 4vw, 54px) 60px;
}

.private-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.private-topbar h1 {
  margin: 3px 0 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.private-top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.dark-toggle {
  background: rgba(255, 255, 255, 0.42);
}

.user-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 9px;
}

.user-chip > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand);
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
}

.user-chip > div {
  display: grid;
}

.user-chip strong {
  font-size: 11px;
}

.user-chip small {
  color: var(--muted);
  font-size: 9px;
}

.private-prototype-banner {
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.private-gate-main {
  display: grid;
  grid-template-rows: auto 1fr;
}

.private-access-gate {
  align-self: center;
  width: min(100%, 760px);
  margin: 40px auto;
  padding: clamp(34px, 6vw, 72px);
}

.private-access-gate > h2 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.private-access-gate > p {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted);
}

.private-access-gate .private-prototype-banner {
  grid-template-columns: 1fr;
  gap: 4px;
}

.access-lock {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--brand);
  color: var(--lime);
  font-size: 28px;
}

.private-status-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.private-status-row article {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.health-orb.warning {
  background: var(--warning);
  box-shadow: 0 0 0 5px rgba(169, 111, 23, 0.1);
}

.health-orb.offline {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(189, 69, 80, 0.1);
}

.health-orb.neutral {
  background: #849087;
  box-shadow: 0 0 0 5px rgba(101, 113, 105, 0.1);
}

.private-status-row div {
  display: grid;
}

.private-status-row small {
  color: var(--muted);
  font-size: 9px;
}

.private-status-row strong {
  font-size: 12px;
}

.private-kpis {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
}

.private-kpis article {
  min-height: 116px;
  border: 0;
}

.private-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 10px;
  margin-top: 10px;
}

.private-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.candidate-panel,
.action-panel {
  grid-row: span 2;
}

.decision-list {
  display: grid;
  gap: 0;
}

.decision-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(100px, 0.6fr) minmax(80px, 0.45fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.decision-row > div {
  display: grid;
}

.decision-row small {
  color: var(--muted);
  font-size: 9px;
}

.decision-row strong,
.decision-row span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-health-list {
  display: grid;
}

.source-health-list article {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.source-health-list article > div {
  display: flex;
  gap: 9px;
  align-items: center;
}

.source-health-list strong,
.source-health-list small {
  font-size: 10px;
}

.source-health-list small {
  color: var(--muted);
}

.account-comparison {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 0 6px;
}

.account-comparison article {
  display: grid;
  gap: 4px;
}

.account-comparison article > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.account-comparison strong {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.account-comparison p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.account-comparison i {
  height: 70px;
  background: var(--line);
}

.safe-action-panel {
  grid-column: 1 / -1;
}

.runtime-panel .detail-list div {
  grid-template-columns: 1fr;
  gap: 4px;
}

.runtime-panel .detail-list dd {
  text-align: left;
}

.safe-action-panel > p {
  color: var(--muted);
  font-size: 12px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.action-grid a {
  display: grid;
  min-height: 110px;
  align-content: space-between;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: left;
}

.action-grid a > span {
  color: var(--action);
  font-size: 18px;
}

.action-grid a strong {
  font-size: 11px;
}

.action-grid a small {
  font-size: 8px;
}

@media (max-width: 1040px) {
  .public-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr 380px;
    gap: 42px;
  }

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

  .trust-strip p {
    border-right: 1px solid var(--line);
    border-radius: 0 !important;
  }

  .trust-strip p:first-child {
    border-radius: 12px 0 0 0 !important;
  }

  .trust-strip p:nth-child(2) {
    border-radius: 0 12px 0 0 !important;
  }

  .trust-strip p:nth-child(3) {
    border-radius: 0 0 0 12px !important;
  }

  .trust-strip p:last-child {
    border-radius: 0 0 12px 0 !important;
  }

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

  .private-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .private-sidebar {
    align-items: center;
    padding: 24px 12px;
  }

  .private-sidebar .brand > span:last-child,
  .private-sidebar nav p,
  .private-sidebar nav a span:last-child,
  .sidebar-status > div {
    display: none;
  }

  .private-sidebar nav a {
    justify-content: center;
    width: 44px;
  }

  .private-sidebar .brand {
    margin-right: 0;
    margin-left: 0;
  }

  .private-sidebar nav {
    justify-items: center;
  }

  .private-sidebar nav > p {
    margin-top: 15px;
  }
}

@media (max-width: 820px) {
  .ticket-row {
    grid-template-columns: minmax(190px, 1fr) minmax(118px, 0.65fr) minmax(118px, 0.65fr) minmax(86px, auto) auto;
  }

  .ticket-row .ticket-stake {
    display: none;
  }

  .match-decision-row {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.7fr);
  }

  .match-decision-row .decision-value {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    justify-items: start;
    gap: 12px;
    text-align: left;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 56px;
  }

  .proof-console {
    max-width: 560px;
  }

  .platform-cards,
  .method-section,
  .overview-grid,
  .detail-grid,
  .ledger-grid,
  .report-platform-grid {
    grid-template-columns: 1fr;
  }

  .method-section {
    gap: 50px;
  }

  .section-title-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .text-link.compact {
    justify-self: start;
  }

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

  .kpi-grid article:last-child {
    grid-column: span 2;
  }

  .evidence-chain ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .evidence-chain li:nth-child(2) {
    border-right: 0;
  }

  .evidence-chain li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .report-cover {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 44px;
  }

  .report-cover-meta {
    justify-items: start;
  }

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

  .report-kpis article:last-child {
    grid-column: auto;
  }

  .proof-row {
    grid-template-columns: 1fr 0.6fr 1.5fr;
  }

  .proof-row > :last-child {
    display: none;
  }

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

  .login-brand-panel {
    min-height: auto;
    padding: 42px 28px;
  }

  .login-brand-panel > div {
    margin: 90px 0;
  }

  .login-assurances {
    grid-template-columns: 1fr;
  }

  .login-assurances li {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
  }

  .login-assurances li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .login-form-panel {
    order: -1;
    min-height: auto;
    padding: 70px 28px;
  }

  .private-status-row,
  .private-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .candidate-panel,
  .action-panel {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .match-decision-row {
    grid-template-columns: 1fr;
  }

  .match-decision-row .decision-value {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .public-header {
    min-height: 64px;
    padding: 0 14px;
  }

  .brand-symbol {
    width: 36px;
    height: 36px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 5px;
  }

  .quiet-button {
    display: none;
  }

  .language-toggle {
    min-height: 34px;
    padding: 6px 9px;
  }

  .home-hero,
  .content-section,
  .method-section,
  .report-banner,
  .dashboard-main,
  .detail-main,
  .report-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-hero {
    gap: 36px;
    padding-top: 42px;
    padding-bottom: 36px;
  }

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

  .hero-copy h1 {
    margin-top: 18px;
    font-size: 40px;
  }

  .hero-lede {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
  }

  .primary-button,
  .secondary-button,
  .light-button {
    min-height: 46px;
    gap: 12px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .proof-console {
    padding: 22px;
  }

  .proof-hero-number {
    margin: 32px 0 24px;
  }

  .proof-hero-number strong {
    font-size: 50px;
  }

  .proof-stats div {
    padding: 12px 9px;
  }

  .proof-timeline span {
    font-size: 8px;
  }

  .trust-strip {
    padding: 0 14px 34px;
  }

  .trust-strip p {
    padding: 14px 12px;
    font-size: 10px;
  }

  .content-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-title-row h2,
  .method-intro h2 {
    font-size: 31px;
  }

  .platform-cards {
    gap: 12px;
  }

  .platform-summary {
    padding: 22px;
  }

  .platform-card-head h3 {
    font-size: 19px;
  }

  .platform-balance {
    margin: 34px 0 22px;
  }

  .platform-balance strong {
    font-size: 35px;
  }

  .ticket-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px;
  }

  .ticket-row .ticket-data {
    display: none;
  }

  .ticket-row .ticket-mobile-times {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    white-space: normal;
  }

  .ticket-row .ticket-status {
    justify-self: end;
  }

  .ticket-row .ticket-arrow {
    display: none;
  }

  .method-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .report-banner {
    display: grid;
    gap: 22px;
    margin-right: 14px;
    margin-bottom: 48px;
    margin-left: 14px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .public-footer {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }

  .footer-brand {
    display: none;
  }

  .public-footer > p {
    text-align: center;
  }

  .public-footer nav {
    justify-self: center;
  }

  .dashboard-main,
  .detail-main,
  .report-main {
    padding-top: 18px;
    padding-bottom: 92px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .dashboard-hero h1,
  .ticket-detail-hero h1,
  .report-cover h1 {
    font-size: 36px;
  }

  .hero-account {
    justify-items: start;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .hero-account > strong {
    font-size: 36px;
  }

  .kpi-grid {
    gap: 7px;
  }

  .kpi-grid article {
    min-height: 105px;
    padding: 15px;
  }

  .tab-bar {
    top: 64px;
    overflow-x: auto;
    justify-content: flex-start;
    margin-top: 22px;
    scrollbar-width: none;
  }

  .tab-bar button {
    flex: 0 0 auto;
    min-width: 92px;
  }

  .panel {
    padding: 18px;
  }

  .chart-frame,
  #equityCanvas {
    min-height: 220px;
    height: 220px;
  }

  .methodology-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 45;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(12, 38, 29, 0.94);
    box-shadow: 0 16px 40px rgba(12, 38, 29, 0.24);
    backdrop-filter: blur(14px);
  }

  .data-mode-badge {
    right: 10px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    left: 10px;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  body:not([data-page="public"]) .data-mode-badge {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav button {
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.54);
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-bottom-nav button.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--lime);
  }

  .ticket-detail-hero {
    display: grid;
    padding-top: 18px;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 8px;
  }

  .ticket-verdict {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ticket-money {
    justify-items: start;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .evidence-chain ol {
    grid-template-columns: 1fr;
  }

  .evidence-chain li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-cover {
    padding: 30px 22px;
  }

  .report-rule {
    grid-template-columns: 48px 1fr;
  }

  .report-platform-card {
    padding: 22px;
  }

  .report-platform-card > strong {
    margin-top: 34px;
    font-size: 38px;
  }

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

  .finding-grid article {
    min-height: 0;
  }

  .finding-grid h3 {
    margin-top: 24px;
  }

  .proof-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .proof-row > :nth-child(3),
  .proof-row > :last-child {
    display: none;
  }

  .login-brand-panel > div {
    margin: 65px 0;
  }

  .login-brand-panel h1 {
    font-size: 38px;
  }

  .login-form-panel {
    min-height: 100vh;
    padding: 32px 18px;
  }

  .login-links {
    display: grid;
    gap: 8px;
  }

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

  .private-sidebar {
    position: static;
    display: none;
  }

  .private-main {
    padding: 20px 14px 50px;
  }

  .private-topbar {
    align-items: flex-start;
  }

  .private-top-actions .small-button,
  .user-chip > div {
    display: none;
  }

  .private-prototype-banner {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .private-status-row,
  .private-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .private-status-row article {
    min-height: 68px;
    padding: 12px;
  }

  .private-kpis {
    gap: 7px;
  }

  .private-kpis article {
    min-height: 102px;
    padding: 15px;
  }

  .decision-row {
    grid-template-columns: 1fr auto;
  }

  .decision-row > :nth-child(2),
  .decision-row > :nth-child(3) {
    display: none;
  }

  .source-health-list article {
    grid-template-columns: 1fr auto;
  }

  .source-health-list article > small {
    display: none;
  }

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

/* C2 · Match Intelligence Journal */
body.theme-c2 {
  --bg: #eeefe8;
  --surface: #fafaf5;
  --surface-soft: #e5e9e1;
  --ink: #101713;
  --muted: #626d66;
  --line: #ccd3cb;
  --line-strong: #aeb8b0;
  --brand: #06110f;
  --brand-2: #315d49;
  --action: #236948;
  --action-soft: #e1ebe2;
  --lime: #c9ff4a;
  --shadow: none;
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  background: var(--bg);
}

body.theme-c2 button:focus-visible,
body.theme-c2 a:focus-visible,
body.theme-c2 input:focus-visible,
body.theme-c2 summary:focus-visible {
  outline-color: rgba(201, 255, 74, 0.72);
}

body.theme-c2 .public-header {
  min-height: 70px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(6, 17, 15, 0.94);
  color: #f3f7f4;
}

body.theme-c2 .brand-symbol {
  border-radius: 2px;
  background: var(--lime);
  color: #06110f;
}

body.theme-c2 .brand small {
  color: #a8b6ae;
}

body.theme-c2 .desktop-nav {
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.theme-c2 .desktop-nav a {
  padding: 9px 0 7px;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: #a8b6ae;
}

body.theme-c2 .desktop-nav a:hover,
body.theme-c2 .desktop-nav a.active {
  border-bottom-color: var(--lime);
  background: transparent;
  color: #f3f7f4;
  box-shadow: none;
}

body.theme-c2 .language-toggle,
body.theme-c2 .quiet-button {
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  color: #dbe4de;
}

body.theme-c2 .quiet-button {
  color: var(--lime);
}

body.theme-c2 .language-toggle:hover,
body.theme-c2 .quiet-button:hover {
  border-color: rgba(201, 255, 74, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.theme-c2 .data-mode-badge {
  border-radius: 2px;
  background: rgba(6, 17, 15, 0.94);
}

body.theme-c2 :is(
  .platform-summary,
  .panel,
  .report-platform-card,
  .kpi-grid article,
  .ticket-row,
  .ticket-verdict,
  .report-cover,
  .finding-grid article,
  .report-banner
) {
  border-radius: 2px;
  box-shadow: none;
}

body.theme-c2[data-page="home"] .home-hero {
  isolation: isolate;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.62fr);
  gap: clamp(46px, 6vw, 96px);
  min-height: 760px;
  max-width: none;
  margin: 0;
  padding: 84px max(24px, calc((100vw - var(--page)) / 2 + 24px)) 78px;
  background-color: #06110f;
  background-image:
    linear-gradient(90deg, rgba(3, 13, 10, 0.99) 0%, rgba(3, 13, 10, 0.94) 35%, rgba(3, 13, 10, 0.58) 67%, rgba(3, 13, 10, 0.32) 100%),
    linear-gradient(180deg, rgba(3, 13, 10, 0.08) 45%, rgba(3, 13, 10, 0.78) 100%),
    url("/prototype-hero-v2.webp");
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #f3f7f4;
}

body.theme-c2[data-page="home"] .home-hero::before {
  display: none;
}

body.theme-c2[data-page="home"] .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

body.theme-c2[data-page="home"] .hero-copy h1 {
  max-width: 720px;
  margin: 28px 0 24px;
  color: #f3f7f4;
  font-size: clamp(58px, 6vw, 84px);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

body.theme-c2[data-page="home"] .hero-lede {
  max-width: 660px;
  color: rgba(243, 247, 244, 0.72);
  font-size: 17px;
  line-height: 1.82;
}

body.theme-c2[data-page="home"] .kicker {
  padding: 8px 10px;
  border-color: rgba(201, 255, 74, 0.28);
  border-radius: 2px;
  background: rgba(3, 13, 10, 0.64);
  color: var(--lime);
  backdrop-filter: blur(10px);
}

body.theme-c2[data-page="home"] .live-dot {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 255, 74, 0.12);
}

body.theme-c2[data-page="home"] .hero-actions .primary-button,
body.theme-c2[data-page="home"] .hero-actions .secondary-button {
  min-height: 52px;
  border-radius: 2px;
}

body.theme-c2[data-page="home"] .hero-actions .primary-button {
  border-color: var(--lime);
  background: var(--lime);
  color: #06110f;
}

body.theme-c2[data-page="home"] .hero-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(3, 13, 10, 0.34);
  color: #f3f7f4;
  backdrop-filter: blur(10px);
}

body.theme-c2[data-page="home"] .hero-actions .primary-button:hover,
body.theme-c2[data-page="home"] .hero-actions .secondary-button:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

body.theme-c2[data-page="home"] .risk-line {
  color: rgba(243, 247, 244, 0.54);
}

body.theme-c2[data-page="home"] .proof-console {
  z-index: 1;
  justify-self: end;
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid rgba(201, 255, 74, 0.2);
  border-radius: 2px;
  background: rgba(3, 13, 10, 0.72);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

body.theme-c2[data-page="home"] .proof-console::after {
  display: none;
}

body.theme-c2[data-page="home"] .proof-console .overline {
  color: rgba(201, 255, 74, 0.66);
}

body.theme-c2[data-page="home"] .proof-stats div,
body.theme-c2[data-page="home"] .proof-stats div:first-child,
body.theme-c2[data-page="home"] .proof-stats div:last-child {
  border-radius: 0;
}

body.theme-c2[data-page="home"] .proof-timeline span::after {
  background: #06110f;
}

body.theme-c2[data-page="home"] .trust-strip {
  max-width: none;
  padding: 0 max(24px, calc((100vw - var(--page)) / 2 + 24px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1b17;
}

body.theme-c2[data-page="home"] .trust-strip p,
body.theme-c2[data-page="home"] .trust-strip p:first-child,
body.theme-c2[data-page="home"] .trust-strip p:last-child {
  min-height: 76px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: transparent;
  color: #a8b6ae;
}

body.theme-c2[data-page="home"] .trust-strip strong {
  color: var(--lime);
}

body.theme-c2[data-page="home"] .platform-summary {
  border-radius: 2px;
  box-shadow: none;
}

body.theme-c2[data-page="home"] .platform-summary::after {
  display: none;
}

body.theme-c2[data-page="home"] .platform-summary.macau {
  background: #0b1b17;
}

body.theme-c2[data-page="home"] .platform-monogram,
body.theme-c2[data-page="home"] .ticket-row .ticket-arrow,
body.theme-c2[data-page="home"] .method-steps > li > span {
  border-radius: 2px;
}

body.theme-c2[data-page="home"] .ticket-row:hover {
  box-shadow: none;
}

body.theme-c2[data-page="home"] .report-banner {
  background: #0b1b17;
}

@media (max-width: 820px) {
  body.theme-c2[data-page="home"] .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    background-position: center, center, 68% top;
    background-size: 100% 100%, 100% 100%, auto 560px;
  }

  body.theme-c2[data-page="home"] .proof-console {
    justify-self: start;
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  body.theme-c2 .public-header {
    min-height: 64px;
  }

  body.theme-c2[data-page="home"] .home-hero {
    gap: 42px;
    padding: 48px 14px 44px;
    background-position: center, center, 70% top;
    background-size: 100% 100%, 100% 100%, auto 500px;
  }

  body.theme-c2[data-page="home"] .hero-copy h1 {
    margin-top: 22px;
    font-size: clamp(42px, 12.4vw, 48px);
    line-height: 1;
  }

  body.theme-c2[data-page="home"] .hero-lede {
    font-size: 15px;
    line-height: 1.72;
  }

  body.theme-c2[data-page="home"] .hero-actions {
    grid-template-columns: 1fr;
  }

  body.theme-c2[data-page="home"] .hero-actions .primary-button,
  body.theme-c2[data-page="home"] .hero-actions .secondary-button {
    width: 100%;
    min-height: 48px;
  }

  body.theme-c2[data-page="home"] .proof-console {
    padding: 20px;
  }

  body.theme-c2[data-page="home"] .trust-strip {
    padding: 0 14px;
  }

  body.theme-c2[data-page="home"] .trust-strip p {
    min-height: 68px;
  }

  body.theme-c2 .data-mode-badge {
    right: 10px;
    left: auto;
    max-width: min(238px, calc(100vw - 20px));
  }
}

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