:root {
  --paper: #E2E7E4;
  --ink: #16211D;
  --scrub: #37685A;
  --scrub-deep: #26493F;
  --steel: #7C918C;
  --line: #C4CDC7;
  --tile: #D8DDDA;
  --white: #F7F8F6;
  --maxw: 1100px;
  --brand: var(--scrub);
  --brand-dark: var(--scrub-deep);
  --brand-soft: var(--tile);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: var(--scrub); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--scrub); outline-offset: 3px; }
.site-shell { min-height: 100vh; }
.wrap { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(226, 231, 228, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand-lockup:hover { text-decoration: none; }
.brand-symbol { width: 58px; height: 58px; flex: 0 0 auto; overflow: hidden; }
.brand-symbol svg { display: block; width: 58px; height: 58px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-family: Archivo, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.brand-copy span { margin-top: 7px; color: var(--scrub); font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a { color: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .04em; }
.topnav a:hover { color: var(--scrub); }
.nav-pill { padding: 9px 13px; border: 1px solid var(--scrub); }

.hero { padding: 76px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 54px; align-items: center; }
.eyebrow {
  display: block;
  margin-bottom: 17px;
  color: var(--steel);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { display: none; }
.hero h1, .specialty-hero h1 {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-size: clamp(36px, 5vw, 55px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--scrub); }
.lede { max-width: 580px; margin: 25px 0 0; color: #3A4844; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { color: var(--paper); border: 1px solid var(--scrub); background: var(--scrub); }
.btn-primary:hover { color: var(--white); background: var(--scrub-deep); }
.btn-secondary { color: var(--scrub); border: 1px solid var(--scrub); background: transparent; }
.btn-secondary:hover { color: var(--paper); background: var(--scrub); }
.microcopy { margin: 17px 0 0; color: var(--steel); font-family: "IBM Plex Mono", monospace; font-size: 11px; line-height: 1.55; }

.selector-stage { position: relative; min-height: 530px; }
.selector-card {
  position: absolute;
  inset: 15px 0 15px 170px;
  z-index: 2;
  padding: 28px;
  overflow: hidden;
  background: var(--tile);
  border: 1px solid var(--line);
}
.selector-card::before, .selector-card::after { content: "+"; position: absolute; z-index: 4; color: var(--selected, var(--scrub)); font-family: "IBM Plex Mono", monospace; font-size: 18px; line-height: 1; }
.selector-card::before { top: -1px; left: 4px; }
.selector-card::after { right: 4px; bottom: -1px; }
.selector-top, .selector-body { position: relative; z-index: 2; }
.selector-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.selector-mark, .theme-title .selector-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--selected, var(--scrub));
  font-family: Archivo, sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.status-pill { color: var(--selected-dark, var(--scrub-deep)); font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.selector-body { margin-top: 48px; }
.selector-body h2 { max-width: 410px; margin: 0; font-family: Archivo, sans-serif; font-size: 32px; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
.selector-body p { max-width: 430px; margin: 16px 0 22px; color: #3A4844; font-size: 15px; }
.domain-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.domain-chips span { padding: 5px 8px; color: #3A4844; border: 1px solid var(--line); background: var(--paper); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.selector-link { display: inline-block; margin-top: 25px; color: var(--selected, var(--scrub)); font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; }
.selector-rail { position: absolute; z-index: 4; left: 0; top: 15px; bottom: 15px; width: 154px; display: grid; grid-template-columns: repeat(2, 72px); align-content: center; gap: 8px 10px; }
.selector-dot { width: 72px; min-height: 53px; padding: 6px; color: var(--dot-color); border: 1px solid var(--line); border-radius: 0; background: transparent; cursor: pointer; }
.selector-dot strong { display: block; font-family: Archivo, sans-serif; font-size: 12px; }
.selector-dot span { display: block; overflow: hidden; color: var(--steel); font-family: "IBM Plex Mono", monospace; font-size: 7px; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.selector-dot:hover { background: var(--tile); }
.selector-dot.active { color: #fff; background: var(--dot-color); border-color: var(--dot-color); }
.selector-dot.active span { color: rgba(255,255,255,.78); }

.metrics-strip { overflow: hidden; border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { min-width: 0; min-height: 72px; padding: 13px 18px; border-right: 1px solid var(--line); }
.metric:first-child { border-left: 1px solid var(--line); }
.metric strong { display: block; color: var(--scrub); font-family: Archivo, sans-serif; font-size: 20px; font-weight: 600; line-height: 1.05; }
.metric span { display: block; margin-top: 4px; color: var(--steel); font-family: "IBM Plex Mono", monospace; font-size: 8px; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; }
.section { padding: 70px 0; border-top: 1px solid var(--line); }
.metrics-strip + .section { border-top: 0; }
.section-white, .section-dark { color: var(--ink); background: transparent; }
.section-head { display: grid; grid-template-columns: 1fr .72fr; gap: 45px; align-items: end; margin-bottom: 35px; }
.section-head h2 { max-width: 650px; margin: 0; font-family: Archivo, sans-serif; font-size: clamp(29px, 4vw, 41px); font-weight: 600; line-height: 1.12; letter-spacing: -.018em; }
.section-head p, .section-dark .section-head p { margin: 0; color: #3A4844; font-size: 15px; }
.section-dark .eyebrow { color: var(--steel); }

.specialty-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 28px; }
.filter-pill { padding: 8px 12px; color: var(--steel); border: 1px solid var(--line); border-radius: 0; background: transparent; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .05em; cursor: pointer; }
.filter-pill:hover { color: var(--ink); background: var(--tile); }
.filter-pill.active { color: var(--paper); border-color: var(--scrub); background: var(--scrub); }
.specialty-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.specialty-card { position: relative; min-height: 272px; padding: 26px; overflow: hidden; color: var(--ink); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; text-decoration: none; }
.specialty-card:nth-child(odd) { border-left: 1px solid var(--line); }
.specialty-card:hover { background: var(--tile); text-decoration: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.card-mark { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--card-color); font-family: Archivo, sans-serif; font-size: 14px; font-weight: 700; }
.card-status { color: var(--card-color); font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.card-group { display: block; margin-top: 25px; color: var(--steel); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.specialty-card h3 { max-width: 360px; margin: 8px 0 10px; font-family: Archivo, sans-serif; font-size: 22px; font-weight: 600; line-height: 1.17; }
.specialty-card p { max-width: 420px; margin: 0 0 34px; color: #3A4844; font-size: 14px; }
.card-arrow { position: absolute; right: 25px; bottom: 20px; color: var(--card-color); font-family: "IBM Plex Mono", monospace; font-size: 11px; }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.pipeline-step { min-height: 250px; padding: 25px; border-right: 1px solid var(--line); background: var(--tile); }
.pipeline-step:last-child { border-right: 0; }
.step-number { color: var(--scrub); font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.pipeline-step h3 { margin: 53px 0 10px; font-family: Archivo, sans-serif; font-size: 18px; font-weight: 600; }
.pipeline-step p { margin: 0; color: #3A4844; font-size: 13px; }
.pipeline-note { margin: 22px 0 0; padding-left: 17px; color: #3A4844; border-left: 2px solid var(--scrub); font-size: 13px; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.platform-panel { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.platform-panel h3 { margin: 0 0 22px; font-family: Archivo, sans-serif; font-size: 21px; font-weight: 600; }
.feature-list { display: grid; gap: 17px; }
.feature-item { display: grid; grid-template-columns: 35px 1fr; gap: 12px; align-items: start; }
.feature-icon { color: var(--scrub); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.feature-item strong { display: block; font-family: Archivo, sans-serif; font-size: 14px; font-weight: 600; }
.feature-item span { display: block; margin-top: 3px; color: #3A4844; font-size: 13px; }

.specialty-body { --brand: var(--specialty); --brand-dark: var(--specialty-dark); --brand-soft: var(--specialty-soft); }
.notice { padding: 11px 24px; color: var(--steel); border-bottom: 1px solid var(--line); font-family: "IBM Plex Mono", monospace; font-size: 10px; text-align: center; }
.specialty-hero { position: relative; padding: 72px 0; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--paper) 0 63%, color-mix(in srgb, var(--specialty-soft) 64%, var(--paper)) 63%); }
.specialty-hero::after { display: none; }
.specialty-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.specialty-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--specialty-dark); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.pulse { width: 7px; height: 7px; background: var(--specialty); }
.specialty-hero .lede { font-size: 17px; }
.theme-card { padding: 24px; border: 1px solid var(--line); background: var(--tile); }
.theme-card-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.theme-title { display: flex; align-items: center; gap: 13px; }
.theme-title .selector-mark { --selected: var(--specialty); }
.theme-title strong { display: block; font-family: Archivo, sans-serif; font-size: 15px; }
.theme-title span { display: block; color: var(--steel); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.theme-progress { margin: 22px 0; }
.theme-progress-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--steel); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.progress-track { height: 6px; background: var(--paper); }
.progress-track span { display: block; width: 66%; height: 100%; background: var(--specialty); }
.theme-domain-list { display: grid; gap: 7px; }
.theme-domain { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 11px; border: 1px solid var(--line); background: var(--paper); font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.theme-domain i { width: 6px; height: 6px; background: var(--specialty); }
.switcher { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.switcher a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; color: var(--ink); border: 1px solid var(--line); background: transparent; font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.switcher a:hover, .switcher a[aria-current="page"] { background: var(--paper); text-decoration: none; }
.switcher-dot { width: 7px; height: 7px; }
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.roadmap-card { min-height: 190px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.roadmap-card.active { background: color-mix(in srgb, var(--specialty-soft) 55%, var(--paper)); box-shadow: inset 0 3px 0 var(--specialty); }
.roadmap-card > span { display: block; color: var(--specialty); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.roadmap-card h3 { margin: 37px 0 8px; font-family: Archivo, sans-serif; font-size: 17px; font-weight: 600; }
.roadmap-card p { margin: 0; color: #3A4844; font-size: 12px; }
.empty-state { padding: 27px; border-left: 2px solid var(--specialty); background: var(--tile); }
.empty-state strong { display: block; font-family: Archivo, sans-serif; }
.empty-state p { margin: 5px 0 0; color: #3A4844; font-size: 13px; }

.footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--steel); background: transparent; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 35px; }
.footer strong { color: var(--ink); font-family: Archivo, sans-serif; font-weight: 600; }
.footer p { max-width: 760px; margin: 7px 0 0; font-family: "IBM Plex Mono", monospace; font-size: 10px; line-height: 1.55; }
.footer-links { display: flex; gap: 15px; font-family: "IBM Plex Mono", monospace; font-size: 10px; }

@media (max-width: 920px) {
  .hero-grid, .specialty-hero-grid, .platform-grid { grid-template-columns: 1fr; }
  .selector-stage { min-height: 530px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .pipeline, .roadmap { grid-template-columns: repeat(2, 1fr); }
  .pipeline-step:nth-child(2) { border-right: 0; }
  .pipeline-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .specialty-hero { background: var(--paper); }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.6; }
  .wrap { width: min(100% - 40px, var(--maxw)); }
  .topbar-inner { min-height: 72px; }
  .brand-symbol, .brand-symbol svg { width: 46px; height: 46px; }
  .brand-copy strong { font-size: 11px; letter-spacing: .08em; }
  .brand-copy span { font-size: 8px; }
  .topnav a:not(.nav-pill) { display: none; }
  .topnav { gap: 0; }
  .nav-pill { padding: 8px 9px; font-size: 10px !important; }
  .hero { padding: 55px 0 60px; }
  .hero h1, .specialty-hero h1 { font-size: 38px; }
  .lede { font-size: 16px; }
  .selector-stage { min-height: 590px; }
  .selector-card { inset: 76px 0 0 0; padding: 22px; }
  .selector-body { margin-top: 34px; }
  .selector-body h2 { font-size: 27px; }
  .selector-rail { left: 0; right: 0; top: 0; bottom: auto; width: auto; display: flex; overflow-x: auto; padding-bottom: 8px; }
  .selector-dot { flex: 0 0 62px; width: 62px; min-height: 49px; }
  .specialty-grid, .pipeline, .roadmap { grid-template-columns: 1fr; }
  .metric { min-height: 66px; padding: 11px 7px; border-bottom: 0; }
  .metric strong { font-size: clamp(14px, 4.3vw, 18px); }
  .metric span { margin-top: 3px; font-size: clamp(6px, 1.8vw, 7.5px); line-height: 1.25; letter-spacing: .035em; }
  .specialty-card { border-left: 1px solid var(--line); }
  .pipeline-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipeline-step:last-child { border-bottom: 0; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 30px; }
  .specialty-hero { padding: 54px 0; }
  .footer-grid { display: block; }
  .footer-links { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Expanded Surgical Intelligence family homepage */
.family-hero { padding-top: 68px; }
.mission-section { color: var(--paper); background: var(--ink); }
.mission-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: start; }
.mission-section .eyebrow { color: #91aaa2; }
.mission-statement h2 { max-width: 620px; margin: 0; font-family: Archivo, sans-serif; font-size: clamp(34px, 5vw, 57px); font-weight: 600; line-height: 1.07; letter-spacing: -.028em; }
.mission-copy { padding-top: 28px; border-top: 1px solid rgba(226,231,228,.28); }
.mission-copy p { margin: 0 0 18px; color: #c8d3ce; font-size: 16px; }
.mission-copy a { display: inline-flex; gap: 10px; align-items: center; margin-top: 10px; color: #fff; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: .05em; }
.mission-copy a span { color: #91aaa2; font-size: 16px; }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.experience-card { position: relative; min-height: 225px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.experience-card.accent { background: var(--tile); box-shadow: inset 0 3px 0 var(--scrub); }
.experience-icon { display: block; color: var(--scrub); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.experience-card h3 { margin: 52px 0 9px; font-family: Archivo, sans-serif; font-size: 18px; font-weight: 600; }
.experience-card p { margin: 0; color: #3A4844; font-size: 13px; line-height: 1.6; }
.research-section { background: var(--tile); }
.method-story-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; }
.method-jump { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--scrub-deep); font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.method-jump span { font-size: 16px; }
.method-paper-card { padding: 31px; color: var(--paper); background: var(--scrub-deep); box-shadow: 12px 12px 0 color-mix(in srgb, var(--scrub) 18%, transparent); }
.paper-kicker { display: block; color: #91aaa2; font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.method-paper-card h3 { margin: 44px 0 16px; font-family: Archivo, sans-serif; font-size: clamp(22px, 3vw, 30px); font-weight: 600; line-height: 1.2; }
.method-paper-card > p { margin: 0; color: #c8d3ce; font-size: 13px; line-height: 1.65; }
.paper-status { display: grid; grid-template-columns: 8px 1fr; gap: 10px; align-items: start; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(226,231,228,.25); }
.paper-status i { width: 7px; height: 7px; margin-top: 4px; background: #91aaa2; }
.paper-status span { color: #c8d3ce; font-family: "IBM Plex Mono", monospace; font-size: 8px; line-height: 1.55; }
.research-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 72px; align-items: center; }
.research-copy h2 { max-width: 700px; margin: 16px 0 22px; font-family: Archivo, sans-serif; font-size: clamp(33px, 4.6vw, 50px); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; }
.research-copy > p { max-width: 710px; margin: 0 0 16px; color: #3A4844; font-size: 15px; }
.journal-label { display: inline-flex; padding: 6px 9px; color: var(--scrub-deep); border: 1px solid var(--scrub); font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.research-caution { display: grid; grid-template-columns: 120px 1fr; gap: 17px; margin-top: 27px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.research-caution strong { color: var(--scrub-deep); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.research-caution span { color: #3A4844; font-size: 12px; line-height: 1.6; }
.research-card { padding: 28px; border: 1px solid var(--line); background: var(--paper); box-shadow: 12px 12px 0 color-mix(in srgb, var(--scrub) 18%, transparent); }
.research-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.research-card-head span { color: var(--steel); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.research-card-head strong { font-family: Archivo, sans-serif; font-size: 12px; }
.research-metric { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.research-metric strong { color: var(--scrub); font: 600 32px/1 Archivo, sans-serif; }
.research-metric span { color: #3A4844; font-size: 12px; }
.research-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 13px; align-items: center; margin-top: 23px; }
.research-comparison > span { padding: 15px; border: 1px solid var(--line); text-align: center; }
.research-comparison small { display: block; color: var(--steel); font-family: "IBM Plex Mono", monospace; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.research-comparison strong { display: block; margin-top: 7px; color: var(--scrub-deep); font: 600 29px/1 Archivo, sans-serif; }
.research-comparison i { color: var(--steel); font-size: 11px; font-style: normal; }
.research-card > p { margin: 16px 0 0; color: var(--steel); font-family: "IBM Plex Mono", monospace; font-size: 8px; line-height: 1.6; }
.feedback-section { background: var(--paper); }
.feedback-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 76px; align-items: start; }
.feedback-grid h2 { max-width: 580px; margin: 0 0 20px; font-family: Archivo, sans-serif; font-size: clamp(33px, 4.2vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.024em; }
.feedback-grid > div:first-child > p { max-width: 610px; margin: 0 0 15px; color: #3A4844; font-size: 15px; }
.feedback-grid .feedback-transparency { margin-top: 24px !important; padding: 15px 17px; border-left: 3px solid var(--scrub); background: var(--tile); font-size: 12px !important; }
.feedback-transparency strong { color: var(--scrub-deep); }
.feedback-cycle { display: grid; border-top: 1px solid var(--line); }
.feedback-cycle article { display: grid; grid-template-columns: 45px 1fr; gap: 18px; align-items: center; min-height: 96px; padding: 17px 5px; border-bottom: 1px solid var(--line); }
.feedback-cycle article > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--paper); background: var(--scrub); font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.feedback-cycle strong { display: block; font-family: Archivo, sans-serif; font-size: 15px; }
.feedback-cycle small { display: block; margin-top: 4px; color: #3A4844; font-size: 12px; }
.closing-section { padding-top: 52px; padding-bottom: 52px; }
.closing-card { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 40px; color: var(--paper); background: var(--scrub-deep); }
.closing-card .eyebrow { margin-bottom: 10px; color: #91aaa2; }
.closing-card h2 { margin: 0; font-family: Archivo, sans-serif; font-size: clamp(27px, 4vw, 39px); font-weight: 600; line-height: 1.1; }
.closing-card p { max-width: 720px; margin: 12px 0 0; color: #c8d3ce; font-size: 13px; }
.closing-card .btn-primary { flex: 0 0 auto; color: var(--scrub-deep); border-color: #fff; background: #fff; }

@media (max-width: 1080px) {
  .topnav { gap: 15px; }
  .topnav a { font-size: 10px; }
  .research-grid, .feedback-grid { gap: 44px; }
}

@media (max-width: 920px) {
  .mission-grid, .research-grid, .method-story-grid, .feedback-grid { grid-template-columns: 1fr; gap: 34px; }
  .mission-copy { padding-top: 22px; }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .research-card { max-width: 600px; }
  .method-paper-card { max-width: 650px; }
  .closing-card { align-items: flex-start; flex-direction: column; }
  .topnav a:not(.nav-pill) { display: none; }
}

@media (max-width: 640px) {
  .family-hero { padding-top: 48px; }
  .mission-statement h2 { font-size: 36px; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-card { min-height: 190px; }
  .research-caution { grid-template-columns: 1fr; gap: 7px; }
  .research-card { padding: 20px; box-shadow: 7px 7px 0 color-mix(in srgb, var(--scrub) 18%, transparent); }
  .method-paper-card { padding: 24px; box-shadow: 7px 7px 0 color-mix(in srgb, var(--scrub) 18%, transparent); }
  .method-paper-card h3 { margin-top: 30px; }
  .research-comparison { grid-template-columns: 1fr; }
  .research-comparison i { text-align: center; }
  .closing-card { width: min(100% - 28px, var(--maxw)); padding: 28px 23px; }
}

/* Compact family homepage */
.family-home .family-hero { padding: 62px 0 58px; }
.family-hero-inner { display: block; }
.family-hero-copy { max-width: 830px; }
.family-home .family-hero h1 { max-width: 760px; font-size: clamp(39px, 6vw, 66px); }
.family-home .family-hero .lede { max-width: 760px; }
.family-home .section { padding: 52px 0; }
.family-home .section-head { margin-bottom: 25px; }
.family-home .mission-section { padding-top: 55px; padding-bottom: 55px; }
.family-home .mission-copy p:first-child { margin-top: 0; }

.study-feature-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.study-feature-strip > span {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 13px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: Archivo, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.study-feature-strip b { color: var(--scrub); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .08em; }

.compact-specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.compact-bank-tile {
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 15px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: var(--ink);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}
.compact-bank-tile:hover { background: var(--bank-soft); text-decoration: none; transform: translateY(-1px); }
.compact-bank-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--bank-color);
  font-family: Archivo, sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.compact-bank-tile > strong { overflow: hidden; font-family: Archivo, sans-serif; font-size: 12px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.compact-bank-status { display: inline-flex; align-items: center; gap: 5px; color: var(--steel); font-family: "IBM Plex Mono", monospace; font-size: 8px; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; }
.compact-bank-status i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6a2; }
.compact-bank-status.live { color: var(--bank-color); font-weight: 600; }
.compact-bank-status.live i { background: var(--bank-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bank-color) 14%, transparent); }
.compact-bank-tile > b { color: var(--bank-color); font-size: 15px; font-weight: 500; }

.compact-quality { color: #eef4f1; background: var(--scrub-deep); }
.compact-quality .section-head h2 { color: #fff; }
.compact-quality .section-head p { color: #cbd7d2; }
.compact-quality .eyebrow { color: #9eb5ad; }
.generation-figure { margin: 0; padding: 27px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.045); }
.generation-flow { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr; align-items: stretch; }
.process-node { position: relative; min-height: 164px; padding: 20px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.055); }
.process-node > span { position: absolute; top: 12px; right: 13px; color: #9eb5ad; font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.process-node svg { width: 27px; height: 27px; fill: none; stroke: #b8d4ca; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.process-node strong { display: block; margin-top: 25px; color: #fff; font-family: Archivo, sans-serif; font-size: 14px; line-height: 1.25; }
.process-node small { display: block; margin-top: 8px; color: #c6d2cd; font-size: 11px; line-height: 1.45; }
.flow-arrow { display: grid; place-items: center; color: #a9c3ba; font-family: "IBM Plex Mono", monospace; font-size: 18px; }
.feedback-loop { position: relative; width: min(760px, 86%); display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; align-items: center; gap: 8px; margin: 68px auto 0; }
.feedback-loop > div { min-height: 62px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.16); background: #31594e; text-align: center; }
.feedback-loop > div b { display: block; color: #fff; font-family: Archivo, sans-serif; font-size: 11px; }
.feedback-loop > div span { display: block; margin-top: 4px; color: #c6d2cd; font-size: 9px; line-height: 1.35; }
.feedback-loop > span:not(.loop-line) { color: #a9c3ba; text-align: center; }
.loop-line { position: absolute; z-index: 0; left: 9%; right: 9%; bottom: calc(100% - 1px); height: 62px; pointer-events: none; }
.loop-line svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: #a9c3ba; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.generation-figure figcaption { max-width: 820px; margin: 24px auto 0; color: #bfcfc9; font-size: 11px; line-height: 1.55; text-align: center; }
.method-footer-note { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 13px; background: rgba(255,255,255,.14); }
.method-footer-note > span { padding: 13px 16px; color: #c6d2cd; background: var(--scrub-deep); font-size: 10px; line-height: 1.5; }
.method-footer-note strong { display: block; margin-bottom: 2px; color: #fff; font-family: Archivo, sans-serif; font-size: 10px; }

.family-home .closing-section { padding-top: 42px; padding-bottom: 42px; }
.family-home .closing-card { padding-top: 34px; padding-bottom: 34px; }
.about-family-card { align-items: stretch; }
.about-family-copy { max-width: 790px; }
.about-family-copy p { max-width: none; font-size: 13px; line-height: 1.7; }
.about-family-team {
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.055);
}
.about-family-team span { color: #9eb5ad; font-family: "IBM Plex Mono", monospace; font-size: 9px; line-height: 1.5; letter-spacing: .055em; text-transform: uppercase; }
.about-person-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.about-person { min-width: 0; margin: 0; text-align: center; }
.about-person img { width: 108px; height: 108px; display: block; margin: 0 auto 10px; border: 2px solid rgba(255,255,255,.72); border-radius: 50%; object-fit: cover; object-position: center 24%; box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.about-person figcaption { color: #fff; font-family: Archivo, sans-serif; font-size: 12px; font-weight: 600; line-height: 1.35; }
.about-family-note { padding-top: 3px; border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 980px) {
  .study-feature-strip { grid-template-columns: repeat(3, 1fr); }
  .compact-specialty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .generation-flow { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .generation-flow .flow-arrow { display: none; }
  .feedback-loop { width: 100%; }
  .about-family-team { width: 100%; min-width: 0; }
}

@media (max-width: 420px) {
  .about-person img { width: 92px; height: 92px; }
}

@media (max-width: 680px) {
  .family-home .family-hero { padding: 45px 0 42px; }
  .family-home .family-hero h1 { font-size: 39px; }
  .family-home .section { padding: 42px 0; }
  .family-home .section-head { display: block; }
  .family-home .section-head p { margin-top: 13px; }
  .study-feature-strip { grid-template-columns: repeat(2, 1fr); }
  .compact-specialty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-bank-tile { min-height: 62px; grid-template-columns: 32px minmax(0, 1fr) 10px; grid-template-rows: auto auto; gap: 2px 7px; padding: 8px; }
  .compact-bank-mark { width: 32px; height: 32px; grid-row: 1 / span 2; font-size: 9px; }
  .compact-bank-tile > strong { grid-column: 2; align-self: end; font-size: 10px; }
  .compact-bank-status { grid-column: 2; align-self: start; gap: 3px; font-size: 6.5px; letter-spacing: .02em; }
  .compact-bank-status i { width: 5px; height: 5px; }
  .compact-bank-tile > b { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 12px; }
  .generation-figure { padding: 18px; }
  .generation-flow { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .generation-flow .process-node { min-height: 128px; }
  .feedback-loop { grid-template-columns: 1fr; gap: 7px; margin-top: 24px; }
  .feedback-loop > span:not(.loop-line) { transform: rotate(90deg); }
  .loop-line { display: none; }
  .method-footer-note { grid-template-columns: 1fr; }
}

/* Professional specialty-bank application shell */
.bank-page {
  --app-bg: #f4f6f8;
  --app-card: #ffffff;
  --app-text: #17212b;
  --app-muted: #667281;
  --app-border: #dfe4e9;
  --app-sidebar: #fbfcfd;
  min-width: 320px;
  color: var(--app-text);
  background: var(--app-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.bank-page a { color: inherit; }
.bank-page a:focus-visible, .bank-page button:focus-visible, .bank-page select:focus-visible { outline: 3px solid color-mix(in srgb, var(--specialty) 35%, transparent); outline-offset: 2px; }
.bank-shell { min-height: 100vh; }
.bank-topbar {
  position: relative;
  z-index: 2;
  min-height: 74px;
  display: grid;
  grid-template-columns: 280px minmax(280px, 430px) 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  border-bottom: 1px solid var(--app-border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.bank-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; text-decoration: none; }
.bank-brand:hover { text-decoration: none; }
.bank-brand-symbol { width: 46px; height: 46px; color: var(--specialty); overflow: hidden; }
.bank-brand-symbol svg { display: block; width: 46px; height: 46px; }
.bank-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.bank-brand-copy strong { color: #16211d; font-family: Archivo, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bank-brand-copy span { margin-top: 5px; color: var(--specialty-dark); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.bank-switch-control { display: flex; align-items: center; gap: 12px; }
.bank-switch-control > label { color: var(--app-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bank-select-wrap { position: relative; min-width: 250px; flex: 1; display: flex; align-items: center; }
.bank-mini-mark { position: absolute; left: 9px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; border-radius: 7px; background: var(--specialty); font-size: 9px; font-weight: 800; letter-spacing: .03em; pointer-events: none; }
.bank-select-wrap select { width: 100%; height: 44px; appearance: none; padding: 0 40px 0 46px; color: var(--app-text); border: 1px solid var(--app-border); border-radius: 9px; background: #fff; font: 600 13px/1 Inter, sans-serif; cursor: pointer; }
.bank-select-wrap > svg { position: absolute; right: 12px; width: 18px; color: var(--app-muted); pointer-events: none; }
.bank-top-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.all-banks-link { display: inline-flex; align-items: center; gap: 10px; min-height: 43px; padding: 0 14px 0 11px; color: var(--specialty-dark) !important; border: 1px solid color-mix(in srgb, var(--specialty) 35%, var(--app-border)); border-radius: 10px; background: linear-gradient(145deg, var(--specialty-soft), #fff); box-shadow: 0 5px 14px rgba(21,34,45,.05); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.all-banks-link:hover { border-color: var(--specialty); box-shadow: 0 7px 18px color-mix(in srgb, var(--specialty) 12%, transparent); text-decoration: none; transform: translateY(-1px); }
.all-banks-link svg { width: 21px; height: 21px; fill: var(--specialty); }
.all-banks-link > span { display: flex; flex-direction: column; font-size: 10px; font-weight: 750; line-height: 1.15; white-space: nowrap; }
.all-banks-link small { margin-bottom: 2px; color: var(--app-muted); font-size: 7px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.bank-account { display: flex; align-items: center; gap: 9px; color: var(--app-muted); font-size: 12px; font-weight: 600; }
.bank-account { min-height: 38px; padding: 0 7px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.bank-account:hover { color: var(--specialty-dark); border-color: var(--app-border); background: rgba(247,248,246,.7); }
.account-dot { width: 30px; height: 30px; border: 7px solid var(--specialty-soft); border-radius: 50%; background: var(--specialty); }
.bank-legal { min-height: 33px; display: grid; place-items: center; padding: 7px 24px; color: #6d7783; border-bottom: 1px solid var(--app-border); background: #eef1f3; font-size: 10px; font-weight: 500; text-align: center; }
.bank-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 107px); }
.bank-sidebar { position: sticky; top: 0; align-self: start; height: calc(100vh - 107px); display: flex; flex-direction: column; padding: 26px 18px 20px; border-right: 1px solid var(--app-border); background: var(--app-sidebar); }
.sidebar-bank { display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; padding: 0 7px 23px; border-bottom: 1px solid var(--app-border); }
.sidebar-bank { cursor: pointer; text-decoration: none; }
.sidebar-bank:hover { text-decoration: none; opacity: .86; }
.sidebar-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: var(--specialty); box-shadow: 0 7px 18px color-mix(in srgb, var(--specialty) 22%, transparent); font: 700 13px/1 Archivo, sans-serif; }
.sidebar-bank strong { display: block; font-size: 12px; line-height: 1.25; }
.sidebar-bank span:last-child { display: block; margin-top: 4px; color: var(--specialty-dark); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 4px; margin-top: 22px; }
.sidebar-nav a { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: center; min-height: 43px; padding: 0 12px; color: #596574; border-radius: 9px; font-size: 12px; font-weight: 600; text-decoration: none; }
.sidebar-nav a svg { width: 19px; height: 19px; fill: currentColor; }
.sidebar-nav a:hover { color: var(--specialty-dark); background: var(--specialty-soft); text-decoration: none; }
.sidebar-nav a.active { color: var(--specialty-dark); background: var(--specialty-soft); box-shadow: inset 3px 0 0 var(--specialty); }
.sidebar-cloud { margin-top: auto; display: grid; grid-template-columns: 27px 1fr; gap: 10px; padding: 15px; color: var(--specialty-dark); border: 1px solid color-mix(in srgb, var(--specialty) 22%, var(--app-border)); border-radius: 11px; background: color-mix(in srgb, var(--specialty-soft) 55%, white); }
.sidebar-cloud > svg { width: 25px; }
.sidebar-cloud strong { display: block; font-size: 10px; }
.sidebar-cloud span { display: block; margin-top: 3px; color: var(--app-muted); font-size: 9px; line-height: 1.4; }
.bank-main { min-width: 0; padding: 34px clamp(28px, 4vw, 62px) 70px; }
.bank-welcome { position: relative; min-height: 275px; display: grid; grid-template-columns: 1fr 260px; gap: 30px; align-items: center; padding: 42px 46px; overflow: hidden; color: #fff; border-radius: 18px; background: linear-gradient(130deg, var(--specialty-dark), var(--specialty) 72%, var(--specialty-accent)); box-shadow: 0 16px 35px color-mix(in srgb, var(--specialty-dark) 18%, transparent); }
.bank-welcome::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 36%); pointer-events: none; }
.welcome-copy, .welcome-insignia { position: relative; z-index: 1; }
.bank-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bank-status i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.welcome-kicker { margin: 20px 0 5px !important; color: rgba(255,255,255,.73) !important; font-size: 10px !important; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.bank-welcome h1 { max-width: 660px; margin: 0; font-family: Archivo, sans-serif; font-size: clamp(31px, 4vw, 48px); line-height: 1.06; letter-spacing: -.035em; }
.bank-welcome .welcome-copy > p:last-of-type { max-width: 690px; margin: 15px 0 0; color: rgba(255,255,255,.83); font-size: 14px; line-height: 1.6; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.bank-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 700; text-decoration: none; }
.bank-button:hover { text-decoration: none; transform: translateY(-1px); }
.bank-button.primary { color: var(--specialty-dark); background: #fff; box-shadow: 0 7px 18px rgba(0,0,0,.1); }
.bank-button.secondary { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); }
.welcome-insignia { justify-self: end; width: 210px; height: 210px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 22px rgba(255,255,255,.035); }
.welcome-insignia > span { font: 700 62px/1 Archivo, sans-serif; letter-spacing: -.05em; }
.insignia-lines { position: absolute; inset: 0; }
.insignia-lines i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.7); }
.insignia-lines i:nth-child(1) { top: 25px; left: 45px; }
.insignia-lines i:nth-child(2) { top: 72px; right: 4px; }
.insignia-lines i:nth-child(3) { bottom: 18px; left: 92px; }
.bank-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 16px; }
.bank-stats article { min-height: 132px; padding: 21px 20px; border: 1px solid var(--app-border); border-radius: 12px; background: var(--app-card); box-shadow: 0 5px 14px rgba(21,34,45,.035); }
.bank-stats article > span { display: block; color: var(--app-muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bank-stats strong { display: block; margin-top: 11px; color: var(--app-text); font-size: 20px; line-height: 1.15; }
.bank-stats article:first-child strong { color: var(--specialty-dark); }
.bank-stats small { display: block; margin-top: 7px; color: var(--app-muted); font-size: 9px; line-height: 1.45; }
.bank-section { margin-top: 22px; padding: 28px; border: 1px solid var(--app-border); border-radius: 14px; background: var(--app-card); box-shadow: 0 6px 18px rgba(21,34,45,.035); scroll-margin-top: 125px; }
.bank-section-heading, .panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.bank-section-heading > div > span, .panel-heading > div > span { display: block; margin-bottom: 4px; color: var(--specialty-dark); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.bank-section h2, .panel-heading h2 { margin: 0; color: var(--app-text); font: 600 23px/1.2 Archivo, sans-serif; letter-spacing: -.015em; }
.bank-section-heading > p { max-width: 440px; margin: 0; color: var(--app-muted); font-size: 11px; text-align: right; }
.study-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.study-action { min-height: 185px; display: flex; flex-direction: column; padding: 20px; color: var(--app-text); border: 1px solid var(--app-border); border-radius: 12px; background: #fff; text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.study-action:hover { border-color: color-mix(in srgb, var(--specialty) 46%, var(--app-border)); box-shadow: 0 9px 20px rgba(21,34,45,.07); text-decoration: none; transform: translateY(-2px); }
.study-action.featured { border-color: color-mix(in srgb, var(--specialty) 32%, var(--app-border)); background: linear-gradient(145deg, var(--specialty-soft), #fff 78%); }
.action-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--specialty-dark); border-radius: 9px; background: var(--specialty-soft); }
.action-icon svg { width: 21px; }
.action-copy { display: flex; flex-direction: column; }
.action-copy small { margin: 15px 0 -9px; color: var(--specialty-dark); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.action-copy strong { margin-top: 18px; font-size: 13px; }
.action-copy span { margin-top: 6px; color: var(--app-muted); font-size: 10px; line-height: 1.5; }
.study-action > b { margin-top: auto; align-self: flex-end; color: var(--specialty); font-size: 17px; font-weight: 500; }
.two-column-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 0; padding: 0; overflow: hidden; }
.progress-panel, .domain-panel { min-width: 0; padding: 28px; }
.progress-panel { border-right: 1px solid var(--app-border); }
.preview-label { padding: 5px 8px; color: var(--app-muted); border-radius: 999px; background: #f0f2f4; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.panel-heading > small { color: var(--app-muted); font-size: 9px; }
.domain-meta { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.domain-meta small { color: var(--app-muted); font-size: 9px; }
.domain-meta a, .domain-meta button { color: var(--specialty-dark); font: 700 8px/1.2 Archivo, sans-serif; text-decoration: none; }
.domain-meta button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.domain-meta a:hover { text-decoration: underline; }
.overall-progress { display: grid; grid-template-columns: 94px 1fr; gap: 20px; align-items: center; margin-top: 28px; }
.progress-ring { position: relative; width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--specialty) var(--progress, 0%), #e8ebee 0); }
.progress-ring::before { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #fff; }
.progress-ring span { position: relative; z-index: 1; color: var(--app-text); font-size: 15px; font-weight: 700; }
.overall-progress strong { display: block; font-size: 13px; }
.overall-progress p { margin: 6px 0 0; color: var(--app-muted); font-size: 10px; line-height: 1.55; }
.progress-legend { display: flex; gap: 17px; margin-top: 20px; color: var(--app-muted); font-size: 9px; }
.progress-legend span { display: inline-flex; align-items: center; gap: 6px; }
.progress-legend i { width: 7px; height: 7px; border-radius: 50%; background: #e8ebee; }
.progress-legend i.answered { background: var(--specialty); }
.domain-progress-list { max-height: 520px; display: grid; gap: 7px; margin-top: 25px; padding-right: 7px; overflow-y: auto; scrollbar-color: var(--specialty) #edf0f2; scrollbar-width: thin; }
.domain-map-item { overflow: hidden; border: 1px solid #edf0f2; border-radius: 8px; background: #fff; }
.domain-progress-row { width: 100%; display: grid; grid-template-columns: minmax(130px, 1fr) minmax(105px, 1.2fr) 70px 18px; gap: 12px; align-items: center; padding: 9px 10px; color: inherit; border: 0; background: transparent; cursor: pointer; text-align: left; }
.domain-progress-row.planned { grid-template-columns: minmax(130px, 1fr) auto 18px; }
.domain-progress-row.planned .domain-track { display: none; }
.domain-progress-row:hover { background: var(--specialty-soft); }
.domain-progress-row > span { overflow: hidden; color: #394552; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.domain-track { height: 6px; overflow: hidden; border-radius: 999px; background: #e9ecef; }
.domain-track i { display: block; width: var(--domain-progress, 0%); height: 100%; border-radius: inherit; background: var(--specialty); }
.domain-progress-row small { color: var(--app-muted); font-size: 8px; text-align: right; }
.domain-progress-row > b { color: var(--specialty-dark); font-size: 14px; font-weight: 500; text-align: center; }
.domain-topics { display: grid; padding: 3px 10px 10px; border-top: 1px solid #f1f3f5; background: color-mix(in srgb, var(--specialty-soft) 18%, #fff); }
.domain-topics[hidden] { display: none; }
.domain-topic-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 34px; padding: 6px 5px; border-bottom: 1px solid #edf0f2; }
.domain-topic-row:last-child { border-bottom: 0; }
.domain-topic-row > i { width: 12px; height: 12px; border: 1.5px solid color-mix(in srgb, var(--specialty) 58%, #7e8992); border-radius: 3px; background: #fff; }
.domain-topic-row > span { color: #394552; font-size: 8.5px; font-weight: 550; line-height: 1.35; }
.domain-topic-row > small { color: var(--app-muted); font-size: 7px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.release-section { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--specialty-soft) 30%, #fff)); }
.release-gates { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 25px; }
.release-gates::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: var(--app-border); }
.release-gates article { position: relative; z-index: 1; min-height: 190px; padding: 18px; border: 1px solid var(--app-border); border-radius: 11px; background: #fff; }
.release-gates article > span { width: 26px; height: 26px; display: grid; place-items: center; color: var(--app-muted); border: 1px solid var(--app-border); border-radius: 50%; background: #fff; font-size: 8px; font-weight: 800; }
.release-gates article > i { display: block; width: 34px; height: 3px; margin-top: 25px; border-radius: 3px; background: #dfe4e8; }
.release-gates article.complete { border-color: color-mix(in srgb, var(--specialty) 32%, var(--app-border)); }
.release-gates article.complete > span { color: #fff; border-color: var(--specialty); background: var(--specialty); }
.release-gates article.complete > i, .release-gates article.active > i { background: var(--specialty); }
.release-gates article.active { box-shadow: inset 0 3px 0 var(--specialty); }
.release-gates h3 { margin: 18px 0 7px; font-size: 12px; }
.release-gates p { margin: 0; color: var(--app-muted); font-size: 9px; line-height: 1.55; }
.bank-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 36px 30px 286px; color: var(--app-muted); border-top: 1px solid var(--app-border); background: #fff; }
.bank-footer > div:first-child { display: flex; flex-direction: column; }
.bank-footer strong { color: var(--app-text); font-size: 10px; }
.bank-footer span { margin-top: 4px; font-size: 9px; }
.bank-footer > div:last-child { display: flex; gap: 17px; }
.bank-footer a { font-size: 9px; font-weight: 600; }

/* Surgical Intelligence Labs visual language: quiet paper, scrub green,
   editorial headings, mono metadata, and crisp research-card edges. */
.bank-page {
  --app-bg: #e2e7e4;
  --app-card: #f7f8f6;
  --app-text: #16211d;
  --app-muted: #61716c;
  --app-border: #c4cdc7;
  --app-sidebar: #e2e7e4;
  --specialty: #37685a;
  --specialty-dark: #26493f;
  --specialty-soft: #d8ddda;
  --specialty-accent: #7c918c;
  background: var(--app-bg);
  font-family: "Source Serif 4", Georgia, serif;
}
.bank-page button, .bank-page select, .bank-page .bank-account,
.bank-page .sidebar-nav, .bank-page .bank-status, .bank-page .bank-stats article > span,
.bank-page .bank-section-heading > div > span, .bank-page .panel-heading > div > span,
.bank-page .action-copy small, .bank-page .domain-topic-row > small {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.bank-page h1, .bank-page h2, .bank-page h3, .bank-page strong,
.bank-page .bank-brand-copy, .bank-page .bank-stats strong, .bank-page .domain-progress-row > b {
  font-family: Archivo, Inter, sans-serif;
}
.bank-topbar { background: rgba(226,231,228,.96); border-bottom-color: var(--app-border); }
.bank-brand-copy strong { color: var(--app-text); }
.bank-brand-copy span { color: var(--specialty); }
.bank-legal { background: #d8ddda; border-bottom-color: var(--app-border); color: #5c6d67; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.bank-sidebar { background: rgba(226,231,228,.92); border-right-color: var(--app-border); }
.sidebar-mark, .account-dot { background: var(--specialty); }
.bank-welcome { border-radius: 0; background: var(--specialty-deep, #26493f); box-shadow: 12px 12px 0 rgba(55,104,90,.18); }
.bank-welcome::before { background: radial-gradient(circle at 86% 18%, rgba(255,255,255,.13), transparent 34%); }
.bank-button { border-radius: 0; box-shadow: none; }
.bank-button.primary { color: var(--specialty-dark); background: #f7f8f6; }
.bank-button.secondary { border-color: rgba(247,248,246,.6); background: transparent; }
.bank-stats article, .bank-section { border-radius: 0; border-color: var(--app-border); background: var(--app-card); box-shadow: none; }
.bank-section { padding: 30px; }
.study-action { border-radius: 0; border-color: var(--app-border); background: #f7f8f6; box-shadow: none; }
.study-action:hover { border-color: var(--specialty); box-shadow: 6px 6px 0 rgba(55,104,90,.14); transform: translateY(-1px); }
.study-action.featured { background: var(--specialty-soft); }
.action-icon { border-radius: 0; background: #c4cdc7; }
.two-column-section { border-radius: 0; }
.progress-ring { background: conic-gradient(var(--specialty) var(--progress, 0%), #c4cdc7 0); }
.domain-progress-row:hover, .domain-topic-row:hover { background: #d8ddda; }
.domain-topics { background: #eef1ef; }
.release-section { background: #eef1ef; }
.research-notice { border-radius: 0; border-color: var(--app-border); background: #d8ddda; box-shadow: 6px 6px 0 rgba(55,104,90,.12); }
.research-notice h3 { font-family: Archivo, Inter, sans-serif; }
.contributors-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; }
.contributors-backdrop { position: absolute; inset: 0; background: rgba(22,33,29,.58); }
.contributors-dialog { position: relative; width: min(760px, 100%); max-height: min(720px, calc(100vh - 48px)); overflow: auto; padding: 38px; color: var(--app-text); border: 1px solid var(--app-border); background: #f7f8f6; box-shadow: 14px 14px 0 rgba(55,104,90,.22); }
.contributors-close { position: absolute; top: 13px; right: 15px; width: 34px; height: 34px; padding: 0; color: var(--app-text); border: 1px solid var(--app-border); background: transparent; font: 300 25px/1 Archivo, sans-serif; cursor: pointer; }
.contributors-close:hover { color: #f7f8f6; border-color: var(--specialty); background: var(--specialty); }
.contributors-eyebrow { display: block; color: var(--specialty); font: 500 10px/1 "IBM Plex Mono", monospace; letter-spacing: .17em; text-transform: uppercase; }
.contributors-dialog h2 { margin: 10px 0 8px; font: 600 clamp(25px, 4vw, 38px)/1.05 Archivo, sans-serif; letter-spacing: -.025em; }
.contributors-intro { max-width: 570px; margin: 0; color: #53635d; font-size: 15px; line-height: 1.55; }
.contributors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; margin-top: 28px; }
.contributors-grid article { display: flex; flex-direction: column; min-width: 0; }
.contributors-grid img, .contributors-initials > div { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 8%; filter: saturate(.82); border: 1px solid var(--app-border); background: #d8ddda; }
.contributors-grid .contributor-mustafa img { object-position: center 8%; }
.contributors-grid strong { margin-top: 11px; font: 600 12px/1.25 Archivo, sans-serif; }
.contributors-grid span { margin-top: 5px; color: var(--specialty); font: 500 8px/1.35 "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.contributors-initials > div { display: grid; place-items: center; color: #f7f8f6; background: var(--specialty-dark); font: 600 32px/1 Archivo, sans-serif; }
.mark-btn { margin-right: 12px; padding: 4px 0; color: var(--specialty-dark); border: 0; background: transparent; cursor: pointer; font: 600 11px/1 "IBM Plex Mono", monospace; }
.mark-btn:hover { color: var(--specialty); text-decoration: underline; }
.update-stat { position: relative; overflow: hidden; }
.update-stat strong { font-size: 17px !important; }
.update-spark { display: flex; align-items: end; gap: 4px; height: 32px; margin: 10px 0 4px; padding: 0 2px; border-bottom: 1px solid var(--app-border); }
.update-spark i { flex: 1; min-width: 7px; border: 1px solid color-mix(in srgb, var(--specialty) 45%, transparent); background: linear-gradient(180deg, var(--specialty), var(--specialty-accent)); }
.update-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 25px 0 18px; }
.update-detail-grid > div { padding: 18px; border: 1px solid var(--app-border); background: #e2e7e4; }
.update-detail-grid strong { display: block; color: var(--specialty-dark); font: 600 34px/1 Archivo, sans-serif; }
.update-detail-grid span { display: block; margin-top: 8px; color: var(--app-muted); font: 500 9px/1.4 "IBM Plex Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.update-detail-note { padding: 14px 16px; color: #53635d; border-left: 3px solid var(--specialty); background: #eef1ef; font-size: 14px; line-height: 1.5; }
.update-close-action { margin-top: 8px; }
.performance-dialog { width: min(980px, 100%); }
.performance-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 22px; }
.performance-summary > div { padding: 16px; border: 1px solid var(--app-border); background: #e2e7e4; }
.performance-summary strong { display: block; color: var(--specialty-dark); font: 600 25px/1 Archivo, sans-serif; }
.performance-summary span { display: block; margin-top: 7px; color: var(--app-muted); font: 500 8px/1.35 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.performance-section-list { display: grid; gap: 8px; }
.performance-domain { border: 1px solid var(--app-border); background: #f7f8f6; }
.performance-domain summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.performance-domain summary::-webkit-details-marker { display: none; }
.performance-domain summary::after { content: '+'; color: var(--specialty); font: 600 16px/1 Archivo, sans-serif; }
.performance-domain[open] summary::after { content: '−'; }
.performance-domain summary span { font: 600 13px/1.25 Archivo, sans-serif; }
.performance-domain summary small { color: var(--app-muted); font: 500 8px/1.35 "IBM Plex Mono", monospace; text-align: right; text-transform: uppercase; }
.performance-topic-list { border-top: 1px solid var(--app-border); }
.performance-topic { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 11px 16px; border-bottom: 1px solid #e7ebe8; }
.performance-topic:last-child { border-bottom: 0; }
.performance-topic strong { display: block; color: var(--app-text); font: 500 11px/1.3 "Source Serif 4", Georgia, serif; }
.performance-topic span { display: block; margin-top: 3px; color: var(--app-muted); font: 500 8px/1.35 "IBM Plex Mono", monospace; }
.performance-topic > b { min-width: 76px; color: var(--specialty-dark); font: 600 15px/1 Archivo, sans-serif; text-align: right; }
.performance-topic > b small { display: block; margin-top: 4px; color: var(--app-muted); font: 500 7px/1.2 "IBM Plex Mono", monospace; white-space: nowrap; }
.bank-stats .stat-action { cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.bank-stats .stat-action:hover, .bank-stats .stat-action:focus-visible { border-color: var(--specialty); background: #eef1ef; }
.map-help { margin: 7px 0 0; color: var(--app-muted); font-size: 11px; }
.custom-builder-controls { display: grid; grid-template-columns: auto minmax(190px,1fr) auto 68px; gap: 8px; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--app-border); }
.custom-builder-controls label { color: var(--app-muted); font: 500 8px/1 "IBM Plex Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.custom-builder-controls select, .custom-builder-controls input { min-width: 0; height: 38px; padding: 0 10px; color: var(--app-text); border: 1px solid var(--app-border); background: #f7f8f6; font: 600 11px/1 "IBM Plex Mono", monospace; }
.custom-builder-controls select { min-width: 190px; width: 100%; }
.custom-builder-controls input { width: 58px; text-align: center; }
.custom-builder-controls span { grid-column: 1 / -1; color: var(--specialty); font: 500 9px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; }
.custom-builder-controls button { grid-column: 1 / -1; min-height: 36px; padding: 0 12px; color: #f7f8f6; border: 1px solid var(--specialty-dark); background: var(--specialty-dark); cursor: pointer; font: 600 9px/1 "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.custom-builder-controls button:hover:not(:disabled) { background: var(--specialty); }
.custom-builder-controls button:disabled { cursor: not-allowed; opacity: .45; }
.domain-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.domain-meta > small { flex-basis: 100%; text-align: right; }
.domain-meta button, .domain-meta input { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.domain-meta button { padding: 7px 10px; color: var(--specialty-dark); border: 1px solid var(--app-border); background: #f7f8f6; cursor: pointer; font-size: 8px; font-weight: 600; }
.domain-meta button:hover:not(:disabled) { border-color: var(--specialty); background: var(--specialty-soft); }
.domain-meta button:disabled { cursor: not-allowed; opacity: .45; }
.custom-count-label { display: inline-flex; align-items: center; gap: 5px; color: var(--app-muted); font: 500 8px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.custom-count-label input { width: 45px; padding: 7px 4px; color: var(--app-text); border: 1px solid var(--app-border); background: #f7f8f6; text-align: center; font-size: 10px; }
#modernCustomSelected { color: var(--specialty); font: 600 8px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.domain-topic-row { appearance: none; border: 0; width: 100%; cursor: pointer; text-align: left; font: inherit; }
.domain-topic-row.selected { background: var(--specialty-soft); box-shadow: inset 3px 0 0 var(--specialty); }
.domain-topic-row.selected > i { border-color: var(--specialty); background: var(--specialty); box-shadow: inset 0 0 0 3px var(--specialty-soft); }
.domain-topic-row > small { min-width: 42px; color: var(--specialty-dark); font-size: 9px; font-weight: 700; letter-spacing: .03em; text-align: right; }
.domain-topic-row > span { font-size: 10px; }
.previous-tests-page { max-width: 940px; margin: 0 auto; }
.previous-tests-head { padding: 8px 0 28px; border-bottom: 1px solid var(--app-border); }
.previous-tests-head h1 { margin: 12px 0 8px; color: var(--app-text); font: 600 clamp(30px, 4vw, 46px)/1 Archivo, sans-serif; letter-spacing: -.03em; }
.previous-tests-head p { margin: 0; color: var(--app-muted); font-size: 15px; }
.previous-empty { margin-top: 24px; padding: 28px; border: 1px solid var(--app-border); background: var(--app-card); color: var(--app-muted); }
.previous-tests-list { display: grid; gap: 12px; margin-top: 24px; }
.previous-test-card { display: grid; grid-template-columns: minmax(0,1fr) 90px auto; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--app-border); background: var(--app-card); }
.previous-test-status { display: inline-block; padding: 4px 7px; font: 600 8px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.previous-test-status.complete { color: #2e6653; background: #d8ddda; }
.previous-test-status.paused { color: #8a6533; background: #f3e7cf; }
.previous-test-card h2 { margin: 8px 0 5px; font: 600 16px/1.25 Archivo, sans-serif; }
.previous-test-card p { margin: 0; color: var(--app-muted); font-size: 11px; }
.previous-test-score { color: var(--specialty-dark); font: 600 22px/1 Archivo, sans-serif; text-align: center; }
.previous-test-score small { display: block; margin-top: 5px; color: var(--app-muted); font: 500 8px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.previous-test-actions { display: flex; gap: 8px; }
.previous-test-actions .bank-button { min-height: 36px; padding: 0 11px; font-size: 9px; }
#si-main > .auth-wrap { width: min(760px, 100%); max-width: none; margin: 0 auto; padding: 44px; border: 1px solid var(--app-border); border-radius: 0; background: var(--app-card); box-shadow: 12px 12px 0 rgba(55,104,90,.13); }
#si-main > .auth-wrap > .title { margin: 0 0 8px; color: var(--app-text); font: 600 32px/1 Archivo, sans-serif; letter-spacing: -.03em; }
#si-main > .auth-wrap .welcome-banner { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 18px; margin: 20px 0 28px; padding: 22px; border: 1px solid var(--app-border); border-radius: 0; background: #d8ddda; }
#si-main > .auth-wrap .welcome-icon { display: grid; place-items: center; width: 46px; height: 46px; color: #f7f8f6; background: var(--specialty-dark); font-size: 21px; }
#si-main > .auth-wrap .welcome-body strong { color: var(--specialty-dark); font: 600 17px/1.2 Archivo, sans-serif; }
#si-main > .auth-wrap .welcome-body p { margin: 10px 0 0; color: #52635d; font-size: 14px; line-height: 1.55; }
#si-main > .auth-wrap .welcome-sig { display: block; margin-top: 14px; color: var(--specialty); font: 500 10px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
#si-main > .auth-wrap .auth-sub { color: var(--app-muted); font-size: 14px; }
#si-main > .auth-wrap .auth-input { height: 46px; padding: 0 13px; border: 1px solid var(--app-border); border-radius: 0; background: #f7f8f6; font: 14px "Source Serif 4", Georgia, serif; }
#si-main > .auth-wrap .auth-input:focus { outline: 2px solid color-mix(in srgb, var(--specialty) 35%, transparent); border-color: var(--specialty); }
#si-main > .auth-wrap .btn-primary { min-height: 44px; border-radius: 0; background: var(--specialty-dark); font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
#si-main > .auth-wrap .btn-link { color: var(--specialty-dark); font-family: "IBM Plex Mono", monospace; font-size: 10px; }
@media (max-width: 680px) {
  .contributors-dialog { padding: 30px 22px 24px; }
  .contributors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .domain-meta { justify-content: flex-start; }
  .domain-meta > small { text-align: left; }
  .update-detail-grid { grid-template-columns: 1fr; }
  .custom-builder-controls { grid-template-columns: 1fr 1fr; }
  .performance-summary { grid-template-columns: repeat(2, 1fr); }
  .performance-domain summary { align-items: flex-start; }
  .performance-domain summary small { max-width: 150px; }
  .custom-builder-controls label { margin-top: 4px; }
  .previous-test-card { grid-template-columns: 1fr auto; gap: 14px; }
  .previous-test-score { grid-column: 2; grid-row: 1; }
  .previous-test-actions { grid-column: 1 / -1; }
  #si-main > .auth-wrap { padding: 28px 20px; }
}

@media (max-width: 1120px) {
  .bank-topbar { grid-template-columns: 230px minmax(250px, 400px) 1fr; padding: 0 24px; }
  .bank-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .bank-sidebar { padding-left: 13px; padding-right: 13px; }
  .bank-main { padding-left: 26px; padding-right: 26px; }
  .bank-welcome { grid-template-columns: 1fr 180px; padding: 36px; }
  .welcome-insignia { width: 165px; height: 165px; }
  .welcome-insignia > span { font-size: 50px; }
  .study-action-grid { grid-template-columns: repeat(2, 1fr); }
  .study-action { min-height: 164px; }
  .bank-footer { padding-left: 246px; }
}

@media (max-width: 820px) {
  .bank-topbar { position: relative; grid-template-columns: 1fr auto; min-height: 70px; }
  .bank-switch-control { grid-column: 1 / -1; grid-row: 2; padding-bottom: 14px; }
  .bank-switch-control > label { display: none; }
  .bank-top-actions { grid-column: 2; grid-row: 1; }
  .bank-account { display: flex; font-size: 10px; }
  .bank-legal { min-height: 44px; }
  .bank-layout { display: block; }
  .bank-sidebar { position: static; width: 100%; height: auto; display: block; padding: 12px 20px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--app-border); }
  .sidebar-bank, .sidebar-cloud { display: none; }
  .sidebar-nav { display: flex; width: max-content; gap: 4px; margin: 0; }
  .sidebar-nav a { grid-template-columns: 18px auto; min-height: 38px; padding: 0 10px; }
  .sidebar-nav a.active { box-shadow: inset 0 -3px 0 var(--specialty); }
  .bank-main { padding: 24px 20px 55px; }
  .bank-welcome { grid-template-columns: 1fr; min-height: auto; }
  .welcome-insignia { position: absolute; right: -55px; bottom: -62px; opacity: .24; }
  .welcome-copy { max-width: 90%; }
  .bank-stats { grid-template-columns: repeat(2, 1fr); }
  .two-column-section { grid-template-columns: 1fr; }
  .progress-panel { border-right: 0; border-bottom: 1px solid var(--app-border); }
  .release-gates { grid-template-columns: repeat(2, 1fr); }
  .release-gates::before { display: none; }
  .bank-footer { padding: 26px 22px; }
}

@media (max-width: 560px) {
  .bank-topbar { padding: 0 16px; column-gap: 10px; }
  .bank-brand-symbol { width: 38px; height: 38px; }
  .bank-brand-symbol svg { width: 38px; height: 38px; }
  .bank-brand-copy strong { font-size: 10px; }
  .bank-brand-copy span { font-size: 8px; }
  .all-banks-link { min-height: 39px; padding: 0 10px; }
  .all-banks-link > span { font-size: 9px; }
  .all-banks-link small { display: none; }
  .bank-switch-control { width: 100%; }
  .bank-select-wrap { min-width: 0; }
  .bank-legal { padding-left: 16px; padding-right: 16px; font-size: 8px; line-height: 1.4; }
  .bank-sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar-nav a { grid-template-columns: 18px; }
  .sidebar-nav a span { display: none; }
  .bank-main { padding: 18px 13px 46px; }
  .bank-welcome { padding: 28px 24px; border-radius: 14px; }
  .bank-welcome h1 { font-size: 29px; }
  .welcome-copy { max-width: 100%; }
  .welcome-actions { display: grid; }
  .bank-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bank-stats article { min-height: 120px; padding: 17px 15px; }
  .bank-stats strong { font-size: 17px; }
  .bank-section { margin-top: 14px; padding: 21px 17px; }
  .bank-section-heading { display: block; }
  .bank-section-heading > p { margin-top: 8px; text-align: left; }
  .study-action-grid, .release-gates { grid-template-columns: 1fr; }
  .study-action { min-height: 150px; }
  .two-column-section { padding: 0; }
  .progress-panel, .domain-panel { padding: 21px 17px; }
  .domain-progress-row { grid-template-columns: minmax(0, 1fr) 78px 18px; }
  .domain-progress-row .domain-track { grid-column: 1 / -1; grid-row: 2; }
  .domain-progress-row small { grid-column: 2; grid-row: 1; }
  .domain-progress-row > b { grid-column: 3; grid-row: 1; }
  .domain-progress-row.planned { grid-template-columns: minmax(0, 1fr) auto 18px; }
  .bank-footer { display: block; }
  .bank-footer > div:last-child { margin-top: 16px; }
}
