
/* public-checker-b.css | Public Checker stylesheet (legacy-as-base, V2-as-additions). */
/* Skin: v2-tokens.css (reconciled to design v0.8) + design v0.8 direction.publicRegister + brand section, each value cited to brand-extract.json (live capture). No blue. Red only in the live btn-danger + badge vocabulary. */
/* Structural primitives: 1px hairline borders, z-index, cqw units, breakpoint literals (design breakpoints 991/767/580). Sepia toggle retired per locked decision (d); editor toolbar kept. */

:root {
    --dira-motion-duration: 120ms;  /* direction.tokens.motionDuration */
    --dira-label-tracking: 0.05em;  /* direction.tokens.labelTracking */
    /* NEW-CANDIDATE (layout dimension): v2-tokens carries no layout-dimension tokens and the direction
       layer is aesthetic-only, so public content max-width has no existing home. Value is
       layout.publicContentMaxWidth (1450px). Candidate for this surface's closing (a layout token). */
    --pub-content-max: 1450px;
    /* card modernization on the gradient canvas: the white-anchored contrast remedy + live card shadow */
    --pub-card-gradient: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%); /* v0.8 direction.tokens.cardGradientOnWash */
    --pub-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06); /* v0.8 direction.tokens.cardShadow (extract G main.css:1624) */
    --pub-nav-pill-bg: rgb(255 255 255 / 20%);        /* --white-20, main.css:261 */
    --pub-nav-pill-border: #FAFAFA;                   /* --grey-50, main.css:263 */
    --pub-nav-pill-shadow: 0 1px 3px rgb(0 0 0 / 6%); /* main.css:264 */
    /* F5 conversion rhythm: live section cadence (features padding 72px, main.css:1802) */
    --pub-section-gap: 72px;                           /* main.css:1802 */
    /* F4 icon chip block dimensions: live feature-card icon chip (.features__card-icon main.css:1806-1815) */
    --pub-chip-size: 40px;                             /* main.css:1810-1811 */
    --pub-chip-icon: 24px;                             /* live svg 24x24, index.html:579 */
    --pub-editor-focus-border: #E8E8E8;                /* --grey-300, main.css:18 (live .hero__content-editor:focus outline-color) */
    /* R4 F1 public hover shadow: one clearly-visible step above --pub-card-shadow, tuned for perceptibility on the gradient canvas. CANDIDATE (no v2 elevation token sits between raised .06 and modal .16 at a visible alpha); models the live card hover-lift family (extract H main.css:2083 card hover box-shadow step). */
    --pub-card-hover-shadow: 0 6px 20px rgba(12, 12, 12, 0.12), 0 2px 6px rgba(12, 12, 12, 0.08);
    /* R6 modal widths: consumed from textscore-design.json layout.modalWidths (md 560, lg 720); clamp min(size, 100% - 2*space-md) per the shell mobile contract. Retained for shell dialogs. */
    --pub-modal-md: 560px;   /* design.json modalWidths.md */
    --pub-modal-lg: 720px;   /* design.json modalWidths.lg */
    /* R7 F3 report-modal sizes (this surface): wider, responsive-first. CANDIDATES for the closing encode (the analyzer detail/report modals are larger than the shell dialog sizes above). */
    --pub-report-card-w: 640px;   /* R7 F3 per-card modal width */
    --pub-report-w: 1100px;       /* R7 F3 complete-report modal width */
    /* R8 F2 wordmark scale (brand section B): live .header__logo is width:100% of its flex wrapper (main.css:286); asset intrinsic 178x55 (aspect 3.24:1). The prior 28px nav mark read undersized; standard set to 36px (clear step up, within the 55px intrinsic, balanced in the 64px header) and a ~1.4x document step at 50px. CANDIDATES for the brand-section logo-scale encode; the shell rail adopts the same standard at its next touch. */
    --pub-logo-h: 36px;      /* nav wordmark standard */
    --pub-logo-h-lg: 50px;   /* report document header step (~1.4x) */
}

*, *::before, *::after { box-sizing: border-box; }

/* R7 F4 no-horizontal-scroll hard rule: clip the page root on X (clip, not hidden, so sticky/fixed still work). Recorded as a standing direction rule for the surface closing. */
html { overflow-x: clip; }
/* R7 F2 scroll lock: while a modal is open the root locks; scrollbar-gutter reserves the bar so the page never shifts. Phone frame locks its own scroll container instead. */
html.is-modal-open { overflow: hidden; scrollbar-gutter: stable; }
.page-frame.is-phone.is-modal-open { overflow: hidden; }

body {
    margin: 0;
    overflow-x: clip;
    font-family: var(--v2-font-ui);
    font-size: var(--v2-size-base);
    line-height: var(--v2-lh-normal);
    color: var(--v2-text-primary);
    background: var(--v2-bg-app);
}
/* R7 F4: every grid/flex child that carries text or meters may shrink below content; long tokens wrap rather than force horizontal overflow */
.rsec, .rsec__two > *, .rsec__stat, .rsec__stats, .meter, .meter__top, .rsec__factor, .rsec__factor > span, .rsec__example, .rsec__example-row, .rsec__example-col, .tier-row, .tier-row__note, .rcard, .card-grid > *, .modal__body, .modal { min-width: 0; }
.rsec__factor > span, .rsec__example-text, .rsec__guidelines-list li, .tier-row__note, .rsec__stat-value, .meter__label, .report__docmeta, .report__footer { overflow-wrap: anywhere; }
.rsec__code { overflow-wrap: anywhere; white-space: normal; }
a { color: var(--v2-text-link); text-decoration: none; } /* text.link = brand red #D02827 (extract A main.css:11) */
button { font-family: inherit; cursor: pointer; }
input[type="radio"], select { accent-color: var(--v2-accent); } /* brand red controls, never default blue */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


.review-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-space-sm); padding: var(--v2-space-sm) var(--v2-space-md); background: var(--v2-bg-surface); border-bottom: 1px solid var(--v2-border-default); }
.review-bar__label { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); margin-right: var(--v2-space-sm); }
.review-bar button { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); background: var(--v2-bg-surface); border: 1px solid var(--v2-border-default); border-radius: var(--v2-radius-sm); padding: var(--v2-space-xs) var(--v2-space-smd); transition: background-color var(--dira-motion-duration) ease, border-color var(--dira-motion-duration) ease; }
.review-bar button:hover { background: var(--v2-hover-bg); }
.review-bar button[aria-pressed="true"] { background: var(--v2-selected-bg); border-color: var(--v2-border-focus); }

/* --- page frame (responsive container + phone frame) --- */
.page-frame { container-type: inline-size; position: relative; width: 100%; }
.page-frame.is-phone { width: 390px; max-width: calc(100% - 2 * var(--v2-space-lg)); height: 780px; margin: var(--v2-space-lg) auto; border: 1px solid var(--v2-border-strong); border-radius: var(--v2-radius-lg); overflow: auto; box-shadow: var(--v2-shadow-modal); }

/* --- canvas: full live gradient over half-white, top-anchored (extract C main.css:125-131) --- */
.checker { display: block; background-color: var(--v2-bg-app); background-image: url(./assets/bg-gradient.png); background-size: 100%; background-repeat: no-repeat; background-position: top; }

/* --- OpenWord banner (extract D openword_banner) --- */
.openword { display: flex; align-items: center; justify-content: center; gap: var(--v2-space-sm); flex-wrap: wrap; padding: var(--v2-space-xs) var(--v2-space-md); font-size: var(--v2-size-xs); color: var(--v2-text-secondary); }
.openword__link { display: inline-flex; align-items: center; gap: var(--v2-space-xs); color: var(--v2-text-secondary); font-weight: var(--v2-weight-medium); }
.openword__link:hover { color: var(--v2-accent); }

/* --- public nav: live uppercase link row, grey-400, red hover (extract D main.css:267-280) --- */
/* F3: logo left, one right-anchored cluster (pill nav + auth group), space-between (.header__row main.css:251-255) */
.pubnav { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-space-md); height: var(--v2-header-height); padding: 0 var(--v2-space-xl); background: transparent; }
.pubnav__brand { display: inline-flex; align-items: center; }
.wordmark { height: var(--pub-logo-h); width: auto; display: block; } /* R8 F2: two-tone svg asset #0C0C0C x4 + #D02827 x5 at the nav standard (extract B) */
.pubnav__cluster { display: flex; align-items: center; gap: var(--v2-space-xl); } /* F3: clear gap between the pill and the auth group */

.pubnav__links { display: flex; align-items: center; gap: var(--v2-space-md); padding: var(--v2-space-smd) var(--v2-space-lg); background: var(--pub-nav-pill-bg); border: 1px solid var(--pub-nav-pill-border); border-radius: var(--v2-radius-full); box-shadow: var(--pub-nav-pill-shadow); backdrop-filter: blur(20px); } /* bg white-20, border grey-50, radius 100px, shadow, gap 16, padding 12/24 (main.css:256-266) */
.pubnav__links a { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); text-transform: uppercase; color: var(--v2-text-tertiary); } /* grey-400 #7F8383 uppercase 14/500 (extract D) */
.pubnav__links a:hover { color: var(--v2-accent); } /* red hover #D02827 (extract D main.css:280) */
.pubnav__actions { display: flex; align-items: center; gap: var(--v2-space-md); }
.balance { font-family: var(--v2-font-mono); font-size: var(--v2-size-xs); color: var(--v2-code-inline-fg); background: var(--v2-code-inline-bg); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-sm); padding: var(--v2-space-xs) var(--v2-space-sm); }
.link-quiet { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }
/* F7 first-visit credit hint: small dismissible pointer card anchored to the nav balance chip (is-hint-credits; once-per-visitor behavior later) */
.balance-wrap { position: relative; display: inline-flex; }
.credit-hint { display: none; position: absolute; top: calc(100% + var(--v2-space-sm)); right: 0; z-index: 50; width: max-content; max-width: 240px; align-items: flex-start; gap: var(--v2-space-sm); background: var(--v2-bg-surface); border: 1px solid var(--v2-border-default); border-radius: var(--v2-radius-md); box-shadow: var(--v2-shadow-dropdown); padding: var(--v2-space-md); }
.is-hint-credits .credit-hint { display: flex; }
.credit-hint::before { content: ""; position: absolute; top: -5px; right: 16px; width: 10px; height: 10px; background: var(--v2-bg-surface); border-left: 1px solid var(--v2-border-default); border-top: 1px solid var(--v2-border-default); transform: rotate(45deg); } /* static caret, not movement */
.credit-hint__body { display: flex; flex-direction: column; gap: var(--v2-space-xs); }
.credit-hint__text { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); margin: 0; }
.credit-hint__note { font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); }
.credit-hint__close { flex: 0 0 auto; display: inline-flex; background: transparent; border: none; color: var(--v2-text-tertiary); padding: 0; }
.credit-hint__close:hover { color: var(--v2-text-primary); }
.icon { display: inline-flex; flex: 0 0 auto; }
.icon--sm { width: 16px; height: 16px; }
.icon--md { width: 20px; height: 20px; }

/* --- buttons: btn-danger is the live red primary CTA (extract E main.css:201-202) --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--v2-space-sm); font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); border-radius: var(--v2-radius-md); padding: var(--v2-space-sm) var(--v2-space-md); border: 1px solid transparent; transition: background-color var(--dira-motion-duration) ease, color var(--dira-motion-duration) ease; }
.btn--danger { background: var(--v2-accent); color: var(--v2-text-inverse); } /* brand red #D02827 */
.btn--danger:hover { background: var(--v2-accent-hover); } /* #AE3333 (extract A) */
.btn--danger:disabled { background: var(--v2-text-tertiary); color: var(--v2-text-inverse); opacity: 0.6; cursor: default; } /* live disabled grey-400 (extract E main.css:609-614) */
.btn--secondary { background: var(--v2-bg-surface); color: var(--v2-text-primary); border: 1px solid var(--v2-border-default); } /* F4: neutral secondary CTA (no red fill), for the non-featured packs */
.btn--secondary:hover { background: var(--v2-hover-bg); }
.btn:focus-visible { outline: none; box-shadow: var(--v2-shadow-focus-ring); } /* v0.8 dark-neutral ring */

/* --- page body (F5: live container 1450 + 20px gutter, extract G main.css:98-103) --- */
.page-main { max-width: var(--pub-content-max); margin: 0 auto; padding: var(--v2-space-xl) var(--v2-space-mdl); }

/* --- hero, live H1 40/50/700 (extract F main.css:55-60) --- */
.hero__headline { font-size: var(--v2-size-3xl); line-height: var(--v2-lh-tight); font-weight: var(--v2-weight-bold); color: var(--v2-text-primary); margin: 0; }
.hero__sub { font-size: var(--v2-size-lg); color: var(--v2-text-secondary); margin: var(--v2-space-sm) 0 var(--v2-space-lg); }

/* --- editor card (F1: no improvised wrapper box; toolbar + textarea + lower region ARE one continuous card, live editor chrome extract E main.css:450-568) --- */
.editor-card { display: block; margin-top: var(--v2-space-lg); }
.editor-card__label { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); } /* accessible label, visually folded into the live editor block */
.editor { display: block; }
/* toolbar row kept: grey-200 bar, 12px top radii, 32x32 controls (extract E main.css:450-554); sepia toggle retired (decision d) */
.editor-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--v2-space-mdl); padding: var(--v2-space-smd); background: var(--v2-border-default); border-top-left-radius: var(--v2-radius-lg); border-top-right-radius: var(--v2-radius-lg); }
.toolbar__group { display: flex; align-items: center; gap: var(--v2-space-sm); flex-wrap: wrap; }
.toolbar__select-wrap { display: inline-flex; align-items: center; gap: var(--v2-space-xs); color: var(--v2-text-primary); } /* F2: leading live icon (dark) + native select, per .toolbar__wrapper main.css:531-535 */
.toolbar__select { font-family: inherit; font-size: var(--v2-size-sm); color: var(--v2-text-primary); background: transparent; border: none; outline: none; padding: 0; cursor: pointer; } /* extract E main.css:536 */
.toolbar__btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: var(--v2-size-sm); color: var(--v2-text-primary); background: transparent; border: none; border-radius: var(--v2-radius-sm); } /* extract E main.css:542-553 */
.toolbar__btn:hover { background: var(--v2-hover-bg); }
.toolbar__btn.is-on { background: var(--v2-text-primary); color: var(--v2-text-inverse); } /* selected -> dark (extract E main.css:554) */
.toolbar__btn:focus-visible { outline: none; box-shadow: var(--v2-shadow-focus-ring); }
.editor-card__editor { display: block; width: 100%; min-height: 240px; resize: vertical; font-family: var(--v2-font-ui); font-size: var(--v2-size-base); line-height: var(--v2-lh-normal); color: var(--v2-text-primary); background: var(--v2-bg-surface-sunken); border: 1px solid var(--v2-border-subtle); border-top: none; border-bottom: none; border-radius: 0; padding: var(--v2-space-lg); transition: box-shadow var(--dira-motion-duration) ease, border-color var(--dira-motion-duration) ease; } /* grey-50 editor middle piece (extract E main.css:559-568); radii moved to the toolbar top + lower-region bottom so the three parts read as one card */
/* F1: suppress the UA outline; the editor card border shifts to grey-300 on :focus-within (live idiom, main.css:570). No ring. */
.editor-card__editor:focus { outline: none; }
.editor-card:focus-within .editor-card__editor,
.editor-card:focus-within .editor-card__lower { border-color: var(--pub-editor-focus-border); }
/* F1: the editor card's own lower region (live-plus-addition): counter, radios, run row / gate, feature chip anchor here, continuous with the grey-50 editor, 12px bottom radii */
.editor-card__lower { display: flex; flex-direction: column; gap: var(--v2-space-md); background: var(--v2-bg-surface-sunken); border: 1px solid var(--v2-border-subtle); border-top: none; border-bottom-left-radius: var(--v2-radius-lg); border-bottom-right-radius: var(--v2-radius-lg); padding: var(--v2-space-md) var(--v2-space-lg) var(--v2-space-lg); }

.tool-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--v2-space-sm); }
.counter { font-family: var(--v2-font-mono); font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); }
.is-invalid .counter { color: var(--v2-accent); } /* over-limit brand red #D02827 (extract E js/main.js:205) */
.counter-msg { display: none; font-size: var(--v2-size-sm); color: var(--v2-accent); }
.is-invalid .counter-msg { display: block; }
.counter--alt { display: none; }
.is-invalid .counter--main { display: none; }
.is-invalid .counter--alt { display: inline; }

/* run button label swap + running */
.run-label--running { display: none; }
.is-running .run-label--idle { display: none; }
.is-running .run-label--running { display: inline; }
.is-running .run-btn { pointer-events: none; background: var(--v2-text-tertiary); }

/* platform radios, live idiom (extract E main.css:596-603); the segmented control from the blue build is superseded */
.preset { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--v2-space-md); }
.preset__radio { display: inline-flex; align-items: center; gap: var(--v2-space-sm); font-size: var(--v2-size-sm); color: var(--v2-text-secondary); cursor: pointer; }
.preset__radio input { width: 20px; height: 20px; }

/* run row (spacing owned by .editor-card__lower flex gap) */
.run-row { display: flex; align-items: center; gap: var(--v2-space-md); flex-wrap: wrap; }
.cost-line { font-size: var(--v2-size-sm); color: var(--v2-text-tertiary); }
.balance-echo { font-family: var(--v2-font-mono); font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); margin-left: auto; }

/* feature chip */
.feature-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: var(--v2-space-xs); font-size: var(--v2-size-xs); color: var(--v2-text-secondary); background: var(--v2-bg-surface); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-full); padding: var(--v2-space-xs) var(--v2-space-sm); }
.feature-chip__tag { text-transform: uppercase; letter-spacing: var(--dira-label-tracking); color: var(--v2-accent); } /* REGISTERED, red text accent */

.allowance-explanation {
  display: flex;
  align-items: flex-start;
  gap: var(--v2-space-sm);
  padding: var(--v2-space-xs) 0 var(--v2-space-xs) var(--v2-space-sm);
  border-left: 2px solid var(--v2-border-default);
  font-size: var(--v2-size-xs);
  line-height: var(--v2-lh-normal);
  color: var(--v2-text-secondary);
  overflow-wrap: anywhere;
}
.allowance-explanation > .icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.allowance-explanation p { margin: 0; min-width: 0; }
.allowance-explanation [data-copy-key="checker.usage.body"] {
  font-weight: var(--v2-weight-medium);
}
#allowance-daily-gate .gate-facts { margin-bottom: var(--v2-space-md); }
#allowance-faq .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checker .gate-card[hidden] { display: none; }
@container (max-width: 767px) {
  .allowance-explanation { font-size: var(--v2-size-sm); }
  #allowance-faq .feature-grid { grid-template-columns: 1fr; }
}

/* gate card (Q-069 ceiling / feature-gate) */
.gate-card { display: none; border: 1px solid var(--v2-border-default); border-radius: var(--v2-radius-md); background: var(--pub-card-gradient); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-lg); }
.is-ceiling .run-row, .is-feature-gate .run-row { display: none; }
.is-ceiling .gate-card, .is-feature-gate .gate-card { display: block; }
.gate-card__title { font-size: var(--v2-size-base); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); margin: 0 0 var(--v2-space-sm); }
.gate-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-space-sm); margin: var(--v2-space-md) 0; }
.gate-fact { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }
.gate-fact strong { color: var(--v2-text-primary); font-weight: var(--v2-weight-medium); }

/* results grid (twelve cards modernized) */
.results { display: none; margin-top: var(--v2-space-2xl); }
.is-results .results, .is-results-en .results, .is-results-modal-card .results, .is-results-modal-report .results { display: block; }
.results__title { font-size: var(--v2-size-lg); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); margin: 0 0 var(--v2-space-md); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v2-space-md); align-items: stretch; }
.card-grid > .rcard { display: flex; flex-direction: column; min-width: 0; }
.card-grid > .rcard > .rcard__insight {
  flex: 1 0 auto;
  margin-bottom: var(--v2-space-md);
}
.card-grid > .rcard > .rcard__expand {
  flex: 0 0 auto;
  width: calc(100% + var(--v2-space-lg) + var(--v2-space-lg));
  margin-top: auto;
}
.rsec__factor--prose {
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--v2-space-xs) var(--v2-space-sm);
}
.rsec__excerpt, .rsec__explanation {
  min-width: 0;
  font-family: var(--v2-font-ui);
  white-space: normal;
  overflow-wrap: anywhere;
}
.rsec__factor--prose > .rsec__excerpt { flex: 1 1 100%; }
.rsec__factor-note--count { flex: 0 0 auto; white-space: nowrap; }

/* R4 F3 evaluation-report summary element (rebuilt from live renderEvaluationReport, evaluation_report.js:9-43): composite score/100, verdict badge + line, summary, key observations */
.eval-report { display: flex; flex-direction: column; gap: var(--v2-space-sm); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-lg); background: var(--pub-card-gradient); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-lg); margin-bottom: var(--v2-space-lg); }
.eval-report__head { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-space-sm); }
.eval-report__title { font-size: var(--v2-size-lg); font-weight: var(--v2-weight-bold); color: var(--v2-text-primary); margin: 0; }
.eval-report__score { display: flex; align-items: baseline; gap: var(--v2-space-xs); }
.eval-report__num { font-family: var(--v2-font-mono); font-size: var(--v2-size-3xl); font-weight: var(--v2-weight-bold); line-height: 1; color: var(--v2-text-primary); }
.eval-report__denom { font-size: var(--v2-size-lg); color: var(--v2-text-tertiary); }
.eval-report__verdict { font-size: var(--v2-size-base); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); margin: 0; }
.eval-report__observations .observation-marker, .report__observations .observation-marker, [data-checker-report-highlights] .observation-marker { display: inline-block; width: var(--v2-space-md); height: var(--v2-space-md); margin-inline-end: var(--v2-space-xs); vertical-align: text-bottom; color: inherit; }
.eval-report__summary { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); margin: 0; }
.eval-report__observations { margin: 0; padding-left: var(--v2-space-md); display: flex; flex-direction: column; gap: var(--v2-space-xs); font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }
.eval-report__observations li:has(.observation-marker), .report__observations li:has(.observation-marker), [data-checker-report-highlights] li:has(.observation-marker) { list-style: none; margin-inline-start: calc(-1 * var(--v2-space-md)); }

/* result-card score form */
.rcard__score-unit { font-family: var(--v2-font-ui); font-size: var(--v2-size-sm); font-weight: var(--v2-weight-regular); color: var(--v2-text-tertiary); }

/* ===========================================================================
   R6 A1: drawer system removed. Results grid is permanently compact; detail
   lives in modals. A2 per-card md modal, A3 complete-report lg modal, A4 one
   shared section anatomy (.rsec) rendered once in a card modal and twelve times
   in the report.
   =========================================================================== */
/* View-complete-report control in the Evaluation Report summary block */
.eval-report__cta { align-self: flex-start; margin-top: var(--v2-space-xs); }

/* --- modal system (widths/overlay/radius/shadow consumed from design.json) --- */
/* R7 F1: viewport-anchored (fixed) grid-centered layer, opens over the user's current scroll. The desktop absolute hack is gone. Phone frame re-scopes to absolute below. */
.modal-layer { display: none; position: fixed; inset: 0; z-index: 300; place-items: center; padding: var(--v2-space-lg); }
.modal-layer.is-open { display: grid; }
.is-results-modal-card ~ #modal-spam { display: grid; } /* state class is on .checker; modals are following siblings */
.is-results-modal-report ~ #modal-report { display: grid; }
/* R7 F1: inside the phone frame ONLY, anchor to the frame (its simulated viewport), not the real one. Real narrow viewports keep position:fixed. */
.page-frame.is-phone .modal-layer, .page-frame.is-phone .modal-scrim { position: absolute; }
.modal-scrim { position: fixed; inset: 0; background: var(--v2-overlay-modal); }
/* R7 F3 height law: dvh minus a gutter; header sticky, body scrolls */
.modal { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; max-height: calc(100dvh - 2 * var(--v2-space-lg)); background: var(--v2-bg-surface); border-radius: var(--v2-radius-xl); box-shadow: var(--v2-shadow-modal); overflow: hidden; }
.modal--md { width: min(var(--pub-report-card-w), calc(100vw - 2 * var(--v2-space-md))); } /* R7 F3 card modal 640 responsive-first */
.modal--lg { width: min(var(--pub-report-w), calc(100vw - 2 * var(--v2-space-lg))); }   /* R7 F3 report modal 1100 responsive-first */
.modal__header { display: flex; align-items: center; gap: var(--v2-space-sm); flex: 0 0 auto; min-width: 0; padding: var(--v2-space-md) var(--v2-space-lg); border-bottom: 1px solid var(--v2-border-subtle); background: var(--v2-bg-surface); }
.modal__header--sticky { position: sticky; top: 0; z-index: 2; }
.modal__title { font-size: var(--v2-size-lg); font-weight: var(--v2-weight-bold); color: var(--v2-text-primary); flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.modal__close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; margin-left: var(--v2-space-sm); background: transparent; border: none; border-radius: var(--v2-radius-sm); color: var(--v2-text-secondary); }
.modal__close:hover { background: var(--v2-hover-bg); color: var(--v2-text-primary); }
.modal__close:focus-visible { outline: none; box-shadow: var(--v2-shadow-focus-ring); } /* R7 F5 engine ring; Escape = behavior phase */
.modal__body { overflow-y: auto; overflow-x: clip; overscroll-behavior: contain; } /* R7 F2 internal scroll never chains to the page; F4 no horizontal scroll */

/* --- R1-R6 report-grade section anatomy (.rsec) shared by both modals --- */
.rsec { display: flex; flex-direction: column; gap: var(--v2-space-md); padding: var(--v2-space-lg); } /* R6 density: section padding lg */
.rsec__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-space-sm); } /* R1: title, band badge, result cell */
.rsec__title { min-width: 0; overflow-wrap: anywhere; }
.rsec__title { font-size: var(--v2-size-base); font-weight: var(--v2-weight-bold); color: var(--v2-text-primary); margin: 0; }
/* R8 F3 result cell: right-aligned block, xs uppercase metric label, figure lg mono beneath, 2px bottom accent in the section's tier color. Identical component across all twelve sections and the card modal. */
.rsec__cell { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; padding-bottom: var(--v2-space-xs); border-bottom: 2px solid var(--v2-border-strong); }
.rsec__cell-label { font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); color: var(--v2-text-tertiary); }
.rsec__cell-value { font-family: var(--v2-font-mono); font-size: var(--v2-size-lg); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); }
.rsec__cell--good { border-bottom-color: var(--v2-success-fg); }
.rsec__cell--fair { border-bottom-color: var(--v2-warning-solid); }
.rsec__cell--poor { border-bottom-color: var(--v2-danger-border); }
.rsec__verdict { font-size: var(--v2-size-sm); color: var(--v2-text-primary); margin: 0; }
.rsec__verdict-tier { font-weight: var(--v2-weight-bold); }
.rsec__verdict-tier--good { color: var(--v2-success-fg); }
.rsec__verdict-tier--fair { color: var(--v2-warning-fg); }
.rsec__verdict-tier--poor { color: var(--v2-danger-fg); }
.rsec__subtitle { font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); font-weight: var(--v2-weight-medium); color: var(--v2-text-tertiary); margin: 0; }
.rsec__block { display: flex; flex-direction: column; gap: var(--v2-space-sm); }

/* R2 stat band: dense four-cell row, label xs tertiary above value lg mono, hairline-separated */
.rsec__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-md); overflow: hidden; }
.rsec__stat { display: flex; flex-direction: column; gap: var(--v2-space-xs); padding: var(--v2-space-md); border-left: 1px solid var(--v2-border-subtle); }
.rsec__stat:first-child { border-left: none; }
.rsec__stat-label { font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); }
.rsec__stat-value { font-family: var(--v2-font-mono); font-size: var(--v2-size-lg); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); }

/* R3 meters: full-width grey track, fill to value in the tier semantic color, value mono, label left above */
.rsec__meters { display: flex; flex-direction: column; gap: var(--v2-space-md); }
.meter { display: flex; flex-direction: column; gap: var(--v2-space-xs); }
.meter__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--v2-space-sm); }
.meter__label { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }
.meter__val { font-family: var(--v2-font-mono); font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); }
.meter__track { position: relative; height: 8px; border-radius: var(--v2-radius-full); background: var(--v2-code-inline-bg); overflow: hidden; } /* grey-100 track */
.meter__fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: var(--v2-radius-full); }
.meter__fill--good { background: var(--v2-success-fg); }
.meter__fill--fair { background: var(--v2-warning-solid); }
.meter__fill--poor { background: var(--v2-danger-border); }

/* R4 tier scale (kept from round 5) */
.tier-scale { display: flex; flex-direction: column; gap: var(--v2-space-sm); }
.tier-row { display: flex; align-items: center; gap: var(--v2-space-md); padding: var(--v2-space-sm) var(--v2-space-smd); border: 1px solid transparent; border-radius: var(--v2-radius-md); }
.tier-row.is-current { border-color: var(--v2-border-default); background: var(--v2-bg-surface-sunken); }
.tier-row__bars { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.tier-row__bar { width: 4px; height: 16px; border-radius: 1px; background: var(--v2-border-strong); }
.tier-row--good .tier-row__bar { background: var(--v2-success-fg); }
.tier-row--fair .tier-row__bar { background: var(--v2-warning-solid); }
.tier-row--poor .tier-row__bar { background: var(--v2-danger-border); }
.tier-row__label { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); flex: 0 0 auto; min-width: 96px; }
.tier-row__range { font-family: var(--v2-font-mono); font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); flex: 0 0 auto; min-width: 84px; }
.tier-row__note { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); flex: 1 1 auto; }

/* R5 two-column body: guidelines + before/after side by side (lg report); single column in the md card modal; stacked on mobile. Symmetry: a solo block renders full-width (no lone left column). */
.rsec__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-space-lg); }
.modal--md .rsec__two { grid-template-columns: minmax(0, 1fr); }

/* Guidelines panel: neutral info family (maps the live blue best-practices box, no blue) */
.rsec__guidelines { display: flex; flex-direction: column; gap: var(--v2-space-sm); border: 1px solid var(--v2-border-subtle); border-left: 3px solid var(--v2-border-strong); border-radius: var(--v2-radius-md); background: var(--v2-bg-surface-sunken); padding: var(--v2-space-md) var(--v2-space-lg); }
.rsec__guidelines-head { display: flex; align-items: center; gap: var(--v2-space-sm); }
.rsec__guidelines-title { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); margin: 0; }
.rsec__platform-tag { font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); color: var(--v2-text-tertiary); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-sm); padding: 0 var(--v2-space-xs); }
.rsec__guidelines-list { margin: 0; padding-left: var(--v2-space-md); display: flex; flex-direction: column; gap: var(--v2-space-xs); font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }

/* Example pair (before/after), semantic color on the labels only */
.rsec__example { display: flex; flex-direction: column; gap: var(--v2-space-sm); }
.rsec__example-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-space-lg); }
.rsec__example-col { display: flex; flex-direction: column; gap: var(--v2-space-xs); }
.rsec__example-col--before { border-right: 1px solid var(--v2-border-subtle); padding-right: var(--v2-space-lg); }
.rsec__example-label { font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); font-weight: var(--v2-weight-medium); }
.rsec__example-label--before { color: var(--v2-danger-fg); }
.rsec__example-label--after { color: var(--v2-success-fg); }
.rsec__example-text { font-family: var(--v2-font-ui); font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }

/* Factor / flagged-item rows + signed chips */
.rsec__factors { display: flex; flex-direction: column; }
.rsec__factor { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-space-sm); padding: var(--v2-space-sm) 0; font-size: var(--v2-size-sm); color: var(--v2-text-secondary); border-top: 1px solid var(--v2-border-subtle); }
.rsec__factor:first-child { border-top: none; }
.rsec__factor-note { font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); }
.rsec__code { font-family: var(--v2-font-mono); font-size: var(--v2-size-xs); background: var(--v2-code-inline-bg); color: var(--v2-code-inline-fg); border-radius: var(--v2-radius-sm); padding: 0 var(--v2-space-xs); }
.rsec__chip { font-family: var(--v2-font-mono); font-size: var(--v2-size-xs); font-weight: var(--v2-weight-medium); border: 1px solid var(--v2-border-default); border-radius: var(--v2-radius-full); padding: 0 var(--v2-space-sm); color: var(--v2-text-primary); flex: 0 0 auto; }
.rsec__chip--pos { border-color: var(--v2-success-fg); color: var(--v2-success-fg); }
.rsec__chip--neg { border-color: var(--v2-danger-fg); color: var(--v2-danger-fg); }
.rsec__note { font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); margin: 0; }

/* --- A3 report document --- */
.report__dochead { display: flex; flex-direction: column; gap: var(--v2-space-sm); padding: var(--v2-space-lg); }
.report__docwordmark { height: var(--pub-logo-h-lg); width: auto; display: block; margin-bottom: var(--v2-space-xs); } /* R8 F2 document logo step; F5 spacing re-balance around the larger mark */
.report__doctitle { font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); color: var(--v2-text-tertiary); margin: 0; }
.report__docscore { display: flex; align-items: baseline; gap: var(--v2-space-sm); }
.report__docnum { font-family: var(--v2-font-mono); font-size: var(--v2-size-3xl); font-weight: var(--v2-weight-bold); line-height: 1; color: var(--v2-text-primary); }
.report__docdenom { font-size: var(--v2-size-lg); color: var(--v2-text-tertiary); }
.report__docmeta { font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); margin: 0; }
.report__rule { height: 0; border: none; border-top: 1px solid var(--v2-border-subtle); margin: 0; }
.report__footer { padding: var(--v2-space-lg); font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); border-top: 1px solid var(--v2-border-subtle); }

@container (max-width: 767px) {
    .rsec__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rsec__stat:nth-child(-n+2) { border-top: none; }
    .rsec__stat:nth-child(2) { border-left: 1px solid var(--v2-border-subtle); }
    .rsec__stat:nth-child(n+3) { border-top: 1px solid var(--v2-border-subtle); }
    .rsec__stat:nth-child(odd) { border-left: none; }
    .rsec__two, .rsec__example-row { grid-template-columns: minmax(0, 1fr); }
    .rsec__example-col--before { border-right: none; padding-right: 0; border-bottom: 1px solid var(--v2-border-subtle); padding-bottom: var(--v2-space-sm); }
    /* R7 F3: mobile (real and frame) become full-height sheets, width 100%, radius only at top */
    .modal-layer { padding: 0; place-items: stretch; }
    .modal, .modal--md, .modal--lg { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: var(--v2-radius-xl) var(--v2-radius-xl) 0 0; }
}

.rcard { border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-lg); background: var(--pub-card-gradient); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-lg); } /* F4: live card body + live 24px padding (main.css:1774); soft gradient + shadow, white-anchored remedy on the wash */
.rcard__head { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-space-sm); }
.rcard__title { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); }
.rcard__score { font-family: var(--v2-font-mono); font-size: var(--v2-size-2xl); font-weight: var(--v2-weight-bold); line-height: var(--v2-lh-tight); color: var(--v2-text-primary); margin: var(--v2-space-sm) 0; }
.rcard__insight { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }
.rcard__detail, .rcard__source { font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); margin-top: var(--v2-space-xs); }
/* R8 F1: the whole footer row is the clickable surface that opens the card modal; full-bleed to the card edges, P2 hover wash + cursor + focus ring. Card-level P1 hover stays. */
.rcard__expand { display: flex; align-items: center; justify-content: space-between; width: auto; margin: var(--v2-space-md) calc(-1 * var(--v2-space-lg)) calc(-1 * var(--v2-space-lg)); padding: var(--v2-space-sm) var(--v2-space-lg); border: none; border-top: 1px solid var(--v2-border-subtle); border-bottom-left-radius: var(--v2-radius-lg); border-bottom-right-radius: var(--v2-radius-lg); background: transparent; cursor: pointer; font-size: var(--v2-size-xs); font-weight: var(--v2-weight-medium); color: var(--v2-text-secondary); transition: background-color var(--dira-motion-duration) ease, color var(--dira-motion-duration) ease; }
.rcard__expand:hover { background: var(--v2-hover-bg); color: var(--v2-text-primary); } /* P2 hoverBg wash, 120ms */
.rcard__expand:focus-visible { outline: none; box-shadow: var(--v2-shadow-focus-ring); }

/* semantic band badges (Q-017 Good/Fair/Poor), on the trio tokens (extract A) */
.band { font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); font-weight: var(--v2-weight-medium); border-radius: var(--v2-radius-sm); padding: var(--v2-space-xs) var(--v2-space-sm); flex: 0 0 auto; }
.band--good { color: var(--v2-success-fg); background: var(--v2-success-bg); }   /* #1A9F57 on success-300 */
.band--fair { color: var(--v2-warning-fg); background: var(--v2-warning-bg); }   /* #916000 on #FBF2C3 */
.band--poor { color: var(--v2-danger-fg); background: var(--v2-danger-bg); }     /* #892B2B on #F7D1D1 */

/* AI card sub-states */







/* --- alert family (F3/F5): white card, 3px semantic left edge, leading icon, primary text + one note/action. No red-tinted fill. --- */
.alert { display: none; align-items: flex-start; gap: var(--v2-space-md); background: var(--v2-bg-surface); border: 1px solid var(--v2-border-subtle); border-left: 3px solid var(--v2-border-strong); border-radius: var(--v2-radius-md); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-md) var(--v2-space-lg); }
.alert__icon { flex: 0 0 auto; display: inline-flex; color: var(--v2-text-secondary); }
.alert__body { display: flex; flex-direction: column; gap: var(--v2-space-xs); }
.alert__title { font-size: var(--v2-size-base); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); margin: 0; }
.alert__note { font-size: var(--v2-size-sm); color: var(--v2-text-tertiary); margin: 0; }
.alert__action { align-self: flex-start; margin-top: var(--v2-space-xs); }
.alert--info { border-left-color: var(--v2-border-strong); }        /* neutral info edge, no blue */
.alert--info .alert__icon { color: var(--v2-text-secondary); }
.alert--warning { border-left-color: var(--v2-warning-border); }    /* #DBB214 edge */
.alert--warning .alert__icon { color: var(--v2-warning-fg); }       /* #916000 icon */
.alert--danger { border-left-color: var(--v2-danger-border); }      /* 3px #892B2B edge */
.alert--danger .alert__icon { color: var(--v2-danger-fg); }         /* #892B2B icon */

/* F3 pre-check states: english + content replace the run region like the ceiling gate; input preserved */
.is-precheck-english .run-row, .is-precheck-content .run-row { display: none; }
.is-precheck-english .precheck-english { display: flex; }
.is-precheck-content .precheck-content { display: flex; }
.precheck-caption { display: none; font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); margin: 0; }
.is-precheck-english .precheck-caption, .is-precheck-content .precheck-caption { display: block; }

/* F5 error card: re-rendered in the alert family (page-level, below the editor card); pale red banner removed */
.error-card { margin-top: var(--v2-space-2xl); }
.is-error .error-card { display: flex; }

.is-running .editor-card__editor, .is-running .preset__radio { pointer-events: none; }

/* --- conversion below the fold, live card language (F5: live 72px section cadence, main.css:1802) --- */
.section { margin-top: var(--pub-section-gap); }
.section__title { font-size: var(--v2-size-xl); font-weight: var(--v2-weight-bold); line-height: var(--v2-lh-tight); color: var(--v2-text-primary); margin: 0 0 var(--v2-space-md); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v2-space-md); }
/* F4 value-prop cards: live features__card rhythm (flex column, gap 12, padding 24 - main.css:1770-1778) */
.feature-card { display: flex; flex-direction: column; gap: var(--v2-space-smd); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-lg); background: var(--pub-card-gradient); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-lg); }
/* F4 icon chip block: white rounded square (radius 8/md), subtle shadow (V2 addition), live 24px icon inside a 40px chip (main.css:1806-1815) */
.feature-card__icon { display: inline-flex; align-items: center; justify-content: center; width: var(--pub-chip-size); height: var(--pub-chip-size); border-radius: var(--v2-radius-md); background: var(--v2-bg-surface); box-shadow: var(--v2-shadow-raised); color: var(--v2-text-primary); }
.feature-card__icon .icon { width: var(--pub-chip-icon); height: var(--pub-chip-icon); }
.feature-card__title { font-size: 18px; font-weight: var(--v2-weight-bold); line-height: var(--v2-lh-tight); color: var(--v2-text-primary); margin: 0; } /* live 18/700/1.3 dark (main.css:1780-1787) */
.feature-card__body { font-size: 15px; line-height: var(--v2-lh-normal); color: var(--v2-text-tertiary); margin: 0; } /* live 15/400 grey-400 (main.css:1789-1797) */

/* config-backed token chip: NEUTRAL (config value, not badge/CTA vocabulary; no red fill) */
.token-chip { display: inline-flex; align-items: center; font-family: var(--v2-font-mono); font-size: var(--v2-size-xs); color: var(--v2-text-primary); background: var(--v2-code-inline-bg); border: 1px dashed var(--v2-border-strong); border-radius: var(--v2-radius-sm); padding: 0 var(--v2-space-xs); }
.tier-pitch { border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-lg); background: var(--pub-card-gradient); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-lg); }
.tier-pitch__body { font-size: var(--v2-size-base); color: var(--v2-text-secondary); }


.pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v2-space-md); align-items: start; }
.pack-card { display: flex; flex-direction: column; align-items: center; gap: var(--v2-space-sm); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-lg); background: var(--pub-card-gradient); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-lg); text-align: center; }
.pack-card--featured { border: 1px solid var(--v2-accent); box-shadow: var(--v2-shadow-raised); } /* F4: featured middle pack, border + raised shadow emphasis (accent vocabulary, no red fill) */
.pack-card__name { font-size: var(--v2-size-xl); font-weight: var(--v2-weight-bold); color: var(--v2-text-primary); margin-bottom: var(--v2-space-xs); } /* R4 F2: real hierarchy, xl/700, clear gap above the price block */
/* F4: large typographic price (2xl figure) + smaller EUR unit; the chip no longer IS the price */
.pack-card__price { display: inline-flex; align-items: baseline; gap: var(--v2-space-xs); font-size: var(--v2-size-2xl); font-weight: var(--v2-weight-bold); line-height: var(--v2-lh-tight); color: var(--v2-text-primary); }
.pack-card__unit { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); color: var(--v2-text-tertiary); }
.pack-card__config { font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); }
.pack-card__credits { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); }
.pack-card .feature-card__body { text-align: center; }
.pack-card .btn { align-self: stretch; margin-top: var(--v2-space-xs); }
.pack-floor { font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); margin-top: var(--v2-space-md); text-align: center; }
.trust { border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-md); background: var(--v2-bg-surface-sunken); padding: var(--v2-space-lg); font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }

/* R4 F1 universal card hover (P1): every card family (value-prop, result, pricing). Border subtle -> default + a clearly-visible hover shadow (--pub-card-hover-shadow, one step above resting), 120ms, no movement. Pointer cursor only on genuinely interactive cards (result expand, pricing); informational value-prop cards get the visual lift with the default cursor. :focus-visible parity on the interactive ones. */
.feature-card, .rcard, .pack-card { transition: border-color var(--dira-motion-duration) ease, box-shadow var(--dira-motion-duration) ease; }
.rcard, .pack-card { cursor: pointer; }
.feature-card:hover, .rcard:hover, .pack-card:hover, .rcard:focus-visible, .pack-card:focus-visible { border-color: var(--v2-border-default); box-shadow: var(--pub-card-hover-shadow); }
.rcard:focus-visible, .pack-card:focus-visible { outline: none; }
.pack-card--featured:hover, .pack-card--featured:focus-visible { border-color: var(--v2-accent); box-shadow: var(--pub-card-hover-shadow); } /* featured keeps its accent edge on hover */

/* === pubfoot2 public footer: byte-copied from public-statics-b.css (base :90-104, @991 :168-169, @767 :176-178; fix1 rebuild). Do not re-derive; hash-compared against source. === */
/* --- F2 rebuilt footer (pubfoot2): captured from the live .site-footer (footer-extract-2026-07-11.md), structure/hierarchy/links/spacing/hover preserved, colors+sizes+spacing mapped to --v2-* by nearest computed value --- */
.pubfoot2 { padding: var(--v2-space-2xl) 0 var(--v2-space-xl); background: var(--v2-bg-app); border-top: 1px solid var(--v2-border-default); font-size: var(--v2-size-xs); line-height: var(--v2-lh-normal); } /* live .site-footer main.css:318-324: pad 40/32, bg #F4F5F8->bg-app, border #E1E1E1->border-default, 12px->size-xs, lh18/12->lh-normal */
.pubfoot2__inner { max-width: var(--pub-content-max); margin: 0 auto; padding: 0 var(--v2-space-mdl); } /* live .container (max-width 1450, gutter 20->mdl) */


.pubfoot2__logo { display: inline-flex; align-items: center; }
.pubfoot2__logo img { height: var(--pub-logo-h); width: auto; display: block; } /* live footer logo has no size rule; sized to the brand.logoScale nav standard (36px) */
.pubfoot2__desc { color: var(--v2-text-secondary); font-weight: var(--v2-weight-medium); margin-top: var(--v2-space-md); max-width: 40ch; } /* main.css:331-336: grey-700 #696D6D->text-secondary, 500->weight-medium, 16->space-md, width 80% -> readable measure */

.pubfoot2__link { color: var(--v2-text-primary); transition: color var(--dira-motion-duration) ease; } /* main.css:337-340: grey-900 #3C3D3D->text-primary (dark link, preserves links-darker-than-desc), .3s->dira 120ms */
.pubfoot2__link:hover { color: var(--v2-accent); } /* main.css:341-343: hover danger-400 #D02827->accent */
.pubfoot2__social-list { display: flex; align-items: center; flex-wrap: wrap; gap: var(--v2-space-lg); list-style: none; margin: 0; padding: 0; } /* main.css:349-353: gap 24->lg */
.pubfoot2__social-link { display: inline-flex; color: var(--v2-text-primary); } /* main.css:354-356: grey-900->text-primary; live has no hover on social, none added */
.pubfoot2__brand-wrap { display: flex; align-items: center; gap: var(--v2-space-sm); color: var(--v2-text-primary); } /* main.css:371-376: gap 10->sm(8), grey-900->text-primary */
.pubfoot2__brand-logo { width: 137px; } /* CANDIDATE: live .footer_brand-logo width 137px (main.css:364-366); no width token exists for this fixed brand asset */
.pubfoot2__pay { display: inline-flex; align-items: center; gap: var(--v2-space-sm); margin: 0; color: var(--v2-text-primary); }
.pubfoot2__pay-logo { width: 16px; height: 16px; flex: none; } /* fixed brand mark, sized like the 16px X icon in .pubfoot2__social-list; no icon-size token for an external mark */
@container (max-width: 991px) {

    .pubfoot2__desc { max-width: 100%; }
}
@container (max-width: 767px) {


    .pubfoot2__link { font-size: var(--v2-size-sm); line-height: var(--v2-lh-normal); } /* 14->size-sm */
}

/* --- nav drawer (public variant) --- */
.nav-toggle { display: none; align-items: center; gap: var(--v2-space-sm); font-size: var(--v2-size-sm); color: var(--v2-text-primary); background: var(--v2-bg-surface); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-sm); padding: var(--v2-space-xs) var(--v2-space-smd); }
.drawer { display: none; }
.drawer-scrim { display: none; position: absolute; inset: 0; z-index: 200; background: var(--v2-overlay-modal); opacity: 0; pointer-events: none; transition: opacity var(--dira-motion-duration) ease; }

/* ==========================================================================
   Responsive (C11). One container query set on .page-frame (fires at real
   width and inside the phone frame). Breakpoints 991/767/580.
   ========================================================================== */
@container (max-width: 991px) {
    .card-grid, .feature-grid, .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pubnav__links { display: none; }
    .nav-toggle { display: inline-flex; }
    .drawer { display: flex; flex-direction: column; gap: var(--v2-space-xs); position: absolute; top: 0; left: 0; z-index: 210; height: 100%; width: min(80cqw, 320px); background: var(--v2-bg-surface); border-right: 1px solid var(--v2-border-default); padding: var(--v2-space-lg); transform: translateX(-100%); transition: transform var(--dira-motion-duration) ease; overflow-y: auto; }
    .drawer a { font-size: var(--v2-size-base); color: var(--v2-text-secondary); padding: var(--v2-space-sm) 0; }
    .drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--v2-space-sm); }
    .drawer-close { color: var(--v2-text-secondary); background: transparent; border: none; padding: var(--v2-space-xs); }
    .drawer-scrim { display: block; }
    .is-drawer-open .drawer { transform: translateX(0); }
    .is-drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
}
@container (max-width: 767px) {
    .card-grid, .feature-grid, .pack-grid { grid-template-columns: minmax(0, 1fr); }
    .page-main { padding: var(--v2-space-md); }
    .gate-facts { grid-template-columns: minmax(0, 1fr); }
    .pubnav { padding: 0 var(--v2-space-md); }
}
@container (max-width: 580px) {
    .hero__headline { font-size: var(--v2-size-2xl); }
    .hero__sub { font-size: var(--v2-size-base); }
}

/* Public AI has one view, separate from deterministic metrics. */
#card-ai, #report-ai { min-width: 0; overflow-wrap: anywhere; }
#card-ai [hidden], #report-ai [hidden], .public-ai-consent[hidden] { display: none; }
.public-ai-consent { display: flex; align-items: flex-start; gap: var(--v2-space-sm); font-size: var(--v2-size-sm); line-height: var(--v2-lh-relaxed); }
.public-ai-consent input { width: 20px; height: 20px; accent-color: var(--v2-accent); }
.public-ai-consent a { color: var(--v2-text-link); text-decoration: underline; }
.public-ai-consent :focus-visible { box-shadow: var(--v2-shadow-focus-ring); }
#modal-privacy .doc { min-width: 0; width: 100%; margin: 0 auto; border: 0; border-radius: 0; box-shadow: none; padding: var(--v2-space-xl); overflow-wrap: anywhere; }
#card-ai .public-ai-verdict, #report-ai .public-ai-verdict { font-size: var(--v2-size-lg); font-weight: var(--v2-weight-bold); color: var(--v2-text-primary); margin: var(--v2-space-md) 0 0; }
#card-ai .rcard__score, #report-ai .rcard__score { font-size: var(--v2-size-2xl); font-family: var(--v2-font-mono); font-weight: var(--v2-weight-bold); margin: var(--v2-space-sm) 0; }
#card-ai .rcard__insight, #report-ai .rsec__note { line-height: var(--v2-lh-relaxed); }
#card-ai .public-ai-consent, #report-ai .public-ai-consent { margin-top: var(--v2-space-md); }
.public-ai-consent input { flex: 0 0 auto; margin-top: 2px; }
#modal-privacy [hidden] { display: none; }
#modal-privacy .pending { display: flex; align-items: flex-start; gap: var(--v2-space-sm); border: 1px solid var(--v2-border-subtle); border-left: 3px solid var(--v2-border-strong); border-radius: var(--v2-radius-md); background: var(--v2-bg-surface-sunken); padding: var(--v2-space-sm) var(--v2-space-md); font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }
#modal-privacy .pending__icon { flex: 0 0 auto; display: inline-flex; color: var(--v2-text-secondary); }
#modal-privacy .pending strong { color: var(--v2-text-primary); font-weight: var(--v2-weight-medium); }
@container (max-width: 767px) { #modal-privacy .doc { padding: var(--v2-space-lg); } }
@media (prefers-reduced-motion: reduce) { #card-ai, #report-ai { transition: none; } }

#modal-privacy .doc__body, .doc-table td, .doc-table th, .pending, .protection-note, .prefill-note, .doc__meta, .contact-hero__sub { overflow-wrap: anywhere; }
#modal-privacy .doc__title { font-size: var(--v2-size-2xl); font-weight: var(--v2-weight-bold); line-height: var(--v2-lh-tight); color: var(--v2-text-primary); margin: 0; }
#modal-privacy .doc__meta { font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); color: var(--v2-text-tertiary); margin: var(--v2-space-xs) 0 0; }
#modal-privacy .doc__section { margin-top: var(--v2-space-xl); display: flex; flex-direction: column; gap: var(--v2-space-sm); }
#modal-privacy .doc__h2 { font-size: var(--v2-size-lg); font-weight: var(--v2-weight-bold); color: var(--v2-text-primary); margin: 0; } /* rule 11 requested weight-semibold; the token set omits 600 (design 0.4), mapped to weight-bold (700) */
#modal-privacy .doc__body { font-size: var(--v2-size-base); line-height: var(--v2-lh-relaxed); color: var(--v2-text-secondary); margin: 0; max-width: 75ch; } /* F1.5 branch B: at --pub-doc-max 1100 the raw body measure runs ~130 chars (>90 at 1280), so body is capped at 75ch; tables and headings keep the full card width */
#modal-privacy .doc__body a { color: var(--v2-text-link); } /* red in-document link vocabulary */

.pubfoot2__row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  align-items: start; gap: var(--v2-space-2xl);
}
.pubfoot2__col, .pubfoot2__group { min-width: 0; }
.pubfoot2__menu {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--v2-space-smd); list-style: none; margin: 0; padding: 0;
}
.pubfoot2__title {
  margin: 0 0 var(--v2-space-md); font-size: var(--v2-size-sm);
  font-weight: var(--v2-weight-bold); line-height: var(--v2-lh-normal);
  color: var(--v2-text-primary);
}
.pubfoot2__meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--v2-space-lg);
  margin-top: var(--v2-space-xl); padding-top: var(--v2-space-lg);
  border-top: 1px solid var(--v2-border-subtle);
}
@container (max-width: 991px) {
  .pubfoot2__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-space-xl); }
  .pubfoot2__desc { max-width: 100%; }
}
@container (max-width: 767px) {
  .pubfoot2__row { grid-template-columns: minmax(0, 1fr); }
  .pubfoot2__col { width: 100%; }
  .pubfoot2__menu { gap: var(--v2-space-md); }
  .pubfoot2__link, .pubfoot2__pay { font-size: var(--v2-size-sm); line-height: var(--v2-lh-normal); }
  .pubfoot2__meta { flex-direction: column; align-items: flex-start; }
}

/* AI verdict block: one full-width result above the Evaluation Report. */
.ai-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--v2-space-md); align-items: center; margin-bottom: var(--v2-space-md);
  border: 1px solid var(--v2-border-subtle); border-left-width: 6px; border-radius: var(--v2-radius-lg);
  background: var(--pub-card-gradient); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-lg); min-width: 0; overflow-wrap: anywhere; }
.ai-hero[data-ai-tier="machine"] { border-left-color: var(--v2-danger-fg); }
.ai-hero[data-ai-tier="human"] { border-left-color: var(--v2-success-fg); }
.ai-hero[data-ai-tier="undecided"] { border-left-color: var(--v2-warning-fg); }
.ai-hero[data-ai-tier="none"] { border-left-color: var(--v2-border-subtle); }
.ai-hero__label { font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); font-weight: var(--v2-weight-medium); color: var(--v2-text-tertiary); margin: 0 0 var(--v2-space-xs); }
#card-ai.ai-hero .ai-hero__verdict { font-size: var(--v2-size-3xl); font-weight: var(--v2-weight-bold); line-height: 1.05; color: var(--v2-text-primary); margin: 0; }
.ai-hero__note { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); margin: var(--v2-space-sm) 0 0; }
.ai-hero__meter { display: flex; flex-direction: column; align-items: flex-end; gap: var(--v2-space-xs); min-width: 9rem; }
.ai-hero__value { font-family: var(--v2-font-mono); font-size: var(--v2-size-3xl); font-weight: var(--v2-weight-bold); line-height: 1; color: var(--v2-text-primary); }
.ai-hero__unit { font-size: var(--v2-size-sm); color: var(--v2-text-tertiary); }
.ai-hero__band { margin-top: var(--v2-space-xs); }
.ai-hero__actions { grid-column: 1 / -1; display: flex; gap: var(--v2-space-sm); }
.ai-hero__details { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#card-ai.ai-hero[data-ai-view="loading"] .ai-hero__verdict, #card-ai.ai-hero[data-ai-view="not-selected"] .ai-hero__verdict,
#card-ai.ai-hero[data-ai-view="ineligible"] .ai-hero__verdict, #card-ai.ai-hero[data-ai-view="unavailable"] .ai-hero__verdict { font-size: var(--v2-size-lg); color: var(--v2-text-secondary); }
.ai-hero[data-ai-view="loading"] .ai-hero__meter, .ai-hero[data-ai-view="not-selected"] .ai-hero__meter,
.ai-hero[data-ai-view="ineligible"] .ai-hero__meter, .ai-hero[data-ai-view="unavailable"] .ai-hero__meter,
.ai-hero[data-ai-view="loading"] .ai-hero__actions, .ai-hero[data-ai-view="not-selected"] .ai-hero__actions,
.ai-hero[data-ai-view="ineligible"] .ai-hero__actions, .ai-hero[data-ai-view="unavailable"] .ai-hero__actions { display: none; }
@media (max-width: 767px) { .ai-hero { grid-template-columns: minmax(0, 1fr); } .ai-hero__meter { align-items: flex-start; } }
