/* og.css — Odinson Glass in the codebase (docs/redesign.md → stage 13).
   The design system itself (the rules and the reference) is docs/design/system/;
   this file is its one copy in the code, linked by all four pages. Part 1 is
   tokens.json as CSS custom properties (the same names; tests/design/check.js
   keeps them equal), part 2 the shared foundation (ground, glass, plates, the
   Language button), part 3 the components of components/bundle.css the pages
   use, then the list pieces, the window pieces, the tabs and the light theme's
   looks. Only what a page or a React piece still draws is kept (React
   migration stage 7); the rest of the look is Tailwind on the tokens. */
/* tokens:begin — written by tests/design/build.py from tokens.json */
:root{
  --ground:#10141f;
  --blob-indigo:#4f46e5;
  --blob-cyan:#06b6d4;
  --blob-pink:#db2777;
  --surface:#0f1117;
  --surface-2:#181c27;
  --surface-3:#1e2333;
  --plate:#1b1e29;
  --plate-top:#222840;
  --plate-bottom:#141823;
  --plate-on:#1f2a2c;
  --tick-on:#1b2a28;
  --glass:rgba(255,255,255,0.12);
  --glass-strong:rgba(255,255,255,0.28);
  --glass-active:rgba(255,255,255,0.2);
  --glass-edge:rgba(255,255,255,0.28);
  --glass-menu:rgba(30,35,51,0.75);
  --glass-sheet:rgba(17,20,31,0.82);
  --hairline:rgba(255,255,255,0.14);
  --ink:#ffffff;
  --ink-2:#a3a9bb;
  --ink-3:#4a5068;
  --ink-on-glass:rgba(255,255,255,0.62);
  --accent:#4f8ef7;
  --green:#6dd6a0;
  --amber:#f5a623;
  --red:#ff5f6d;
  --red-soft:#ffd1d6;
  --avatar:#6e5a9e;
  --uline-1:#818cf8;
  --uline-2:#22d3ee;
  --uline-3:#f472b6;
  --tick-mark:#0b0d14;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:14px;
  --space-5:16px;
  --radius-sm:10px;
  --radius-md:14px;
  --radius-lg:16px;
  --radius-xl:22px;
  --radius-pill:999px;
  --shadow-glass:0 8px 24px rgba(0,0,0,0.25);
  --shadow-pop:0 16px 40px rgba(0,0,0,0.45);
  --shadow-uline:0 0 10px rgba(34,211,238,0.55), 0 0 4px rgba(244,114,182,0.5);
  --shadow-plate:inset 0 1px 0 rgba(255,255,255,0.10), 0 8px 20px rgba(0,0,0,0.35);
  --font-sans:"DM Sans", "Heebo", Arial, sans-serif;
  --font-mono:"DM Mono", ui-monospace, monospace;
}
:root[data-theme="light"]{
  --ground:#eef1f7;
  --blob-indigo:#a5b4fc;
  --blob-cyan:#67e8f9;
  --blob-pink:#f9a8d4;
  --surface:#f4f6fa;
  --surface-2:#ffffff;
  --surface-3:#e8ecf4;
  --plate:#ffffff;
  --plate-top:#ffffff;
  --plate-bottom:#eef1f7;
  --plate-on:#e1f3ea;
  --tick-on:#dcf2e6;
  --glass:rgba(255,255,255,0.62);
  --glass-strong:rgba(255,255,255,0.92);
  --glass-active:rgba(255,255,255,0.85);
  --glass-edge:rgba(20,24,40,0.16);
  --glass-menu:rgba(255,255,255,0.9);
  --glass-sheet:rgba(246,248,252,0.94);
  --hairline:rgba(20,24,40,0.12);
  --ink:#141826;
  --ink-2:#4a5168;
  --ink-3:#9aa1b4;
  --ink-on-glass:rgba(20,24,40,0.72);
  --accent:#1d5fd6;
  --green:#0e7340;
  --amber:#985000;
  --red:#c21f32;
  --red-soft:#b4182a;
  --avatar:#6e5a9e;
  --uline-1:#6366f1;
  --uline-2:#0891b2;
  --uline-3:#db2777;
  --tick-mark:#ffffff;
  --shadow-glass:0 8px 24px rgba(20,24,40,0.10);
  --shadow-pop:0 16px 40px rgba(20,24,40,0.18);
  --shadow-uline:0 0 8px rgba(8,145,178,0.35), 0 0 3px rgba(219,39,119,0.3);
  --shadow-plate:inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 16px rgba(20,24,40,0.10);
}
/* tokens:end */
/* ── Odinson Glass foundation (docs/redesign.md): the ground, glass, plates,
   the Language button and sheet. ── */
:root{--glass-hi:var(--glass-active);--glass-dark:rgba(17,20,31,.92);--fig:#9fe6c0;--ok:var(--green);--info:var(--accent);--warn:var(--amber);--bad:var(--red);--uline:linear-gradient(90deg,var(--uline-1),var(--uline-2),var(--uline-3),var(--uline-1));}
/* --tint: the RGB of the see-through glass tints (hover, fields, dividers,
   frames: rgba(var(--tint),a)) — white on the dark ground, near-black in the
   light theme, so every tint keeps its strength on both grounds. */
:root{--tint:255,255,255;color-scheme:dark;}
/* Derived looks for both themes: the soft status texts (badges, chips, error
   lines), the see-through bars over the ground (--bar-rgb: the title bar, the
   side menu) and the glass of popovers and their tails. */
:root{--red-text:#ff8a95;--amber-text:#f7c062;--blue-text:#8fb4ff;--cyan-text:#67e8f9;--bar-rgb:16,20,31;--pop-rgb:30,35,51;}
/* ── The light theme for outdoors (docs/redesign.md → Light theme): the token
   values are in the tokens block above (from tokens.json); here the values
   og.css and the pages derive from them, and the few looks a token cannot
   carry. <html data-theme="light"> is set by the theme switch (the account
   menu: Dark / Light / System) before the page draws. ── */
:root[data-theme="light"]{color-scheme:light;--tint:20,24,40;--red-text:#a8182b;--amber-text:#7f4300;--blue-text:#1d4fb8;--cyan-text:#0b6b80;--bar-rgb:248,250,253;--pop-rgb:255,255,255;--blue:var(--accent);--green2:var(--green);--glass-dark:rgba(250,251,253,.96);--fig:var(--green);--neutral:#7a8199;--text:var(--ink);--text2:var(--ink-2);--text3:#5c6378;}
:root[data-theme="light"] body::before,:root[data-theme="light"] .og-cover{background:radial-gradient(circle at 15% 10%,rgba(165,180,252,.55) 0,transparent 56%),radial-gradient(circle at 92% 62%,rgba(103,232,249,.40) 0,transparent 54%),radial-gradient(circle at 40% 108%,rgba(249,168,212,.42) 0,transparent 56%),var(--ground);}
:root[data-theme="light"] .og-cover{background-attachment:fixed;}
:root[data-theme="light"] .gbtn::before{box-shadow:var(--shadow-uline);}
html{background:var(--ground);}
/* Plates and windows: a soft gradient (plate-top → plate-bottom) over the solid --plate, a line of light on
   the top edge and a soft shadow (--shadow-plate); windows the same gradient from the top down. */
:root{--plate-grad:linear-gradient(135deg,var(--plate-top),var(--plate-bottom));--sheet-grad:linear-gradient(180deg,var(--plate-top) 0,var(--plate-bottom) 60%);}
.bg-plate,.bg-card{background-image:var(--plate-grad);}
body{background:transparent;}
body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 15% 10%,rgba(79,70,229,.50) 0,transparent 56%),radial-gradient(circle at 92% 62%,rgba(6,182,212,.36) 0,transparent 54%),radial-gradient(circle at 40% 108%,rgba(219,39,119,.34) 0,transparent 56%),var(--ground);}
/* A full-screen cover over the app (the super-admin's Firms landing): the same blob ground, fixed. */
.og-cover{background:radial-gradient(circle at 15% 10%,rgba(79,70,229,.50) 0,transparent 56%),radial-gradient(circle at 92% 62%,rgba(6,182,212,.36) 0,transparent 54%),radial-gradient(circle at 40% 108%,rgba(219,39,119,.34) 0,transparent 56%),var(--ground);background-attachment:fixed;}
@keyframes og-flow{to{background-position:300% 0}}
@keyframes og-pop{0%{transform:scaleX(0)}60%{transform:scaleX(1.12)}100%{transform:scaleX(1)}}
/* Glass buttons: white fill + blur, a shine sweep on every tap (.shine, set by
   the pointerdown handler), the highlight line on hover and when .on. */
.gbtn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 16px;border-radius:16px;background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--glass-edge);color:var(--ink);font:600 14px 'DM Sans','Heebo',Arial,sans-serif;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.25);-webkit-tap-highlight-color:transparent;white-space:nowrap;}
.gbtn.primary{background:rgba(var(--tint),.28);}
/* A create button (New, New user, New firm…) is plain glass, like a secondary
   (owner 2026-10-17, template): every create button carries .og-new. */
.gbtn.og-new{background:var(--glass);}
.gbtn.icon{width:42px;padding:0;}
.gbtn::after{content:'';position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);pointer-events:none;}
.gbtn.shine::after{left:130%;transition:left .6s;}
.gbtn::before{content:'';position:absolute;left:12px;right:12px;bottom:1px;height:3px;border-radius:2px;background:var(--uline);background-size:300% 100%;box-shadow:0 0 10px rgba(34,211,238,.55),0 0 4px rgba(244,114,182,.5);animation:og-flow 2.4s linear infinite;transform:scaleX(0);transition:transform .45s cubic-bezier(.34,1.56,.64,1);pointer-events:none;}
@media (hover:hover){.gbtn:hover::before{transform:scaleX(1);}}
.gbtn.on::before{transform:scaleX(1);}
/* Plates: the solid content tile, a 4px status bar (--c) on the left; figures
   (hours, money) in one soft green. */
.plate{position:relative;display:flex;align-items:center;gap:12px;padding:11px 8px 11px 14px;background-color:var(--plate);background-image:var(--plate-grad);border-radius:16px;box-shadow:inset 4px 0 0 var(--c,var(--ok)),var(--shadow-plate);}
.fig{font-family:'DM Mono',ui-monospace,monospace;color:var(--fig);}
/* The Language button (top right of every page) and its sheet. */
.lang-btn{height:40px;width:40px;padding:0;gap:0;border-radius:14px;font-size:13px;flex:none;justify-content:center;}
.lang-btn i{font-size:23px;}
/* Header icons (owner 2026-10-13): the Language button and the bell are bare
   icons, no glass frame, both 40px with a 23px icon. */
.lang-btn,.gbtn.og-bell{background:none !important;border:0 !important;box-shadow:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;}
.lang-btn::after,.gbtn.og-bell::after{display:none;}
/* Only the globe (owner 2026-10-13): the name and chevron stay in the markup, hidden. */
.lang-btn.on-cover{position:absolute;top:max(env(safe-area-inset-top,0px),12px);right:12px;z-index:2;}
.lang-search{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;margin-bottom:8px;border-radius:12px;background:rgba(var(--tint),.06);border:1px solid rgba(var(--tint),.12);}
.lang-search i{color:var(--ink-2);font-size:16px;}
.lang-search input{flex:1;min-width:0;border:0;background:none;color:var(--ink);font:14px 'DM Sans','Heebo',Arial,sans-serif;outline:none;padding:0;}
.lang-list{overflow:auto;display:flex;flex-direction:column;gap:4px;}
.lang-li{position:relative;display:flex;align-items:center;gap:10px;width:100%;height:38px;padding:0 12px;border:0;border-radius:12px;background:none;color:var(--ink);font-family:'DM Sans','Heebo',Arial,sans-serif;text-align:left;cursor:pointer;}
.lang-li:hover{background:rgba(var(--tint),.06);}
.lang-li b{font-size:15px;font-weight:600;}
.lang-li small{flex:1;font-size:12px;color:var(--ink-2);}
.lang-li.on{background:rgba(109,214,160,.1);}
.lang-li.on::after{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:2px;background:linear-gradient(180deg,#818cf8,#22d3ee,#f472b6);}
.lang-tick{width:22px;height:22px;border-radius:7px;background:var(--ok);color:#0b0d14;display:flex;align-items:center;justify-content:center;font-size:14px;}
.lang-none{padding:14px 12px;color:var(--ink-2);font-size:13px;}
@media (prefers-reduced-motion:reduce){.gbtn::before{animation:none;}.gbtn.shine::after{transition:none;}}
/* ── Components from docs/design/system/components/bundle.css that the pages use. ── */
/* Odinson Glass components. Every value comes from tokens.css. */
:root{--og-uline:linear-gradient(90deg,var(--uline-1),var(--uline-2),var(--uline-3),var(--uline-1));--og-spring:cubic-bezier(.34,1.56,.64,1);--og-ease:cubic-bezier(.3,.7,.3,1)}
@keyframes og-shrink{to{width:0}}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* the underline: a flowing gradient line that springs in */
.og-uline{position:absolute;left:12px;right:12px;bottom:1px;height:3px;border-radius:2px;background:var(--og-uline);background-size:300% 100%;animation:og-flow 2.4s linear infinite;box-shadow:var(--shadow-uline);transform:scaleX(0);transition:transform .45s var(--og-spring)}
/* glass button */
.og-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 16px;border-radius:var(--radius-lg);background:var(--glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--glass-edge);color:var(--ink);font:600 14px var(--font-sans);cursor:pointer;box-shadow:var(--shadow-glass)}
.og-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.og-btn::after{content:'';position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);transition:left .6s}
.og-btn:hover::after,.og-btn.shine::after{left:130%}
.og-btn::before{content:'';position:absolute;left:12px;right:12px;bottom:1px;height:3px;border-radius:2px;background:var(--og-uline);background-size:300% 100%;animation:og-flow 2.4s linear infinite;box-shadow:var(--shadow-uline);transform:scaleX(0);transition:transform .45s var(--og-spring)}
.og-btn:hover::before,.og-btn:focus-visible::before,.og-btn.on::before{transform:scaleX(1)}
.og-btn:focus-visible{outline:2px solid var(--uline-2);outline-offset:2px}
.og-btn.primary{background:var(--glass-strong)}
.og-btn.icon{width:42px;padding:0}
.og-btn.danger{color:var(--red-soft)}
/* plate */
.og-sw{position:relative;margin-bottom:var(--space-2);border-radius:var(--radius-lg);overflow:hidden;max-height:80px;transition:max-height .3s,margin .3s,opacity .3s}
.og-sw.gone{max-height:0;margin:0;opacity:0}
.og-acts{position:absolute;inset:0;display:flex;justify-content:flex-end;gap:6px;padding:6px;background:rgba(0,0,0,.25)}
.og-acts button{width:56px;border-radius:12px;border:1px solid var(--glass-edge);background:var(--glass);color:var(--ink);font:600 11px var(--font-sans);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer}
.og-acts .del{color:var(--red-soft);background:rgba(255,95,109,.22)}
.og-acts svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2}
.og-plate{position:relative;display:flex;align-items:center;gap:var(--space-3);padding:11px 8px 11px var(--space-4);background-color:var(--plate);background-image:var(--plate-grad);border-radius:var(--radius-lg);box-shadow:inset 4px 0 0 var(--bar,var(--green)),var(--shadow-plate);transition:transform .28s var(--og-ease);touch-action:pan-y;cursor:pointer;user-select:none}
.og-plate.drag{transition:none}
.og-plate.plain{background:none;box-shadow:none;border-radius:0}
.og-plate.plain::before,.og-plate.plain::after{display:none}
.og-plate.on{background:var(--plate-on)}
.og-kb{position:relative;width:32px;height:32px;border:0;border-radius:var(--radius-sm);background:none;color:var(--ink-2);font-size:18px;cursor:pointer}
.og-kb::after{content:'';position:absolute;left:9px;right:9px;bottom:3px;height:3px;border-radius:2px;background:var(--og-uline);background-size:300% 100%;animation:og-flow 2.4s linear infinite;transform:scaleX(0);transition:transform .45s var(--og-spring)}
.og-kb.on{color:var(--ink);background:rgba(var(--tint),.08)}.og-kb.on::after{transform:scaleX(1)}

/* ── Part 4: the list pieces (Plates, UndoSnack, SelectMode as the pages use
   them: .t3-line plates, the swipe .sw, the Undo snack .og-snack, Select's
   .og-box / .sel-bar). ── */
/* Odinson Glass lists (docs/redesign.md → Plates): a plate is solid, radius 16,
   a 4px bar in its colour (--c); figures (.r) in the soft green; Delete never
   asks — the Undo snack (.og-snack) runs 5 s first; Select: drawn-tick boxes,
   the one Select button (a glass .og-btn, "Select" → "Select all") and the
   glass bulk bar (.sel-bar). No
   letters avatar: the plate starts with the name. ── */
:root{--neutral:#6b7189;--bar-gap:16px;}
.t3-line{position:relative;gap:12px;padding:11px 8px 11px 14px;border-left:0;background-color:var(--plate);background-image:var(--plate-grad);border-radius:16px;box-shadow:inset 4px 0 0 var(--c,var(--neutral)),var(--shadow-plate);margin-bottom:8px;transition:transform .28s cubic-bezier(.3,.7,.3,1),background .2s;}
.t3-line:hover{filter:brightness(1.08);}
.t3-line>.n,.t3-line>.r{position:relative;z-index:1;}
.t3-line .n b{font-size:16px;font-weight:500;}
.t3-line>.n{min-width:0;}
.t3-line .n small{font-size:13px;color:var(--ink-2);margin-top:1px;}
.t3-line .r{font:500 14px 'DM Mono',ui-monospace,monospace;color:var(--fig);}
/* Swipe left: Edit and Delete behind the plate. */
.sw{position:relative;margin-bottom:8px;border-radius:16px;overflow:hidden;transition:max-height .3s,margin .3s,opacity .3s;}
.sw>.t3-line{margin-bottom:0;touch-action:pan-y;}
.sw>.t3-line.drag{transition:none;}
.sw.gone,.t3-line.gone{max-height:0 !important;margin:0 !important;opacity:0;overflow:hidden;padding-top:0;padding-bottom:0;}
.t3-line.gone{transition:max-height .3s,margin .3s,opacity .3s,padding .3s;}
/* The Undo snack: glass, 5 s, the gradient timer line. */
.og-snack{pointer-events:auto;position:fixed;left:50%;bottom:var(--bar-gap);z-index:3500;width:min(420px,calc(100% - 28px));display:flex;align-items:center;gap:10px;padding:12px 12px 12px 16px;border-radius:16px;background:rgba(var(--pop-rgb),.8);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(var(--tint),.24);box-shadow:0 12px 30px rgba(0,0,0,.4);color:var(--ink);font-size:14px;overflow:hidden;transform:translate(-50%,160%);transition:transform .3s cubic-bezier(.3,.7,.3,1);}
.og-snack.open{transform:translate(-50%,0);}
.og-snack-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.og-snack-u{position:relative;border:0;background:none;color:var(--ink);font:700 14px 'DM Sans','Heebo',Arial,sans-serif;cursor:pointer;padding:4px 6px;}
.og-snack-u::after{content:'';position:absolute;left:6px;right:6px;bottom:0;height:2px;border-radius:2px;background:var(--uline);background-size:300% 100%;animation:og-flow 2.4s linear infinite;}
.og-snack-bar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--uline);background-size:300% 100%;box-shadow:0 0 8px rgba(34,211,238,.5);}
.og-snack.open .og-snack-bar{animation:og-flow 2.4s linear infinite,og-shrink 5s linear forwards;}
@keyframes og-shrink{to{width:0}}
/* Select mode: drawn-tick boxes slide in, the bulk bar (the Select button is a plain glass .og-btn). */
.og-box{width:24px;height:24px;box-sizing:border-box;flex:none;border-radius:7px;border:2px solid var(--ink-3);position:relative;transition:background .25s,border-color .25s;}
.og-box::after{content:'';position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #0b0d14;border-width:0 3px 3px 0;transform:rotate(45deg);clip-path:inset(100% 0 0 0);transition:clip-path .35s .05s;}
.t3-line.picked{background:var(--plate-on);}
.t3-line.picked .og-box{background:var(--ok);border-color:var(--ok);}
.t3-line.picked .og-box::after{clip-path:inset(0);}
.sel-bar{position:fixed;left:50%;bottom:var(--bar-gap);z-index:3400;width:min(520px,calc(100% - 28px));display:flex;align-items:center;gap:6px;padding:8px 8px 8px 14px;border-radius:18px;background:rgba(var(--pop-rgb),.8);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(var(--tint),.24);box-shadow:0 12px 30px rgba(0,0,0,.4);color:var(--ink);transform:translate(-50%,0);animation:sel-in .3s cubic-bezier(.3,.7,.3,1);}
@keyframes sel-in{from{transform:translate(-50%,160%)}}
.sel-bar b{flex:1;font-size:14px;white-space:nowrap;}
.sel-bar .gbtn{height:38px;padding:0 12px;font-size:13px;}
.sel-bar .gbtn.icon{width:38px;padding:0;}
.sel-bar .gbtn.del{color:var(--red-soft);}
@media (prefers-reduced-motion:reduce){.og-snack-u::after,.sel-head button::after{animation:none;}}
.sel-bar .gbtn:disabled{opacity:.45;cursor:default;}

/* ── Part 5: windows — segmented switches (.seg), field pairs and glass
   buttons in a window (the page's map picker and scan window; the React
   windows draw their own with Tailwind). ── */
  .modal-actions .og-save{flex:1}
  /* Short fields in pairs: two short fields share a line on a phone and a
     computer. A long text field (a textarea) fills its line. */
  .field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .field-row>*{min-width:0}
  @media (max-width:768px){.field-row{gap:8px}}
  .modal .field textarea{width:100%;box-sizing:border-box}
  .seg{display:flex;gap:4px;padding:4px;margin:10px 0 14px;border-radius:14px;background:rgba(var(--tint),.06);border:1px solid rgba(var(--tint),.1)}
  .seg button{position:relative;flex:1;height:31px;border:0;border-radius:10px;background:none;color:var(--text2);font:600 13px 'DM Sans','Heebo',Arial,sans-serif;cursor:pointer}
  .seg button.on{background:var(--glass-hi);color:var(--ink)}
  /* Every button in a window is glass; Save carries a check (mockup 04). */
  .modal .btn{height:40px;padding:0 14px;border-radius:14px;background:rgba(var(--tint),.08);border:1px solid rgba(var(--tint),.16);color:var(--text);font-weight:600;font-size:13px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
  .modal .btn.sm{height:36px;border-radius:12px;font-size:12.5px}
  .modal .btn.accent{background:rgba(var(--tint),.2);border-color:rgba(var(--tint),.3);color:var(--ink)}
  .modal .og-save i{margin-right:2px}
  .modal .field>label{line-height:16px}

/* ── Part 6: glass tabs (.og-tabs, the design system's Tabs) with a count. ── */
  .og-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:4px 0 10px}
  .og-tabs::-webkit-scrollbar{display:none}
  .og-tabs:empty{display:none}
  .og-tabs button{position:relative;flex:none;height:30px;padding:0 14px;border:1px solid transparent;border-radius:14px;background:none;color:var(--text2);font:600 13px 'DM Sans','Heebo',Arial,sans-serif;cursor:pointer;white-space:nowrap}
  .og-tabs button.on{background:var(--glass-hi);border-color:rgba(var(--tint),.35);color:var(--ink);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
  .og-tabs button.on::after{content:'';position:absolute;left:14px;right:14px;bottom:-1px;height:3px;border-radius:2px;background:var(--uline);background-size:300% 100%;box-shadow:0 0 10px rgba(34,211,238,.55);animation:og-flow 2.4s linear infinite,og-pop .5s cubic-bezier(.34,1.56,.64,1)}
  .og-tabs .tab-n{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:4px;border-radius:999px;background:var(--bad);color:#fff;font-size:10px;font-weight:700}
  /* .og-tabs.og-fit: the tabs centred on one line and, on a phone, tighter (tighter still up to 400px, e.g. 360px phones) so every tab fits whole (the line still scrolls if a language is longer). */
  .og-tabs.og-fit{justify-content:safe center}
  @media (max-width:700px){
    .og-tabs.og-fit{gap:2px}
    .og-tabs.og-fit button{padding:0 9px}
    .og-tabs.og-fit button.on::after{left:9px;right:9px}
    .og-tabs.og-fit .tab-n{margin-left:2px}
  }
  @media (max-width:400px){
    .og-tabs.og-fit button{padding:0 7px}
    .og-tabs.og-fit button.on::after{left:7px;right:7px}
  }

/* ── Part 7: the light theme's looks that no token carries (docs/redesign.md →
   Light theme): solid dark fills of og.css and the brand gradients drawn for
   the dark ground. ── */
:root[data-theme="light"] .t3-line:hover{filter:brightness(.98);}
:root[data-theme="light"] .og-snack,:root[data-theme="light"] .sel-bar{box-shadow:var(--shadow-pop);}
:root[data-theme="light"] .og-acts{background:rgba(20,24,40,.08);}
:root[data-theme="light"] .og-box::after{border-color:var(--tick-mark);}
:root[data-theme="light"] .lang-tick{color:var(--tick-mark);}
/* the logo's name ("Interactive Manager"): the gradient word in deep indigo → teal */
:root[data-theme="light"] .og-name b span,:root[data-theme="light"] .pp-wm b span{background-image:linear-gradient(90deg,#4f46e5,#0e7490);}
:root[data-theme="light"] .og-name small{color:var(--ink-2);}


/* ── The manager app's title bar (the page and the React Shell share it) ── */
/* The logo 11C "under one roof": a light running over the roof, the three
   people lighting up in turn, a light along the connection line; the name
   and its two lines beside it (only the mark on a phone). */
.og-brand{display:flex;align-items:center;gap:10px;}
.og-mark{width:36px;height:36px;flex:none;overflow:visible;}
.og-roof{fill:none;stroke:rgba(var(--tint),.28);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;}
.og-run{fill:none;stroke:url(#ogMarkGrad);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40 180;animation:og-run 2.8s linear infinite;}
@keyframes og-run{from{stroke-dashoffset:220}to{stroke-dashoffset:0}}
.og-p{opacity:.55;animation:og-lit 2.8s ease-in-out infinite;}
.og-p2{animation-delay:.93s;}.og-p3{animation-delay:1.86s;}
@keyframes og-lit{0%,100%{opacity:.55;transform:none}15%{opacity:1;transform:translateY(-4px)}35%{opacity:.55;transform:none}}
.og-link{fill:none;stroke:rgba(var(--tint),.22);stroke-width:4;stroke-linecap:round;}
.og-linkrun{fill:none;stroke:url(#ogMarkGrad);stroke-width:4;stroke-linecap:round;stroke-dasharray:14 90;animation:og-linkrun 2.8s linear infinite;}
@keyframes og-linkrun{from{stroke-dashoffset:104}to{stroke-dashoffset:0}}
.og-name b{display:block;font-size:16px;font-weight:700;letter-spacing:-.2px;white-space:nowrap;color:var(--ink);}
.og-name b span{background:linear-gradient(90deg,#c7d2fe,#67e8f9);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}
.og-name small{display:block;font-size:10.5px;line-height:1.3;color:#8b90a0;white-space:nowrap;}
.og-name small.og-roofline{color:var(--ok);}
@media (max-width:980px){ .og-name{display:none;} }
@media (prefers-reduced-motion:reduce){ .og-run,.og-p,.og-linkrun{animation:none;} .og-p{opacity:1;} }
.save-indicator{font-size:14px;color:var(--text3);display:flex;align-items:center;gap:4px;transition:color 0.3s;}
.save-indicator.saving{color:var(--amber);}
.save-indicator.saved{color:var(--green);}
.save-dot{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 6px currentColor;}
@media (max-width:768px){ .save-indicator{font-size:10px;} }
@media (max-width:480px){ .save-indicator span{display:none;} }
/* The bell: the count is a whole disc over the button's corner (mockup 05):
   .gbtn's own overflow:hidden must not cut it. The icon is the page's
   <i class="ti ti-bell"> or the React Shell's Tabler svg. */
.gbtn.og-bell{width:40px;height:40px;border-radius:14px;overflow:visible}
.og-bell::after{display:none}
.og-bell i{font-size:23px}
.og-bell svg{width:23px;height:23px}
/* "+N" on a worker's line: the bell's number, pulsing */
.og-more{flex:none;min-width:20px;height:20px;padding:0 5px;border:0;border-radius:999px;background:var(--bad);color:#fff;font:700 11px 'DM Sans',Arial,sans-serif;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 0 0 2px var(--ground);animation:og-bump 2.4s ease-in-out infinite}
.og-bell.has-new i,.og-bell.has-new svg{animation:og-ring 4s ease-in-out infinite;transform-origin:50% 10%}
@keyframes og-ring{0%,88%,100%{transform:rotate(0)}90%{transform:rotate(14deg)}93%{transform:rotate(-12deg)}96%{transform:rotate(6deg)}}
.og-bell-n{position:absolute;top:-4px;right:-4px;z-index:1;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--bad);color:#fff;font:700 10px 'DM Sans',Arial,sans-serif;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px var(--ground);animation:og-bump 2.4s ease-in-out infinite}
@keyframes og-bump{0%,90%,100%{transform:scale(1)}95%{transform:scale(1.2)}}

/* ── The manager app's sections (the React Shell with `app`): the side menu on
   a computer and the bottom bar on a phone, the glass look the page drew
   (V7, variant 11). Colours from --tint and --bar-rgb, so the light theme
   follows; --k is the section's colour. ── */
.og-side{display:flex;flex-direction:column;gap:4px;width:210px;flex-shrink:0;padding:14px 10px;background:rgba(var(--bar-rgb),.35);border-right:1px solid rgba(var(--tint),.08);overflow-y:auto}
[dir=rtl].og-side{border-right:0;border-left:1px solid rgba(var(--tint),.08)}
.og-tab{position:relative;display:flex;align-items:center;cursor:pointer;color:var(--ink-2);transition:color .15s;-webkit-tap-highlight-color:transparent;background:none;border:0;font:inherit}
.og-tab .ic{position:relative;display:flex;align-items:center;justify-content:center;line-height:1}
.og-tab.on{color:var(--k)}
.og-side .og-tab{flex:none;gap:12px;height:40px;padding:0 12px;border-radius:12px;font-size:14.5px;font-weight:500;text-align:start}
.og-side .og-tab .ic{width:20px}
.og-side .og-tab .ic svg{width:18px;height:18px}
.og-side .og-tab:hover{background:rgba(var(--tint),.05);color:var(--ink)}
.og-side .og-tab.on,.og-side .og-tab.on:hover{background:rgba(var(--tint),.08);color:var(--k)}
.og-side .og-tab::after{content:'';position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:2px;background:var(--k);box-shadow:0 0 10px var(--k);transform:scaleY(0);transition:transform .35s cubic-bezier(.34,1.56,.64,1);pointer-events:none}
[dir=rtl] .og-side .og-tab::after,[dir=rtl].og-side .og-tab::after{left:auto;right:0}
.og-side .og-tab.on::after{transform:scaleY(1)}
.og-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;height:calc(66px + env(safe-area-inset-bottom,0px));padding:0 0 env(safe-area-inset-bottom,0px);
  background:rgba(var(--bar-rgb),.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid rgba(var(--tint),.1)}
.og-bar::before{content:'';position:absolute;left:0;right:0;top:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(129,140,248,.5),rgba(34,211,238,.5),rgba(244,114,182,.4),transparent);pointer-events:none}
.og-bar .og-tab{flex:1 1 0;min-width:0;flex-direction:column;justify-content:center;gap:3px;padding:0 1px;color:rgba(var(--tint),.5)}
.og-bar .og-tab.on{color:var(--k)}
.og-bar .og-tab .ic{width:42px;height:30px;border-radius:12px;transition:background .3s}
.og-bar .og-tab .ic svg{width:21px;height:21px}
.og-bar .og-tab.on .ic{background:color-mix(in srgb,var(--k) 18%,transparent)}
.og-bar .og-tab .lb{font-size:10px;font-weight:600;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.og-bar .og-tab::after{content:'';position:absolute;left:30%;right:30%;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--k);box-shadow:0 0 10px var(--k);transform:scaleX(0);transition:transform .4s cubic-bezier(.34,1.56,.64,1);pointer-events:none}
.og-bar .og-tab.on::after{transform:scaleX(1)}
.og-count{position:absolute;top:-6px;right:-12px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--bad);color:#fff;font-size:9px;font-weight:700;line-height:16px;text-align:center;font-family:inherit;box-shadow:0 0 0 2px var(--ground)}
.og-bar .og-count{top:-2px;right:-2px}
@media (prefers-reduced-motion:reduce){.og-tab::after,.og-bar .og-tab .ic{transition:none}}
