:root {
  --canvas: #eef0ef;
  --paper: #fbfcfb;
  --ink: #46534f;
  --muted: #75817d;
  --sage: #96b0ac;
  --sage-dark: #607e76;
  --sage-pale: #dce6e3;
  --line: #d4dcda;
  --coral: #d86f4d;
  --shadow: 0 24px 60px rgba(57, 72, 68, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 440px at 8% -8%, rgba(150, 176, 172, .23), transparent 68%),
    var(--canvas);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1240px, calc(100% - 40px));
  min-height: 76px;
  margin: 18px auto 0;
  padding: 12px 16px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  background: rgba(251, 252, 251, .76);
  box-shadow: 0 12px 36px rgba(59, 73, 69, .07);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .02em;
}

.wordmark strong { color: var(--sage-dark); }

.wordmark-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, #aec3be, #748f88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: inset 0 1px rgba(255, 255, 255, .45), 0 8px 20px rgba(96, 126, 118, .25);
}

.site-header nav { display: flex; align-items: center; gap: 7px; }
.site-header nav a, .nav-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: #66736f;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.site-header nav a:hover, .nav-button:hover { background: rgba(150, 176, 172, .13); }
.site-header nav .nav-cta { color: white; background: var(--sage-dark); padding-inline: 19px; }
.site-header nav .nav-cta:hover { background: #526f68; }
.language-switcher { padding: 3px; display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .68); }
.language-button { min-width: 34px; min-height: 34px; padding: 0 7px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 850; letter-spacing: .06em; cursor: pointer; }
.language-button[aria-pressed="true"] { color: var(--sage-dark); background: var(--sage-pale); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero { padding: 100px 0 66px; }
.hero-pricing { max-width: 930px; }
.eyebrow {
  margin: 0 0 17px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2 { font-family: Montserrat, "Segoe UI", Arial, sans-serif; }
h1 { margin: 0; color: #52605c; font-size: clamp(42px, 6vw, 78px); line-height: .99; letter-spacing: -.055em; }
.hero-copy { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: 19px; }

.evidence-hero { max-width: 1040px; padding: 92px 0 72px; }
.evidence-hero h1 { max-width: 980px; font-size: clamp(48px, 6.4vw, 82px); }
.claim-ladder, .evidence-section { margin-bottom: 78px; }
.evidence-heading { align-items: flex-end; margin-bottom: 24px; }
.evidence-heading h2 { margin: 0; font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -.04em; }
.evidence-heading > p { max-width: 480px; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.claim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.claim-card { min-height: 245px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--sage); border-radius: 6px 6px 22px 22px; background: rgba(251,252,251,.78); }
.claim-card > span { color: #9ba7a3; font-family: Consolas, monospace; font-size: 11px; }
.claim-card strong { max-width: 190px; margin-top: auto; font-size: 18px; line-height: 1.2; }
.claim-card p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.claim-card.supporting { border-top-color: #7396a0; }
.claim-card.experimental { border-top-color: #b3976f; }
.claim-card.gap { border-top-color: #b87664; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.evidence-grid-compact { grid-template-columns: repeat(3, 1fr); }
.evidence-card { min-height: 355px; padding: 23px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; background: rgba(251,252,251,.82); box-shadow: 0 14px 34px rgba(65,80,75,.05); }
.evidence-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.evidence-card time { color: #9aa5a2; font-family: Consolas, monospace; font-size: 11px; }
.evidence-level { padding: 5px 8px; border-radius: 99px; color: #496a61; background: #dce9e5; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.evidence-level.review { color: #506f78; background: #dfe9ec; }
.evidence-level.supporting { color: #55727b; background: #e2ebee; }
.evidence-level.experimental { color: #796244; background: #eee6da; }
.evidence-card h3 { margin: 34px 0 12px; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
.evidence-card p { margin: 0 0 13px; color: #65736f; font-size: 13px; line-height: 1.6; }
.evidence-card .evidence-limit { padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.evidence-card a { margin-top: auto; padding-top: 17px; color: var(--sage-dark); font-family: Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; text-underline-offset: 3px; }
.evidence-method { margin: 5px 0 88px; padding: 38px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; border-radius: 28px; color: white; background: linear-gradient(135deg, #4e665f, #718c85); box-shadow: var(--shadow); }
.evidence-method .eyebrow { color: #c9d9d5; }
.evidence-method h2 { max-width: 470px; margin: 0; color: white; font-size: clamp(29px, 3.8vw, 47px); line-height: 1.02; letter-spacing: -.045em; }
.evidence-method > div:last-child { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.evidence-method p { margin: 0 0 25px; color: #e1e9e7; }
.evidence-method .evidence-curation { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: #cbdad6; font-size: 11px; }
.evidence-method .button-primary { color: #536e67; background: white; box-shadow: none; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 14px;
}
.plan-card {
  min-width: 0;
  padding: 27px 24px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(251, 252, 251, .88);
  box-shadow: 0 14px 34px rgba(65, 80, 75, .06);
}
.plan-featured {
  transform: translateY(-12px);
  border-color: #a8bdb8;
  background:
    radial-gradient(420px 180px at 0 0, rgba(150, 176, 172, .25), transparent 75%),
    #fbfcfb;
  box-shadow: var(--shadow);
}
.plan-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-topline h2 { margin: 0; font-size: 17px; letter-spacing: .08em; }
.pill { padding: 5px 9px; border-radius: 99px; color: var(--sage-dark); background: var(--sage-pale); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.plan-price { margin: 35px 0 0; }
.plan-price strong { font-size: 36px; line-height: 1; letter-spacing: -.045em; }
.plan-usd { margin: 2px 0 20px; color: var(--muted); font-size: 13px; }
.plan-card > p:not(.plan-price):not(.plan-usd) { color: var(--muted); font-size: 14px; }
.feature-list { padding: 19px 0 0; margin: auto 0 25px; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { position: relative; margin: 9px 0; padding-left: 18px; color: #64716d; font-size: 13px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.payment-actions { display: grid; gap: 8px; }
.availability-strip { margin: -38px 0 46px; padding: 15px 18px; border: 1px solid #d8b7ad; border-radius: 16px; color: #754d43; background: #fff7f4; }
.availability-strip p { margin: 4px 0; font-size: 13px; }
.button.button-unavailable { cursor: not-allowed; }

.button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 15px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { color: white; background: linear-gradient(145deg, #8da9a3, #607e76); box-shadow: 0 9px 19px rgba(96, 126, 118, .19); }
.button-primary:hover { box-shadow: 0 12px 25px rgba(96, 126, 118, .27); }
.button-quiet { color: var(--sage-dark); border-color: #c5d2cf; background: rgba(255, 255, 255, .7); }
.button-wide { width: 100%; }
.text-link { color: var(--sage-dark); font-weight: 750; text-underline-offset: 5px; }

.policy-strip {
  margin: 58px 0 90px;
  padding: 26px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.policy-strip div { padding: 0 30px; border-right: 1px solid var(--line); }
.policy-strip div:first-child { padding-left: 0; }
.policy-strip div:last-child { border: 0; }
.policy-strip strong, .policy-strip span { display: block; }
.policy-strip strong { margin-bottom: 6px; }
.policy-strip span { color: var(--muted); font-size: 13px; }

.auth-layout {
  min-height: calc(100vh - 190px);
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 70px;
}
.auth-context { padding-left: 4vw; }
.auth-context h1 { max-width: 680px; font-size: clamp(48px, 6vw, 76px); }
.auth-context > p:not(.eyebrow) { max-width: 650px; margin-top: 28px; color: var(--muted); font-size: 18px; }
.auth-facts { margin-top: 35px; display: flex; flex-wrap: wrap; gap: 9px; }
.auth-facts span { padding: 8px 13px; border: 1px solid #cbd6d3; border-radius: 99px; color: #6d7b77; background: rgba(255, 255, 255, .4); font-size: 11px; font-weight: 700; }
.auth-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 29px;
  background: rgba(251, 252, 251, .87);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 16px; background: #e9edec; }
.segmented button { min-height: 42px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.segmented button.active { color: var(--ink); background: white; box-shadow: 0 5px 12px rgba(60, 75, 70, .09); }
.auth-panel form { padding: 18px 7px 3px; }
.auth-panel h2 { margin: 12px 0 20px; font-size: 23px; }

label { display: block; margin: 14px 0; color: #65716e; font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cdd7d5;
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .83);
}
input, select { min-height: 48px; padding: 0 14px; }
textarea { min-height: 80px; padding: 12px 14px; resize: vertical; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(150, 176, 172, .15); }
.optional { color: #9aa4a1; font-weight: 500; }
.field-note { margin: -4px 0 15px; color: var(--muted); font-size: 11px; }
.form-message { min-height: 22px; margin: 12px 0 0; color: var(--coral); font-size: 13px; }
.form-message.success { color: var(--sage-dark); }

.workspace-heading, .result-heading {
  padding: 76px 0 43px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.workspace-heading h1 { font-size: clamp(46px, 5.5vw, 72px); }
.compact-heading h1 { font-size: clamp(42px, 5vw, 64px); }
.heading-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.analysis-shell { display: grid; grid-template-columns: 1.55fr .65fr; gap: 16px; margin-bottom: 90px; }
.analysis-shell > * { min-width: 0; }
.upload-panel, .process-note, .register-panel, .result-copy, .result-section, .si-overview, .settings-card {
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  background: rgba(251, 252, 251, .84);
  box-shadow: 0 15px 36px rgba(60, 74, 70, .07);
}
.upload-panel { min-width: 0; padding: 18px; }
.analysis-mode-switch { margin: 0 0 8px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(238, 244, 242, .72); }
.analysis-mode-button { min-height: 42px; padding: 8px 13px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.analysis-mode-button.active { color: white; background: var(--sage-dark); box-shadow: 0 5px 14px rgba(70, 95, 88, .18); }
.analysis-mode-button:disabled { cursor: not-allowed; opacity: .48; }
.mode-note { min-height: 17px; margin: 0 5px 13px; }
.ab-upload-grid { min-width: 0; display: grid; gap: 12px; }
.ab-upload-grid > * { min-width: 0; }
.ab-upload-grid.ab-mode { grid-template-columns: 1fr 1fr; }
.ab-upload-grid.ab-mode .drop-zone { min-height: 290px; }
.drop-zone {
  min-width: 0;
  min-height: 315px;
  margin: 0;
  padding: 29px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px dashed #aebfbb;
  border-radius: 20px;
  background:
    radial-gradient(450px 240px at 15% 8%, rgba(150, 176, 172, .30), transparent 70%),
    linear-gradient(145deg, rgba(245, 249, 248, .95), rgba(228, 236, 234, .64));
  cursor: pointer;
  overflow: hidden;
  transition: border .2s, transform .2s;
}
.drop-zone.dragging { border-style: solid; border-color: var(--sage-dark); transform: scale(.995); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone strong { font-size: 26px; letter-spacing: -.03em; }
.drop-zone > span:not(.drop-index):not(.file-choice) { margin-top: 5px; color: var(--muted); font-size: 13px; }
.drop-index, .card-number { margin-bottom: auto; color: var(--sage-dark); font-size: 12px; font-weight: 850; letter-spacing: .1em; }
.upload-preview { width: 100%; max-width: 100%; height: 180px; min-width: 0; margin: 12px 0; display: block; object-fit: contain; border: 1px solid rgba(174, 191, 187, .65); border-radius: 13px; background: rgba(255, 255, 255, .58); }
.ab-upload-grid.ab-mode .upload-preview { height: 155px; }
.file-choice { width: 100%; min-width: 0; max-width: 100%; margin-top: 18px; padding: 7px 12px; display: block; overflow: hidden; box-sizing: border-box; border-radius: 99px; color: var(--sage-dark); background: rgba(255, 255, 255, .72); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.upload-controls { padding: 12px 4px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 13px; }
.upload-controls label { margin: 0; }
.upload-controls select { min-width: 0; }
.capture-registration { margin: 20px 4px 4px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(238, 244, 242, .55); }
.capture-registration legend { padding: 0 8px; color: var(--ink); font-size: 13px; font-weight: 850; }
.capture-registration > p { max-width: 760px; margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.capture-registration-grid { display: grid; grid-template-columns: 1.35fr .55fr 1fr; align-items: end; gap: 10px 13px; }
.capture-registration-grid label { margin: 0; }
.capture-checkbox { min-height: 48px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; border: 1px solid #cdd7d5; border-radius: 13px; background: rgba(255, 255, 255, .7); }
.capture-checkbox input { width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0; flex: 0 0 18px; accent-color: var(--sage-dark); }
.capture-checkbox span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.capture-notes { grid-column: 1 / -1; }
.protocol-note { margin: 11px 5px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.progress-line { padding: 12px 5px 0; }
.progress-line span { display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 9px; background: var(--sage-pale); position: relative; }
.progress-line span::after { content: ""; position: absolute; inset: 0; width: 35%; background: var(--sage-dark); animation: progress 1.3s ease-in-out infinite; }
.progress-line p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
@keyframes progress { from { transform: translateX(-120%); } to { transform: translateX(330%); } }
.process-note { padding: 28px; display: flex; flex-direction: column; }
.process-note h2 { margin: 44px 0 15px; font-size: 22px; }
.process-note h3 { margin: 25px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.capture-steps { margin: 0; padding: 0; list-style: none; counter-reset: capture-step; }
.capture-steps li { margin: 0; padding: 12px 0 12px 31px; position: relative; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; counter-increment: capture-step; }
.capture-steps li::before { content: counter(capture-step, decimal-leading-zero); position: absolute; left: 0; top: 12px; color: var(--sage-dark); font-family: Consolas, monospace; font-size: 10px; font-weight: 800; }
.process-note dl { margin: auto 0 0; }
.process-note dl div { padding: 16px 0; border-top: 1px solid var(--line); }
.process-note dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.process-note dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.result-heading h1 { max-width: 780px; font-size: clamp(38px, 5vw, 68px); }
.registration { margin: 16px 0 0; color: var(--sage-dark); font-family: Consolas, monospace; font-size: 13px; letter-spacing: .1em; }
.si-overview { margin-bottom: 16px; padding: 24px; display: grid; grid-template-columns: minmax(170px, .36fr) 1fr; align-items: center; gap: 26px; }
.si-score { min-height: 150px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 19px; color: white; background: linear-gradient(145deg, #829f98, #56746c); }
.si-score span { font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.si-score strong { font-size: clamp(52px, 7vw, 82px); line-height: .85; letter-spacing: -.07em; }
.si-overview[data-level="warn"] .si-score { background: linear-gradient(145deg, #c59975, #a7685c); }
.si-overview[data-level="bad"] .si-score { background: linear-gradient(145deg, #df805f, #aa513d); }
.si-copy .eyebrow { margin-bottom: 9px; }
.si-copy h2 { margin: 0; font-size: clamp(27px, 3.4vw, 42px); letter-spacing: -.035em; }
.si-copy > p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.si-copy .provenance { padding-top: 11px; border-top: 1px solid var(--line); font-size: 12px; }
.metric-ribbon, .account-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(251, 252, 251, .72); }
.metric-ribbon > div, .account-strip > div { min-height: 104px; padding: 20px; border-right: 1px solid var(--line); }
.metric-ribbon > div:last-child, .account-strip > div:last-child { border: 0; }
.metric-ribbon span, .account-strip span { display: block; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.metric-ribbon strong, .account-strip strong { display: block; margin-top: 9px; color: var(--sage-dark); font-size: 23px; }
.account-strip small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.result-copy { margin: 16px 0; padding: 27px 31px; }
.result-copy h2 { margin: 0 0 10px; }
.result-copy p { color: #65736f; }
.result-copy .limitation { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.enrichment-notice { margin: 16px 0; padding: 13px 17px; border: 1px solid #cdd9d6; border-radius: 14px; color: #61736e; background: rgba(238, 244, 242, .82); font-size: 13px; }
.enrichment-notice.warning { color: #85574b; border-color: #e0c5bc; background: #f7ece8; }
.enrichment-notice.success { color: #4f7167; }
.result-section { margin: 16px 0; padding: 29px 31px; }
.result-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; }
.result-section-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.035em; }
.result-section-heading .eyebrow { margin-bottom: 8px; }
.result-section-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 12px; }
.diagnostic-grid { margin-top: 23px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.diagnostic-grid > div { min-width: 0; min-height: 105px; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(245, 248, 247, .56); }
.diagnostic-grid span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.diagnostic-grid strong { display: block; margin-top: 9px; overflow-wrap: anywhere; color: var(--sage-dark); font-size: 20px; }
.series-representative-note { margin: 22px 0 0; padding: 13px 16px; border-left: 3px solid var(--sage); border-radius: 0 12px 12px 0; color: var(--sage-dark); background: #edf3f1; font-size: 13px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.series-mode-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.series-detail-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 14px; }
.series-chart-card, .series-review { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(245, 248, 247, .58); }
.series-chart-card h3, .series-review h3 { margin: 0 0 12px; font-size: 15px; }
.series-chart-card svg { width: 100%; height: auto; display: block; color: #7b8985; overflow: visible; }
.series-chart-card svg text { fill: currentColor; font: 10px Inter, "Segoe UI", sans-serif; }
.series-chart-grid { stroke: #dce4e1; stroke-width: 1; }
.series-chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.series-chart-d-line { stroke: var(--sage-dark); }
.series-chart-dt-line { stroke: #b36d58; }
.series-chart-point { stroke-width: 2.5; }
.series-point-d { fill: var(--paper); stroke: var(--sage-dark); }
.series-point-dt { fill: var(--paper); stroke: #b36d58; }
.series-point-low-r2 { fill: #f4d6ce; stroke: #a9503f; }
.series-point-outlier { fill: #e6b17d; stroke: #8d5934; }
.series-transition-marker { stroke: #b48758; stroke-width: 2; stroke-dasharray: 5 5; }
.series-chart-x-label { font-weight: 750 !important; }
.series-chart-legend { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 11px; }
.series-chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.series-chart-legend i { width: 18px; height: 3px; display: inline-block; border-radius: 99px; background: var(--sage-dark); }
.series-chart-legend .series-legend-dt { background: #b36d58; }
.series-review ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.series-review li { padding: 10px 12px; border-left: 3px solid #bd8a68; border-radius: 0 10px 10px 0; color: #765348; background: #f7ece8; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.series-review .series-check-pass { color: #4f7167; border-left-color: var(--sage); background: #edf3f1; }
.series-review .series-observation { color: #665941; border-left-color: #b48758; background: #f5f0e8; }
.series-table caption { white-space: normal; }
.series-table .series-filename { min-width: 180px; max-width: 320px; white-space: normal; overflow-wrap: anywhere; }
.series-row-badge { width: max-content; margin-top: 4px; padding: 2px 5px; display: block; border-radius: 99px; color: #85574b; background: #f3ded7; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.series-row-low-r2 { background: rgba(247, 236, 232, .56); }
.series-row-outlier { box-shadow: inset 3px 0 #bd8a68; }
.series-row-transition { box-shadow: inset 3px 0 #b48758; background: rgba(245, 240, 232, .58); }
.potential-grid { margin-top: 23px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.potential-card { min-height: 150px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(155deg, rgba(241,247,245,.95), rgba(230,238,235,.72)); }
.potential-card.risk { background: linear-gradient(155deg, rgba(249,243,239,.95), rgba(241,226,220,.72)); }
.potential-card span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.potential-card strong { color: var(--sage-dark); font-size: 38px; letter-spacing: -.05em; }
.potential-card small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.potential-evidence { margin-top: 15px; padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); }
.potential-evidence p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.scene-profile-grid { margin-top: 23px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.scene-profile-card { min-height: 205px; padding: 18px; display: flex; flex-direction: column; grid-column: span 2; border: 1px solid var(--line); border-radius: 17px; background: rgba(245,248,247,.62); }
.scene-profile-card:nth-child(-n+2) { grid-column: span 3; }
.scene-profile-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.scene-profile-card h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.scene-profile-level { flex: none; padding: 4px 7px; border-radius: 99px; color: #527068; background: var(--sage-pale); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.scene-profile-level.heuristic { color: #786345; background: #eee6d8; }
.scene-profile-card > strong { margin: auto 0 13px; color: var(--sage-dark); font-family: Consolas, monospace; font-size: 16px; font-weight: 700; line-height: 1.45; }
.scene-profile-card > p { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.55; }
.scene-evidence-link { margin-top: 15px; padding: 15px 2px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); }
.scene-evidence-link p { max-width: 780px; margin: 0; color: var(--muted); font-size: 11px; }
.scene-evidence-link a { flex: none; font-size: 12px; }
.capture-summary { margin: 23px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capture-summary div { min-width: 0; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(245, 248, 247, .56); }
.capture-summary dt { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.capture-summary dd { margin: 8px 0 0; overflow-wrap: anywhere; color: var(--sage-dark); font-size: 13px; line-height: 1.45; }
.profile-checks { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-checks h3 { margin: 0 0 11px; font-size: 15px; }
.profile-checks ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; list-style: none; }
.profile-checks li { padding: 12px 14px; border-left: 3px solid var(--coral); border-radius: 0 10px 10px 0; background: #f6ece9; }
.profile-checks li strong, .profile-checks li span { display: block; }
.profile-checks li strong { font-size: 12px; }
.profile-checks li span { margin-top: 3px; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; }
.profile-checks .check-passed { grid-column: 1 / -1; color: var(--sage-dark); border-left-color: var(--sage); background: #edf3f1; font-size: 13px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.result-table { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 13px; }
.result-table caption { padding: 8px 0; color: var(--muted); text-align: left; font-size: 11px; }
.result-table th, .result-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.result-table thead th { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.result-table tbody th { font-weight: 700; }
.result-section[data-verdict="warning"] { border-color: #ddcbb5; }
.result-section[data-verdict="danger"] { border-color: #dfb6aa; }
.spectrum-grid { margin-top: 23px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spectrum-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(245, 248, 247, .58); }
.spectrum-card h3 { margin: 0 0 9px; font-size: 15px; }
.spectrum-card svg { width: 100%; height: auto; display: block; color: #7b8985; overflow: visible; }
.spectrum-card svg text { fill: currentColor; font: 10px Inter, "Segoe UI", sans-serif; }
.chart-axis { fill: none; stroke: #bcc9c6; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--sage-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--paper); stroke: var(--sage-dark); stroke-width: 2; }
.spectrum-table { margin-top: 5px; font-size: 11px; }
.spectrum-table th, .spectrum-table td { padding: 7px 8px; }
.local-d-summary { margin-top: 14px; }
.maps-section { margin: 44px 0 80px; }
.map-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-card { padding: 18px; border: 1px solid var(--line); border-radius: 23px; background: rgba(251, 252, 251, .8); }
.map-card-heading { margin: 3px 2px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.map-card h3 { margin: 0; font-size: 17px; }
.map-card-heading span { flex: none; color: var(--sage-dark); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.map-card img { width: 100%; max-height: 470px; display: block; object-fit: contain; border-radius: 14px; background: #e6e9e8; }
.map-card > p { margin: 13px 3px 2px; color: var(--muted); font-size: 11px; }
.map-legend { margin-top: 12px; padding: 12px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); }
.map-legend-gradient { width: 100%; height: 14px; margin-bottom: 3px; border: 1px solid rgba(20,27,33,.15); border-radius: 999px; background: linear-gradient(90deg, #2b5b84 0%, #4caf50 34%, #ff9800 67%, #e53935 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.map-legend-gradient.density-scale { background: linear-gradient(90deg, #2b5b84 0%, #f4f1ea 50%, #e53935 100%); }
.map-legend-gradient.tonal-scale { background: linear-gradient(90deg, #233768 0%, #2897b5 20%, #49ad70 40%, #efb13e 70%, #c94c55 100%); }
.map-legend-gradient.color-scale { background: linear-gradient(90deg, #696f74 0%, #31648e 22%, #2b9d98 42%, #81b854 62%, #f1ae33 80%, #c94149 100%); }
.map-legend-item { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.map-legend-swatch { width: 13px; height: 13px; flex: 0 0 13px; border: 1px solid rgba(20,27,33,.2); border-radius: 50%; background: #d6ddda; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.map-legend-swatch.saliency-core { background: #ffe047; }
.map-legend-swatch.saliency-halo { background: #e53935; }
.map-legend-swatch.saliency-rank { background: #1c2327; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px rgba(20,27,33,.24); }
.map-legend-swatch.bio-green, .map-legend-swatch.d-within { background: #4caf50; }
.map-legend-swatch.bio-wood, .map-legend-swatch.d-above { background: #ff9800; }
.map-legend-swatch.d-low, .map-legend-swatch.density-low { background: #2b5b84; }
.map-legend-swatch.d-high, .map-legend-swatch.density-high { background: #e53935; }
.map-legend-swatch.grid-occupied { background: #ffe047; }
.map-legend-swatch.grid-empty { background: #eef1f0; }
.map-legend-swatch.edge-retained { background: #fff; }
.map-legend-swatch.edge-excluded { background: #111; }
.map-legend-swatch.density-medium { background: #f4f1ea; }
.map-legend-swatch.tonal-low { background: #233768; }
.map-legend-swatch.tonal-medium { background: #2897b5; }
.map-legend-swatch.tonal-high { background: #49ad70; }
.map-legend-swatch.tonal-rough { background: #c94c55; }
.map-legend-swatch.color-low { background: #696f74; }
.map-legend-swatch.color-medium { background: linear-gradient(135deg, #31648e, #2b9d98, #81b854); }
.map-legend-swatch.color-high { background: linear-gradient(135deg, #f1ae33, #c94149); }
.map-legend-swatch.smart-retained { background: linear-gradient(135deg, #2acdbf, #5bc960); }
.map-legend-swatch.smart-decor { background: linear-gradient(135deg, #8f72de, #ffc23d); }
.map-legend-swatch.smart-regular { background: #d74646; }
.map-legend-swatch.smart-sky { background: #376fa6; }
.map-methodology { margin-top: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(244,247,246,.72); }
.map-methodology summary { padding: 13px 42px 13px 14px; position: relative; cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 850; line-height: 1.4; list-style: none; }
.map-methodology summary::-webkit-details-marker { display: none; }
.map-methodology summary::after { content: "+"; position: absolute; top: 50%; right: 15px; transform: translateY(-50%); color: var(--sage-dark); font-size: 21px; font-weight: 500; }
.map-methodology[open] summary::after { content: "−"; }
.map-methodology-body { padding: 2px 14px 15px; border-top: 1px solid var(--line); }
.map-methodology-section { padding-top: 13px; }
.map-methodology-section h4 { margin: 0 0 5px; color: var(--sage-dark); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.map-methodology-section p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.map-references { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.map-references li { margin: 5px 0; font-size: 10px; line-height: 1.5; }
.map-references a { color: var(--sage-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.box-counting-formula { margin-top: 14px !important; font-size: 12px !important; line-height: 1.55; }
.box-counting-table { margin-top: 10px; }
.si-definition { font-size: 13px; line-height: 1.6; }
.map-unavailable { min-height: 230px; padding: 25px; display: grid; place-items: center; border-radius: 14px; color: var(--muted); background: repeating-linear-gradient(135deg, #edf1f0 0 16px, #e7ecea 16px 32px); text-align: center; font-size: 12px; }
.map-card-locked { min-height: 260px; position: relative; overflow: hidden; }
.map-card-locked::before { content: attr(data-watermark); position: absolute; inset: 58px 18px 18px; display: grid; place-items: center; color: rgba(61, 84, 78, .13); background: repeating-linear-gradient(135deg, rgba(150,176,172,.24) 0 18px, rgba(244,247,246,.82) 18px 36px); font-size: clamp(22px, 4vw, 38px); font-weight: 900; letter-spacing: .08em; filter: blur(5px); transform: scale(1.08); }
.map-card-locked div { position: relative; z-index: 1; min-height: 175px; display: grid; place-content: center; text-align: center; color: var(--ink); font-weight: 850; }
.map-card-locked a { color: var(--sage-dark); font-size: 13px; }
.preview-result .result-copy { position: relative; }
.preview-result .result-copy::after { content: attr(data-preview-label); position: absolute; right: 20px; bottom: 12px; color: rgba(82,105,99,.22); font-size: 24px; font-weight: 900; letter-spacing: .12em; transform: rotate(-7deg); }
.button:disabled { cursor: not-allowed; opacity: .45; }

@media print {
  body.preview-result main { display: none !important; }
  body.preview-result::before { content: attr(data-print-message); display: block; margin: 20vh auto; max-width: 620px; padding: 36px; border: 2px solid #6f918d; font: 700 22px/1.45 Arial, sans-serif; text-align: center; }
}

.account-strip { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.compare-launcher { margin-bottom: 16px; padding: 30px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 18px 42px; border: 1px solid #344b45; border-radius: var(--radius); color: white; background: linear-gradient(145deg, #23322e, #3f5751); box-shadow: 0 18px 38px rgba(32, 47, 42, .17); }
.compare-launcher .eyebrow { color: #b8d0ca; }
.compare-launcher h2 { max-width: 420px; margin: 6px 0 10px; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.035em; }
.compare-launcher > div > p:last-child { max-width: 470px; margin: 0; color: #c4d2ce; font-size: 12px; line-height: 1.6; }
.compare-form { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px; }
.compare-form label { margin: 0; color: #dbe5e2; }
.compare-form button { grid-column: 1 / -1; justify-self: end; }
.compare-launcher > .form-message { min-height: 0; margin: 0; grid-column: 2; color: #ffd0c3; }
.register-panel { padding: 28px; margin-bottom: 80px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0 0 22px; }
.section-heading span { color: var(--muted); font-size: 12px; }
.analysis-list { display: grid; }
.analysis-row { min-height: 82px; padding: 14px 4px; display: grid; grid-template-columns: 1.3fr 1fr .7fr auto; align-items: center; gap: 18px; border-top: 1px solid var(--line); text-decoration: none; }
.analysis-row:hover strong { color: var(--sage-dark); }
.analysis-row strong, .analysis-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-row span { color: var(--muted); font-size: 13px; }
.status { justify-self: end; padding: 6px 10px; border-radius: 99px; color: var(--sage-dark) !important; background: var(--sage-pale); font-size: 10px !important; font-weight: 800; text-transform: uppercase; }

.compare-loading { min-height: 110px; margin-bottom: 16px; padding: 26px; display: grid; place-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: rgba(251,252,251,.75); text-align: center; }
.compare-loading span { width: 72px; height: 3px; position: relative; overflow: hidden; border-radius: 99px; background: var(--sage-pale); }
.compare-loading span::after { content: ""; width: 40%; position: absolute; inset: 0; background: var(--sage-dark); animation: progress 1.1s ease-in-out infinite; }
.compare-loading p { margin: 0; font-size: 12px; }
.compare-scenes { margin-bottom: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-scene { min-width: 0; padding: 18px; border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); background: rgba(251,252,251,.84); box-shadow: 0 15px 36px rgba(60,74,70,.07); }
.compare-scene-heading { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compare-scene-heading > span { padding: 6px 10px; border-radius: 99px; color: #385a51; background: #dce9e5; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.compare-scene[data-compare-scene="after"] .compare-scene-heading > span { color: #4b5267; background: #e4e6ef; }
.compare-scene-heading strong { overflow-wrap: anywhere; color: var(--muted); font-family: Consolas, monospace; font-size: 10px; }
.compare-preview { aspect-ratio: 4 / 3; margin: 12px 0 19px; overflow: hidden; display: grid; place-items: center; border-radius: 18px; background: repeating-linear-gradient(135deg, #e9eeec 0 18px, #e2e9e6 18px 36px); }
.compare-preview > * { grid-area: 1 / 1; }
.compare-preview img { width: 100%; height: 100%; display: block; object-fit: contain; background: #dfe5e3; }
.compare-preview div { max-width: 310px; padding: 24px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.5; }
.compare-scene h2 { margin: 0 0 15px; overflow-wrap: anywhere; font-size: 22px; letter-spacing: -.025em; }
.compare-metadata { margin: 0 0 17px; }
.compare-metadata div { padding: 9px 0; display: grid; grid-template-columns: 135px 1fr; gap: 12px; border-top: 1px solid var(--line); }
.compare-metadata dt { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.compare-metadata dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 12px; }
.compare-compatibility[data-state="pass"] { border-color: #b9d0ca; }
.compare-compatibility[data-state="review"] { border-color: #ddcbb5; }
.compare-warnings { margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; list-style: none; }
.compare-warnings li { padding: 12px 14px; border-left: 3px solid #bd8a68; border-radius: 0 10px 10px 0; color: var(--muted); background: #f5eee8; font-size: 12px; line-height: 1.5; }
.compare-warnings .compare-warning-pass { grid-column: 1 / -1; border-left-color: var(--sage); color: var(--sage-dark); background: #edf3f1; }
.compare-domain-list { margin-top: 23px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-domain { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(245,248,247,.56); }
.compare-domain h3 { margin: 0 0 4px; font-size: 16px; }
.compare-domain .result-table { margin-top: 10px; }
.compare-table th, .compare-table td { white-space: normal; }
.compare-table tbody th { min-width: 165px; }
.compare-table td { font-family: Consolas, monospace; }
.compare-delta { color: var(--sage-dark); font-weight: 850; }
.compare-limitations { margin-bottom: 80px; }
.compare-limitations .text-link { display: inline-block; margin-top: 8px; }

.settings-grid { margin-bottom: 85px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-card { padding: 28px; }
.settings-card-wide { grid-column: 1 / -1; }
.settings-card h2 { margin: 45px 0 10px; }
.settings-card > p { color: var(--muted); font-size: 13px; }
.inline-form { display: grid; grid-template-columns: 1fr 150px auto; align-items: end; gap: 10px; }
.inline-form input, .inline-form select { margin: 0; }
.invite-output { overflow-wrap: anywhere; color: var(--sage-dark) !important; }
.team-list { margin-top: 18px; }
.team-row { padding: 12px 0; display: grid; grid-template-columns: 1fr 120px 100px; border-top: 1px solid var(--line); font-size: 13px; }
.team-row span { color: var(--muted); }

.verify-layout { min-height: calc(100vh - 190px); padding: 78px 4vw; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.verify-intro h1 { font-size: clamp(44px, 5.5vw, 72px); }
.verify-intro > p:not(.eyebrow) { max-width: 600px; color: var(--muted); font-size: 17px; }
.verify-panel { padding: 30px; border: 1px solid white; border-radius: 27px; background: rgba(251, 252, 251, .86); box-shadow: var(--shadow); }
.verification-success, .verification-failed { margin-top: 24px; padding: 16px; display: flex; align-items: center; gap: 12px; border-radius: 14px; background: #e6efed; }
.verification-failed { display: grid; color: var(--coral); background: #f5e8e4; }
.verification-success strong, .verification-success span, .verification-failed span { display: block; }
.verification-success span, .verification-failed span { color: var(--muted); font-size: 12px; }
.status-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #6e9f8e; box-shadow: 0 0 0 6px rgba(110, 159, 142, .14); }
.verification-data { margin: 20px 0 0; }
.verification-data div { padding: 11px 0; display: grid; grid-template-columns: 110px 1fr; gap: 10px; border-top: 1px solid var(--line); }
.verification-data dt { color: var(--muted); font-size: 12px; }
.verification-data dd { margin: 0; font-size: 13px; }
.digest { overflow-wrap: anywhere; font-family: Consolas, monospace; font-size: 10px !important; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 390px; padding: 14px 18px; border-radius: 14px; color: white; background: #50635e; box-shadow: 0 15px 35px rgba(44, 57, 53, .25); font-size: 13px; }
.site-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0 35px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 1020px) {
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .claim-grid { grid-template-columns: 1fr 1fr; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .plan-featured { transform: none; }
  .auth-layout, .verify-layout { grid-template-columns: 1fr; gap: 38px; }
  .auth-context { padding-left: 0; }
  .analysis-shell { grid-template-columns: 1fr; }
  .upload-controls { grid-template-columns: 1fr 1fr; }
  .capture-registration-grid { grid-template-columns: 1fr 1fr; }
  .capture-registration-grid > label:first-child, .capture-notes, .capture-checkbox { grid-column: 1 / -1; }
  .process-note { min-height: 300px; }
  .metric-ribbon { grid-template-columns: repeat(2, 1fr); }
  .metric-ribbon > div:nth-child(even) { border-right: 0; }
  .metric-ribbon > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .diagnostic-grid { grid-template-columns: repeat(3, 1fr); }
  .potential-grid { grid-template-columns: 1fr 1fr; }
  .scene-profile-card, .scene-profile-card:nth-child(-n+2) { grid-column: span 3; }
  .capture-summary { grid-template-columns: repeat(2, 1fr); }
  .compare-launcher { grid-template-columns: 1fr; }
  .compare-launcher > .form-message { grid-column: 1; }
  .compare-domain-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { width: calc(100% - 20px); margin-top: 10px; padding: 10px 12px; align-items: stretch; flex-direction: column; gap: 7px; }
  .wordmark { align-self: flex-start; }
  .wordmark > span:last-child { display: none; }
  .site-header nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 3px; }
  .site-header nav a, .nav-button { min-height: 38px; padding: 0 8px; font-size: 11px; }
  .site-header .language-switcher { margin-left: auto; }
  .language-button { min-width: 32px; min-height: 32px; }
  main, .site-footer { width: calc(100% - 24px); }
  .hero { padding: 65px 0 45px; }
  .evidence-hero { padding: 62px 0 54px; }
  .evidence-hero h1 { max-width: 100%; font-size: clamp(38px, 11vw, 48px); overflow-wrap: break-word; }
  h1 { font-size: 42px; }
  .hero-copy { font-size: 16px; }
  .plan-grid, .settings-grid, .claim-grid, .evidence-grid { grid-template-columns: 1fr; }
  .claim-card { min-height: 210px; }
  .evidence-card { min-height: 0; }
  .evidence-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .evidence-heading > p { max-width: none; }
  .evidence-method { padding: 26px 22px; grid-template-columns: 1fr; gap: 26px; }
  .settings-card-wide { grid-column: auto; }
  .policy-strip { grid-template-columns: 1fr; }
  .policy-strip div, .policy-strip div:first-child { padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); }
  .policy-strip div:last-child { border: 0; }
  .auth-layout, .verify-layout { padding: 48px 0; }
  .auth-context h1, .verify-intro h1 { font-size: 45px; }
  .auth-panel, .verify-panel { padding: 20px; }
  .workspace-heading, .result-heading { padding: 56px 0 28px; align-items: flex-start; flex-direction: column; }
  .workspace-heading h1, .result-heading h1 { font-size: 43px; }
  .heading-actions, .result-actions { justify-content: flex-start; }
  .ab-upload-grid.ab-mode { grid-template-columns: 1fr; }
  .drop-zone { min-height: 280px; padding: 20px; }
  .drop-zone strong { font-size: 22px; }
  .upload-controls { grid-template-columns: 1fr; }
  .upload-controls select { min-width: 0; }
  .capture-registration { padding: 15px; }
  .capture-registration-grid { grid-template-columns: 1fr; }
  .capture-registration-grid > label:first-child, .capture-notes, .capture-checkbox { grid-column: auto; }
  .metric-ribbon, .account-strip { grid-template-columns: 1fr 1fr; }
  .metric-ribbon > div, .account-strip > div { border-top: 1px solid var(--line); }
  .metric-ribbon > div:nth-child(-n+2), .account-strip > div:nth-child(-n+2) { border-top: 0; }
  .metric-ribbon > div:nth-child(even), .account-strip > div:nth-child(even) { border-right: 0; }
  .account-strip > div:last-child { border-top: 1px solid var(--line); }
  .si-overview { grid-template-columns: 1fr; padding: 18px; }
  .si-score { min-height: 135px; }
  .result-section { padding: 22px 18px; }
  .result-section-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .diagnostic-grid, .profile-checks ul, .spectrum-grid { grid-template-columns: 1fr 1fr; }
  .series-detail-grid { grid-template-columns: 1fr; }
  .potential-evidence { grid-template-columns: 1fr; }
  .scene-profile-grid { grid-template-columns: 1fr; }
  .scene-profile-card, .scene-profile-card:nth-child(-n+2) { grid-column: auto; }
  .scene-evidence-link { align-items: flex-start; flex-direction: column; gap: 12px; }
  .map-grid { grid-template-columns: 1fr; }
  .map-card-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .analysis-row { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .analysis-row span:nth-child(3) { display: none; }
  .analysis-row .status { grid-column: 2; grid-row: 1 / span 2; }
  .compare-launcher { padding: 23px 19px; }
  .compare-form, .compare-scenes, .compare-warnings { grid-template-columns: 1fr; }
  .compare-form button { grid-column: auto; justify-self: stretch; }
  .compare-warnings .compare-warning-pass { grid-column: auto; }
  .compare-metadata div { grid-template-columns: 110px 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: 1fr; gap: 3px; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .diagnostic-grid, .profile-checks ul, .spectrum-grid { grid-template-columns: 1fr; }
  .potential-grid { grid-template-columns: 1fr; }
  .capture-summary { grid-template-columns: 1fr; }
  .profile-checks .check-passed { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.metric-explanation {font-size:.85rem; font-weight:400; line-height:1.45; margin-top:.6rem;}
.metric-explanation p {margin:.5rem 0;}
.b5-map-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.b5-map-grid figure {margin:0;}
.b5-map-grid img {width:100%;height:320px;object-fit:contain;background:#f5f7f6;}
@media(max-width:650px){.b5-map-grid{grid-template-columns:1fr;}}

.hr-dialog{max-width:760px;width:90%;max-height:90vh;overflow:auto;padding:2rem;border:1px solid #b3bbc4;border-radius:14px}.hr-dialog label,[data-human-response] label{display:block;margin:1rem 0}.hr-dialog select,[data-human-response] input:not([type=checkbox]),[data-human-response] select{display:block;max-width:100%;padding:.6rem}.hr-pairs{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.hr-pairs button img{display:block;width:100%;height:45vh;object-fit:contain;background:#eee}.hr-pairs button{padding:.5rem;background:white;color:#123}.hr-dialog button,[data-human-response] button{margin:.5rem;padding:.7rem 1rem}[data-human-response] article{border-top:1px solid #ccd;padding:1rem 0}[data-human-response] pre{overflow:auto}.hr-dialog::backdrop{background:#1239}
@media(max-width:600px){.hr-pairs{grid-template-columns:1fr}.hr-pairs button img{height:30vh}}

/* Correction pass: bounded survey and scene cards, no filename layout expansion. */
.hr-mini{width:min(520px,94vw);max-height:92dvh;padding:24px;border:1px solid #a8bbb6;border-radius:20px;overflow-y:auto}.hr-mini form{display:grid;gap:14px}.hr-mini label{font-size:1.1rem;line-height:1.45}.hr-mini img{max-height:140px!important}.hr-mini>button:last-child{position:sticky;bottom:0;background:#fff;width:100%;min-height:44px;margin-top:12px}.hr-slider{width:100%;min-height:44px;accent-color:#426e61;cursor:pointer}.hr-slider::-webkit-slider-thumb{width:28px;height:28px}.hr-slider::-moz-range-thumb{width:28px;height:28px}.hr-anchors{display:flex;justify-content:space-between;gap:18px;font-size:.85rem}.hr-anchors span:last-child{text-align:right}.hr-progress{margin:0;color:#52665f}.hr-scene-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.hr-scene-card{min-width:0;max-width:100%;padding:12px;border:1px solid #cedbd5;border-radius:12px}.hr-scene-card img{width:100%;height:130px;object-fit:contain}.hr-scene-card p,.file-choice{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hr-scene-card details p{overflow-wrap:anywhere;white-space:normal}.hr-pairs img{max-height:65vh;width:100%;object-fit:contain}.hr-pool-consent input[type=checkbox]{width:22px;height:22px;vertical-align:middle;margin-right:10px}body[data-page=study] .site-footer{display:none}

.hr-slider{-webkit-appearance:none;appearance:none;background:transparent;min-height:44px}.hr-slider::-webkit-slider-runnable-track{height:7px;background:#c9d9d2;border-radius:8px}.hr-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;border-radius:50%;background:#426e61;margin-top:-10px;border:2px solid white;box-shadow:0 0 0 1px #426e61}.hr-slider::-moz-range-track{height:7px;background:#c9d9d2;border-radius:8px}.hr-slider::-moz-range-thumb{background:#426e61;border:2px solid white;border-radius:50%}
/* Keep the single-question survey inside common mobile viewports. */
.hr-mini{font-size:16px;line-height:1.4}.hr-mini h2{margin:0 0 10px;font-size:1.45rem}.hr-mini p{margin:8px 0}.hr-mini label{margin:8px 0;font-size:1rem}.hr-mini form{gap:8px;padding-bottom:8px}.hr-mini button{margin:4px 0}.hr-mini>button:last-child{margin:8px 0 0}.hr-mini img{max-height:110px!important}

.wordmark-heart{display:block;width:32px;height:32px;object-fit:contain;flex:none}.site-header .wordmark .wordmark-name{display:inline}@media(max-width:600px){.site-header .wordmark{font-size:13px;gap:9px}}

.wordmark-site,.wordmark-calculator{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:none}.wordmark-site{flex:none}.wordmark-calculator{white-space:nowrap}.wordmark-site:focus-visible,.wordmark-calculator:focus-visible{outline:3px solid #c3434d66;outline-offset:4px;border-radius:6px}.expert-breadcrumbs{width:min(1180px,calc(100% - 40px));margin:22px auto 0;color:var(--muted);font-size:12px;line-height:1.6}.expert-breadcrumbs ol{list-style:none;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 0;padding:0;margin:0}.expert-breadcrumbs li{display:inline-flex;align-items:baseline;min-width:0}.expert-breadcrumbs li+li:before{content:"\203A";padding:0 9px;color:#9aa49f}.expert-breadcrumbs a{color:inherit;text-decoration:none;text-underline-offset:3px}.expert-breadcrumbs a:hover{text-decoration:underline;color:var(--ink)}.expert-breadcrumbs [aria-current=page]{color:var(--ink)}@media(max-width:600px){.expert-breadcrumbs{width:calc(100% - 24px);font-size:11px;margin-top:18px}.expert-breadcrumbs li+li:before{padding:0 6px}}@media print{.expert-breadcrumbs{display:none}}
