/* ==========================================================================
   Bizzell KPI Command Center — design system
   Brand from bizzellus.com: Bizzell orange (#f15b28 / #d63e0a), slate
   (#222d35), body grey (#555c63), Open Sans, square-cornered layout.
   Status and unit colours come from the validated data-viz palette; each
   status always ships with a glyph and a label, never colour alone.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #f8f8f8; --surface: #ffffff; --surface-2: #f5f5f5; --surface-3: #ebebeb;
  --ink: #222d35; --ink-2: #555c63; --muted: #858c93; --line: #e6e6e6; --line-2: #d4d4d4;
  --accent: #d63e0a; --accent-2: #b5340a; --accent-bright: #f15b28; --accent-soft: #fdeee8; --accent-ink: #ffffff;
  --st-done: #0ca30c; --st-ip: #2a78d6; --st-risk: #fab219; --st-blocked: #ec835a; --st-overdue: #d03b3b; --st-ns: #c9c8c0;
  --good: #0a8a0a; --warn: #a86b00; --bad: #c42f2f;
  --good-soft: #e5f6e5; --warn-soft: #fff4dc; --bad-soft: #fde9e9;
  --side: #222d35; --side-2: #2d3a44; --side-ink: #cdd2d6; --side-muted: #8d979f;
  --shadow-1: 0 1px 2px rgba(34, 45, 53, .06);
  --shadow-2: 0 6px 18px rgba(34, 45, 53, .10);
  --shadow-3: 0 24px 48px -12px rgba(34, 45, 53, .28);
  --r: 6px; --r-sm: 4px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141a1f; --surface: #1c242b; --surface-2: #222d35; --surface-3: #2d3a44; --ink: #eef0f2; --ink-2: #bcc3c9; --muted: #8a949c; --line: #2b363f; --line-2: #3a4752;
    --accent: #f15b28; --accent-2: #f47a4f; --accent-soft: #3a2218;
    --st-ip: #3987e5; --st-ns: #4a4a46;
    --good: #4cc24c; --warn: #f0b43c; --bad: #ef6b6b; --good-soft: #142a14; --warn-soft: #2e2510; --bad-soft: #321616;
    --side: #10161a; --side-2: #1f2a32;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 6px 16px rgba(0, 0, 0, .35); --shadow-3: 0 24px 48px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141a1f; --surface: #1c242b; --surface-2: #222d35; --surface-3: #2d3a44; --ink: #eef0f2; --ink-2: #bcc3c9; --muted: #8a949c; --line: #2b363f; --line-2: #3a4752;
  --accent: #f15b28; --accent-2: #f47a4f; --accent-soft: #3a2218;
  --st-ip: #3987e5; --st-ns: #4a4a46;
  --good: #4cc24c; --warn: #f0b43c; --bad: #ef6b6b; --good-soft: #142a14; --warn-soft: #2e2510; --bad-soft: #321616;
  --side: #10161a; --side-2: #1f2a32;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 6px 16px rgba(0, 0, 0, .35); --shadow-3: 0 24px 48px -12px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.55 "Open Sans", Tahoma, Geneva, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .1px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: 0; color: var(--ink); }
.muted { color: var(--muted); }
.sm { font-size: 12px; }
.bad { color: var(--bad) !important; }
.warn { color: var(--warn); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.tiny { width: 13px; height: 13px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.success { background: var(--st-done); border-color: var(--st-done); color: #fff; }
.btn.success:hover { filter: brightness(.94); color: #fff; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--accent); }
.btn.danger-text { color: var(--bad); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 3px; }
.btn.lg { height: 48px; font-size: 15px; border-radius: 3px; letter-spacing: .3px; }
.btn.block { width: 100%; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; color: var(--ink-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.ok { color: var(--good); background: var(--good-soft); }
.icon-btn.no { color: var(--bad); background: var(--bad-soft); }
.icon-btn.ok:hover, .icon-btn.no:hover { filter: brightness(.95); }
.icon-btn .dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 4px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
.busy .spin { display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea, .inline-form input, .facts select {
  width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 3px; padding: 9px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input[type=radio], .field input[type=checkbox] { width: auto; flex: none; padding: 0; box-shadow: none; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus, .facts select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.hint .ic { width: 14px; height: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 22px; }

/* ---------- pills, chips, avatars ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--ink); font-size: 12px; font-weight: 550; white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pill .g { font-size: 10px; color: var(--ink-2); width: 10px; text-align: center; }
.uchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.uchip i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.phase { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 3px; background: var(--surface-3); color: var(--ink-2); font-size: 11px; font-weight: 650; letter-spacing: .02em; white-space: nowrap; }
.role { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-3); color: var(--ink-2); }
.role-ceo { background: var(--accent-bright, #f15b28); color: #fff; }
.role-admin { background: #222d35; color: #eef0f2; }
.role-head { background: var(--accent-soft); color: var(--accent); }
.av { --s: 32px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c); color: #fff; font-size: calc(var(--s) * .38); font-weight: 650; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--surface); user-select: none; }
.av-empty, .av-more { background: var(--surface-3); color: var(--ink-2); }
.av-stack { display: inline-flex; }
.av-stack .av + .av { margin-left: -8px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--surface-3); color: var(--ink-2); font-size: 11px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 3px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.chip .ic { width: 15px; height: 15px; }
.state { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 3px; font-size: 11px; font-weight: 700; text-transform: capitalize; background: var(--surface-3); color: var(--ink-2); }
.state.good { background: var(--good-soft); color: var(--good); }
.state.warn { background: var(--warn-soft); color: var(--warn); }
.state.bad { background: var(--bad-soft); color: var(--bad); }
.pending { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.pending .ic { width: 13px; height: 13px; }

/* ---------- data marks ---------- */
.meter { position: relative; display: block; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 18%, var(--surface-3)); overflow: hidden; }
.meter.thin { height: 6px; }
.meter i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 99px; background: var(--c); transform-origin: left; animation: grow .8s var(--ease) both; transition: width .3s var(--ease); }
.quiet .meter i, .quiet .seg i, .quiet .ring-fill, .quiet .card, .quiet .tile { animation: none !important; }
@keyframes grow { from { transform: scaleX(0); } }
.seg { display: flex; gap: 2px; height: 8px; margin: 10px 0 0; }
.seg i { border-radius: 99px; background: var(--c); min-width: 6px; animation: grow .8s var(--ease) both; transform-origin: left; }
.seg.tall { height: 14px; margin-top: 16px; }
.seg.tall i { border-radius: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.lg i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.lg b { color: var(--ink); font-weight: 650; }
.ring { transform: rotate(-90deg); display: block; }
.ring circle { fill: none; }
.ring-track { stroke: var(--surface-3); }
.ring-fill { stroke: var(--accent-bright, var(--accent)); stroke-linecap: round; stroke-dashoffset: var(--off); animation: ring 1.1s var(--ease) both; }
@keyframes ring { from { stroke-dashoffset: var(--full); } }
.health-dots { display: inline-flex; gap: 4px; }
.health-dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); }
.login-art { position: relative; overflow: hidden; padding: 44px 56px; display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(120deg, #f15b28 0%, #e24d17 45%, #c9390a 100%); }
/* the flowing-line texture from the bizzellus.com banner */
.login-art::before { content: ""; position: absolute; inset: -10%; opacity: .22; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='%23fff' stroke-width='1'%3E%3Cpath d='M-50 620C150 520 260 700 470 600S760 380 900 430'/%3E%3Cpath d='M-50 640C150 540 260 720 470 620S760 400 900 450'/%3E%3Cpath d='M-50 660C150 560 260 740 470 640S760 420 900 470'/%3E%3Cpath d='M-50 680C150 580 260 760 470 660S760 440 900 490'/%3E%3Cpath d='M-50 700C150 600 260 780 470 680S760 460 900 510'/%3E%3Cpath d='M-50 720C150 620 260 800 470 700S760 480 900 530'/%3E%3Cpath d='M-50 740C150 640 260 820 470 720S760 500 900 550'/%3E%3Cpath d='M-50 200C120 120 300 300 480 220S760 60 900 120'/%3E%3Cpath d='M-50 220C120 140 300 320 480 240S760 80 900 140'/%3E%3Cpath d='M-50 240C120 160 300 340 480 260S760 100 900 160'/%3E%3Cpath d='M-50 260C120 180 300 360 480 280S760 120 900 180'/%3E%3Cpath d='M-50 280C120 200 300 380 480 300S760 140 900 200'/%3E%3C/svg%3E") center / cover no-repeat; }
.login-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(150, 40, 5, .35)); pointer-events: none; }
.login-art > * { z-index: 1; }
.brand-lg { position: relative; display: flex; align-items: center; gap: 16px; font-weight: 400; font-size: 15px; letter-spacing: .3px; }
.logo-img { height: 34px; width: auto; display: block; }
.logo-img.on-color { filter: brightness(0) invert(1); height: 38px; }
.brand-div { width: 1px; height: 26px; background: currentColor; opacity: .45; }
.art-copy { position: relative; margin-top: 64px; max-width: 540px; }
.art-eyebrow { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.85); margin-bottom: 16px; }
.art-copy h1 { font-size: 42px; line-height: 1.18; letter-spacing: 0; font-weight: 300; color: #fff; }
.art-copy h1 b { font-weight: 700; }
.art-copy p { color: rgba(255,255,255,.88); font-size: 16px; margin: 18px 0 0; max-width: 460px; }
.art-stage { position: relative; flex: 1; min-height: 300px; }
.glass { position: absolute; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 6px; padding: 16px; box-shadow: 0 20px 40px rgba(120,30,0,.25); animation: float 7s ease-in-out infinite; }
.glass b { display: block; font-size: 14px; }
.glass span { font-size: 12px; color: rgba(255,255,255,.85); }
.g1 { top: 36px; left: 0; width: 280px; }
.glass-k { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px !important; font-weight: 700; }
.glass-bar { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 14px 0 8px; overflow: hidden; }
.glass-bar i { display: block; width: var(--w); height: 100%; border-radius: 4px; background: #fff; animation: grow 1.4s var(--ease) .3s both; transform-origin: left; }
.glass-row { display: flex; justify-content: space-between; }
.g2 { top: 0; right: 4%; display: flex; gap: 12px; align-items: center; animation-delay: -2s; }
.g3 { bottom: 26px; left: 30%; width: 120px; height: 120px; padding: 10px; display: grid; place-items: center; animation-delay: -4s; }
.g3 > span { position: absolute; font-size: 22px !important; font-weight: 700; color: #fff !important; }
.art-ring { width: 100px; height: 100px; transform: rotate(-90deg); }
.art-ring circle { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 10; }
.art-ring circle.f { stroke: #fff; stroke-linecap: round; stroke-dasharray: 301; stroke-dashoffset: 90; animation: artring 2s var(--ease) both; }
@keyframes artring { from { stroke-dashoffset: 301; } }
.g4 { bottom: 110px; right: 0; display: flex; gap: 12px; align-items: center; animation-delay: -5s; }
.glass-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: rgba(255,255,255,.2); }
.glass-ic.ok { background: #fff; color: #d63e0a; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.art-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }
.art-foot i { width: 1px; height: 14px; background: rgba(255,255,255,.6); }
.art-foot small { flex-basis: 100%; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: .2px; color: rgba(255,255,255,.75); }
.login-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.login-card { width: 100%; max-width: 420px; animation: rise .6s var(--ease) both; }
.login-card h2 { font-size: 30px; font-weight: 300; margin-top: 28px; }
.login-card h2 b { font-weight: 700; }
.login-card > p { margin: 6px 0 22px; }
.brand-sm { display: none; align-items: center; gap: 12px; font-weight: 400; color: var(--ink-2); }
.brand-sm .logo-img { height: 30px; }
.input-ic { position: relative; display: block; }
.input-ic > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-ic input { padding-left: 40px !important; height: 48px; border-radius: 3px !important; font-size: 15px; }
.peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 3px; color: var(--muted); }
.peek:hover { background: var(--surface-2); color: var(--ink); }
.login-err:not(:empty) { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 3px; background: var(--bad-soft); color: var(--bad); font-size: 13px; font-weight: 550; margin-bottom: 14px; }
.login-card .btn.lg { margin-top: 6px; }
.login-links { display: flex; justify-content: flex-end; margin: -6px 0 12px; font-size: 13px; }
.login-info:not(:empty) { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 3px; background: var(--good-soft); color: var(--good); font-size: 13px; font-weight: 550; margin-bottom: 14px; }
.invite-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.login-card .btn .ic { transition: transform .2s; }
.login-card .btn:hover .ic { transform: translateX(3px); }
.busy .btn.primary .lbl + .ic { display: none; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.demo { margin-top: 28px; }
.demo-h { display: flex; align-items: center; gap: 12px; color: var(--accent-bright, var(--accent)); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.demo-h::before, .demo-h::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.demo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-acc { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, transform .15s, box-shadow .15s; }
.demo-acc:hover { border-color: var(--accent); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.demo-acc:hover .ic { color: var(--accent); }
.demo-acc > span:not(.av) { flex: 1; min-width: 0; display: grid; }
.demo-acc b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-acc small { color: var(--muted); font-size: 11.5px; }
.demo-acc .ic { width: 15px; height: 15px; color: var(--muted); }
#app.enter .shell { animation: fadein .4s var(--ease) both; }
@keyframes fadein { from { opacity: 0; } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--side); color: var(--side-ink); padding: 18px 14px; z-index: 30; }
.side-brand { display: grid; gap: 10px; padding: 6px 10px 24px; margin-bottom: 8px; border-bottom: 1px solid var(--side-2); }
.side-logo { height: 34px; width: auto; justify-self: start; }
.side-brand b { display: block; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.side-brand small { color: var(--side-muted); font-size: 11.5px; }
.nav { display: grid; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 3px; font-weight: 400; letter-spacing: .2px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.on { background: rgba(241, 91, 40, .16); color: #fff; font-weight: 600; }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #f15b28; }
.nav a.on .ic { color: #f15b28; }
.nav .badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 4px; background: #f15b28; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.nav-sep { height: 1px; background: var(--side-2); margin: 10px 4px; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--side-2); }
.sf-role { display: grid; gap: 6px; justify-items: start; font-size: 12px; color: var(--side-muted); }
.sf-role .role-head { background: rgba(241,91,40,.18); color: #ffb796; }
.sf-role .role { background-color: rgba(255,255,255,.08); color: #e8eaee; }
.sf-role .role-ceo { background: #f15b28; }
.side-strip { margin: 14px -14px -18px; padding: 10px 8px; background: #f15b28; color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: .9px; text-transform: uppercase; display: flex; justify-content: center; align-items: center; gap: 7px; white-space: nowrap; }
.side-strip i { width: 1px; height: 11px; background: rgba(255,255,255,.7); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.mob, .scrim { display: none; }
.search { position: relative; flex: 1; max-width: 520px; }
.search-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search input { width: 100%; height: 40px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); padding: 0 40px 0 40px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px/1 ui-monospace, monospace; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 6px; }
.search-res { position: absolute; top: 46px; left: 0; right: 0; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-3); padding: 6px; max-height: 420px; overflow: auto; }
.search-res.on { display: block; animation: pop .16s var(--ease); }
.search-res button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 4px; }
.search-res button:hover { background: var(--surface-2); }
.search-res b { display: block; font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-res span:last-child { min-width: 0; }
.search-res small { color: var(--muted); font-size: 11.5px; }
.top-a { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pop-wrap { position: relative; }
.me-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 4px; transition: background .15s; }
.me-btn:hover { background: var(--surface-2); }
.me-n { display: grid; line-height: 1.25; }
.me-n b { font-size: 13px; }
.me-n small { color: var(--muted); font-size: 11.5px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop { position: absolute; right: 0; top: 48px; width: 340px; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-3); padding: 6px; z-index: 40; }
.pop.on { display: block; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop-h { padding: 10px 10px 8px; font-weight: 650; font-size: 13px; }
.pop-i { width: 100%; display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 4px; font-size: 13px; }
.pop-i:hover { background: var(--surface-2); }
.pop-i > span:last-child { display: grid; min-width: 0; }
.pop-i b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-i small { color: var(--muted); font-size: 11.5px; }
.pop-i .ic { color: var(--muted); }
.pop-f { display: block; text-align: center; padding: 9px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; font-size: 13px; }
.pop-empty { padding: 18px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.pop-me { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop-me span { display: grid; }
.pop-me small { color: var(--muted); }
.view { padding: 28px; max-width: 1440px; width: 100%; margin: 0 auto; }
.view > * { animation: rise .45s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: .04s; } .view > *:nth-child(3) { animation-delay: .08s; } .view > *:nth-child(4) { animation-delay: .12s; } .view > *:nth-child(5) { animation-delay: .16s; } .view > *:nth-child(6) { animation-delay: .2s; }
.view.quiet > * { animation: none; }

/* ---------- page layout ---------- */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h h1 { font-size: 30px; font-weight: 300; line-height: 1.25; }
.page-h h1 b { font-weight: 700; }
.page-h h1::before { content: ""; display: block; width: 40px; height: 3px; background: var(--accent-bright, var(--accent)); margin-bottom: 12px; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.page-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.sec-h h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); }
.more { color: var(--accent); font-weight: 600; font-size: 12.5px; }
.more:hover { text-decoration: underline; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.grid.one { margin-top: 16px; }
.grid.hero-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.grid.units { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid.people { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.my-krs { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.my-krs[hidden] { display: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 18px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 26px 12px; color: var(--muted); }
.empty .ic { width: 28px; height: 28px; color: var(--line-2); margin-bottom: 6px; stroke-width: 1.5; }
.empty b { color: var(--ink); font-weight: 600; }
.empty span { font-size: 13px; max-width: 340px; }
.skel { height: 44px; border-radius: 4px; margin: 8px 0; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skel.tall { height: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* hero & tiles */
.hero { display: flex; gap: 28px; align-items: center; padding: 24px 26px; }
.hero-ring { position: relative; flex: none; }
.hero-fig { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-fig span { font-size: 44px; font-weight: 300; }
.hero-fig small { font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 1px; }
.hero-body { flex: 1; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; }
.hero-sub { margin: 6px 0 0; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.tile.wide { grid-column: 1 / -1; }
#my-deliverables { scroll-margin-top: 80px; }
.tabs .uc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-content: start; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-align: left; transition: transform .15s, box-shadow .15s, border-color .15s; }
button.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--accent); }
.tile-ic { grid-row: 1 / 4; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }
.tile-k { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.tile-v { font-size: 30px; font-weight: 300; line-height: 1.15; margin-top: 2px; }
.tile-d { font-size: 12px; color: var(--muted); }
.tone-accent .tile-ic { background: var(--accent-soft); color: var(--accent); }
.tone-accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: inset 3px 0 0 var(--accent-bright, var(--accent)); }
.tone-bad .tile-ic { background: var(--bad-soft); color: var(--bad); }
.tone-warn .tile-ic { background: var(--warn-soft); color: var(--warn); }
.tone-good .tile-ic { background: var(--good-soft); color: var(--good); }

/* unit cards */
.unit-card { display: block; width: 100%; text-align: left; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.unit-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.unit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.uc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.uc-h > div { flex: 1; min-width: 0; display: grid; }
.uc-h b { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-h small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.uc-p { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.uc-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.uc-stats { display: flex; gap: 10px; }
.uc-stats .bad, .uc-stats .warn { font-weight: 600; }
.unit-snap { display: grid; gap: 12px; }
.unit-snap .unit-card { box-shadow: none; }

/* key result rows */
.kr-list { display: grid; container-type: inline-size; }
.kr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 112px 108px; align-items: center; gap: 14px; width: 100%; padding: 11px 10px; border-radius: 4px; text-align: left; transition: background .12s; }
.kr-row + .kr-row { border-top: 1px solid var(--line); }
.kr-row:hover { background: var(--surface-2); }
.kr-row:hover + .kr-row { border-top-color: transparent; }
.kr-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--ink); font-size: 11px; font-weight: 700; flex: none; position: relative; }
.kr-dot::after { content: ""; position: absolute; inset: auto 3px -3px auto; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); }
.kr-main { min-width: 0; display: grid; gap: 4px; }
.kr-title { font-weight: 550; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.kr-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.kr-meta .muted { display: inline-flex; gap: 4px; align-items: center; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kr-meta .ic { width: 13px; height: 13px; }
.kr-due { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.kr-due .ic { width: 14px; height: 14px; color: var(--muted); }
.kr-due.bad .ic { color: var(--bad); }
.kr-due.bad { font-weight: 600; }
.kr-prog { display: flex; align-items: center; gap: 8px; }
.kr-prog .meter { flex: 1; }
.kr-prog b { font-size: 12px; width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.card .kr-row { margin: 0 -8px; width: calc(100% + 16px); }
@container (max-width: 680px) {
  .kr-row, .kr-list.nested .kr-row, .unlinked .kr-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .kr-row .kr-owners, .kr-row .kr-prog { display: none; }
}

/* approvals mini & lists */
.appr-list, .req-mini, .people-mini, .obj-mini { display: grid; }
.appr-mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.appr-mini + .appr-mini, .rq + .rq, .pm + .pm, .om + .om { border-top: 1px solid var(--line); }
.am-b { flex: 1; min-width: 0; display: grid; gap: 4px; cursor: pointer; }
.am-b b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-b > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.am-b small { color: var(--muted); font-size: 12px; }
.am-a { display: flex; gap: 6px; }
.rq { display: flex; gap: 12px; align-items: center; padding: 10px 0; cursor: pointer; }
.rq-b { flex: 1; min-width: 0; display: grid; gap: 4px; }
.rq-b b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-b > span { display: flex; align-items: center; gap: 6px; }
.rq-b small { color: var(--muted); font-size: 12px; }
.pm { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 4px; text-align: left; width: 100%; }
.pm:hover { background: var(--surface-2); }
.pm > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.pm small { color: var(--muted); font-size: 12px; }
.pm-s { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.om { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 6px; border-radius: 4px; width: 100%; text-align: left; }
.om:hover { background: var(--surface-2); }
.om-t { display: grid; min-width: 0; }
.om-t b { font-weight: 550; }
.om-t small, .om-a { color: var(--muted); font-size: 12px; }
.om-a { color: var(--ink-2); max-width: 160px; text-align: right; }

/* activity */
.feed { display: grid; }
.act { display: flex; gap: 12px; padding: 10px 6px; border-radius: 4px; }
.act[data-open] { cursor: pointer; }
.act[data-open]:hover { background: var(--surface-2); }
.act + .act { border-top: 1px solid var(--line); }
.act-t { font-size: 13px; color: var(--ink-2); }
.act-t b { color: var(--ink); font-weight: 600; }
.act-q { font-size: 13px; color: var(--ink-2); margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--line-2); }
.act-m { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.feed-day { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 16px 6px 6px; }
.feed-day:first-child { padding-top: 0; }

/* member cards */
.my-kr { display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.my-kr::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--c); }
.mk-h { display: flex; justify-content: space-between; align-items: center; }
.mk-t { font-weight: 600; font-size: 14.5px; line-height: 1.4; text-align: left; }
.mk-t:hover { color: var(--accent); }
.mk-due { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.mk-due .ic { width: 15px; height: 15px; color: var(--muted); }
.quick { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.quick-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.quick-top output { font-weight: 700; color: var(--ink); }
.quick-a { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }

/* filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 550; color: var(--ink-2); transition: all .15s; }
.fchip i { width: 8px; height: 8px; border-radius: 3px; background: var(--c, var(--muted)); }
.fchip:not([style]) i { display: none; }
.fchip:hover { border-color: var(--line-2); color: var(--ink); }
.fchip.on { background: var(--side); color: #fff; border-color: var(--side); }
.seg-ctl { display: inline-flex; padding: 3px; border-radius: 4px; background: var(--surface-3); gap: 2px; }
.seg-ctl a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 3px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.seg-ctl a.on { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-1); font-weight: 600; }
.seg-ctl .count { height: 18px; min-width: 18px; font-size: 10.5px; background: var(--surface-2); }

/* OKRs */
.okr-unit { margin-bottom: 34px; }
.ou-h { display: flex; align-items: center; gap: 14px; }
.ou-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c); }
.ou-t { flex: 1; min-width: 0; }
.ou-t h2 { font-size: 22px; font-weight: 300; }
.ou-t .muted { font-size: 12.5px; }
.ou-p { display: flex; align-items: center; gap: 10px; width: 220px; }
.ou-p span { font-size: 18px; font-weight: 700; }
.ou-p .meter { flex: 1; }
.okr-unit > .seg { margin: 12px 0 16px 18px; }
.objs { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.obj { padding: 0; overflow: hidden; }
.obj-h { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 16px 18px; text-align: left; transition: background .12s; }
.obj-h:hover { background: var(--surface-2); }
.obj-ring { position: relative; flex: none; display: grid; place-items: center; }
.obj-ring b { position: absolute; font-size: 12px; font-weight: 700; }
.obj-t { flex: 1; min-width: 0; display: grid; gap: 8px; }
.obj-t > b { font-size: 15px; font-weight: 650; line-height: 1.35; }
.obj-m { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 12.5px; color: var(--ink-2); }
.obj-m small { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1px; }
.obj-s { display: grid; gap: 6px; justify-items: end; }
.kr-list.nested { border-top: 1px solid var(--line); padding: 4px 10px; background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }
.kr-list.nested .kr-row { grid-template-columns: auto minmax(0, 1fr) auto 100px 90px; }
.obj-empty { border-top: 1px solid var(--line); padding: 10px 18px; }
.unlinked { margin-top: 14px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 4px 16px; }
.unlinked summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; flex-wrap: wrap; }
.unlinked summary::-webkit-details-marker { display: none; }
.unlinked summary::before { content: "▸"; color: var(--muted); transition: transform .2s; }
.unlinked[open] summary::before { transform: rotate(90deg); }
.unlinked .kr-list { padding-bottom: 8px; }
.unlinked .kr-row { margin: 0 -8px; width: calc(100% + 16px); }

/* board */
.board { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 240px; transition: background .15s, border-color .15s, box-shadow .15s; }
.col header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.col header b { font-size: 13px; }
.col header .count { margin-left: auto; background: var(--surface); }
.col-dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--c); color: #fff; font-size: 10px; font-weight: 800; }
.col-body { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.col-empty { border: 2px dashed var(--line-2); border-radius: 4px; padding: 22px; text-align: center; color: var(--muted); font-size: 12.5px; }
.is-dragging .col { border-style: dashed; }
.col.over { background: color-mix(in srgb, var(--c) 10%, var(--surface-2)); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.bcard { grid-template-columns: minmax(0, 1fr); position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px 12px 12px 15px; display: grid; gap: 8px; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .15s, box-shadow .15s, opacity .15s; overflow: hidden; }
.bcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--c); }
.bcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.bcard[draggable=true] { cursor: grab; }
.bcard.dragging { opacity: .45; transform: rotate(2deg); }
.bc-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.bc-unit { min-width: 0; font-size: 11px; font-weight: 650; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-t { font-size: 13px; font-weight: 550; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-t { overflow-wrap: anywhere; }
.bc-p { display: flex; align-items: center; gap: 8px; }
.bc-p .meter { flex: 1; }
.bc-p span { font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bc-f { display: flex; justify-content: space-between; align-items: center; }
.bcard .pending { justify-self: start; }

/* approvals page */
.appr { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.ar { display: grid; gap: 12px; align-content: start; }
.ar.state-pending { border-color: color-mix(in srgb, var(--st-risk) 45%, var(--line)); }
.ar-who { display: flex; gap: 12px; align-items: center; }
.ar-who > div { flex: 1; display: grid; }
.ar-who small { color: var(--muted); font-size: 12px; }
.ar-item { display: grid; gap: 4px; text-align: left; padding: 10px 12px; border-radius: 4px; background: var(--surface-2); }
.ar-item:not(:disabled):hover { background: var(--surface-3); }
.ar-item b { font-weight: 600; line-height: 1.4; }
.ar-change { display: flex; align-items: center; gap: 10px; }
.ar-arrow { color: var(--muted); display: flex; }
.ar blockquote, .req-sum blockquote { margin: 0; display: flex; gap: 8px; padding: 10px 12px; border-left: 3px solid var(--line-2); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--ink-2); font-size: 13px; }
.ar blockquote .ic { width: 15px; height: 15px; color: var(--muted); margin-top: 2px; }
.ar-a { display: flex; justify-content: flex-end; gap: 8px; }
.ar-dec { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); padding-top: 10px; border-top: 1px solid var(--line); }
.ar-dec .ic { width: 15px; height: 15px; margin-top: 2px; }
.ar.state-approved .ar-dec .ic { color: var(--good); }
.ar.state-rejected .ar-dec .ic { color: var(--bad); }

/* people & profile */
.person { display: grid; gap: 14px; text-align: center; transition: transform .15s, box-shadow .15s; }
.person:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.person.inactive { opacity: .6; }
.pc-main { display: grid; justify-items: center; gap: 4px; text-align: center; }
.pc-main .av { margin-bottom: 8px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.pc-main b { font-size: 15px; }
.pc-main small { color: var(--muted); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: center; margin-top: 8px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 12px; }
.pc-stats span { display: grid; font-size: 11.5px; color: var(--muted); }
.pc-stats b { font-size: 16px; color: var(--ink); }
.profile-h { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; margin-bottom: 16px; }
.ph-band { height: 120px; background: linear-gradient(120deg, #f15b28 0%, #e24d17 50%, #c9390a 100%); position: relative; overflow: hidden; }
.ph-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--c); }
.ph-body { display: flex; align-items: flex-start; gap: 20px; padding: 16px 26px 0; flex-wrap: wrap; }
.ph-body > .av { position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--surface); font-size: 36px; margin-top: -64px; }
.ph-t { flex: 1; min-width: 220px; }
.ph-t h1 { font-size: 28px; font-weight: 300; }
.ph-t p { margin: 2px 0 0; color: var(--ink-2); }
.ph-t .pc-tags { justify-content: flex-start; }
.ph-body .page-a { padding-top: 4px; }
.ph-info { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 26px 0; color: var(--ink-2); font-size: 13px; }
.ph-info span { display: inline-flex; align-items: center; gap: 7px; }
.ph-info .ic { width: 15px; height: 15px; color: var(--muted); }
.ph-info a:hover { color: var(--accent); }
.ph-bio { margin: 0; padding: 14px 26px 22px; color: var(--ink-2); max-width: 760px; }
.ph-info + .ph-bio, .profile-h > .ph-info:last-child { padding-bottom: 22px; }

/* ---------- drawer ---------- */
#drawer-root { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(10, 12, 16, .32); pointer-events: auto; animation: fadein .2s both; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); box-shadow: var(--shadow-3); display: flex; flex-direction: column; pointer-events: auto; border-left: 1px solid var(--line); }
.drawer.in { animation: slidein .28s var(--ease) both; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
#drawer-root.closing .drawer { transform: translateX(40px); opacity: 0; transition: all .2s ease-in; }
#drawer-root.closing .drawer-scrim { opacity: 0; transition: opacity .2s; }
.drawer-h { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-h::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.dh-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dh-a { display: flex; gap: 2px; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 22px 40px; }
.dr-title { font-size: 21px; font-weight: 600; line-height: 1.4; margin-bottom: 16px; }
.dr-sec { padding: 16px 0; border-top: 1px solid var(--line); }
.dr-sec:first-of-type { border-top: 0; padding-top: 4px; }
.dr-sec h4 { font-size: 11.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.picker { display: flex; flex-wrap: wrap; gap: 6px; }
.pk { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 550; transition: all .15s; }
.pk b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: color-mix(in srgb, var(--c) 20%, transparent); font-size: 10px; }
.pk:not(:disabled):hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--surface)); }
.pk.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); box-shadow: inset 0 0 0 1px var(--c); }
.pk.on b { background: var(--c); color: #fff; }
.pk:disabled { cursor: default; }
.pk:disabled:not(.on) { opacity: .5; }
.banner-pend { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 4px; background: var(--warn-soft); color: var(--ink); margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--st-risk) 40%, transparent); flex-wrap: wrap; }
.banner-pend > .ic { color: var(--warn); margin-top: 2px; }
.banner-pend > div:first-of-type { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.banner-pend span { font-size: 12.5px; color: var(--ink-2); }
.banner-pend q { font-size: 12.5px; color: var(--ink-2); font-style: italic; }
.bp-a { display: flex; gap: 6px; }
.prog-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.prog-top .meter { flex: 1; height: 10px; }
.big-pct { font-size: 28px; font-weight: 700; letter-spacing: -.02em; width: 76px; }
.prog-form .field { margin: 12px 0 0; }
.form-a { display: flex; justify-content: flex-end; margin-top: 10px; }
.note { margin: 8px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: 4px; color: var(--ink-2); }
.facts { margin: 0; display: grid; gap: 2px; }
.facts > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0; align-items: start; }
.facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 550; }
.facts dt .ic { width: 15px; height: 15px; }
.facts dd { margin: 0; font-size: 13px; color: var(--ink); }
.facts select { padding: 6px 10px; }
.owners { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.link { color: var(--accent); font-weight: 550; }
.link:hover { text-decoration: underline; }
.inline-form { display: flex; gap: 6px; }
.inline-form input { padding: 6px 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 600; font-size: 13px; color: var(--muted); }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.composer { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.composer textarea { flex: 1; border: 1px solid var(--line-2); border-radius: 4px; padding: 8px 12px; resize: vertical; min-height: 40px; outline: none; background: var(--surface); }
.composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.thread { display: grid; gap: 14px; }
.msg { display: flex; gap: 10px; }
.msg > div { flex: 1; background: var(--surface-2); border-radius: 4px 12px 12px 12px; padding: 8px 12px; }
.msg-h { display: flex; justify-content: space-between; gap: 8px; }
.msg-h b { font-size: 12.5px; }
.msg-h small { color: var(--muted); font-size: 11.5px; }
.msg p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }

/* ---------- modal ---------- */
#modal-root { position: relative; z-index: 60; }
.modal-scrim { position: fixed; inset: 0; background: rgba(10, 12, 16, .45); backdrop-filter: blur(2px); animation: fadein .18s both; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow-3); border: 1px solid var(--line); border-top: 3px solid var(--accent-bright, var(--accent)); animation: modalin .24s var(--ease) both; }
.modal.wide { width: min(680px, calc(100% - 32px)); }
@keyframes modalin { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.98); } }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px 22px; }
.modal header h3 { font-size: 20px; font-weight: 300; }
.modal-body { padding: 12px 22px 4px; overflow: auto; }
.modal-body > p { margin: 0 0 14px; }
.modal-err:not(:empty) { display: flex; gap: 8px; align-items: center; margin: 0 22px 8px; padding: 9px 12px; border-radius: 4px; background: var(--bad-soft); color: var(--bad); font-size: 13px; font-weight: 550; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.req-preview { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 4px; background: var(--surface-2); margin-bottom: 12px; justify-content: center; }
.req-preview .ic { color: var(--muted); }
.req-sum { display: grid; gap: 8px; margin-bottom: 14px; }
.req-sum .req-preview { margin: 0; justify-content: flex-start; }
.checks { display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.check-p { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; border: 1px solid var(--line); cursor: pointer; }
.check-p:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-p input { accent-color: var(--accent); width: 16px; height: 16px; }
.check-p span { display: grid; }
.check-p small { color: var(--muted); font-size: 11.5px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.rp:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rp:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.rp input { accent-color: var(--accent); margin-top: 3px; }
.rp span { display: grid; }
.rp b { font-size: 13px; }
.rp small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.unit-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.up { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; cursor: pointer; }
.up input { display: none; }
.up i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.up:has(input:checked) { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.swatches { display: flex; gap: 8px; }
.sw input { display: none; }
.sw i { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px transparent; transition: box-shadow .15s, transform .15s; }
.sw:hover i { transform: scale(1.08); }
.sw input:checked + i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.switch { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; cursor: pointer; font-weight: 550; }
.switch input { display: none; }
.switch i { position: relative; width: 38px; height: 22px; border-radius: 4px; background: var(--line-2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--st-done); }
.switch input:checked + i::after { transform: translateX(16px); }

/* ---------- toast & tooltip ---------- */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 4px; background: #222d35; border-left: 3px solid #f15b28; color: #fff; font-weight: 550; font-size: 13px; box-shadow: var(--shadow-3); animation: toastin .3s var(--ease) both; }
.toast .ic { color: #4cc24c; }
.toast.bad .ic { color: #ef6b6b; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px) scale(.96); } }
#tip { position: fixed; z-index: 90; pointer-events: none; max-width: 300px; padding: 6px 10px; border-radius: 3px; background: #222d35; color: #fff; font-size: 12px; font-weight: 500; opacity: 0; transition: opacity .12s; }
#tip.on { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid.hero-row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kr-row { grid-template-columns: auto minmax(0, 1fr) auto 100px; }
  .kr-row .kr-prog { display: none; }
}
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .brand-sm { display: flex; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .side-open .side { transform: none; }
  .side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 25; }
  .mob { display: inline-grid; }
  .me-n { display: none; }
  .grid.two { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .objs { grid-template-columns: 1fr; }
  .view { padding: 20px 16px; }
  .top { padding: 0 16px; }
  .search kbd { display: none; }
}
@media (max-width: 620px) {
  .hero { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-ring { align-self: center; }
  .tiles, .tiles.four, .row2, .role-pick, .demo-list { grid-template-columns: 1fr; }
  .kr-row { grid-template-columns: auto minmax(0, 1fr); }
  .kr-row .kr-owners, .kr-row .kr-due { display: none; }
  .ou-p { width: 120px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .appr { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   KPI scorecard, exceptions, reminders, periods and settings
   ========================================================================== */
.ink { color: var(--ink); }
.health-dots i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid var(--c); font-size: 9px; font-style: normal; font-weight: 700; color: var(--ink); }
.unit-card .health-dots { flex-wrap: wrap; margin: 2px 0 10px; }
.kr-dot.sm { width: 20px; height: 20px; font-size: 10px; }

/* period picker (sidebar) and banner (top of each page) */
.period-pick { display: grid; gap: 4px; margin: -10px 10px 16px; }
.period-pick > span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--side-muted); }
.period-pick select { height: 34px; padding: 0 10px; border-radius: 3px; border: 1px solid var(--side-2); background: var(--side-2); color: #fff; font-size: 13px; font-weight: 600; }
.period-pick select:focus { outline: 2px solid #f15b28; outline-offset: 1px; }
.period-pick small { color: var(--side-muted); font-size: 11px; }
.period-banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.period-banner > .ic { width: 22px; height: 22px; flex: none; }
.period-banner > div:not(.pb-a) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.period-banner span { font-size: 12.5px; color: var(--ink-2); }
.period-banner.planning { border-color: var(--accent); background: var(--accent-soft); }
.period-banner.planning > .ic { color: var(--accent); }
.period-banner.closed { background: var(--surface-2); }
.pb-a { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* setup reminders */
.reminders { display: grid; gap: 10px; margin-bottom: 20px; }
.remind { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); box-shadow: var(--shadow-1); }
.remind.tone-accent { border-left-color: var(--accent); }
.remind.tone-warn { border-left-color: var(--st-risk); }
.remind.tone-bad { border-left-color: var(--bad); }
.rm-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.remind.tone-accent .rm-ic { background: var(--accent-soft); color: var(--accent); }
.remind.tone-warn .rm-ic { background: var(--warn-soft); color: var(--warn); }
.remind.tone-bad .rm-ic { background: var(--bad-soft); color: var(--bad); }
.rm-b { flex: 1; display: grid; gap: 2px; min-width: 0; }
.rm-b b { font-weight: 650; }
.rm-b span { font-size: 12.5px; color: var(--ink-2); }

/* exceptions */
.exceptions .card-h h3 .ic { color: var(--accent); }
.ex-group + .ex-group { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.ex-h { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.ex-h b { font-size: 13px; font-weight: 650; flex: 1; }
.ex-n { display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 3px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.ex-n.tone-bad { background: var(--bad-soft); color: var(--bad); }
.ex-n.tone-warn { background: var(--warn-soft); color: var(--warn); }
.ex-n.tone-accent { background: var(--accent-soft); color: var(--accent); }
.ex-list { display: grid; }
.ex-row { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 4px; width: 100%; text-align: left; }
.ex-row:hover { background: var(--surface-2); }
.ex-main { flex: 1; display: grid; gap: 4px; min-width: 0; }
.ex-main > b { font-weight: 600; }
.ex-units { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px; }
.ex-unit { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 3px; border: 1px solid var(--line); font-size: 12.5px; }
.ex-unit i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.ex-unit b { font-weight: 700; color: var(--warn); }
.ex-unit:hover { border-color: var(--accent); }

/* measures (scorecard rows) */
.kpi-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ou-a { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.scores { display: grid; border-top: 1px solid var(--line); }
.obj .scores { padding: 4px 12px; }
.score { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 6px; border-radius: 4px; }
.score[data-open] { cursor: pointer; }
.score[data-open]:hover { background: var(--surface-2); }
.score:has(.sc-a) { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
.sc-name { display: grid; gap: 2px; min-width: 0; }
.sc-name b { font-weight: 550; font-size: 13px; }
.sc-name small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.sc-val { display: grid; justify-items: end; text-align: right; }
.sc-val b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-val small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.score.big .sc-val b { font-size: 18px; }
.sc-a { display: flex; align-items: center; gap: 4px; }
.sc-a .icon-btn { width: 30px; height: 30px; }
.tag-proposed, .tag-stale, .auto-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.tag-proposed { background: var(--accent-soft); color: var(--accent); }
.tag-stale { background: var(--warn-soft); color: var(--warn); }
.auto-tag { background: var(--surface-3); color: var(--ink-2); }
.auto-health { display: flex; align-items: center; gap: 10px; }
.obj-sub { border-top: 1px solid var(--line); padding: 10px 18px 6px; }
.obj-sub .eyebrow { font-size: 10.5px; }
.score-wrap + .score-wrap { border-top: 1px dashed var(--line); }
.readings { margin: 0 6px 8px 42px; font-size: 12.5px; }
.readings summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 12px; }
.rd { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 0; }
.rd .icon-btn { width: 26px; height: 26px; }
.reading-preview { display: flex; align-items: center; gap: 10px; min-height: 26px; margin: -4px 0 12px; }

/* sparkline: neutral line, dashed target, latest point carries the health colour */
.spark { display: block; overflow: visible; }
.spark-line { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark-target { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.spark-dot { fill: var(--c); stroke: var(--surface); stroke-width: 1.5; }
.spark-empty { display: inline-block; font-size: 11px; color: var(--muted); white-space: nowrap; }

/* settings */
.settings-form p.muted { margin: 0 0 12px; }
.day-pick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dp { position: relative; }
.dp input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dp span { display: grid; place-items: center; height: 34px; border-radius: 3px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dp input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.dp input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dp input:disabled + span { opacity: .7; cursor: default; }
.form-a { display: flex; justify-content: flex-end; margin-top: 14px; }
.periods { display: grid; margin-top: 12px; }
.per-row { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-top: 1px solid var(--line); }
.per-row.on { background: var(--surface-2); }
.per-n { flex: 1; display: grid; }
.per-n small { color: var(--muted); font-size: 12px; }
.per-a { display: flex; align-items: center; gap: 8px; }

/* responsibilities */
.assign { display: grid; max-height: 56vh; overflow: auto; margin: 0 -4px; }
.as-row { display: grid; gap: 8px; padding: 12px 4px; border-top: 1px solid var(--line); }
.as-t { display: flex; gap: 8px; align-items: flex-start; }
.as-t b { font-weight: 550; font-size: 13px; line-height: 1.4; }
.as-f { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; align-items: center; }
.as-f select, .as-f input:not([type=checkbox]), .as-n, .as-all select { height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); min-width: 0; }
.as-n { height: 30px !important; font-size: 12.5px; width: 100%; }
.as-all { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.as-all span { font-weight: 550; font-size: 13px; white-space: nowrap; }
.as-all select { flex: 1; min-width: 0; height: 34px; }

@media (max-width: 960px) {
  .score, .score:has(.sc-a) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sc-spark { display: none; }
  .ou-a { flex-wrap: wrap; justify-content: flex-end; }
  .as-f { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .remind, .period-banner { flex-wrap: wrap; }
  .per-row { flex-wrap: wrap; }
}
/* In the drawer a measure takes two lines: name and value, then trend and actions. */
.score.big, .score.big:has(.sc-a) { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "dot name val" ". spark act"; row-gap: 6px; }
.score.big > .kr-dot { grid-area: dot; }
.score.big .sc-name { grid-area: name; }
.score.big .sc-val { grid-area: val; }
.score.big .sc-spark { grid-area: spark; display: block; }
.score.big .sc-a { grid-area: act; justify-content: flex-end; }
/* Reading approvals: the value asked for, next to the last approved one */
.rq-val { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 3px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rq-val.new { background: var(--good-soft); color: var(--good); }
.ar-change, .req-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rd.pend { background: var(--warn-soft); border-radius: 4px; padding: 4px 6px; }
