/* Friday Console shell (chat 82, 25 Nov 2026): ONE look for every Console page.
   - design tokens (--f-*): colours, type, spacing, radius, shadow; light + dark (html[data-theme])
   - the navigation: left sidebar on laptops, bottom bar + sheets on phones (built by shell.js from one map)
   - a thin "bridge" that maps each page's own variables (--bg --fg --card --acc ...) onto the tokens, so pages owned by
     other chats take the look without their code changing (html.f-page = a page that isn't the main Console)
   - shared states: cards, buttons, pills, empty / loading / error, tables that turn into cards on a phone
   Daur's feel: warm ivory paper by day, deep espresso by night, rust accent (SS27 rust linen), serif headings. */

:root {
  color-scheme: light;
  --f-bg: #f6f2ec;
  --f-bg-2: #efe8de;
  --f-surface: #fffdfa;
  --f-surface-2: #f3ede4;
  --f-line: #e6ddd0;
  --f-line-2: #d5c8b6;
  --f-ink: #221c17;
  --f-ink-2: #574c42;
  --f-muted: #7a6e62;
  --f-accent: #9a4a2c;
  --f-accent-2: #3d6474;
  --f-accent-ink: #ffffff;
  --f-accent-soft: #f5e6dc;
  --f-gold: #a27b3f;
  --f-good: #3d7650; --f-good-soft: #e4efe6;
  --f-bad: #a83e2c;  --f-bad-soft: #f7e2dc;
  --f-warn: #94600f; --f-warn-soft: #f7ebd4;
  --f-info: #3c6378;
  --f-shadow-1: 0 1px 2px rgba(48, 32, 16, .05), 0 1px 1px rgba(48, 32, 16, .03);
  --f-shadow-2: 0 2px 6px rgba(48, 32, 16, .05), 0 14px 36px rgba(48, 32, 16, .09);
  --f-focus: 0 0 0 3px color-mix(in srgb, var(--f-accent) 28%, transparent);
  --f-radius-sm: 10px; --f-radius: 14px; --f-radius-lg: 20px;
  --f-1: 4px; --f-2: 8px; --f-3: 12px; --f-4: 16px; --f-5: 24px; --f-6: 32px; --f-7: 48px;
  --f-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-rail: 248px;
  --f-bnav: 64px;
  --f-safe-b: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --f-bg: #13110f;
  --f-bg-2: #0e0c0b;
  --f-surface: #1c1916;
  --f-surface-2: #26221d;
  --f-line: #322c26;
  --f-line-2: #473e35;
  --f-ink: #f2ece3;
  --f-ink-2: #c9beb1;
  --f-muted: #9a8e81;
  --f-accent: #e3916a;
  --f-accent-2: #8fbccd;
  --f-accent-ink: #1d0f08;
  --f-accent-soft: #3a251a;
  --f-gold: #d5b074;
  --f-good: #7cc796; --f-good-soft: #1c2c21;
  --f-bad: #ee8f78;  --f-bad-soft: #3b201a;
  --f-warn: #e6b35f; --f-warn-soft: #33281a;
  --f-info: #8fbccd;
  --f-shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --f-shadow-2: 0 2px 8px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .35);
}

/* ------------------------------------------------------------------ base */
html.f-shell { -webkit-text-size-adjust: 100%; }
html.f-shell body { font-family: var(--f-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.f-shell :focus-visible { outline: none; box-shadow: var(--f-focus); border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html.f-shell * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------ sidebar (laptop) */
.f-rail {
  position: fixed; inset: 0 auto 0 0; width: var(--f-rail); z-index: 30;
  display: flex; flex-direction: column; gap: 2px; padding: 18px 12px 12px;
  background: var(--f-bg-2); border-right: 1px solid var(--f-line); color: var(--f-ink);
  font: 14px/1.35 var(--f-font); overflow: hidden;
}
.f-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 14px; text-decoration: none; color: var(--f-ink); }
.f-brand-face { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; background: #000;
  box-shadow: 0 0 0 1px var(--f-line-2), 0 4px 14px rgba(0, 0, 0, .18); }
.f-brand-face img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.75); display: block; filter: brightness(1.15) contrast(1.1); }
.f-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.f-brand-text b { font: 600 13px/1 var(--f-font); letter-spacing: .34em; }
.f-brand-text small { font: 500 17px/1.1 var(--f-display); font-style: italic; color: var(--f-ink-2); margin-top: 4px; letter-spacing: .01em; }

.f-talk { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; padding: 9px 12px; border-radius: 999px;
  border: 1px solid var(--f-line-2); background: var(--f-surface); color: var(--f-ink); text-decoration: none; cursor: pointer;
  font: 600 13.5px var(--f-font); box-shadow: var(--f-shadow-1); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.f-talk:hover { border-color: var(--f-accent); box-shadow: var(--f-shadow-2); }
.f-talk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--f-accent); box-shadow: 0 0 0 4px var(--f-accent-soft); flex: none; }
.f-talk kbd { margin-left: auto; font: 500 11px var(--f-font); color: var(--f-muted); }

.f-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -4px; padding: 0 4px 8px; scrollbar-width: thin; }
.f-item, .f-gh {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 6px 10px; border-radius: 10px;
  color: var(--f-ink-2); text-decoration: none; border: 0; background: none; font: 500 14px/1.25 var(--f-font); text-align: left; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.f-item:hover, .f-gh:hover { background: color-mix(in srgb, var(--f-ink) 6%, transparent); color: var(--f-ink); }
.f-item svg, .f-gh svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.f-item[aria-current="page"] { background: var(--f-surface); color: var(--f-ink); font-weight: 600; box-shadow: var(--f-shadow-1), inset 0 0 0 1px var(--f-line); }
.f-item[aria-current="page"] svg { color: var(--f-accent); opacity: 1; }
.f-item .f-badge { margin-left: auto; }
.f-group { margin-top: 6px; }
.f-gh { min-height: 30px; font: 600 11px/1 var(--f-font); letter-spacing: .14em; text-transform: uppercase; color: var(--f-muted); padding: 8px 10px; }
.f-gh .f-chev { margin-left: auto; width: 14px; height: 14px; transition: transform .18s ease; opacity: .7; }
.f-group[data-open="true"] .f-gh .f-chev { transform: rotate(90deg); }
.f-group-items { display: none; padding: 2px 0 4px; }
.f-group[data-open="true"] .f-group-items { display: block; }
.f-gh.f-has-current { color: var(--f-accent); }

.f-foot { border-top: 1px solid var(--f-line); padding-top: 10px; margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.f-foot .right { display: flex; flex-wrap: wrap; gap: 6px; }
.f-foot .right:empty { display: none; }
.f-user { display: flex; align-items: center; gap: 9px; padding: 2px 4px; min-width: 0; }
.f-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--f-accent-soft); color: var(--f-accent); font: 600 13px var(--f-font); }
.f-user-name { flex: 1; min-width: 0; font: 500 13px/1.2 var(--f-font); color: var(--f-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-user-name small { display: block; color: var(--f-muted); font-size: 11.5px; font-weight: 400; }
.f-iconbtn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--f-line);
  background: var(--f-surface); color: var(--f-ink-2); cursor: pointer; flex: none; padding: 0; transition: border-color .15s ease, color .15s ease; }
.f-iconbtn:hover { border-color: var(--f-line-2); color: var(--f-ink); }
.f-iconbtn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.f-tools:empty { display: none; }

/* page offset: html padding moves every page's own centred layout clear of the sidebar */
@media (min-width: 900px) {
  html.f-shell { padding-left: var(--f-rail); }
  .f-bnav, .f-sheet, .f-scrim { display: none !important; }
}

/* ------------------------------------------------------------------ phone: bottom bar + sheets */
.f-bnav { display: none; }
@media (max-width: 899.98px) {
  .f-rail { display: none; }
  html.f-shell { padding-bottom: calc(var(--f-bnav) + var(--f-safe-b)); }
  .f-bnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--f-bnav) + var(--f-safe-b)); padding: 0 6px var(--f-safe-b);
    background: color-mix(in srgb, var(--f-surface) 92%, transparent); border-top: 1px solid var(--f-line);
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  }
  .f-bn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none;
    color: var(--f-muted); font: 500 11px/1 var(--f-font); text-decoration: none; cursor: pointer; padding: 6px 0; min-width: 0;
    -webkit-tap-highlight-color: transparent; }
  .f-bn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .f-bn[aria-current="page"], .f-bn[aria-expanded="true"] { color: var(--f-accent); }
  .f-bn[aria-current="page"] span, .f-bn[aria-expanded="true"] span { font-weight: 600; }
  .f-bn-face { position: relative; }
  .f-bn-face .f-facebtn { width: 56px; height: 56px; margin-top: -22px; border-radius: 50%; overflow: hidden; background: #000; display: block;
    box-shadow: 0 0 0 3px var(--f-surface), 0 6px 18px rgba(0, 0, 0, .28); }
  .f-bn-face .f-facebtn img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.75); display: block; filter: brightness(1.15) contrast(1.1); }
  .f-scrim { position: fixed; inset: 0; z-index: 33; background: rgba(20, 14, 9, .32); }
  :root[data-theme="dark"] .f-scrim { background: rgba(0, 0, 0, .55); }
  .f-sheet {
    position: fixed; left: 0; right: 0; bottom: calc(var(--f-bnav) + var(--f-safe-b)); z-index: 34;
    max-height: calc(100dvh - var(--f-bnav) - 48px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--f-surface); border-top: 1px solid var(--f-line); border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(20, 14, 9, .18); padding: 10px 14px 56px; animation: fsheet .18s ease-out;
  }
  .f-sheet::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--f-line-2); margin: 0 auto 8px; }
  .f-sheet h3 { margin: 12px 4px 4px; font: 600 11px/1 var(--f-font); letter-spacing: .14em; text-transform: uppercase; color: var(--f-muted); }
  .f-sheet h3:first-of-type { margin-top: 4px; }
  .f-sheet .f-sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .f-sheet .f-item { min-height: 46px; background: var(--f-bg); border: 1px solid var(--f-line); border-radius: 12px; font-size: 14px; color: var(--f-ink); }
  .f-sheet .f-item[aria-current="page"] { border-color: var(--f-accent); }
  .f-sheet .f-sheet-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--f-line); flex-wrap: wrap; }
  .f-sheet .f-sheet-foot .f-user { flex: 1 1 160px; }
}
@keyframes fsheet { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* the desktop face button on pages that aren't the main Console (the main Console has its own live #mic) */
.f-fab { position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 29; width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--f-line-2), 0 10px 30px rgba(0, 0, 0, .25); display: block; transition: transform .15s ease; }
.f-fab:hover { transform: scale(1.05); }
.f-fab img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.75); display: block; filter: brightness(1.15) contrast(1.1); }
.f-fab .f-fab-tip { position: absolute; right: 74px; bottom: 18px; white-space: nowrap; }
@media (max-width: 899.98px) { .f-fab { display: none; } }

/* ------------------------------------------------------------------ shared components */
.f-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--f-accent); color: var(--f-accent-ink); font: 600 11px/1 var(--f-font); }
.f-badge.soft { background: var(--f-accent-soft); color: var(--f-accent); }
.f-eyebrow { font: 600 11px/1.2 var(--f-font); letter-spacing: .16em; text-transform: uppercase; color: var(--f-accent); }
.f-title { font: 600 clamp(28px, 3.2vw, 38px)/1.08 var(--f-display); letter-spacing: -.005em; margin: 6px 0 6px; color: var(--f-ink); }
.f-sub { color: var(--f-ink-2); font-size: 14.5px; margin: 0; max-width: 70ch; }
.f-card { background: var(--f-surface); border: 1px solid var(--f-line); border-radius: var(--f-radius); box-shadow: var(--f-shadow-1); }
.f-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--f-line-2);
  background: var(--f-surface); color: var(--f-ink); font: 500 14px var(--f-font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.f-btn:hover { border-color: var(--f-ink-2); }
.f-btn.pri { background: var(--f-ink); border-color: var(--f-ink); color: var(--f-bg); }
.f-btn.pri:hover { background: color-mix(in srgb, var(--f-ink) 86%, var(--f-accent)); }
.f-btn.acc { background: var(--f-accent); border-color: var(--f-accent); color: var(--f-accent-ink); }
.f-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font: 500 12px/1.5 var(--f-font);
  background: var(--f-surface-2); color: var(--f-ink-2); border: 1px solid var(--f-line); white-space: nowrap; }
.f-pill.good { background: var(--f-good-soft); color: var(--f-good); border-color: transparent; }
.f-pill.bad { background: var(--f-bad-soft); color: var(--f-bad); border-color: transparent; }
.f-pill.warn { background: var(--f-warn-soft); color: var(--f-warn); border-color: transparent; }
.f-pill.acc { background: var(--f-accent-soft); color: var(--f-accent); border-color: transparent; }
.f-empty { padding: 28px 16px; text-align: center; color: var(--f-muted); font-size: 14px; }
.f-error { padding: 14px 16px; border-radius: var(--f-radius-sm); background: var(--f-bad-soft); color: var(--f-bad); font-size: 13.5px; }
.f-skel { border-radius: 8px; min-height: 14px; background: linear-gradient(100deg, var(--f-surface-2) 30%, color-mix(in srgb, var(--f-line) 70%, var(--f-surface)) 50%, var(--f-surface-2) 70%);
  background-size: 300% 100%; animation: fshine 1.3s ease-in-out infinite; }
@keyframes fshine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.f-tip { position: absolute; background: var(--f-ink); color: var(--f-bg); font: 500 12px var(--f-font); padding: 5px 9px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.f-fab:hover .f-tip { opacity: 1; }

/* ------------------------------------------------------------------ bridge: pages owned by other chats
   Their own variables -> the shared tokens. Specificity (html.f-page) beats their :root, light or dark. */
html.f-page {
  --bg: var(--f-bg); --fg: var(--f-ink); --mut: var(--f-muted); --card: var(--f-surface); --line: var(--f-line);
  --acc: var(--f-accent); --ok: var(--f-good); --bad: var(--f-bad); --warn: var(--f-warn); --info: var(--f-info); --chip: var(--f-surface-2);
  --paper: var(--f-surface); --ink: var(--f-ink); --acc2: var(--f-accent);                 /* demo shop + Daur Mail */
  --text: var(--f-ink); --muted: var(--f-muted); --accent: var(--f-accent); --border: var(--f-line);   /* team logins, blind test */
  background: var(--f-bg);
}
html.f-page body { background: var(--f-bg); color: var(--f-ink); font-family: var(--f-font); font-size: 15px; line-height: 1.55; }
html.f-page body a:not([class*="f-"]) { color: var(--f-accent); text-underline-offset: 2px; }
html.f-page body h1 { font: 600 clamp(28px, 3.2vw, 38px)/1.1 var(--f-display); letter-spacing: -.005em; margin: 10px 0 8px; color: var(--f-ink); }
html.f-page body h2 { font-family: var(--f-font); font-weight: 600; letter-spacing: -.01em; color: var(--f-ink); }
html.f-page body h3:not(.f-sheet h3) { font-family: var(--f-font); font-weight: 600; color: var(--f-ink); }
html.f-page body .m { color: var(--f-muted); }
html.f-page body p.m, html.f-page body div.m { line-height: 1.55; }
/* the pages' centred wrappers get room to breathe */
html.f-page body > .wrap, html.f-page body > .w, html.f-page body > main { padding-top: 28px; padding-bottom: 40px; }
html.f-page body:not(:has(> .wrap, > .w, > main)) { padding: 28px 24px 40px !important; margin: 0 auto !important; }
/* buttons */
html.f-page body button { font-family: var(--f-font); transition: border-color .15s ease, background .15s ease, color .15s ease; }
html.f-page body button:not(.f-iconbtn):not(.f-btn):not(.f-bn):not(.f-gh):not(.f-item) { border-radius: 999px; border-color: var(--f-line-2); }
html.f-page body button:not(.f-iconbtn):not(.f-btn):not(.f-bn):not(.f-gh):not(.f-item):hover { border-color: var(--f-ink-2); }
html.f-page body button.on, html.f-page body button.pri, html.f-page body .btn, html.f-page body .on:is(button, a) {
  background: var(--f-ink) !important; border-color: var(--f-ink) !important; color: var(--f-bg) !important; font-weight: 600; }
html.f-page body .btn2 { border-radius: 999px; background: var(--f-surface); border-color: var(--f-line-2); }
html.f-page body button.danger { color: var(--f-bad); border-color: color-mix(in srgb, var(--f-bad) 50%, transparent); }
/* tabs = a calm segmented row */
html.f-page body .tabs, html.f-page body > .wrap > nav { gap: 6px; }
html.f-page body .tabs button, html.f-page body > .wrap > nav button { background: transparent; border: 1px solid var(--f-line-2); color: var(--f-ink-2); padding: 7px 15px; font-weight: 500; }
/* cards + boxes */
html.f-page body .c, html.f-page body .box, html.f-page body .kpi, html.f-page body .card {
  background: var(--f-surface); border: 1px solid var(--f-line); border-radius: var(--f-radius); box-shadow: var(--f-shadow-1); }
html.f-page body .c, html.f-page body .box { padding: 14px 16px; }
html.f-page body .kpi b { font-family: var(--f-display); font-weight: 600; font-size: 30px; line-height: 1.05; }
/* fields */
html.f-page body input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), html.f-page body select, html.f-page body textarea {
  background: var(--f-surface); border: 1px solid var(--f-line-2); border-radius: var(--f-radius-sm); color: var(--f-ink); font-family: var(--f-font); }
html.f-page body input:focus, html.f-page body select:focus, html.f-page body textarea:focus { outline: none; border-color: var(--f-accent); box-shadow: var(--f-focus); }
html.f-page body input[type=checkbox], html.f-page body input[type=radio] { accent-color: var(--f-accent); }
/* pills / tags */
html.f-page body .tag, html.f-page body .pill { border-radius: 999px; }
/* tables */
html.f-page body table { border-collapse: collapse; }
html.f-page body th { color: var(--f-muted); font-weight: 500; font-size: 12.5px; }
/* their toasts sit above the phone bar */
@media (max-width: 899.98px) { html.f-page body #toast { bottom: calc(var(--f-bnav) + var(--f-safe-b) + 14px) !important; } }
/* their own "Back to Friday" / top links are replaced by the sidebar */
html.f-page body .f-back-hidden { display: none !important; }

/* ------------------------------------------------------------------ tables -> cards on a phone (shell.js labels the cells) */
@media (max-width: 640px) {
  html.f-shell table.f-cardify, html.f-shell table.f-cardify > tbody, html.f-shell table.f-cardify > tbody > tr,
  html.f-shell table.f-cardify > tbody > tr > td { display: block; width: auto; }
  html.f-shell table.f-cardify > thead, html.f-shell table.f-cardify > tbody > tr:has(> th) { display: none; }
  html.f-shell table.f-cardify > tbody > tr { display: flex; flex-direction: column; background: var(--f-surface); border: 1px solid var(--f-line);
    border-radius: 12px; margin: 0 0 8px; padding: 8px 12px; }
  html.f-shell table.f-cardify > tbody > tr > td { display: block; padding: 4px 0 !important; overflow: hidden;
    border: 0 !important; white-space: normal !important; text-align: right !important; min-width: 0 !important; max-width: none !important; overflow-wrap: anywhere; }
  html.f-shell table.f-cardify > tbody > tr > td::before { content: attr(data-label); float: left; margin-right: 12px; max-width: 45%; text-align: left; color: var(--f-muted); font-size: 12px; font-weight: 500; }
  html.f-shell table.f-cardify > tbody > tr > td.f-tcell { order: -1; font-weight: 600; text-align: left !important; font-size: 14.5px; color: var(--f-ink); }
  html.f-shell table.f-cardify > tbody > tr > td.f-tcell .m, html.f-shell table.f-cardify > tbody > tr > td.f-tcell small { font-weight: 400; }
  html.f-shell table.f-cardify > tbody > tr > td.f-tcell::before { display: none; }
  html.f-shell table.f-cardify > tbody > tr > td[data-label=""]::before { display: none; }
  html.f-shell table.f-cardify > tbody > tr > td:empty { display: none; }
  /* anything still too wide scrolls inside itself, never the page */
  html.f-shell table:not(.f-cardify) { display: block; max-width: 100%; overflow-x: auto; }
  html.f-shell pre, html.f-shell iframe { max-width: 100%; }
  html.f-shell img, html.f-shell video { max-width: 100%; }
}

/* admin-only pages (Team logins) show for the shared admin login only */
.f-item[data-admin] { display: none !important; }
html.f-admin .f-item[data-admin] { display: flex !important; }

/* long selects / header rows in other pages never push past a phone's width */
html.f-page body select { max-width: 100%; }
@media (max-width: 640px) { html.f-page body header > *, html.f-page body .row > * { min-width: 0; max-width: 100%; } }

/* the navigation never inherits a page's own box model / button margins (some pages don't use border-box) */
.f-rail, .f-rail *, .f-bnav, .f-bnav *, .f-sheet, .f-sheet *, .f-scrim { box-sizing: border-box; }
html.f-shell :is(.f-rail, .f-bnav, .f-sheet) :is(button, a, select) { margin: 0; }
/* the "More" sheet starts with who you are + the switches, so they never hide under the bar */
@media (max-width: 899.98px) {
  .f-sheet .f-sheet-top { margin: 0 0 6px; padding: 0 0 12px; border-top: 0; border-bottom: 1px solid var(--f-line); }
  /* demo shop: two products per row on a phone, like a fashion store */
  html.f-p-shop body .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
/* "What Friday knows about me": headings in sentence case like every other page */
html.f-p-me body .k { text-transform: none; }

/* pages that style every <nav> / <header> (demo shop, Daur Mail) never move or squeeze the navigation */
html.f-shell .f-rail, html.f-shell .f-bnav, html.f-shell .f-sheet { margin: 0; }
html.f-shell .f-rail { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; border-bottom: 0; }
@media (max-width: 899.98px) { html.f-shell .f-bnav { flex-wrap: nowrap; gap: 0; } }

/* one header style everywhere: an eyebrow with the area (added by shell.js) over a serif title; Daur Mail / shop's
   letter-spaced brand line becomes that title */
.f-auto-eyebrow { display: block; margin: 0 0 2px; }
html.f-p-mail body .brand, html.f-p-shop body .brand { font: 600 clamp(28px, 3.2vw, 38px)/1.1 var(--f-display) !important; letter-spacing: -.005em !important;
  color: var(--f-ink) !important; text-transform: none; }
html.f-p-mail body .brand small, html.f-p-shop body .brand small { font: 400 13px var(--f-font) !important; letter-spacing: 0 !important; color: var(--f-muted) !important; }
html.f-p-mail body > .wrap > header, html.f-p-shop body > .wrap > header { border-bottom: 0; align-items: flex-end; }
/* numbers read as numbers (the serif's old-style zero looked like "()") */
html.f-page body .kpi b { font-family: var(--f-font) !important; font-weight: 600; font-size: 26px; letter-spacing: -.02em; }

/* one left edge on a laptop: every page's content starts the same distance from the sidebar */
@media (min-width: 900px) {
  html.f-page body > .wrap, html.f-page body > .w, html.f-page body > main { margin-left: 0 !important; margin-right: auto !important; padding-left: 48px !important; padding-right: 32px !important; box-sizing: content-box; }
  html.f-page body:not(:has(> .wrap, > .w, > main)) { margin-left: 0 !important; padding-left: 48px !important; }
}
/* phone: form rows stack full width */
@media (max-width: 640px) { html.f-page body .row > input, html.f-page body .row > select, html.f-page body .row > textarea { flex: 1 1 100% !important; } }
@media (max-width: 899.98px) {
  .f-sheet .f-sheet-out { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--f-line); }
  .f-sheet .f-sheet-out .f-btn { width: 100%; justify-content: center; color: var(--f-ink-2); }
}
@media (max-width: 640px) { html.f-page body:not(:has(> .wrap, > .w, > main)) { padding: 20px 16px 32px !important; } }
html.f-p-mail body .brand small, html.f-p-shop body .brand small { display: block; margin: 6px 0 0 !important; }
.f-tools[hidden] { display: none !important; }

/* ------------------------------------------------------------------ voice on every page (30 Nov): Friday's face + the voice panel
   The main Console styles these in app.css; pages of their own get the same here. The voice panel uses the Console's
   older token names, scoped to it so a page's own --text / --accent never change. */
html.f-page .mic { position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; width: 64px; height: 64px;
  border-radius: 50%; padding: 0; border: 1px solid var(--f-line-2); background: #000; overflow: hidden; display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--f-line-2), 0 10px 30px rgba(0, 0, 0, .25); cursor: pointer; margin: 0; transition: transform .12s ease, box-shadow .12s ease; }
html.f-page .mic > * { grid-area: 1 / 1; }
html.f-page .mic-face { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.75); pointer-events: none; user-select: none;
  filter: brightness(1.15) contrast(1.1); transition: transform .15s ease, filter .15s ease; }
html.f-page .mic.speaking .mic-face { transform: scale(calc(1.75 + var(--lvl, 0) * .25 + .08)); filter: brightness(1.6) contrast(1.15) drop-shadow(0 0 6px #fff); }
html.f-page .mic.speaking, html.f-page .mic.live { box-shadow: 0 0 0 2px rgba(255, 255, 255, .45), 0 0 28px rgba(255, 255, 255, .35); }
html.f-page .mic:hover { transform: scale(1.05); }
@media (max-width: 899.98px) {
  html.f-page .mic { right: auto; left: 50%; bottom: calc(var(--f-safe-b) + 18px); width: 56px; height: 56px; margin-left: -28px;
    box-shadow: 0 0 0 3px var(--f-surface), 0 6px 18px rgba(0, 0, 0, .28); }
  html.f-page .mic:hover { transform: none; }
  html.f-shell .vdock { bottom: calc(var(--f-bnav) + var(--f-safe-b) + 14px) !important; }
}
html.f-page .vdock, html.f-page .vdebug, html.f-page .mic {
  --surface: var(--f-surface); --surface-solid: var(--f-surface); --surface-2: var(--f-surface-2); --border: var(--f-line); --border-hi: var(--f-line-2);
  --text: var(--f-ink); --text-2: var(--f-ink-2); --muted: var(--f-muted); --accent: var(--f-accent); --accent-2: var(--f-accent-2);
  --accent-ink: var(--f-accent-ink); --good: var(--f-good); --bad: var(--f-bad); --warn-ink: var(--f-warn); --warn-bg: var(--f-warn-soft);
  --ok-bg: var(--f-good-soft); --shadow: var(--f-shadow-2); --radius: 14px; --mono: var(--f-mono); --top: 0px;
  font-family: var(--f-font); color: var(--f-ink); font-size: 14px; line-height: 1.45; }
html.f-page .vdock .hidden, html.f-page .vdock.hidden, html.f-page .vdebug.hidden { display: none !important; }
html.f-page .f-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 45; background: var(--f-ink); color: var(--f-bg);
  padding: 8px 12px; border-radius: 10px; font: 13px var(--f-font); }
/* what Friday is pointing at ("show me Riya", "the second one"): a soft rust outline that fades */
.fc-hi { outline: 2px solid var(--f-accent, #9a4a2c) !important; outline-offset: 3px; border-radius: 10px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--f-accent, #9a4a2c) 16%, transparent) !important;
  transition: outline-color .4s ease, box-shadow .4s ease; scroll-margin: 96px; }

/* ------------------------------------------------------------------ the Friday page is the whole screen (Akshay 1 Dec)
   On "Talk to Friday" (#friday) the sidebar and the phone bar step away: only the galaxy, Friday's face and her words.
   One quiet way out at the top left ("Console", or Esc). Talk by tapping anywhere, "Friday" or a double snap. */
html.f-shell:has(#view-friday:not(.hidden)) { padding-left: 0 !important; padding-bottom: 0 !important; }
html.f-shell:has(#view-friday:not(.hidden)) .f-rail,
html.f-shell:has(#view-friday:not(.hidden)) .f-bnav,
html.f-shell:has(#view-friday:not(.hidden)) .f-sheet,
html.f-shell:has(#view-friday:not(.hidden)) .f-scrim,
html.f-shell:has(#view-friday:not(.hidden)) .install-chip,
html.f-shell:has(#view-friday:not(.hidden)) .mic { display: none !important; }
html.f-shell:has(#view-friday:not(.hidden)) .vdock { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 16px) !important; }
.fv-exit { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; z-index: 2; pointer-events: auto; display: inline-flex; align-items: center; gap: 4px;
  height: 34px; padding: 0 12px 0 8px; border-radius: 999px; font: 500 13px var(--f-font, system-ui); color: rgba(255, 255, 255, .55); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .35); transition: color .2s ease, border-color .2s ease; }
.fv-exit:hover, .fv-exit:focus-visible { color: #fff; border-color: rgba(255, 255, 255, .45); }
