/* Hearth app. Quiet operations UI: warm grey canvas, white panels nested in grey trays, mono captions. */
:root {
  --canvas: #f1f0ec;
  --tray: #f4f3ef;
  --card: #fff;
  --soft: #faf9f7;
  --line: #e8e6e1;
  --line-2: #efede9;
  --ink: #191816;
  --ink-2: #3b3935;
  --mute: #75726b;
  --mute-2: #9b988f;
  --black: #171614;
  --banner: #151513;
  --sq-cov: #1d1c1a;
  --sq-done: #bdb8b2;
  --sq-empty: #efeeea;
  --red: #d63f2a;
  --red-bg: #fbe9e6;
  --red-ink: #b3321f;
  --amber: #cf870f;
  --amber-bg: #f9efd8;
  --amber-ink: #85570a;
  --green: #1d9a55;
  --green-bg: #e3f3e9;
  --green-ink: #1c6a3f;
  --chip: #eceae5;
  --route: #856428;
  --shadow: 0 0 0 1px rgba(30, 27, 22, .07), 0 1px 2px rgba(30, 27, 22, .05);
  --shadow-pop: 0 0 0 1px rgba(30, 27, 22, .08), 0 12px 32px -8px rgba(30, 27, 22, .18), 0 2px 6px rgba(30, 27, 22, .06);
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --side: 224px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 13px/1.45 var(--sans); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv05' 1;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid #3a6df0; outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); height: 100vh; height: 100dvh; }
.side { display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 10px 12px; min-height: 0; overflow: hidden auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.ws { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 9px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); text-align: left; transition: box-shadow .15s; }
.ws:hover { box-shadow: 0 0 0 1px rgba(30, 27, 22, .13), 0 1px 2px rgba(30, 27, 22, .06); }
.mark { width: 28px; height: 28px; border-radius: 7px; background: var(--black); display: grid; place-items: center; flex: none; }
.mark svg { width: 26px; height: 26px; fill: #fff; }
.ws-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.ws-t b { font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; }
.ws-t span { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-sw { color: var(--mute); width: 15px; height: 15px; }
.side-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 10px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); color: var(--mute); }
.side-search span { flex: 1; text-align: left; }
kbd { font: 500 10.5px/1 var(--mono); color: var(--mute); padding: 4px 5px; border-radius: 5px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.nav { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }
.nav-h, .nav-h p { font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); margin: 14px 0 6px 8px; }
.nav-h-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px 8px; }
.nav-h-row p { margin: 0; }
.mini-btn { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--mute); }
.mini-btn:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.nav a, .foot-link { position: relative; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; transition: background .12s; }
.nav a .i, .foot-link .i { color: #55524c; width: 17px; height: 17px; }
.nav a:hover, .foot-link:hover { background: rgba(30, 27, 22, .045); }
.nav a.on, .foot-link.on { background: #fff; box-shadow: var(--shadow); color: var(--ink); font-weight: 500; }
.nav a.on .i, .foot-link.on .i { color: var(--ink); }
.nav-badge { margin-left: auto; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 5px; background: var(--red); color: #fff; font: 600 11px/17px var(--sans); text-align: center; font-style: normal; }
.nav-badge[data-n="0"] { display: none; }
.areas { display: flex; flex-direction: column; gap: 1px; }
.area { display: flex; align-items: center; gap: 10px; height: 27px; padding: 0 8px; border-radius: 7px; font-size: 13px; color: var(--ink-2); width: 100%; text-align: left; }
.area:hover { background: rgba(30, 27, 22, .045); }
.area i { width: 8px; height: 8px; border-radius: 2px; background: #c9c5be; margin: 0 4px; flex: none; }
.area.on { background: #fff; box-shadow: var(--shadow); }
.area.on i { background: var(--ink); }
.area em { margin-left: auto; font: 400 11.5px/1 var(--mono); color: var(--mute); font-style: normal; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1px; padding-top: 12px; }
.me { margin-top: 8px; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 9px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); text-align: left; }
.me img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.me-t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.me-t b { font-weight: 600; font-size: 13px; }
.me-t span { font-size: 12px; color: var(--mute); }
.ariadne { position: static; display: table; margin: 10px auto 0; font: 500 12.5px/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: rgba(20, 22, 26, .88); color: #fff; letter-spacing: .01em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); opacity: .92; white-space: nowrap; }
.ariadne b { font-weight: 600; color: #ff8a3d; }

.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; margin: 8px 8px 8px 0; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(30, 27, 22, .07), 0 1px 3px rgba(30, 27, 22, .04); overflow: hidden; }
.top { flex: none; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 14px; border-bottom: 1px solid var(--line); }
.top-div { width: 1px; height: 18px; background: var(--line); }
.top .menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { width: 12px; height: 12px; color: var(--mute-2); }
.crumbs b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.clock { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--tray); font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mute-2); flex: none; }
.dot.g { background: var(--green); } .dot.r { background: var(--red); } .dot.a { background: var(--amber); } .dot.k { background: var(--ink); }
.icon-btn { position: relative; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #fff; box-shadow: var(--shadow); color: var(--ink-2); flex: none; }
.icon-btn:hover { box-shadow: 0 0 0 1px rgba(30, 27, 22, .14), 0 1px 2px rgba(30, 27, 22, .06); color: var(--ink); }
.icon-btn.ghost { box-shadow: none; background: none; color: var(--mute); }
.icon-btn.ghost:hover { background: rgba(30, 27, 22, .05); color: var(--ink); }
.icon-btn .i { width: 17px; height: 17px; }
.ping { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.ping.red { background: var(--red); }
.ping[hidden] { display: none; }

.view { flex: 1; min-height: 0; overflow: auto; padding: 22px 24px 40px; outline: none; scroll-behavior: smooth; }
.view > * { max-width: 1480px; margin-inline: auto; }

/* ---------- page header ---------- */
.ph { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.ph-l { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1; }
.ph h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.018em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ph p { margin: 4px 0 0; color: var(--mute); font-size: 13px; }
.ph-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ph-photo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.ph-photo.round { border-radius: 50%; }
.ok-tile { width: 44px; height: 44px; border-radius: 9px; background: var(--green-bg); color: var(--green-ink); display: grid; place-items: center; flex: none; }
.ok-tile .i { width: 22px; height: 22px; stroke-width: 1.5; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); font-weight: 500; font-size: 13px; white-space: nowrap; color: var(--ink); transition: box-shadow .15s, background .15s, transform .1s; }
.btn:hover { box-shadow: 0 0 0 1px rgba(30, 27, 22, .15), 0 1px 2px rgba(30, 27, 22, .07); }
.btn:active { transform: translateY(.5px); }
.btn .i { width: 15px; height: 15px; }
.btn-dark { background: var(--black); color: #fff; box-shadow: 0 0 0 1px var(--black), 0 1px 2px rgba(0, 0, 0, .2); }
.btn-dark:hover { background: #2a2825; box-shadow: 0 0 0 1px #2a2825, 0 1px 2px rgba(0, 0, 0, .2); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-ghost { background: none; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(30, 27, 22, .05); box-shadow: none; }
.btn-danger { color: var(--red-ink); }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.link .i { width: 14px; height: 14px; transition: transform .15s; }
.link:hover .i { transform: translateX(2px); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 500; letter-spacing: 0; white-space: nowrap; color: var(--ink); }
.pill .dot { width: 6px; height: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--chip); color: var(--ink-2); }
.tag .dot { width: 6px; height: 6px; }
.tag.r { background: var(--red-bg); color: var(--red-ink); } .tag.r .dot { background: var(--red); }
.tag.a { background: var(--amber-bg); color: var(--amber-ink); } .tag.a .dot { background: var(--amber); }
.tag.g { background: var(--green-bg); color: var(--green-ink); } .tag.g .dot { background: var(--green); }
.tag.k { background: var(--black); color: #fff; }
.tag.m { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--chip); font-size: 12.5px; color: var(--ink-2); }
.cap { font: 500 10.5px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.count-b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--red); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: 0; }

/* ---------- trays & cards ---------- */
.tray { background: var(--tray); border-radius: 13px; padding: 0 4px 4px; min-width: 0; display: flex; flex-direction: column; }
.tray-h { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.tray-h .i { width: 15px; height: 15px; color: var(--mute); }
.tray-h .r { margin-left: auto; display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 12.5px; }
.tray-h .r .link { font-size: 13px; color: var(--ink); }
.card { background: var(--card); border-radius: 10px; box-shadow: var(--shadow); min-width: 0; }
.tray > .card { flex: 1; }
.tray-f { display: flex; align-items: center; gap: 10px; padding: 10px 10px 6px; color: var(--mute); font-size: 12.5px; }
.tray-f .cap { color: var(--mute); }
.tray-f .r { margin-left: auto; }
.pad { padding: 14px 16px; }
.grid { display: grid; gap: 14px; }
.legend { display: flex; align-items: center; gap: 14px; font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* avatars */
.av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: var(--chip); }
.av-sm { width: 22px; height: 22px; }
.av-xs { width: 18px; height: 18px; }
.av-lg { width: 40px; height: 40px; }
.av-sq { border-radius: 7px; }
.av-i { display: inline-grid; place-items: center; font: 600 11px/1 var(--sans); color: var(--ink-2); background: var(--chip); }
.av-sq.av-i { background: #e7e4dd; }
.stack { display: flex; }
.stack .av { box-shadow: 0 0 0 2px #fff; }
.stack .av + .av { margin-left: -7px; }

/* rows inside cards */
.rows > * + * { border-top: 1px solid var(--line-2); }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-width: 0; }
.row.click { cursor: pointer; transition: background .12s; }
.row.click:hover { background: var(--soft); }
.row .t { min-width: 0; flex: 1; line-height: 1.3; }
.row .t b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t span { display: block; color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.tile { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--chip); color: var(--ink-2); }
.tile .i { width: 17px; height: 17px; }
.tile.a { background: var(--amber-bg); color: var(--amber); }
.tile.r { background: var(--red-bg); color: var(--red); }
.tile.g { background: var(--green-bg); color: var(--green-ink); }
.tile.k { background: var(--black); color: #fff; }
.tile-sm { width: 26px; height: 26px; border-radius: 6px; }
.tile-sm .i { width: 14px; height: 14px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 13px; }
.kv + .kv { border-top: 1px solid var(--line-2); }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }

/* progress squares */
.psq { display: inline-flex; gap: 2px; }
.psq i { width: 6px; height: 6px; border-radius: 1.5px; background: #e4e1db; }
.psq i.on { background: var(--sq-cov); }
.psq.big i { width: 8px; height: 8px; border-radius: 2px; }

/* ---------- KPI cards ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { cursor: pointer; }
.kpi .card { padding: 13px 15px 14px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 10px; transition: box-shadow .15s; }
.kpi:hover .card { box-shadow: 0 0 0 1px rgba(30, 27, 22, .13), 0 2px 6px rgba(30, 27, 22, .06); }
.kpi .cap { grid-column: 1 / -1; }
.kpi .big { display: flex; align-items: baseline; gap: 8px; font-size: 23px; font-weight: 500; letter-spacing: -.02em; line-height: 1; margin-top: 8px; }
.kpi .big small { font-size: 13px; font-weight: 400; color: var(--mute); letter-spacing: 0; }
.kpi .tray-f { padding: 9px 10px 5px; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 30px; }
.spark i { width: 2px; border-radius: 1px; background: #c3bfb8; transform-origin: bottom; }
.spark i:last-child { background: var(--ink); width: 2.5px; }

/* ---------- call-out banner ---------- */
.banner { position: relative; overflow: hidden; background: var(--banner); color: #fff; border-radius: 13px; padding: 22px 22px 22px 24px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 14px; isolation: isolate; }
.banner::before, .banner::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .055); z-index: -1; }
.banner::before { width: 520px; height: 520px; right: -60px; top: -40px; }
.banner::after { width: 420px; height: 420px; right: -160px; top: 60px; background: rgba(255, 255, 255, .04); }
.b-tag { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: #eceae6; }
.b-tag .i { width: 14px; height: 14px; }
.banner h2 { margin: 14px 0 8px; font-size: 21px; line-height: 1.32; font-weight: 500; letter-spacing: -.015em; }
.banner p { margin: 0 0 16px; color: #aeaba5; font-size: 13px; max-width: 520px; }
.b-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-w { background: #fff; color: var(--ink); box-shadow: none; }
.btn-w:hover { background: #f1f0ec; box-shadow: none; }
.btn-dk { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.btn-dk:hover { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.b-list .cap { color: #a9a6a0; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.b-list .cap .i { width: 14px; height: 14px; }
.b-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 14px minmax(0, 1fr) 36px; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; margin-top: 7px; border-radius: 8px; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); text-align: left; font-size: 13px; transition: background .15s; }
.b-row:hover { background: rgba(255, 255, 255, .14); }
.b-row .mono { color: #c9c6c0; font-size: 12px; }
.b-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-row .i { width: 14px; height: 14px; color: #8f8c86; }
.b-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.b-row .who img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.b-row .pct { font: 500 12px/1 var(--mono); color: #c9c6c0; text-align: right; }
.b-row.ok .pct { color: #7fd3a2; }
.banner.done { background: #fff; color: var(--ink); box-shadow: var(--shadow); grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; padding: 16px 18px; }
.banner.done::before, .banner.done::after { display: none; }
.banner.done h2 { margin: 0; font-size: 17px; }
.banner.done p { margin: 3px 0 0; color: var(--mute); }

/* ---------- coverage grid ---------- */
.cov-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 14px; align-items: start; }
.cov-side { display: grid; gap: 14px; }
.cov-top { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px 0; }
.cov-top .n { font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.cov-top .r { margin-left: auto; color: var(--mute); font-size: 12.5px; }
.cov { --c: 18px; --g: 4px; position: relative; padding: 36px 18px 14px; }
.cov-plot { position: relative; padding-left: 26px; }
.cov-grid { display: flex; justify-content: space-between; align-items: flex-end; }
.cov-col { position: relative; display: flex; flex-direction: column-reverse; gap: var(--g); border-radius: 4px; outline: none; cursor: pointer; }
.cov-col::after { content: ''; position: absolute; inset: -3px; border-radius: 6px; box-shadow: 0 0 0 1.5px var(--ink); opacity: 0; transition: opacity .12s; pointer-events: none; }
.cov-col:hover::after, .cov-col:focus-visible::after { opacity: 1; }
.sq { display: block; width: var(--c); height: var(--c); border-radius: 3px; background: var(--sq-empty); }
.sq.cov1 { background: var(--sq-cov); }
.sq.done { background: var(--sq-done); }
.sq.red { background: var(--red); }
.sq.amb { background: var(--amber); }
.cov-y { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; font: 400 11px/1 var(--mono); color: var(--mute); pointer-events: none; }
.cov-y span { position: absolute; right: 0; bottom: calc((var(--n) - .5) * (var(--c) + var(--g))); transform: translateY(50%); }
.cov-x { display: flex; justify-content: space-between; margin-top: 10px; padding-left: 26px; font: 400 11px/1 var(--mono); color: var(--mute); }
.cov-x span { width: var(--c); white-space: nowrap; display: flex; justify-content: center; }
.cov-now { position: absolute; top: -28px; bottom: 0; width: 0; border-left: 1.5px solid var(--ink); pointer-events: none; z-index: 2; }
.cov-now b { position: absolute; top: 0; left: -1px; transform: translateX(-50%); background: var(--black); color: #fff; font: 500 10.5px/1 var(--mono); letter-spacing: .05em; padding: 5px 7px; border-radius: 5px; white-space: nowrap; }
.cov-tip { position: absolute; z-index: 5; width: 226px; background: #fff; border-radius: 9px; box-shadow: var(--shadow-pop); padding: 11px 13px; font-size: 12.5px; pointer-events: none; }
.cov-tip .cap { color: var(--ink-2); font-size: 11px; margin-bottom: 8px; display: block; }
.cov-tip div { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.cov-tip i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.cov-tip em { font-style: normal; margin-left: auto; font-family: var(--mono); padding-left: 14px; }
.cov-tip .who { font-family: var(--mono); font-size: 11px; color: var(--ink); padding-left: 16px; display: block; line-height: 1.4; }
.cov.small { --c: 11px; --g: 3px; padding: 4px 0 0; }
.cov.small .cov-plot, .cov.small .cov-x { padding-left: 0; }
.cov.small .cov-col { cursor: default; }
.cov.small .cov-col::after { display: none; }
.wbar { transform-origin: bottom; }

/* ---------- live visit rows ---------- */
.lv-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; width: 100%; text-align: left; }
.lv-row .t b { font-weight: 500; }
.lv-end { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.lv-end .cap { color: var(--ink-2); font-size: 11px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .field > span { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.input, .select, textarea.input { width: 100%; height: 34px; padding: 0 10px; border-radius: 8px; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 13px; outline: none; transition: box-shadow .15s; }
textarea.input { height: auto; min-height: 92px; padding: 9px 10px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px rgba(23, 22, 20, .08); }
.select { appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375726b' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center / 15px; cursor: pointer; }
.search { position: relative; }
.search .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--mute); width: 15px; height: 15px; }
.search .input { padding-left: 32px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--tray); box-shadow: inset 0 0 0 1px rgba(30, 27, 22, .04); }
.seg button { height: 26px; padding: 0 10px; border-radius: 7px; color: var(--mute); font-size: 13px; white-space: nowrap; transition: color .12s, background .12s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); font-weight: 500; }
.toggle { position: relative; width: 32px; height: 19px; border-radius: 999px; background: #d7d4ce; flex: none; transition: background .18s; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .18s var(--ease); }
.toggle[aria-checked="true"] { background: var(--ink); }
.toggle[aria-checked="true"]::after { transform: translateX(13px); }
.check { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #c9c5be; display: inline-grid; place-items: center; flex: none; background: #fff; }
.check[aria-checked="true"] { background: var(--ink); box-shadow: none; }
.check[aria-checked="true"]::after { content: ''; width: 8px; height: 5px; border: solid #fff; border-width: 0 0 1.6px 1.6px; transform: translateY(-1px) rotate(-45deg); }
input[type=range] { width: 100%; accent-color: var(--ink); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 1; }
.tbl th button { display: inline-flex; align-items: center; gap: 4px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.tbl th button:hover { color: var(--ink); }
.tbl th .i { width: 12px; height: 12px; }
.tbl th.sorted { color: var(--ink); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--soft); }
.tbl .who { display: flex; align-items: center; gap: 10px; }
.tbl .who b { font-weight: 500; display: block; }
.tbl .who span { color: var(--mute); font-size: 12px; }
.tbl .r { text-align: right; }
.bar { position: relative; height: 6px; width: 90px; border-radius: 3px; background: #ebe8e2; overflow: hidden; display: inline-block; vertical-align: middle; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 3px; transform-origin: left; }
.bar.warn i { background: var(--amber); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; }
.toolbar .search { width: 240px; }
.toolbar .sp { flex: 1; }
.empty { padding: 48px 20px; text-align: center; color: var(--mute); display: grid; justify-items: center; gap: 8px; }
.empty b { color: var(--ink); font-weight: 500; font-size: 14px; }
.empty .tile { width: 40px; height: 40px; margin-bottom: 4px; }

/* ---------- live visits page ---------- */
.lv { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; align-items: start; }
.lv-list .card { padding: 4px 0 6px; }
.lv-group { padding: 12px 14px 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.lv-item { display: flex; align-items: center; gap: 11px; width: calc(100% - 8px); margin: 2px 4px; padding: 9px 10px; border-radius: 9px; text-align: left; transition: background .12s; }
.lv-item:hover { background: var(--soft); }
.lv-item.on { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lv-item .t { flex: 1; min-width: 0; line-height: 1.3; }
.lv-item .t b { display: block; font-weight: 500; font-size: 13.5px; }
.lv-item .t span { display: block; color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-more { display: flex; align-items: center; gap: 6px; padding: 10px 14px 6px; font-weight: 500; font-size: 13px; }
.lv-more .i { width: 14px; height: 14px; transition: transform .2s; }
.lv-more[aria-expanded="true"] .i { transform: rotate(180deg); }
.lv-right { display: grid; gap: 14px; }
.risk-people { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .t { line-height: 1.3; min-width: 0; }
.person .t b { display: block; font-weight: 500; font-size: 13.5px; }
.person .t span { display: block; color: var(--mute); font-size: 12.5px; }
.risk-text { margin: 12px 0 2px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); max-width: 760px; }
.tl { position: relative; height: 62px; margin: 6px 0 4px; }
.tl-track { position: absolute; left: 0; right: 0; top: 28px; height: 6px; border-radius: 3px; background: #ece9e4; }
.tl-fill { position: absolute; left: 0; top: 28px; height: 6px; border-radius: 3px 0 0 3px; background: #c4bfb8; transform-origin: left; }
.tl-late { position: absolute; top: 28px; height: 6px; background: var(--amber); transform-origin: left; }
.tl-mark { position: absolute; top: 0; transform: translateX(-50%); font: 500 11px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tl-mark::after { content: ''; width: 1.5px; height: 12px; background: currentColor; margin-top: 2px; }
.tl-mark.below { top: 30px; flex-direction: column-reverse; }
.tl-mark.below::after { margin: 0 0 2px; }
.tl-mark.a { color: var(--amber-ink); }
.tl-mark.l { transform: translateX(calc(-100% + 1px)); align-items: flex-end; }
.tl-mark.r { transform: translateX(-1px); align-items: flex-start; }
.map-box { position: relative; height: 230px; border-radius: 9px; overflow: hidden; background: #efeeea; }
.map-box > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.map-pin img, .map-pin .av-i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(0, 0, 0, .18); }
.map-lbl { position: absolute; transform: translate(-50%, 0); background: #fff; box-shadow: var(--shadow); border-radius: 6px; padding: 5px 7px; font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.map-lbl.k { background: var(--black); color: #fff; box-shadow: none; display: inline-flex; align-items: center; gap: 6px; }
.map-lbl.k .i { width: 13px; height: 13px; }
.map-lbl.end { transform: translate(calc(-100% + 22px), 0); }
.map-lbl.start { transform: translate(-22px, 0); }
.map-home { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--black); box-shadow: 0 0 0 3px #fff; transform: translate(-50%, -50%); }
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dcard { background: #fff; border-radius: 11px; box-shadow: var(--shadow); padding: 15px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 236px; }
.dcard.pick { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dcard h3 { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dcard h3 .tag { margin-left: auto; }
.dcard p { margin: 0; color: var(--mute); font-size: 13px; line-height: 1.5; }
.dcard .acts { margin-top: auto; display: flex; gap: 8px; }
.dcard .acts .btn { flex: 1; }
.ck { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.ck li { display: flex; align-items: flex-start; gap: 8px; }
.ck .i { width: 15px; height: 15px; margin-top: 1px; color: var(--green); }
.ck li.w { color: var(--amber-ink); }
.ck li.w .i { color: var(--amber); }
.ck li.x { color: var(--mute); }
.ck li.x .i { color: var(--mute-2); }
.score { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); }
.person .t .psq, .row .t .psq { display: inline-flex; }
.person .t .score { display: flex; margin-top: 3px; }

/* ---------- call-out review ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.co-visit { padding: 16px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
.co-visit + .co-visit { border-top: 1px solid var(--line-2); }
.co-when { font: 500 13px/1 var(--mono); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.co-client { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.co-client img { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; }
.co-client .t b { display: block; font-weight: 500; font-size: 14px; }
.co-client .t span { color: var(--mute); font-size: 12.5px; }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); text-align: left; width: 100%; transition: box-shadow .15s; }
.opt:hover { box-shadow: 0 0 0 1px rgba(30, 27, 22, .16), 0 1px 3px rgba(30, 27, 22, .06); }
.opt.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt .radio { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c9c5be; margin-top: 7px; }
.opt.on .radio { box-shadow: inset 0 0 0 5px var(--ink); }
.opt-h { display: flex; align-items: center; gap: 10px; }
.opt-h b { font-weight: 500; font-size: 13.5px; }
.opt-h span { color: var(--mute); font-size: 12.5px; }
.opt .ck { grid-column: 2 / 4; margin-top: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 14px; font-size: 12.5px; }
.opt-more { font-size: 12.5px; color: var(--mute); font-weight: 500; padding: 2px 2px; display: inline-flex; align-items: center; gap: 4px; }
.opt-more:hover { color: var(--ink); }
.steps { counter-reset: s; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; }
.step + .step { border-top: 1px solid var(--line-2); }
.step .t b { display: block; font-weight: 500; }
.step .t span { color: var(--mute); font-size: 12.5px; }
.step .toggle { margin-left: auto; margin-top: 2px; }

/* ---------- rebuilt ---------- */
.rb { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: stretch; }
.rb-main { display: grid; gap: 14px; align-content: start; }
.re-row { display: grid; grid-template-columns: 80px minmax(0, 1.3fr) 70px 18px minmax(0, 1fr) 168px; align-items: center; gap: 12px; padding: 13px 16px; }
.re-row + .re-row { border-top: 1px solid var(--line-2); }
.re-row .mono { font-size: 13px; font-weight: 500; }
.re-row .from { color: var(--mute-2); text-decoration: line-through; font-size: 13px; }
.re-row .i.chev { width: 14px; height: 14px; color: var(--mute-2); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 16px 18px 18px; }
.ba .cap { display: block; margin-bottom: 12px; color: var(--ink-2); }
.sees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px; }
.see { background: var(--soft); border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); padding: 12px 13px; display: flex; flex-direction: column; gap: 10px; min-height: 178px; }
.see .h { display: flex; align-items: center; gap: 8px; }
.see p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); }
.see .f { margin-top: auto; color: var(--mute); font-size: 12px; }
.auto-list .row { padding: 13px 16px; align-items: flex-start; }
.auto-list .row .end { flex-direction: column; align-items: flex-end; gap: 6px; }
.auto-list .okc { color: var(--green-ink); width: 18px; height: 18px; }
.auto-list .pend { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #d8d4cd; border-top-color: var(--ink); animation: spin .8s linear infinite; }
.auto-list .row.wait { opacity: .4; }
@keyframes spin { to { transform: rotate(360deg); } }
.watch { margin: 12px; padding: 12px 13px; border-radius: 9px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); display: flex; gap: 10px; font-size: 13px; }
.watch b { display: block; font-weight: 600; margin-bottom: 2px; }
.watch p { margin: 0; color: var(--ink-2); line-height: 1.5; }

/* ---------- client profile ---------- */
.alert-band { display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; border-radius: 11px; background: var(--amber-bg); margin-bottom: 14px; }
.alert-band .i { color: var(--amber-ink); width: 18px; height: 18px; align-self: flex-start; margin-top: 1px; }
.alert-band b { display: block; color: var(--amber-ink); font-weight: 600; }
.alert-band span { color: var(--ink-2); }
.alert-band .btn { margin-left: auto; }
.cp { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 14px; align-items: start; }
.cp-col { display: grid; gap: 14px; }
.hist { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.hist .d { font: 400 11px/1 var(--mono); color: var(--mute); text-transform: uppercase; }
.hist .r { display: grid; grid-template-columns: repeat(16, minmax(0, 22px)); gap: 4px; }
.hist .r i { aspect-ratio: 1; border-radius: 3px; background: var(--sq-cov); }
.hist .r i.late { background: var(--amber); }
.hist .r i.missed { background: var(--red); }
.hist .m { grid-column: 2; display: grid; grid-template-columns: repeat(16, minmax(0, 22px)); gap: 4px; font: 400 11px/1 var(--mono); color: var(--mute); margin-top: 4px; }
.hist .m span { white-space: nowrap; }
.note-row { display: grid; grid-template-columns: 52px 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; font-size: 13px; }
.note-row + .note-row { border-top: 1px solid var(--line-2); }
.note-row .mono { font-size: 11.5px; color: var(--mute); text-transform: uppercase; }
.good { margin: 12px; padding: 11px 13px; border-radius: 9px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); display: flex; gap: 10px; font-size: 13px; }
.good b { font-weight: 500; display: block; }
.good p { margin: 2px 0 0; color: var(--ink-2); }
.good .i { margin-top: 2px; color: var(--mute); }

/* ---------- schedule ---------- */
.wk { display: grid; grid-template-columns: 220px repeat(7, minmax(116px, 1fr)) 76px; min-width: 1120px; }
.wk > div { border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); padding: 7px; min-height: 52px; }
.wk .wk-h { min-height: 0; white-space: nowrap; padding: 11px 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); position: sticky; top: 0; background: #fff; z-index: 2; border-bottom-color: var(--line); }
.wk .wk-h.today { color: var(--ink); }
.wk .wk-h.today span { background: var(--black); color: #fff; padding: 2px 4px; border-radius: 4px; margin-left: 6px; font-size: 9.5px; }
.wk .first { border-left: 0; display: flex; align-items: center; gap: 10px; position: sticky; left: 0; background: #fff; z-index: 1; }
.wk .first .t { line-height: 1.25; min-width: 0; }
.wk .first b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk .first span { font-size: 12px; color: var(--mute); }
.wk .today-col { background: #fbfaf8; }
.wk .hrs { font: 500 12px/1 var(--mono); display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; }
.wk .hrs .bar { width: 52px; height: 4px; }
.vchip { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; height: 24px; text-align: left; padding: 0 7px; border-radius: 6px; background: #fff; box-shadow: var(--shadow); font-size: 12px; line-height: 1; margin-bottom: 4px; transition: box-shadow .12s; }
.vchip:hover { box-shadow: 0 0 0 1px rgba(30, 27, 22, .2); }
.vchip b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vchip span { font-family: var(--mono); font-size: 10.5px; color: var(--mute); flex: none; }
.vchip.red { background: var(--red-bg); box-shadow: inset 0 0 0 1px rgba(214, 63, 42, .25); }
.vchip.red span { color: var(--red-ink); }
.vchip.amb { background: var(--amber-bg); box-shadow: inset 0 0 0 1px rgba(207, 135, 15, .25); }
.vchip.done { background: var(--soft); box-shadow: none; color: var(--mute); }
.vchip.off { background: repeating-linear-gradient(135deg, #f6f5f2 0 6px, #efede9 6px 12px); box-shadow: none; color: var(--mute); text-decoration: line-through; }
.wk .open-row { background: #fdf8f6; }
.gantt { min-width: 1060px; }
.g-head, .g-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.g-head { position: sticky; top: 0; background: #fff; z-index: 2; border-bottom: 1px solid var(--line); }
.g-hours { position: relative; height: 36px; }
.g-hours span { position: absolute; top: 13px; transform: translateX(-50%); font: 400 11px/1 var(--mono); color: var(--mute); }
.g-row { border-bottom: 1px solid var(--line-2); min-height: 52px; }
.g-row .first { display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 13px; }
.g-row .first b { font-weight: 500; }
.g-track { position: relative; background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.g-block { position: absolute; top: 9px; bottom: 9px; border-radius: 6px; background: var(--sq-cov); color: #fff; font-size: 11.5px; padding: 0 7px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-align: left; }
.g-block.done { background: var(--sq-done); color: #fff; }
.g-block.red { background: var(--red); }
.g-block.amb { background: var(--amber); }
.g-block.off { background: repeating-linear-gradient(135deg, #f1d6d0 0 6px, #f8e6e2 6px 12px); color: var(--red-ink); text-decoration: line-through; }
.g-now { position: absolute; top: 0; bottom: 0; border-left: 1.5px solid var(--red); z-index: 1; pointer-events: none; }

/* ---------- reports ---------- */
.rep-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.rep-kpis .card { padding: 14px 15px; }
.rep-kpis .big { font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin: 10px 0 2px; display: flex; align-items: baseline; gap: 6px; }
.rep-kpis .big small { font-size: 12.5px; color: var(--mute); font-weight: 400; letter-spacing: 0; }
.delta { font-size: 12px; color: var(--green-ink); }
.delta.bad { color: var(--red-ink); }
.chart { width: 100%; height: 220px; display: block; overflow: visible; }
.chart text { font: 400 12.5px var(--mono); fill: var(--mute); }
.chart .gl { stroke: var(--line-2); stroke-width: 1; }
.chart .ln { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.chart .bar-r { fill: var(--sq-cov); }
.chart .bar-r.m { fill: #c7c2bb; }
.heat { display: grid; grid-template-rows: repeat(7, 18px); grid-auto-flow: column; grid-auto-columns: 18px; gap: 5px; }
.heat-wrap { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.heat-days { display: grid; grid-template-rows: repeat(7, 18px); gap: 5px; font: 400 10.5px/18px var(--mono); color: var(--mute); text-transform: uppercase; }
.heat-box { display: flex; gap: 8px; }
.heat-stats { display: grid; gap: 0; align-content: start; }
@media (max-width: 760px) { .heat-wrap { grid-template-columns: minmax(0, 1fr); } }
.heat i { border-radius: 3px; background: var(--sq-empty); }
.heat i.l1 { background: var(--sq-done); }
.heat i.l2 { background: var(--sq-cov); }

/* ---------- settings ---------- */
.set { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { display: grid; gap: 2px; position: sticky; top: 0; }
.set-nav button { text-align: left; height: 32px; padding: 0 10px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; }
.set-nav button:hover { background: var(--soft); }
.set-nav button.on { background: var(--tray); color: var(--ink); font-weight: 500; }
.set-sec { max-width: 760px; display: grid; gap: 14px; }
.set-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.set-row + .set-row { border-top: 1px solid var(--line-2); }
.set-row .t { flex: 1; min-width: 0; }
.set-row .t b { display: block; font-weight: 500; }
.set-row .t span { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.set-row .ctl { flex: none; min-width: 0; }
.set-row .ctl.w { width: 240px; }

/* ---------- overlays ---------- */
#layer { position: relative; z-index: 85; }
.pop { position: fixed; z-index: 70; min-width: 220px; max-width: calc(100vw - 16px); background: #fff; border-radius: 11px; box-shadow: var(--shadow-pop); padding: 6px; animation: pop .14s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.985); } }
.pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; font-size: 13px; text-align: left; color: var(--ink-2); }
.pop .mi:hover, .pop .mi.on { background: var(--tray); color: var(--ink); }
.pop .mi .i { color: var(--mute); }
.pop .mi kbd { margin-left: auto; }
.pop .mi .t { flex: 1; min-width: 0; line-height: 1.3; }
.pop .mi .t b { display: block; font-weight: 500; color: var(--ink); }
.pop .mi .t span { display: block; font-size: 12px; color: var(--mute); }
.pop hr { border: 0; border-top: 1px solid var(--line-2); margin: 5px -6px; }
.pop .ph2 { padding: 8px 10px 6px; display: flex; align-items: center; justify-content: space-between; }
.pop-wide { width: 380px; }
.n-item { display: flex; gap: 11px; padding: 10px; border-radius: 8px; width: 100%; text-align: left; }
.n-item:hover { background: var(--tray); }
.n-item .t { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; }
.n-item .t b { font-weight: 500; }
.n-item .t span { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; }
.n-item.unread .t b::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: middle; }
.scrim-o { position: fixed; inset: 0; background: rgba(24, 22, 18, .28); z-index: 61; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: fixed; z-index: 62; left: 50%; top: 12vh; transform: translateX(-50%); width: min(520px, calc(100vw - 24px)); max-height: 80vh; display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: var(--shadow-pop); animation: modal .2s var(--ease); }
@keyframes modal { from { opacity: 0; transform: translate(-50%, 8px) scale(.985); } }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.modal-h h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.modal-h .icon-btn { margin-left: auto; }
.modal-b { padding: 8px 18px 4px; overflow: auto; display: grid; gap: 14px; }
.modal-b > p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.modal-f { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 18px; }
.modal-f .l { margin-right: auto; color: var(--mute); font-size: 12.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drawer { position: fixed; z-index: 62; top: 8px; right: 8px; bottom: 8px; width: min(440px, calc(100vw - 16px)); background: #fff; border-radius: 14px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: drawer .24s var(--ease); }
@keyframes drawer { from { transform: translateX(24px); opacity: 0; } }
.drawer-h { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { margin: 0; font-size: 16px; font-weight: 600; }
.drawer-h p { margin: 2px 0 0; color: var(--mute); font-size: 12.5px; }
.drawer-h .icon-btn { margin-left: auto; }
.drawer-b { flex: 1; overflow: auto; padding: 14px 16px; display: grid; gap: 16px; align-content: start; }
.drawer-f { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.drawer-f .btn { flex: 1; }
.sec .cap { display: block; margin-bottom: 8px; }
.palette { position: fixed; z-index: 62; left: 50%; top: 14vh; transform: translateX(-50%); width: min(600px, calc(100vw - 24px)); background: #fff; border-radius: 14px; box-shadow: var(--shadow-pop); overflow: hidden; animation: modal .18s var(--ease); }
.palette .pin { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette .pin .i { color: var(--mute); }
.palette input { flex: 1; height: 52px; border: 0; outline: none; font-size: 15px; background: none; }
.palette .list { max-height: 380px; overflow: auto; padding: 6px; }
.palette .grp { padding: 10px 10px 4px; }
.palette .mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 13.5px; color: var(--ink-2); }
.palette .mi.on, .palette .mi:hover { background: var(--tray); color: var(--ink); }
.palette .mi .i { color: var(--mute); }
.palette .mi .t { flex: 1; min-width: 0; line-height: 1.3; }
.palette .mi .t b { display: block; font-weight: 500; color: var(--ink); }
.palette .mi .t span { display: block; font-size: 12px; color: var(--mute); }
.palette .mi kbd { margin-left: auto; }
.palette .foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; }
.palette .foot span { display: inline-flex; align-items: center; gap: 6px; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--black); color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.toasts { position: fixed; z-index: 95; right: 16px; bottom: 16px; display: grid; gap: 8px; justify-items: end; }
.toast { display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: min(460px, calc(100vw - 32px)); padding: 11px 12px 11px 14px; border-radius: 11px; background: var(--black); color: #fff; font-size: 13px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4); animation: toast .24s var(--ease); }
.toast .i { color: #7fd3a2; }
.toast span { flex: 1; line-height: 1.4; }
.toast button { font-weight: 600; color: #fff; padding: 5px 9px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.toast button:hover { background: rgba(255, 255, 255, .2); }
@keyframes toast { from { opacity: 0; transform: translateY(8px); } }
.toast.out { opacity: 0; transform: translateY(6px); transition: .2s; }

/* call modal */
.calling { display: grid; justify-items: center; gap: 10px; padding: 18px 0 6px; text-align: center; }
.calling img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.calling b { font-size: 16px; font-weight: 600; }
.calling .mono { color: var(--mute); }
.pulse-dots { display: inline-flex; gap: 4px; }
.pulse-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--mute-2); animation: pd 1.2s infinite; }
.pulse-dots i:nth-child(2) { animation-delay: .2s; } .pulse-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pd { 50% { background: var(--ink); } }
.sms { align-self: start; max-width: 85%; background: var(--tray); padding: 9px 12px; border-radius: 12px 12px 12px 4px; font-size: 13px; line-height: 1.45; }
.sms.me { justify-self: end; background: var(--black); color: #fff; border-radius: 12px 12px 4px 12px; }
.sms-thread { display: grid; gap: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .cov-wrap { grid-template-columns: minmax(0, 1fr) 370px; }
  .cov { --c: 15px; --g: 3.5px; }
}
@media (max-width: 1180px) {
  :root { --side: 64px; }
  .side { padding: 10px 8px; align-items: center; }
  .ws { width: 46px; height: 46px; padding: 0; justify-content: center; box-shadow: none; background: none; }
  .ws-t, .ws .ws-sw, .side-search span, .side-search kbd, .nav a span, .foot-link span, .me-t, .me .ws-sw, .nav-h, .areas, .nav-h-row { display: none; }
  .side-search { width: 40px; padding: 0; justify-content: center; }
  .nav { align-items: center; gap: 4px; margin-top: 10px; }
  .nav a, .foot-link { width: 40px; height: 38px; padding: 0; justify-content: center; }
  .nav-badge { position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; font-size: 10px; line-height: 15px; padding: 0 4px; }
  .me { width: 44px; height: 44px; padding: 0; justify-content: center; box-shadow: none; background: none; }
  .side-foot { align-items: center; }
  .side-foot .ariadne { display: none; }
  .side-toggle { display: none; }
  .top-div { display: none; }
  .cov-wrap, .co, .rb, .cp { grid-template-columns: minmax(0, 1fr); }
  .lv { grid-template-columns: 290px minmax(0, 1fr); }
  .cov-side { grid-template-columns: 1fr 1fr; }
  .kpis, .rep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1181px) {
  .app.collapsed { --side: 64px; }
  .app.collapsed .side { padding: 10px 8px; align-items: center; }
  .app.collapsed .ws { width: 46px; height: 46px; padding: 0; justify-content: center; box-shadow: none; background: none; }
  .app.collapsed :is(.ws-t, .ws .ws-sw, .side-search span, .side-search kbd, .nav a span, .foot-link span, .me-t, .me .ws-sw, .nav-h, .areas, .nav-h-row, .side-foot .ariadne) { display: none; }
  .app.collapsed .side-search { width: 40px; padding: 0; justify-content: center; }
  .app.collapsed .nav { align-items: center; gap: 4px; margin-top: 10px; }
  .app.collapsed :is(.nav a, .foot-link) { width: 40px; height: 38px; padding: 0; justify-content: center; }
  .app.collapsed .nav-badge { position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; font-size: 10px; line-height: 15px; padding: 0 4px; }
  .app.collapsed .me { width: 44px; height: 44px; padding: 0; justify-content: center; box-shadow: none; background: none; }
  .app.collapsed .side-foot { align-items: center; }
}
@media (max-width: 900px) {
  .lv { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { overflow: hidden; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: 280px; background: var(--canvas); transform: translateX(-102%); transition: transform .26s var(--ease); align-items: stretch; padding: 12px; box-shadow: 0 0 40px rgba(0, 0, 0, .18); }
  .side.open { transform: none; }
  .side .ws { width: 100%; height: auto; padding: 8px 9px; justify-content: flex-start; background: #fff; box-shadow: var(--shadow); }
  .side :is(.ws-t, .ws .ws-sw, .side-search span, .side-search kbd, .nav a span, .foot-link span, .me-t, .me .ws-sw) { display: flex; }
  .side .ws-t, .side .me-t { flex-direction: column; }
  .side .nav-h { display: block; } .side .nav-h-row { display: flex; } .side .areas { display: flex; }
  .side .side-search { width: auto; padding: 0 6px 0 10px; justify-content: flex-start; }
  .side .side-search kbd { display: none; }
  .side .nav { align-items: stretch; gap: 1px; margin-top: 4px; }
  .side :is(.nav a, .foot-link) { width: auto; height: 34px; padding: 0 8px; justify-content: flex-start; }
  .side .nav-badge { position: static; margin-left: auto; min-width: 17px; height: 17px; font-size: 11px; line-height: 17px; }
  .side .me { width: 100%; height: auto; padding: 8px 9px; justify-content: flex-start; background: #fff; box-shadow: var(--shadow); }
  .side .side-foot { align-items: stretch; }
  .side .side-foot .ariadne { display: table; margin: 14px auto 4px; }
  .scrim:not([hidden]) { position: fixed; inset: 0; z-index: 79; background: rgba(24, 22, 18, .3); }
  .main { margin: 0; border-radius: 0; box-shadow: none; }
  .top .menu-btn { display: grid; }
  .top { padding: 0 10px; gap: 6px; }
  .clock { padding: 0 9px; font-size: 10.5px; }
  .clock .full { display: none; }
  .view { padding: 16px 14px 32px; }
  .ph { flex-direction: column; gap: 12px; }
  .ph-r { justify-content: flex-start; }
  .ph h1 { font-size: 20px; }
  .banner { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; }
  .banner h2 { font-size: 18px; }
  .banner.done { grid-template-columns: auto minmax(0, 1fr); }
  .banner.done .b-actions { grid-column: 1 / -1; }
  .b-row { grid-template-columns: 62px minmax(0, 1fr) 12px minmax(0, 1fr) 32px; padding: 0 10px; gap: 7px; font-size: 12.5px; }
  .b-row .who img { display: none; }
  .kpis, .rep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .card { padding: 11px 12px 12px; grid-template-columns: 1fr; }
  .kpi .spark { display: none; }
  .kpi .big { font-size: 21px; }
  .kpi .tray-f { font-size: 12px; }
  .cov-side { grid-template-columns: minmax(0, 1fr); }
  .cov-top .r { display: none; }
  .cov { --c: 9px; --g: 3px; padding: 34px 10px 12px; }
  .cov.small { --c: 9px; --g: 2.5px; padding: 4px 0 0; }
  .cov-plot, .cov-x { padding-left: 20px; }
  .cov-x span:nth-child(even) { visibility: hidden; }
  .legend { gap: 8px; flex-wrap: wrap; font-size: 9.5px; }
  .tray-h { flex-wrap: wrap; padding: 10px; row-gap: 8px; }
  .tray-h .r { margin-left: 0; width: 100%; }
  .tray-h .r.keep { width: auto; margin-left: auto; }
  .decide { grid-template-columns: minmax(0, 1fr); }
  .co-visit { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .opt .ck { grid-template-columns: minmax(0, 1fr); grid-column: 1 / -1; }
  .opt { grid-template-columns: auto minmax(0, 1fr); }
  .opt .score { grid-column: 2; }
  .wk { grid-template-columns: 150px repeat(7, minmax(108px, 1fr)) 64px; }
  .wk .first .av { display: none; }
  .map-lbl { font-size: 9.5px; padding: 4px 5px; }
  .re-row { grid-template-columns: 64px minmax(0, 1fr); row-gap: 8px; }
  .re-row .from, .re-row .chev { display: none; }
  .re-row > :nth-child(5) { grid-column: 2; }
  .re-row > :nth-child(6) { grid-column: 2; justify-self: start; }
  .re-row { grid-template-columns: 64px minmax(0, 1fr); }
  .ba { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sees { grid-template-columns: minmax(0, 1fr); }
  .hist .r, .hist .m { grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
  .note-row { grid-template-columns: 44px minmax(0, 1fr); }
  .note-row img { display: none; }
  .note-row .tag { grid-column: 2; justify-self: start; }
  .toolbar .search { width: 100%; }
  .set { grid-template-columns: minmax(0, 1fr); }
  .set-nav { display: flex; overflow-x: auto; position: static; }
  .set-row { flex-wrap: wrap; }
  .set-row .ctl.w { width: 100%; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .toasts { left: 12px; right: 12px; bottom: 12px; justify-items: stretch; }
  .toast { min-width: 0; max-width: none; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; border-radius: 16px 16px 0 0; animation: sheet .26s var(--ease); }
  @keyframes sheet { from { transform: translateY(30px); opacity: 0; } }
  .modal { top: auto; bottom: 0; border-radius: 16px 16px 0 0; width: 100%; max-height: 90vh; }
  .lv-right .map-box { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .view { scroll-behavior: auto; }
}
