/* Golos Text and PT Sans Narrow, SIL OFL 1.1 — see fonts/OFL.txt */
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-ext-400-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url(/static/fonts/golos-text-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-ext-600-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url(/static/fonts/golos-text-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-weight: 700; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-ext-700-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-weight: 700; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 700; font-display: swap; src: url(/static/fonts/golos-text-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Sans Narrow'; font-weight: 700; font-display: swap; src: url(/static/fonts/pt-sans-narrow-cyrillic-ext-700-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'PT Sans Narrow'; font-weight: 700; font-display: swap; src: url(/static/fonts/pt-sans-narrow-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Sans Narrow'; font-weight: 700; font-display: swap; src: url(/static/fonts/pt-sans-narrow-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f4efe4;
  --card: #fffdf8;
  --sunk: #efe9da;
  --display: "PT Sans Narrow", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(60,45,20,.04), 0 10px 28px -20px rgba(60,45,20,.35);
  --ink: #1d1b17;
  --ink-2: #57534a;
  --ink-3: #8a857a;
  --line: #e4ddcc;
  --red: #b3261e;        /* кумач: main action */
  --red-ink: #8f1d17;
  --green: #1f6b4f;      /* worked */
  --gold: #b8862b;       /* ornament only */
  --absent: #9a4a12;
  --radius: 14px;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6;
  --seq-100: #cde2fb; --seq-250: #86b6ef; --seq-400: #3987e5; --seq-550: #1c5cab; --seq-700: #0d366b;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.45 "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 0;
  min-height: 100vh;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- atmosphere: everything here is background, never in the way ---------- */
.ornament { height: 14px; background-repeat: repeat-x; background-size: auto 14px; opacity: .55; }
.backdrop { position: fixed; inset: auto -40px 0 auto; width: 340px; pointer-events: none; color: var(--ink);
  opacity: .045; z-index: 0; }
body.plain .ornament, body.plain .backdrop, body.plain .flavor-only { display: none !important; }
body:not(.plain) .plain-only { display: none !important; }

/* ---------- layout ---------- */
.wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 14px 120px; }
.wide { max-width: 1180px; }
header.top { display: flex; align-items: center; gap: 12px; padding: 14px 0 6px; }
header.top .logo { width: 40px; height: 40px; flex: none; cursor: default; user-select: none; -webkit-tap-highlight-color: transparent; }
header.top h1 { margin: 0; font: 700 24px/1.05 var(--display); letter-spacing: .04em; text-transform: uppercase; }
header.top .sub { color: var(--ink-2); font-size: 14px; }
header.top .spacer { flex: 1; }
.tabs { display: flex; gap: 6px; margin: 8px 0 14px; }
.tabs button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 15px; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 12px;
  box-shadow: var(--shadow); }
.card h2 { margin: 0 0 12px; font: 700 18px/1.15 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.card h2 small { font: 400 13px "Golos Text", system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.hint { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }

label.f { display: block; font-size: 14px; color: var(--ink-2); margin: 10px 0 4px; }
input[type=text], input[type=date], input[type=time], input[type=search], textarea, select {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 12px; font-size: 16px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 15px;
  min-height: 42px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.worked { background: var(--green); color: #fff; border-color: var(--green); }
.chip.absent { background: #fff; color: var(--absent); border-color: var(--absent); text-decoration: line-through; }
.chip.absent::after { content: " · не вышел"; text-decoration: none; display: inline-block; margin-left: 4px; font-size: 12px; }
.chip.ghost { border-style: dashed; color: var(--ink-2); }

.btn { border: 0; border-radius: 12px; padding: 13px 18px; font-size: 16px; font-weight: 700; cursor: pointer; }
.btn.main { background: var(--red); color: #fff; width: 100%; font-size: 18px; padding: 16px; letter-spacing: .02em; }
.btn.main:active { background: var(--red-ink); }
.btn.soft { background: #fff; border: 1px solid var(--line); font-weight: 600; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn:disabled { opacity: .5; }
.sticky-submit { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--paper) 30%); z-index: 5; }
.sticky-submit .inner { max-width: 640px; margin: 0 auto; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.photos .ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eee; }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph button { position: absolute; top: 4px; right: 4px; border: 0; background: rgba(0,0,0,.6); color: #fff;
  border-radius: 999px; width: 26px; height: 26px; line-height: 26px; padding: 0; }
.add-photo { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--ink-3);
  border-radius: 12px; padding: 14px; color: var(--ink-2); cursor: pointer; background: #fff; }
.add-photo input { display: none; }
.empty-art { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; margin-top: 10px; }
.empty-art svg { width: 56px; height: 56px; flex: none; opacity: .75; }

.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 12px; z-index: 50; max-width: 92vw; box-shadow: 0 6px 24px rgba(0,0,0,.2);
  display: flex; align-items: center; gap: 10px; }
.toast svg { width: 34px; height: 34px; flex: none; color: #fff; }
.toast.warn { background: #6b4a00; }

.spinner { width: 54px; height: 54px; margin: 40px auto; display: block; color: var(--ink-3); }
.spinner .spin { transform-origin: 50px 50px; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { text-align: center; color: var(--ink-3); font-size: 14px; }

.list .item { border-top: 1px solid var(--line); padding: 10px 0; }
.list .item:first-child { border-top: 0; }
.item .meta { color: var(--ink-2); font-size: 13px; }
.item .body { white-space: pre-wrap; font-size: 15px; margin-top: 4px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #efe9da; color: var(--ink-2); }
.pill.q { background: #fff3d6; color: #6b4a00; }

footer.motto { text-align: center; color: var(--ink-3); font-size: 12px; margin: 26px 0 0; font-style: italic; }

/* ---------- boss ---------- */
body.boss::before { content: ""; display: block; height: 4px; background: var(--red); }
.boss header.top { padding: 18px 0 10px; gap: 14px; }
.boss header.top .logo { width: 46px; height: 46px; }
.boss header.top .sub { font-size: 13px; color: var(--ink-3); }
.boss header.top .sub b { color: var(--ink-2); font-weight: 600; }
.iconbtn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.iconbtn:hover { border-color: var(--ink-3); color: var(--ink); }
.iconbtn svg { width: 16px; height: 16px; }
.iconbtn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.iconbtn .dot.on { background: var(--green); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; background: var(--sunk); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 6px 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.filters input[type=date] { width: auto; padding: 6px 8px; font-size: 14px; border-radius: 8px; background: var(--card); }
.filters .sep { color: var(--ink-3); }
.filters .spacer { flex: 1; }

.section { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.section .no { font: 700 13px var(--display); color: var(--red); letter-spacing: .08em; }
.section h3 { margin: 0; font: 700 15px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.section .rule { flex: 1; height: 1px; background: var(--line); align-self: center; }
.section .aside { font-size: 12px; color: var(--ink-3); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid > .card { margin: 0; min-width: 0; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
@media (max-width: 980px) { .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; } }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.kpi .l { color: var(--ink-2); font-size: 13px; line-height: 1.25; min-height: 2.5em; }
.kpi .v { font: 700 40px/1 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; margin-top: 6px; white-space: nowrap; }
.kpi .v .u { font-size: 20px; color: var(--ink-2); margin-left: 2px; }
.kpi .d { font-size: 12px; color: var(--ink-3); margin-top: 4px; min-height: 1.4em; }
.kpi .d b { font-weight: 600; color: var(--ink-2); }
.kpi .spark { margin-top: auto; padding-top: 8px; height: 30px; }
.kpi .spark svg { display: block; width: 100%; height: 26px; overflow: visible; }

.insights { display: grid; gap: 0; }
.ins { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.ins:first-child { border-top: 0; padding-top: 2px; }
.ins .val { font: 700 32px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.ins.warn .val { color: var(--red); }
.ins .txt { font-size: 15px; line-height: 1.4; }
.ins .tag { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.ins.warn .tag { color: var(--red-ink); }
.ins.good .tag { color: var(--green); }
.ins .loc { display: block; font-size: 12px; color: var(--ink-3); font-style: italic; margin-top: 3px; }

.honour { display: flex; gap: 16px; align-items: center; }
.honour svg { width: 74px; height: 92px; flex: none; filter: drop-shadow(0 6px 10px rgba(143,29,23,.25)); }
.honour .what { font: 700 30px/1.05 var(--display); letter-spacing: .02em; }
.honour .who { color: var(--ink-2); }
.honour-card { background: linear-gradient(180deg, #fffaf0, var(--card)); }

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text, .chart text.axis { fill: var(--ink-3); font-size: 11px; font-family: "Golos Text", system-ui, sans-serif; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .grid line.zero { stroke: #cfc6b2; }
.chart .label { fill: var(--ink-2); font-size: 11px; font-family: "Golos Text", system-ui, sans-serif; }
.chart .label.strong { fill: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend i.hatch { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.75) 0 2px, transparent 2px 4px); }
.tip { position: absolute; pointer-events: none; background: #23201b; color: #fff; font-size: 12px; padding: 9px 11px;
  border-radius: 9px; white-space: nowrap; z-index: 20; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.22); line-height: 1.5; }
.tip b { font-weight: 600; }
.tip .muted { color: #bdb6a6; }
.tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.caption { color: var(--ink-3); font-size: 12.5px; margin-top: 10px; line-height: 1.45; }
.caption b { color: var(--ink-2); }
.card-head { display: flex; align-items: baseline; gap: 10px; }
.card-head h2 { flex: 1; }
.linkish { background: none; border: 0; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; padding: 0; }
.linkish:hover { color: var(--ink); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--ink-3); font-weight: 600; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding: 8px 8px; position: sticky; top: 0; background: var(--card); }
table.t td { border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: top; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #f6f1e5; }
table.t .bar { height: 6px; border-radius: 3px; background: var(--seq-400); opacity: .8; margin-top: 5px; }
.scroll { max-height: 440px; overflow: auto; }
.pill.site { background: #e6efe9; color: var(--green); }

.status { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.status .s { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; font-size: 14px; }
.status .s .d { font-size: 12px; color: var(--ink-3); }
.status .s.ok { border-color: #b8d8c8; background: #f6fbf8; }
.status .s.late { border-color: #ead7b6; }
.status .s .mark { font-weight: 800; margin-right: 4px; }
.status .s.ok .mark { color: var(--green); }
.status .s.miss .mark, .status .s.late .mark { color: var(--ink-3); }

.disc { margin-top: 16px; overflow-x: auto; }
.disc table { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.disc td.n { color: var(--ink-2); padding-right: 8px; white-space: nowrap; font-size: 13px; }
.disc td.c { width: 22px; height: 18px; border-radius: 4px; background: var(--sunk); padding: 0; }
.disc td.c.on { background: var(--green); }
.disc td.gap { width: 6px; padding: 0; }
.disc th { font-weight: 400; color: var(--ink-3); font-size: 10px; text-align: center; }
.disc td.sum { color: var(--ink-3); padding-left: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hbars .r { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 76px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.hbars .r .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .r .track { height: 12px; position: relative; }
.hbars .r .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; min-width: 2px; }
.hbars .r .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hbars .r .num small { color: var(--ink-3); }
.hbars .grp { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 2px; }
.hbars .grp:first-child { margin-top: 0; }

.drawer-bg { position: fixed; inset: 0; background: rgba(29,27,23,.35); z-index: 30; display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--paper); z-index: 31;
  overflow: auto; padding: 18px; box-shadow: -10px 0 30px rgba(0,0,0,.15); display: none; }
.drawer.open, .drawer-bg.open { display: block; }
.drawer .close { float: right; }
.drawer h2 { font: 700 24px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; margin: 0 0 6px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }

.toggle { position: relative; width: 40px; height: 24px; flex: none; }
.toggle input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; background: #d8d0bd; border-radius: 12px; transition: background .15s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.sync .step > div { min-width: 0; }
.sync .step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; margin: 12px 0; }
.sync .step .k { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center;
  font: 700 13px var(--display); }
.sync pre { background: #23201b; color: #efe8d8; border-radius: 10px; padding: 12px; font-size: 11.5px; max-height: 180px; overflow: auto; white-space: pre-wrap; }
.sync .counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.sync .counts span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.sync .err { color: var(--red-ink); font-size: 13px; }
.sync .row-on { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.sync .row-on .what { flex: 1; }
.sync .row-on .what b { display: block; }
.sync .row-on .what span { font-size: 13px; color: var(--ink-3); }

.newspaper { font-family: Georgia, "Times New Roman", serif; }
.newspaper h3 { font-size: 30px; margin: 0; letter-spacing: .08em; text-align: center; border-bottom: 3px double var(--ink); padding-bottom: 6px; }
.newspaper .issue { text-align: center; font-size: 12px; color: var(--ink-2); margin: 4px 0 12px; }
.newspaper p { margin: 0 0 10px; padding-left: 14px; text-indent: -14px; }
.newspaper p::before { content: "★ "; color: var(--red); }

@media (max-width: 640px) {
  .boss header.top { flex-wrap: wrap; }
  .boss header.top .spacer { flex-basis: 100%; height: 0; }
  .ins { grid-template-columns: 58px 1fr; gap: 10px; }
  .ins .val { font-size: 26px; }
  .kpi .v { font-size: 32px; }
  .filters input[type=date] { flex: 1; }
}

/* boss sign-in */
.login { max-width: 360px; padding-top: 12vh; text-align: center; }
.login h1 { font: 700 30px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; margin: 14px 0 6px; }
.login form { display: grid; gap: 10px; margin-top: 22px; }
.login input { font-size: 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.login .err, .people .err { color: var(--red); font-size: 14px; min-height: 18px; }

/* crew links drawer */
.people .who { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line); }
.people .who.off { opacity: .55; }
.people .who b { font-size: 16px; }
.people .who .meta { grid-column: 1; color: var(--ink-3); font-size: 13px; }
.people .who .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.people .who code { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); background: var(--sunk); border-radius: 8px;
  padding: 6px 8px; overflow-wrap: anywhere; }
.people .add { display: flex; gap: 8px; margin: 14px 0 6px; }
.people .add input { flex: 1; min-width: 0; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.people a.btn { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }

/* install-as-app strip */
.install { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; font-size: 14px; line-height: 1.35; }
.install img { border-radius: 9px; flex: none; }
.install .t { flex: 1; }
.install .t b { display: block; font-size: 15px; }
.install .ico { vertical-align: -3px; }
.install .main-ish { background: var(--red); color: #fff; border: 0; white-space: nowrap; }
.install .x { flex: none; background: none; border: 0; font-size: 22px; line-height: 1; padding: 4px 6px; color: var(--muted, #777); cursor: pointer; }
