/* OfficeSakha design system: deep navy and gold, glass surfaces, light and dark. */

:root {
  color-scheme: light;
  --font: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Instrument Serif', 'Noto Serif Devanagari', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f4f5f9;
  --bg-glow-1: rgba(47, 79, 181, 0.10);
  --bg-glow-2: rgba(200, 150, 46, 0.10);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-2: #eef0f6;
  --surface-3: #e5e8f1;
  --hover: rgba(16, 28, 72, 0.045);
  --border: rgba(14, 26, 61, 0.08);
  --border-strong: rgba(14, 26, 61, 0.15);
  --ink: #0b1433;
  --ink-2: #3a4566;
  --muted: #5b6684;
  --faint: #9aa3bb;

  --navy: #0e1a3d;
  --navy-2: #172a5f;
  --brand: #2f4fb5;
  --brand-ink: #24409c;
  --brand-soft: rgba(47, 79, 181, 0.10);
  --gold: #c8962e;
  --gold-2: #e8c77a;
  --gold-ink: #8a6418;
  --gold-soft: rgba(200, 150, 46, 0.14);

  --good: #0ca30c; --good-ink: #067a06; --good-soft: rgba(12, 163, 12, 0.10);
  --warn: #fab219; --warn-ink: #8f5d00; --warn-soft: rgba(250, 178, 25, 0.16);
  --serious: #ec835a; --serious-ink: #a8461f; --serious-soft: rgba(236, 131, 90, 0.14);
  --crit: #d03b3b; --crit-ink: #b42828; --crit-soft: rgba(208, 59, 59, 0.10);

  --s1: #2f4fb5;  /* chart series 1 */
  --s2: #b8862a;  /* chart series 2 */
  --heat-0: #eef0f6; --heat-1: #cfdaf7; --heat-2: #9fb3ec; --heat-3: #6683e0; --heat-4: #2f4fb5; --heat-5: #1b2f78;
  --grid: #e1e0d9;
  --axis: #c3c2b7;

  --shadow-sm: 0 1px 2px rgba(11, 20, 51, 0.05);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 2px rgba(11, 20, 51, 0.04), 0 10px 30px -12px rgba(11, 20, 51, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(11, 20, 51, 0.35), 0 2px 6px rgba(11, 20, 51, 0.06);
  --ring: 0 0 0 3px rgba(47, 79, 181, 0.22);

  --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sidebar: 256px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #060a18; --bg-glow-1: rgba(102, 131, 224, 0.13); --bg-glow-2: rgba(184, 138, 46, 0.10);
    --surface: rgba(18, 26, 52, 0.66); --surface-solid: #0f172f; --surface-2: #141d3a; --surface-3: #1c2648;
    --hover: rgba(160, 180, 255, 0.06); --border: rgba(170, 186, 240, 0.10); --border-strong: rgba(170, 186, 240, 0.18);
    --ink: #eaeefa; --ink-2: #b6bfd9; --muted: #8590b0; --faint: #5b6585;
    --brand: #6683e0; --brand-ink: #9db1f5; --brand-soft: rgba(102, 131, 224, 0.16);
    --gold: #d4a74a; --gold-2: #ecd08e; --gold-ink: #e2bd6b; --gold-soft: rgba(212, 167, 74, 0.14);
    --good-ink: #3fd03f; --good-soft: rgba(12, 163, 12, 0.16); --warn-ink: #fab219; --warn-soft: rgba(250, 178, 25, 0.13);
    --serious-ink: #f09a77; --crit-ink: #ff7a7a; --crit-soft: rgba(208, 59, 59, 0.18);
    --s1: #6683e0; --s2: #b88a2e;
    --heat-0: #141d3a; --heat-1: #1d2d63; --heat-2: #27408e; --heat-3: #3a59bd; --heat-4: #6683e0; --heat-5: #a9bbf5;
    --grid: #2c2c2a; --axis: #383835;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
    --ring: 0 0 0 3px rgba(102, 131, 224, 0.35);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #060a18; --bg-glow-1: rgba(102, 131, 224, 0.13); --bg-glow-2: rgba(184, 138, 46, 0.10);
  --surface: rgba(18, 26, 52, 0.66); --surface-solid: #0f172f; --surface-2: #141d3a; --surface-3: #1c2648;
  --hover: rgba(160, 180, 255, 0.06); --border: rgba(170, 186, 240, 0.10); --border-strong: rgba(170, 186, 240, 0.18);
  --ink: #eaeefa; --ink-2: #b6bfd9; --muted: #8590b0; --faint: #5b6585;
  --brand: #6683e0; --brand-ink: #9db1f5; --brand-soft: rgba(102, 131, 224, 0.16);
  --gold: #d4a74a; --gold-2: #ecd08e; --gold-ink: #e2bd6b; --gold-soft: rgba(212, 167, 74, 0.14);
  --good-ink: #3fd03f; --good-soft: rgba(12, 163, 12, 0.16); --warn-ink: #fab219; --warn-soft: rgba(250, 178, 25, 0.13);
  --serious-ink: #f09a77; --crit-ink: #ff7a7a; --crit-soft: rgba(208, 59, 59, 0.18);
  --s1: #6683e0; --s2: #b88a2e;
  --heat-0: #141d3a; --heat-1: #1d2d63; --heat-2: #27408e; --heat-3: #3a59bd; --heat-4: #6683e0; --heat-5: #a9bbf5;
  --grid: #2c2c2a; --axis: #383835;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  --ring: 0 0 0 3px rgba(102, 131, 224, 0.35);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, var(--bg-glow-2), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow-x: hidden;
}
html[lang='hi'] body { font-size: 15.5px; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: 28px; font-weight: 650; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--gold-soft); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.tight { gap: 8px; }
.spacer { flex: 1; }
.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
svg.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -0.2em; }
.hero .date > .ico { width: 16px; height: 16px; }
.cmdk-hint > .ico { width: 17px; height: 17px; }
.me-card > .ico { width: 18px; height: 18px; color: #8f9bc3; }
.cmdk-hint span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- layout */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 30; display: flex; flex-direction: column;
  padding: 20px 14px; color: #dfe5f7;
  background:
    radial-gradient(400px 260px at 0% 0%, rgba(232, 199, 122, 0.12), transparent 70%),
    linear-gradient(180deg, #0f1c44 0%, #0a1433 60%, #070e26 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar .os-brand { padding: 6px 10px 22px; }
.os-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-name { font-family: var(--font-display); font-size: 21px; line-height: 1.05; color: #fff; letter-spacing: -0.01em; }
.brand-tag { font-size: 9.5px; letter-spacing: 0.12em; white-space: nowrap; text-transform: uppercase; color: var(--gold-2); margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: #b9c3e3; font-weight: 500;
  transition: background 0.18s var(--ease), color 0.18s var(--ease); position: relative;
}
.nav a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none; }
.nav a.active { background: linear-gradient(90deg, rgba(232, 199, 122, 0.16), rgba(232, 199, 122, 0.04)); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-2); }
.nav a .ico { width: 20px; height: 20px; opacity: 0.9; }
.nav .count { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: rgba(208, 59, 59, 0.9); color: #fff; }
.side-section { margin-top: 22px; padding: 0 12px 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #7783a8; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.cmdk-hint {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; width: 100%; text-align: left;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); color: #aab4d6; font-size: 13.5px;
}
.cmdk-hint:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
kbd {
  white-space: nowrap; flex: none;
  font-family: var(--font); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; line-height: 1.4;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px; color: var(--ink-2);
}
.sidebar kbd { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #c9d1ee; }
.me-card {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; cursor: pointer; width: 100%; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); color: #fff;
}
.me-card:hover { background: rgba(255, 255, 255, 0.08); }
.me-card .role { font-size: 12px; color: #8f9bc3; }

.main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar .title { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.topbar .crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; min-width: 0; }
.topbar .crumbs a { color: var(--muted); }
.topbar .crumbs b { color: var(--ink); font-weight: 600; }
.mobile-brand { display: none; }
.page { padding: 8px 32px 64px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page-enter { animation: pageIn 0.38s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tabbar { display: none; }

/* ------------------------------------------------------------ components */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  position: relative;
}
.card.pad { padding: 22px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 0; }
.card-head h2 { font-size: 15.5px; }
.card-head .sub { font-size: 13px; color: var(--muted); }
.card-body { padding: 16px 22px 22px; }
.card.link { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s; cursor: pointer; }
.card.link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 360px; }

.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 18px 0 22px; }
.page-head h1 { font-size: 30px; font-weight: 680; letter-spacing: -0.025em; }
.page-head .lede { color: var(--muted); margin-top: 4px; font-size: 14.5px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--border-strong); background: var(--surface-solid); color: var(--ink); font-weight: 560; font-size: 14px;
  cursor: pointer; white-space: nowrap; user-select: none; box-shadow: var(--shadow-sm);
  transition: transform 0.12s var(--ease), background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn:hover { border-color: var(--faint); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn .ico { width: 17px; height: 17px; }
.btn.primary {
  background: linear-gradient(180deg, #24409c, #172a6b); border-color: #142560; color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -6px rgba(23, 42, 107, 0.6);
}
.btn.primary:hover { background: linear-gradient(180deg, #2a49ad, #1a3078); }
.btn.gold {
  background: linear-gradient(180deg, #e2bd6b, #c8962e); border-color: #b5862a; color: #1e1606;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 6px 16px -6px rgba(200, 150, 46, 0.6);
}
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--crit-ink); }
.btn.danger:hover { background: var(--crit-soft); border-color: transparent; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; gap: 6px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn.wa { color: #128c4b; }
.btn.wa:hover { background: rgba(18, 140, 75, 0.08); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 550;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); white-space: nowrap;
}
.chip .ico { width: 13px; height: 13px; }
.chip.btnlike { cursor: pointer; }
.chip.btnlike:hover { border-color: var(--border-strong); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
:root[data-theme='dark'] .chip.on { background: var(--brand); border-color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .chip.on { background: var(--brand); border-color: var(--brand); } }
.chip.gold { background: var(--gold-soft); color: var(--gold-ink); border-color: transparent; }
.chip.brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }

/* status pills always pair colour with an icon and a label */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 99px; font-size: 12px; font-weight: 600;
  white-space: nowrap; border: 1px solid transparent;
}
.pill .ico { width: 13px; height: 13px; }
.pill.crit { background: var(--crit-soft); color: var(--crit-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.pill.serious { background: var(--serious-soft); color: var(--serious-ink); }
.pill.good { background: var(--good-soft); color: var(--good-ink); }
.pill.brand { background: var(--brand-soft); color: var(--brand-ink); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.neutral { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
button.pill { cursor: pointer; }
button.pill:hover { filter: brightness(0.97); box-shadow: 0 0 0 1px var(--border-strong); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.crit { background: var(--crit); } .dot.warn { background: var(--warn); } .dot.good { background: var(--good); }
.dot.brand { background: var(--brand); } .dot.muted { background: var(--faint); } .dot.gold { background: var(--gold); }

.avatar {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: none; color: #fff;
  letter-spacing: 0.02em; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.avatar.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; }
.avatar.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 10.5px; }
.avatar.round { border-radius: 50%; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 560; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--crit-ink); font-weight: 520; }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface-solid);
  transition: border-color 0.15s, box-shadow 0.15s; min-width: 0;
}
textarea.input { height: auto; min-height: 88px; padding: 10px 13px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a7593' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover { border-color: var(--faint); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input.bad { border-color: var(--crit); }
.input.sm { height: 34px; font-size: 13.5px; border-radius: 9px; }
.input.upper { text-transform: uppercase; }
.input-icon { position: relative; }
.input-icon .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { padding: 20px 0; border-top: 1px solid var(--border); }
.form-section:first-child { border-top: 0; padding-top: 4px; }
.form-section > h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--faint); display: grid; place-items: center; flex: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease); background: var(--surface-solid);
}
.check .box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(0.5); transition: 0.18s var(--ease); }
.check input:checked + .box { background: var(--brand); border-color: var(--brand); }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { box-shadow: var(--ring); }
.check:active .box { transform: scale(0.9); }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.toggle input { position: absolute; opacity: 0; }
.toggle .track { width: 38px; height: 22px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background 0.2s; flex: none; border: 1px solid var(--border); }
.toggle .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.22s var(--ease); }
.toggle input:checked + .track { background: var(--brand); }
.toggle input:checked + .track::after { transform: translateX(16px); }
.toggle input:focus-visible + .track { box-shadow: var(--ring); }

.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 560; font-size: 13.5px;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: color 0.15s, background 0.2s;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface-solid); color: var(--ink); box-shadow: 0 1px 3px rgba(11, 20, 51, 0.12); }
.seg .n { font-size: 11px; font-weight: 650; padding: 0 6px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); line-height: 18px; }
.seg button.on .n.crit, .seg .n.crit { background: var(--crit); color: #fff; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 10px 14px 12px; color: var(--muted); font-weight: 560; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--gold); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input-icon { flex: 1 1 260px; max-width: 380px; }
.toolbar select.input { width: auto; min-width: 150px; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.t th {
  text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: transparent; position: sticky; top: 0;
}
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tbody tr { transition: background 0.12s; }
table.t tbody tr:hover { background: var(--hover); }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t .r, table.t th.r { text-align: right; }
table.t td.num, table.t td.r { font-variant-numeric: tabular-nums; }
table.t tfoot td { font-weight: 650; border-top: 1px solid var(--border-strong); padding: 12px 14px; }
table.t tr.sel { background: var(--brand-soft); }
table.t th:first-child, table.t td:first-child { padding-left: 22px; }
table.t th:last-child, table.t td:last-child { padding-right: 22px; }
.cell-title { font-weight: 580; color: var(--ink); }
.cell-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* list rows */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--border); transition: background 0.12s; min-width: 0; }
.li:first-child { border-top: 0; }
.li:hover { background: var(--hover); }
.li.click { cursor: pointer; }
.li .date-badge { width: 46px; text-align: center; flex: none; border-radius: 11px; padding: 5px 0; background: var(--surface-2); border: 1px solid var(--border); }
.date-badge .d { font-size: 17px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.date-badge .m { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.date-badge.crit { background: var(--crit-soft); border-color: transparent; }
.date-badge.crit .d { color: var(--crit-ink); }
.date-badge.warn { background: var(--warn-soft); border-color: transparent; }

/* ------------------------------------------------------------- KPI cards */
.kpi { padding: 20px 22px 18px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; min-height: 154px; }
.kpi .k-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; min-width: 0; }
.kpi .k-label > .k-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kpi .k-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.kpi .k-icon .ico { width: 16px; height: 16px; }
.kpi .k-value { font-size: 40px; font-weight: 680; letter-spacing: -0.035em; line-height: 1.1; margin-top: 12px; }
.kpi .k-value small { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; margin-left: 2px; }
.kpi .k-foot { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; }
.kpi .k-spark { position: absolute; right: 18px; top: 20px; opacity: 0.95; }
.kpi::after {
  content: ''; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--kpi-glow, transparent), transparent); opacity: 0.6; pointer-events: none;
}
.kpi.crit { --kpi-glow: rgba(208, 59, 59, 0.16); }
.kpi.warn { --kpi-glow: rgba(250, 178, 25, 0.18); }
.kpi.brand { --kpi-glow: rgba(47, 79, 181, 0.16); }
.kpi.gold { --kpi-glow: rgba(200, 150, 46, 0.2); }
.k-icon.crit { background: var(--crit-soft); color: var(--crit-ink); }
.k-icon.warn { background: var(--warn-soft); color: var(--warn-ink); }
.k-icon.brand { background: var(--brand-soft); color: var(--brand-ink); }
.k-icon.gold { background: var(--gold-soft); color: var(--gold-ink); }
.k-icon.good { background: var(--good-soft); color: var(--good-ink); }

/* hero */
.hero { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 22px 0 24px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: 46px; letter-spacing: -0.02em; line-height: 1.05; }
.hero h1 em { font-style: italic; color: var(--gold-ink); }
.hero .date { color: var(--muted); margin-top: 8px; font-size: 14.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.summary {
  overflow: hidden; padding: 0; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(14, 26, 61, 0.96), rgba(23, 42, 95, 0.94)); color: #e8ecf8; border-color: rgba(255, 255, 255, 0.06);
}
.summary .inner { padding: 22px 24px; position: relative; }
.summary .inner::before {
  content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 199, 122, 0.28), transparent); pointer-events: none;
}
.summary h2 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.summary .points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 16px; position: relative; }
.summary .pt { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: #d5dcf2; }
.summary .pt b { color: #fff; font-weight: 620; }
.summary .pt .ico-wrap { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.08); }
.summary .pt .ico { width: 15px; height: 15px; color: var(--gold-2); }
.summary .btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
.summary .btn:hover { background: rgba(255, 255, 255, 0.14); }
.summary.collapsed .points, .summary.collapsed .sum-actions { display: none; }
.sum-actions { display: flex; gap: 8px; margin-top: 18px; position: relative; flex-wrap: wrap; }

.alert {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); margin-bottom: 18px;
  background: var(--crit-soft); border: 1px solid rgba(208, 59, 59, 0.22); color: var(--ink);
}
.alert .ico { width: 20px; height: 20px; color: var(--crit-ink); flex: none; }
.alert.warn { background: var(--warn-soft); border-color: rgba(250, 178, 25, 0.35); }
.alert.warn .ico { color: var(--warn-ink); }
.alert.info { background: var(--brand-soft); border-color: rgba(47, 79, 181, 0.2); }
.alert.info .ico { color: var(--brand-ink); }

/* -------------------------------------------------------------- charts */
.chart { width: 100%; position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { transition: opacity 0.15s; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + .hl, .chart g.grp:hover .bar { opacity: 0.85; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.grow-bar { transform-origin: bottom; animation: growY 0.7s var(--ease) both; }
.grow-x { transform-origin: left; animation: growX 0.7s var(--ease) both; }
@keyframes growY { from { transform: scaleY(0); } }
@keyframes growX { from { transform: scaleX(0); } }

.tip {
  position: fixed; z-index: 200; pointer-events: none; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45;
  background: rgba(11, 20, 51, 0.94); color: #fff; box-shadow: var(--shadow-lg); max-width: 280px; opacity: 0; transform: translateY(4px);
  transition: opacity 0.12s, transform 0.12s; backdrop-filter: blur(8px);
}
.tip.on { opacity: 1; transform: none; }
.tip b { font-weight: 650; }
.tip .tr { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tip .tr i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }

/* heatmap calendar */
.heat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.heat .dow { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 2px; }
.heat .day {
  aspect-ratio: 1.15; border-radius: 10px; background: var(--heat-0); position: relative; cursor: pointer; border: 1px solid transparent;
  display: flex; flex-direction: column; justify-content: space-between; padding: 6px 7px; min-width: 0;
  transition: transform 0.15s var(--ease), box-shadow 0.15s; animation: fadeIn 0.5s var(--ease) both;
}
.heat .day:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.heat .day .dn { font-size: 11.5px; font-weight: 600; color: var(--ink-2); line-height: 1; }
.heat .day .dc { font-size: 13px; font-weight: 700; align-self: flex-end; line-height: 1; font-variant-numeric: tabular-nums; }
.heat .day.l1 { background: var(--heat-1); } .heat .day.l2 { background: var(--heat-2); }
.heat .day.l3 { background: var(--heat-3); } .heat .day.l4 { background: var(--heat-4); } .heat .day.l5 { background: var(--heat-5); }
.heat .day.l3 .dn, .heat .day.l3 .dc, .heat .day.l4 .dn, .heat .day.l4 .dc, .heat .day.l5 .dn, .heat .day.l5 .dc { color: #fff; }
:root[data-theme='dark'] .heat .day.l5 .dn, :root[data-theme='dark'] .heat .day.l5 .dc { color: #0b1433; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .heat .day.l5 .dn, :root:not([data-theme='light']) .heat .day.l5 .dc { color: #0b1433; } }
.heat .day.out { opacity: 0.35; }
.heat .day.today { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.heat .day.sel { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat .day .od { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--crit); box-shadow: 0 0 0 2px var(--surface-solid); }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.heat-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.94); } }

/* meters */
.meter { height: 8px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transform-origin: left; animation: growX 0.9s var(--ease) both; }
.meter.gold { background: var(--gold-soft); } .meter.gold > i { background: var(--gold); }
.meter.good > i { background: var(--good); }
.segbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; background: transparent; }
.segbar > i { display: block; height: 100%; transform-origin: left; animation: growX 0.9s var(--ease) both; }
.segbar > i:first-child { border-radius: 99px 0 0 99px; } .segbar > i:last-child { border-radius: 0 99px 99px 0; }
.segbar > i:only-child { border-radius: 99px; }
.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .rv { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring circle { transition: stroke-dashoffset 1s var(--ease); }

/* ----------------------------------------------------------- task board */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: color-mix(in srgb, var(--surface-2) 60%, transparent); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; min-height: 120px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; font-weight: 620; font-size: 13.5px; }
.col-head .n { color: var(--muted); font-weight: 600; }
.tcard {
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.18s var(--ease), box-shadow 0.18s, border-color 0.18s; animation: fadeIn 0.35s var(--ease) both;
}
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.tcard .tt { font-weight: 600; font-size: 14px; line-height: 1.4; }
.tcard .tc { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.tcard .tm { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.prio { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.prio.high { background: var(--crit); } .prio.medium { background: var(--warn); } .prio.low { background: var(--faint); }

/* checklist cards */
.cl-card { padding: 18px 20px; }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--border); font-size: 14px; }
.cl-item:first-of-type { border-top: 0; }
.cl-item.done .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }

/* ------------------------------------------------------------- empty */
.empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .art { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft)); border: 1px solid var(--border); }
.empty .art .ico { width: 34px; height: 34px; color: var(--brand-ink); }
.empty h3 { font-size: 17px; }
.empty p { color: var(--muted); max-width: 420px; font-size: 14px; }
.empty .btn { margin-top: 10px; }

/* skeleton */
.skel { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 10px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------------------------------- modal / sheet */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(6, 10, 24, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; animation: fade 0.2s ease both; overflow-y: auto;
}
.overlay.closing { animation: fadeOut 0.18s ease both; }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal {
  width: 100%; max-width: 560px; background: var(--surface-solid); border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  animation: pop 0.32s var(--ease) both; display: flex; flex-direction: column; max-height: calc(100vh - 8vh - 16px);
}
.modal.wide { max-width: 820px; }
.modal.xwide { max-width: 1040px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 18px; }
.modal-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1 1 auto; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-foot .spacer { flex: 1; }

/* command bar */
.cmdk { max-width: 640px; overflow: hidden; }
.cmdk .q { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cmdk .q .ico { width: 20px; height: 20px; color: var(--muted); }
.cmdk .q input { flex: 1; border: 0; outline: none; background: transparent; font-size: 17px; min-width: 0; }
.cmdk .res { max-height: min(60vh, 460px); overflow-y: auto; padding: 8px; }
.cmdk .grp { font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 6px; }
.cmdk .it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; min-width: 0; }
.cmdk .it .ico-wrap { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.cmdk .it .ico { width: 16px; height: 16px; color: var(--ink-2); }
.cmdk .it.on { background: var(--brand-soft); }
.cmdk .it.on .ico-wrap { background: var(--surface-solid); }
.cmdk .it .t1 { font-weight: 560; }
.cmdk .it .t2 { font-size: 12.5px; color: var(--muted); }
.cmdk .foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.cmdk mark { background: var(--gold-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

/* toast */
.toasts { position: fixed; z-index: 300; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px; border-radius: 14px; min-width: 260px; max-width: min(520px, calc(100vw - 32px));
  background: rgba(11, 20, 51, 0.96); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn 0.35s var(--ease) both;
}
.toast.out { animation: toastOut 0.25s ease both; }
.toast .ico { width: 18px; height: 18px; flex: none; }
.toast.ok .ico { color: #4ade80; } .toast.err .ico { color: #ff8a8a; } .toast.info .ico { color: var(--gold-2); }
.toast button { margin-left: auto; background: transparent; border: 0; color: var(--gold-2); font-weight: 600; cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* menu */
.menu { position: fixed; z-index: 150; min-width: 200px; padding: 6px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop 0.18s var(--ease) both; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; text-align: left; font-size: 14px; }
.menu button:hover, .menu button:focus-visible { background: var(--hover); box-shadow: none; }
.menu button .ico { width: 16px; height: 16px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }

/* confetti canvas */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; }
.celebrate {
  position: fixed; z-index: 401; left: 50%; top: 40%; transform: translate(-50%, -50%); pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px; animation: celebrate 1.6s var(--ease) both;
}
.celebrate .badge {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #f3dba0, #c8962e 70%); box-shadow: 0 18px 50px -10px rgba(200, 150, 46, 0.7), 0 0 0 8px rgba(232, 199, 122, 0.18);
}
.celebrate .badge svg { width: 40px; height: 40px; color: #1e1606; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s 0.2s ease forwards; }
.celebrate .msg { font-family: var(--font-display); font-size: 26px; color: var(--ink); text-shadow: 0 2px 20px var(--bg); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes celebrate { 0% { opacity: 0; transform: translate(-50%, -40%) scale(0.6); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 30% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -56%) scale(0.98); } }

/* ---------------------------------------------------------------- login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #060b1d; }
.auth-art { position: relative; overflow: hidden; color: #e6ebfa; padding: 48px; display: flex; flex-direction: column; }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art .over { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.auth-art .quote { margin-top: auto; max-width: 520px; }
.auth-art .quote h2 { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1.08; color: #fff; letter-spacing: -0.02em; }
.auth-art .quote h2 em { color: var(--gold-2); }
.auth-art .quote p { margin-top: 16px; color: #a9b3d6; font-size: 15.5px; max-width: 440px; }
.auth-art .feats { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: #c5cde9; font-size: 13.5px; }
.auth-art .feats span { display: inline-flex; align-items: center; gap: 8px; }
.auth-art .feats .ico { width: 16px; height: 16px; color: var(--gold-2); }
.auth-panel { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.auth-card { width: 100%; max-width: 400px; animation: pageIn 0.6s var(--ease) both; }
.auth-card .greet { font-family: var(--font-display); font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 28px 0 8px; }
.auth-card .greet em { color: var(--gold-ink); font-style: italic; }
.auth-card .lede { color: var(--muted); margin-bottom: 26px; }
.auth-card .stack { gap: 14px; }
.auth-card .btn.primary { height: 48px; font-size: 15px; border-radius: 13px; }
.auth-card .input { height: 48px; border-radius: 13px; font-size: 15px; }
.demo-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-acc { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-solid); cursor: pointer; text-align: left; transition: transform 0.15s var(--ease), border-color 0.15s, box-shadow 0.15s; }
.demo-acc:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.auth-top { position: absolute; top: 20px; right: 24px; display: flex; gap: 8px; }

/* ------------------------------------------------------------- invoice */
.invoice-doc { background: #fff; color: #0b1433; border-radius: 18px; padding: 44px 48px; box-shadow: var(--shadow-lg); max-width: 860px; margin: 0 auto; font-size: 13.5px; }
.invoice-doc .ih { display: flex; gap: 20px; align-items: flex-start; border-bottom: 2px solid #0e1a3d; padding-bottom: 22px; }
.invoice-doc .firm { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.invoice-doc .meta { margin-left: auto; text-align: right; }
.invoice-doc .meta .ttl { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: #8a6418; font-weight: 700; }
.invoice-doc table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.invoice-doc th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6a7593; border-bottom: 1px solid #dfe3ee; padding: 9px 8px; }
.invoice-doc td { padding: 10px 8px; border-bottom: 1px solid #eef0f6; vertical-align: top; }
.invoice-doc .r { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-doc .tot td { border: 0; padding: 5px 8px; }
.invoice-doc .grand td { font-size: 16px; font-weight: 700; border-top: 2px solid #0e1a3d; padding-top: 10px; }
.invoice-doc .muted { color: #6a7593; }
.stamp { display: inline-block; padding: 6px 14px; border: 2px solid; border-radius: 8px; font-weight: 800; letter-spacing: 0.18em; transform: rotate(-8deg); font-size: 13px; }

/* --------------------------------------------------------------- misc */
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.copy { cursor: pointer; border-bottom: 1px dashed var(--faint); }
.copy:hover { color: var(--brand-ink); }
.client-hero { padding: 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.client-hero h1 { font-size: 26px; }
.reg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.stat-mini { display: flex; flex-direction: column; gap: 2px; }
.stat-mini .v { font-size: 22px; font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-mini .l { font-size: 12.5px; color: var(--muted); }
.ratio-good { color: var(--good-ink); } .ratio-bad { color: var(--crit-ink); }
.drop { border: 1.5px dashed var(--border-strong); border-radius: var(--r); padding: 22px; text-align: center; color: var(--muted); }
.lang-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface-solid); }
.lang-toggle button { border: 0; background: transparent; padding: 0 10px; height: 34px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang-toggle button.on { background: var(--navy); color: #fff; }
.bulkbar {
  position: sticky; bottom: 18px; z-index: 15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 10px 14px; border-radius: 16px;
  background: rgba(11, 20, 51, 0.95); color: #fff; box-shadow: var(--shadow-lg); animation: toastIn 0.3s var(--ease) both;
}
.bulkbar .btn { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.group-head { display: flex; align-items: center; gap: 10px; padding: 14px 22px 8px; font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.group-head:first-child { border-top: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.logo-preview { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--r); background: linear-gradient(135deg, #0f1c44, #0a1433); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g-side { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(4, minmax(250px, 1fr)); }
}
@media (max-width: 960px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .topbar { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
  .mobile-brand { display: flex; }
  .topbar .crumbs { display: none; }
  .page { padding: 4px 16px calc(96px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(var(--tabs, 5), 1fr); position: fixed; z-index: 40; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface-solid) 82%, transparent); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 6px;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 16px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
  .tabbar a .ico { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--brand-ink); background: var(--brand-soft); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .count { position: absolute; top: 3px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; font-size: 10px; display: grid; place-items: center; background: var(--crit); color: #fff; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 36px; }
  .summary .points { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .modal { max-height: none; }
  .bulkbar { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 16px; min-height: 132px; }
  /* Phone: the icon sits above the label so every label keeps one line. */
  .kpi .k-label { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 12.5px; }
  .kpi .k-label > .k-text { max-width: 100%; }
  .kpi .k-icon { width: 26px; height: 26px; border-radius: 8px; }
  .kpi .k-value { font-size: 30px; margin-top: 8px; }
  .kpi .k-spark { display: none; }
  .kpi .k-foot { font-size: 12px; }
  .hero { margin: 12px 0 18px; }
  .hero h1 { font-size: 32px; }
  .hero .actions { margin-left: 0; width: 100%; }
  .page-head h1 { font-size: 25px; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .card.pad, .card-body { padding: 16px; }
  .card-head { padding: 16px 16px 0; }
  .li { padding: 12px 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .overlay { padding: 0; align-items: flex-end; }
  .modal, .modal.wide, .modal.xwide { border-radius: 22px 22px 0 0; max-height: 94vh; animation: sheetUp 0.35s var(--ease) both; }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
  .modal-foot { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1 1 auto; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  table.t th:first-child, table.t td:first-child { padding-left: 16px; }
  table.t th:last-child, table.t td:last-child { padding-right: 16px; }
  .toolbar .input-icon { max-width: none; flex-basis: 100%; }
  .toolbar select.input { flex: 1 1 140px; min-width: 0; }
  .invoice-doc { padding: 22px 18px; border-radius: 14px; font-size: 12.5px; }
  .invoice-doc .ih { flex-direction: column; }
  .invoice-doc .meta { margin-left: 0; text-align: left; }
  .demo-accounts { grid-template-columns: minmax(0, 1fr); }
  .heat { gap: 4px; }
  .heat .day { padding: 4px 5px; border-radius: 8px; }
  .heat .day .dc { font-size: 11.5px; }
  .hide-sm { display: none !important; }
  .auth-card .greet { font-size: 34px; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 641px) { .only-sm { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media print {
  body { background: #fff !important; }
  .sidebar, .topbar, .tabbar, .no-print, .toasts, .overlay { display: none !important; }
  .main { margin: 0; }
  .page { padding: 0; }
  .invoice-doc { box-shadow: none; padding: 0; }
}

/* =================================================================== motion */
:root {
  /* A spring: quick start, gentle overshoot, settles. */
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.103, 1.085 30.8%, 1.002 39.9%, 0.985 43.5%, 0.98 47.4%, 0.997 59.4%, 1.002 71.2%, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  .modal, .menu, .celebrate .badge { animation-timing-function: var(--spring); }
  .card.link, .tcard, .btn, .heat .day, .hm { transition-timing-function: var(--spring); }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }

/* ======================================================= Sakha Score ring */
.pulse-ring { position: relative; flex: none; display: grid; place-items: center; }
.pulse-ring svg { display: block; }
.pulse-ring .pr-arc { transition: stroke-dashoffset 1.4s var(--ease); }
.pulse-ring.big { filter: drop-shadow(0 0 18px var(--glow)); }
.pulse-ring.big::before {
  content: ''; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent 75%);
  opacity: 0.3;
}
.pulse-ring .pr-val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.pulse-ring.big .pr-val { align-content: center; gap: 0; }
.pulse-ring .pr-num { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.pulse-ring .pr-lbl { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); margin-top: 4px; font-weight: 650; }
.g-pulse { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
.g2k { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pulse-card { overflow: hidden; }
.pulse-card::before { content: ''; position: absolute; inset: -40% -30% auto auto; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, var(--gold-soft), transparent); pointer-events: none; }
.pulse-hero { display: flex; align-items: center; gap: 22px; padding: 26px 24px 22px; position: relative; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.summary .pt .b-sub { display: block; font-size: 13px; color: #9fb0e0; margin-top: 1px; }
.summary .b-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.summary .b-acts .btn { height: 28px; font-size: 12.5px; }
.summary .pt.tone-crit .ico-wrap { background: rgba(239, 68, 68, 0.18); }
.summary .pt.tone-crit .ico { color: #ff9c9c; }
.summary .pt.tone-good .ico { color: #86efac; }
.summary .points { grid-template-columns: minmax(0, 1fr); }
.summary .inner h2 .ico { width: 20px; height: 20px; color: var(--gold-2); }

/* ============================================================ deadline map */
.hm-wrap { width: 100%; }
.hm-months { display: grid; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 6px; height: 14px; }
.hm-months span { white-space: nowrap; }
.hm-grid { display: grid; grid-template-rows: repeat(7, auto); gap: 3px; }
.hm { aspect-ratio: 1; border-radius: 4px; background: var(--heat-0); display: block; position: relative; transition: transform 0.2s var(--ease), box-shadow 0.2s; animation: fadeIn 0.5s var(--ease) both; min-width: 0; }
.hm:hover { transform: scale(1.35); z-index: 2; box-shadow: 0 0 0 2px var(--surface-solid), var(--shadow); text-decoration: none; }
.hm.l1 { background: var(--heat-1); } .hm.l2 { background: var(--heat-2); } .hm.l3 { background: var(--heat-3); } .hm.l4 { background: var(--heat-4); } .hm.l5 { background: var(--heat-5); }
.hm.past { opacity: 0.55; }
.hm.late::after { content: ''; position: absolute; inset: 28%; border-radius: 50%; background: var(--crit); box-shadow: 0 0 0 1.5px var(--surface-solid); }
.hm.today { outline: 2px solid var(--gold); outline-offset: 1px; z-index: 1; }
.heat-legend .lg-late { background: var(--heat-2); position: relative; }
.heat-legend .lg-late::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--crit); }
.heat-legend .lg-today { background: var(--heat-0); outline: 2px solid var(--gold); outline-offset: -2px; }

/* ============================================================== illustrations */
.illus { margin-bottom: 4px; }
.empty .illus { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ============================================================ quick update */
.qs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.qs-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 16px 8px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--border-strong); background: var(--surface-solid); font-weight: 600; font-size: 13.5px; color: var(--ink-2); min-height: 86px;
  transition: transform 0.18s var(--spring, var(--ease)), border-color 0.15s, background 0.15s;
}
.qs-btn .ico { width: 24px; height: 24px; }
.qs-btn:hover { border-color: var(--brand); }
.qs-btn:active { transform: scale(0.95); }
.qs-btn.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.qs-btn.good { background: linear-gradient(180deg, rgba(12, 163, 12, 0.08), rgba(12, 163, 12, 0.16)); border-color: rgba(12, 163, 12, 0.45); color: var(--good-ink); }
.quick-done { color: var(--good-ink); border-color: transparent; background: var(--good-soft); flex: none; }
.quick-done:hover { background: var(--good); color: #fff; }
.frow { padding-top: 11px; padding-bottom: 11px; }
.frow.sel { background: var(--brand-soft); }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 1.75px solid var(--faint); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; color: transparent; transition: 0.2s var(--ease); }
.tick .ico { width: 14px; height: 14px; }
.tick:hover { border-color: var(--good); color: var(--good); }
.tick.on { background: var(--good); border-color: var(--good); color: #fff; }

/* ============================================================ client 360 */
.client-hero .hero-stats { display: flex; gap: 28px; flex-wrap: wrap; width: 100%; padding-top: 16px; border-top: 1px solid var(--border); }
.tl { position: relative; }
.tl-month { font-size: 11.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 18px 0 6px 46px; }
.tl-item { display: flex; gap: 14px; align-items: flex-start; padding: 9px 8px 9px 0; position: relative; border-radius: 12px; }
.tl-item.click { cursor: pointer; }
.tl-item.click:hover { background: var(--hover); }
.tl-item::before { content: ''; position: absolute; left: 15px; top: 40px; bottom: -10px; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--surface-solid); }
.tl-dot .ico { width: 15px; height: 15px; }
.tl-dot.good { background: var(--good-soft); color: var(--good-ink); } .tl-dot.crit { background: var(--crit-soft); color: var(--crit-ink); }
.tl-dot.warn { background: var(--warn-soft); color: var(--warn-ink); } .tl-dot.brand { background: var(--brand-soft); color: var(--brand-ink); }
.tl-dot.gold { background: var(--gold-soft); color: var(--gold-ink); } .tl-dot.serious { background: var(--serious-soft); color: var(--serious-ink); }
.tl-title { font-weight: 560; font-size: 14px; overflow-wrap: anywhere; }
.tl-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; overflow-wrap: anywhere; }
.tl-date { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; font-variant-numeric: tabular-nums; }
.note-box { display: flex; gap: 10px; align-items: flex-end; }
.note-box textarea { min-height: 44px; }

/* ================================================================= forms */
.gst-row, .fee-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.doc-row { display: flex; gap: 10px; align-items: center; }
.inv-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.title-input { font-size: 24px; font-weight: 650; height: 50px; letter-spacing: -0.02em; border-color: transparent; background: transparent; padding-left: 4px; }
.title-input:hover { border-color: var(--border-strong); background: var(--surface-solid); }
.settings-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 520; font-size: 14px; }
.settings-nav a .ico { width: 17px; height: 17px; color: var(--muted); }
.settings-nav a:hover { background: var(--hover); text-decoration: none; }
.settings-nav a.on { background: var(--surface-solid); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
.proj-grid { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
.proj-inputs { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.proj-inputs .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
table.proj td:first-child { white-space: nowrap; }

@media (max-width: 1200px) {
  .g-pulse { grid-template-columns: minmax(0, 1fr); }
  .proj-grid { grid-template-columns: minmax(0, 1fr); }
  .proj-inputs { position: static; max-height: none; }
}
@media (max-width: 960px) {
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav a { white-space: nowrap; border: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .g2k { gap: 12px; }
  .qs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse-hero { padding: 20px 18px; gap: 16px; }
  .pulse-ring .pr-num { font-size: 46px; }
  .hm-grid { gap: 2px; }
  .hm { border-radius: 3px; }
  .client-hero { padding: 18px; }
  .client-hero .hero-stats { gap: 18px; }
  .note-box { flex-direction: column; align-items: stretch; }
  .tl-month { padding-left: 46px; }
}

/* ========================================================== add-on modules */
.funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.fn-step { color: inherit; text-decoration: none; padding: 6px 8px; border-radius: 12px; }
.fn-step:hover { background: var(--hover); text-decoration: none; }
.fn-step.on { background: var(--brand-soft); }
.fn-n { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.fn-l { font-size: 12.5px; color: var(--muted); font-weight: 560; }
.stagebar { display: flex; gap: 4px; }
.stagebar .sb { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--border-strong); background: var(--surface-solid); font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; transition: 0.15s var(--ease); }
.stagebar .sb .ico { width: 13px; height: 13px; }
.stagebar .sb.on { background: var(--good); border-color: var(--good); color: #fff; }
.stagebar .sb.next { border-color: var(--brand); color: var(--brand-ink); }
.stagebar .sb:hover { transform: translateY(-1px); border-color: var(--brand); }
table.grid-t th.c, table.grid-t td.c { text-align: center; padding-left: 6px; padding-right: 6px; }
table.grid-t th .vh { display: inline-block; max-width: 92px; white-space: normal; line-height: 1.25; text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.cell-tick { width: 30px; height: 30px; border-radius: 9px; border: 1.5px dashed var(--border-strong); background: transparent; cursor: pointer; display: inline-grid; place-items: center; color: #fff; transition: 0.15s var(--ease); }
.cell-tick:hover { border-color: var(--good); border-style: solid; }
.cell-tick.on { background: var(--good); border: 1.5px solid var(--good); }
.cell-tick .ico { width: 15px; height: 15px; }
.report { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-solid); }
.rp-sec { margin-top: 10px; }
.rp-sec p { white-space: pre-wrap; font-size: 14px; margin-top: 2px; }
.pick-list { max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; }
.doc-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
select.sugg { border-style: dashed; border-color: var(--gold); }
.fs-doc .fs-head { padding: 22px 24px 8px; text-align: center; }
table.fs-t td.c, table.fs-t th.c { text-align: center; }
table.fs-t tr.fs-sec td { font-weight: 650; font-size: 13px; padding-top: 16px; color: var(--ink-2); background: transparent; }
table.fs-t tr.fs-sec.big td { font-size: 12px; letter-spacing: 0.12em; color: var(--gold-ink); }
table.fs-t tr.fs-tot td { font-weight: 700; border-top: 1px solid var(--border-strong); }
.ver-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -8px 0 16px; }
@media (max-width: 960px) { .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stagebar .sb { width: 30px; height: 30px; } }

/* Devanagari breaks apart with letter-spacing or forced capitals */
html[lang='hi'] body, html[lang='hi'] body * { letter-spacing: 0 !important; }
html[lang='hi'] .eyebrow, html[lang='hi'] .pr-lbl, html[lang='hi'] .brand-tag, html[lang='hi'] table.t th, html[lang='hi'] .group-head, html[lang='hi'] .cmdk .grp, html[lang='hi'] .side-section { text-transform: none; }

.weekbars { line-height: 0; }
.weekbars g { cursor: default; }

/* ---- design review round 1 */
.count[hidden], [hidden] { display: none !important; }
@media (max-width: 640px) {
  .alert { padding: 11px 14px; gap: 10px; font-size: 13.5px; }
  .alert .grow { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero .actions { display: none; }
  .topbar .new-btn { width: 34px; padding: 0; }
  .frow .pill { display: none; }
  .frow .cell-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .frow > .nowrap { min-width: 0 !important; }
  .frow .check { display: none; }
  .li { gap: 10px; }
  .page-head .actions .btn span { white-space: nowrap; }
}

/* Final FS vs Tally review */
.seg.seg-sm { padding: 2px; border-radius: 10px; }
.seg.seg-sm button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.fr-points { margin: 8px 0 14px; padding: 0 22px 0 46px; display: grid; gap: 10px; }
.fr-points li { line-height: 1.55; font-size: 14px; }
.fr-points li::marker { font-weight: 700; color: var(--brand); }

/* T-format accounts: two sides next to each other, stacked on phones */
.t-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border); }
.t-acc .t-side { min-width: 0; overflow-x: auto; }
.t-acc .t-total td { border-top: 2px solid var(--border-strong, var(--border)); }
@media (max-width: 760px) { .t-acc .t-pad { display: none; } }
.t-acc .t-side + .t-side { border-left: 1px solid var(--border); }
.t-acc-title { font-size: 15px; margin: 18px 22px 8px; }
@media (max-width: 760px) { .t-acc { grid-template-columns: 1fr; } .t-acc .t-side + .t-side { border-left: 0; border-top: 1px solid var(--border); } }
