/* Harbourline look (owner, 12 Nov 2026): the Apple-style "Graphite" layout on the app's own warm paper, with a dark sidebar.
   Everything for the look is in this one file, loaded last by index.html. To take it off: delete the <link> to look-signature.css
   and data-look="signature" (which also turns off the greeting under the title) from public/index.html. Nothing else depends on it.
   Kept untouched on purpose: the light travelling round the sales box and the Ask a question spark (public/magic.css). */

/* Light mode: warm paper, white cards, warm inks, very soft depth. Dark mode keeps the theme's own colours. */
html.mi-light {
  --t-page: #F1EFF5; --t-glow: none; --ink: #15121F; --ink-2: #3D332D; --muted: #574C45;
  --t-card: #FFFFFF; --t-card-bg: #FFFFFF; --t-edge: transparent; --t-ctrl: #FFFFFF; --t-ctrl-edge: transparent; --t-track: #DDE6E9;
  --shadow: 0 1px 2px rgba(34, 26, 69, .05), 0 6px 20px -8px rgba(34, 26, 69, .1);
}
/* Easier-to-read greys (owner, 13 Nov 2026: "I have to strain to see texts"). Supporting text 5.9+ contrast, still lighter than the headings. Earlier greys: design/look-signature.before-contrast.backup.css */
html:not(.mi-light) { --muted: #B0A297; }
html.mi-light { --good: #13774A; --bad: #C23A2B; --watch: #9A5F0C; }
/* Small grey notes a touch heavier so they read clearly; headings stay black and bold, so the two still look different */
html.mi-light .sc-s { font-weight: 450; }
/* Orange buttons with white text: a deeper orange so the text is easy to read (owner, 13 Nov 2026). Bars and other orange stay as they are. */
html.mi-light :is(.pill.dark, .btn.primary, .depth-toggle button.on, .step > i) { background: #B03E27; }
/* Sparklines keep their own brighter colours by direction (owner keep rule) */
html.mi-light .spark.up polyline { stroke: #16A068; } html.mi-light .spark.down polyline { stroke: #E0483C; } html.mi-light .spark.mixed polyline { stroke: #BE7812; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --t-glow: none; } }
:root { --t-r: 22px; --t-r-sm: 22px;
  --t-hero: linear-gradient(160deg, #0DC6F0 0%, #14ACBE 45%, #C9502F 100%); --t-hero-shadow: 0 10px 30px -14px rgba(201, 80, 47, .55); }
html.mi-light body { background: #F1EFF5; }

/* Type: bold large title, plain sentence-case labels, bold figures. */
h1 { font-weight: 700; font-size: 40px; letter-spacing: -.035em; }
#subtitle { margin-top: 4px; color: var(--muted); font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.ov-lead .lead { font-size: 19px; line-height: 1.45; color: var(--ink-2); letter-spacing: -.015em; } .ov-lead .lead b { color: var(--ink); font-weight: 600; }
.kpi .l { text-transform: none; letter-spacing: -.005em; font-size: 14px; font-weight: 600; color: var(--muted); }
.kpi.hero .l { color: rgba(255, 255, 255, .88); }
.kpi .v, .kpi .v.proof-link { font-weight: 700; font-size: 40px; letter-spacing: -.04em; }
.card .vhead h3, .card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

/* Surfaces: no edges, one soft shadow; the sales box its own orange shadow. */
.card, .kpi { border: 0 !important; box-shadow: var(--shadow) !important; }
.kpis > .kpi.hero { box-shadow: var(--t-hero-shadow) !important; }

/* Controls: white pills on the paper; the segmented switch on a warm track. */
html.mi-light :is(.top .round, .top .me, #search-btn, .bar .tools .pill) { background: #FFFFFF; border-color: transparent; box-shadow: 0 1px 2px rgba(34, 26, 69, .06), 0 2px 8px -4px rgba(34, 26, 69, .1); }
html.mi-light .bar .seg { background: #DDE6E9; }
.bar .seg button.on { box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
html.mi-light :is(#search-btn kbd, .bar kbd.khint) { background: #E9EFF2; }
.next-row .next-lab { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
html.mi-light .next-row .next-step { background: #FFFFFF; border-color: transparent; color: var(--accent-ink); box-shadow: 0 1px 2px rgba(34, 26, 69, .06); }
.me-av { background: linear-gradient(160deg, #0DC6F0, #C9502F); }

/* Sidebar: dark, warm near-black (not coffee); the open page in solid orange. */
.rail { background: #1C1715 !important; border: 0 !important; box-shadow: none !important; border-radius: 18px; }
.rail .nav { color: rgba(255, 255, 255, .78); } .rail .nav .i { color: rgba(255, 255, 255, .55); }
.rail .nav:hover { background: rgba(255, 255, 255, .08); color: #FFF; } .rail .nav:hover .i { color: #FFF; }
.rail .nav.active { background: #E8654A !important; color: #FFF; box-shadow: none !important; } .rail .nav.active .i { color: #FFF; }
.rail .nav-group span { color: rgba(255, 255, 255, .4); text-transform: none; letter-spacing: 0; font-size: 12px; }
.rail .rail-foot { border-color: rgba(255, 255, 255, .08); } .rail .rail-toggle { color: rgba(255, 255, 255, .5); }
.rail .rail-toggle:hover { background: rgba(255, 255, 255, .08); color: #FFF; }
.rail .word b { color: #FFF; } .rail .word i { color: #F08A6E; }
html[data-rail="min"] .rail .nav-group { background: rgba(255, 255, 255, .08); }

/* ---------- Sidebar (owner, 12 Nov 2026: easier to navigate) ----------
   Home and My dashboard, a gap, then one line per area. An area's pages are tabs at the top of the page (#subnav). */
.rail #nav { display: flex; flex-direction: column; gap: 3px; }
.rail #nav .nav { height: 42px; font-size: 14.5px; }
.rail .nav-sep { display: block; height: 1px; margin: 10px 12px; background: rgba(255, 255, 255, .09); }
.rail .nav kbd { display: none; }
.rail .nav .beta-tag { margin-left: auto; padding: 2px 7px; font-size: 9.5px; line-height: 1.4; border-radius: 999px; color: #F08A6E; background: rgba(232, 101, 74, .16); }
.rail .nav.active .beta-tag { color: #FFF; background: rgba(255, 255, 255, .22); }
html[data-rail="min"] .rail .nav .beta-tag { display: none; }
#title .title-beta { margin-left: 12px; padding: 3px 9px; font-size: 11px; line-height: 1.3; border-radius: 999px; vertical-align: 8px; letter-spacing: .04em; }

/* An area's pages, as tabs above the title (app.js renderShell) */
/* Underlined tabs under the title, on a hairline across the page (owner, 12 Nov 2026: the pill strip didn't look premium). */
#subnav { position: relative; margin: 10px 0 22px; min-width: 0; }
#subnav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #D2CDDF; pointer-events: none; }
#subnav[hidden] { display: none; }
.sn-tabs { position: relative; z-index: 1; display: flex; gap: 26px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sn-tabs::-webkit-scrollbar { display: none; }
.sn { position: relative; flex: none; border: 0; background: none; padding: 10px 1px 13px; font-family: inherit; font-size: 14px; font-weight: 550; letter-spacing: -.01em; color: #4A3F38; white-space: nowrap; cursor: pointer; transition: color .15s ease; }
.sn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; border-radius: 3px 3px 0 0; background: #E8654A; transform: scaleX(0); transition: transform .2s ease; }
.sn:hover { color: var(--ink); }
.sn.on { color: var(--ink); font-weight: 650; }
.sn.on::after { transform: scaleX(1); }
.sn:focus-visible { outline: 2px solid #E8654A; outline-offset: 2px; border-radius: 4px; }
html:not(.mi-light) #subnav::after { background: rgba(255, 255, 255, .1); }
html:not(.mi-light) .sn { color: rgba(255, 255, 255, .8); }
html:not(.mi-light) :is(.sn:hover, .sn.on) { color: #FFF; }
@media (max-width: 1500px) { .sn-tabs { gap: 20px; } .sn { font-size: 13.5px; } }
/* A tab's live figure (pages-areas.js tabFigure): only where something needs doing */
.sn-f, .pin-f { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-style: normal; line-height: 1.5;
  font-variant-numeric: tabular-nums; vertical-align: 1px; color: #4A3F38; background: #E8E5EF; }
.sn-f.warn { color: #8E3420; background: #FBD9CC; } .sn-f.muted { font-weight: 500; color: #665A52; background: transparent; padding: 0; }
html:not(.mi-light) .sn-f { color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .1); }
html:not(.mi-light) .sn-f.warn { color: #F08A6E; background: rgba(232, 101, 74, .18); } html:not(.mi-light) .sn-f.muted { background: transparent; color: rgba(255, 255, 255, .45); }
/* The top bar stays put; once the tabs scroll away it shows them in place of the search box (app.js topTabs; owner, 13 Nov 2026) */
#top-tabs { display: none; }
@media (min-width: 701px) {
  main > .top { position: sticky; top: 0; z-index: 30; }
  main > .top::before { content: ""; position: absolute; z-index: -1; top: -14px; bottom: -6px; left: -22px; right: -30px; background: var(--t-page);
    border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; pointer-events: none; }
  html.tabs-up main > .top:has(#top-tabs:not(:empty))::before { border-bottom-color: #D3DDE2; box-shadow: 0 8px 20px -14px rgba(34, 26, 69, .25); }
  html:not(.mi-light).tabs-up main > .top:has(#top-tabs:not(:empty))::before { border-bottom-color: rgba(255, 255, 255, .1); box-shadow: none; }
  html.tabs-up .top:has(#top-tabs:not(:empty)) #search-btn { display: none; }
  html.tabs-up #top-tabs:not(:empty) { display: block; flex: 1; min-width: 0; animation: tt-in .22s ease; }
  #top-tabs .sn { padding: 12px 1px 13px; font-size: 13.5px; }
  #top-tabs .sn-tabs { gap: 20px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
  html.tabs-up .top:has(#top-tabs:not(:empty)) .me .me-t { display: none; }
  html.tabs-up .top:has(#top-tabs:not(:empty)) .me { padding: 0 5px; }
  @keyframes tt-in { from { opacity: 0; transform: translateY(-4px); } }
}
/* "Jump to" on long pages, and the folded Set-up section at the foot of a page (app.js tidyPage) */
.jump-row { display: flex; align-items: center; gap: 6px; margin: -6px 0 18px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
.jump-row::-webkit-scrollbar { display: none; }
.jump-row span { flex: none; font-size: 12.5px; font-weight: 650; color: #4A3F38; margin-right: 2px; }
.jump-row button { flex: none; border: 0; padding: 6px 11px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 550; white-space: nowrap; color: #4A3F38; background: #FFFFFF; box-shadow: 0 1px 2px rgba(34, 26, 69, .06); cursor: pointer; }
.jump-row button:hover { color: #8E3420; background: #FBD9CC; }
html:not(.mi-light) .jump-row span { color: rgba(255, 255, 255, .8); } html:not(.mi-light) .jump-row button { color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .07); box-shadow: none; }
.setup-fold { margin-top: 22px; border-radius: 22px; background: rgba(255, 255, 255, .55); border: 1px dashed #D2CDDF; }
.setup-fold > summary { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.setup-fold > summary::-webkit-details-marker { display: none; }
.setup-fold > summary::before { content: "›"; font-size: 18px; line-height: 1; color: #A89A8E; transition: transform .15s ease; }
.setup-fold[open] > summary::before { transform: rotate(90deg); }
.sf-t { font-size: 15px; font-weight: 650; color: var(--ink); }
.sf-l { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-in { padding: 0 14px 14px; }
html:not(.mi-light) .setup-fold { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .12); }
/* The guided tour (tour.js): a guide card with a face, progress dots, a soft entrance; the page dims round what it points at */
.tour-hole { outline: 2px solid #E8654A; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(28, 23, 21, .55), 0 0 0 6px rgba(232, 101, 74, .25); }
.tour.centre { background: rgba(28, 23, 21, .55); }
.tour.moving .tour-hole { opacity: 0; }
.tour-card { max-width: 360px; padding: 18px 20px 16px; border-radius: 20px; background: #FFFFFF; color: #15121F; box-shadow: 0 24px 60px -18px rgba(28, 23, 21, .55); }
.tour-card.in { animation: tour-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.tour.centre .tour-card.in { animation: none; }
.tour-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tour-face { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 14px; color: #FFFFFF; background: linear-gradient(150deg, #0DC6F0, #C9502F); box-shadow: 0 6px 14px -6px rgba(201, 80, 47, .6); }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: #D3DDE2; transition: width .2s ease, background .2s ease; }
.tour-dots i.past { background: #5ED6EB; }
.tour-dots i.on { width: 18px; background: #E8654A; }
.tour-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; color: #15121F; }
.tour-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #3D332D; }
html:not(.mi-light) .tour-card { background: #141D1D; color: #EFEDF4; }
html:not(.mi-light) .tour-card h3 { color: #EFEDF4; } html:not(.mi-light) .tour-card p { color: #CBBDB3; }
html:not(.mi-light) .tour-dots i { background: rgba(255, 255, 255, .15); }
/* "What's on this page?" beside each page title, and its panel (page-guide.js) */
.page-guide-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-left: 10px; padding: 0 11px 0 5px; vertical-align: 7px; border: 0; border-radius: 999px;
  font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: #4A3F38; background: #DDE6EA; cursor: pointer; transition: background .15s ease, color .15s ease; }
.page-guide-btn span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 11.5px; font-weight: 700; color: #FFFFFF; background: #E8654A; }
.page-guide-btn:hover { background: #FBD9CC; color: #8E3420; }
html:not(.mi-light) .page-guide-btn { color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); }
@media (max-width: 700px) { .page-guide-btn { font-size: 0; gap: 0; padding: 0 5px; } .page-guide-btn span { font-size: 11.5px; } }
.pg-hello { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.pg-what { margin: 2px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.pg-walk { width: 100%; justify-content: center; margin-bottom: 6px; }
.pg-guide h4 { margin: 18px 0 8px; }
.pg-secs { display: grid; gap: 6px; }
.pg-sec { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; font: inherit; font-size: 13.5px; font-weight: 550; text-align: left; color: var(--ink); background: #EEF3F5; cursor: pointer; }
.pg-sec:hover { background: #FBD9CC; }
.pg-n { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; font-size: 11.5px; font-weight: 700; color: #8E3420; background: #FBD9CC; }
.pg-go { margin-left: auto; color: #A89A8E; }
.pg-can { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.pg-foot { margin-top: 18px; }
html:not(.mi-light) .pg-sec { background: rgba(255, 255, 255, .06); }
/* Ask: Clear chat beside the heading; under an instant answer, the way to ask Claude for more */
.ask-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ask-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
/* "Lock this Excel file": the password box before every Excel download (lock-prompt.js) */
.lockdlg-back { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(28, 23, 21, .42); animation: tt-in .15s ease; }
.lockdlg { width: min(400px, 100%); padding: 24px; border-radius: 22px; background: var(--t-card, #FFF); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(28, 23, 21, .5); }
.lk-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 14px; color: #B03E27; background: #FDEDE8; }
.lockdlg h3 { margin: 0 0 6px; font-size: 18px; font-weight: 650; }
.lk-sub { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.lk-l { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.lk-l input { height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid #D2CDDF; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.lk-l input:focus { outline: 2px solid #E8654A; outline-offset: 1px; border-color: transparent; }
.lk-err { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #C23A2B; }
.lk-keep { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px; font-size: 13px; color: var(--ink-2); }
.lk-btns { display: flex; justify-content: flex-end; gap: 8px; }
html:not(.mi-light) .lk-ico { background: rgba(232, 101, 74, .16); color: #F08A6E; }
html:not(.mi-light) .lk-l input { border-color: rgba(255, 255, 255, .16); }
/* The row Ask sent you to (app.js spotlight with a row) */
tr.row-spot > td { background: #C9F0FA !important; transition: background .4s ease; }
tr.row-spot > td:first-child { box-shadow: inset 3px 0 0 #E8654A; }
html:not(.mi-light) tr.row-spot > td { background: rgba(232, 101, 74, .2) !important; }
/* Pinned pages in the sidebar, and the pin beside a page's title */
.rail .nav-pins { margin-top: 10px; }
.rail .pin-f { margin-left: auto; color: #F08A6E; background: rgba(232, 101, 74, .16); }
.rail .nav.active .pin-f { color: #FFF; background: rgba(255, 255, 255, .22); }
html[data-rail="min"] .rail .pin-f { display: none; }
.pin-page { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 8px; vertical-align: 6px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  color: #9C8F84; background: transparent; transition: background .15s ease, color .15s ease; }
.pin-page .i { width: 16px; height: 16px; }
.pin-page:hover { background: #E8E5EF; color: var(--ink); }
.pin-page.on { color: #E8654A; } .pin-page.on .i { fill: currentColor; }
html:not(.mi-light) .pin-page:hover { background: rgba(255, 255, 255, .08); color: #FFF; }
/* Under an Ask answer: where to see it in the app (ask-nav.js) */
.ask-where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--t-track); }
html.mi-light .ask-where { border-top-color: #E2EAEE; }
.aw-l { width: 100%; font-size: 12.5px; font-weight: 600; color: var(--muted); }
/* "Needs you": the area's to-dos on one line, each a link to the section that deals with it */
.needs-you { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 2px; }
.ny-l { font-size: 13px; font-weight: 650; color: var(--ink); margin-right: 4px; }
.ny { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 550; cursor: pointer;
  color: var(--ink-2); background: #FFFFFF; box-shadow: 0 1px 2px rgba(34, 26, 69, .06), 0 2px 8px -4px rgba(34, 26, 69, .1); transition: transform .15s ease; }
.ny span { color: #9C8F84; font-size: 15px; line-height: 1; }
.ny:hover { transform: translateY(-1px); } .ny:hover span { color: #E8654A; }
.ny::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B3A699; }
.ny.warn::before { background: #E6A23C; } .ny.bad::before { background: #278A7F; }
html:not(.mi-light) .ny { background: rgba(255, 255, 255, .07); box-shadow: none; color: rgba(255, 255, 255, .85); }
/* Phones: the area's tabs become a dark dock at the foot of the screen, always in reach (owner, 12 Nov 2026) */
@media (max-width: 700px) {
  #subnav { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 0; padding: 5px; border-radius: 999px;
    background: #1C1715; box-shadow: 0 10px 30px -8px rgba(28, 23, 21, .55); }
  #subnav::after { display: none; }
  .sn-tabs { gap: 2px; padding: 0; scroll-padding: 0 40px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
  .sn { padding: 9px 14px; border-radius: 999px; color: rgba(255, 255, 255, .7) !important; font-size: 13.5px; }
  .sn::after { display: none; }
  .sn.on { background: #E8654A; color: #FFF !important; }
  .sn-f, .sn-f.warn { color: #FFF; background: rgba(255, 255, 255, .18); } .sn-f.muted { display: none; }
  body:has(#subnav:not([hidden])) #view { padding-bottom: 84px; }
  .pin-page { vertical-align: 4px; }
}
@media print { #subnav { display: none; } }

/* ---------- A card's "how it's worked out" note behind an ⓘ beside its title (app.js tuckTitleNotes) ---------- */
.card p.tucked { display: none; }
.card p.untucked { animation: tipIn .18s ease; }
@keyframes tipIn { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
.info-tip { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 7px; vertical-align: 2px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  font: italic 600 11px/1 Georgia, 'Times New Roman', serif; color: var(--muted); background: var(--t-track); transition: background .15s ease, color .15s ease; }
.info-tip:hover, .info-tip[aria-expanded="true"] { background: #E8654A; color: #FFF; }
.info-tip:focus-visible { outline: 2px solid #E8654A; outline-offset: 2px; }
@media print { .card p.tucked { display: block; } .info-tip { display: none; } }

/* ---------- Area pages (public/pages-areas.js): figures as tiles, a tile opens its detail ---------- */
.area-sec { padding: 18px 20px 20px; }
.area-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.area-h h3 { margin: 0; }
.area-h .area-note { font-size: 12.5px; color: var(--muted); }
.area-h .btn, .area-h .link-btn { margin-left: auto; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-ink, #B03E27); cursor: pointer; }
.link-btn .i { width: 14px; height: 14px; }
.kt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 112px; padding: 14px 16px; border-radius: 16px; border: 0; text-align: left; font: inherit; color: var(--ink);
  background: var(--t-track); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
html.mi-light .kt { background: #F2F5F7; }
button.kt { cursor: pointer; }
button.kt:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -10px rgba(34, 26, 69, .35); background: var(--t-card-bg); }
button.kt:focus-visible { outline: 2px solid #E8654A; outline-offset: 2px; }
.kt-l { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: -.005em; }
.kt-v { font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kt-s { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.kt-d { font-style: normal; font-weight: 600; font-size: 12px; }
.kt-d.good { color: #13774A; } .kt-d.bad { color: #C23A2B; } .kt-d.flat { color: var(--muted); font-weight: 500; }
.kt-warn { color: #9A5F0C; font-weight: 500; }
.kt.good .kt-v { color: #13774A; } .kt.bad .kt-v { color: #C23A2B; } .kt.warn .kt-v { color: #9A5F0C; }
.kt.wait { background: transparent; box-shadow: inset 0 0 0 1px var(--t-track); min-height: 112px; }
html.mi-light .kt.wait { background: transparent; box-shadow: inset 0 0 0 1px #D8E1E5; }
.kt.wait .kt-w { margin-top: auto; font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.35; }
button.kt.wait .kt-w { color: var(--accent-ink, #B03E27); }
button.kt.wait:hover { background: var(--t-card-bg); }
.folded-sec { padding-bottom: 16px; }
.folded-sec .area-h { margin-bottom: 4px; }
.area-more { margin: 12px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.area-wait { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 760px; }
.kt-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kt-bars li { display: grid; grid-template-columns: minmax(0, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.kb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.kb-t { height: 8px; border-radius: 99px; background: var(--t-track); overflow: hidden; }
.kb-t i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(232, 101, 74, .45), #E8654A); }
.kt-bars b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.area-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* Where a click on a figure lands: the section is marked in orange for a few seconds (app.js spotlight) */
.card.spotlight { outline: 2px solid #E8654A !important; outline-offset: 3px; box-shadow: 0 0 0 8px rgba(232, 101, 74, .16), var(--shadow) !important; animation: spotIn .5s ease-out; scroll-margin-top: 24px; }
@keyframes spotIn { from { box-shadow: 0 0 0 0 rgba(232, 101, 74, .45), var(--shadow); } }

/* Scorecard: every KPI on the owner's list, one per line (pages-areas.js scorecard) */
.sc-card { padding: 20px 10px 10px; display: flex; flex-direction: column; }
.sc-h { display: flex; align-items: baseline; gap: 10px; padding: 0 12px 10px; }
.sc-h h3 { margin: 0; }
.sc-note { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.sc-list { list-style: none; margin: 0; padding: 0; }
.sc-list li { position: relative; }
.sc-list li + li::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--t-track); }
html.mi-light .sc-list li + li::before { background: #ECEAF2; }
.sc-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 11px 12px; border: 0; border-radius: 12px; background: none; font: inherit; color: var(--ink); text-align: left; }
button.sc-row { cursor: pointer; transition: background .15s ease; }
button.sc-row:hover { background: #F0F5F8; }
html:not(.mi-light) button.sc-row:hover { background: rgba(255, 255, 255, .05); }
button.sc-row:focus-visible { outline: 2px solid #E8654A; outline-offset: -2px; }
.sc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.sc-n { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.sc-s { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.sc-s .kt-d { font-size: 12px; }
.sc-v { flex: none; font-size: 21px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sc-v .i { width: 16px; height: 16px; color: var(--muted); }
.sc-go { flex: none; width: 10px; margin-left: -4px; font-size: 18px; line-height: 1; color: #A89A8E; transition: transform .15s ease, color .15s ease; }
button.sc-row:hover .sc-go { color: #E8654A; transform: translateX(2px); }
.sc-row.good .sc-v { color: #13774A; } .sc-row.bad .sc-v { color: #C23A2B; } .sc-row.warn .sc-v { color: #9A5F0C; }
.sc-row.wait .sc-n { color: var(--ink-2); font-weight: 550; }
.sc-need { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #8E3420; background: #FDEDE8; white-space: nowrap; }
html:not(.mi-light) .sc-need { color: #F08A6E; background: rgba(232, 101, 74, .14); }
.sc-meter, .sc-age { display: flex; height: 6px; margin: -4px 34px 12px 12px; border-radius: 99px; overflow: hidden; background: var(--t-track); gap: 2px; }
html.mi-light :is(.sc-meter, .sc-age) { background: #ECEAF2; }
.sc-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(232, 101, 74, .45), #E8654A); }
.sc-age i { display: block; height: 100%; min-width: 3px; }
@media (max-width: 1200px) and (min-width: 901px) { .sc-card.s4 { grid-column: span 6; } }
@media (max-width: 520px) { .sc-v { font-size: 19px; } .sc-row { min-height: 54px; } .sc-need { font-size: 11.5px; } }

/* Financial summary cards */
.fin-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.fh { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fh-l { font-size: 14px; font-weight: 600; color: var(--muted); }
.fh-v { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fh-big { font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; margin: 6px 0 2px; }
.fh-s { font-size: 13.5px; color: var(--muted); } .fh-s b { color: var(--ink); font-weight: 600; }
.fh2 { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--t-track); }
.fh2 .fh-v { font-size: 30px; }
html.mi-light .fh2 { border-top-color: #E2EAEE; }
.fin-top { display: flex; align-items: flex-start; gap: 12px; } .fin-top > .go-pill { margin-left: auto; flex: none; }
.go-pill { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  color: #FFF; background: #E8654A; transition: background .15s ease, transform .15s ease; }
.go-pill:hover { background: #C9502F; } .go-pill .i { width: 14px; height: 14px; }
.go-pill:focus-visible { outline: 2px solid #E8654A; outline-offset: 2px; }
.fin-bar { height: 10px; border-radius: 99px; background: var(--t-track); overflow: hidden; }
html.mi-light .fin-bar { background: #ECEAF2; }
.fin-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(232, 101, 74, .45), #E8654A); }
.fin-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-s { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--t-track); }
html.mi-light .chip-s { background: #E9EFF2; }
.chip-s.good { color: #1F7A4C; background: rgba(31, 138, 85, .1); } .chip-s.bad { color: #B53A29; background: rgba(200, 64, 46, .1); }
.age-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--t-track); }
.age-bar i { display: block; height: 100%; min-width: 3px; }
.ag0 { background: #8DB8A4; } .ag1 { background: #E6BE5C; } .ag2 { background: #1BB3CF; } .ag3 { background: #278A7F; }
.age-list, .fin-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.age-list li, .fin-lines li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--t-track); }
html.mi-light :is(.age-list, .fin-lines) li { border-bottom-color: #ECEAF2; }
.age-list li:last-child, .fin-lines li:last-child { border-bottom: 0; }
.age-list li > span:nth-child(2), .fin-lines li > span { color: var(--ink-2); flex: 1; }
.age-list b, .fin-lines b { font-weight: 600; font-variant-numeric: tabular-nums; }
.age-list em, .fin-lines em { font-style: normal; color: var(--muted); font-size: 12.5px; min-width: 40px; text-align: right; }
.fin-lines b.neg { color: #C23A2B; }
.age-list .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
@media (max-width: 520px) { .fin-card { padding: 18px; } .fh-v { font-size: 32px; } .fh2 .fh-v { font-size: 26px; } }
@media (max-width: 520px) {
  .area-sec { padding: 14px 14px 16px; }
  .kt-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kt { min-height: 96px; padding: 12px; }
  .kt-v { font-size: 22px; }
  .kt-l { font-size: 12px; }
}

/* ---------- Every tab's summary (pages.js answerCardHtml), in line with Home (owner, 12 Nov 2026) ----------
   The summary sits on the page like Home's: no card around it; the question as a quiet heading (hidden when it only repeats the page
   title); the week's sentence in Home's size; the three figures as Home's figure cards, the first the orange one. */
.answer-card { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.answer-card > .vhead { margin-bottom: 4px; min-height: 0; }
.answer-card > .vhead h3 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.answer-card > .vhead.dup-title h3 { display: none; }
.answer-card > .vhead.dup-title:not(:has(.vtools > *)) { display: none; }
.answer-card > .lead { font-size: 19px; line-height: 1.45; color: var(--ink-2); letter-spacing: -.015em; max-width: 880px; margin: 0 0 6px; }
.answer-card > .lead b { color: var(--ink); font-weight: 600; }
.answer-card > .caveat { font-size: 13px; color: var(--muted); max-width: 880px; margin: 0 0 4px; }
.answer-card .stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; background: none !important; padding: 0; }
.answer-card .stats-row > .stat { border-radius: var(--t-r) !important; padding: 18px 20px 20px !important; border: 0 !important; min-height: 0; }
.answer-card .stats-row > .stat:not(.main) { background: var(--t-card-bg) !important; box-shadow: var(--shadow) !important; }
.answer-card .stats-row > .stat.main { box-shadow: var(--t-hero-shadow) !important; }
.answer-card .stats-row .stat .k { font-size: 14px; font-weight: 600; letter-spacing: -.005em; text-transform: none; color: var(--muted); }
.answer-card .stats-row .stat.main .k { color: rgba(255, 255, 255, .88); }
.answer-card .stats-row .stat .v { font-size: 36px; font-weight: 700; letter-spacing: -.04em; line-height: 1.12; margin: 6px 0 4px; }
.answer-card .stats-row .stat .s { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.answer-card .stats-row .stat.main .s { color: rgba(255, 255, 255, .85); }
.answer-card .next-row { margin-top: 14px; }
@media (max-width: 900px) { .answer-card .stats-row { grid-template-columns: 1fr 1fr; } .answer-card .stats-row > .stat.main { grid-column: 1 / -1; } }
/* Phone: the orange card full width, the other two side by side, a little smaller, so the first screen isn't all boxes. */
@media (max-width: 520px) { .answer-card .stats-row { gap: 10px; } .answer-card .stats-row > .stat { padding: 14px 14px 16px !important; } .answer-card .stats-row .stat .v { font-size: 26px; } .answer-card .stats-row > .stat.main .v { font-size: 34px; } .answer-card .stats-row .stat .k { font-size: 13px; } }
/* On the orange box every figure is white, whatever colour the page gave it (To chase's count came out orange on orange). */
.answer-card .stats-row .stat.main .v, .answer-card .stats-row .stat.main .v * { color: #FFF !important; }
/* Phone: a figure card's small buttons (comment, what if) stay in its top-right corner when the label wraps, and the trend label
   ("Steady over 8 wks") stays on one line in the half-width cards. */
@media (max-width: 520px) {
  .kpi > .l { display: flex; align-items: flex-start; gap: 6px; }
  .kpi > .l .kpi-tools { margin-left: auto; flex: none; display: inline-flex; }
  .kpis > .kpi:not(.hero) .trend { white-space: nowrap; font-size: 11px; max-width: none; }
}
/* Phone: the hover-only "What if" and "Pin" buttons take room they can't use (no hover on a phone); the comment button stays. */
@media (max-width: 520px) and (hover: none), (max-width: 520px) and (pointer: coarse) { .kpi .kpi-tools .ib:not(.cm) { display: none; } }
@media (max-width: 520px) { .kpi .kpi-tools .ib.wi, .kpi .kpi-tools .ib.pin { display: none; } }

/* ---------- Your figures (owner, 14 Nov 2026): type a figure on an area's Summary tab, it becomes a box (public/your-figures.js) ---------- */
.yf { padding: 22px 22px 20px; }
.yf-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.yf-h h3 { margin: 0; }
.yf-h .yf-who { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.yf-ask { position: relative; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 16px; border-radius: 16px; background: #FAF8F5; box-shadow: inset 0 0 0 1px #D0DEE2; transition: box-shadow .2s ease, background .2s ease; }
.yf-ask:focus-within { background: #FFF; box-shadow: inset 0 0 0 1.5px #E8654A, 0 0 0 5px rgba(232, 101, 74, .12); }
.yf-ask .spark { flex: none; width: 20px; height: 20px; color: #E8654A; }
.yf-in { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 15.5px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.yf-in::placeholder { color: #7C6F65; font-weight: 450; }
.yf-go { flex: none; height: 38px; padding: 0 16px; border: 0; border-radius: 11px; background: #B03E27; color: #FFF; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.yf-go:hover { background: #106D78; transform: translateY(-1px); }
.yf-ask.busy .yf-go { pointer-events: none; opacity: .55; }
.yf-ask.busy::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #E8654A, transparent) no-repeat; background-size: 40% 100%; animation: yfScan 1s linear infinite; }
@keyframes yfScan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.yf-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.yf-try:empty { display: none; }
.yf-try span { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.yf-try button { border: 0; padding: 6px 12px; border-radius: 999px; background: #ECEAF2; color: #3D332D; font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.yf-try button:hover { background: #FDEDE8; color: #8E3420; transform: translateY(-1px); }
.yf-msg { display: none; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: #FBF5EC; color: #3D332D; font-size: 13.5px; }
.yf-msg.on { display: flex; animation: yfIn .25s ease; }
.yf-msg .pill { flex: none; padding: 3px 9px; border-radius: 999px; background: #FDEDE8; color: #8E3420; font-size: 12px; font-weight: 600; }
.yf-steps { display: none; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.yf-steps.on { display: flex; }
.yf-steps i { font-style: normal; display: inline-flex; align-items: center; gap: 7px; opacity: .35; transition: opacity .2s ease; }
.yf-steps i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #D2CDDF; transition: background .2s ease; }
.yf-steps i.done { opacity: 1; color: #3D332D; } .yf-steps i.done::before { background: #E8654A; }
.yf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.yf-grid:empty { display: none; }
.yt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 14px; border-radius: 16px; background: #FFF; box-shadow: 0 0 0 1px #DDE7EC, 0 1px 2px rgba(34, 26, 69, .05); transition: box-shadow .2s ease, transform .2s ease; }
.yt:hover { box-shadow: 0 0 0 1px #CADBE0, 0 10px 28px rgba(34, 26, 69, .09); transform: translateY(-2px); }
.yt.new { animation: ytIn .55s cubic-bezier(.2, .8, .2, 1); }
.yt.new::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 2px #E8654A; animation: ytRing 1.6s ease forwards; }
@keyframes ytIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ytRing { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }
@keyframes yfIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.yt-top { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.yt-l { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: -.005em; }
.yt-x { margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: #8A7D72; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s ease, background .15s ease; }
.yt:hover .yt-x, .yt-x:focus-visible { opacity: 1; } .yt-x:hover { background: #E7F0F2; color: #3D332D; }
@media (hover: none) { .yt-x { opacity: 1; } }
.yt-v { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.yt-v small { font-size: .55em; font-weight: 650; letter-spacing: -.02em; margin-left: 1px; }
.yt-wait { padding: 8px 0 4px; }
.yt-d { font-size: 12.5px; font-weight: 600; color: var(--muted); } .yt-d.up { color: #13774A; } .yt-d.down { color: #C23A2B; }
.yt-d span { color: var(--muted); font-weight: 500; }
.yt-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.yt-src button { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 4px 9px; border-radius: 999px; background: #EBF1F4; color: #4A3F38; font: inherit; font-size: 12px; font-weight: 550; cursor: pointer; transition: background .15s ease, color .15s ease; }
.yt-src button em { font-style: normal; color: #7C6F65; font-weight: 500; }
.yt-src button:hover { background: #FDEDE8; color: #8E3420; } .yt-src button:hover em { color: #8E3420; }
.yt-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid #ECEAF2; }
.yt-calc { border: 0; padding: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #B03E27; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.yt-calc svg { width: 15px; height: 15px; } .yt-calc:hover { color: #8E3420; }
.yt-who { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; }
.yt-who .linkish { font-size: 12px; font-weight: 600; color: #B03E27; }
.yfc { position: fixed; z-index: 80; width: 380px; padding: 18px 18px 14px; border-radius: 18px; background: #FFF; color: var(--ink); box-shadow: 0 0 0 1px #D6E3E7, 0 24px 60px rgba(22, 18, 36, .18), 0 4px 12px rgba(22, 18, 36, .06);
  opacity: 0; transform: translateY(6px) scale(.98); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.yfc.on { opacity: 1; transform: none; pointer-events: auto; }
.yfc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.yfc-h b { font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.yfc-x { margin-left: auto; flex: none; width: 28px; height: 28px; border: 0; border-radius: 9px; background: #EBF1F4; color: #4A3F38; font-size: 15px; cursor: pointer; } .yfc-x:hover { background: #DDE8ED; }
.yfc-p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.yfc-eq { list-style: none; margin: 0; padding: 4px 0; border-radius: 12px; background: #FAF8F5; overflow: hidden; }
.yfc-eq li { display: grid; grid-template-columns: 18px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13.5px; }
.yfc-eq li.gap { padding: 0; height: 6px; border-top: 1px solid #DDE8ED; margin-top: 4px; }
.yfc-eq .op { color: #8A7D72; font-weight: 700; text-align: center; }
.yfc-eq .n { font-weight: 550; color: #3D332D; }
.yfc-eq .val { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.yfc-eq .from { border: 0; padding: 2px 8px; border-radius: 999px; background: #FFF; color: #8E3420; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; box-shadow: 0 0 0 1px #D5E7ED; white-space: nowrap; }
.yfc-eq .from:hover { background: #FDEDE8; } .yfc-eq .from.blank { visibility: hidden; padding: 0; box-shadow: none; }
.yfc-eq li.res { border-top: 1px dashed #CADBE0; } .yfc-eq li.res .n, .yfc-eq li.res .val { font-weight: 700; color: var(--ink); }
.yfc-eq li.final { background: #E5F9FE; } .yfc-eq li.final .n { font-weight: 700; color: var(--ink); } .yfc-eq li.final .val { color: #B03E27; font-size: 15px; font-weight: 700; }
.yfc-f { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.yfc-f svg { width: 14px; height: 14px; color: #13774A; flex: none; }
@media (max-width: 700px) { .yf { padding: 18px 14px 16px; } .yf-h .yf-who { display: none; } .yf-grid { grid-template-columns: 1fr; } .yt-v { font-size: 30px; } }
html:not(.mi-light) .yf-ask { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
html:not(.mi-light) .yf-ask:focus-within { background: rgba(255, 255, 255, .06); }
html:not(.mi-light) .yf-try button, html:not(.mi-light) .yt-src button { background: rgba(255, 255, 255, .07); color: var(--ink-2); }
html:not(.mi-light) .yf-msg, html:not(.mi-light) .yfc-eq { background: rgba(255, 255, 255, .05); color: var(--ink-2); }
html:not(.mi-light) .yt, html:not(.mi-light) .yfc { background: var(--card, #241E1B); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
html:not(.mi-light) .yt-foot { border-color: rgba(255, 255, 255, .08); }
html:not(.mi-light) .yfc-eq .n, html:not(.mi-light) .yf-steps i.done { color: var(--ink-2); }
html:not(.mi-light) .yfc-eq li.final { background: rgba(232, 101, 74, .12); }
html:not(.mi-light) .yfc-eq .from { background: transparent; color: #F08A6E; box-shadow: 0 0 0 1px rgba(232, 101, 74, .35); }
html:not(.mi-light) .yfc-x { background: rgba(255, 255, 255, .08); color: var(--ink-2); }

/* Tab strips and switches stay one line and slide sideways when there isn't room (14 Nov 2026): wrapped, the round track became a blob
   and its first tab stuck out of it on phones (Money missed credit notes). */
.tabs, .seg, html .seg[aria-label="Split by"] { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.tabs::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
.tabs > button, .seg > button { flex: none; white-space: nowrap; }
/* Grid settings rows (Cash forecast) keep to the card: a wide switch slides instead of pushing the column out. */
.assume > *, .ft-grid > * { min-width: 0; }
@media (max-width: 720px) {
  /* Small tables outside a sliding table box (Clinicians: one clinician, one month) fit the card on phones. */
  :not(.tablewrap) > table.grid td.wrap { min-width: 0; }
}
/* Small side-by-side tables (Clinicians: one clinician, one month) fit their column at any width. */
:not(.tablewrap) > table.grid.compact td.wrap { min-width: 0; }
@media (max-width: 720px) {
  /* A long "next step" button wraps onto two lines rather than running out of its card. */
  .btn.next-step { max-width: 100%; white-space: normal; height: auto; min-height: 34px; padding-top: 6px; padding-bottom: 6px; text-align: left; line-height: 1.3; }
}
/* Tablet-width windows with the sidebar open: search shrinks to its icon so Ask and the round buttons stay on screen. */
@media (min-width: 721px) and (max-width: 1100px) { #search-btn { flex: 0 0 auto; } #search-btn .ph { display: none; } }
@media (min-width: 721px) and (max-width: 900px) { #search-btn { width: 46px; padding: 0; justify-content: center; } #search-btn kbd { display: none; } }
/* A card's tools row (Board pack downloads, Why it changed splits) moves to a second line rather than past the card's edge. */
.vtools { flex-wrap: wrap; min-width: 0; max-width: 100%; }

/* Period menu: pick days (owner, 15 Nov 2026). A month calendar: click the first day, then the last, then Show. */
.pp-days { padding-top: 2px; }
.dp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dp-month { flex: 1; min-width: 0; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--t-solid); color: var(--ink); font: inherit; font-weight: 650; padding: 0 10px; cursor: pointer; }
.dp-nav { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--t-sub); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.dp-nav:disabled { opacity: .35; cursor: default; }
.dp-cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; }
.dp-dow { font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.dp-d { position: relative; height: 34px; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-3); font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; }
.dp-d span { position: relative; z-index: 1; }
.dp-d:hover:not(:disabled)::before { content: ''; position: absolute; inset: 2px 4px; border-radius: 10px; background: var(--t-sub); }
.dp-d:disabled { color: color-mix(in srgb, var(--muted) 45%, transparent); cursor: default; }
.dp-d.today span { text-decoration: underline; text-underline-offset: 3px; }
.dp-d.in { background: var(--accent-soft); }
.dp-d.s { border-radius: 12px 0 0 12px; } .dp-d.e { border-radius: 0 12px 12px 0; } .dp-d.s.e { border-radius: 12px; }
.dp-d.s, .dp-d.e { color: #fff; font-weight: 650; }
.dp-d.s::before, .dp-d.e::before, .dp-d.s:hover::before, .dp-d.e:hover::before { content: ''; position: absolute; inset: 2px 4px; border-radius: 10px; background: #B03E27; }
.dp-whole { display: flex; justify-content: flex-end; margin-top: 6px; }
.dp-whole .linkish { color: var(--accent-ink); font-weight: 600; font-size: var(--fs-3); }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-now { font-size: var(--fs-3); color: var(--muted); min-width: 0; }
.dp-foot .btn:disabled { opacity: .45; cursor: default; }

/* Cash forecast: What we assumed (owner, 15 Nov 2026). One row per assumption: what, value, last month's check, Change. */
.as-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 4px 0 6px; }
.as-top .lab { display: block; margin-bottom: 6px; }
.as-list { border-top: 1px solid var(--line); margin-top: 10px; }
.as-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.4fr) auto; gap: 8px 18px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.as-t { font-weight: 600; color: var(--ink); min-width: 0; }
.as-t small, .as-v small, .as-c small { display: block; font-weight: 450; font-size: var(--fs-3); color: var(--muted); margin-top: 2px; }
.as-v { font-size: var(--fs-5); font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 0; }
.as-c { min-width: 0; }
.as-c .tag { font-size: var(--fs-2); padding: 3px 9px; }
.as-row.open { background: none; }
.as-edit { grid-column: 1 / -1; background: var(--t-sub); border-radius: 14px; padding: 14px; }
.as-edit label { display: block; font-size: var(--fs-3); color: var(--muted); margin-bottom: 6px; }
.as-inp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.as-inp input { width: 130px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--t-solid); color: var(--ink); font: inherit; font-size: var(--fs-5); font-weight: 600; padding: 0 10px; }
.as-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag.fc { background: var(--accent-soft); color: var(--accent-ink); }
.month-by-month td:first-child { white-space: nowrap; }
@media (max-width: 720px) {
  .as-row { grid-template-columns: minmax(0, 1fr) auto; }
  .as-t { grid-column: 1 / -1; }
  .as-c { grid-column: 1 / -1; grid-row: 3; }
  .as-open { grid-column: 2; grid-row: 2; }
}

/* The period menu fits a phone screen with its padding. */
@media (max-width: 720px) { .period-pop { width: min(420px, calc(100vw - 56px)); } }
.yf-msg .pill.ok { background: var(--good-bg); color: var(--good); }
.yf-msg .linkish { color: var(--accent-ink); font-weight: 600; }

/* Long pages: the later sections fold into "More on this page" (app.js foldLongPage). A white bar, not dashed: these are figures, not set-up. */
.more-fold { margin-top: 22px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(34, 26, 69, .05), 0 8px 24px -16px rgba(34, 26, 69, .18); }
.more-fold > summary { display: flex; align-items: baseline; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; min-width: 0; }
.more-fold > summary::-webkit-details-marker { display: none; }
.more-fold > summary::before { content: "›"; font-size: 18px; line-height: 1; color: #A89A8E; transition: transform .15s ease; }
.more-fold[open] > summary::before { transform: rotate(90deg); }
.more-fold[open] { background: transparent; box-shadow: none; }
.mf-in { padding: 0; }
html:not(.mi-light) .more-fold:not([open]) { background: var(--t-solid); }

/* Clinic setup in steps (pages.js setupTabs / setupChecklist). */
.tab-hidden { display: none !important; }
.set-tabbar { margin: 4px 0 14px; }
.set-check { margin-bottom: 14px; }
.set-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.set-list li { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.set-list li:last-child { border-bottom: 0; }
.set-list .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #B1C5CA; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.set-list li.ok .dot { background: var(--good-bg); border-color: transparent; color: var(--good); }
.set-list li.ok .t { color: var(--muted); }
.set-list .t { flex: 1; min-width: 0; }
.pr-find { margin-top: 14px; max-width: 360px; }
.pr-more { margin-top: 10px; }

/* Your figures: a target per box (green when met, amber when not). */
.yt.yt-hit { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--good) 45%, transparent), 0 1px 2px rgba(34, 26, 69, .05); }
.yt.yt-miss { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--watch) 55%, transparent), 0 1px 2px rgba(34, 26, 69, .05); }
.yt-tg { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.yt-tg.hit { color: var(--good); } .yt-tg.miss { color: var(--watch); }
.yt-tgb { margin-left: auto; font-size: 12.5px; color: var(--accent-ink); font-weight: 600; }
.yt-tgb + .yt-who { margin-left: 8px; }
.yt-tgf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0 2px; }
.yt-tgf label { font-size: 12.5px; color: var(--muted); width: 100%; }
.yt-tgf input { width: 110px; height: 32px; border-radius: 9px; border: 1px solid var(--line); padding: 0 8px; font: inherit; background: var(--t-solid); color: var(--ink); }
.set-list .btn { color: #B03E27; font-weight: 600; box-shadow: 0 0 0 1px #C8E0E7; }

/* Present mode: the page's own navigation (tabs, Jump to, fold bars, set-up tabs) is hidden so it never sits on a slide (owner, 15 Nov 2026). */
body.presenting #subnav, body.presenting #top-tabs, body.presenting .jump-row, body.presenting .more-fold > summary, body.presenting .setup-fold > summary, body.presenting .set-tabbar, body.presenting #fresh, body.presenting .dock { display: none !important; }
body.presenting .more-fold, body.presenting .setup-fold { margin: 0; background: none; border: 0; box-shadow: none; }
/* Sections placed straight on the page (not in its grid) hide too while another one is the slide (What if, Data, Data sources, Clinic setup). */
body.presenting #view > :not(.pslide):not(:has(.pslide)) { display: none !important; }
body.presenting #view div.grid > :not(.pslide):not(:has(.pslide)), body.presenting #view :has(.pslide) > :not(.pslide):not(:has(.pslide)) { display: none !important; }
td small.raised { display: block; font-size: 12px; color: var(--muted); font-weight: 450; }
.yf-h .yf-months { margin-left: 12px; }
.yf-mtable td:first-child { white-space: nowrap; }

/* My dashboard: pinned boxes drag into a new order (pages-home.js dragPins). */
.pin-drag { cursor: grab; }
.pin-drag.dragging { opacity: .45; }
.pin-drag.drop-on { outline: 2px dashed #1B9EA9; outline-offset: 3px; }

/* Fix in Semble: Make the data right (pages-fix.js cleanUpCard). */
.cu-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.cu-bar i { display: block; height: 100%; background: #1E7A45; border-radius: 99px; }
.cu-list { list-style: none; margin: 8px 0 0; padding: 0; }
.cu-list li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.cu-list li:last-child { border-bottom: 0; }
.cu-list .t { flex: 1; min-width: 0; } .cu-list .t small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cu-list li.ok .t b { color: var(--muted); font-weight: 500; }
.cu-list .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #B1C5CA; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.cu-list li.ok .dot { background: var(--good-bg); border-color: transparent; color: var(--good); }
@media (max-width: 720px) { .cu-list li { flex-wrap: wrap; } .cu-list li .btn { margin-left: 34px; } }

/* Notes on charts (visual.js noteForm). */
.note-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--t-sub); }
.note-add label { font-size: 12.5px; color: var(--muted); }
.note-add select, .note-add input { height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--t-solid); color: var(--ink); font: inherit; padding: 0 8px; }
.note-add input { flex: 1; min-width: 180px; }

/* Report a wrong figure (report-figure.js). */
.page-guide-btn.report-btn span { background: #FDEDE8; color: #8E3420; }
#report-fig { position: fixed; inset: 0; z-index: 90; background: rgba(28, 23, 21, .45); display: grid; place-items: center; padding: 16px; }
#report-fig[hidden] { display: none; }
.rf-box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--t-solid); border-radius: 20px; padding: 22px; }
.rf-box h3 { margin: 0 0 4px; }
.rf-form { display: grid; gap: 6px; margin-top: 12px; }
.rf-form label { font-size: 13px; color: var(--muted); margin-top: 6px; }
.rf-form select, .rf-form textarea, .rf-form input { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--t-solid); color: var(--ink); font: inherit; padding: 8px 10px; }
.rf-form .toolbar { margin-top: 10px; gap: 8px; }
.rf-mine h4 { margin: 18px 0 6px; }
.rf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rf-list li { border-top: 1px solid var(--line); padding-top: 10px; }
.rf-list li > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.rf-list p { margin: 4px 0; font-size: 13.5px; } .rf-ans { background: var(--t-sub); border-radius: 10px; padding: 8px 10px; }
.yf-wait { font-size: 13px; color: var(--muted); }

/* Settings → Reading (reading.js). */
/* Numbers only: the sentence above a section's figures is hidden where the figures themselves are shown. */
html.numbers-only .card:has(.stat, .kpi, .stats-row, canvas, table) p.lead, html.numbers-only .ov-lead p.lead { display: none; }
/* Larger text: every size one step up. */
html.big-text { --fs-1: 13px; --fs-2: 14px; --fs-3: 15px; --fs-4: 16px; --fs-5: 18px; --fs-6: 22px; --fs-7: 26px; --fs-8: 32px; --fs-9: 40px; --fs-10: 56px; }
html.big-text body { font-size: 16px; }
html.big-text p.hint, html.big-text .hint { font-size: 14px; }
/* Higher contrast: darker grey text and firmer lines (light and dark). */
html.more-contrast.mi-light, html.more-contrast:not(.mi-light) { --muted: #3D332D; --ink-2: #261F1B; }
html.more-contrast.mi-light { --line: #B1C5CA; }
html.more-contrast p.hint, html.more-contrast .hint, html.more-contrast small { color: var(--ink-2); }
html.more-contrast:not(.mi-light) { --muted: #CBDBDF; --ink-2: #E3EEF2; }
.reading-list { display: grid; gap: 8px; }

/* Board-safe presenting (app.js markPrivate): private details blurred on slides. */
html.board-safe body.presenting [data-private], html.board-safe body.presenting .mono, html.board-safe body.presenting .pt-row .nm { filter: blur(6px); user-select: none; }
#present .safe-btn[aria-pressed="true"] { color: #1E7A45; }

/* Tables: choose columns (pages.js matrix), Find in other long tables (app.js findInLongTables). */
.cols-pop { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 2px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--t-sub); font-size: 13px; }
.cols-pop b { width: 100%; font-size: 12.5px; color: var(--muted); }
.cols-pop .ck { display: inline-flex; gap: 6px; align-items: center; }
.tbl-find { max-width: 320px; margin: 0 0 10px; }
.tbl-find .tbl-n { margin-left: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
button.yt-d { border: 0; background: none; padding: 0; font: inherit; text-align: left; cursor: pointer; }
button.yt-d:hover span { text-decoration: underline; }

/* One small "?" beside the page title (owner, 15 Nov 2026), opening "What's on this page?" and "Report a figure". */
.page-guide-btn.page-help { width: 26px; height: 26px; padding: 0; gap: 0; justify-content: center; background: transparent; margin-left: 8px; }
.page-guide-btn.page-help span { width: 20px; height: 20px; background: #DFE9EC; color: #574C45; font-size: 12px; }
.page-guide-btn.page-help:hover span, .page-guide-btn.page-help:focus-visible span { background: #E8654A; color: #FFFFFF; }
html:not(.mi-light) .page-guide-btn.page-help span { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.help-pop { display: grid; min-width: 190px; }
.help-pop .opt { text-align: left; }

/* Settings → App and link, Patient data (admin-sections.js). */
.health-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 500; }
.health-row .ok-dot, .health-row .bad-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E7D4F; display: inline-block; margin-left: 4px; }
.health-row .bad-dot { background: #B3261E; }
.health-list { margin-top: 10px; }
.health-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line, #DAE4E7); }
.health-list em { font-style: normal; color: var(--muted); white-space: nowrap; }
#set-privacy select { max-width: 280px; }
.access-tbl td:first-child { white-space: nowrap; }

/* Gaps in the diary ahead (ahead-cards.js): booked (orange bar) against usual (dark tick). */
.gap-bar { position: relative; display: block; width: 160px; height: 8px; border-radius: 99px; background: #E3ECEE; }
.gap-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #F08A6E, #E8654A); }
.gap-bar b { position: absolute; top: -3px; width: 2px; height: 14px; background: #1C1715; border-radius: 1px; }
.more-gaps tr.gap-low td:first-child { font-weight: 600; }
.more-gaps h4, .more-winback h4 { margin: 18px 0 6px; font-size: 14px; }
@media (max-width: 700px) { .gap-bar { width: 80px; } }

/* Filters pop-up: Sales and Account invoices side by side at the top (the header switch moved here, owner 15 Nov 2026). */
.fnet-row { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.fnet-row .fnet { flex: 0 1 auto; }

/* Cash forecast, shorter (owner, 15 Nov 2026). */
.lead .lead-range { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--muted); }
.wd-range { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.wd .wd-late { font-style: normal; color: #14728D; font-weight: 600; }
.since-last .why-list li span em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.card p.caveat.tucked { display: none; }
.answer-card > p.lead:empty { display: none; }

/* "What next" link rows under summaries: the tabs already go there (owner, 15 Nov 2026: too much). */
.answer-card .next-row { display: none; }

/* Chart tools (pin, note, download, expand, comments): shown when the mouse is over the card, not on every card all the time
   (owner, 15 Nov 2026: too much). On phones only download and expand stay. */
@media (hover: hover) {
  .card .vtools .ib { opacity: 0; transition: opacity .15s ease; }
  .card:hover .vtools .ib, .card:focus-within .vtools .ib, .card .vtools .ib.on, .card .vtools .ib.cm.has { opacity: 1; }
}
@media (hover: none), (max-width: 700px) {
  .card .vtools .ib.pin, .card .vtools [data-act="note-add"], .card .vtools .ib.cm:not(.has) { display: none; }
}

/* Figure boxes open what is behind them (app.js wireFigures, owner 15 Nov 2026). */
.stat.stat-link { cursor: pointer; position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.stat.stat-link::after { content: '›'; position: absolute; top: 12px; right: 14px; font-size: 18px; line-height: 1; opacity: 0; transition: opacity .15s ease; color: currentColor; }
.stat.stat-link:hover, .stat.stat-link:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(34, 26, 69, .10); }
.stat.stat-link:hover::after, .stat.stat-link:focus-visible::after { opacity: .6; }
.stat.stat-link:focus-visible { outline: 2px solid #E8654A; outline-offset: 2px; }
.fig-pop { display: grid; gap: 6px; max-width: 300px; padding: 4px 4px 2px; }
.fig-pop .fp-l { font-size: 13px; color: var(--muted); font-weight: 500; }
.fig-pop .fp-v { font-size: 24px; letter-spacing: -.02em; }
.fig-pop p { margin: 0; font-size: 13px; }
.fig-pop .btn { justify-self: start; margin-top: 4px; }

/* @ mentions (mentions.js): the name list under the note box, and a name in a mention. */
.mention-pop { position: fixed; z-index: 400; min-width: 190px; padding: 6px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 12px 32px rgba(22, 18, 36, .18), 0 0 0 1px rgba(22, 18, 36, .06); display: grid; gap: 2px; }
.mention-pop button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: 500 14px Inter, sans-serif; color: #1C1715; text-align: left; cursor: pointer; }
.mention-pop button.on, .mention-pop button:hover { background: #FBD9CC; }
.mention-pop .av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E8654A; color: #FFFFFF; font-size: 12px; font-weight: 700; }
html:not(.mi-light) .mention-pop { background: #2A221E; }
html:not(.mi-light) .mention-pop button { color: #F1EFF5; }
html:not(.mi-light) .mention-pop button.on, html:not(.mi-light) .mention-pop button:hover { background: rgba(232, 101, 74, .2); }
.news-item.mention b.at { color: #B03E27; font-weight: 600; }

/* Price changes (price-changes.js). */
.more-prices .pc-svc small { display: block; font-size: 12px; color: var(--muted); }
.more-prices td.num { white-space: nowrap; }

/* Long tables (owner, 15 Nov 2026): headings stay put while the rows scroll, and the name column stays put when a wide table slides
   sideways. Tables already scroll inside their box (styles.css .tablewrap), so this is sticky within that box. */
.tablewrap > table.grid thead th { position: sticky; top: 0; z-index: 2; background: var(--t-solid); box-shadow: 0 1px 0 var(--line); }
.tablewrap > table.grid :is(thead th, tbody td, tfoot td):first-child { position: sticky; left: 0; z-index: 1; background: var(--t-solid); }
.tablewrap > table.grid thead th:first-child { z-index: 3; }
.tablewrap > table.grid tbody td:first-child { box-shadow: 1px 0 0 var(--line-2); }
.tablewrap > table.grid td.num, .tablewrap > table.grid th.num { font-variant-numeric: tabular-nums; }

/* Phones: Filters, Saved views and other pop-ups come up as a sheet from the bottom (owner, 15 Nov 2026). */
@media (max-width: 700px) {
  .pop:not([hidden]) { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: 100% !important; min-width: 0; max-height: 78vh !important;
    border-radius: 22px 22px 0 0; padding: 22px 14px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(9, 22, 25, .22); animation: sheetUp .22s ease; z-index: 80; }
  .pop:not([hidden])::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(34, 26, 69, .18); }
  .pop .filters { grid-template-columns: 1fr !important; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pop:not([hidden]) { animation: none; } }

/* Page-shaped loading boxes, the box-to-panel shape, hover linking, pull to refresh (ux-extras.js, owner 15 Nov 2026). */
.skel-shaped { pointer-events: none; }
.skel-shaped .skel.card { display: block; border-radius: 22px; padding: 0; min-height: 0; box-shadow: none; }
.morph-ghost { position: fixed; z-index: 120; pointer-events: none; background: var(--t-solid, #FFFFFF); box-shadow: 0 18px 50px rgba(22, 18, 36, .18);
  transition: left .24s cubic-bezier(.2, .8, .2, 1), top .24s cubic-bezier(.2, .8, .2, 1), width .24s cubic-bezier(.2, .8, .2, 1), height .24s cubic-bezier(.2, .8, .2, 1), border-radius .24s ease, opacity .18s ease; }
.sheet.morph-wait > * { opacity: 0; }
.sheet > * { transition: opacity .16s ease; }
table.grid tbody tr.row-lit td { color: var(--ink); }
table.grid tbody tr.row-lit td:first-child { box-shadow: inset 3px 0 0 #E8654A, 1px 0 0 var(--line-2); font-weight: 600; }
.pull-ind { position: fixed; top: 10px; left: 50%; z-index: 90; transform: translate(-50%, 0); padding: 8px 14px; border-radius: 99px; background: #1C1715; color: #F08A6E; font: 600 13px Inter, sans-serif; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.pull-ind.ready { background: #B03E27; color: #FFFFFF; }

/* Filters → Your usual (app.js filtersPop). */
.fquick { margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.fq-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px; }
.fq { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--t-solid); font: 500 13px Inter, sans-serif; color: var(--ink); cursor: pointer; }
.fq.on { background: #1C1715; color: #FFFFFF; border-color: #1C1715; }
html:not(.mi-light) .fq.on { background: #E8654A; border-color: #E8654A; }

/* The working line (app.js busyStart/busyEnd). */
html::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .2s ease;
  background: linear-gradient(90deg, transparent 0%, #E8654A 30%, #F08A6E 50%, #E8654A 70%, transparent 100%) 0 0 / 40% 100% no-repeat; }
html.is-busy::before { opacity: 1; animation: busyRun 1.1s linear infinite; }
@keyframes busyRun { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { html.is-busy::before { animation: none; background-size: 100% 100%; } }

/* Settings → Reading → Compact tables. */
html.compact-tables table.grid td { padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
html.compact-tables table.grid th { padding-top: 6px; padding-bottom: 6px; }
html.compact-tables table.grid.compact td { padding-top: 4px; padding-bottom: 4px; }

/* Back in the side panel (app.js backButton). */
.dw-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px 6px 8px; border: 0; border-radius: 99px; background: rgba(34, 26, 69, .06); color: var(--ink); font: 500 13px Inter, sans-serif; cursor: pointer; max-width: calc(100% - 60px); }
.dw-back svg { transform: rotate(180deg); width: 14px; height: 14px; flex: none; }
.dw-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-back:hover { background: #FBD9CC; color: #8E3420; }

/* Focus mode (app.js focusMode). */
html.focus-mode .rail, html.focus-mode main > .top, html.focus-mode #rail-toggle { display: none !important; }
html.focus-mode main { margin-left: auto; margin-right: auto; max-width: 1320px; padding-left: 30px; padding-top: 22px; }
.focus-exit { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 99px; background: #1C1715; color: #FFFFFF; font: 600 13px Inter, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); cursor: pointer; }
.focus-exit kbd { background: rgba(255, 255, 255, .15); color: #F08A6E; border: 0; }
.help-pop .opt kbd { margin-left: auto; }

/* Right-click menus, grouped tables, note previews (row-menu.js). */
.ctx-menu { position: fixed; z-index: 300; min-width: 220px; max-width: 320px; padding: 6px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 14px 40px rgba(22, 18, 36, .2), 0 0 0 1px rgba(22, 18, 36, .06); display: grid; gap: 1px; animation: tipIn .12s ease; }
.ctx-menu button { padding: 8px 12px; border: 0; border-radius: 9px; background: none; text-align: left; font: 500 13.5px Inter, sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-menu button:hover, .ctx-menu button:focus-visible { background: #FBD9CC; color: #8E3420; outline: none; }
.ctx-menu hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--line-2); }
table.grid tr.grp-h td { background: var(--t-sub, #EFF5F6); border-top: 1px solid var(--line); font-size: 13px; }
.tablewrap > table.grid tr.grp-h td:first-child { background: var(--t-sub, #EFF5F6); }
table.grid tr.grp-h .grp-n { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(34, 26, 69, .08); font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; }
.note-tip { position: fixed; z-index: 250; max-width: 300px; padding: 10px 12px; border-radius: 12px; background: #1C1715; color: #F1EFF5; font: 13px/1.4 Inter, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: grid; gap: 8px; pointer-events: none; }
.note-tip b { display: block; color: #F08A6E; font-weight: 600; font-size: 12px; }
.note-tip em { font-style: normal; font-size: 11.5px; opacity: .65; }
html:not(.mi-light) .ctx-menu { background: #2A221E; }
html:not(.mi-light) .ctx-menu button { color: #F1EFF5; }
html:not(.mi-light) .ctx-menu button:hover { background: rgba(232, 101, 74, .2); color: #F08A6E; }
.grp-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--muted); } .grp-bar b { color: var(--ink); }
.fig-short { cursor: help; }
.vhead h3 .season-tag { margin-left: 8px; vertical-align: 2px; font-size: 11px; background: #FBD9CC; color: #8E3420; }
table.grid tr.pin-sep td { padding: 14px 10px 6px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); background: transparent; }

/* One way to add notes: the notes button (the chart's own "Add a note" is folded into it). */
.card .vtools [data-act="note-add"] { display: none !important; }
/* Wide tables fade at the right edge until scrolled to the end (ux-extras.js markWideTables). */
.tablewrap.scroll-x:not(.at-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }

/* Tips (ux-extras.js). */
.tips-pop { max-width: 380px; padding: 2px 6px 4px; }
.tips-pop p { margin: 0; padding: 7px 4px; font-size: 13.5px; line-height: 1.45; border-top: 1px solid var(--line-2); }
.tips-pop p:first-of-type { border-top: 0; }
.tip-nudge { position: fixed; z-index: 140; display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 14px; border-radius: 12px; background: #1C1715; color: #F1EFF5; font: 13px Inter, sans-serif; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); transition: opacity .5s ease; }
.tip-nudge b { color: #F08A6E; margin-right: 6px; }
.tip-nudge button { border: 0; border-radius: 8px; padding: 5px 10px; background: rgba(255, 255, 255, .12); color: #FFFFFF; font: 600 12.5px Inter, sans-serif; cursor: pointer; }
.tip-nudge.fade { opacity: 0; }
table.grid b.has-dup { text-decoration: underline dotted rgba(34, 26, 69, .35); text-underline-offset: 3px; cursor: help; }

/* Orange kept for what matters (owner, 15 Nov 2026): the sales box, Ask, main buttons, the active sidebar item, warnings. Small
   secondary things are crisp ink instead: a dark underline under the open tab, outlined "Needs Xero"-style pills, plain tab figures. */
html.mi-light .sn::after { background: #1C1715; height: 2px; }
html:not(.mi-light) .sn::after { background: #F1EFF5; height: 2px; }
html.mi-light .sc-need { color: #3D332D; background: transparent; box-shadow: inset 0 0 0 1px rgba(34, 26, 69, .22); font-weight: 600; }
html:not(.mi-light) .sc-need { color: rgba(255, 255, 255, .85); background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
html.mi-light .sn-f { color: #3D332D; background: #E8E5EF; }
html.mi-light .sn-f.warn { color: #3D332D; background: #E8E5EF; box-shadow: inset 2px 0 0 #30AAD6; }
html.mi-light #title .title-beta { color: #3D332D; background: transparent; box-shadow: inset 0 0 0 1px rgba(34, 26, 69, .25); }
html.mi-light button.kt.wait .kt-w { color: #3D332D; text-decoration: underline; text-decoration-color: rgba(34, 26, 69, .3); text-underline-offset: 3px; }
.set-tabs { margin: 0 0 18px; }
.ny-wrap { display: inline-flex; align-items: center; gap: 0; }
.ny-wrap .ny-x { margin-left: -4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; opacity: .55; }
.ny-wrap .ny-x:hover { opacity: 1; background: rgba(34, 26, 69, .08); color: var(--ink); }

/* Charts: lines barely curved, so they don't overshoot between weeks (owner, 15 Nov 2026) — visual.js smooth 0.12. */
/* The ⓘ beside card titles: easier to notice. */
html.mi-light .info-tip { width: 19px; height: 19px; background: #D5E2E6; color: #3D332D; font-weight: 700; font-size: 11.5px; }
html.mi-light .info-tip:hover, html.mi-light .info-tip[aria-expanded="true"] { background: #1C1715; color: #FFFFFF; }
html:not(.mi-light) .info-tip { width: 19px; height: 19px; background: rgba(255, 255, 255, .16); color: #FFFFFF; }
/* The initial in the top bar: ink, not one more orange thing. */
html.mi-light .me-av { background: #1C1715; color: #F08A6E; }

/* Hover tips (ux-extras.js): ink, rounded, quick. */
/* (the app's hover labels are .htip in controls.js) */
/* The dates chip in the top bar once the period button has scrolled away. */
.period-mini { display: none; }
html.period-up .period-mini { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; font-size: 13px; font-weight: 600; }
html.period-up .period-mini svg { width: 15px; height: 15px; }
@media (max-width: 700px) { html.period-up .period-mini { display: none; } }
/* Phones: wide tables show 3 columns until "All columns". */
@media (max-width: 699px) { table.grid.ph-cut :is(th, td):nth-child(n+4) { display: none; } .ph-more { margin: 0 0 8px; } }
@media (min-width: 700px) { .ph-more { display: none; } }
/* The app's hover labels (controls.js .htip) in the house style: ink, rounded, a touch larger, quicker to read (owner, 15 Nov 2026). */
.htip { background: #1C1715 !important; color: #F1EFF5 !important; border-radius: 10px !important; padding: 7px 11px !important; font: 500 12.5px/1.45 Inter, sans-serif !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .22) !important; border: 0 !important; white-space: pre-line; }
.htip kbd { color: #F08A6E; }
.tablewrap > table.grid td.one-line { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tablewrap > table.grid td.one-line :is(b, span, button) { white-space: nowrap; }

/* Page titles on laptop-sized screens: a step smaller with tighter spacing (owner, 15 Nov 2026). */
@media (max-width: 1439px) and (min-width: 701px), (max-height: 860px) and (min-width: 701px) {
  h1 { font-size: 32px; }
  main > .bar { margin-top: 16px; padding-bottom: 16px; }
}

/* Printing a page (Ctrl+P), not the Board pack (owner, 15 Nov 2026): the page only, on white, with a branded line at the top. */
@media print {
  .rail, main > .top, #subnav, .bar .tools, #chips, .needs-you, .vtools, .info-tip, .next-row, .ph-more, .tbl-find, .tbl-q, .grp-bar,
  .tip-nudge, .ctx-menu, #focus-exit, .period-mini, .sheet, #scrim, .pin-page, .page-guide-btn, .yf-add, .htip, #live-pill, .pull-ind { display: none !important; }
  html, body { background: #FFFFFF !important; }
  main { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  main::before { content: attr(data-print-head); display: block; margin: 0 0 5mm; padding: 0 0 3mm; border-bottom: 2px solid #E8654A; font: 600 10pt/1.3 Inter, sans-serif; color: #3D332D; }
  .card { break-inside: avoid; box-shadow: none !important; border: 1px solid #DAE4E7 !important; }
  .tablewrap { max-height: none !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
  .tablewrap > table.grid :is(thead th, tbody td, tfoot td) { position: static !important; }
  h1 { font-size: 22pt !important; }
}
/* Ask, while it works: steps done, ticked. */
.sw-done { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.sw-done li::before { content: '✓'; margin-right: 8px; color: #2E7D4F; font-weight: 700; }

/* The side panel's width (ux-extras.js drawerResize): dragged wider by the handle on its left edge; double-click resets. */
#drawer { width: min(var(--dw, 600px), 100vw); }
.dw-handle { display: none; }
@media (min-width: 701px) {
  html:has(#drawer.open) .dw-handle { display: block; position: fixed; top: 0; bottom: 0; right: calc(min(var(--dw, 600px), 100vw) - 5px); width: 10px; z-index: 61; cursor: ew-resize; }
  .dw-handle::after { content: ''; position: absolute; top: 50%; left: 3px; width: 4px; height: 44px; margin-top: -22px; border-radius: 4px; background: rgba(34, 26, 69, .18); transition: background .15s ease; }
  .dw-handle:hover::after, html.dw-dragging .dw-handle::after { background: #1C1715; }
  html.dw-dragging, html.dw-dragging * { cursor: ew-resize !important; user-select: none !important; }
}

/* One button style (owner, 15 Nov 2026): main action = solid orange (unchanged); everything else = white with a fine ink outline;
   ghost = no outline until hovered. Crisp, not washed out. */
html.mi-light .btn:not(.primary):not(.ghost):not(.danger), html.mi-light .btn.next-step {
  background: #FFFFFF; border: 1px solid rgba(34, 26, 69, .2); color: #1C1715; box-shadow: none; font-weight: 600; }
html.mi-light .btn:not(.primary):not(.ghost):not(.danger):hover, html.mi-light .btn.next-step:hover { border-color: rgba(34, 26, 69, .5); background: #FFFFFF; color: #1C1715; }
html.mi-light .btn.ghost { background: transparent; border: 1px solid transparent; color: #3D332D; box-shadow: none; }
html.mi-light .btn.ghost:hover { background: rgba(34, 26, 69, .06); color: #1C1715; }
html.mi-light .btn :is(svg) { opacity: .85; }
html:not(.mi-light) .btn:not(.primary):not(.ghost):not(.danger), html:not(.mi-light) .btn.next-step { background: transparent; border: 1px solid rgba(255, 255, 255, .22); color: #F1EFF5; box-shadow: none; }
html:not(.mi-light) .btn:not(.primary):not(.ghost):not(.danger):hover { border-color: rgba(255, 255, 255, .5); }
/* Cash forecast: the week-by-week chart and the week panel beside it end level (owner, 15 Nov 2026: cards side by side should line up). */
.sheet table.grid td.one-line { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.grid td.one-line { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* To chase: tags, a note and comments on each invoice (owner, 17 Nov 2026). Tags are crisp ink outlines (orange rule), never filled. */
.rc-bits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; min-width: 200px; max-width: 300px; }
.rc-tag { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--ink-2, #3D332D); color: var(--ink-2, #3D332D); border-radius: 999px; padding: 0 8px; font-size: 11.5px; line-height: 18px; white-space: nowrap; background: transparent; }
.rc-tag-x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 13px; line-height: 1; }
.rc-cnote { font-size: 12px; color: var(--muted, #574C45); max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-count { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; line-height: 15px; text-align: center; margin-left: 2px; }
.rc-picks { display: inline-flex; gap: 8px; align-items: center; }
.rc-panel textarea, .rc-panel input[type="text"] { width: 100%; box-sizing: border-box; }
.rc-panel .toolbar input[type="text"] { flex: 1; min-width: 0; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-comments { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow: auto; }
.rc-comment { border: 1px solid var(--line, #E4DED8); border-radius: 10px; padding: 8px 10px; background: var(--card, #fff); }
.rc-comment .meta { font-size: 12px; color: var(--muted, #574C45); margin-bottom: 2px; }
.rc-panel .linkish { border: 0; background: none; padding: 0; color: var(--ink-2, #3D332D); text-decoration: underline; cursor: pointer; font-size: 12px; }
