/* Пульт готовности к матчу.
   Палитра меняется в одном месте — переменные :root. */
:root {
  --ink: #282535;
  --muted: #5f6272;
  --faint: #8c8f9d;
  --paper: #f4f6f5;
  --surface: #ffffff;
  --line: #e1e5e3;
  --line-2: #edf0ee;
  --pitch: #179b40;
  --pitch-d: #107a31;
  --pitch-m: #2bb552;
  --pitch-l: #e5f5ea;
  --gold: #e3a81b;
  --gold-l: #fbf1d6;
  --gold-d: #7a5600;
  --danger: #b93a12;
  --danger-l: #fbe9e2;
  --r: 12px;
  --r-sm: 8px;
  --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; display: block; }

/* ───────── кнопки ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: var(--r-sm); font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.btn:hover { background: var(--line-2); }
.btn.primary { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.btn.primary:hover { background: var(--pitch-d); }
.btn.danger { color: var(--danger); border-color: #efc4b6; background: var(--surface); }
.btn.danger:hover { background: var(--danger-l); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.iconbtn { width: 38px; height: 38px; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.iconbtn:hover { background: var(--line-2); }

/* ───────── статусы ───────── */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.ok { background: var(--pitch-l); color: var(--pitch); }
.pill.warn { background: var(--gold-l); color: var(--gold-d); }
.pill.bad { background: var(--danger-l); color: var(--danger); }
.tag { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--gold-l); color: var(--gold-d); margin-left: 8px; vertical-align: 1px; }

/* Сегментная полоса: один сегмент — один пункт чек-листа */
.seg { display: flex; gap: 3px; width: 100%; }
.seg i { flex: 1; height: 10px; border-radius: 3px; background: var(--line); min-width: 3px; }
.seg i.on { background: var(--pitch-m); }
.seg.full i.on { background: var(--pitch); }
.seg.big i { height: 14px; border-radius: 4px; }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--pitch-m); border-radius: 99px; transition: width .3s; }

/* ───────── иконка отдела ───────── */
.dtile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--pitch-l); color: var(--pitch); flex: none; }
.dtile.lg { width: 56px; height: 56px; border-radius: 14px; }

/* ───────── формы ───────── */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid #c9d4cd; border-radius: var(--r-sm); padding: 11px 12px;
}
input:focus, textarea:focus { outline: 3px solid rgba(47,143,93,.35); border-color: var(--pitch-m); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.row { display: flex; gap: 8px; align-items: center; }
.row > input { flex: 1; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin-top: 8px; }

/* ───────── экран входа ───────── */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 42%) 1fr; }
.brandpanel { position: relative; overflow: hidden; background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.pitch { position: absolute; inset: 170px 32px 250px 32px; width: calc(100% - 64px); height: calc(100% - 420px); color: rgba(23,155,64,.18); }
.brandpanel > *:not(.pitch) { position: relative; }
.brandpanel h1 { font-size: 36px; line-height: 1.1; letter-spacing: -.02em; font-weight: 750; max-width: 12ch; }
.brandpanel p { margin-top: 14px; color: var(--muted); max-width: 34ch; font-size: 16px; }
.logo-row { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.logo-row img { height: auto; width: min(260px, 70%); }
.logo-row small, .side-brand small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.chooser { padding: 40px; display: flex; flex-direction: column; max-width: 720px; width: 100%; margin: 0 auto; }
.chooser-top { display: flex; justify-content: flex-end; margin-bottom: 36px; }
.chooser h2 { font-size: 24px; letter-spacing: -.01em; }
.chooser .sub { color: var(--muted); margin: 6px 0 22px; }
.dgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dpick {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-height: 72px; font-weight: 650;
}
.dpick:hover { border-color: var(--pitch-m); box-shadow: 0 0 0 3px rgba(47,143,93,.14); }
.dpick .chev { margin-left: auto; color: var(--faint); }

/* ───────── каркас администратора ───────── */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 8px 10px 24px; font-weight: 700; color: var(--ink); }
.side-brand img { height: auto; width: 100%; max-width: 168px; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--pitch-l); display: grid; place-items: center; color: var(--pitch); flex: none; }
.nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); background: none; border: 0; color: var(--muted); font-weight: 600; text-align: left; width: 100%; }
.nav-item:hover { background: var(--line-2); color: var(--ink); }
.nav-item.active { background: var(--pitch-l); color: var(--pitch-d); box-shadow: inset 3px 0 0 var(--pitch); }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding: 0 4px; }
.side-foot .btn { justify-content: flex-start; }
.who { padding: 10px 8px 2px; font-size: 13px; color: var(--faint); }

.main { min-width: 0; }
.page { padding: 28px 32px 48px; max-width: 1240px; }
.pagehead { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.pagehead h1 { font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.pagehead .sub { margin-top: 6px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mobilebar { display: none; }

/* Показатели: одна панель с делителями, не набор одинаковых карточек */
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; }
.stat { padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .v { font-size: 30px; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; line-height: 1.1; }
.stat .v small { font-size: 15px; color: var(--faint); font-weight: 600; letter-spacing: 0; }
.stat .meter { margin-top: 12px; }
.stat .n { font-size: 13px; color: var(--muted); margin-top: 6px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel.pad { padding: 18px 20px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }

/* Таблица отделов */
.dhead, .drow { display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(150px, 2fr) 136px 84px; gap: 16px; align-items: center; padding: 0 18px; }
.dhead { min-height: 40px; font-size: 12.5px; font-weight: 600; color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap; }
.drow { min-height: 68px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line-2); text-align: left; }
.drow:last-child { border-bottom: 0; border-radius: 0 0 var(--r) var(--r); }
.drow:hover { background: #f8faf8; }
.drow.sel { background: var(--pitch-l); }
.dname { display: flex; align-items: center; gap: 12px; font-weight: 650; min-width: 0; }
.dprog .t { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.dtime { font-size: 13px; color: var(--muted); }

/* Лента */
.feed { padding: 6px 0; max-height: 640px; overflow: auto; }
.fi { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.fi:last-child { border-bottom: 0; }
.fi .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pitch-m); margin-top: 6px; justify-self: center; }
.fi.reset .dot { background: var(--danger); }
.fi.info .dot { background: var(--gold); }
.fi .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.empty { padding: 28px 18px; color: var(--muted); text-align: center; }

/* Боковая панель отдела */
.scrim { position: fixed; inset: 0; background: rgba(10,30,20,.32); z-index: 40; border: 0; padding: 0; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); z-index: 41; box-shadow: -12px 0 32px rgba(10,30,20,.18); display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; flex: 1; }
.drawer-body { overflow: auto; padding: 4px 18px 24px; flex: 1; }

/* Чек-лист */
.items { margin: 0; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.item:last-child { border-bottom: 0; }
.item .txt { flex: 1; min-width: 0; font-size: 16px; }
.item .when { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.item.done .txt { color: var(--muted); }
.chk { width: 36px; height: 36px; flex: none; border-radius: 10px; border: 2px solid #aebdb4; background: var(--surface); display: grid; place-items: center; color: #fff; }
button.chk:hover:not(:disabled) { border-color: var(--pitch-m); background: var(--pitch-l); }
button.chk:disabled { cursor: default; }
.item.done .chk { background: var(--pitch-m); border-color: var(--pitch-m); }

/* Экран руководителя отдела */
.dtop { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.dtop img { height: 40px; width: auto; }
.dtop .brandline { display: flex; align-items: center; gap: 10px; font-weight: 700; flex: 1; min-width: 0; }
.dpage { max-width: 680px; margin: 0 auto; padding: 20px 16px 60px; }
.dhero { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dhero h1 { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.dhero p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.progress-card { padding: 16px 18px; margin-bottom: 14px; }
.progress-card .big { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.progress-card .big b { font-size: 30px; letter-spacing: -.02em; }
.progress-card .big b span { font-size: 18px; font-weight: 600; color: var(--muted); }
.dpage .item { padding: 14px 0; min-height: 68px; }
.dpage .chk { width: 40px; height: 40px; border-radius: 11px; }
.fb { background: var(--paper); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 8px; white-space: pre-wrap; font-size: 14px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--gold-l); color: var(--gold-d); font-weight: 600; margin-bottom: 14px; }

/* Мероприятия и настройки */
.erow { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.erow:last-child { border-bottom: 0; }
.erow .grow { flex: 1; min-width: 200px; }
.erow .grow b { display: block; font-size: 15.5px; }
details.acc { border-bottom: 1px solid var(--line-2); }
details.acc:last-child { border-bottom: 0; }
details.acc summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 650; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .chev { margin-left: auto; color: var(--faint); transition: transform .15s; }
details.acc[open] summary .chev { transform: rotate(90deg); }
details.acc .acc-body { padding: 0 18px 18px; }
.sep { height: 1px; background: var(--line); margin: 16px 0; }
.report-item { padding: 6px 0; font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.report-item .rmark { width: 16px; flex: none; font-weight: 800; }
.report-item .rmark.y { color: var(--pitch-m); }
.report-item .rmark.n { color: var(--danger); }

/* ───────── модальные окна и уведомления ───────── */
.overlay { position: fixed; inset: 0; background: rgba(10,30,20,.45); display: grid; place-items: center; padding: 16px; z-index: 60; }
.modal { background: var(--surface); border-radius: 16px; padding: 24px; width: 100%; max-width: 420px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(10,30,20,.3); }
.modal h3 { font-size: 20px; letter-spacing: -.01em; }
.modal .actions { justify-content: flex-end; margin-top: 18px; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px 12px 16px; box-shadow: 0 10px 28px rgba(10,30,20,.3); font-size: 14px; border-left: 4px solid var(--pitch-m); }
.toast b { display: block; font-size: 15px; }
.toast .meta { font-size: 12.5px; opacity: .72; margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: tin .18s ease-out; }
  @keyframes tin { from { transform: translateY(8px); opacity: 0; } }
}

/* ───────── планшет и телефон ───────── */
@media (max-width: 1380px) {
  .cols { grid-template-columns: 1fr; }
  .feed { max-height: 420px; }
}
@media (max-width: 899px) {
  .login { grid-template-columns: 1fr; }
  .brandpanel { padding: 24px; min-height: 0; gap: 28px; }
  .pitch { display: none; }
  .brandpanel h1 { font-size: 28px; max-width: none; }
  .chooser { padding: 24px 16px 40px; }
  .chooser-top { margin-bottom: 20px; }

  .shell { grid-template-columns: 1fr; padding-bottom: 68px; }
  .side { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-right: 0; }
  .side-brand, .side-foot { display: none; }
  .nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; gap: 6px; }
  .nav-item { flex-direction: column; justify-content: center; gap: 3px; min-height: 52px; font-size: 12px; padding: 0 4px; text-align: center; box-shadow: none !important; }
  .mobilebar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 700; position: sticky; top: 0; z-index: 20; }
  .mobilebar img { height: 38px; width: auto; }
  .mobilebar .grow { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
  .page { padding: 20px 16px 32px; }
  .pagehead h1 { font-size: 22px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 14px 16px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat .v { font-size: 24px; }

  .dhead { display: none; }
  .drow { grid-template-columns: 1fr auto; grid-template-areas: "name pill" "prog prog"; gap: 10px 12px; padding: 14px 16px; }
  .drow .dname { grid-area: name; }
  .drow .dprog { grid-area: prog; }
  .drow .pill { grid-area: pill; justify-self: end; }
  .drow .dtime { display: none; }
  .dgrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .drawer { width: 100%; }
}

/* ───────── доработки: проблемы, отсчёт, связь, подтверждения ───────── */
.pill.has-ic::before { display: none; }
.pill.has-ic .ic { margin-left: -2px; }
.seg i.bad { background: var(--danger); }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-solid:hover { background: #9a2f0e; }
a.btn { text-decoration: none; }

.conn { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; background: var(--danger); color: #fff; font-weight: 600; font-size: 14px; text-align: center; }
.conn[hidden] { display: none; }

.toast.t-issue { border-left-color: #ff7b52; background: #3a1d14; }
.toast.t-err { border-left-color: #ff7b52; }
.toast b { font-size: 14px; }
.toast .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.modal.wide { max-width: 780px; }
.modal-head { display: flex; align-items: center; gap: 12px; }
.modal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.confirm p { margin-top: 8px; line-height: 1.5; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.access-text { margin-top: 14px; min-height: 140px; font-size: 14px; background: var(--paper); }
.dtile.bad { background: var(--danger-l); color: var(--danger); }

/* проблема по пункту */
.issue { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--danger-l); color: var(--danger); font-size: 13.5px; line-height: 1.4; text-decoration: none; }
.issue .ic { margin-top: 1px; }
.issue small { display: block; color: #a7593f; font-size: 12px; margin-top: 2px; }
.issue.resolved { background: var(--line-2); color: var(--muted); }
.issue.resolved small { color: var(--faint); }
.item.has-issue .chk { border-color: #e2a08a; }
.flagbtn { color: var(--muted); flex: none; }
.flagbtn:hover { color: var(--danger); border-color: #efc4b6; background: var(--danger-l); }
.flagbtn.on { color: var(--danger); border-color: #efc4b6; }
.item-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.item-actions:empty { display: none; }

/* экран отдела */
.cdline { margin: -4px 0 14px; }
.success { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--pitch-l); color: var(--pitch-d); font-weight: 600; font-size: 14px; }
.hint { margin-top: 12px; line-height: 1.5; }
.empty-state { text-align: center; padding: 36px 20px; color: var(--faint); }
.empty-state h2 { color: var(--ink); margin: 12px 0 6px; font-size: 18px; }
.empty-state .ic { margin: 0 auto; }
.empty-state.ok > .ic { color: var(--pitch); }

/* админка */
.count-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--danger);
  color: #fff; font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.stat.alert .v { color: var(--danger); }
.stat .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--pitch-m); box-shadow: 0 0 0 3px var(--pitch-l); }
@media (prefers-reduced-motion: no-preference) {
  .live i { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(43,181,82,.12); } }
}
.lead { margin: -6px 0 16px; max-width: 72ch; }
.acc-n { margin-left: auto; font-weight: 500; }
details.acc summary .pill { margin-left: 4px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.settings-grid .panel + .panel { margin-top: 0; }
.erow .row { flex: none; }

@media (max-width: 899px) {
  .settings-grid { grid-template-columns: 1fr; }
  .nav-item { position: relative; }
  .count-badge { position: absolute; top: 4px; right: calc(50% - 26px); margin: 0; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  .acc-n { display: none; }
  details.acc summary .pill { margin-left: auto; }
}
@media (max-width: 420px) {
  .flagbtn .lbl { display: none; }
  .flagbtn { width: 38px; padding: 0; }
  .two { grid-template-columns: 1fr; gap: 0; }
}

/* плашка «нет связи» сдвигает закреплённые шапки, а не закрывает их */
body.offline { padding-top: var(--conn-h, 44px); }
body.offline .dtop, body.offline .mobilebar { top: var(--conn-h, 44px); }
body.offline .side { top: var(--conn-h, 44px); height: calc(100vh - var(--conn-h, 44px)); }
.empty-state .fb { color: var(--ink); text-align: left; }
@media (max-width: 899px) {
  body.offline .side { top: auto; height: auto; }
  .pagehead .actions { width: 100%; }
  .pagehead .actions .btn { flex: 1 1 auto; }
}

.fb-count { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: right; }
.fb-count .ok { color: var(--pitch); font-weight: 600; }

.fb-hint { margin: 8px 0 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.fb-hint p { margin: 0; }
.fb-hint ol { margin: 4px 0 6px; padding-left: 22px; }
.fb-hint li { margin: 2px 0; }

.features { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; max-width: 40ch; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--ink); }
.features .ic { flex: none; color: var(--pitch); margin-top: 1px; }
@media (max-width: 899px) { .features { display: none; } }

.pitch { display: none; }
.features { max-width: 46ch; }
.brandpanel h1 { max-width: 14ch; }
