/* ==========================================================================
   Reliable OS — .Reliable brand, quiet editorial UI.
   Brand: Signal #F71B1B · Void #111111 · Subtle sun #FFFBCC · Ash #ECEBE9
   Type:  Gilroy (when licensed files are in /public/fonts), else Outfit.
   ========================================================================== */

:root {
  --signal: #F71B1B;
  --signal-ink: #D9100F;
  --void: #111111;
  --sun: #FFFBCC;
  --ash: #ECEBE9;

  /* light theme (default) */
  --bg: #F6F5F2;
  --panel: #FFFFFF;
  --sunken: #F0EEEA;
  --hover: #F3F2EE;
  --ink: #111111;
  --ink-2: #3A3A3C;
  --muted: #76767A;
  --faint: #A7A7AA;
  --line: #E8E6E1;
  --line-2: #D8D5CE;
  --signal-soft: #FDE8E7;
  --sun-strong: #FFF6A3;
  --sun-ink: #6E6326;
  --ok: #1E8E5A;
  --ok-soft: #E3F3EA;
  --track: #EDEBE6;
  --plan: #C9C6BF;

  --r: 12px;
  --r-sm: 8px;
  --side-w: 228px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0D0D0E;
  --panel: #141415;
  --sunken: #101011;
  --hover: #1A1A1C;
  --ink: #F3F2EF;
  --ink-2: #CFCFCB;
  --muted: #94949A;
  --faint: #5F5F65;
  --line: #222224;
  --line-2: #303033;
  --signal-soft: rgba(247, 27, 27, .14);
  --sun-strong: #FFFBCC;
  --sun-ink: #E9E2A6;
  --ok: #4CC38A;
  --ok-soft: rgba(76, 195, 138, .13);
  --track: #232325;
  --plan: #4A4A4E;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0D0E; --panel: #141415; --sunken: #101011; --hover: #1A1A1C;
    --ink: #F3F2EF; --ink-2: #CFCFCB; --muted: #94949A; --faint: #5F5F65;
    --line: #222224; --line-2: #303033; --signal-soft: rgba(247, 27, 27, .14);
    --sun-strong: #FFFBCC; --sun-ink: #E9E2A6; --ok: #4CC38A; --ok-soft: rgba(76, 195, 138, .13);
    --track: #232325; --plan: #4A4A4E; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.5 "Gilroy", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--signal); color: #fff; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--signal); }
[x-cloak] { display: none !important; }

/* ---------- type ---------- */
h1 { font-size: 26px; line-height: 1.15; margin: 0; font-weight: 500; letter-spacing: -.02em; }
h1:not(.plain)::after { content: "."; color: var(--signal); }
h2 { font-size: 15px; margin: 0; font-weight: 600; letter-spacing: -.005em; }
h3, .label { font-size: 11px; margin: 0; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 500; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strong { font-weight: 600; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.red { color: var(--signal); }
.ok { color: var(--ok); }

/* ---------- brand ---------- */
.wordmark { font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.wordmark .dot, .dot-red { color: var(--signal); }
.eyebrow { color: var(--signal); font-size: 12px; font-weight: 500; letter-spacing: .02em; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 22px 14px 16px; border-right: 1px solid var(--line); background: var(--bg);
}
.logo { font-size: 19px; padding: 0 10px 26px; display: block; }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm);
  color: var(--muted); font-weight: 500; font-size: 13.5px; position: relative;
}
.side nav a svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.side nav a:hover { color: var(--ink); background: var(--hover); }
.side nav a.on { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.side nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 2px; background: var(--signal); border-radius: 2px; }
.side nav .group { margin: 16px 10px 6px; }
.side .badge { margin-left: auto; min-width: 18px; height: 18px; display: grid; place-items: center; background: var(--signal); color: #fff; border-radius: 9px; padding: 0 5px; font-size: 10.5px; font-weight: 600; }
.side .foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.side .foot .who { flex: 1; min-width: 0; font-size: 13px; }
.side .foot .who a { font-weight: 600; display: block; }
.side .foot button { background: none; border: 0; padding: 0; color: var(--faint); cursor: pointer; font: inherit; font-size: 12px; }
.side .foot button:hover { color: var(--signal); }
.theme-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; flex: none; }
.theme-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.theme-btn:hover { color: var(--ink); }

.timerbar { margin: 0 0 18px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sun); color: var(--void); font-size: 12.5px; }
.timerbar .row1 { display: flex; align-items: center; gap: 8px; }
.timerbar .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 1.6s infinite; }
.timerbar .num { font-weight: 600; margin-left: auto; }
.timerbar b { display: block; font-weight: 600; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timerbar .c { color: #6b6852; }
.timerbar button { margin-top: 8px; background: var(--void); color: #fff; border: 0; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

.main { padding: 34px 44px 80px; min-width: 0; max-width: 1480px; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.head .titles { display: flex; flex-direction: column; gap: 6px; }
.head .sub { color: var(--muted); font-size: 13.5px; }
.head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card-head .more { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.card-head .more:hover { color: var(--signal); }
.card.flush { padding: 0; }
.card.flush .card-head { padding: 18px 22px 0; }
.card.sun { background: var(--sun); border-color: transparent; color: var(--void); }
.card.sun .muted, .card.sun h3, .card.sun .label { color: #6b6852; }
.section { margin-top: 34px; }
.section > .label { display: block; margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; }
.g-side-l { grid-template-columns: 300px minmax(0, 1fr); }
.g-3col { grid-template-columns: 290px minmax(0, 1fr) 300px; }
@media (max-width: 1200px) { .g-3col { grid-template-columns: 280px minmax(0, 1fr); } .g-3col > :last-child { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .g2, .g3, .g-side, .g-side-l { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .g-3col { grid-template-columns: 1fr; } }

/* KPI strip: numbers separated by hairlines, no boxes */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.kpis > div { padding: 18px 22px 18px 0; }
.kpis > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.kpis .v { font-size: 30px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.kpis .v small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.kpis .s { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1000px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis > div:nth-child(3) { border-left: 0; padding-left: 0; } .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.stat { font-size: 28px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }

.flash { background: var(--sun); color: var(--void); padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: 13.5px; }
.errors { background: var(--signal-soft); color: var(--signal-ink); padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: 13.5px; }
:root[data-theme="dark"] .errors { color: #ff8b8b; }
.errors ul { margin: 0; padding-left: 18px; }

/* ---------- forms ---------- */
label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 7px 10px; height: 34px;
}
textarea { height: auto; min-height: 76px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row > .field { flex: 1 1 140px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); font-size: 13.5px; margin: 0; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--signal); width: 15px; height: 15px; margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips label { margin: 0; }
.chips input { display: none; }
.chips span { display: inline-block; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; color: var(--muted); cursor: pointer; font-weight: 500; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { padding: 0; margin-bottom: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  font: inherit; font-weight: 500; font-size: 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.primary:hover { background: var(--signal-ink); border-color: var(--signal-ink); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.dark:hover { opacity: .88; color: var(--bg); }
.btn.green { background: var(--sun); border-color: var(--sun); color: var(--void); }
.btn.green:hover { background: var(--sun-strong); border-color: var(--sun-strong); color: var(--void); }
.btn.danger { color: var(--signal); }
.btn.danger:hover { border-color: var(--signal); color: var(--signal); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--hover); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }
.btn.icon { width: 32px; padding: 0; justify-content: center; }
.btn.sm.icon { width: 26px; }
.btn[disabled] { opacity: .5; cursor: default; }
.inline { display: inline; }

/* segmented control (view switchers) */
.seg { display: inline-flex; padding: 3px; background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; gap: 2px; }
.seg a { padding: 4px 12px; border-radius: 7px; font-size: 13px; color: var(--muted); font-weight: 500; }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 0 0 1px var(--line); }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar select, .toolbar input { width: auto; height: 32px; }
.toolbar input[type=search] { width: 220px; }
.toolbar .spacer { flex: 1; }

/* ---------- tags & status ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; line-height: 18px; }
.pill.red { border-color: transparent; background: var(--signal-soft); color: var(--signal); }
.pill.solid-red { border-color: var(--signal); background: var(--signal); color: #fff; }
.pill.amber, .pill.sun { border-color: transparent; background: var(--sun); color: var(--void); }
.pill.green { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.pill.blue { border-color: transparent; background: var(--sunken); color: var(--ink-2); }
.pill.brand::before, .pill.performance::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.pill.brand::before { background: #E1C300; }
.pill.performance::before { background: var(--ink); }
.dotlbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.dotlbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dotlbl.good::before, .dotlbl.ok::before { background: var(--ok); }
.dotlbl.watch::before, .dotlbl.sun::before { background: #E1C300; }
.dotlbl.risk::before, .dotlbl.red::before { background: var(--signal); }
.prio-high { color: var(--signal); font-weight: 600; }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sunken); color: var(--ink-2); font-size: 10px; font-weight: 600; flex: none; border: 1px solid var(--line); letter-spacing: .02em; }
.avatar.lg { width: 34px; height: 34px; font-size: 12px; }
.avatar.live { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--ok); }
.ico { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.typeico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); flex: none; }
.typeico svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tables & lists ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 500; padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th a { color: inherit; }
th a:hover, th a.on { color: var(--ink); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13.5px; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.card.flush th:first-child, .card.flush td:first-child { padding-left: 22px; }
.card.flush th:last-child, .card.flush td:last-child { padding-right: 22px; }
.card.flush thead th { padding-top: 16px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--hover); }
.table-wrap { overflow-x: auto; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 500; }
.empty { color: var(--faint); padding: 10px 0; font-size: 13.5px; }
.done-title { text-decoration: line-through; color: var(--faint) !important; }

/* ---------- bars ---------- */
.cap { height: 4px; background: var(--track); border-radius: 2px; overflow: hidden; position: relative; }
.cap i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--plan); border-radius: 2px; }
.cap i.over { background: var(--signal); }
.cap i.logged { background: var(--ink); }
.cap.thick { height: 6px; border-radius: 3px; }
.cap-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.hbar { display: grid; grid-template-columns: 170px 1fr 64px; gap: 14px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.hbar .track { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--ink); border-radius: 3px; }
.hbar .fill.sun { background: #E1C300; }
.hbar .fill.red { background: var(--signal); }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- people (overview) ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.person .top { display: flex; align-items: center; gap: 10px; }
.person .top .n { font-weight: 600; }
.person .now { font-size: 13px; min-height: 38px; }
.person .now .live { color: var(--ok); font-weight: 500; }
.person .stats { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.person .stats b { display: block; font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }

/* attention list */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.alert:last-child { border-bottom: 0; }
.alert .mark { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex: none; }
.alert .mark.red { background: var(--signal); }
.alert .mark.sun { background: #E1C300; }
.alert a { flex: 1; }
.alert .who { color: var(--faint); font-size: 12px; white-space: nowrap; }

/* feed */
.feed { position: relative; }
.feed .it { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 8px 0; font-size: 13px; }
.feed .it .t { color: var(--ink-2); }
.feed .it .t b { color: var(--ink); font-weight: 500; }
.feed .it .when { color: var(--faint); font-size: 11.5px; }

/* ---------- client boards ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { min-width: 0; }
.col-head { padding: 0 2px 10px; margin-bottom: 10px; border-bottom: 2px solid var(--line-2); }
.col-head .t { display: flex; align-items: baseline; gap: 6px; font-weight: 600; font-size: 13.5px; }
.col-head .t .count { color: var(--faint); font-weight: 500; font-size: 12.5px; }
.col-head .v { font-size: 12px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.col.c-good .col-head { border-bottom-color: var(--ok); }
.col.c-watch .col-head { border-bottom-color: #E1C300; }
.col.c-risk .col-head { border-bottom-color: var(--signal); }
.col .drop { min-height: 160px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--r); transition: background .15s; }
.ccard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; cursor: grab; transition: border-color .15s, box-shadow .15s; }
.ccard:hover { border-color: var(--line-2); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.ccard .name { font-weight: 600; display: block; color: var(--ink); font-size: 13.5px; }
.ccard .sub { font-size: 12px; color: var(--muted); margin-top: 1px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ccard .val { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; font-variant-numeric: tabular-nums; }
.ccard .next { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.ccard .next .s { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard .next.overdue { color: var(--signal); }
.ccard .next.none { color: #B39A00; }
:root[data-theme="dark"] .ccard .next.none { color: #E1C300; }
.ccard .next .avatar { width: 20px; height: 20px; font-size: 9px; }
.ccard .meter { margin-top: 10px; }
.sortable-ghost { opacity: .35; }
.sortable-chosen .ccard, .ccard.sortable-chosen { border-color: var(--ink); }
.dropzones { position: sticky; bottom: 16px; display: none; gap: 12px; margin-top: 14px; z-index: 5; }
.dropzones.show { display: flex; }
.dropzones .z { flex: 1; height: 56px; border-radius: var(--r); border: 1.5px dashed var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--panel); }
.dropzones .z.won { color: var(--ok); border-color: var(--ok); }
.dropzones .z.lost { color: var(--signal); border-color: var(--signal); }
.dropzones .z .ccard { display: none; }

/* ---------- client page ---------- */
.side-props { display: flex; flex-direction: column; gap: 0; }
.prop { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.prop:last-child { border-bottom: 0; }
.prop .k { color: var(--muted); }
.stage-track { display: flex; gap: 3px; margin-top: 18px; }
.stage-track form { flex: 1; }
.stage-track button { width: 100%; height: 30px; border: 0; background: var(--track); color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 500; cursor: pointer; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-track form:first-child button { border-radius: 6px 0 0 6px; }
.stage-track form:last-child button { border-radius: 0 6px 6px 0; }
.stage-track button.past { background: var(--ink-2); color: var(--bg); }
.stage-track button.cur { background: var(--ink); color: var(--bg); }
.stage-track button:hover { color: var(--ink); background: var(--line-2); }
.stage-track button.cur:hover, .stage-track button.past:hover { color: var(--bg); background: var(--ink); }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 0 0 10px; font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--signal); }
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl .e { position: relative; padding: 0 0 18px; }
.tl .e::before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--line-2); }
.tl .e.stage::before { border-color: var(--ink); background: var(--ink); }
.tl .e.call::before, .tl .e.meeting::before, .tl .e.whatsapp::before, .tl .e.email::before, .tl .e.brief::before { border-color: var(--signal); }
.tl .e.task::before { border-color: var(--ok); }
.tl .e .meta { font-size: 11.5px; color: var(--faint); }
.tl .e .body { font-size: 13.5px; margin-top: 2px; white-space: pre-line; }
.act { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act .grow { flex: 1; min-width: 0; }
.act .when { font-size: 12px; color: var(--muted); }
.act .when.overdue { color: var(--signal); font-weight: 500; }

/* ---------- planner ---------- */
.planner { display: grid; grid-template-columns: 290px repeat(var(--cols), minmax(260px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; padding-bottom: 12px; }
.pcol { min-width: 0; }
.pcol .drop { min-height: 200px; display: flex; flex-direction: column; gap: 6px; }
.pcol.backlog .drop { padding: 8px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; cursor: grab; font-size: 13px; }
.tcard:hover { border-color: var(--line-2); }
.tcard .t { font-weight: 500; color: var(--ink); }
.tcard .m { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 11.5px; margin-top: 5px; }
.tcard.done { opacity: .5; }
.tcard.done .t { text-decoration: line-through; }
.tcard .h { margin-left: auto; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- my week ---------- */
.days { display: flex; gap: 6px; }
.day { flex: 1 1 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; background: var(--panel); }
.day:hover { border-color: var(--line-2); color: var(--ink); }
.day.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.day .d { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.day .v { font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; }
.task { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .grow { flex: 1; min-width: 0; }
.task .title { font-weight: 500; }
.task .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; align-items: center; }
.task.running { background: var(--sun); margin: 0 -22px; padding-left: 22px; padding-right: 22px; color: var(--void); }
.task.running .meta { color: #6b6852; }
.task.running a { color: var(--void); }
.boxbtn { width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px; background: transparent; cursor: pointer; padding: 0; flex: none; display: grid; place-items: center; }
.boxbtn:hover { border-color: var(--ink); }
.boxbtn.on { background: var(--ink); border-color: var(--ink); }
.boxbtn.on::after { content: ""; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translate(-1px, -1px); }
.roundbtn { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; padding: 0; flex: none; }
.roundbtn:hover { border-color: var(--ok); background: var(--ok-soft); }

details.add { margin-bottom: 18px; }
details.add.card:not([open]) { background: transparent; border: 0; padding: 0; }
details.add > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { margin-bottom: 16px; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* dialog (modal) */
.modal-bg { position: fixed; inset: 0; background: rgba(17,17,17,.35); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: 460px; max-width: 100%; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.modal h2 { margin-bottom: 14px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-box { width: 360px; max-width: 100%; }
.login .mark { font-size: 46px; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 26px; }
.login .mark .dot { color: var(--signal); }
.login h1 { font-size: 24px; margin: 6px 0 22px; }
.login .card { padding: 24px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side nav a svg, .side nav .group, .side nav a.on::before { display: none; }
  .side .foot, .timerbar { display: none; }
  .logo { padding: 4px 10px; }
  .main { padding: 22px 16px 60px; }
  .task.running { margin: 0 -22px; }
}

/* keep primary names on one line in data tables */
td .strong { white-space: nowrap; }
.table-wrap table { min-width: 860px; }

/* quiet custom selects */
select {
  -webkit-appearance: none; appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.toolbar input[type=search] { padding-left: 32px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23999' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='m9.5 9.5 3 3'/%3E%3C/svg%3E") no-repeat 11px center; }
.col-head .t .add { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--faint); }
.col-head .t .add:hover { background: var(--hover); color: var(--ink); }
.col-head .t .add svg { width: 14px; height: 14px; }
.ccard .top { display: flex; align-items: flex-start; gap: 8px; }
.ccard .top .name { flex: 1; min-width: 0; }
.ccard .top .avatar { width: 20px; height: 20px; font-size: 8.5px; }
.col-head .t .add svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
select { padding-top: 0; padding-bottom: 0; line-height: 32px; }
.toolbar input[type=search] { width: 260px; }

/* stage track v2: thin progress line with labels */
.stage-track { display: flex; gap: 4px; margin-top: 22px; }
.stage-track form { flex: 1; }
.stage-track form button, .stage-track form:first-child button, .stage-track form:last-child button {
  width: 100%; height: auto; border: 0; border-radius: 0; background: none; padding: 9px 0 0; text-align: left;
  border-top: 3px solid var(--line-2); color: var(--faint); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
}
.stage-track button:hover { color: var(--ink); background: none; border-top-color: var(--ink-2); }
.stage-track form button.past { background: none; color: var(--muted); border-top-color: var(--ink); }
.stage-track form button.cur { background: none; color: var(--ink); border-top-color: var(--signal); font-weight: 600; }
.stage-track button.past:hover, .stage-track button.cur:hover { background: none; color: var(--ink); }
.tl .e.k-stage::before { border-color: var(--ink); background: var(--ink); }
.tl .e.k-call::before, .tl .e.k-meeting::before, .tl .e.k-whatsapp::before, .tl .e.k-email::before, .tl .e.k-brief::before { border-color: var(--signal); }
.tl .e.k-task::before { border-color: var(--ok); }

/* card titles placed directly in a card */
.card > h2 { margin-bottom: 14px; }
.card > h2 + p { margin-top: -6px; }
/* compact day strip */
.day { padding: 8px 9px; }
.day .d { white-space: nowrap; letter-spacing: .04em; }
.day .v { font-size: 15px; }
/* planner column head */
.pcol .col-head .t .avatar { width: 22px; height: 22px; font-size: 9px; }
.pcol .cap { margin-top: 8px; }
.pcol .cap-line { margin-top: 5px; }

/* ---------- Money (owner only) ---------- */
.side nav .group .lock { text-transform: none; letter-spacing: 0; color: var(--faint); font-weight: 400; }
.banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); background: var(--sunken); border: 1px solid var(--line); font-size: 13.5px; margin-bottom: 14px; }
.banner.sun { background: var(--sun); border-color: transparent; color: var(--void); }
.banner.sun a { color: var(--void); text-decoration: underline; text-underline-offset: 2px; }
.banner a { margin-left: auto; white-space: nowrap; }
.note-card { border-left: 3px solid var(--ink); }
.fixlist { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
table.fin td, table.fin th { white-space: nowrap; }
table.fin tfoot td { border-bottom: 0; border-top: 1px solid var(--line-2); padding-top: 12px; padding-bottom: 14px; }
.twobar { display: flex; flex-direction: column; gap: 3px; }
.twobar i { display: block; height: 4px; border-radius: 2px; background: var(--ink); min-width: 1px; }
.twobar i.out { background: var(--plan); }
.foot-note { padding: 12px 22px 16px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.foot-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.owe { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.owe:last-of-type { border-bottom: 0; }
.owe:hover b { color: var(--signal); }
.owe .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.owe b { font-weight: 500; font-size: 13.5px; }
.owe .right { display: flex; flex-direction: column; align-items: flex-end; font-size: 13.5px; }
.kpis .v.red { color: var(--signal); }
.twobar { max-width: 120px; margin-left: auto; }
.foot-note + .foot-note { border-top: 0; padding-top: 0; }
.spend-form { padding: 14px 22px; background: var(--sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spend-form .row > .field { flex: 1 1 90px; }
.pay-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: 0; }
.pay-line { display: flex; gap: 10px; align-items: flex-start; }
.pay-line .grow { display: flex; flex-direction: column; flex: 1; gap: 1px; }
.pay-line b { font-weight: 500; }
tr.link-row { cursor: pointer; }
tr.link-row:hover td { background: var(--hover); }
.card-head .btn.more { margin-left: auto; }
.kpis.kpis-5 { grid-template-columns: repeat(5, 1fr); }
tr.cancelled td { color: var(--faint); }
tr.cancelled td .strong { text-decoration: line-through; }
.tnum { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
table.lines td { padding: 6px 6px; vertical-align: top; }
table.lines th { padding-left: 6px; padding-right: 6px; }
table.lines td.num { padding-top: 14px; white-space: nowrap; }
table.lines input, table.lines select, table.lines textarea { height: 34px; }
table.lines textarea { resize: none; min-height: 34px; padding-top: 7px; line-height: 1.4; overflow: hidden; }
.lines-foot { padding: 12px 22px 16px; }
.totals-card .tot { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.totals-card .tot:last-of-type { border-bottom: 0; }
.totals-card .tot.big { font-size: 17px; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line-2); border-bottom: 0; }
.totals-card .disc { display: inline-flex; align-items: center; gap: 6px; }
.totals-card .disc input { width: 70px; height: 28px; }
input.right { text-align: right; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.paper-wrap { background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; overflow: hidden; container-type: inline-size; }
.paper-scale { width: 210mm; }
.paper-wrap .paper { box-shadow: 0 6px 24px rgba(0,0,0,.08); border-radius: 2px; }
.doc-side .card h2 { margin-bottom: 12px; }
.tot-mini { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--ink-2); }
.tot-mini.strong { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; color: var(--ink); font-weight: 600; }
.seg-form { display: flex; gap: 6px; }
@media (max-width: 1100px) { .doc-layout { grid-template-columns: 1fr; } }
table.fx td { padding: 4px 4px; border: 0; }
table.fx th { padding: 0 4px 6px; }
table.fx input { height: 30px; }
.tabs-links { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs-links a { padding: 0 0 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs-links a:hover { color: var(--ink); }
.tabs-links a.on { color: var(--ink); border-bottom-color: var(--signal); }
.tabs-links .badge { background: var(--signal); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; line-height: 17px; }
.sort-table select, .sort-table input { height: 30px; font-size: 13px; }
.sort-table td { vertical-align: top; }
tr.muted-row td { color: var(--muted); }
.steps { padding-left: 18px; margin: 0 0 14px; line-height: 1.7; }
a.u { text-decoration: underline; text-underline-offset: 2px; }
table.lines { table-layout: fixed; }
table.lines input, table.lines select { width: 100%; min-width: 0; }
table.lines td.num { font-size: 13px; }
tr.month-row td { background: var(--sunken); font-weight: 600; font-size: 12.5px; padding-top: 8px; padding-bottom: 8px; }
table.fx td.nowrap { width: 90px; font-size: 13px; }
.stack { display: grid; gap: 4px; }
.stack > * { width: 100%; }
.sort-table { table-layout: fixed; }
table.lines textarea { width: 100%; min-width: 0; display: block; }
table.lines { width: 100% !important; table-layout: fixed !important; }
.table-wrap table.lines { min-width: 620px; }
.grid > *, .doc-layout > * { min-width: 0; }
.fu-card .card-head { flex-wrap: wrap; }
.fu { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.fu .grow { flex: 1; min-width: 0; font-size: 13.5px; }
.fu-step { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; background: var(--sunken); color: var(--ink-2); flex: none; margin-top: 1px; font-variant-numeric: tabular-nums; }
.fu-step.sun { background: var(--sun); color: var(--void); }
.fu-step.red { background: var(--signal-soft); color: var(--signal); }
.fu-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.fu-msg { white-space: pre-line; margin-top: 8px; padding: 10px 12px; background: var(--sunken); border-radius: 8px; font-size: 12.5px; color: var(--ink-2); }
.track-strip { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.track-strip > div { flex: 1; padding: 14px 22px; display: flex; flex-direction: column; gap: 3px; }
.track-strip > div + div { border-left: 1px solid var(--line); }
.track-strip b { font-size: 18px; font-weight: 500; }
@media (max-width: 860px) { .fu { flex-wrap: wrap; } .fu-actions { width: 100%; justify-content: flex-start; } .track-strip { flex-wrap: wrap; } }

/* ---------- Playbooks ---------- */
.pb-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; }
.pb-cats { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.pb-cats a { padding: 6px 10px; border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.pb-cats a:hover { color: var(--ink); background: var(--hover); }
.pb-cats a.on { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.pb-group { margin: 4px 0 8px; }
.pb-group:not(:first-child) { margin-top: 26px; }
.pb-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.pb-item { display: flex; gap: 16px; align-items: center; padding: 14px 20px; color: var(--ink); }
.pb-item + .pb-item { border-top: 1px solid var(--line); }
.pb-item:hover { background: var(--hover); }
.pb-item:first-child { border-radius: var(--r) var(--r) 0 0; }
.pb-item:last-child { border-radius: 0 0 var(--r) var(--r); }
.pb-item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pb-item .t { font-weight: 500; font-size: 14.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pb-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.prose { padding: 30px 36px; font-size: 14.5px; line-height: 1.65; max-width: 780px; }
.prose .lead { font-size: 16px; color: var(--ink-2); margin: 0 0 18px; }
.prose h2 { font-size: 17px; margin: 26px 0 8px; }
.prose h2:first-child, .prose .lead + h2 { margin-top: 6px; }
.prose h2::after, .prose h3::after { content: none; }
.prose h3 { font-size: 15px; margin: 18px 0 6px; }
.prose p { margin: 0 0 10px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin: 3px 0; }
.prose ul.cl { list-style: none; padding-left: 0; }
.prose ul.cl li { position: relative; padding-left: 26px; }
.prose ul.cl li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border: 1.5px solid var(--line-2); border-radius: 4px; }
.prose ul.cl li.on::before { background: var(--ink); border-color: var(--ink); }
.prose blockquote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--sun-strong); background: var(--sunken); border-radius: 0 8px 8px 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
textarea.editor { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.6; min-height: 420px; }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 10px 0; color: var(--ink-2); font-weight: 400; }
.check-line input { width: auto; height: auto; margin-top: 3px; }
.mono-help { font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.7; color: var(--ink-2); background: var(--sunken); padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; }
@media (max-width: 860px) { .pb-layout { grid-template-columns: 1fr; } .pb-cats { flex-direction: row; flex-wrap: wrap; position: static; } .prose { padding: 20px; } }
.tpl { margin-bottom: 6px; }
.tpl .card-head { align-items: flex-start; }
.tpl .card-head .grow { flex: 1; min-width: 0; }
.tpl .card-head .row { align-items: flex-end; }
.tpl-desc { padding: 0 22px; margin: -6px 0 6px; }
.tpl-items { table-layout: fixed; }
.table-wrap table.tpl-items { min-width: 640px; }
.tpl-items td { padding-top: 8px; padding-bottom: 8px; }
.tpl-items input, .tpl-items select { height: 30px; font-size: 13px; width: 100%; }
.tpl-del { text-align: right; margin-bottom: 18px; }
.person-row { padding: 9px 0; border-top: 1px solid var(--line); }
.person-row:first-of-type { border-top: 0; padding-top: 2px; }
.person-row .nm { font-weight: 500; font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.person-row .links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.person-row .links svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; vertical-align: -2px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--faint); cursor: pointer; font-size: 12px; }
.linkbtn:hover { color: var(--ink); }
.howto { border-left: 3px solid var(--sun-strong); }
.howto-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0 0; color: var(--ink); }
.howto-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; margin-top: 2px; color: var(--muted); }
.howto-item span { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.howto-item b { font-weight: 500; }
.howto-item:hover b { color: var(--signal); }
.start-svc { display: flex; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.start-svc select { height: 28px; font-size: 13px; }
.howto-banner { color: var(--ink); }
.howto-banner svg, .pb-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pb-link { color: var(--faint); margin-left: 6px; vertical-align: -2px; }
.pb-link:hover { color: var(--signal); }
.mbars { display: flex; gap: 8px; align-items: flex-end; height: 170px; padding-top: 6px; }
.mb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.mb .bars { flex: 1; width: 100%; display: flex; gap: 3px; align-items: flex-end; justify-content: center; }
.mb .bars i { display: block; width: 40%; max-width: 18px; background: var(--ink); border-radius: 3px 3px 0 0; }
.mb .bars i.l { background: var(--signal); }
.mb .n { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.retainer-new { margin: 18px 0 0; }

/* ---------- Day plan ---------- */
.plan-card .card-head { flex-wrap: wrap; }
.coach { background: var(--sun); color: var(--void); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; }
.cal-peek { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 10px 12px; background: var(--sunken); border-radius: 10px; margin-bottom: 12px; }
.replan { margin-bottom: 14px; }
.tl-day { display: flex; flex-direction: column; }
.blk { display: grid; grid-template-columns: 54px 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.blk:first-child { border-top: 0; }
.blk .t { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.25; }
.blk .t i { font-style: normal; font-weight: 400; color: var(--faint); font-size: 11.5px; }
.blk .bar { align-self: stretch; border-radius: 2px; background: var(--ink); }
.blk.k-event .bar, .blk.k-activity .bar { background: var(--signal); }
.blk.k-calls .bar { background: #E1C300; }
.blk.k-break .bar { background: var(--plan); }
.blk.k-break .ti { color: var(--muted); }
.blk .ti { font-size: 14px; font-weight: 500; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.blk .ti a { color: var(--ink); }
.blk .ti a:hover { color: var(--signal); }
.blk.past { opacity: .45; }
.blk.now { background: linear-gradient(90deg, var(--sunken), transparent); border-radius: 8px; }
.blk.now .t { color: var(--signal); }
.wa-send { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
.wa-send:hover { color: var(--ok); }
.wa-send svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.logo small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.fields-help { display: grid; gap: 4px; margin-bottom: 10px; }
.fields-help div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: baseline; }
.fields-help code { font-size: 11.5px; background: var(--sunken); padding: 1px 5px; border-radius: 4px; }
.ladder { display: flex; flex-direction: column; }
.rung { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; position: relative; }
.rung .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-top: 4px; background: var(--panel); }
.rung.done .dot { background: var(--ok); border-color: var(--ok); }
.rung.due .dot { border-color: var(--signal); }
.rung .grow { flex: 1; }
.pb-file { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.pb-file:first-of-type { border-top: 0; }
.pb-file .ext { font-size: 10px; font-weight: 700; letter-spacing: .04em; background: var(--signal); color: #fff; border-radius: 5px; padding: 6px 5px; min-width: 36px; text-align: center; }
.pb-file .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); }
.pb-file .grow b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-files { margin-bottom: 16px; }
.img-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.img-slot { border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; cursor: pointer; text-align: center; min-height: 120px; justify-content: center; }
.img-slot img { max-height: 60px; max-width: 100%; }
.img-slot b { font-size: 12.5px; font-weight: 500; }
.img-slot input { font-size: 11px; width: 100%; height: auto; border: 0; padding: 0; background: none; }
