/* TOKENS:START */
/* Written by tools/design-tokens.py. Do not edit by hand. */
:root {
  --bg: #F4F6FA;
  --surface: #FCFDFF;
  --surface-2: #EEF2F8;
  --sunken: #E7ECF4;
  --ink: #111A2E;
  --ink-2: #3D4862;
  --muted: #5A6680;
  --line: #D9DFEA;
  --line-strong: #7E8AA1;
  --primary: #002060;
  --primary-hover: #0B2E7A;
  --primary-tint: #E6ECF8;
  --on-primary: #FFFFFF;
  --accent: #006C07;
  --accent-tint: #E3F1E4;
  --focus: #006C07;
  --danger: #B42318;
  --danger-tint: #FCEBE9;
  --warning: #8A5200;
  --warning-tint: #FDF2DD;
  --success: #1D7746;
  --success-tint: #E2F2E8;
  --info: #1F58B8;
  --info-tint: #E7EFFB;
  --binar: #A84B29;
  --binar-tint: #FBEDE7;
  --walk: #5B2A86;
  --walk-tint: #EFE7F7;
  --on-walk: #FFFFFF;
  --walk-deep: #3F1D5E;
  --walk-soft: #D9C8EA;
  --walk-shadow: rgba(59, 23, 90, .32);
  --walk-halo: rgba(91, 42, 134, .22);
  --walk-pulse: rgba(91, 42, 134, .45);
  --walk-dim: rgba(24, 18, 36, .38);
  --walk-line: rgba(255, 255, 255, .18);
  --walk-hover: rgba(255, 255, 255, .12);
  --walk-ring: #5B2A86;
  --on-walk-ring: #FFFFFF;
  --walk-edge: #5B2A86;
  --map-sea: #E8F0F7;
  --map-land: #F6F4EE;
  --map-line: #C3C9D2;
  --logo-plate: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0C121E;
  --surface: #141C2B;
  --surface-2: #1A2436;
  --sunken: #0F1624;
  --ink: #E8EDF5;
  --ink-2: #BAC4D6;
  --muted: #94A1B9;
  --line: #283349;
  --line-strong: #617090;
  --primary: #9DB8F0;
  --primary-hover: #B9CCF5;
  --primary-tint: #1A2A4B;
  --on-primary: #0C121E;
  --accent: #72C97A;
  --accent-tint: #16301E;
  --focus: #72C97A;
  --danger: #F49A90;
  --danger-tint: #3A1C1A;
  --warning: #E9B456;
  --warning-tint: #33270F;
  --success: #6FCB93;
  --success-tint: #14301F;
  --info: #8FB5F6;
  --info-tint: #16264A;
  --binar: #E89A7E;
  --binar-tint: #3A2219;
  --walk: #5B2A86;
  --walk-tint: #EFE7F7;
  --on-walk: #FFFFFF;
  --walk-deep: #3F1D5E;
  --walk-soft: #D9C8EA;
  --walk-shadow: rgba(0, 0, 0, .5);
  --walk-halo: rgba(183, 148, 224, .28);
  --walk-pulse: rgba(183, 148, 224, .45);
  --walk-dim: rgba(4, 7, 12, .6);
  --walk-line: rgba(255, 255, 255, .18);
  --walk-hover: rgba(255, 255, 255, .12);
  --walk-ring: #B794E0;
  --on-walk-ring: #1E0F2E;
  --walk-edge: rgba(183, 148, 224, .6);
  --map-sea: #0E1622;
  --map-land: #1B2432;
  --map-line: #3A475B;
  --logo-plate: #FFFFFF;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C121E;
  --surface: #141C2B;
  --surface-2: #1A2436;
  --sunken: #0F1624;
  --ink: #E8EDF5;
  --ink-2: #BAC4D6;
  --muted: #94A1B9;
  --line: #283349;
  --line-strong: #617090;
  --primary: #9DB8F0;
  --primary-hover: #B9CCF5;
  --primary-tint: #1A2A4B;
  --on-primary: #0C121E;
  --accent: #72C97A;
  --accent-tint: #16301E;
  --focus: #72C97A;
  --danger: #F49A90;
  --danger-tint: #3A1C1A;
  --warning: #E9B456;
  --warning-tint: #33270F;
  --success: #6FCB93;
  --success-tint: #14301F;
  --info: #8FB5F6;
  --info-tint: #16264A;
  --binar: #E89A7E;
  --binar-tint: #3A2219;
  --walk: #5B2A86;
  --walk-tint: #EFE7F7;
  --on-walk: #FFFFFF;
  --walk-deep: #3F1D5E;
  --walk-soft: #D9C8EA;
  --walk-shadow: rgba(0, 0, 0, .5);
  --walk-halo: rgba(183, 148, 224, .28);
  --walk-pulse: rgba(183, 148, 224, .45);
  --walk-dim: rgba(4, 7, 12, .6);
  --walk-line: rgba(255, 255, 255, .18);
  --walk-hover: rgba(255, 255, 255, .12);
  --walk-ring: #B794E0;
  --on-walk-ring: #1E0F2E;
  --walk-edge: rgba(183, 148, 224, .6);
  --map-sea: #0E1622;
  --map-land: #1B2432;
  --map-line: #3A475B;
  --logo-plate: #FFFFFF;
  color-scheme: dark;
}
/* TOKENS:END */
/* APP TOKENS:START */
/* App colours (design/app-glyph.json), shadows and scrim: the only other place a colour value may be written. */
:root {
  --app-tosca: #00B3B3; --app-vista: #7C9ED9; --app-vista-support: #77815C; --app-binar: #D97757;
  --app-vega: #002060; --app-yara: #560591;
  --app-ops: #0F5E73; --app-dms: #B7860B; --app-adminx: #B04FB0; --app-finance: #7A5C99;
  --glyph-dark: #111A2E; --glyph-light: #FFFFFF;
  --shadow-1: 0 1px 2px rgba(17, 26, 46, .05), 0 2px 8px rgba(17, 26, 46, .05);
  --shadow-2: 0 2px 6px rgba(17, 26, 46, .08), 0 16px 40px rgba(17, 26, 46, .14);
  --scrim: rgba(12, 18, 30, .32);
  --tile-ring: transparent;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 68px;
  /* Odoo stand-in (apps/odoo*.js; Builder O, 15 Oct 2026): Odoo 19 Community's own values from the web client's SCSS (sources in apps/odoo.js) */
  --oe-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, "Noto Sans", Arial, sans-serif;
  --oe-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --oe-brand: #71639E; --oe-brand-hover: #5A4E80; --oe-on-brand: #FFFFFF;
  --oe-bar: #71639E; --oe-bar-line: #5A4E80; --oe-bar-ink: rgba(255, 255, 255, .9); --oe-bar-hover: rgba(0, 0, 0, .08);
  --oe-ground: #F8F9FA; --oe-sheet: #FFFFFF; --oe-ink: #212529; --oe-head: #000000; --oe-muted: rgba(73, 80, 87, .76);
  --oe-line: #DEE2E6; --oe-line-strong: #CED4DA; --oe-link: #65588F;
  --oe-btn2: #DEE2E6; --oe-btn2-hover: #CED4DA; --oe-btn2-ink: #212529;
  --oe-cur: #DDDBE8; --oe-cur-line: #71639E; --oe-cur-ink: #000000; --oe-row-hover: rgba(0, 0, 0, .055);
  --oe-danger: #D23F3A; --oe-danger-tint: #FAE1E3; --oe-warn: #9A6B01; --oe-warn-tint: #FFF3D9; --oe-info: #0180A5; --oe-info-tint: #DCF1F4;
  --oe-shadow: 0 1px 3px rgba(48, 48, 48, .12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 44px rgba(0, 0, 0, .5);
    --scrim: rgba(4, 7, 12, .6);
    --tile-ring: rgba(232, 237, 245, .22);
    /* Odoo stand-in, dark: Odoo's own grey scale (Community has no built-in dark mode) */
    --oe-ground: #212529; --oe-sheet: #343A40; --oe-ink: #F8F9FA; --oe-head: #FFFFFF; --oe-muted: rgba(206, 212, 218, .8);
    --oe-line: #495057; --oe-line-strong: #6C757D; --oe-link: #AAA1C6;
    --oe-btn2: #495057; --oe-btn2-hover: #6C757D; --oe-btn2-ink: #F8F9FA;
    --oe-cur: #404253; --oe-cur-line: #AAA1C6; --oe-cur-ink: #FFFFFF; --oe-row-hover: rgba(255, 255, 255, .06);
    --oe-danger: #F0A09C; --oe-danger-tint: #563941; --oe-warn: #FFC94D; --oe-warn-tint: #5D5133; --oe-info: #7FD3E3; --oe-info-tint: #2E4F58;
    --oe-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 44px rgba(0, 0, 0, .5);
  --scrim: rgba(4, 7, 12, .6);
  --tile-ring: rgba(232, 237, 245, .22);
  /* Odoo stand-in, dark (same values as above) */
  --oe-ground: #212529; --oe-sheet: #343A40; --oe-ink: #F8F9FA; --oe-head: #FFFFFF; --oe-muted: rgba(206, 212, 218, .8);
  --oe-line: #495057; --oe-line-strong: #6C757D; --oe-link: #AAA1C6;
  --oe-btn2: #495057; --oe-btn2-hover: #6C757D; --oe-btn2-ink: #F8F9FA;
  --oe-cur: #404253; --oe-cur-line: #AAA1C6; --oe-cur-ink: #FFFFFF; --oe-row-hover: rgba(255, 255, 255, .06);
  --oe-danger: #F0A09C; --oe-danger-tint: #563941; --oe-warn: #FFC94D; --oe-warn-tint: #5D5133; --oe-info: #7FD3E3; --oe-info-tint: #2E4F58;
  --oe-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
/* APP TOKENS:END */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: var(--header-h); display: flex; align-items: center; gap: 16px; padding-inline: 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; height: 56px; padding: 5px 8px; border-radius: 8px; background: var(--logo-plate); flex-shrink: 0; }
.logo img { height: 46px; width: auto; display: block; }
.vsep { width: 1px; height: 32px; background: var(--line); flex-shrink: 0; }
.switcher, .hold { position: relative; }
.switch-btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 6px; border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer; font-weight: 600; }
.switch-btn .chev { color: var(--muted); }
.tile { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--tile-ring); }
.tile svg.i { width: 17px; height: 17px; }
.tile.sm { width: 24px; height: 24px; border-radius: 6px; }
.tile.sm svg.i { width: 15px; height: 15px; }
.t-home { background: var(--primary-tint); color: var(--primary); }
.t-tosca { background: var(--app-tosca); color: var(--glyph-dark); }
.t-vista { background: var(--app-vista); color: var(--glyph-dark); }
.t-vsup { background: var(--app-vista-support); color: var(--glyph-dark); }
.t-binar { background: var(--app-binar); color: var(--glyph-dark); }
.t-vega { background: var(--app-vega); color: var(--glyph-light); }
.t-yara { background: var(--app-yara); color: var(--glyph-light); }
.t-ops { background: var(--app-ops); color: var(--glyph-light); }
.t-dms { background: var(--app-dms); color: var(--glyph-dark); }
.t-adminx { background: var(--app-adminx); color: var(--glyph-light); }
.t-fin { background: var(--app-finance); color: var(--glyph-light); }
.t-ok { background: var(--success-tint); color: var(--success); }
.t-bad { background: var(--danger-tint); color: var(--danger); }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: text; }
.search span { flex: 1; }
kbd { font: 500 12.5px var(--font); padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.top > *, .top-right > * { flex-shrink: 0; }
.top > .search { flex-shrink: 1; }
.demo-strip, .brk, .demo.ph { display: none; }
.demo { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.demo svg.i { width: 15px; height: 15px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: var(--surface); font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.ask { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font-weight: 600; color: var(--ink); }
.me { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 8px; margin-left: 4px; height: 44px; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; text-align: left; border-radius: 0 8px 8px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: 11.5px; }
.avatar svg.i { width: 18px; height: 18px; }
.me-name { line-height: 1.25; }
.me-name b { display: block; font-weight: 600; }
.me-name span { font-size: 12.5px; color: var(--muted); }
.menu-btn { display: none; }

/* Popovers */
.pop { position: absolute; top: 48px; left: 0; z-index: 35; width: 320px; max-width: calc(100vw - 24px); padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-2); transform-origin: top left; animation: pop .18s var(--ease-out); }
.pop.right { left: auto; right: 0; transform-origin: top right; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-4px); } }
.pop .row-a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-decoration: none; font-weight: 500; cursor: pointer; text-align: left; }
.pop .row-a[aria-current="true"] { background: var(--accent-tint); color: var(--accent); }
.pop .row-a .grow { flex: 1; min-width: 0; }
.pop .row-a small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.pop .row-a .state { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pop .row-a .state svg.i { width: 14px; height: 14px; }
.pop .row-a.dim .tile { opacity: .55; }
.pop .cap { display: block; padding: 8px 10px 4px; color: var(--muted); font-size: 12.5px; }
.pop .sepl { height: 1px; background: var(--line); margin: 6px 4px; }
.pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pop .who b { display: block; }
.pop .who span { color: var(--muted); font-size: 12.5px; }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 8px 10px; }
.pop-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.pop .notif { border-radius: 8px; border-top: 0; padding: 10px; }

/* Body layout */
.frame { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100dvh - var(--header-h)); }
.frame.no-nav { grid-template-columns: minmax(0, 1fr); }
.frame.no-nav .nav { display: none; }
.nav { border-right: 1px solid var(--line); background: var(--surface); padding: 16px 12px 32px; }
.nav h2 { margin: 18px 10px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nav h2:first-child { margin-top: 4px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.nav-scrim { display: none; }
.main { min-width: 0; padding: 28px 32px 132px; }
.main:focus { outline: none; }
.wrap { max-width: 1240px; margin: 0 auto; }
.narrow { max-width: 880px; margin: 0 auto; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--primary); text-decoration: none; }
.crumbs svg.i { width: 14px; height: 14px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h1 { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
.sub { margin: 4px 0 0; color: var(--ink-2); text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .12s var(--ease-out), background-color .12s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.ghost { border-color: transparent; background: none; color: var(--primary); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn.wide { width: 100%; height: 40px; }
.btn.danger-text { color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):hover { background: var(--surface-2); }
  .btn.primary:not([disabled]):hover { background: var(--primary-hover); border-color: var(--primary-hover); }
  .btn.ghost:not([disabled]):hover { background: var(--primary-tint); }
  .icon-btn:hover, .switch-btn:hover, .me:hover { background: var(--surface-2); }
  .ask:hover { background: var(--surface-2); }
  .nav a:not([aria-current]):hover { background: var(--surface-2); color: var(--ink); }
  .pop .row-a:not([aria-current="true"]):hover { background: var(--surface-2); }
  tbody tr.go:hover td { background: var(--surface-2); }
  .crumbs a:hover, .link:hover { text-decoration: underline; }
  .mini.go:hover, .notif.go:hover { background: var(--surface-2); }
}

/* Panels and sections */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-1); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.sec-head h2 { margin: 0; font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.count { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.link { color: var(--primary); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.link.ink { color: var(--ink); }
.link svg.i { width: 15px; height: 15px; }
.empty { padding: 4px 20px 18px; color: var(--ink-2); }
.empty.box { display: flex; gap: 10px; align-items: flex-start; padding: 16px 20px; border-top: 1px solid var(--line); }
.empty.box svg.i { color: var(--success); margin-top: 2px; }

/* Banners */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--info-tint); color: var(--ink); margin-bottom: 20px; }
.banner > svg.i { color: var(--info); margin-top: 2px; }
.banner.ok { background: var(--success-tint); } .banner.ok > svg.i { color: var(--success); }
.banner.warn { background: var(--warning-tint); } .banner.warn > svg.i { color: var(--warning); }
.banner.bad { background: var(--danger-tint); } .banner.bad > svg.i { color: var(--danger); }
.banner .grow { flex: 1; min-width: 0; }
.banner b { display: block; font-weight: 650; }
.banner .btn { margin-top: 10px; }

/* Home */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.col { display: grid; gap: 24px; min-width: 0; }
.task { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); align-items: start; }
.task .tile { margin-top: 2px; }
.task-title { font-weight: 600; }
.task-meta { color: var(--ink-2); }
.task-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.task-foot span { display: inline-flex; align-items: center; gap: 5px; }
.task-foot svg.i { width: 14px; height: 14px; }
.task-foot .app { font-weight: 600; color: var(--ink-2); }
.task-foot .due { color: var(--warning); font-weight: 600; }
.acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.done-note { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--success); white-space: nowrap; }
.done-note.bad { color: var(--danger); }
.decline-box { grid-column: 2 / 4; display: grid; gap: 6px; }
.decline-box label { font-weight: 600; font-size: 13px; }
textarea.ta { font: inherit; font-size: 16px; min-height: 76px; padding: 8px 10px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); resize: vertical; width: 100%; }
textarea.ta[aria-invalid="true"], .input[data-bad="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; display: flex; gap: 6px; align-items: flex-start; }
.err svg.i { width: 16px; height: 16px; margin-top: 2px; }
.decline-box .row { display: flex; gap: 8px; }
.mini { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.mini.go { cursor: pointer; }
.mini b { font-weight: 600; }
.mini p { margin: 0; color: var(--ink-2); font-size: 13px; }
.mini .bad-line { color: var(--danger); font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.stat { padding: 0 20px 18px; }
.stat .fig { font-size: 32px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.stat .fig small { font-size: 16px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; }
.stat .per { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.meter { height: 8px; border-radius: 999px; background: var(--sunken); margin-top: 12px; overflow: hidden; display: flex; gap: 2px; }
.meter i { display: block; height: 100%; background: var(--primary); }
.meter i + i { background: var(--app-tosca); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.notif { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); text-align: left; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; color: inherit; }
.notif.go { cursor: pointer; }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 7px; }
.notif .dot.read { background: transparent; }
.notif .nt { display: block; }
.notif small { color: var(--muted); font-size: 12.5px; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip svg.i { width: 14px; height: 14px; }
.c-wait { background: var(--warning-tint); color: var(--warning); }
.c-ok { background: var(--success-tint); color: var(--success); }
.c-bad { background: var(--danger-tint); color: var(--danger); }
.c-off { background: var(--surface-2); color: var(--ink-2); }
.c-draft { background: var(--info-tint); color: var(--info); }

/* List */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 10px 12px; color: var(--ink-2); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--accent); border-color: var(--accent); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .lab { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .ok-note { font-size: 12.5px; color: var(--success); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.field .ok-note svg.i { width: 14px; height: 14px; }
.req { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--warning); }
.req svg.i { width: 14px; height: 14px; }
.by-hr { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.input { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); min-width: 0; }
.input input, .input select { border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; width: 100%; height: 100%; }
.input select { appearance: none; -webkit-appearance: none; padding-right: 4px; cursor: pointer; }
.input .chev { color: var(--muted); pointer-events: none; }
.input .pre { color: var(--ink-2); font-weight: 600; }
.input select option { background: var(--surface); color: var(--ink); }
.input:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.input.ro { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.radios { display: flex; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 14px; }
.radios input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
.radios label:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }
.radios label:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.file-pick { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--surface-2); }
.file-pick .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumb { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: var(--sunken); display: grid; place-items: center; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child, th:first-child { position: sticky; left: 0; z-index: 1; }
th:first-child { z-index: 2; }
td.r, th.r { text-align: right; }
tbody tr.go { cursor: pointer; }
.person { display: flex; align-items: center; gap: 10px; }
.person b { font-weight: 600; display: block; }
.person small { color: var(--muted); font-size: 12.5px; }
.table-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.corr { color: var(--success); font-weight: 600; }
.miss { color: var(--warning); font-weight: 600; }

/* Record */
.rec-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.facts div { padding: 14px 20px; border-top: 1px solid var(--line); min-width: 0; }
.facts div:nth-child(-n+3) { border-top: 0; }
.facts dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.facts .wide dd { font-weight: 400; }
.bal { padding: 4px 20px 18px; }
.bal-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.bal-row:last-child { border: 0; font-weight: 700; }
.hist { list-style: none; margin: 0; padding: 4px 20px 20px; }
.hist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 16px; }
.hist li:last-child { padding-bottom: 0; }
.hist li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.hist .tile { width: 28px; height: 28px; border-radius: 50%; }
.hist small { display: block; color: var(--muted); font-size: 12.5px; }
.state-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.receipt { margin: 0 20px 18px; display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); min-width: 0; }
.receipt img { max-width: 100%; max-height: 320px; border-radius: 4px; display: block; }
.receipt.big { display: block; }
.receipt .fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt small { display: block; color: var(--muted); font-size: 12.5px; }
.locked-card { padding: 32px; display: grid; gap: 14px; justify-items: start; max-width: 640px; }
.locked-card .tile { width: 48px; height: 48px; border-radius: 12px; }
.locked-card .tile svg.i { width: 26px; height: 26px; }
.locked-card p { margin: 0; color: var(--ink-2); font-size: 15px; text-wrap: pretty; }

/* Sign in */
.auth { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; padding: 32px 16px 140px; }
.auth .panel { width: min(420px, 100%); padding: 28px 28px 24px; display: grid; gap: 18px; }
.auth h1 { font-size: 25px; }
.auth .foot-link { text-align: center; }

/* Slide-over, dialog, BINAR panel */
.scrim { position: fixed; inset: var(--header-h) 0 0 0; background: var(--scrim); z-index: 40; animation: fade .2s ease-out; }
.scrim.full { inset: 0; z-index: 50; }
@keyframes fade { from { opacity: 0; } }
.sheet, .binar { position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); right: 0; bottom: 0; width: min(480px, 100%); z-index: 41; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: slide .26s var(--ease-out); }
.binar { width: min(440px, 100%); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.s-head, .b-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.s-head h2, .b-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.s-head small { display: block; color: var(--muted); font-size: 12.5px; }
.b-head .tile { width: 32px; height: 32px; }
.spacer { flex: 1; }
.s-body { overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 28px; display: grid; gap: 18px; align-content: start; }
.s-body .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.s-foot { border-top: 1px solid var(--line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; background: var(--surface); }
.s-body .banner { margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.checks li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks b { font-variant-numeric: tabular-nums; }
.checks small { color: var(--muted); display: block; font-size: 12.5px; }
.photo-slot { margin-top: 8px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; }
.dialog { position: fixed; z-index: 51; top: 50%; left: 50%; width: min(480px, calc(100% - 32px)); transform: translate(-50%, -50%); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); animation: fade .18s var(--ease-out); }
.dialog .s-body { padding: 18px 20px; }
.dialog .s-foot { border-radius: 0 0 12px 12px; }
.b-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; display: grid; gap: 14px; align-content: start; background: var(--bg); }
.msg-me { justify-self: end; max-width: 85%; padding: 10px 14px; border-radius: 12px 12px 4px 12px; background: var(--primary); color: var(--on-primary); overflow-wrap: anywhere; }
.msg-b { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
.msg-b .who { font-size: 12.5px; font-weight: 700; color: var(--binar); margin-bottom: 2px; }
.msg-b p { margin: 0 0 6px; }
.msg-b p:last-child { margin: 0; }
.dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--binar); animation: blink 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.card-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card-head b { display: block; }
.card-head small { color: var(--muted); font-size: 12.5px; }
.diff { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.diff th { position: static; background: none; padding: 8px 14px 4px; border: 0; }
.diff td { padding: 8px 14px; border-top: 1px solid var(--line); border-bottom: 0; white-space: normal; background: none; vertical-align: top; }
.diff td:first-child, .diff th:first-child { position: static; }
.diff td:first-child { color: var(--ink-2); font-weight: 600; }
.old { color: var(--muted); }
.new { font-weight: 700; color: var(--ink); }
.confirmer { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.card-acts { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card-done { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); font-weight: 600; flex-wrap: wrap; }
.card-done.ok { color: var(--success); }
.card-done.off { color: var(--ink-2); }
.source { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.b-foot { border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; background: var(--surface); }
.composer { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.composer input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; }
.composer:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.b-note { font-size: 12.5px; color: var(--muted); }

/* Presenter dock: a presentation control for this prototype, not part of semaiX */
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
.dock button { border: 0; background: none; color: inherit; height: 34px; padding: 0 10px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; opacity: .8; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dock button[aria-pressed="true"] { background: var(--bg); color: var(--ink); opacity: 1; }
.dock .sep { width: 1px; height: 22px; background: currentColor; opacity: .3; flex-shrink: 0; }
.dock label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; opacity: .8; flex-shrink: 0; white-space: nowrap; padding-left: 4px; }
.dock select { height: 34px; border-radius: 8px; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 13px; font-weight: 600; padding: 0 8px; max-width: 190px; cursor: pointer; }
.dock select option { background: var(--surface); color: var(--ink); }
.dock :focus-visible { outline-color: var(--bg); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 61; max-width: min(520px, calc(100% - 32px)); padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 13px; box-shadow: var(--shadow-2); animation: fade .18s ease-out; display: flex; gap: 8px; align-items: flex-start; }
.toast svg.i { width: 16px; height: 16px; margin-top: 2px; }

/* Narrow screens */
@media (max-width: 1180px) {
  .me-name, .search kbd { display: none; }
}
@media (max-width: 1023px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; position: fixed; top: 0; left: 0; bottom: 0; width: 280px; z-index: 46; box-shadow: var(--shadow-2); overflow-y: auto; padding-top: calc(16px + env(safe-area-inset-top, 0px)); animation: slidel .26s var(--ease-out); }
  .nav.open { display: block; }
  .nav-scrim.open { display: block; position: fixed; inset: 0; z-index: 45; background: var(--scrim); animation: fade .2s ease-out; }
  .menu-btn { display: grid; }
  .home-grid, .rec-grid { grid-template-columns: minmax(0, 1fr); }
  .search { max-width: none; }
  .ask > span:last-child { display: none; }
  .ask { padding: 0 6px; }
}
@keyframes slidel { from { transform: translateX(-24px); opacity: 0; } }
@media (max-width: 720px) {
  /* Phones: two rows. Logo, search, BINAR, notifications and person menu on top; menu, current app and the demo mark below. */
  :root { --header-h: 110px; }
  body.signed-out { --header-h: 60px; }
  .top { height: auto; min-height: var(--header-h); flex-wrap: wrap; align-content: flex-start; gap: 0 4px; padding: 6px 8px 4px; }
  .logo { order: 0; height: 48px; padding: 4px 5px; }
  .logo img { height: 40px; }
  .search { order: 1; margin-left: auto; }
  .top-right { order: 2; margin-left: 0; gap: 2px; }
  .brk { display: block; order: 3; flex-basis: calc(100% + 16px); height: 1px; margin: 6px -8px 0; background: var(--line); }
  .menu-btn { order: 4; }
  .switcher { order: 5; }
  .demo.ph { display: inline-flex; order: 6; margin-left: auto; align-self: center; }
  body.signed-out .demo.ph { order: 1; }
  .vsep, .top-right .demo { display: none; }
  .me { border-left: 0; padding: 0; margin: 0; width: 40px; justify-content: center; border-radius: 8px; }
  .switch-btn { padding: 0 8px 0 4px; }
  .search { flex: 0 0 40px; width: 40px; padding: 0; justify-content: center; border: 0; background: none; }
  .search span, .search kbd { display: none; }
  .main { padding: 20px 16px 132px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .task { grid-template-columns: 28px minmax(0, 1fr); padding: 14px 16px; }
  .task .acts { grid-column: 2; }
  .decline-box { grid-column: 1 / -1; }
  .sec-head { padding: 14px 16px 10px; }
  .mini, .notif { padding-inline: 16px; }
  .stat, .empty { padding-inline: 16px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .facts div { padding: 12px 16px; }
  .facts div:nth-child(3) { border-top: 1px solid var(--line); }
  .page-head .acts { width: 100%; }
  .page-head .acts .btn { flex: 1; }
  .form-grid, .s-body .form-grid { grid-template-columns: minmax(0, 1fr); }
  .s-body { padding: 16px 16px 24px; }
  .s-foot { padding-inline: 16px; }
  .s-foot .btn { flex: 1; }
  .pop { position: fixed; top: calc(var(--header-h) + 6px); left: 12px; right: 12px; width: auto; max-width: none; }
  .locked-card { padding: 22px 18px; }
  .auth .panel { padding: 22px 18px; }
  .hist { padding-inline: 16px; }
  .bal { padding-inline: 16px; }
  .receipt { margin-inline: 16px; }
}
@media (max-width: 400px) {
  .demo { padding: 0 8px; }
}
@media (pointer: coarse) {
  .icon-btn, .switch-btn, .ask, .me { min-width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- Components for builders: every value from the tokens above ---------- */
/* Placeholder heading of a screen being built */
.stub-id { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

/* Stat line: a row of labelled figures (dl.stat-line > div > dt + dd) */
.stat-line { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid var(--line); }
.stat-line > div { flex: 1 1 160px; min-width: 0; padding: 14px 20px; border-left: 1px solid var(--line); }
.stat-line > div:first-child { border-left: 0; }
.stat-line dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stat-line dd { margin: 2px 0 0; font-size: 22px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-line dd small { margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* Empty state: names what is counted and the period, with the next step */
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 40px 24px; text-align: center; color: var(--ink-2); }
.empty-state .tile { width: 44px; height: 44px; border-radius: 12px; }
.empty-state .tile svg.i { width: 24px; height: 24px; }
.empty-state h2 { margin: 0; font-size: 16px; font-weight: 650; color: var(--ink); }
.empty-state p { margin: 0; max-width: 46ch; text-wrap: pretty; }

/* Board columns and kanban cards */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.board-col { display: grid; gap: 10px; align-content: start; min-height: 120px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.board-col > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 4px; font-size: 13.5px; font-weight: 650; }
.kcard { display: grid; gap: 6px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; text-align: left; box-shadow: var(--shadow-1); cursor: pointer; }
.kcard b { font-weight: 600; }
.kcard .kmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.kcard[aria-grabbed="true"] { outline: 2px solid var(--focus); outline-offset: 1px; }

/* Calendar month grid: .cal > .dow x7, then .day (add .out for other months, .today for today), events as .ev */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .dow { padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cal .day { display: grid; align-content: start; gap: 4px; min-width: 0; min-height: 96px; padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.cal .day.out { background: var(--sunken); color: var(--muted); }
.cal .day .dn { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal .day.today .dn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.cal .ev { display: block; padding: 2px 6px; border-radius: 4px; background: var(--primary-tint); color: var(--primary); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tree: ul.tree > li > (a | button[aria-expanded]) + ul */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 9px; padding-left: 18px; border-left: 1px solid var(--line); }
.tree a, .tree button { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.tree [aria-current="page"] { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.tree .chev { transition: transform .15s var(--ease-out); }
.tree [aria-expanded="false"] .chev { transform: rotate(-90deg); }

/* Stepper: ol.stepper > li (data-st="done", or aria-current="step") > span.n + label */
.stepper { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); counter-increment: step; }
.stepper li + li::before { content: ""; width: 28px; height: 2px; margin: 0 8px; background: var(--line); }
.stepper .n { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: 50%; font-size: 12px; }
.stepper .n::before { content: counter(step); }
.stepper li[data-st="done"] { color: var(--success); }
.stepper li[data-st="done"] .n { border-color: var(--success); background: var(--success-tint); }
.stepper li[aria-current="step"] { color: var(--ink); }
.stepper li[aria-current="step"] .n { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }

/* Map area: a framed map placeholder with pins, zoom controls, a note and the attribution line */
.map-frame { position: relative; min-height: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background-color: var(--surface-2); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }
.map-frame .map-pin { position: absolute; transform: translate(-50%, -100%); color: var(--primary); }
.map-frame .map-pin svg.i { width: 28px; height: 28px; fill: var(--surface); }
.map-frame .map-ctl { position: absolute; top: 12px; right: 12px; display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); box-shadow: var(--shadow-1); }
.map-frame .map-ctl button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.map-frame .map-note { position: absolute; left: 12px; right: 12px; bottom: 24px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 12.5px; color: var(--ink-2); }
.map-frame .attrib { position: absolute; right: 8px; bottom: 4px; font-size: 11px; color: var(--muted); }

/* Phone frame for YARA mobile screens, 390 by 844 */
.phone-stage { display: grid; justify-items: center; padding: 8px 0 24px; }
.phone { display: grid; grid-template-rows: 44px minmax(0, 1fr) auto; width: 390px; max-width: 100%; height: 844px; overflow: hidden; border: 10px solid var(--ink); border-radius: 44px; background: var(--bg); box-shadow: var(--shadow-2); }
.phone .p-status { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: var(--surface); font-size: 13px; font-weight: 600; }
.phone .p-body { display: grid; gap: 16px; align-content: start; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.phone .p-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 4px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.phone .p-tabs button { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; }
.phone .p-tabs button[aria-current="page"] { color: var(--accent); }

/* Chat thread: .thread > .msg (.mine for the signed-in person) > avatar + .bubble */
.thread { display: grid; gap: 12px; align-content: start; padding: 16px 20px; background: var(--bg); }
.thread .msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; max-width: 80%; }
.thread .msg .bubble { padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; background: var(--surface); overflow-wrap: anywhere; }
.thread .msg small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.thread .msg.mine { justify-self: end; grid-template-columns: minmax(0, 1fr); }
.thread .msg.mine .bubble { border-color: var(--primary); border-radius: 12px 4px 12px 12px; background: var(--primary); color: var(--on-primary); }
.thread .day-sep { justify-self: center; font-size: 12px; font-weight: 600; color: var(--muted); }

/* File row: .file-row > .ficon + div (b + small) + actions */
.file-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); }
.file-row .ficon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.file-row b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row small { font-size: 12.5px; color: var(--muted); }

/* Diff table: the .diff table above, standalone in a frame, with added and removed rows */
.diff-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.diff-table .diff th { padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.diff tr.added td { background: var(--success-tint); }
.diff tr.removed td { background: var(--danger-tint); }

@media (hover: hover) and (pointer: fine) {
  .kcard:hover { border-color: var(--line-strong); }
  .tree a:not([aria-current]):hover, .tree button:hover { background: var(--surface-2); color: var(--ink); }
  .map-frame .map-ctl button:hover { background: var(--surface-2); }
}
@media (max-width: 720px) {
  .board { grid-auto-columns: minmax(240px, 85%); }
  .cal .day { min-height: 64px; padding: 4px; }
  .stat-line > div { padding: 12px 16px; }
  .file-row { padding-inline: 16px; }
  .thread { padding-inline: 16px; }
  .thread .msg { max-width: 92%; }
  .phone { border-width: 6px; border-radius: 32px; height: 760px; }
}
