.hub-shell {
  --hub-red: var(--red, #d9103a);
  --hub-ink: var(--ink, #19151a);
  --hub-muted: var(--muted, #6f696e);
  --hub-line: var(--line, #e7dfe3);
  --hub-paper: #fff;
  --hub-soft: #f6f2f4;
  width: min(100%, 73.75rem);
  margin: 0 auto;
  padding: 0 1.5rem 5.5rem;
  color: var(--hub-ink);
}

.hub-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 1.35rem 0 0;
  color: var(--hub-muted);
  font-size: .875rem;
}

.hub-breadcrumbs a { color: inherit; }
.hub-breadcrumbs a:hover { color: var(--hub-red); }

.hub-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  padding: clamp(3rem, 7vw, 6rem) 0 2.5rem;
}

.hub-intro h1 {
  max-width: 52rem;
  margin: .65rem 0 1rem;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hub-intro p {
  max-width: 48rem;
  margin: 0;
  color: #4f484d;
  font-size: 1.12rem;
  line-height: 1.65;
}

.hub-intro-card {
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 63, 82, .5), transparent 35%),
    #19151a;
  color: #fff;
}

.hub-intro-card strong { font-size: 1.3rem; }
.hub-intro-card span { margin-top: .5rem; color: #d8cfd4; line-height: 1.5; }

.hub-eyebrow {
  color: var(--hub-red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hub-disclaimer {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid #e7b96d;
  border-radius: .9rem;
  background: #fff6e6;
  color: #4f3b19;
  font-size: .94rem;
  line-height: 1.55;
}

.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr);
  gap: 1rem;
  align-items: start;
}

.hub-panel {
  border: 1px solid var(--hub-line);
  border-radius: 1.25rem;
  background: var(--hub-paper);
  box-shadow: 0 1rem 3rem rgba(25, 21, 26, .06);
  overflow: hidden;
}

.hub-panel-head {
  padding: 1.45rem 1.5rem 1.2rem;
  border-bottom: 1px solid var(--hub-line);
}

.hub-panel-head h2,
.hub-section h2 {
  margin: .35rem 0 .45rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.hub-panel-head p,
.hub-section > p { margin: 0; color: var(--hub-muted); line-height: 1.6; }

.hub-panel-body { padding: 1.5rem; }

.hub-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hub-field { display: grid; gap: .5rem; }
.hub-field label { font-size: .9rem; font-weight: 850; }
.hub-field small { color: var(--hub-muted); font-size: .78rem; line-height: 1.35; }

.hub-field input,
.hub-field select {
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid #cfc4ca;
  border-radius: .75rem;
  padding: .75rem .9rem;
  background: #fff;
  color: var(--hub-ink);
  font: inherit;
  font-size: 1rem;
}

.hub-field input:focus,
.hub-field select:focus,
.hub-action:focus-visible,
.interface-hotspot:focus-visible,
.demo-control:focus-visible,
.triage-option:focus-within {
  outline: .2rem solid rgba(217, 16, 58, .2);
  outline-offset: .14rem;
  border-color: var(--hub-red);
}

.hub-actions-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }

.hub-action {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hub-ink);
  border-radius: 999px;
  padding: .68rem 1rem;
  background: var(--hub-ink);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  cursor: pointer;
}

.hub-action.secondary { background: #fff; color: var(--hub-ink); }
.hub-action.red { border-color: var(--hub-red); background: var(--hub-red); }

.lab-result {
  min-height: 100%;
  padding: 1.5rem;
  background: #19151a;
  color: #fff;
}

.lab-gauge {
  --risk: 25%;
  width: 9rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 1rem auto 1.35rem;
  border-radius: 50%;
  background: conic-gradient(var(--hub-red) var(--risk), #40393e 0);
  position: relative;
}

.lab-gauge::after {
  content: "";
  position: absolute;
  inset: .7rem;
  border-radius: inherit;
  background: #19151a;
}

.lab-gauge strong { position: relative; z-index: 1; font-size: 1.55rem; }
.lab-result h2 { margin: 0; font-size: 1.55rem; }
.lab-result > p { color: #d4cbd0; line-height: 1.55; }

.lab-metrics { display: grid; gap: .55rem; margin: 1.2rem 0 0; }
.lab-metrics div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid #40393e; }
.lab-metrics dt { color: #bfb5bb; font-size: .85rem; }
.lab-metrics dd { margin: 0; text-align: right; font-weight: 850; }

.hub-section { padding: clamp(3rem, 6vw, 5rem) 0 0; }

.lab-tool-grid,
.help-grid,
.hub-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.4rem;
}

.lab-tool,
.help-card,
.hub-link-card {
  border: 1px solid var(--hub-line);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
}

.lab-tool strong,
.help-card h3,
.hub-link-card h3 { display: block; margin: 0 0 .55rem; font-size: 1.08rem; }
.lab-tool p,
.help-card p,
.hub-link-card p { margin: 0; color: var(--hub-muted); font-size: .92rem; line-height: 1.55; }
.hub-link-card { display: flex; min-height: 12rem; flex-direction: column; }
.hub-link-card a { margin-top: auto; padding-top: 1rem; color: var(--hub-red); font-weight: 850; }

.stress-meter { margin-top: 1.2rem; }
.stress-track { height: .7rem; overflow: hidden; border-radius: 999px; background: #e9e1e5; }
.stress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--hub-red); transition: width .25s ease; }
.stress-copy { display: flex; justify-content: space-between; gap: 1rem; margin-top: .55rem; color: var(--hub-muted); font-size: .85rem; }

.help-urgent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  padding: 1.2rem;
  background: #19151a;
  color: #fff;
}

.help-urgent b { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--hub-red); }
.help-urgent h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.help-urgent p { margin: 0; color: #d8cfd4; line-height: 1.5; }

.help-card { display: flex; flex-direction: column; min-height: 13rem; }
.help-card .hub-action { margin-top: auto; align-self: flex-start; }

.triage-list { display: grid; gap: .7rem; }
.triage-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  border: 1px solid var(--hub-line);
  border-radius: .8rem;
  padding: .85rem;
  cursor: pointer;
}
.triage-option input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--hub-red); }
.triage-option strong { display: block; font-size: .93rem; }
.triage-option span { color: var(--hub-muted); font-size: .82rem; line-height: 1.4; }

.triage-result { padding: 1.5rem; border-radius: 1rem; background: var(--hub-soft); }
.triage-result[data-level="high"] { background: #211a1d; color: #fff; }
.triage-result[data-level="medium"] { background: #fff1d6; color: #4c3713; }
.triage-result h3 { margin: 0 0 .55rem; font-size: 1.35rem; }
.triage-result p { margin: 0; line-height: 1.55; }
.triage-result ol { margin-bottom: 0; padding-left: 1.25rem; }
.triage-result li { margin: .45rem 0; }

.help-details { display: grid; gap: .7rem; margin-top: 1.2rem; }
.help-details details { border: 1px solid var(--hub-line); border-radius: .9rem; padding: 1rem 1.1rem; background: #fff; }
.help-details summary { cursor: pointer; font-weight: 850; }
.help-details p, .help-details li { color: var(--hub-muted); line-height: 1.55; }

.demo-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr);
  gap: 1rem;
}

.demo-screen {
  min-height: 33rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #161217;
  color: #fff;
  box-shadow: 0 1.5rem 4rem rgba(25, 21, 26, .17);
}

.demo-screen-top { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid #3c3439; font-size: .82rem; }
.demo-screen-top span:last-child { color: #7ee0a0; font-weight: 850; }
.demo-flight { display: grid; place-items: center; padding: 2rem; text-align: center; background: radial-gradient(circle at 50% 70%, rgba(217,16,58,.18), transparent 42%); }
.demo-multiplier { font-size: clamp(3.6rem, 10vw, 7rem); font-weight: 950; letter-spacing: -.06em; }
.demo-multiplier span { color: var(--hub-red); }
.demo-flight p { max-width: 28rem; margin: .6rem auto 0; color: #cfc5cb; }
.demo-bet-panel { display: grid; grid-template-columns: 1fr auto auto; gap: .65rem; align-items: center; padding: 1rem 1.2rem; border-top: 1px solid #3c3439; background: #201a1f; }
.demo-stake strong { display: block; font-size: 1.1rem; }
.demo-stake span { color: #aaa0a6; font-size: .78rem; }
.demo-control { min-height: 3rem; border: 0; border-radius: .7rem; padding: .7rem 1rem; background: var(--hub-red); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.demo-control.secondary { border: 1px solid #544a50; background: transparent; }
.demo-control:disabled { opacity: .4; cursor: not-allowed; }

.demo-guide { border: 1px solid var(--hub-line); border-radius: 1.25rem; padding: 1.4rem; background: #fff; }
.demo-guide-progress { display: flex; gap: .35rem; margin-bottom: 1.3rem; }
.demo-guide-progress span { flex: 1; height: .38rem; border-radius: 99px; background: #e5dde1; }
.demo-guide-progress span.active { background: var(--hub-red); }
.demo-guide h2 { margin: .35rem 0 .6rem; font-size: 1.55rem; }
.demo-guide p { color: var(--hub-muted); line-height: 1.6; }
.demo-guide .hub-actions-row { margin-top: 1.5rem; }

.interface-map { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr); gap: 1rem; margin-top: 1.3rem; }
.interface-canvas { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; min-height: 29rem; border-radius: 1.2rem; padding: 1rem; background: #19151a; color: #fff; }
.interface-zone { position: relative; min-height: 8rem; border: 1px solid #463d43; border-radius: .8rem; padding: 1rem; background: #241e22; }
.interface-zone.wide { grid-column: 1 / -1; min-height: 12rem; }
.interface-zone small { color: #a99fa5; }
.interface-hotspot { position: absolute; top: .65rem; right: .65rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--hub-red); color: #fff; font: inherit; font-weight: 950; cursor: pointer; }
.interface-hotspot[aria-pressed="true"] { box-shadow: 0 0 0 .3rem rgba(255,255,255,.2); }
.interface-detail { border: 1px solid var(--hub-line); border-radius: 1.2rem; padding: 1.4rem; background: #fff; }
.interface-detail strong { color: var(--hub-red); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.interface-detail h3 { margin: .5rem 0 .65rem; font-size: 1.45rem; }
.interface-detail p { color: var(--hub-muted); line-height: 1.6; }
.interface-detail ul { padding-left: 1.1rem; }
.interface-detail li { margin: .5rem 0; color: #4f484d; line-height: 1.5; }

.evidence-ribbon {
  display: grid;
  grid-template-columns: minmax(13rem, 1.2fr) repeat(3, minmax(7rem, .7fr)) auto;
  gap: .7rem;
  align-items: stretch;
  margin: 1rem 0 1.4rem;
  border: 1px solid #ddd2d8;
  border-left: .35rem solid var(--red, #d9103a);
  border-radius: .9rem;
  padding: .8rem;
  background: #fff;
  box-shadow: 0 .8rem 2rem rgba(25, 21, 26, .06);
}
.evidence-ribbon > div { padding: .55rem .7rem; border-right: 1px solid #e8e0e4; }
.evidence-ribbon > div:first-child { background: #f7f2f4; border-radius: .6rem; }
.evidence-ribbon span { display: block; color: #71676d; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.evidence-ribbon strong { display: block; margin-top: .25rem; font-size: .9rem; line-height: 1.35; }
.evidence-ribbon a { align-self: center; color: var(--red, #d9103a); font-size: .86rem; font-weight: 900; white-space: nowrap; }

.site-hubs-callout {
  width: min(calc(100% - 3rem), 70.75rem);
  margin: 3rem auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  background: #19151a;
  color: #fff;
}
.site-hubs-callout h2 { margin: .45rem 0 .7rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.site-hubs-callout > p { max-width: 48rem; color: #cfc5cb; }
.site-hubs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.4rem; }
.site-hubs-grid a { display: flex; min-height: 9.5rem; flex-direction: column; border: 1px solid #4b4247; border-radius: 1rem; padding: 1rem; background: #211b20; }
.site-hubs-grid a:hover { border-color: #f05a68; background: #2a2227; }
.site-hubs-grid span { color: #ff818c; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.site-hubs-grid strong { margin: .45rem 0; font-size: 1.12rem; }
.site-hubs-grid b { margin-top: auto; color: #fff; font-size: .88rem; }

.hub-context-banner {
  width: min(calc(100% - 3rem), 70.75rem);
  margin: 1.25rem auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 1px solid #ddd2d8;
  border-left: .35rem solid var(--red, #d9103a);
  border-radius: .9rem;
  padding: 1rem 1.1rem;
  background: #fff;
}
.hub-context-banner span { color: var(--red, #d9103a); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hub-context-banner p { margin: .25rem 0 0; color: #5f575c; line-height: 1.45; }
.hub-context-banner a { flex: 0 0 auto; color: var(--red, #d9103a); font-weight: 900; }

@media (max-width: 980px) {
  .hub-intro, .hub-grid, .demo-workspace, .interface-map { grid-template-columns: 1fr; }
  .hub-intro-card { min-height: 10rem; }
  .evidence-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-ribbon > div { border-right: 0; }
  .evidence-ribbon a { padding: .55rem .7rem; }
}

@media (max-width: 760px) {
  .hub-shell { padding-inline: 1rem; }
  .hub-fields, .lab-tool-grid, .help-grid, .hub-link-grid, .site-hubs-grid { grid-template-columns: 1fr; }
  .hub-intro { padding-top: 3rem; }
  .hub-intro h1 { font-size: 2.8rem; }
  .demo-bet-panel { grid-template-columns: 1fr 1fr; }
  .demo-stake { grid-column: 1 / -1; }
  .site-hubs-callout { width: calc(100% - 2rem); }
  .hub-context-banner { width: calc(100% - 2rem); align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .evidence-ribbon { grid-template-columns: 1fr; }
  .interface-canvas { grid-template-columns: 1fr; }
  .interface-zone.wide { grid-column: auto; }
  .demo-screen { min-height: 28rem; }
}

@media (prefers-reduced-motion: reduce) {
  .stress-track span { transition: none; }
}
