/* METeam — v4 look (bright ERP dashboard, light first). Tokens in tokens.css, motion in motion.css. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; color: var(--ink); font: 400 14.5px/1.5 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.006em; background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background-color var(--t-3) var(--ease-io), color var(--t-3) var(--ease-io); }
h1, h2, h3, h4, h5, p { margin: 0; text-wrap: balance; }
h3 { font-size: 26px; line-height: 1.2; font-weight: 680; letter-spacing: -.03em; }
h4 { font-size: 14.5px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
code, kbd { font-family: var(--mono); }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-s); }
input, select, textarea, progress { accent-color: var(--brand); caret-color: var(--brand); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--ink-4); }
.muted, .sub { color: var(--ink-3); }
.sub { font-size: 12.5px; }
.late { color: var(--err); font-weight: 600; }
.mny, .tnum { font-family: var(--mono); font-size: .94em; white-space: nowrap; }
.tnum.late { color: var(--err); }
.right { text-align: right; justify-self: end; }
.mt { margin-top: 16px; }
.stack { display: grid; gap: 14px; align-content: start; }
.stackp, .chs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chs { margin-bottom: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wrap { white-space: normal !important; }

/* icons */
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* logo (2D mark; the 3D mark replaces it where motion allows) */
.logo { width: 30px; height: 30px; border-radius: 9px; flex: none; background: #fff url("data:image/png;base64,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") center/86% no-repeat; box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
me-mark3d { display: block; position: relative; flex: none; }
me-mark3d .mark2d { width: 100%; height: 100%; border-radius: 22%; background-size: 84%; }
me-mark3d canvas { display: block; width: 100% !important; height: 100% !important; }

#root { position: relative; }

/* ---------- shell ---------- */
#root { min-height: 100dvh; }
.app { height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr); grid-template-areas: "side gbar" "side main"; position: relative; }

.gbar { grid-area: gbar; display: flex; align-items: center; gap: 10px; padding: 0 24px 0 32px; position: relative; z-index: 20; background: var(--chrome); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); }
.gbar .brand { font-size: 15px; font-weight: 560; letter-spacing: -.02em; }
.gorg { color: var(--ink-3); font-size: 13px; font-weight: 500; white-space: nowrap; padding-left: 10px; border-left: 1px solid var(--line-2); }
.gsearch { display: flex; align-items: center; gap: 10px; flex: 0 1 460px; height: 40px; margin-left: 0; padding: 0 8px 0 14px; border-radius: 12px; background: var(--panel-sunk); border: 1px solid transparent; color: var(--ink-3); font-size: 14px; text-align: left; transition: border-color var(--t-1), background var(--t-1), box-shadow var(--t-2); }
.gsearch:hover { border-color: var(--brand-line); background: var(--panel-solid); box-shadow: var(--focus); }
.gsearch span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd { font: 500 11px var(--mono); color: var(--ink-3); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-solid); }
.gsp { flex: 1; }

.side { grid-area: side; display: flex; flex-direction: column; min-height: 0; padding: 0 12px 12px; border-right: 1px solid var(--line); background: var(--panel-solid); position: relative; z-index: 21; }
.navl { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; padding: 4px 0 12px; }
.nav-g { padding: 18px 10px 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-4); letter-spacing: .02em; }
.nav-i { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 8px; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: 14px; position: relative; transition: background var(--t-1), color var(--t-1); }
.nav-i:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.nav-i .i { color: inherit; transition: transform var(--t-2) var(--ease-out); }
.nav-i.on { background: var(--brand-soft); color: var(--info); font-weight: 600; }
.nav-i.on .i { color: inherit; }
.nav-i span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdot { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--dc, var(--brand)); background: color-mix(in oklab, var(--dc, var(--brand)) 13%, transparent); transition: background var(--t-2), color var(--t-2), transform var(--t-2) var(--ease-spring); }
.wdot::after { content: none; }
.pip { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--err-fill); color: #fff; font: 600 10.5px/1 var(--mono); font-style: normal; box-shadow: 0 0 0 2px var(--bg); }
.side-me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--panel-sunk); }
.side-brand { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 8px; flex: none; }
.side-brand b { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.side-brand small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.side-brand .pill { margin-left: auto; }
.nav-i:hover .wdot { transform: scale(1.06); }
.nav-i.on .wdot { background: var(--dc, var(--brand)); color: #fff; box-shadow: 0 6px 14px -6px var(--dc, var(--brand)); }
.wdot .i { width: 15px; height: 15px; }
.chip:hover { transform: translateY(-1px); }
.side-me > span:not(.av) { flex: 1; min-width: 0; display: grid; }
.side-me b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me small { font-size: 12px; color: var(--ink-3); }

.main { grid-area: main; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 26px 32px 16px; min-height: 86px; }
.ttl { display: grid; gap: 2px; min-width: 0; flex: 1; }
.crumb { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.ttl h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-acts { display: flex; align-items: center; gap: 8px; }
.top.hero { padding-top: 28px; }
.hero-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.hero-greet { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.hero-name { font-size: 30px; font-weight: 680; letter-spacing: -.034em; line-height: 1.12; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-clock { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 12px; font: 500 13px var(--mono); color: var(--ink-2); background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--sh-1); white-space: nowrap; }
.hero-mark { width: 44px; height: 44px; }
.test-mark { display: none; }
#tabsHost { padding: 0 32px; }
#tabsHost:empty { display: none; }
.page { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 32px 56px; scrollbar-gutter: stable; }
.sm-only { display: none !important; }

/* phone tab bar */
.tabs { display: none; }

/* overlays */
.scrim, .dscrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--t-3) var(--ease-out); }
.app[data-over] .scrim { pointer-events: auto; }
.app[data-over="sheet"] .scrim { opacity: .35; }
.dscrim.open { opacity: 1; pointer-events: auto; z-index: 58; }
.drawer { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(330px, 88vw); display: flex; flex-direction: column; gap: 10px; padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  background: var(--panel-solid); box-shadow: var(--sh-3); transform: translateX(-104%); transition: transform var(--t-3) var(--ease-sheet); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.dr-h { display: flex; align-items: center; gap: 10px; padding: 4px 4px 6px; }
.dr-t { flex: 1; display: grid; }
.dr-t b { font-size: 17px; font-weight: 680; }
.dr-t small { color: var(--ink-3); font-size: 12.5px; }
.dr-s { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: var(--r-s); background: var(--panel-sunk); border: 1px solid var(--line); color: var(--ink-3); }
.dr-nav { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.dr-nav .nav-i { height: 46px; }
.dr-me { display: flex; align-items: center; gap: 10px; padding: 10px 6px 2px; border-top: 1px solid var(--line); text-align: left; }
.dr-me span { display: grid; }
.dr-me small { color: var(--ink-3); }

.pop, .menu { position: fixed; z-index: 50; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--sh-3); padding: 5px; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity var(--t-1) var(--ease-out), transform var(--t-2) var(--ease-out), visibility 0s linear var(--t-2); }
.pop.open, .menu.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity var(--t-2) var(--ease-out), transform var(--t-3) var(--ease-spring); }
.pop.create { top: 56px; right: 100px; width: 264px; }
.pop.palette { top: 11vh; left: 50%; width: min(640px, calc(100vw - 32px)); margin-left: calc(min(640px, calc(100vw - 32px)) / -2); transform-origin: top center; padding: 0; overflow: hidden; }
.menu { position: absolute; min-width: 230px; }
.pg { padding: 8px 9px 4px; font-size: 12px; font-weight: 560; color: var(--ink-4); }
.pi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border-radius: 7px; color: var(--ink); text-align: left; font-weight: 500; font-size: 13.5px; transition: background var(--t-1); }
.pi:hover, .pi:focus-visible { background: var(--hover); text-decoration: none; }
.pi .i { color: var(--ink-3); }
.pi span { display: grid; min-width: 0; }
.pi small { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border-bottom: 1px solid var(--line); }
.pal-in input { flex: 1; border: 0; background: transparent; font-size: 15.5px; height: 100%; }
.pal-l { max-height: min(60vh, 520px); overflow-y: auto; padding: 6px; }
.pal-hint { padding: 18px 12px; color: var(--ink-3); font-size: 14px; }

.sheet { position: fixed; z-index: 45; top: 10px; right: 10px; bottom: 10px; width: min(520px, calc(100vw - 20px)); display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); transform: translateX(calc(100% + 24px)); opacity: 0; visibility: hidden; transition: transform var(--t-3) var(--ease-io), opacity var(--t-2) var(--ease-out), visibility 0s linear var(--t-3); }
.sheet.wide { width: min(760px, calc(100vw - 16px)); }
.sheet.open { transform: none; opacity: 1; visibility: visible; transition: transform var(--t-4) var(--ease-sheet), opacity var(--t-2) var(--ease-out); }
.sheet-h { display: flex; align-items: flex-start; gap: 10px; padding: 18px 16px 10px 22px; }
.sheet-h > b { flex: 1; font-size: 17px; font-weight: 620; letter-spacing: -.02em; line-height: 1.3; padding-top: 6px; overflow-wrap: anywhere; }
.sheet-b { flex: 1; overflow-y: auto; padding: 4px 22px 24px; overscroll-behavior: contain; }
.sheet-f { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 22px; border-top: 1px solid var(--line); }

.toasts { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 14px; background: var(--ink); color: var(--panel-solid); font-weight: 560; font-size: 14px; box-shadow: var(--sh-3); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity var(--t-2) var(--ease-out), transform var(--t-4) var(--ease-spring); max-width: min(560px, calc(100vw - 32px)); }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(-6px) scale(.98); transition: opacity var(--t-2) var(--ease-io), transform var(--t-2) var(--ease-io); }
.toast.err { background: var(--err-fill); color: #fff; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel-solid); color: var(--ink); font-weight: 560; font-size: 14px; white-space: nowrap; box-shadow: 0 1px 2px rgba(16, 28, 60, .05); position: relative; flex-shrink: 0; transition: background var(--t-1), border-color var(--t-1), transform var(--t-2) var(--ease-spring), box-shadow var(--t-2); }
.btn:hover { background: var(--panel-sunk); text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.pri { background: var(--pri-bg); color: var(--pri-ink); border-color: transparent; box-shadow: 0 1px 2px rgba(16, 28, 60, .16), 0 8px 18px -8px var(--glow); }
.btn.pri:hover { background: var(--pri-hover); box-shadow: 0 1px 2px rgba(16, 28, 60, .16), 0 12px 22px -8px var(--glow); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); }
.btn.err { color: var(--err); border-color: color-mix(in oklab, var(--err) 30%, transparent); }
.btn.err:hover { background: var(--err-soft); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; height: 44px; }
.btn:disabled { opacity: .5; }
.btn .i { width: 15px; height: 15px; }
.ibtn { position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--ink-2); flex: none; transition: background var(--t-1), color var(--t-1), transform var(--t-2) var(--ease-spring); }
.ibtn:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.ibtn:active { transform: scale(.94); }
.ibtn .pip { position: absolute; top: 1px; right: 0; }
.linkbtn { color: var(--brand); font-weight: 540; text-decoration: underline; text-underline-offset: 3px; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--mute-soft); color: var(--mute); }
.pill.ok, .pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.warn, .pill.yellow { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--err-soft); color: var(--err); }
.pill.info, .pill.blue { background: var(--info-soft); color: var(--info); }
.pill.pur { background: var(--pur-soft); color: var(--pur); }
.pill.work { background: color-mix(in oklab, var(--d-svc) 14%, transparent); color: color-mix(in oklab, var(--d-svc) 70%, var(--ink)); }
.pill.orange { background: color-mix(in oklab, var(--d-sal) 14%, transparent); color: color-mix(in oklab, var(--d-sal) 72%, var(--ink)); }
.pill.mute, .pill.grey { background: var(--mute-soft); color: var(--mute); }
.pill.test { background: transparent; color: var(--warn); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--warn-fill) 70%, transparent); font-family: var(--mono); letter-spacing: .04em; }

.chips { display: flex; gap: 6px; align-items: center; }
.chips.scroll { overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-solid); color: var(--ink-2); font-weight: 560; font-size: 13px; white-space: nowrap; box-shadow: 0 1px 2px rgba(16, 28, 60, .04); transition: background var(--t-2), border-color var(--t-1), color var(--t-1), transform var(--t-2) var(--ease-spring); }
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip.on { background: var(--pri-bg); border-color: var(--pri-bg); color: var(--pri-ink); }
.chip em { font: 500 11.5px var(--mono); font-style: normal; color: var(--ink-3); }
.chip.on em { color: inherit; opacity: .72; }
.chip.sm { height: 30px; padding: 0 11px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--bg-2); border: 0; }
.seg.wide { display: flex; }
.seg.wide > button { flex: 1; }
.seg > button { height: 34px; padding: 0 13px; border-radius: 9px; color: var(--ink-2); font-weight: 560; font-size: 13.5px; transition: background var(--t-2), color var(--t-2), box-shadow var(--t-2); }
.seg > button:hover { color: var(--ink); }
.seg > button.on { background: var(--panel-solid); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.vtabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; position: relative; }
.vtabs > button { position: relative; padding: 10px 12px 13px; color: var(--ink-3); font-weight: 560; font-size: 14px; white-space: nowrap; transition: color var(--t-1); }
.vtabs > button:hover { color: var(--ink); }
.vtabs > button.on { color: var(--info); }
.vtabs > button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.tabn { font: 500 11.5px var(--mono); font-style: normal; color: var(--ink-3); }
.sw { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); flex: none; transition: background var(--t-2); }
.sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(9, 9, 11, .3); transition: transform var(--t-3) var(--ease-spring); }
.sw[aria-checked="true"] { background: var(--brand); }
.sw[aria-checked="true"] i { transform: translateX(16px); }

.bsearch { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; min-width: 220px; flex: 0 1 320px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel-solid); color: var(--ink-3); box-shadow: 0 1px 2px rgba(16, 28, 60, .04); transition: border-color var(--t-1), box-shadow var(--t-2); }
.bsearch:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.bsearch input { flex: 1; min-width: 0; border: 0; background: transparent; height: 100%; color: var(--ink); }
.btools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.btools .fld { display: flex; align-items: center; gap: 8px; }
.btools select.in { height: 38px; width: auto; }

.fld { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fld > label { font-size: 12.5px; font-weight: 540; color: var(--ink-2); }
.in { width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel-solid); color: var(--ink); font-size: 14.5px; transition: border-color var(--t-1), box-shadow var(--t-2); }
.in::placeholder { color: var(--ink-4); }
.in:hover { border-color: var(--ink-4); }
.in:focus { border-color: var(--brand); box-shadow: var(--focus); }
textarea.in { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.45; }
select.in { padding-right: 8px; }
.in:disabled { opacity: .6; }
.fv { min-height: 42px; display: flex; align-items: center; color: var(--ink-2); }
.chk-l { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; font-weight: 500; font-size: 13.5px; }
.chk-l input { width: 18px; height: 18px; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-err:empty { display: none; }
.form-err { margin-bottom: 12px; }
form[data-form] { display: grid; gap: 14px; }
details.fold summary { cursor: pointer; color: var(--brand); font-weight: 540; margin: 6px 0; }

/* ---------- surfaces and lists ---------- */
.card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px; box-shadow: var(--sh-1); min-width: 0; position: relative; }
.card > h4 { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 15px; }
.card > h4 .i { color: var(--ink-3); }
.card > h4 em, .gh em { font: 500 12px var(--mono); font-style: normal; color: var(--ink-3); }
.rt { margin-left: auto; }
.sec { display: flex; align-items: center; gap: 8px; margin: 24px 0 10px; font-size: 12.5px; font-weight: 560; color: var(--ink-3); }
.sh4 { font-size: 16px; font-weight: 620; letter-spacing: -.015em; margin: 4px 0 12px; }
.kv { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 9px 16px; font-size: 14px; margin: 4px 0 8px; }
.kv > span:nth-child(odd) { color: var(--ink-3); font-size: 13px; font-weight: 500; padding-top: 1px; }
.kv > span:nth-child(even) { min-width: 0; overflow-wrap: anywhere; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.btnrow:empty { display: none; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
code.jv, .act-code { font: 500 12.5px/1.5 var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--panel-sunk); border: 1px solid var(--line); word-break: break-all; }
.tokbox { display: grid; gap: 10px; margin-top: 12px; }
.more-row { display: flex; justify-content: center; padding: 14px; }
.chipls { display: flex; flex-wrap: wrap; gap: 4px; }
.chipl { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 8px; border-radius: 7px; background: var(--panel-sunk); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; max-width: 100%; }
.chipl span { overflow: hidden; text-overflow: ellipsis; }
.chipl .i { width: 14px; height: 14px; color: var(--ink-3); }
.chipl.nvc { color: var(--warn); }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--c, var(--brand)); color: #fff; font-weight: 600; font-size: 11.5px; }
.av.lg { width: 30px; height: 30px; font-size: 12.5px; }
.av-empty { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px dashed var(--line-2); color: var(--ink-4); }
.av-empty .i { width: 14px; height: 14px; }
.lnk { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 540; }
.lnk .i { width: 15px; height: 15px; }
.lnk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnk.off { color: var(--ink-2); }
.bar { display: inline-block; width: 100%; height: 5px; border-radius: 3px; background: var(--c-track); overflow: hidden; vertical-align: middle; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--brand); transform-origin: left center; }
.bar.err > i { background: var(--err-fill); }
.bar.warn > i { background: var(--warn-fill); }
.bar.ok > i { background: var(--ok-fill); }

.tbl { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-1); overflow: hidden; }
.gh { display: flex; align-items: center; gap: 9px; padding: 16px 20px; font-size: 15px; font-weight: 620; border-bottom: 1px solid var(--line); }
.gh .i { color: var(--ink-3); }
.row { display: grid; grid-template-columns: var(--cols); gap: 14px; align-items: center; padding: 12px 20px; min-height: 54px; border-top: 1px solid var(--line); font-size: 14px; }
.row > span { min-width: 0; }
.tbl > .row:first-child, .gh + .row, .row.h + .row { border-top: 0; }
.row.h { min-height: 0; padding-top: 11px; padding-bottom: 11px; background: var(--panel-sunk); font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; }
.row.link { cursor: pointer; transition: background var(--t-1); }
.row.link:hover { background: var(--hover); }
.rw2 { display: grid; gap: 1px; min-width: 0; }
.rw2 > b { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw2 > b a { color: var(--ink); }
.rw2 .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 32px 16px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.err-state { display: grid; justify-items: center; gap: 10px; color: var(--err); }
.err-state .i { width: 26px; height: 26px; }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 10px 13px; border-radius: var(--r-m); background: var(--info-soft); color: var(--info); font-size: 13.5px; font-weight: 500; margin-bottom: 12px; }
.note.err { background: var(--err-soft); color: var(--err); }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note .i { margin-top: 1px; }
.skel { display: grid; gap: 10px; padding: 4px 0; }
.skel > i { display: block; height: 48px; border-radius: var(--r-m); background: linear-gradient(100deg, var(--panel-sunk) 30%, var(--bg-2) 50%, var(--panel-sunk) 70%); background-size: 220% 100%; animation: shimmer 1.2s var(--ease-io) infinite; }
.skel > i:nth-child(2n) { width: 82%; }

.stat-g { display: grid; gap: 12px; margin-bottom: 16px; }
.stat-g.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { position: relative; display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--r-l); color: var(--ink); min-width: 0; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--sh-1); }
a.kpi { transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2), border-color var(--t-2); }
a.kpi:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--sh-2); }
.kpi .lb { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 560; color: var(--ink-3); }
.kpi .lb::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--brand)); flex: none; }
.kpi > b { font: 680 30px/1.1 var(--font); letter-spacing: -.035em; }
.kpi .sub { font-size: 12px; }
.kpi[data-tone="stuck"] { --tone: var(--err-fill); }
.kpi[data-tone="stuck"] > b { color: var(--err); }
.kpi[data-tone="work"], .kpi[data-tone="yellow"] { --tone: var(--warn-fill); }
.kpi[data-tone="done"] { --tone: var(--ok-fill); }
.kpi[data-tone="blue"] { --tone: var(--brand); }
.kpi[data-tone="purple"] { --tone: var(--c4); }

/* notifications, approvals, tasks */
.nlist { display: grid; }
.nrow { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 10px 6px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; transition: background var(--t-1); }
.nlist > .nrow:first-child { border-top: 0; }
.nrow:hover { text-decoration: none; background: var(--hover); border-radius: var(--r-s); }
.nrow .nt { grid-column: 2; }
.nrow em { grid-column: 2; font: 500 12px var(--mono); font-style: normal; color: var(--ink-3); }
.nrow.un { color: var(--ink); }
.nrow.un .nt { font-weight: 560; }
.udot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); grid-row: 1; }
.nrow2 { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.arow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); color: var(--ink); transition: background var(--t-1); }
.card > h4 + .arow { border-top: 0; }
.arow:hover { text-decoration: none; background: var(--hover); border-radius: var(--r-s); }
.am { display: flex; align-items: center; gap: 8px; flex: none; }
.qrow, .crow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.crow { display: grid; gap: 2px; }
.qt { flex: 1; display: grid; min-width: 0; }
.trow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); }
.chk { width: 24px; height: 24px; margin: 0 4px; border-radius: 8px; border: 1.6px solid var(--line-2); background: var(--panel-solid); display: grid; place-items: center; transition: background var(--t-2), border-color var(--t-2), transform var(--t-2) var(--ease-spring); }
.chk:hover { border-color: var(--ok-fill); }
.chk:active { transform: scale(.86); }
.chk svg { width: 16px; height: 16px; }
.chk path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--t-3) var(--ease-out); }
.chk.on { background: var(--ok-fill); border-color: var(--ok-fill); }
.chk.on path { stroke-dashoffset: 0; }
.tm { display: grid; gap: 1px; min-width: 0; }
.tt { color: var(--ink); font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.ts { font-size: 13px; }
.hist { margin-top: 4px; }
.tl-l { display: grid; }
.tl-l > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tl-l > div:first-child { border-top: 0; }
.tl-l > div > span:first-child { font: 500 12.5px/1.5 var(--mono); color: var(--ink-3); }

/* permissions matrix, audit diff */
.legend { gap: 12px; }
.lg-i { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.act-c { display: inline-grid; place-items: center; min-width: 24px; height: 21px; padding: 0 4px; border-radius: 6px; font: 600 11.5px var(--mono); background: var(--mute-soft); color: var(--mute); }
.a-read { background: var(--info-soft); color: var(--info); }
.a-create { background: var(--ok-soft); color: var(--ok); }
.a-update { background: var(--pur-soft); color: var(--pur); }
.a-approve { background: var(--warn-soft); color: var(--warn); }
.a-admin { background: var(--err-soft); color: var(--err); }
.a-prioritize { background: color-mix(in oklab, var(--d-sal) 14%, transparent); color: color-mix(in oklab, var(--d-sal) 72%, var(--ink)); }
.mtx-w { overflow: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); margin-bottom: 14px; }
.mtx { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
.mtx th, .mtx td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: top; }
.mtx tr:last-child > * { border-bottom: 0; }
.mtx tr:first-child > th { background: var(--panel-sunk); font-size: 12.5px; color: var(--ink-3); position: sticky; top: 0; }
.mtx th:first-child { position: sticky; left: 0; background: var(--panel-solid); font-weight: 560; color: var(--ink); z-index: 1; }
.mtx td .act-c { margin: 0 2px 2px 0; }
.mtx.diff td { font-family: var(--mono); font-size: 12.5px; white-space: normal; word-break: break-word; }
.mtx.diff tr.chg > td { background: var(--warn-soft); }

/* service board */
.kan { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(264px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.kcol { display: grid; gap: 10px; align-content: start; padding: 10px; border-radius: var(--r-l); background: var(--bg-2); border: 0; min-height: 220px; transition: box-shadow var(--t-2), background var(--t-2); }
.kcol.over { box-shadow: inset 0 0 0 2px var(--brand-line); background: var(--brand-soft); }
.kcol-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.kcol-h::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kc, var(--ink-4)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--kc, var(--ink-4)) 18%, transparent); }
.kcol[data-tone="blue"] { --kc: var(--brand); }
.kcol[data-tone="work"] { --kc: var(--d-svc); }
.kcol[data-tone="yellow"] { --kc: var(--warn-fill); }
.kcol[data-tone="done"] { --kc: var(--ok-fill); }
.kcol-h b { font-size: 13.5px; font-weight: 600; }
.kcol-h em { margin-left: auto; font: 600 12.5px var(--mono); font-style: normal; color: var(--ink-3); }
.kcol-l { display: grid; gap: 8px; }
.kcard { display: grid; gap: 8px; padding: 13px 14px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--sh-1); cursor: pointer; position: relative; transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2), opacity var(--t-2); }
.kcard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--line-2); }
.kcard[draggable="true"] { cursor: grab; }
.kcard.dragging { opacity: .45; }
.km { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.kt { font-weight: 560; font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.tno { font: 600 12.5px var(--mono); color: var(--ink-3); }
.kfoot { color: var(--ink-3); }
.kempty { padding: 18px 8px; text-align: center; color: var(--ink-4); font-size: 13px; border: 1.5px dashed var(--line-2); border-radius: var(--r-m); }

/* owner exceptions */
.tbl.exc .erow { display: grid; grid-template-columns: 180px minmax(0, 2fr) minmax(0, 1.1fr) 76px 140px minmax(0, 1.2fr); gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.tbl.exc .erow:first-child { border-top: 0; }
.tbl.exc .ek { min-width: 0; }
.tbl.exc .ek .pill { white-space: normal; height: auto; min-height: 24px; padding-top: 3px; padding-bottom: 3px; line-height: 1.3; max-width: 100%; }
.em { display: grid; gap: 1px; min-width: 0; }
.ea { font: 500 13px var(--mono); color: var(--ink-2); }
.imp { display: flex; align-items: center; gap: 8px; }
.imp .bar { width: 84px; }
.imp b { font: 600 13px var(--mono); }
.en { font-size: 13.5px; color: var(--ink-2); }

/* settings */
.set-s { max-width: 780px; display: grid; }
.set-r { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.set-s > .set-r:first-child { border-top: 0; padding-top: 4px; }
.set-l-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.set-l { font-weight: 560; }

/* duplicate warning (customer and supplier forms) */
.dup-box:empty { display: none; }
.dup-list { display: grid; gap: 4px; margin-top: 6px; }
.dup-row { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; color: var(--ink-2); }
.dup-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.tcard .tno { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.stbtns button { flex: 1; }
.nv .i { width: 12px; height: 12px; }

/* ---------- home ---------- */
.hm { display: grid; gap: 20px; align-content: start; }
.hm-main, .hm-side { display: grid; gap: 20px; align-content: start; min-width: 0; }
form[data-form].quick, .quick { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 16px; border-radius: var(--r-l); background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: border-color var(--t-1), box-shadow var(--t-2); }
.quick:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.qi { color: var(--brand); display: grid; }
.quick .in { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; box-shadow: none !important; height: 36px; padding: 0 6px; }
.quick .in.qd { width: 158px; flex: none; color: var(--ink-2); font-family: var(--mono); font-size: 13.5px; }
.plates { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-1); overflow: hidden; }
.pl-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.pl-h h4 { font-size: 16px; font-weight: 640; }
.pl-h em { font: 600 12px var(--font); font-style: normal; color: var(--ink-3); background: var(--bg-2); padding: 2px 8px; border-radius: 999px; }
.pl-h .pl-tag { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.plates.now .pl-tag { background: var(--err-fill); }
.plate { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--ink); position: relative; transition: background var(--t-1); }
a.plate:hover, .plate[data-href]:hover { background: var(--hover); text-decoration: none; cursor: pointer; }
.plate .pt { display: grid; gap: 1px; min-width: 0; }
.plate .pt b { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate .pt a { color: var(--ink); }
.plate .pt small { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate .pr { display: flex; align-items: center; gap: 8px; justify-self: end; }
.plate .ptile { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.plate .ptile .i { width: 15px; height: 15px; }
.due { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font: 560 12px var(--font); white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.due.late { background: var(--err-soft); color: var(--err); }
.due.today { background: var(--brand-soft); color: var(--info); }
.plates .empty { padding: 22px 16px 26px; }
.clear { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.clear .i { color: var(--ok-fill); width: 22px; height: 22px; }

/* ---------- charts ---------- */
.nums { display: grid; gap: 18px; }
.plates > .nums { padding: 4px 16px 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.fig-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fig { display: grid; gap: 2px; min-width: 0; }
.fig b { font: 620 26px/1.1 var(--font); letter-spacing: -.035em; }
.fig b.late { color: var(--err); }
.fig span { font-size: 12px; font-weight: 540; color: var(--ink-3); }
.ch { display: grid; gap: 8px; min-width: 0; }
.ch-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 560; color: var(--ink-2); }
.ch-h em { font: 500 12px var(--mono); font-style: normal; color: var(--ink-3); }
.ch svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch .g { stroke: var(--line); stroke-width: 1; }
.ch .ax { fill: var(--ink-3); font: 500 10.5px var(--mono); }
.ch .bk { fill: var(--c-track); }
.ch .b1 { fill: var(--c1); }
.ch .b2 { fill: var(--c2); }
.ch .l1 { fill: none; stroke: var(--c1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch .l2 { fill: none; stroke: var(--c2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch .a1 { fill: var(--c1); opacity: .1; }
.ch .dot1 { fill: var(--c1); stroke: var(--panel-solid); stroke-width: 2; }
.ch .dot2 { fill: var(--c2); stroke: var(--panel-solid); stroke-width: 2; }
.ch .hit { fill: transparent; cursor: default; }
.ch .hit:hover + .hl, .ch .hl.on { opacity: 1; }
.ch .hl { fill: var(--hover); opacity: 0; }
.seg-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--c-track); }
.seg-bar > i { display: block; height: 100%; min-width: 3px; background: var(--sc); transition: flex-grow var(--t-4) var(--ease-out); }
.seg-bar > i:first-child { border-radius: 6px 0 0 6px; }
.seg-bar > i:last-child { border-radius: 0 6px 6px 0; }
.seg-bar > i:only-child { border-radius: 6px; }
.lgd { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.lgd > span { display: inline-flex; align-items: center; gap: 6px; }
.lgd i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); flex: none; }
.lgd b { font: 600 12.5px var(--mono); color: var(--ink); }
.ch-tip { position: fixed; z-index: 90; pointer-events: none; padding: 7px 10px; border-radius: 10px; background: var(--ink); color: var(--panel-solid); font: 500 12.5px/1.35 var(--font); box-shadow: var(--sh-2); opacity: 0; transform: translate(-50%, calc(-100% - 6px)) scale(.96); transition: opacity var(--t-1), transform var(--t-2) var(--ease-out); white-space: nowrap; }
.ch-tip.on { opacity: 1; transform: translate(-50%, calc(-100% - 10px)); }
.ch-tip b { font-family: var(--mono); }

/* ---------- sign-in ---------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; position: relative; overflow: hidden; }
.login-stage { position: relative; height: 100%; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, var(--brand-soft), var(--bg) 70%); border-right: 1px solid var(--line); }
.login-stage::before { content: none; }
.login-stage .mark-xl { width: min(340px, 60%); aspect-ratio: 1; position: relative; }
.login-stage .stage-name { position: absolute; left: 0; right: 0; bottom: 9vh; display: grid; justify-items: center; gap: 4px; text-align: center; }
.login-stage .stage-name b { font-size: 20px; font-weight: 560; letter-spacing: -.025em; }
.login-stage .stage-name small { color: var(--ink-3); font-size: 13.5px; font-weight: 500; }
.login-wrap { display: grid; justify-items: center; gap: 18px; padding: 32px 24px; }
.login-h { display: flex; align-items: center; gap: 12px; width: min(420px, 100%); }
.login-h > span:nth-child(2) { display: grid; flex: 1; }
.login-h b { font-size: 16px; font-weight: 560; letter-spacing: -.02em; }
.login-h small { color: var(--ink-3); font-size: 13px; }
.login-card { width: min(400px, 100%); display: grid; gap: 14px; padding: 28px; border-radius: var(--r-xl); background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.login-card h3 { font-size: 22px; margin-bottom: 4px; }
.login-card p { color: var(--ink-3); }
.login-alt { text-align: center; font-size: 14px; color: var(--ink-3); }
.login-ok { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.login-ok .i { width: 26px; height: 26px; }
.login-f { display: flex; gap: 6px; }
#root > .login > .login-card { margin: auto; }

/* ---------- motion: see css/motion.css ---------- */
@keyframes shimmer { to { background-position: -220% 0; } }
.plate.gone { opacity: 0; transform: translateX(16px); transition: opacity var(--t-3) var(--ease-out), transform var(--t-3) var(--ease-out); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .gorg { display: none; }
  .app { grid-template-columns: 224px minmax(0, 1fr); }
  .cols2 { grid-template-columns: minmax(0, 1fr); }
  .tbl.exc .erow { grid-template-columns: 160px minmax(0, 2fr) minmax(0, 1fr) 70px 120px; }
  .tbl.exc .erow .en { display: none; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .stat-g.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top, #tabsHost, .page { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .btn { height: 40px; font-size: 14.5px; } .btn.sm { height: 36px; font-size: 13.5px; } .ibtn { width: 40px; height: 40px; }
  .in { height: 44px; font-size: 16px; } .chip { height: 34px; } .seg > button { height: 38px; } .row { font-size: 14.5px; } .vtabs > button { padding: 11px 12px 13px; font-size: 14.5px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "main"; height: 100dvh; }
  .gbar, .side { display: none; }
  .sm-only { display: inline-grid !important; }
  .lg-only { display: none !important; }
  .test-mark { display: inline-flex; }
  .top { padding: calc(12px + env(safe-area-inset-top)) 12px 6px 16px; min-height: 64px; gap: 4px;
    background: var(--chrome); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
  .top.hero { border-bottom: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: calc(16px + env(safe-area-inset-top)); }
  .ttl h3 { font-size: 21px; }
  .hero-name { font-size: 26px; }
  .hero-clock { display: none; }
  .hero-mark { width: 44px; height: 44px; }
  .top-acts .btn .lbl { display: none; }
  .top-acts .btn.sm { width: 38px; padding: 0; }
  #tabsHost { padding: 6px 16px 0; }
  .page { padding: 12px 16px calc(112px + env(safe-area-inset-bottom)); scrollbar-gutter: auto; }
  .row { grid-template-columns: var(--cols-sm); padding: 12px 14px; }
  .stat-g.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi > b { font-size: 24px; }
  .two, .three { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv > span:nth-child(even) { margin-bottom: 10px; }
  .btools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
  .btools .bsearch { min-width: 200px; flex: 1 0 200px; }
  .kan { grid-auto-columns: minmax(82vw, 1fr); scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 10px; }
  .kcol { scroll-snap-align: start; }
  .trow { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 12px 14px; }
  .trow .ts { display: none; }
  .tbl.exc .erow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ek ei" "em em" "eo ea"; gap: 6px 10px; }
  .tbl.exc .ek { grid-area: ek; } .tbl.exc .ei { grid-area: ei; } .tbl.exc .em { grid-area: em; } .tbl.exc .eo { grid-area: eo; } .tbl.exc .ea { grid-area: ea; justify-self: end; }
  .fig b { font-size: 23px; }
  .quick { flex-wrap: wrap; }
  .quick .in { flex: 1 1 60%; }
  .quick .in.qd { flex: 1 1 auto; width: auto; }
  .plate .pr .mny { display: none; }

  .tabs { display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px; padding: 0 6px; align-items: center;
    border-radius: 20px; background: var(--chrome); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--chrome-edge); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); }
  .tab { position: relative; flex: 1; height: 54px; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 16px; color: var(--ink-3); font-size: 11px; font-weight: 600; }
  .tab:hover { text-decoration: none; }
  .tab .i { width: 22px; height: 22px; }
  .tab.on { color: var(--ink); }
  .tab .i { transition: transform var(--t-3) var(--ease-spring); }
  .tab.on .i { transform: translateY(-1px) scale(1.08); }
  .tab span { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab.plus { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 16px; background: var(--pri-bg); color: var(--pri-ink); margin: 0 4px; box-shadow: 0 8px 20px -8px var(--glow), 0 2px 6px rgba(9, 9, 11, .2); transition: transform var(--t-2) var(--ease-spring); }
  .tab.plus .i { width: 24px; height: 24px; stroke-width: 2.2; }
  .tab.plus:active { transform: scale(.94); }
  .tabpip { position: absolute; top: 2px; left: calc(50% + 4px); }

  .app[data-over="sheet"] .scrim { opacity: 1; }
  .app[data-over="create"] .scrim, .app[data-over="palette"] .scrim { opacity: 1; }
  .sheet, .sheet.wide { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: calc(94dvh - env(safe-area-inset-top)); border-radius: 24px 24px 0 0; transform: translateY(102%); }
  .sheet.open, .sheet.wide.open { transform: none; }
  .sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-2); }
  .sheet-h { padding-top: 22px; }
  .sheet-b { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .pop.create { top: auto; right: auto; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); width: min(320px, calc(100vw - 32px)); margin-left: calc(min(320px, calc(100vw - 32px)) / -2); transform-origin: bottom center; }
  .pop.palette { top: calc(12px + env(safe-area-inset-top)); }
  .toasts { bottom: calc(92px + env(safe-area-inset-bottom)); }

  .login { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .login-stage { min-height: 0; height: 36dvh; border-right: 0; }
  .login-stage .mark-xl { width: min(200px, 52vw); }
  .login-stage .stage-name { display: none; }
  .login-wrap { padding: 4px 16px 32px; }
  .login-card { padding: 22px; }
}
@media (max-width: 380px) {
  .fig-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab span { font-size: 10.5px; }
}
@media print {
  .gbar, .side, .tabs, .scrim, .dscrim, .drawer, .toasts { display: none !important; }
  .app { display: block; height: auto; }
  .page { overflow: visible; }
}

/* ---------- home v4: coloured tiles, chart cards, department launcher ---------- */
.hm-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); gap: 20px; align-items: start; }
.kts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kts.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kts.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chc { padding: 18px 20px 16px; }
.chc .ch-h { font-size: 15px; font-weight: 620; color: var(--ink); }
.ch .ar { stroke: none; }
.ch.area .l1, .ch.area .l2 { stroke-width: 2.4; }
.ch.area .ax { font: 500 11.5px var(--mono); }
.ch.area .hl { fill: var(--line-2); }
.dn-w { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center; }
.dn-c { position: relative; }
.dn-c svg { transform: rotate(0deg); }
.dn-t { fill: none; stroke: var(--c-track); stroke-width: 5; }
.dn { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-width var(--t-2); }
.dn:hover { stroke-width: 6.5; }
.dn-m { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; pointer-events: none; }
.dn-m b { font: 700 26px/1 var(--font); letter-spacing: -.04em; }
.dn-m span { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.lgd.col { display: grid; gap: 8px; }
.lgd.col > span { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 8px; }
.launch { display: grid; gap: 12px; }
.launch > h4 { font-size: 16px; font-weight: 640; }
.launch-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.lt { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: var(--r-l); background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink);
  transition: transform var(--t-3) var(--ease-spring), box-shadow var(--t-2), border-color var(--t-2); }
.lt:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in oklab, var(--dc) 36%, transparent); box-shadow: 0 2px 4px rgba(16, 28, 60, .05), 0 18px 30px -18px var(--dc); }
.lt-i { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--dc) 14%, transparent); color: var(--dc); transition: background var(--t-2), color var(--t-2), transform var(--t-3) var(--ease-spring); }
.lt-i .i { width: 20px; height: 20px; }
.lt:hover .lt-i { background: var(--dc); color: #fff; transform: scale(1.06) rotate(-4deg); }
.lt-t { display: grid; min-width: 0; flex: 1; }
.lt-t b { font-weight: 620; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-t small { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-go { color: var(--ink-4); transition: transform var(--t-3) var(--ease-out), color var(--t-2); }
.lt:hover .lt-go { transform: translateX(3px); color: var(--dc); }
@media (max-width: 1180px) { .hm-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .launch-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .lt { padding: 12px; gap: 10px; } .lt-go { display: none; } .lt-i { width: 38px; height: 38px; }
  .dn-w { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .side-brand { display: none; }
}

/* ---------- v5 (owner notes, 2026-11-14): one plus sign, fewer words, department colour, a ground with depth ---------- */

/* ground: two soft washes (top right takes the screen's department colour) over a dot grid that fades out */
.main { position: relative; isolation: isolate; background:
  radial-gradient(880px 400px at 96% -10%, color-mix(in oklab, var(--dc, var(--brand)) 15%, transparent), transparent 72%),
  radial-gradient(720px 360px at 4% -14%, color-mix(in oklab, var(--brand) 9%, transparent), transparent 72%); }
.main::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--ink) 13%, transparent) 1px, transparent 1.5px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 460px); mask-image: linear-gradient(to bottom, #000 0, transparent 460px); }

/* screen title: the screen's own tile, no line above the heading */
.top { padding-top: 22px; min-height: 80px; }
.ttl { display: flex; align-items: center; gap: 12px; }
.ttl-i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--dc, var(--brand)); color: var(--on-dc); box-shadow: 0 10px 18px -10px var(--dc, var(--brand)); }
.ttl-i .i { width: 20px; height: 20px; stroke-width: 1.8; }
.main .vtabs > button.on { color: var(--ink); }
.main .vtabs > button.on::after, .main .vtabs .ink { background: var(--dc, var(--brand)); }

/* sidebar: the active row takes its department's colour; the person and the set-up screens live in the account menu */
.side { padding-bottom: 8px; }
.nav-i.on { background: color-mix(in oklab, var(--dc, var(--brand)) 11%, transparent); color: var(--ink); }
.nav-i.on .wdot { color: var(--on-dc); }
.menu { min-width: 248px; }
.um-h { display: flex; align-items: center; gap: 10px; padding: 9px 9px 11px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.um-h > span:last-child { display: grid; min-width: 0; }
.um-h b { font-size: 14px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-h small { font-size: 12.5px; color: var(--ink-3); }
.pg-sep { height: 1px; margin: 4px 0; background: var(--line); }

/* Home brief: the one saturated surface on the page */
.bf { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 32px; align-items: center; padding: 28px 32px; border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(560px 320px at 86% -30%, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(135deg, var(--slab-1), var(--slab-2) 56%, var(--slab-3));
  box-shadow: 0 2px 6px rgba(20, 44, 140, .16), 0 28px 48px -28px var(--slab-glow); }
.bf::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--t-4) var(--ease-out);
  background: radial-gradient(380px circle at var(--mx, 80%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 65%); }
:root[data-motion="high"] .bf:hover::after { opacity: 1; }
.bf-t { display: grid; gap: 6px; min-width: 0; }
.bf-greet { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .88); }
.bf-say { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.035em; color: #fff; }
.bf-say b { font-weight: 700; }
.bf-sub { display: flex; flex-wrap: wrap; font-size: 15px; color: rgba(255, 255, 255, .9); }
.bf-sub b { font-weight: 650; color: #fff; }
.bf-sub span + span::before { content: "·"; margin: 0 9px; opacity: .6; }
.bf-date { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 6px; text-align: right; padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .24); }
.bf-date span { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.bf-date b { font: 400 68px/.84 var(--font); letter-spacing: -.04em; color: #fff; }
.bf form.quick { grid-column: 1; max-width: 620px; padding: 6px 6px 6px 14px; gap: 10px; border-radius: 14px; background: #fff; border-color: transparent; color: #0E1630; color-scheme: light; box-shadow: 0 14px 26px -16px rgba(6, 16, 70, .7); }
.bf form.quick:focus-within { border-color: transparent; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5), 0 14px 26px -16px rgba(6, 16, 70, .7); }
.bf form.quick .in { color: #0E1630; }
.bf form.quick .in::placeholder { color: #5C667F; }
.bf form.quick .in.qd { color: #3A4460; }
.q-box { width: 18px; height: 18px; flex: none; border-radius: 6px; border: 1.6px solid #A8B1C4; }

/* Home tiles: white, the colour is in the mark and in the small picture of the tile's own data */
.kts > .kt { --tone: var(--brand); position: relative; display: grid; gap: 2px; align-content: start; padding: 16px 18px 18px; border-radius: var(--r-l); color: var(--ink); background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-weight: 400; font-size: inherit; line-height: inherit; transition: transform var(--t-3) var(--ease-spring), box-shadow var(--t-2), border-color var(--t-2); }
.kts > .kt:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in oklab, var(--tone) 45%, transparent); box-shadow: 0 2px 4px rgba(16, 28, 60, .05), 0 20px 34px -20px var(--tone); }
.kts > .kt:active { transform: translateY(-1px) scale(.99); }
.kt[data-tone="err"] { --tone: var(--err-fill); } .kt[data-tone="warn"] { --tone: var(--warn-fill); } .kt[data-tone="ok"] { --tone: var(--ok-fill); } .kt[data-tone="svc"] { --tone: var(--d-svc); }
.kt-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kt-i { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--tone); color: #fff; box-shadow: 0 8px 14px -8px var(--tone); }
.kt-i .i { width: 17px; height: 17px; stroke-width: 1.9; }
.kt-l { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-go { color: var(--ink-4); transition: transform var(--t-3) var(--ease-out), color var(--t-2); }
.kts > .kt:hover .kt-go { transform: translateX(3px); color: var(--ink); }
.kts > .kt > b { font: 700 38px/1 var(--font); letter-spacing: -.04em; }
.kt-s { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-s.late { color: var(--err); font-weight: 600; }
.kt-v { margin-top: 14px; }
.kt-v.seg-bar { height: 6px; }
.kt-sp { display: grid; grid-template-columns: repeat(var(--n, 14), minmax(0, 1fr)); gap: 3px; align-items: end; height: 26px; }
.kt-sp i { display: block; height: var(--h); min-height: 3px; border-radius: 2px; background: color-mix(in oklab, var(--tone) 34%, transparent); }
.kt-sp i.on { background: var(--tone); }

/* rows: the tile is the department that asked */
.plate .ptile { background: color-mix(in oklab, var(--dc, var(--warn-fill)) 14%, transparent); color: var(--dc, var(--warn)); }
.hm-grid.one { grid-template-columns: minmax(0, 1fr); }

/* daily columns */
.cl { display: grid; gap: 6px; }
.cl-plot { position: relative; display: grid; grid-template-columns: repeat(var(--n, 14), minmax(0, 1fr)); align-items: end; height: 122px; padding-top: 18px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(to right, var(--line-2) 45%, transparent 0) 0 18px / 7px 1px repeat-x; }
.cl-top { position: absolute; top: 0; right: 0; font: 500 11.5px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.cl-d { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; border-radius: 6px 6px 0 0; transition: background var(--t-1); }
.cl-d:hover { background: var(--hover); }
.cl-d.now { background: color-mix(in oklab, var(--c1) 8%, transparent); }
.cl-d i { display: block; width: min(34%, 11px); height: var(--h); border-radius: 4px 4px 1px 1px; }
.cl-d .b1 { background: linear-gradient(to top, color-mix(in oklab, var(--c1) 70%, var(--panel-solid)), var(--c1)); }
.cl-d .b2 { background: linear-gradient(to top, color-mix(in oklab, var(--c2) 70%, var(--panel-solid)), var(--c2)); }
.cl-d .z { height: 3px; border-radius: 2px; background: var(--c-track); }
.cl-ax { display: flex; justify-content: space-between; font: 500 11.5px var(--mono); color: var(--ink-3); }
.chc .nums { gap: 20px; }
.chc .nums > .ch + .ch { padding-top: 18px; border-top: 1px solid var(--line); }

/* number tiles on the other screens: a square mark in the tile's tone */
.kpi .lb::before { width: 9px; height: 9px; border-radius: 3px; }
.kpi > b { font-weight: 700; }

@media (min-width: 721px) {
  /* Home's greeting is inside the brief; the phone keeps it in the top bar beside search and the bell */
  .top.hero { display: none; }
  .top.hero ~ .page { padding-top: 24px; }
  /* the sidebar already lists the departments */
  .launch { display: none; }
}
@media (max-width: 1180px) { .kts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bf-date b { font-size: 56px; } }
@media (max-width: 720px) {
  .ttl-i { width: 34px; height: 34px; border-radius: 10px; }
  .ttl-i .i { width: 17px; height: 17px; }
  .top-acts .btn.sm { width: auto; padding: 0 12px; }
  .top-acts .btn.sm:has(> .lbl) { width: 38px; padding: 0; }
  .bf { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 18px; border-radius: 20px; }
  .bf-greet, .bf-date { display: none; }
  .bf-say { font-size: 26px; }
  .bf form.quick { padding: 6px 6px 6px 12px; }
  .kts, .kts.n3 { gap: 10px; }
  .kts > .kt { padding: 14px 14px 16px; }
  .kts > .kt > b { font-size: 32px; }
  .cl-plot { height: 108px; }
}
