/* SokoSwift Team Tracker
   Layout: a lavender workspace. Pill navigation on top, a greeting with the week's
   progress segments, then a bento of week cards (spotlight, trend, countdown, outcomes,
   companies, calendar, follow-ups) over the team table. One family, weight for hierarchy. */

:root {
  color-scheme: light;
  --bg: oklch(0.962 0.014 292);
  --glow-1: oklch(0.885 0.075 292 / 0.75);
  --glow-2: oklch(0.945 0.05 70 / 0.75);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.977 0.009 292);
  --surface-3: oklch(0.945 0.018 292);
  --line: oklch(0.918 0.016 292);
  --line-2: oklch(0.865 0.022 292);
  --ink: oklch(0.22 0.045 285);
  --ink-2: oklch(0.40 0.035 285);
  --muted: oklch(0.52 0.03 285);
  --primary: oklch(0.51 0.215 286);
  --primary-hover: oklch(0.46 0.215 286);
  --primary-deep: oklch(0.38 0.17 285);
  --primary-soft: oklch(0.94 0.042 292);
  --primary-mid: oklch(0.80 0.105 290);
  --on-primary: oklch(0.99 0 0);
  --deep: oklch(0.255 0.07 284);
  --deep-2: oklch(0.32 0.075 284);
  --deep-line: oklch(0.37 0.06 284);
  --on-deep: oklch(0.97 0.01 292);
  --on-deep-2: oklch(0.80 0.035 292);
  --sun: oklch(0.955 0.06 92);
  --sun-line: oklch(0.88 0.09 88);
  --sun-ink: oklch(0.42 0.08 70);
  --good: oklch(0.63 0.15 152);  --good-soft: oklch(0.95 0.045 152); --good-ink: oklch(0.42 0.11 152);
  --warn: oklch(0.76 0.15 72);   --warn-soft: oklch(0.96 0.05 85);   --warn-ink: oklch(0.47 0.11 60);
  --bad: oklch(0.62 0.2 25);     --bad-soft: oklch(0.955 0.03 25);   --bad-ink: oklch(0.49 0.17 25);
  --av-bg-l: 0.915; --av-bg-c: 0.06; --av-fg-l: 0.36; --av-fg-c: 0.13;
  --shadow-sm: 0 1px 2px oklch(0.3 0.06 285 / 0.06);
  --shadow: 0 1px 2px oklch(0.3 0.06 285 / 0.05), 0 12px 32px -16px oklch(0.35 0.12 285 / 0.2);
  --shadow-lg: 0 2px 6px oklch(0.3 0.06 285 / 0.06), 0 26px 50px -22px oklch(0.35 0.14 285 / 0.32);
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px; --r-xs: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --z-sticky: 10; --z-tabbar: 20; --z-menu: 30; --z-backdrop: 40; --z-drawer: 50; --z-toast: 60;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: oklch(0.165 0.022 285);
    --glow-1: oklch(0.32 0.11 290 / 0.55);
    --glow-2: oklch(0.30 0.06 50 / 0.3);
    --surface: oklch(0.215 0.026 285);
    --surface-2: oklch(0.235 0.03 285);
    --surface-3: oklch(0.27 0.035 285);
    --line: oklch(0.29 0.03 285);
    --line-2: oklch(0.36 0.035 285);
    --ink: oklch(0.965 0.008 292);
    --ink-2: oklch(0.83 0.02 292);
    --muted: oklch(0.70 0.025 290);
    --primary: oklch(0.70 0.16 289);
    --primary-hover: oklch(0.76 0.14 289);
    --primary-deep: oklch(0.58 0.19 287);
    --primary-soft: oklch(0.30 0.075 288);
    --primary-mid: oklch(0.48 0.13 288);
    --on-primary: oklch(0.17 0.04 285);
    --deep: oklch(0.30 0.085 284);
    --deep-2: oklch(0.36 0.085 284);
    --deep-line: oklch(0.42 0.07 284);
    --on-deep: oklch(0.97 0.01 292);
    --on-deep-2: oklch(0.84 0.035 292);
    --sun: oklch(0.32 0.05 85);
    --sun-line: oklch(0.42 0.07 85);
    --sun-ink: oklch(0.90 0.08 88);
    --good: oklch(0.72 0.15 152); --good-soft: oklch(0.29 0.05 152); --good-ink: oklch(0.85 0.11 152);
    --warn: oklch(0.80 0.14 75);  --warn-soft: oklch(0.31 0.05 75);  --warn-ink: oklch(0.88 0.11 80);
    --bad: oklch(0.70 0.17 25);   --bad-soft: oklch(0.30 0.06 25);   --bad-ink: oklch(0.85 0.1 25);
    --av-bg-l: 0.36; --av-bg-c: 0.08; --av-fg-l: 0.93; --av-fg-c: 0.06;
    --shadow-sm: none;
    --shadow: 0 1px 0 oklch(1 0 0 / 0.03) inset, 0 12px 30px -18px oklch(0 0 0 / 0.6);
    --shadow-lg: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 26px 50px -22px oklch(0 0 0 / 0.75);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.165 0.022 285);
  --glow-1: oklch(0.32 0.11 290 / 0.55);
  --glow-2: oklch(0.30 0.06 50 / 0.3);
  --surface: oklch(0.215 0.026 285);
  --surface-2: oklch(0.235 0.03 285);
  --surface-3: oklch(0.27 0.035 285);
  --line: oklch(0.29 0.03 285);
  --line-2: oklch(0.36 0.035 285);
  --ink: oklch(0.965 0.008 292);
  --ink-2: oklch(0.83 0.02 292);
  --muted: oklch(0.70 0.025 290);
  --primary: oklch(0.70 0.16 289);
  --primary-hover: oklch(0.76 0.14 289);
  --primary-deep: oklch(0.58 0.19 287);
  --primary-soft: oklch(0.30 0.075 288);
  --primary-mid: oklch(0.48 0.13 288);
  --on-primary: oklch(0.17 0.04 285);
  --deep: oklch(0.30 0.085 284);
  --deep-2: oklch(0.36 0.085 284);
  --deep-line: oklch(0.42 0.07 284);
  --on-deep: oklch(0.97 0.01 292);
  --on-deep-2: oklch(0.84 0.035 292);
  --sun: oklch(0.32 0.05 85);
  --sun-line: oklch(0.42 0.07 85);
  --sun-ink: oklch(0.90 0.08 88);
  --good: oklch(0.72 0.15 152); --good-soft: oklch(0.29 0.05 152); --good-ink: oklch(0.85 0.11 152);
  --warn: oklch(0.80 0.14 75);  --warn-soft: oklch(0.31 0.05 75);  --warn-ink: oklch(0.88 0.11 80);
  --bad: oklch(0.70 0.17 25);   --bad-soft: oklch(0.30 0.06 25);   --bad-ink: oklch(0.85 0.1 25);
  --av-bg-l: 0.36; --av-bg-c: 0.08; --av-fg-l: 0.93; --av-fg-c: 0.06;
  --shadow-sm: none;
  --shadow: 0 1px 0 oklch(1 0 0 / 0.03) inset, 0 12px 30px -18px oklch(0 0 0 / 0.6);
  --shadow-lg: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 26px 50px -22px oklch(0 0 0 / 0.75);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 400 14px/1.5 var(--font);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60rem 40rem at -10% -15%, var(--glow-1), transparent 60%),
    radial-gradient(50rem 40rem at 110% 110%, var(--glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 28px; } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-sticky); padding-block: 14px 10px; }
.topbar::before { content: ""; position: absolute; inset: 0; background: color-mix(in oklch, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); mask: linear-gradient(#000 70%, transparent); z-index: -1; }
.topbar-in { display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; border: 0; background: none; padding: 0; }
.brand { display: block; height: 46px; width: auto; flex: none; }
.brand-dark { display: none; }
:root[data-theme="dark"] .brand-light { display: none; }
:root[data-theme="dark"] .brand-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-light { display: none; }
  :root:not([data-theme="light"]) .brand-dark { display: block; }
}
.logo-tag { padding-left: 12px; border-left: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--muted); white-space: nowrap; }

.pillnav { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.pillnav-ind { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 999px; background: var(--primary-deep); box-shadow: 0 6px 16px -8px var(--primary-deep); transition: transform .42s var(--ease), width .42s var(--ease), opacity .2s; opacity: 0; pointer-events: none; }
.pillnav-ind.on { opacity: 1; }
.navbtn { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .25s; }
.navbtn:hover { color: var(--ink); }
.navbtn[aria-current="page"] { color: oklch(0.99 0 0); }

.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.weekpill { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.weekpill .lbl { display: flex; flex-direction: column; align-items: center; padding-inline: 8px; line-height: 1.2; min-width: 112px; }
.weekpill .lbl b { font-size: 13px; font-weight: 600; }
.weekpill .lbl span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.circbtn { position: relative; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; border: 0; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: transform .2s var(--ease), color .2s, background .2s; }
.circbtn:hover { color: var(--primary); }
.circbtn:active { transform: scale(.94); }
.weekpill .circbtn { width: 30px; height: 30px; box-shadow: none; background: var(--surface-2); }
.today-btn { border: 0; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.me-btn { padding: 0; overflow: hidden; }
.me-btn .av { width: 38px; height: 38px; font-size: 13px; border-radius: 999px; }

.menu { position: fixed; z-index: var(--z-menu); width: 260px; padding: 8px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); transform-origin: top right; animation: pop .22s var(--ease); }
.menu-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.menu-head b { font-size: 14px; }
.menu-head span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 500; text-align: left; color: var(--ink-2); }
.menu-item:hover { background: var(--surface-2); color: var(--ink); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

.tabbar { display: none; }
@media (max-width: 1120px) {
  .pillnav { display: none; }
  .weekpill .lbl { min-width: 0; }
  .weekpill .lbl span { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); position: fixed; z-index: var(--z-tabbar); left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 6px; border-radius: 22px; background: color-mix(in oklch, var(--surface) 90%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  }
  .tabbtn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 16px; font-size: 10.5px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
  .tabbtn[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
  .main { padding-bottom: 110px !important; }
}
@media (max-width: 520px) {
  .logo-tag { display: none; }
  .brand { height: 34px; }
  .today-btn { display: none; }
  .topbar-in { gap: 8px; }
  .weekpill .lbl b { white-space: nowrap; }
}
@media (max-width: 430px) {
  #theme-btn { display: none; }    /* still in the account menu */
}

/* ---------- layout ---------- */
.main { padding-block: 10px 64px; display: flex; flex-direction: column; gap: 18px; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px 10px 16px; border-radius: var(--r-md); background: var(--sun); color: var(--sun-ink); font-size: 13px; box-shadow: 0 0 0 1px var(--sun-line); }
.demo-bar b { font-weight: 700; }
.demo-bar .grow { flex: 1 1 260px; min-width: 0; }
.demo-bar select { border: 0; border-radius: 999px; padding: 6px 30px 6px 12px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23887' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; appearance: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--ink); font-size: 13.5px; }
.notice svg { color: var(--primary); margin-top: 1px; }
.notice > .btn { margin-left: auto; flex-shrink: 0; }
.notice:has(> .btn) { align-items: center; }

.card { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow), 0 0 0 1px var(--line); min-width: 0; }
.card.is-link { cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card.is-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-2); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-h h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-h .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.goto { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); flex: none; transition: transform .25s var(--ease), background .2s, color .2s; }
.goto:hover { background: var(--ink); color: var(--surface); transform: rotate(45deg); }

/* ---------- buttons, chips, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13.5px; color: var(--ink); white-space: nowrap; transition: background .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); border-color: transparent; color: var(--on-primary); box-shadow: 0 8px 18px -10px var(--primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.dark { background: var(--ink); border-color: transparent; color: var(--surface); }
.btn.ghost { border-color: transparent; background: none; color: var(--primary); padding-inline: 8px; }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn .spin { width: 14px; height: 14px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; opacity: .85; }
.status.good { background: var(--good-soft); color: var(--good-ink); }
.status.warn { background: var(--warn-soft); color: var(--warn-ink); }
.status.bad { background: var(--bad-soft); color: var(--bad-ink); }
.status.acc { background: var(--primary-soft); color: var(--primary); }
.band { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.band.good { background: var(--good-soft); color: var(--good-ink); }
.band.acc { background: var(--primary-soft); color: var(--primary); }
.band.warn { background: var(--warn-soft); color: var(--warn-ink); }
.band.bad { background: var(--bad-soft); color: var(--bad-ink); }

/* avatars */
.av { --h: 290; display: inline-grid; place-items: center; flex: none; border-radius: 999px; font-weight: 700; letter-spacing: 0.01em; background: oklch(var(--av-bg-l) var(--av-bg-c) var(--h)); color: oklch(var(--av-fg-l) var(--av-fg-c) var(--h)); }
.av-xs { width: 24px; height: 24px; font-size: 10.5px; }
.av-sm { width: 30px; height: 30px; font-size: 11px; }
.av-md { width: 40px; height: 40px; font-size: 14px; }
.av-lg { width: 56px; height: 56px; font-size: 19px; }
.av-xl { width: 96px; height: 96px; font-size: 32px; }
.stack { display: flex; align-items: center; }
.stack .av { box-shadow: 0 0 0 2px var(--surface); }
.stack .av + .av, .stack .more { margin-left: -8px; }
.stack .more { display: inline-grid; place-items: center; height: 24px; min-width: 24px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--ink); color: var(--surface); box-shadow: 0 0 0 2px var(--surface); }

/* status marks for Big 3 tasks: shape + color + text */
.mark { width: 18px; height: 18px; border-radius: 999px; flex: none; display: grid; place-items: center; border: 1.6px solid var(--line-2); color: transparent; }
.mark svg { width: 11px; height: 11px; stroke-width: 3; }
.mark.done { background: var(--good); border-color: var(--good); color: var(--surface); }
.mark.partial { border-color: var(--warn); background: linear-gradient(90deg, var(--warn) 50%, transparent 50%); }
.mark.missed { border-color: var(--bad); color: var(--bad); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; padding-block: 18px 6px; }
.hero h1 { font-size: 46px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.hero h1 .brand { color: var(--primary); }
.hero-sub { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.hero-sub .dotsep { width: 4px; height: 4px; border-radius: 999px; background: var(--line-2); }
.segs { display: flex; gap: 10px; margin-top: 24px; max-width: 820px; }
.seg { display: flex; flex-direction: column; gap: 8px; min-width: 76px; flex: 1 1 0; }
.seg-l { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-p { height: 40px; border-radius: 999px; display: flex; align-items: center; padding: 0 16px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.seg-ink .seg-p { background: var(--deep); color: var(--on-deep); }
.seg-violet .seg-p { background: var(--primary); color: var(--on-primary); }
.seg-stripe .seg-p { position: relative; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.seg-stripe .seg-p::before { content: ""; position: absolute; inset: 0; right: auto; width: var(--fill, 0%); background: repeating-linear-gradient(-55deg, var(--line-2) 0 1.5px, transparent 1.5px 7px); }
.seg-stripe .seg-p span { position: relative; }
.seg-outline .seg-p { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink); }
.kpis { display: flex; gap: 40px; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.kpi-top { display: flex; align-items: center; gap: 12px; }
.kpi-ic { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); color: var(--primary); box-shadow: 0 0 0 1px var(--line); }
.kpi b { font-size: 46px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.kpi span.l { font-size: 13px; color: var(--ink-2); margin-left: 50px; }
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .segs { flex-wrap: wrap; }
  .seg { flex: 1 1 40% !important; }
  .kpis { gap: 14px; justify-content: space-between; }
  .kpi b { font-size: 34px; }
  .kpi-ic { width: 30px; height: 30px; }
  .kpi-ic svg { width: 15px; height: 15px; }
  .kpi-top { gap: 8px; }
  .kpi span.l { margin-left: 0; font-size: 12px; }
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.b-3 { grid-column: span 3; }
.b-6 { grid-column: span 6; }
@media (max-width: 1200px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .b-3 { grid-column: span 3; }
  .b-6 { grid-column: span 6; order: 10; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .b-3, .b-6 { grid-column: auto; }
}
.bento > .card { display: flex; flex-direction: column; }

/* spotlight */
.spot { padding: 0; overflow: hidden; min-height: 300px; background: linear-gradient(160deg, oklch(0.80 0.10 292) 0%, oklch(0.62 0.17 288) 55%, oklch(0.42 0.18 284) 100%); color: oklch(0.99 0 0); box-shadow: var(--shadow); }
.spot-art { position: relative; flex: 1; display: grid; place-items: center; min-height: 190px; }
.spot-art::before, .spot-art::after { content: ""; position: absolute; border-radius: 999px; border: 1px solid oklch(1 0 0 / 0.28); }
.spot-art::before { width: 190px; height: 190px; }
.spot-art::after { width: 270px; height: 270px; border-color: oklch(1 0 0 / 0.14); }
.spot .av-xl { width: 112px; height: 112px; font-size: 38px; background: oklch(0.97 0.02 292); color: oklch(0.38 0.17 285); box-shadow: 0 18px 40px -12px oklch(0.25 0.12 284 / 0.6); position: relative; z-index: 1; }
.spot-crown { position: absolute; z-index: 2; top: calc(50% - 74px); left: calc(50% + 26px); width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: oklch(0.86 0.13 85); color: oklch(0.35 0.08 70); box-shadow: 0 6px 14px -6px oklch(0.3 0.1 70 / .6); }
.spot-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 16px 18px 18px; }
.spot-foot .who { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
.spot-foot .who b, .spot-foot .who span { max-width: 100%; }
.spot-foot .who b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.spot-foot .who span { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-chip { flex: none; display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: 16px; background: oklch(1 0 0 / 0.16); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.spot-chip b { font-size: 18px; font-weight: 700; line-height: 1.1; }
.spot-chip span { font-size: 10.5px; opacity: .9; white-space: nowrap; }
.spot-empty .spot-art { align-content: center; gap: 14px; text-align: center; padding: 20px; }
.spot-empty h3 { font-size: 17px; position: relative; z-index: 1; }
.spot-empty p { font-size: 12.5px; opacity: .9; max-width: 26ch; position: relative; z-index: 1; }

/* vertical bars (trend + history) */
.trend-top { display: flex; align-items: baseline; gap: 10px; }
.trend-top b { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.trend-top .l { font-size: 13px; color: var(--ink-2); }
.delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.delta.up { color: var(--good-ink); }
.delta.down { color: var(--bad-ink); }
.vbars { flex: none; height: 168px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; margin-top: auto; padding-top: 26px; }
.vbars-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: var(--muted); padding-bottom: 20px; text-align: right; }
.vbars-plot { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; }
.vbars-plot::before { content: ""; position: absolute; inset: 0 0 20px 0; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 50%; pointer-events: none; }
.vcol { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.vtrack { position: relative; width: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.vbar { width: 10px; border-radius: 999px; background: var(--primary-mid); transform-origin: bottom; }
.vbar.cur { background: var(--primary); width: 12px; }
.vbar.nil { height: 4px; background: var(--line-2); }
.vcol .x { font-size: 10.5px; color: var(--muted); height: 14px; }
.vcol .x.cur { color: var(--ink); font-weight: 700; }
.vtip { position: absolute; left: 50%; translate: -50% 0; padding: 3px 8px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 14px -6px var(--primary); }
.vcol:hover .vbar:not(.nil) { filter: brightness(1.08); }

/* countdown ring */
.ringbox { flex: 1; display: grid; place-items: center; padding-block: 4px; }
.ring { width: 100%; max-width: 196px; height: auto; display: block; overflow: visible; }
.ring .tick { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 1.5 7.4; }
.ring .track { fill: none; stroke: var(--surface-3); stroke-width: 12; }
.ring .val { fill: none; stroke: var(--primary); stroke-width: 12; stroke-linecap: round; }
.ring .knob { fill: var(--surface); stroke: var(--primary); stroke-width: 4; }
.ring-center { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.ring-wrap { position: relative; width: 100%; max-width: 196px; }
.ring-wrap .ring-center { position: absolute; inset: 0; justify-content: center; }
.ring-center b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.ring-center span { font-size: 12px; color: var(--muted); }
.ring-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }

/* outcomes */
.out-pct { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.out-row { display: flex; gap: 6px; margin-top: auto; }
.out-col { display: flex; flex-direction: column; gap: 8px; min-width: 40px; flex: 1 1 0; }
.out-col .p { display: flex; flex-direction: column; min-width: 0; }
.out-col .p b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.out-col .p span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.out-col .b { height: 40px; border-radius: 12px; display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; font-weight: 600; transform-origin: left; overflow: hidden; white-space: nowrap; }
.out-col.done .b { background: var(--primary); color: var(--on-primary); }
.out-col.partial .b { background: var(--deep); color: var(--on-deep); }
.out-col.missed .b { background: var(--surface-3); color: var(--ink-2); }
.out-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.out-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }

/* companies accordion */
.accd { display: flex; flex-direction: column; }
.accd details { border-bottom: 1px solid var(--line); }
.accd details:last-child { border-bottom: 0; }
.accd summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 2px; cursor: pointer; font-weight: 600; font-size: 14px; }
.accd summary::-webkit-details-marker { display: none; }
.accd summary .n { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.accd summary svg { color: var(--muted); transition: transform .3s var(--ease); }
.accd details[open] summary svg.chev { transform: rotate(180deg); }
.acc-body { display: flex; flex-direction: column; gap: 8px; padding: 0 2px 14px; animation: rise .35s var(--ease) both; }
.acc-row { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px; margin: -4px; border-radius: 10px; text-align: left; }
.acc-row:hover { background: var(--surface-2); }
.acc-row .nm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; }
.acc-row .nm small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dotst { width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); flex: none; }
.dotst.good { background: var(--good); } .dotst.acc { background: var(--primary); } .dotst.warn { background: var(--warn); } .dotst.bad { background: var(--bad); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto auto minmax(150px, 1fr); column-gap: 0; position: relative; flex: 1; }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 12px; }
.cal-day span { font-size: 12px; color: var(--muted); }
.cal-day b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; }
.cal-day.today b { background: var(--primary-deep); color: oklch(0.99 0 0); box-shadow: 0 8px 16px -8px var(--primary-deep); }
.cal-day.today span { color: var(--primary); font-weight: 600; }
.cal-lines { grid-row: 2 / 4; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); pointer-events: none; }
.cal-lines i { border-left: 1px dashed var(--line-2); }
.cal-lines i:first-child { border-left: 0; }
.cal-lines i.today { background: linear-gradient(var(--primary-soft), transparent); border-radius: 12px; }
.cal-ev { grid-row: 3; align-self: start; margin: var(--top, 8px) 6px 10px; padding: 10px 12px; border-radius: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; z-index: 1; border: 0; text-align: left; transition: transform .2s var(--ease); }
.cal-ev:hover { transform: translateY(-2px); }
.cal-ev b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev span { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.violet { background: var(--primary-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--primary) 22%, transparent); }
.cal-ev.violet span { color: var(--primary); }
.cal-ev.sun { background: var(--sun); color: var(--ink); box-shadow: inset 0 0 0 1px var(--sun-line); }
.cal-ev.sun span { color: var(--sun-ink); }
.cal-ev.plain { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cal-ev.plain span { color: var(--muted); }
.cal-act { grid-row: 2; display: flex; justify-content: center; padding: 8px 4px 4px; min-height: 36px; position: relative; z-index: 1; }
.cal-act .stack .av { box-shadow: 0 0 0 2px var(--surface); }
.cal-foot { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) {
  .cal-ev { margin: 4px 2px 8px; padding: 8px; }
  .cal-ev .stack { display: none; }
  .cal-act { display: none; }
  .cal-lines { grid-row: 3 / 4; }
}

/* follow-ups dark card */
.dark { background: var(--deep); color: var(--on-deep); box-shadow: var(--shadow-lg); }
.dark .card-h h3 { color: var(--on-deep); font-size: 17px; }
.dark .big { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.fu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; margin-inline: -8px; border: 0; background: none; border-radius: 14px; color: inherit; text-align: left; transition: background .2s; }
.fu-item:hover { background: var(--deep-2); }
.fu-ic { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: oklch(1 0 0 / 0.95); color: var(--deep); flex: none; }
.fu-ic svg { width: 16px; height: 16px; }
.fu-ic.av { font-size: 12px; }
.fu-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fu-txt b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-txt span { font-size: 11.5px; color: var(--on-deep-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-check { width: 24px; height: 24px; border-radius: 999px; border: 1.6px solid var(--on-deep-2); display: grid; place-items: center; flex: none; color: transparent; }
.fu-check.on { background: var(--primary); border-color: transparent; color: var(--on-primary); }
:root[data-theme="dark"] .fu-check.on { background: oklch(0.70 0.16 289); }
.fu-check svg { width: 13px; height: 13px; stroke-width: 3; }
.fu-more { margin-top: auto; padding-top: 10px; border: 0; background: none; color: var(--on-deep-2); font-size: 12.5px; font-weight: 600; text-align: left; }
.fu-more:hover { color: var(--on-deep); }
.dark .ok { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; color: var(--on-deep-2); font-size: 13px; }

/* ---------- team table ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar h2 { font-size: 20px; letter-spacing: -0.02em; margin-right: auto; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { height: 40px; width: 220px; max-width: 100%; padding: 0 14px 0 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.search input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.seg-ctl { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg-ctl button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; }
.seg-ctl button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.select { height: 40px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; appearance: none; font-size: 13px; font-weight: 600; }
.tbl { margin-top: 14px; }
.tr { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(0, 2.2fr) minmax(150px, 1fr) 150px 70px; gap: 18px; align-items: center; padding: 12px 14px; border-radius: 16px; }
.th { padding-block: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.th .r, .tr .r { text-align: right; justify-self: end; }
.tr.row { width: 100%; border: 0; background: none; text-align: left; transition: background .2s; }
.tr.row:hover { background: var(--surface-2); }
.tr.row + .tr.row { box-shadow: 0 -1px 0 var(--line); }
.tr.row:hover + .tr.row, .tr.row:hover { box-shadow: none; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who .t { display: flex; flex-direction: column; min-width: 0; }
.who b { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.who small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.you { font-size: 10px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 2px 6px; border-radius: 6px; }
.b3cell { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.b3line { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.b3line .mark { width: 16px; height: 16px; }
.b3line .mark svg { width: 9px; height: 9px; }
.b3line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.none { font-size: 13px; color: var(--muted); }
.none.bad { color: var(--bad-ink); font-weight: 500; }
.meter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.meter-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-2); }
.meter-top b { font-weight: 600; color: var(--ink); }
.meter-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transform-origin: left; }
.meter-bar i.full { background: var(--good); }
.mring { display: inline-grid; place-items: center; position: relative; width: 46px; height: 46px; }
.mring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mring circle { fill: none; stroke-width: 4; }
.mring .tk { stroke: var(--surface-3); }
.mring .vl { stroke: var(--primary); stroke-linecap: round; }
.mring.good .vl { stroke: var(--good); } .mring.warn .vl { stroke: var(--warn); } .mring.bad .vl { stroke: var(--bad); }
.mring b { font-size: 13px; font-weight: 700; }
.mring.empty b { color: var(--muted); font-weight: 500; }
.prov { display: block; font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 2px; }
@media (max-width: 980px) {
  .th { display: none; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who sc" "st st" "b3 b3" "tg tg"; gap: 10px 12px; padding: 14px 10px; }
  .tr > :nth-child(1) { grid-area: who; } .tr > :nth-child(2) { grid-area: b3; } .tr > :nth-child(3) { grid-area: tg; }
  .tr > :nth-child(4) { grid-area: st; } .tr > :nth-child(5) { grid-area: sc; }
}

/* ---------- person page ---------- */
.back { align-self: flex-start; }
.profile { padding: 0; overflow: hidden; }
.profile-banner { height: 110px; background:
  radial-gradient(30rem 12rem at 85% -20%, oklch(0.86 0.09 70 / 0.8), transparent 60%),
  linear-gradient(120deg, oklch(0.84 0.09 292), oklch(0.62 0.17 288)); }
:root[data-theme="dark"] .profile-banner { background: radial-gradient(30rem 12rem at 85% -20%, oklch(0.45 0.08 60 / 0.6), transparent 60%), linear-gradient(120deg, oklch(0.40 0.12 292), oklch(0.30 0.12 284)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .profile-banner { background: radial-gradient(30rem 12rem at 85% -20%, oklch(0.45 0.08 60 / 0.6), transparent 60%), linear-gradient(120deg, oklch(0.40 0.12 292), oklch(0.30 0.12 284)); } }
.profile-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 16px 24px 22px; }
.profile-body .av-xl { box-shadow: 0 0 0 5px var(--surface), var(--shadow); margin-top: -64px; align-self: start; }
.profile-id h1 { font-size: 30px; letter-spacing: -0.03em; }
.profile-id p { color: var(--ink-2); margin-top: 2px; }
.profile-id .chips { margin-top: 10px; }
.profile-side { display: flex; align-items: center; gap: 16px; }
.score-hero { display: flex; align-items: center; gap: 12px; }
.score-hero .ringsm { position: relative; width: 84px; height: 84px; }
.score-hero .ringsm svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-hero .ringsm circle { fill: none; stroke-width: 7; }
.score-hero .ringsm .tk { stroke: var(--surface-3); }
.score-hero .ringsm .vl { stroke: var(--primary); stroke-linecap: round; }
.score-hero .ringsm b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.score-hero .meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .profile-body { grid-template-columns: auto minmax(0, 1fr); }
  .profile-side { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .profile-body { grid-template-columns: minmax(0, 1fr); padding-inline: 18px; }
  .profile-id h1 { font-size: 26px; }
}
.pgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 980px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
.when { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.when.late { color: var(--warn-ink); }
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; padding-top: 2px; }
.task .mark { margin-top: 1px; }
.task .tt { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.task .note { grid-column: 2 / -1; font-size: 13px; color: var(--ink-2); }
.task .lab { font-size: 12px; font-weight: 600; white-space: nowrap; }
.lab.done { color: var(--good-ink); } .lab.partial { color: var(--warn-ink); } .lab.missed { color: var(--bad-ink); } .lab.open { color: var(--muted); font-weight: 500; }
.idx { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; flex: none; }
.sect { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.sect h4 { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sect p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.meters { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 22px; }
.empty-inline { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 6px 0 2px; color: var(--ink-2); font-size: 13.5px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--muted); }
.inp, .ta { width: 100%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); line-height: 1.45; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.inp { height: 44px; }
.ta { min-height: 88px; resize: vertical; }
.inp:focus, .ta:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.inp::placeholder, .ta::placeholder { color: var(--muted); }
.with-idx { display: flex; align-items: center; gap: 10px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.stepper input { width: 68px; height: 32px; border: 0; background: none; text-align: center; font-weight: 600; font-size: 15px; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { width: 32px; height: 32px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); display: grid; place-items: center; transition: transform .15s var(--ease); }
.stepper button:active { transform: scale(.9); }
.stepper .of { font-size: 12.5px; color: var(--muted); padding: 0 10px 0 2px; white-space: nowrap; }
.rtask { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.rtask .tt { font-weight: 600; overflow-wrap: anywhere; display: flex; gap: 10px; align-items: flex-start; }
.choice { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .15s var(--ease); }
.choice label:active { transform: scale(.96); }
.choice input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.choice input:checked + label { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.choice input:checked + label.done { background: var(--good); color: oklch(0.99 0 0); }
.choice input:checked + label.partial { background: var(--warn); color: oklch(0.25 0.05 70); }
.choice input:checked + label.missed { background: var(--bad); color: oklch(0.99 0 0); }
.rate label { width: 46px; justify-content: center; padding: 0; height: 46px; font-size: 16px; }
.rate-key { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); max-width: 270px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--primary); }

/* score breakdown */
.total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.total b { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.total small { font-size: 15px; color: var(--muted); }
.parts { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.part { display: flex; flex-direction: column; gap: 6px; }
.part-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.part-top b { font-weight: 600; }
.part-top span { color: var(--muted); }
.part.skip .meter-bar { background: repeating-linear-gradient(-55deg, var(--surface-3) 0 3px, transparent 3px 7px); }
.rating-big { display: flex; align-items: center; gap: 12px; }
.rating-big b { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.pips { display: flex; gap: 4px; }
.pips i { width: 18px; height: 6px; border-radius: 999px; background: var(--surface-3); }
.pips i.on { background: var(--primary); }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mini { display: flex; flex-direction: column; gap: 2px; }
.mini b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.mini span { font-size: 11.5px; color: var(--muted); }
.duties summary { cursor: pointer; font-weight: 600; font-size: 13.5px; list-style: none; display: flex; align-items: center; gap: 8px; }
.duties summary::-webkit-details-marker { display: none; }
.duties summary svg { color: var(--muted); transition: transform .3s var(--ease); }
.duties[open] summary svg { transform: rotate(180deg); }
.duties h5 { margin: 14px 0 0; font-size: 13px; font-weight: 600; }
.duties ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.tlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tlist li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.tlist b { min-width: 46px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; }

/* ---------- leaderboard ---------- */
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; padding-top: 14px; }
.page-h h1 { font-size: 36px; letter-spacing: -0.035em; }
.page-h p { color: var(--ink-2); margin-top: 6px; max-width: 64ch; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 18px; }
.pod .rk { font-size: 12px; font-weight: 700; color: var(--muted); }
.pod .sc { font-size: 40px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.pod .nm { font-weight: 600; font-size: 15px; }
.pod.first { padding-block: 30px; }
.pod.first .rk, .pod.first .muted { color: var(--on-deep-2); }
.pod.first .av-lg { box-shadow: 0 0 0 4px oklch(0.86 0.13 85); }
.pod.empty { color: var(--muted); min-height: 180px; justify-content: center; }
@media (max-width: 760px) {
  .podium { grid-template-columns: minmax(0, 1fr); }
  .pod.first { order: -1; }
}
.lb .tr { grid-template-columns: 44px minmax(170px, 1.4fr) 80px 130px 110px 90px 100px 80px 120px; }
.lb.lbm .tr { grid-template-columns: var(--cols); }
.lb.lbm .tblscroll .tbl { min-width: var(--minw); }
@media (max-width: 760px) {
  .lb .tblscroll .tbl, .lb.lbm .tblscroll .tbl { min-width: 0; }
  .lb .tr, .lb.lbm .tr { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; }
  .lb .tr > :nth-child(n+4) { display: none; }
}
.lb .wh { display: inline-block; width: 42px; text-align: center; }
.lb .wh + .wh { margin-left: 6px; }
.lb .wchips.lbw { flex-wrap: nowrap; }
.lb > .empty-inline { padding: 4px 2px; }
.rank { font-size: 13px; font-weight: 700; color: var(--muted); }
.rank.top { color: var(--primary); }
.scorev { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.spark { display: block; overflow: visible; }
.spark path { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: var(--primary-soft); stroke: none; }
.spark circle { fill: var(--primary); stroke: var(--surface); stroke-width: 2; }
.tblscroll { overflow-x: auto; margin-inline: -6px; padding-inline: 6px; }
.tblscroll .tbl { min-width: 980px; }
@media (max-width: 980px) {
  .lb .th { display: grid; }
  .lb .tr { grid-template-areas: none; }
  .lb .tr > * { grid-area: auto !important; }
}
.split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; margin-top: 6px; }
.split i { display: block; height: 100%; }
.split i:first-child { border-radius: 999px 0 0 999px; }
.split i:last-child { border-radius: 0 999px 999px 0; }
.legend4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.legend4 > div { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.legend4 h4 { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.legend4 h4 i { width: 10px; height: 10px; border-radius: 3px; }
.legend4 h4 b { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .legend4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .legend4 { grid-template-columns: minmax(0, 1fr); } }
.rules { margin: 16px 0 0; padding: 14px 0 0 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }

/* ---------- people ---------- */
.pgrid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 14px; }
.pcard-top { display: flex; align-items: center; gap: 12px; }
.pcard-top .t { min-width: 0; flex: 1; }
.pcard-top .t b { display: block; font-size: 15.5px; font-weight: 600; }
.pcard-top .t span { display: block; font-size: 12.5px; color: var(--muted); }
.pcard .tg { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .tg span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.pcard-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.pcard-foot > span { white-space: nowrap; }

/* ---------- drawer ---------- */
.backdrop { position: fixed; inset: 0; z-index: var(--z-backdrop); background: oklch(0.2 0.05 285 / 0.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .25s ease both; }
.drawer { position: fixed; z-index: var(--z-drawer); top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideIn .42s var(--ease) both; padding-top: env(safe-area-inset-top, 0px); }
.drawer-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { font-size: 19px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 22px 24px; }
.drawer-f { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(100%); } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); width: max-content; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--surface); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .45s var(--ease) both; }
.toast.bad { background: var(--bad); color: oklch(0.99 0 0); }
.toast .ti { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--good); color: oklch(0.99 0 0); flex: none; }
.toast.bad .ti { background: oklch(1 0 0 / 0.2); }
.toast .ti svg { width: 13px; height: 13px; stroke-width: 3; }
.toast.out { animation: toastOut .3s ease both; }
@media (max-width: 1120px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- states ---------- */
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 56px 24px; }
.state .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.state h2 { font-size: 22px; letter-spacing: -0.02em; }
.state p { color: var(--ink-2); max-width: 52ch; }
.skel { border-radius: var(--r-lg); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; box-shadow: 0 0 0 1px var(--line); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 44px; color: oklch(0.98 0.01 292); background:
  radial-gradient(40rem 26rem at 110% 110%, oklch(0.78 0.11 60 / 0.45), transparent 60%),
  radial-gradient(40rem 30rem at -10% -10%, oklch(0.62 0.18 292), transparent 60%),
  linear-gradient(160deg, oklch(0.36 0.15 286), oklch(0.22 0.07 284)); }
.auth-art h1 { font-size: 44px; letter-spacing: -0.035em; line-height: 1.1; max-width: 14ch; }
.auth-art p { font-size: 15px; opacity: .85; max-width: 44ch; margin-top: 14px; }
.auth-art .logo { color: inherit; }
.auth-art .brand { height: 64px; }
.auth-art .logo-tag { color: inherit; opacity: .8; border-color: color-mix(in oklch, currentColor 35%, transparent); }
.auth-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.auth-list span { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: oklch(1 0 0 / 0.14); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.25); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-card h2 { font-size: 26px; letter-spacing: -0.03em; }
.auth-card .err { padding: 10px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad-ink); font-size: 13px; }
.auth-card .ok { padding: 12px 14px; border-radius: 12px; background: var(--good-soft); color: var(--good-ink); font-size: 13.5px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 28px 22px; min-height: auto; }
  .auth-art h1 { font-size: 30px; }
  .auth-list { display: none; }
}

/* ---------- motion ---------- */
.enter [data-a] { animation: rise .55s var(--ease) both; animation-delay: calc(var(--d, 0) * 55ms); }
.enter .gy { animation: growY .9s var(--ease) both; animation-delay: calc(180ms + var(--i, 0) * 50ms); }
.enter .gx { animation: growX 1s var(--ease) both; animation-delay: calc(200ms + var(--i, 0) * 60ms); }
.enter .clip { animation: clipIn 1s var(--ease) both; animation-delay: calc(160ms + var(--i, 0) * 80ms); }
.enter .ring .val, .enter .mring .vl, .enter .ringsm .vl { animation: ringIn 1.2s var(--ease) both; animation-delay: .2s; }
.enter .pop { animation: popIn .6s var(--ease) both; animation-delay: calc(250ms + var(--i, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
@keyframes growY { from { transform: scaleY(0); } }
@keyframes growX { from { transform: scaleX(0); } }
@keyframes clipIn { from { clip-path: inset(0 100% 0 0 round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } }
.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--primary-mid), var(--shadow); } 100% { box-shadow: 0 0 0 14px transparent, var(--shadow); } }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: themeReveal .6s var(--ease); }
@keyframes themeReveal { from { clip-path: circle(0 at var(--vx, 90%) var(--vy, 5%)); } to { clip-path: circle(150vmax at var(--vx, 90%) var(--vy, 5%)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  ::view-transition-new(root) { animation: none; }
}

/* ---------- monthly tracking ---------- */
.th .c, .tr .c { justify-self: center; text-align: center; }
.mtbl .th { display: grid; }
.mtbl .tr { grid-template-areas: none; }
.mtbl .tr > * { grid-area: auto !important; }
.mgoals { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wcol { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wcol small { font-size: 10.5px; color: var(--muted); }
.wchip { display: inline-grid; place-items: center; min-width: 42px; height: 30px; padding: 0 6px; border-radius: 10px; font-size: 12.5px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.wchip.good { background: var(--good-soft); color: var(--good-ink); }
.wchip.acc { background: var(--primary-soft); color: var(--primary); }
.wchip.warn { background: var(--warn-soft); color: var(--warn-ink); }
.wchip.bad { background: var(--bad-soft); color: var(--bad-ink); }
.wchip.open { background: transparent; border: 1.5px dashed var(--line-2); color: var(--muted); }
.wchip.future { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-weight: 500; }
.wchip.none { background: transparent; color: var(--muted); font-weight: 500; }
.legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.legend-row .wchip { min-width: 30px; height: 22px; font-size: 11px; border-radius: 7px; margin-left: 8px; }
.legend-row .wchip:first-child { margin-left: 0; }
.kcard { display: flex; flex-direction: column; gap: 6px; }
.kcard .card-h { margin-bottom: 8px; }
.kcard .card-h h3 { font-size: 14.5px; }
.kcard .big { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-top: auto; }
.kcard .big small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kcard .sub { font-size: 12.5px; color: var(--muted); }
.top-month .who b { color: var(--on-deep); font-size: 15px; }
.top-month .who small { color: var(--on-deep-2); }
.top-month .av-lg { box-shadow: 0 0 0 3px oklch(0.86 0.13 85); }
.top-month .big { color: var(--on-deep); }
.top-month .card-h svg { color: oklch(0.86 0.13 85); }
.ci .fu-item:hover { background: var(--surface-2); }
.ci .fu-txt span { color: var(--muted); }
.ci .fu-check { border-color: var(--line-2); }
.ci .fu-check.on { background: var(--good); color: oklch(0.99 0 0); }
.ci .av { font-size: 11px; }
.per { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.you.new, .chip.new { color: var(--good-ink); background: var(--good-soft); box-shadow: none; }
.welcome { background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 65%); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.steps li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.steps .when-l { font-size: 11.5px; font-weight: 600; color: var(--primary); }
.steps b { font-size: 14px; }
.steps .t { font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.hint svg.i { width: 12px; height: 12px; vertical-align: -1px; }
.bento > .card.chart-card { align-self: start; }
.chart-card .vbars { height: 250px; margin-top: 18px; }
@media (max-width: 700px) {
  .kbento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kbento .top-month, .kbento > .card.dark { grid-column: 1 / -1; }
  .kbento .kcard { padding: 16px; }
  .kbento .kcard .big { font-size: 34px; }
  .kbento .kcard .card-h .chip { display: none; }
}

/* ---------- profiles, access, checklists, leave, focus ---------- */
.av.has-img { overflow: hidden; background: var(--surface-3); }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.acc-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; margin-left: 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0; vertical-align: middle; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.acc-badge.admin { background: var(--deep); color: var(--on-deep); }
.acc-badge svg.i.sm { width: 12px; height: 12px; }
.pcard-top .acc-badge { margin-left: 0; align-self: flex-start; }
.pcard-top .t .dept { font-size: 12px; color: var(--muted); margin-top: 1px; }
.sec-label { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.contact { display: flex; flex-wrap: wrap; gap: 6px; }
.cbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.cbtn:hover { color: var(--ink); background: var(--surface-3); }
.cbtn.wa, .btn.wa { color: oklch(0.45 0.13 155); }
.btn.wa { border-color: color-mix(in oklch, oklch(0.6 0.15 155) 40%, transparent); }
:root[data-theme="dark"] .cbtn.wa, :root[data-theme="dark"] .btn.wa { color: oklch(0.82 0.14 155); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cbtn.wa, :root:not([data-theme="light"]) .btn.wa { color: oklch(0.82 0.14 155); } }
.about { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; white-space: pre-wrap; }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: center; }
.facts > div:first-child { border-top: 0; padding-top: 2px; }
.facts dt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 0; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.sel { user-select: all; }
.mini-btn { width: 26px; height: 26px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.mini-btn:hover { color: var(--primary); }
.photo-row { display: flex; align-items: center; gap: 18px; }
.photo-row .av-xl { width: 96px; height: 96px; font-size: 32px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.photo-actions .hint { flex-basis: 100%; }
.check.big { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tasks.ck { margin-bottom: 14px; }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.links a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.links a:hover { text-decoration: underline; }
.awaybar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.awaybar .lbl { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.awaybar .select { height: 36px; }
.awaybar .hint { flex: 1 1 260px; }
.notice.away { background: var(--sun); color: var(--sun-ink); }
.notice.away svg { color: var(--sun-ink); }
.status.away { background: var(--sun); color: var(--sun-ink); }
.dotst.away { background: var(--warn); }
.wchip.away { background: var(--sun); color: var(--sun-ink); font-weight: 600; font-size: 11.5px; }
.quick { background: linear-gradient(135deg, var(--primary-soft), var(--surface) 70%); }
.qrows { display: flex; flex-direction: column; gap: 10px; }
.qrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.qlabel { display: flex; flex-direction: column; min-width: 0; }
.qlabel b { font-size: 14px; }
.qlabel span { font-size: 12px; color: var(--muted); }
.qctl { display: flex; align-items: center; gap: 6px; }
.qval { min-width: 44px; text-align: center; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.qval.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); color: var(--primary); } }
.qbtn { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 12px; border: 0; display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: transform .12s var(--ease); }
.qbtn.plus { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.qbtn:active { transform: scale(.92); }
.b-8 { grid-column: span 8; }
.b-4 { grid-column: span 4; }
@media (max-width: 1200px) { .b-8, .b-4 { grid-column: span 6; } .b-8 { grid-column: 1 / -1; } .b-4 { grid-column: 1 / -1; } }
@media (max-width: 700px) { .b-8, .b-4 { grid-column: auto; } }
.focus { background: linear-gradient(120deg, var(--surface) 55%, var(--primary-soft)); }
.focus-body { font-size: 16px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; max-width: 75ch; margin-bottom: 8px; }
.celeb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.celeb .acc-row { width: 100%; }
.celeb .acc-row svg { color: var(--primary); }
.choice.access label { padding: 0 16px; }
.choice input:disabled + label { opacity: .55; cursor: not-allowed; }

/* ---------- companies ---------- */
.cdot { flex: none; width: 8px; height: 8px; border-radius: 999px; background: oklch(0.64 0.15 var(--ch, 290)); }
.cdot.lg { width: 10px; height: 10px; box-shadow: 0 0 0 3px oklch(var(--av-bg-l) var(--av-bg-c) var(--ch, 290)); }
.chip.co { background: oklch(var(--av-bg-l) calc(var(--av-bg-c) * 0.6) var(--ch)); color: oklch(var(--av-fg-l) var(--av-fg-c) var(--ch)); box-shadow: none; font-weight: 600; }
.cocard { --ch: 290; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.cocard::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: oklch(0.64 0.15 var(--ch)); }
.cocard-top { display: flex; align-items: center; gap: 12px; }
.cocard-top .t { min-width: 0; flex: 1; }
.cocard-top .t b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.cocard-top .t span { display: block; font-size: 12.5px; color: var(--muted); }
.co-mark { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: oklch(var(--av-bg-l) var(--av-bg-c) var(--ch)); color: oklch(var(--av-fg-l) var(--av-fg-c) var(--ch)); }
.co-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px 4px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.co-stats > div { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.co-stats b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.co-stats span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.co-people { display: flex; flex-wrap: wrap; gap: 6px; }
.co-person { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 3px; border: 0; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.co-person:hover { background: var(--surface-3); color: var(--ink); }
.co-person .dotst { width: 7px; height: 7px; }
.co-nums { display: flex; flex-direction: column; gap: 10px; }
.co-choice label { gap: 7px; }
.co-choice input:checked + label .cdot { background: var(--on-primary); }
.co-add { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.co-add .inp { height: 38px; font-size: 13.5px; }
.co-add .btn { flex: none; }
.co-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 6px; }
.co-pick .check.big { align-items: center; padding: 8px 10px; font-size: 13px; font-weight: 500; }
.co-pick .check input { margin-top: 0; }
.co-pick .check:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches label { width: 30px; height: 30px; border-radius: 999px; cursor: pointer; background: oklch(0.64 0.15 var(--ch)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); transition: transform .15s var(--ease), box-shadow .2s; }
.swatches label:hover { transform: scale(1.08); }
.swatches input:checked + label { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px oklch(0.64 0.15 var(--ch)); }
.swatches input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 4px; }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.btn.danger { color: var(--bad-ink); border-color: color-mix(in oklch, var(--bad) 35%, transparent); }
.btn.danger:hover { background: var(--bad-soft); }

/* ---------- sign-in: passwords and sign-in links ---------- */
.lbl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lbl-row label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
a.btn { text-decoration: none; }
.linkbtn { border: 0; background: none; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--primary); }
.linkbtn:hover { text-decoration: underline; }
.drawer.narrow { width: min(440px, 100%); }
.signed-as { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.signed-as svg { color: var(--muted); flex: none; }
.signin-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.signin-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.signin-h b { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.signin-h b svg { color: var(--primary); }
.linkbox { display: flex; flex-direction: column; gap: 10px; }
.linkbox .inp { height: 40px; font-size: 12.5px; color: var(--ink-2); background: var(--surface); }
.linkbox .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.login-line { display: flex; align-items: center; gap: 8px; margin-top: -4px; }
.login-line svg { color: var(--muted); }

/* ---------- monthly reports ---------- */
.rep-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rep-nav { display: flex; gap: 8px; }
.rep-hero { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, var(--surface) 55%, var(--primary-soft)); }
.rep-hero-main { display: flex; align-items: flex-start; gap: 18px; min-width: 0; flex: 1 1 420px; }
.rep-hero-main .t { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rep-hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.rep-hero h1 { font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; }
.rep-hero p { color: var(--ink-2); }
.rep-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.kpi-tile b { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.kpi-tile span { font-size: 12.5px; color: var(--muted); }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rgrid .span2 { grid-column: 1 / -1; }
@media (max-width: 860px) { .rgrid { grid-template-columns: minmax(0, 1fr); } }
.rsec { display: flex; flex-direction: column; gap: 12px; }
.rsec h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.rsec h3 svg { color: var(--primary); }
.rsec h4 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.rsec p { color: var(--ink-2); line-height: 1.6; max-width: 80ch; }
.rsec.good-edge { box-shadow: var(--shadow-sm), 0 0 0 1px var(--line), inset 4px 0 0 var(--good); }
.rsec.warn-edge { box-shadow: var(--shadow-sm), 0 0 0 1px var(--line), inset 4px 0 0 var(--warn); }
.rsec.checkin { background: var(--surface-2); }
.rlist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); line-height: 1.55; }
.rlist li::marker { color: var(--primary); }
.rlist b, .rsec p b { color: var(--ink); font-weight: 600; }
.rt-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.rt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rt th, .rt td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.rt thead th { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.rt tbody th { font-weight: 600; color: var(--ink); white-space: normal; min-width: 150px; }
.rt .n { text-align: right; font-variant-numeric: tabular-nums; }
.rt td.del { min-width: 150px; }
.rt td.del .delw { display: flex; align-items: center; gap: 10px; }
.rt td.del b { font-size: 12.5px; min-width: 38px; text-align: right; }
.rbar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: block; }
.rbar i { display: block; height: 100%; border-radius: 999px; background: var(--good); }
.rt.metrics td.n { position: relative; min-width: 96px; }
.rt.metrics td.n span { position: relative; }
.cellbar { position: absolute; right: 6px; top: 50%; height: 26px; transform: translateY(-50%); max-width: calc(100% - 12px); border-radius: 8px; background: var(--primary-soft); }
.rt .tot { font-weight: 700; color: var(--ink); background: var(--surface-2); }
.rchips { display: flex; flex-direction: column; gap: 8px; }
.rchip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; font-weight: 500; }
.priority { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--primary-soft); }
.priority h4 { margin-top: 0; color: var(--primary); }
.priority p { color: var(--ink); }
@media (max-width: 700px) { .priority { grid-template-columns: minmax(0, 1fr); } }
.rep-sign { text-align: center; font-size: 13px; color: var(--muted); padding: 4px 0 8px; }
.rep-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rep-person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: background .2s; }
.rep-person:hover { background: var(--surface-3); }
.rep-person .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rep-person .t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-person .t small { font-size: 12px; color: var(--muted); }
.rep-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rep-block { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.rep-block-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rnum { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; }
.rnum:empty { display: none; }
.rep-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; border-radius: 999px; background: color-mix(in oklch, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); width: fit-content; }
@media (max-width: 1120px) { .rep-actions { bottom: 96px; } }
/* ---------- performance: verdict, stat tiles, charts, number form ---------- */
.vpill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.vpill.good { background: var(--good-soft); color: var(--good-ink); }
.vpill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.vpill.bad { background: var(--bad-soft); color: var(--bad-ink); }
.vpill.acc { background: var(--primary-soft); color: var(--primary); }
.dchip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--surface-3); color: var(--muted); }
.dchip.up { background: var(--good-soft); color: var(--good-ink); }
.dchip.down { background: var(--bad-soft); color: var(--bad-ink); }
.perf-sum { display: flex; flex-direction: column; gap: 16px; }
.perf-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.perf-head .vpill { font-size: 17px; padding: 9px 18px 9px 14px; gap: 8px; }
.perf-head p { color: var(--ink-2); }
.perf-head p b { color: var(--ink); }
.stiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px 12px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.stile .lbl { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.stile .val { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.stile .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 21px; }
.stile .meta small { font-size: 11.5px; color: var(--muted); }
.tspark { display: block; width: 120px; max-width: 100%; height: 32px; margin-top: 4px; overflow: visible; }
.tspark path { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tspark path.base { stroke: var(--line); }
.tspark circle { fill: var(--primary); stroke: var(--surface); stroke-width: 2; }
.lchart { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; }
.lc-y, .lc-plot { position: relative; height: 170px; margin-top: 26px; }
.lc-y { min-width: 30px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lc-y span { position: absolute; right: 0; transform: translateY(-50%); }
.lc-y span:nth-child(1) { top: 0; } .lc-y span:nth-child(2) { top: 50%; } .lc-y span:nth-child(3) { top: 100%; }
.lc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc-plot .grid { fill: none; stroke: var(--line); stroke-width: 1; }
.lc-plot .area { fill: var(--primary); opacity: 0.1; }
.lc-plot .line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lc-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--surface); transform: translate(-50%, -50%); pointer-events: none; }
.lc-dot.cur { width: 11px; height: 11px; }
.lc-end { position: absolute; transform: translate(-50%, calc(-100% - 10px)); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; pointer-events: none; transition: opacity .12s; }
.lc-plot:hover .lc-end, .lc-plot:focus-within .lc-end { opacity: 0; }
.lc-cols { position: absolute; inset: -26px 0 0; display: flex; }
.lc-col { position: relative; flex: 1; outline: none; }
.lc-col::before { content: ''; position: absolute; left: 50%; top: 26px; bottom: 0; width: 1px; background: var(--line-2); opacity: 0; }
.lc-tip { position: absolute; left: 50%; top: 0; transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: var(--deep); color: var(--on-deep); font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.lc-col:hover::before, .lc-col:focus-visible::before, .lc-col:hover .lc-tip, .lc-col:focus-visible .lc-tip { opacity: 1; }
.lc-x { grid-column: 2; display: flex; margin-top: 8px; }
.lc-x span { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); }
.lc-table { font-size: 12.5px; }
.lc-table summary { cursor: pointer; color: var(--muted); width: fit-content; }
.lc-table .rt { margin-top: 8px; }
.hbars { display: flex; flex-direction: column; gap: 14px; }
.hb-row { display: grid; grid-template-columns: minmax(84px, 130px) minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.hb-l { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hb-l b { font-size: 13.5px; font-weight: 600; }
.hb-l small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { display: flex; align-items: center; height: 20px; }
.hb-track i { display: block; height: 20px; border-radius: 0 4px 4px 0; background: var(--primary); }
.hb-v { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 104px; }
.hb-v b { font-size: 14px; font-variant-numeric: tabular-nums; }
.rt.acct tbody th small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.rt tr.tot th, .rt tr.tot td { font-weight: 700; background: var(--surface-2); }
.rep-notes-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; }
.rep-notes-h h2 { font-size: 21px; letter-spacing: -0.02em; }
.rep-notes-h p { color: var(--muted); font-size: 13.5px; }
.rsec > .sub { margin-top: -6px; color: var(--muted); font-size: 13.5px; }
.acc-block { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nf-group h4 { margin: 0 0 8px; }
.nf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px 12px; }
.nf .inp { font-variant-numeric: tabular-nums; }
.nf .hint { font-size: 11.5px; }
.acc-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.acc-add .field { flex: 1; min-width: 150px; }
.act-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(76px, 1fr) minmax(76px, 1fr) auto; align-items: end; gap: 10px; }
.auto-acts ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.auto-acts li { display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.auto-acts li small { color: var(--muted); }
.vcounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vcount { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--surface-3); color: var(--ink-2); }
.vcount b { font-size: 14px; }
.vcount.good { background: var(--good-soft); color: var(--good-ink); }
.vcount.warn { background: var(--warn-soft); color: var(--warn-ink); }
.vcount.bad { background: var(--bad-soft); color: var(--bad-ink); }
.stiles.team { margin-bottom: 10px; }
.tblscroll .ptbl { min-width: 1180px; }
.ptbl .tr { grid-template-columns: minmax(160px, 1.3fr) 128px 84px 96px 88px 84px 78px minmax(136px, 1fr) 120px 86px; gap: 12px; }
.nv { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.nv.r { align-items: flex-end; }
.nv b { font-variant-numeric: tabular-nums; }
.nv small, .vcell small { font-size: 11.5px; color: var(--muted); }
.vcell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.perf-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 12px; }
.perf-mini > span:not(.vpill) { display: inline-flex; align-items: baseline; gap: 6px; }
.perf-mini small { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) {
  .ptbl .th { display: grid; }
  .ptbl .tr { grid-template-areas: none; }
  .ptbl .tr > * { grid-area: auto !important; }
}
@media (max-width: 760px) {
  .tblscroll .ptbl { min-width: 0; }
  .ptbl .tr { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .ptbl .tr > :nth-child(n+3) { display: none; }
  .ptbl .vcell { align-items: flex-end; }
  .act-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .act-row > .field:first-child { grid-column: 1 / -1; }
  .acc-block { padding: 14px 12px; }
  .stile .val { font-size: 24px; }
}
@media print {
  .topbar, .tabbar, .demo-bar, .back, .rep-nav, .rep-hero-side .actions, .toast { display: none !important; }
  body, .card { background: #fff !important; box-shadow: none !important; }
  .card { border: 1px solid #ddd; break-inside: avoid; }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .lc-table, .lc-cols, .rep-actions { display: none !important; }
}
.scope-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.scope-line svg { color: var(--primary); flex-shrink: 0; }
.scope-box { display: none; padding: 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.form:has(input[name$="access"][value="supervisor"]:checked) .scope-box { display: flex; flex-direction: column; gap: 10px; }
.scope-box:has(input[value="all"]:checked) .scope-cos { display: none; }
.scope-cos { display: flex; flex-direction: column; gap: 8px; }
.scope-cos .sub-lbl { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
