/* SMB Properties: the client's own look (lane smb-theme, 4 Dec 2026; the founder: "recolor crm base to their brand
   colors as per their brand guideline, cook up something that will look premium and personalized to them").
   Source: SMB's brand guidelines (smb/intake/2026-12-04-brand/smb-brand-guidelines.pdf): Deep Teal #1D423D and
   Oxblood #320A16 primary, Sand Dune #D5C4A4 secondary, Warm Taupe #9E8564 accent, Porcelain White #F8F6F3 and
   Obsidian #050F0D bases; Givonic (no web licence) stands in as Albert Sans (OFL, self-hosted); the chevron of the
   mark is the one motif. Linked last (index.html), so it only re-points the shell's tokens and adds the finish: no
   behaviour, no words. Every text/ground pair is WCAG AA (docs/line/theme-smb/README.md lists them).
   Meaning keeps its base mapping: --act (teal) = people and actions, --ai (oxblood, rose on dark) = the AI only. */
@font-face{font-family:"Albert Sans";src:url(brand/albert-sans.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

/* ===== tokens: light (Porcelain grounds, Deep Teal actions, Sand hairlines, Oxblood for the AI) ===== */
:root{
  --display:"Albert Sans",Inter,"Avenir Next",system-ui,sans-serif;
  --body:"Albert Sans",Inter,-apple-system,"Segoe UI",Roboto,sans-serif;
  --smb-teal:#1D423D;--smb-teal-2:#25524B;--smb-oxblood:#320A16;--smb-sand:#D5C4A4;--smb-taupe:#9E8564;
  --smb-porcelain:#F8F6F3;--smb-obsidian:#050F0D;
  --bg:#F8F6F3;--bg-2:#F1EDE6;--surface:#ffffff;--soft:#EFEAE0;--sel:#E9E1D1;
  --hover:rgba(29,66,61,.05);--press:rgba(29,66,61,.09);
  --ink:#10201D;--ink-2:#34433F;--muted:#585D55;--faint:#63615A;--line-ctl:#8F8878;--line:#E7E1D6;--line-2:#D5C4A4;
  --ai:#561326;--ai-soft:#F4E8EB;--ai-line:#DDBFC8;
  --act:#1D423D;--act-soft:#E3ECE9;--act-line:#B3C9C3;--on-act:#F8F6F3;
  --good:#226B46;--good-bg:#E3F1E8;--warn:#80520E;--warn-bg:#F7EEDC;--bad:#A02E28;--bad-bg:#F8E3E0;
  --gold:#75603F;--gold-line:#C9B48F;
  --scrim:rgba(5,15,13,.38);
  --shadow-1:0 1px 2px rgba(29,66,61,.07),0 0 0 1px rgba(29,66,61,.02);
  --shadow-2:0 10px 30px rgba(29,66,61,.14),0 1px 3px rgba(29,66,61,.08);
  --shadow-3:0 24px 60px rgba(5,15,13,.24);
  --r2:10px;--r3:14px;
  --tr-mark:var(--smb-taupe);
}
/* ===== tokens: dark (Obsidian and Deep Teal depths, Sand for the second voice, taupe-gold highlights) ===== */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0A1714;--bg-2:#050F0D;--surface:#0F1E1B;--soft:#152825;--sel:#1A3430;
  --hover:rgba(213,196,164,.06);--press:rgba(213,196,164,.10);
  --ink:#F1EDE5;--ink-2:#D9CCB4;--muted:#A89D88;--faint:#A39A8A;--line-ctl:#5E7069;--line:#1B2C28;--line-2:#2B403B;
  --ai:#E7A6B6;--ai-soft:#2A1219;--ai-line:#5A2636;
  --act:#8FC9BD;--act-soft:#12312B;--act-line:#2A5A51;--on-act:#05100E;
  --good:#7FD1A0;--good-bg:#11281C;--warn:#E9C27A;--warn-bg:#2B2210;--bad:#F29A90;--bad-bg:#351815;
  --gold:#C9AE84;--gold-line:#5C4D36;--soft:#152825;--scrim:rgba(0,0,0,.6);
  --shadow-1:0 1px 2px rgba(0,0,0,.45);--shadow-2:0 10px 30px rgba(0,0,0,.55),0 0 0 1px rgba(213,196,164,.05);
  --shadow-3:0 24px 60px rgba(0,0,0,.65),0 0 0 1px rgba(213,196,164,.06);
  --tr-mark:var(--smb-sand)}}
:root[data-theme="dark"]{
  --bg:#0A1714;--bg-2:#050F0D;--surface:#0F1E1B;--soft:#152825;--sel:#1A3430;
  --hover:rgba(213,196,164,.06);--press:rgba(213,196,164,.10);
  --ink:#F1EDE5;--ink-2:#D9CCB4;--muted:#A89D88;--faint:#A39A8A;--line-ctl:#5E7069;--line:#1B2C28;--line-2:#2B403B;
  --ai:#E7A6B6;--ai-soft:#2A1219;--ai-line:#5A2636;
  --act:#8FC9BD;--act-soft:#12312B;--act-line:#2A5A51;--on-act:#05100E;
  --good:#7FD1A0;--good-bg:#11281C;--warn:#E9C27A;--warn-bg:#2B2210;--bad:#F29A90;--bad-bg:#351815;
  --gold:#C9AE84;--gold-line:#5C4D36;--soft:#152825;--scrim:rgba(0,0,0,.6);
  --shadow-1:0 1px 2px rgba(0,0,0,.45);--shadow-2:0 10px 30px rgba(0,0,0,.55),0 0 0 1px rgba(213,196,164,.05);
  --shadow-3:0 24px 60px rgba(0,0,0,.65),0 0 0 1px rgba(213,196,164,.06);
  --tr-mark:var(--smb-sand)}
/* the impact pages' own tokens, in SMB's family (gain green, loss red, money teal, needs oxblood); figures need 7:1
   on every ground they sit on (impact-contrast.browser.test.ts) */
:root{--ik-gain:#1A5636;--ik-loss:#8A1F1A;--ik-money:#1D423D;--ik-needs:#561326;--ik-ink-2:#34433F;--ik-money-bg:#E3ECE9;--ik-needs-bg:#F4E8EB;--ik-loss-bg:#F8E3E0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--ik-gain:#7FD1A0;--ik-loss:#FFAA9E;--ik-money:#8FC9BD;--ik-needs:#E7A6B6;--ik-ink-2:#D9CCB4;--ik-money-bg:#12312B;--ik-needs-bg:#2A1219;--ik-loss-bg:#351815}}
:root[data-theme="dark"]{--ik-gain:#7FD1A0;--ik-loss:#FFAA9E;--ik-money:#8FC9BD;--ik-needs:#E7A6B6;--ik-ink-2:#D9CCB4;--ik-money-bg:#12312B;--ik-needs-bg:#2A1219;--ik-loss-bg:#351815}
/* charts: the AI in oxblood, people in teal, the comparison in sand */
:root{--ch-ctx:var(--gold-line)}

/* ===== type: Givonic's voice (geometric, open, a touch of warmth) ===== */
body{font-feature-settings:normal;letter-spacing:.003em}
.phead h2{font-family:var(--display);font-weight:600;letter-spacing:-.012em}
.card h3{color:var(--gold);letter-spacing:.08em}
.navsec{text-transform:uppercase;letter-spacing:.1em;font-size:10.5px}
::selection{background:color-mix(in srgb,var(--smb-sand) 45%,transparent)}
*{scrollbar-color:var(--line-2) transparent}

/* ===== the side bar: Deep Teal in the light look, Obsidian in the dark; the mark in Sand ===== */
.side{
  --bg-2:#1D423D;--surface:#173733;--soft:#24504A;--sel:#183A35;--hover:#23463F;--press:#183A35;
  --ink:#F8F6F3;--ink-2:#E9E0CF;--muted:#C9BFAC;--faint:#B5AA94;--line:#33554F;--line-ctl:#6E8A84;--line-2:#3E605A;
  --act:#D5C4A4;--on-act:#1D423D;--ai:#F4D9E0;--ai-soft:#4A2030;--good:#8FD9AE;--good-bg:rgba(143,217,174,.18);
  --warn:#E9C27A;--warn-bg:rgba(233,194,122,.18);--bad:#F29A90;--bad-bg:rgba(242,154,144,.18);
  color-scheme:dark;
  background:var(--bg-2);
  border-right-color:#14302C}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .side{
  --bg-2:#050F0D;--surface:#0F1E1B;--soft:#14302B;--sel:#14302B;--hover:#0F221E;--press:#14302B;--line:#16261F;--line-2:#22362F;
  --ink:#F1EDE5;--ink-2:#E2D7C3;--muted:#A89D88;--faint:#A0968A;border-right-color:#14231F}}
:root[data-theme="dark"] .side{
  --bg-2:#050F0D;--surface:#0F1E1B;--soft:#14302B;--sel:#14302B;--hover:#0F221E;--press:#14302B;--line:#16261F;--line-2:#22362F;
  --ink:#F1EDE5;--ink-2:#E2D7C3;--muted:#A89D88;--faint:#A0968A;border-right-color:#14231F}
.side .nav[aria-current="page"]{box-shadow:inset 2px 0 0 var(--smb-sand)}
.app.rail .side .nav[aria-current="page"]{box-shadow:none}
.side .nav .b.st{background:var(--smb-sand);color:var(--smb-teal)}
/* the workspace's mark: SMB's chevrons in Sand (the placeholder's drawing hides behind it) */
.side .logo{background:url(brand/smb-mark-reversed.svg) center/contain no-repeat}
.side .logo>*{display:none}
.side .brand-t b{font-family:var(--display);letter-spacing:.01em}
.side .brand-t small{color:var(--muted)}

/* ===== the top bar and the page ===== */
.top{background:color-mix(in srgb,var(--bg) 94%,var(--smb-sand));border-bottom-color:var(--line)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .top{background:var(--bg)}}
:root[data-theme="dark"] .top{background:var(--bg)}

/* ===== primitives ===== */
.btn{border-radius:var(--r1);transition:background .14s,border-color .14s,box-shadow .14s,color .14s}
.btn.primary,.btn.st.fill{box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 1px 2px rgba(5,15,13,.18)}
.btn.primary:hover,.btn.st.fill:hover{filter:none;background:var(--smb-teal-2);border-color:var(--smb-teal-2)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) :is(.btn.primary,.btn.st.fill):hover{background:#A3D6CB;border-color:#A3D6CB}}
:root[data-theme="dark"] :is(.btn.primary,.btn.st.fill):hover{background:#A3D6CB;border-color:#A3D6CB}
.card{border-radius:var(--r2);box-shadow:var(--shadow-1)}
.chip,.pill{letter-spacing:.01em}
.seg{background:var(--soft)}
.seg button[aria-selected="true"],.seg button[aria-pressed="true"],.seg button.on{box-shadow:0 1px 2px rgba(29,66,61,.12),0 0 0 1px var(--line)}
th{font-weight:600;color:var(--muted);letter-spacing:.02em}
/* the empty states: a plain field (the base's dot grid off) */
.empty{background-image:none}

/* ===== the inbox: the buyer on paper, the AI's words edged in oxblood, people's in teal ===== */
.w-msg.ai .w-bubble{background:color-mix(in srgb,var(--ai-soft) 55%,var(--surface))}
.w-msg.st .w-bubble{background:color-mix(in srgb,var(--act-soft) 55%,var(--surface))}

/* ===== the waiting mark and the first paint: the maker's symbol in SMB's taupe-gold ===== */
.tr-wait{color:var(--gold)}

/* ===== sign-in: one picture and one quiet field. Le Mirage at night beside the form (wide) or above it (phone).
   ONE logo, alone at the top of the form: the company's own file (login-mark.js), never swapped or recoloured, the
   base's light plate on the dark look (the founder, 19 Nov; login-mark.browser.test.ts), 64 px tall (the test's least).
   The firm's name beside it stays for screen readers only. The sales team's line of the day (the founder, 19 Nov) stays, as plain quiet type. The picture is a
   background: the form works before it arrives and nothing moves when it does. Gold only as one hairline. ===== */
:root{--smb-night:#0A1714;
  --smb-signin-wide:url(brand/smb-signin-wide.webp);
  --smb-signin-narrow:url(brand/smb-signin-narrow.webp)}
@supports (background-image:image-set(url(x.avif) type("image/avif"))){:root{
  --smb-signin-wide:image-set(url(brand/smb-signin-wide.avif) type("image/avif"),url(brand/smb-signin-wide.webp) type("image/webp"));
  --smb-signin-narrow:image-set(url(brand/smb-signin-narrow.avif) type("image/avif"),url(brand/smb-signin-narrow.webp) type("image/webp"))}}
.login:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;place-items:stretch;padding:0;background:var(--bg)}
/* phone: the tower in the top of the screen, as tall as the form allows (a 700 px phone keeps the whole form) */
.login::before{content:"";display:block;grid-row:1;grid-column:1;height:clamp(120px,calc(100vh - 580px),38vh);
  background:linear-gradient(180deg,rgba(10,23,20,0) 60%,rgba(10,23,20,.35)),var(--smb-signin-narrow) 32% 28%/cover no-repeat,var(--smb-night)}
.login-wrap{grid-row:2;grid-column:1;justify-self:center;width:min(440px,100%);padding:var(--s2) var(--s5) var(--s5)}
.login-card{background:transparent;border:0;box-shadow:none;padding:var(--s4) 0 var(--s3);border-radius:0}
.login-brand{margin:0 0 var(--s1)}
.login-brand>div{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.login-logo img{width:80px;height:64px}
.login-line{border-left:0;padding-left:0}
.login-line p{font-weight:400;color:var(--muted);letter-spacing:0}
.login-card h1{font:300 32px/1.15 var(--display);letter-spacing:-.02em;margin:0}
.login-card .btn.primary{height:48px;border-radius:var(--r2);letter-spacing:.02em}
.login-card input{border-radius:var(--r2)}
@media (min-width:1024px){
  .login:not([hidden]){grid-template-columns:minmax(460px,5fr) 7fr;grid-template-rows:1fr}
  .login::before{grid-row:1;grid-column:2;height:auto;min-height:100%;
    background:linear-gradient(180deg,rgba(10,23,20,0) 62%,rgba(10,23,20,.62)),var(--smb-signin-wide) 42% center/cover no-repeat,var(--smb-night)}
  /* SMB's own words (the guideline's page 30), bottom left of the picture, under the one gold hairline */
  .login::after{content:"Bringing Spaces to Life with Vision and Precision";grid-row:1;grid-column:2;align-self:end;justify-self:start;
    margin:0 0 56px 56px;max-width:19ch;padding-top:20px;text-wrap:balance;
    background:linear-gradient(var(--smb-taupe),var(--smb-taupe)) left top/48px 1px no-repeat;
    font:300 30px/1.25 var(--display);letter-spacing:-.01em;color:#F8F6F3;pointer-events:none}
  .login-wrap{grid-row:1;grid-column:1;align-self:center;width:min(380px,calc(100% - 96px));padding:var(--s5) 0}
  .login-card{padding:0 0 var(--s4)}
  .login-card h1{font-size:36px}
}

/* print: the base's documents stay as they were measured (black on white, at most two A4 pages:
   impact-month.browser.test.ts), so the typeface goes back to the base's for paper */
@media print{:root{--display:Inter,"Avenir Next",system-ui,sans-serif;--body:Inter,-apple-system,"Segoe UI",Roboto,sans-serif}body{letter-spacing:normal}}
