/* R1316: shared component grammar. Shells differ in layout, never in identity.
   No state/access selectors are reclassified and no control is hidden here. */
.fe-shell-meta { display:flex; justify-content:flex-end; margin-bottom:12px; }
html[data-theme] body[data-fe-design-system] .fe-shell-meta .fe-clock-chip {
    position:static; z-index:auto; transform:none; max-width:100%; box-sizing:border-box;
    background:var(--fe-surface); color:var(--fe-secondary); border:1px solid var(--fe-line);
    border-radius:var(--fe-radius-control); box-shadow:none; backdrop-filter:none;
    font:500 12px/1.5 var(--fe-font-ui); letter-spacing:normal;
}
html[data-theme] body[data-fe-design-system] .fe-shell-meta .fe-clock-chip__dot { animation:none; box-shadow:none; background:var(--fe-interaction); }
html[data-theme] body[data-fe-design-system] .fe-shell-meta .fe-clock-chip__window { color:var(--fe-secondary); font:inherit; }
@media(max-width:768px) { .fe-shell-meta { display:none; } }
html[data-theme] { background: var(--fe-canvas); color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body[data-fe-design-system="unified"] {
    --bg-primary: var(--fe-canvas);
    --bg-card: var(--fe-surface);
    --bg-card-hover: var(--fe-raised);
    --bg-input: var(--fe-sunken);
    --bg-sidebar: var(--fe-surface);
    --bg-subtle: var(--fe-sunken);
    --text-primary: var(--fe-ink);
    --text-heading: var(--fe-ink);
    --text-secondary: var(--fe-secondary);
    --text-muted: var(--fe-muted);
    --text-dim: var(--fe-muted);
    --border-subtle: var(--fe-line);
    --border-hover: var(--fe-control-line);
    --btn-primary-text: var(--fe-on-interaction);
    --radius-md: var(--fe-radius-panel);
    --radius-sm: var(--fe-radius-control);
    --font-display: var(--fe-font-ui);
    --font-body: var(--fe-font-ui);
    background: var(--fe-canvas);
    color: var(--fe-ink);
    font-family: var(--fe-font-ui);
    font-variant-numeric: tabular-nums lining-nums;
}
body[data-fe-design-system] :is(h1,h2,h3,h4,.card-title,.btn,.chip,.fe-wordmark,.landing-brand) {
    font-family: var(--fe-font-ui);
    font-variant-numeric: tabular-nums lining-nums;
}
body[data-fe-design-system] :is(.page-header,.fe-c-page-header) h1 {
    color: var(--fe-ink);
    font-size: var(--fe-type-title);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}
body[data-fe-design-system] :is(.card,.fe-c-panel,.fe-c-metric) {
    background: var(--fe-surface);
    border-radius: var(--fe-radius-panel);
    box-shadow: var(--fe-shadow-panel);
}
body[data-fe-design-system] :is(.btn,.landing-btn,.landing-nav__cta,.fe-journey__primary-action,.fe-journey__secondary-action) {
    align-items: center;
    border-radius: var(--fe-radius-control);
    box-sizing: border-box;
    font-size: var(--fe-type-body);
    font-weight: 650;
    line-height: 1.4;
    min-height: 44px;
    padding: 10px 16px;
    text-shadow: none;
    transition: background-color 140ms ease, border-color 140ms ease;
}
body[data-fe-design-system] :is(.btn-primary,.landing-btn--primary,.landing-nav__cta,.fe-journey__primary-action) {
    background: var(--fe-interaction);
    border: 1px solid var(--fe-interaction);
    box-shadow: none;
    color: var(--fe-on-interaction);
}
body[data-fe-design-system] :is(.btn-secondary,.landing-btn--secondary,.fe-journey__secondary-action) {
    background: var(--fe-surface);
    border: 1px solid var(--fe-control-line);
    box-shadow: none;
    color: var(--fe-ink);
}
body[data-fe-design-system] :is(.btn-primary,.landing-btn--primary,.landing-nav__cta,.fe-journey__primary-action):hover {
    filter: brightness(.94);
    transform: none;
    box-shadow: none;
}
body[data-fe-design-system] :is(.btn-secondary,.landing-btn--secondary,.fe-journey__secondary-action):hover { background: var(--fe-raised); color:var(--fe-ink); transform: none; }
body[data-fe-design-system] :is(a,button,input,select,textarea,summary):focus-visible {
    outline: 2px solid var(--fe-focus);
    outline-offset: 3px;
}
body[data-fe-design-system] :is(.form-group,.member-setup__field) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    background: var(--fe-sunken);
    border: 1px solid var(--fe-control-line);
    border-radius: var(--fe-radius-control);
    color: var(--fe-ink);
    font-family: var(--fe-font-ui);
    font-size: 16px;
    min-height: 46px;
}
body[data-fe-design-system] :is(.chip,.fe-c-neutral-chip,.fe-c-label,.fe-page-header__kicker,.fe-c-page-header__kicker) { font-size: var(--fe-type-caption); }

/* Standalone landing maps its legacy vocabulary to the same authority. */
body[data-fe-page="landing-r997"][data-fe-design-system] {
    --bg: var(--fe-canvas); --bg-deep: var(--fe-canvas);
    --surface: var(--fe-surface); --surface-strong: var(--fe-surface); --surface-soft: var(--fe-raised);
    --line: var(--fe-line); --line-strong: var(--fe-control-line);
    --text: var(--fe-ink); --muted: var(--fe-secondary); --quiet: var(--fe-muted);
    --accent: var(--fe-interaction); --accent-strong: var(--fe-interaction); --accent-ink: var(--fe-on-interaction);
    --amber: var(--fe-tier); --danger: var(--fe-negative);
    --shadow: var(--fe-shadow-panel); --radius-xl: var(--fe-radius-panel); --radius-lg: var(--fe-radius-panel);
    --radius-md: var(--fe-radius-control);
    background: var(--fe-canvas);
}
body[data-fe-design-system] :is(.landing-nav,.landing-status,.landing-footer) { background: var(--fe-canvas); border-color: var(--fe-line); backdrop-filter: none; }
body[data-fe-design-system] .landing-hero h1 { color: var(--fe-ink); font-size: var(--fe-type-display); line-height: 1.08; letter-spacing: -.035em; }
body[data-fe-design-system] :is(.landing-section__head h2,.landing-close h2) { font-size: clamp(26px,3vw,36px); letter-spacing: -.025em; }
body[data-fe-design-system] :is(.landing-card-preview,.landing-product__shell,.landing-plan,.landing-proof__grid > *, .landing-steps > *) {
    background: var(--fe-surface);
    border: 1px solid var(--fe-line);
    border-radius: var(--fe-radius-panel);
    box-shadow: var(--fe-shadow-panel);
}
body[data-fe-design-system] .landing-hero::before,
body[data-fe-design-system] .landing-card-preview::before,
body[data-fe-design-system] .landing-product__shell::before { content: none; }
body[data-fe-design-system] .landing-brand__emblem { filter: none; }
body[data-fe-design-system] .landing-card-preview h2 { color: var(--fe-ink); font-size: 24px; }
body[data-fe-design-system] .landing-section { padding-top: 48px; padding-bottom: 48px; }
body[data-fe-design-system] .landing-cinema { min-height: 0; padding: 20px; background: var(--fe-sunken); border: 0; }
body[data-fe-design-system] :is(.landing-personalization,.landing-faq details,.landing-final,.landing-proof__receipt,.landing-card-preview__pro) { background: var(--fe-surface); border-color: var(--fe-line); box-shadow: none; }
body[data-fe-design-system] .landing-final::before,
body[data-fe-design-system] .landing-final::after,
body[data-fe-design-system] .landing-brand__emblem::after,
body[data-fe-design-system] .landing-section__head::after { content:none; }
body[data-fe-design-system] .landing-hero h1 em { color:var(--fe-interaction); background:none; }
body[data-fe-design-system] :is(.landing-card-preview,.landing-hero__copy) { transform:none; transition:none; backdrop-filter:none; }
body[data-fe-design-system] .landing-billing-toggle button { min-height:44px; font-size:12px; }
body[data-fe-design-system] .landing-billing-toggle button[aria-pressed="true"] { color:var(--fe-ink); background:var(--fe-raised); }
body[data-fe-design-system] .landing-card-preview__pro a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; color:var(--fe-ink); border-color:var(--fe-control-line); }
body[data-fe-design-system] .landing-card-result--pending em { color:var(--fe-muted); border-color:var(--fe-line); background:var(--fe-sunken); }
body[data-fe-design-system] :is(.landing-eyebrow,.landing-section__head > span,.landing-final > div > span) { color:var(--fe-muted); }
body[data-fe-design-system] .landing-plan--pro { border-color:var(--fe-control-line); }
body[data-fe-design-system] .landing-final { padding:48px 24px; }
body[data-fe-design-system] .landing-final h2 { font-size:clamp(26px,3vw,36px); }
body[data-fe-design-system] .landing-footer nav a { min-height:44px; }

/* Account entry uses the same real controls, quiet surfaces and type scale. */
body[data-fe-design-system] .fe-journey {
    --font-mono: var(--fe-font-ui);
    --journey-ink: var(--fe-ink); --journey-copy: var(--fe-secondary); --journey-muted: var(--fe-muted);
    --journey-line: var(--fe-line); --journey-panel: var(--fe-surface);
    background: var(--fe-canvas);
}
body[data-fe-design-system] .fe-journey::before,
body[data-fe-design-system] .fe-journey__emblem::after,
body[data-fe-design-system] .member-setup__hero::after { content: none; }
body[data-fe-design-system] :is(.fe-journey__topbar,.fe-journey__panel,.fe-journey__story) { animation: none; }
body[data-fe-design-system] .fe-journey__layout { max-width: 1180px; gap: 48px; padding-top: 40px; align-items: start; }
body[data-fe-design-system] .fe-journey__panel { background: var(--fe-surface); border: 1px solid var(--fe-line); border-radius: var(--fe-radius-panel); box-shadow: var(--fe-shadow-panel); backdrop-filter: none; padding: 28px; }
body[data-fe-design-system] :is(.fe-journey__panel h1,.fe-journey__story h2,.member-setup__hero h1) { color: var(--fe-ink); font-size: var(--fe-type-title); letter-spacing: -.025em; line-height: 1.2; }
body[data-fe-design-system] .fe-journey__story { padding-top: 20px; }
body[data-fe-design-system] .fe-journey__emblem { filter: none; }
body[data-fe-design-system] :is(.fe-journey__eyebrow,.fe-journey__panel-kicker,.member-setup__kicker,.member-setup__section-kicker) { color: var(--fe-muted); font-size: var(--fe-type-caption); letter-spacing: .08em; }
body[data-fe-design-system] :is(.fe-journey__stage,.fe-auth-access__surface,.fe-auth-banner,.fe-journey__plan-summary) { background: var(--fe-sunken); border-color: var(--fe-line); border-radius: var(--fe-radius-control); box-shadow: none; color: var(--fe-secondary); }
body[data-fe-design-system] .fe-auth-access input:checked + .fe-auth-access__surface { border-color: var(--fe-interaction); background: var(--fe-raised); }
body[data-fe-design-system] .fe-auth-banner--error { color: var(--fe-negative); border-color: var(--fe-negative); }
body[data-fe-design-system] .fe-auth-banner--success { color: var(--fe-positive); }
body[data-fe-design-system] :is(.fe-journey__lede,.fe-journey__story-copy p,.member-setup__lead) { color: var(--fe-secondary); font-size: 16px; line-height: 1.6; }
body[data-fe-design-system] :is(.member-setup__field label,.member-setup__choice span,.member-setup__step span,.member-setup__note) { color: var(--fe-secondary); font-size: 12px; }
body[data-fe-design-system] .member-setup__hero { padding: 24px; border: 1px solid var(--fe-line); }
body[data-fe-design-system] .member-setup__rail span { background: var(--fe-interaction); }
html[data-theme] body[data-fe-auth-shell="1"][data-fe-design-system] { background:var(--fe-canvas); }
body[data-fe-design-system] .fe-journey__topbar { max-width:1180px; }
body[data-fe-design-system] :is(.fe-journey__stage,.fe-journey__panel .form-group label) { font-family:var(--fe-font-ui); font-size:12px; letter-spacing:.04em; }
body[data-fe-design-system] .fe-journey__stage-pulse { box-shadow:none; background:var(--fe-interaction); }
body[data-fe-design-system] :is(.fe-journey__exit,.fe-journey__exit:hover) { color:var(--fe-secondary); }
body[data-fe-design-system] .fe-journey__exit:hover { background:var(--fe-raised); transform:none; }
body[data-fe-design-system] :is(.fe-journey__sequence-step,.fe-journey__checklist) { background:var(--fe-sunken); border-color:var(--fe-line); border-radius:var(--fe-radius-control); }
body[data-fe-design-system] :is(.fe-journey__sequence-step strong,.fe-journey__checklist strong) { color:var(--fe-ink); font-size:14px; }
body[data-fe-design-system] :is(.fe-journey__sequence-step span,.fe-journey__checklist span) { color:var(--fe-secondary); font-size:12px; }
body[data-fe-design-system] :is(.fe-journey__sequence-step em,.fe-journey__sequence-step > b) { color:var(--fe-muted); font-size:12px; }
body[data-fe-design-system] .fe-journey__status-mark { background:var(--fe-sunken); color:var(--fe-positive); border-color:var(--fe-line); border-radius:var(--fe-radius-panel); }
body[data-fe-design-system] .fe-journey__status-mark--error { color:var(--fe-negative); }
body[data-fe-design-system] .fe-journey__status-mark::after { content:none; }

/* Generated reports retain their evidence DOM and navigation controller.
   These scoped rules also adopt older sealed documents decorated at response time.
   BEGIN SEALED REPORT BRIDGE: seven priority declarations are necessary because
   published report styles pin these presentation properties. Never rewrite the
   stored report or extend this exception to application/entry-page controls. */
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] { --fe-report-surface:var(--fe-surface); --fe-report-surface-2:var(--fe-sunken); --fe-report-seam:var(--fe-line); --fe-report-seam-soft:var(--fe-line); }
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] :is(h1,h2,h3,h4,.card-title,.report-header__fact strong,.report-read-value) { font-family:var(--fe-font-ui); }
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] .report-header h1 { color:var(--fe-ink); font-size:var(--fe-type-title) !important; line-height:1.2; letter-spacing:-.025em; }
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] :is(.report-header,.fe-report-start-strip,.fe-report-tools-cta,.fe-report-referral-prompt,.report-read-guide,.summary,.jump-nav) {
    background:var(--fe-surface) !important; border-color:var(--fe-line) !important; border-radius:var(--fe-radius-panel) !important; box-shadow:var(--fe-shadow-panel) !important; backdrop-filter:none;
}
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] :is(.report-header__fact,.fe-report-start-step,.report-read-workflow__step,.report-read-card,.report-read-chip,.report-source-strip) { background:var(--fe-sunken) !important; border-color:var(--fe-line) !important; box-shadow:none; }
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] .report-header::after,
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] .fe-report-tools-cta::before { content:none; }
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] :is(.fe-report-tools-cta__button,.jump-nav a) { min-height:44px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; font-family:var(--fe-font-ui); font-size:14px; font-weight:650; border-radius:var(--fe-radius-control); }
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] .fe-report-tools-cta__button--primary { background:var(--fe-interaction); color:var(--fe-on-interaction); border:1px solid var(--fe-interaction); box-shadow:none; }
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] .fe-report-tools-cta__button--secondary { background:var(--fe-surface); color:var(--fe-ink); border:1px solid var(--fe-control-line); box-shadow:none; }
html[data-theme] body.fe-generated-report[data-fe-design-system][data-report-ux] :is(.report-header__fact span,.report-read-label) { font-family:var(--fe-font-ui); font-size:12px; color:var(--fe-muted); }
/* END SEALED REPORT BRIDGE */

/* Shared research anatomy is used by real pages and explanatory entry frames. */
.fe-research-context { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; margin:0 0 20px; padding:12px 0; border-bottom:1px solid var(--fe-line); font-family:var(--fe-font-ui); }
.fe-research-context__identity { min-width:0; display:grid; gap:4px; }
.fe-research-context__identity strong { color:var(--fe-ink); font-size:14px; overflow-wrap:anywhere; }
.fe-research-context__identity span { color:var(--fe-muted); font-size:12px; }
.fe-research-context__links { display:flex; flex-wrap:wrap; gap:4px 12px; }
.fe-research-context a { display:inline-flex; align-items:center; min-height:44px; color:var(--fe-secondary); font-size:13px; text-decoration:none; }
.fe-research-context a[aria-current] { color:var(--fe-interaction); text-decoration:underline; text-underline-offset:6px; }
.fe-research-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 24px; padding:20px; gap:20px; border:1px solid var(--fe-line); border-radius:var(--fe-radius-panel); background:var(--fe-surface); }
.fe-research-overview > * { min-width:0; margin:0; }
.fe-research-overview dt,.fe-research-summary__label { color:var(--fe-muted); font-size:12px; font-weight:600; margin:0 0 6px; }
.fe-research-overview dd { color:var(--fe-ink); font-size:16px; margin:0; font-weight:650; }
.fe-research-overview small { display:block; margin-top:4px; font-size:12px; color:var(--fe-muted); font-weight:400; }
.fe-research-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0; border:1px solid var(--fe-line); border-radius:var(--fe-radius-panel); background:var(--fe-surface); margin-bottom:24px; overflow:hidden; }
.fe-research-summary__cell { padding:24px; min-width:0; }
.fe-research-summary__cell + .fe-research-summary__cell { border-left:1px solid var(--fe-line); }
.fe-research-summary__value { color:var(--fe-ink); font-size:24px; font-weight:700; letter-spacing:-.02em; overflow-wrap:anywhere; }
.fe-research-summary__copy { margin:8px 0 0; color:var(--fe-secondary); font-size:14px; line-height:1.6; max-width:66ch; }
.fe-research-summary__evidence { grid-column:1 / -1; padding:20px 24px; border-top:1px solid var(--fe-line); }
.fe-bout-anchor { scroll-margin-top:100px; }
.fe-bout-anchor:target { outline:2px solid var(--fe-focus); outline-offset:4px; border-radius:var(--fe-radius-control); }
.fe-card-jump { margin:0 0 16px; }
.fe-card-jump summary { min-height:44px; padding:12px 0; color:var(--fe-secondary); cursor:pointer; font-size:14px; }
.fe-card-jump nav { display:flex; flex-wrap:wrap; gap:8px; padding:8px 0 16px; }
.fe-card-jump nav a { border:1px solid var(--fe-line); border-radius:var(--fe-radius-control); padding:12px; min-height:44px; font-size:13px; color:var(--fe-ink); }
.fe-workflow-overview { margin:20px 0; border:1px solid var(--fe-line); border-radius:var(--fe-radius-panel); background:var(--fe-surface); color:var(--fe-ink); text-align:left; font-family:var(--fe-font-ui); }
.fe-workflow-overview__heading { padding:20px; border-bottom:1px solid var(--fe-line); }
.fe-workflow-overview__heading strong { display:block; font-size:20px; }
.fe-workflow-overview__heading span { display:block; margin-top:6px; font-size:12px; color:var(--fe-muted); }
.fe-workflow-overview ol { padding:0 20px; margin:0; list-style:none; }
.fe-workflow-overview li { display:grid; grid-template-columns:28px minmax(0,1fr); gap:12px; padding:16px 0; border-bottom:1px solid var(--fe-line); }
.fe-workflow-overview li:last-child { border-bottom:0; }
.fe-workflow-overview li > span { color:var(--fe-muted); font-size:12px; padding-top:3px; }
.fe-workflow-overview li strong { display:block; font-size:14px; color:var(--fe-ink); }
.fe-workflow-overview li p { margin:4px 0 0; color:var(--fe-secondary); font-size:13px; line-height:1.5; }
.fe-workflow-overview__note { padding:12px 20px; margin:0; background:var(--fe-sunken); color:var(--fe-muted); font-size:12px; }
@media (min-width:851px) {
    body[data-fe-design-system] .fe-journey[data-fe-auth-scene] .fe-journey__layout { max-width:1180px; padding-top:40px; }
}
@media (max-width:480px) {
    .fe-research-overview { grid-template-columns:1fr; }
    .fe-research-overview > div { display:grid; grid-template-columns:84px minmax(0,1fr); gap:12px; }
    .fe-research-overview > div + div { border-top:1px solid var(--fe-line); padding-top:12px; }
}
@media (max-width:767px) {
    body[data-fe-design-system] .fe-journey { padding-left:16px; padding-right:16px; }
    body[data-fe-design-system] .fe-journey__layout { padding-top:24px; gap:24px; }
    body[data-fe-design-system] .fe-journey__panel { padding:20px; }
    body[data-fe-design-system] .fe-journey__story { padding-top:0; }
    body[data-fe-design-system] .landing-section { padding-top:32px; padding-bottom:32px; }
    .fe-research-context { align-items:flex-start; gap:8px; }
    .fe-research-context__links { width:100%; }
    .fe-research-overview { gap:12px; padding:16px; }
    .fe-research-overview dd { font-size:14px; }
    .fe-research-summary { grid-template-columns:1fr; }
    .fe-research-summary__cell { padding:20px; }
    .fe-research-summary__cell + .fe-research-summary__cell { border-left:0; border-top:1px solid var(--fe-line); }
    .fe-research-summary__evidence { padding:20px; }
}
@media (prefers-reduced-motion: reduce) {
    body[data-fe-design-system] :is(.btn,.landing-btn,.landing-nav__cta) { transition:none; }
}

/* Shared feedback stays above the phone navigation and follows theme tokens. */
body[data-fe-design-system] #fe-toast-stack { right:16px; width:min(360px,calc(100% - 32px)); bottom:calc(16px + var(--fe-bottom-nav-dock-reserve, 0px)); }
@media (forced-colors:none) {
    body[data-fe-design-system] .fe-toast { background:var(--fe-surface); border-color:var(--fe-line); border-left-color:var(--fe-interaction); border-radius:var(--fe-radius-panel); color:var(--fe-ink); font-family:var(--fe-font-ui); }
    body[data-fe-design-system] .fe-toast[data-type=error] { border-left-color:var(--fe-negative); }
    body[data-fe-design-system] .fe-toast[data-type=warning] { border-left-color:var(--fe-pending); }
    body[data-fe-design-system] .fe-toast[data-type=success] { border-left-color:var(--fe-positive); }
    body[data-fe-design-system] .fe-toast-title { color:var(--fe-ink); }
    body[data-fe-design-system] .fe-toast-message { color:var(--fe-secondary); }
    body[data-fe-design-system] .fe-toast-close { color:var(--fe-muted); }
}

/* Supplied September 2026 identity. The mint cut is part of the artwork;
   theme changes affect only the ink. Never animate or decorate the logo. */
:root { --fe-mint:#2FE3D0; }
body[data-fe-design-system] :is(.fe-logo,.fe-mark,.fe-brand-wordmark) {
    display:block; flex-shrink:0; color:var(--fe-ink,#EDF2F6);
    filter:none; transform:none; transition:none; overflow:visible;
}
body[data-fe-design-system] .fe-logo { width:169.2px; height:28px; }
body[data-fe-design-system] .fe-brand-compact-mark { display:none; }
body[data-fe-design-system] .fe-mark { width:28px; height:28px; }
body[data-fe-design-system] :is(.fe-wordmark,.landing-brand,.fe-journey__brand,.fe-footer-brand) {
    color:var(--fe-ink); display:inline-flex; align-items:center; gap:10px;
    padding:7px; min-height:44px; border-radius:4px; text-decoration:none;
}
body[data-fe-design-system] :is(.fe-wordmark,.landing-brand,.fe-journey__brand):hover :is(.fe-logo,.fe-mark) { transform:none; filter:none; }
body[data-fe-design-system] .sidebar-brand .fe-logo { width:145.02px; height:24px; }
body[data-fe-design-system] .sidebar-brand .fe-wordmark { padding:6px; gap:8px; }

/* Sidebar identity: one account link on the existing surface. */
html[data-theme] body[data-fe-design-system] .sidebar-brand--simple {
    padding:0 12px 16px;
    margin-bottom:16px;
    border-bottom:1px solid var(--fe-line);
}
body[data-fe-design-system] .sidebar-brand--simple .fe-wordmark {
    min-height:44px;
    padding:6px 8px;
    margin-bottom:8px;
    box-sizing:border-box;
}
body[data-fe-design-system] .fe-sidebar-identity {
    display:flex;
    align-items:center;
    gap:10px;
    min-height:56px;
    padding:8px;
    box-sizing:border-box;
    border:0;
    border-radius:var(--fe-radius-control);
    background:transparent;
    color:var(--fe-ink);
    text-decoration:none;
}
body[data-fe-design-system] .fe-sidebar-identity:hover {
    background:var(--fe-raised);
    color:var(--fe-ink);
}
body[data-fe-design-system] .sidebar-brand--simple :is(a,button):focus-visible {
    outline:2px solid var(--fe-focus);
    outline-offset:2px;
}
body[data-fe-design-system] .fe-sidebar-identity__avatar { display:flex; flex:0 0 32px; }
body[data-fe-design-system] .fe-sidebar-identity .fe-identity-avatar {
    --identity-size:32px;
    background:var(--fe-sunken);
    border-color:var(--fe-line);
    box-shadow:none;
    color:var(--fe-ink);
    text-shadow:none;
}
body[data-fe-design-system] .fe-sidebar-identity .fe-identity-avatar::before,
body[data-fe-design-system] .fe-sidebar-identity .fe-identity-avatar::after { display:none; }
body[data-fe-design-system] .fe-sidebar-identity__copy { display:grid; gap:2px; min-width:0; }
body[data-fe-design-system] .fe-sidebar-identity__name {
    color:var(--fe-ink);
    font:650 14px/1.4 var(--fe-font-ui);
    overflow-wrap:anywhere;
}
body[data-fe-design-system] .fe-sidebar-identity__handle {
    color:var(--fe-secondary);
    font:400 12px/1.5 var(--fe-font-ui);
    overflow-wrap:anywhere;
}
body[data-fe-design-system] .sidebar-brand--simple .fe-sidebar-signout {
    display:flex;
    margin:0 0 0 42px;
}
body[data-fe-design-system] .sidebar-brand--simple .fe-sidebar-signout__button {
    display:inline-flex;
    align-items:center;
    min-width:44px;
    min-height:44px;
    padding:8px;
    border:0;
    border-radius:var(--fe-radius-control);
    background:transparent;
    box-shadow:none;
    color:var(--fe-secondary);
    font:500 12px/1.5 var(--fe-font-ui);
    cursor:pointer;
}
body[data-fe-design-system] .sidebar-brand--simple .fe-sidebar-signout__button:hover {
    background:var(--fe-raised);
    color:var(--fe-ink);
}
body[data-fe-design-system] .fe-account-about {
    margin:24px 0 12px;
    color:var(--fe-secondary);
    font:500 12px/1.6 var(--fe-font-ui);
}
body[data-fe-design-system] .fe-account-about span { display:block; font-weight:400; }
body[data-fe-design-system] .dashboard-pack-brand { display:grid; place-items:center; width:54px; height:68px; border-radius:9px; background:var(--fe-sunken); border:1px solid var(--fe-line); box-shadow:none; transform:none; }
body[data-fe-design-system] .dashboard-pack-brand .fe-mark { width:32px; height:32px; transform:none; filter:none; }
body[data-fe-design-system] .landing-footer .fe-footer-brand { width:max-content; margin-bottom:8px; }
body[data-fe-design-system] .fe-logo-mono .fe-logo__cut { display:none; }
body[data-fe-design-system] .fe-stage-loader__mark { width:28px; height:28px; flex-shrink:0; }
body[data-fe-design-system] .fe-stage-loader { background:var(--fe-surface); border-color:var(--fe-line); box-shadow:var(--fe-shadow-panel); }
body[data-fe-design-system] .fe-auth-transition {
    --fe-transition-accent:#2FE3D0;
    background:var(--fe-canvas,#0B1015); backdrop-filter:none;
}
body[data-fe-design-system] .fe-auth-transition__scene,
body[data-fe-design-system] .fe-auth-transition__orbit,
body[data-fe-design-system] .fe-auth-transition__signals { display:none; }
body[data-fe-design-system] .fe-auth-transition__panel {
    background:var(--fe-surface); border:1px solid var(--fe-line);
    border-radius:var(--fe-radius-panel); box-shadow:none;
    max-width:480px; padding:28px; color:var(--fe-ink);
    max-height:calc(100dvh - 48px); overflow-y:auto;
}
body[data-fe-design-system] .fe-auth-transition__panel::before,
body[data-fe-design-system] .fe-auth-transition__panel::after,
body[data-fe-design-system] .fe-auth-transition__aperture::before { content:none; }
body[data-fe-design-system] .fe-auth-transition__brand { flex-wrap:wrap; gap:14px; justify-content:space-between; }
body[data-fe-design-system] .fe-auth-transition__brand .fe-logo { width:145.02px; height:24px; }
body[data-fe-design-system] :is(.fe-auth-transition__brand-mark,.fe-auth-transition__mark) { filter:none; transform:none; }
body[data-fe-design-system] .fe-auth-transition__brand-state { color:var(--fe-muted); font-size:10px; letter-spacing:.06em; margin-left:0; }
body[data-fe-design-system] .fe-auth-transition__aperture { width:150px; height:150px; margin-top:24px; flex-shrink:0; }
body[data-fe-design-system] .fe-auth-transition__mark,
body[data-fe-design-system] .fe-auth-transition__mark .fe-mark { width:100px; height:100px; }
body[data-fe-design-system] .fe-auth-transition__title { color:var(--fe-ink); font-family:var(--fe-font-ui); font-size:26px; line-height:1.2; }
body[data-fe-design-system] :is(.fe-auth-transition__detail,.fe-auth-transition__actions) { color:var(--fe-secondary); }
body[data-fe-design-system] :is(.fe-auth-transition__eyebrow,.fe-auth-transition__meta) { color:var(--fe-muted); }
body[data-fe-design-system] .fe-auth-transition__meta { font-size:12px; letter-spacing:0; text-transform:none; }
body[data-fe-design-system] .fe-auth-transition__rail { background:var(--fe-line); box-shadow:none; height:3px; }
body[data-fe-design-system] .fe-auth-transition__rail span { background:var(--fe-interaction); box-shadow:none; }
body[data-fe-design-system] .fe-auth-transition__actions button { color:var(--fe-ink); border-color:var(--fe-control-line); background:var(--fe-raised); min-height:44px; }
/* The standalone cold-launch canvas deliberately matches the native icon tile. */
html.fe-pwa-launching body[data-fe-design-system] .fe-pwa-splash :is(.fe-mark,.fe-brand-wordmark) { color:#EDF2F6; }
html.fe-pwa-launching body[data-fe-design-system] .fe-pwa-splash__mark-wrap .fe-mark { width:112px; height:112px; }
@media (max-width:600px) {
    body[data-fe-design-system] :is(.landing-brand,.mobile-header,.fe-journey__brand) .fe-logo { width:145.02px; height:24px; }
    body[data-fe-design-system] .fe-auth-transition__panel { padding:22px; }
}
@media (max-width:380px) {
    body[data-fe-design-system] .landing-brand > .fe-logo { display:none; }
    body[data-fe-design-system] .landing-brand > .fe-brand-compact-mark { display:block; }
    body[data-fe-design-system] .landing-nav nav a { white-space:nowrap; }
}
@media (forced-colors:active) {
    body[data-fe-design-system] :is(.fe-logo,.fe-mark,.fe-brand-wordmark) { color:CanvasText; }
    body[data-fe-design-system] .fe-logo__cut { fill:CanvasText; }
    body[data-fe-design-system] .fe-auth-transition,
    body[data-fe-design-system] .fe-auth-transition__panel { background:Canvas; color:CanvasText; border-color:CanvasText; }
    body[data-fe-design-system] .fe-auth-transition__rail span { background:Highlight; }
    html.fe-pwa-launching body[data-fe-design-system] .fe-pwa-splash :is(.fe-mark,.fe-brand-wordmark) { color:CanvasText; }
}

/* Mobile reading pass: prose has room to breathe; numeric tables retain their density. */
@media (max-width:768px) {
    html[data-theme] body[data-fe-design-system] :is(
        .fe-c-page-header__subtitle,.fe-c-panel__subtitle,.fe-research-summary__copy,
        .fe-research-caution,.fe-workflow-overview li p
    ) { font-size:16px; line-height:1.6; }
    html[data-theme] body[data-fe-design-system] .fe-workflow-overview__note {
        font-size:14px; line-height:1.5;
    }
    html[data-theme] body[data-fe-design-system] .fe-proof-reliability p.fe-c-muted,
    html[data-theme] body[data-fe-design-system] .fe-public-page .fe-trust-band__copy p {
        font-size:16px; line-height:1.6;
    }

}

/* Overlay geometry only. Document scrolling and zoom retain browser defaults.
   The shell supplies visual viewport pixels when available; dvh is the fallback. */
body[data-fe-design-system] .fe-cmdk-backdrop {
    top:var(--fe-overlay-top,0px); bottom:auto;
    height:100vh; height:var(--fe-overlay-height,100dvh);
    box-sizing:border-box; overflow-y:auto;
    padding:clamp(16px,8vh,80px) max(12px,env(safe-area-inset-right,0px))
        max(12px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
}
body[data-fe-design-system] .fe-cmdk { max-height:100%; min-height:0; }
html[data-theme] body[data-fe-design-system] .fe-cmdk .fe-cmdk__input {
    padding-left:48px; padding-right:72px;
}
html[data-theme] body[data-fe-design-system] .fe-cmdk .fe-cmdk__hint {
    min-width:52px; min-height:44px; right:8px; padding:8px;
    font:500 12px/1.4 var(--fe-font-ui); letter-spacing:normal; text-transform:none;
    cursor:pointer; pointer-events:auto; color:var(--fe-secondary); background:var(--fe-sunken);
    border:1px solid var(--fe-control-line);
}
body[data-fe-design-system] .fe-cmdk__list { min-height:0; overscroll-behavior:contain; }
body[data-fe-design-system] :is(.fe-cmdk__searchwrap,.fe-cmdk__footer) { flex-shrink:0; }
body[data-fe-design-system] .fe-auth-transition {
    top:var(--fe-overlay-top,0px); bottom:auto;
    height:100vh; height:var(--fe-overlay-height,100dvh);
    box-sizing:border-box;
}
body[data-fe-design-system] .fe-auth-transition__panel {
    max-height:calc(100vh - 48px);
    max-height:calc(var(--fe-overlay-height,100dvh) - 48px);
    overscroll-behavior:contain;
}
@media (max-width:768px) {
    body[data-fe-design-system] .fe-cmdk-backdrop {
        padding-top:max(12px,env(safe-area-inset-top,0px));
    }
}

/* r1329: one push control for this device (settings + onboarding alerts step). */
.fe-push-device { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:16px 0; padding:14px 16px; border:1px solid var(--fe-line); border-radius:12px; background:var(--fe-sunken); }
.fe-push-device__copy { display:grid; gap:2px; min-width:0; flex:1 1 220px; }
.fe-push-device__title { margin:0; color:var(--fe-ink); font:650 15px/1.4 var(--fe-font-ui); }
.fe-push-device__status { margin:0; color:var(--fe-secondary); font:400 14px/1.5 var(--fe-font-ui); }
.fe-push-device[data-push-state="on"] .fe-push-device__status { color:var(--fe-ink); }
html[data-theme] body[data-fe-design-system] .fe-push-device__toggle { min-height:44px; border-radius:12px; font:700 14px/1.2 var(--fe-font-ui); }
html[data-theme] body[data-fe-design-system] .fe-push-device .fe-push-device__toggle[hidden] { display:none; }
.fe-push-device [data-push-test-status] { flex-basis:100%; margin:0; color:var(--fe-secondary); font:400 14px/1.5 var(--fe-font-ui); }
.fe-push-device [data-push-test-status]:empty { display:none; }
html[data-theme] body[data-fe-design-system] .fe-push-device [data-push-test][hidden] { display:none; }
.fe-notify-section-title { margin:24px 0 4px; color:var(--fe-ink); font:700 16px/1.35 var(--fe-font-ui); }
.fe-notify-section-lede { margin:0 0 12px; color:var(--fe-secondary); font:400 14px/1.5 var(--fe-font-ui); }
.fe-notify-choice { display:flex; gap:12px; align-items:flex-start; min-height:44px; margin:0 0 10px; padding:12px 14px; border:1px solid var(--fe-line); border-radius:12px; background:var(--fe-sunken); cursor:pointer; }
.fe-notify-choice input { width:20px; height:20px; margin:2px 0 0; flex:0 0 20px; accent-color:var(--fe-interaction); }
.fe-notify-choice > span { display:grid; gap:2px; }
.fe-notify-choice__title { color:var(--fe-ink); font:650 14px/1.4 var(--fe-font-ui); }
.fe-notify-choice__meta { color:var(--fe-secondary); font:400 13px/1.5 var(--fe-font-ui); }
