/* Biuro — стиль A (затверджений 27.11.2026): світлий, спокійні білі картки, Manrope. */
/* Атрибут hidden має ховати й картки та кнопки, у яких свій display (інакше «Показати оригінал» нічого не ховає). */
[hidden] { display: none !important; }

:root {
  --bg: #F5F4F0;
  --card: #FFFFFF;
  --text: #15171A;
  --muted: #5B616B;
  --line: #ECEAE4;
  --border: #D9D7D0;
  --ok-bg: #E3F3EA; --ok: #17603F;
  --warn-bg: #FFF1D6; --warn: #7A4A00;
  --bad-bg: #FCE4E2; --bad: #9A2A1F;
  --info-bg: #E6EEFB; --info: #1F4E99;
  --link: #1F5FBF;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--link); }
h1 { margin: 2px 0 0; font-size: 24px; font-weight: 700; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding: calc(16px + env(safe-area-inset-top)) 16px 96px; display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.card { background: var(--card); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.card.dark { background: var(--text); color: #fff; }
.card.dark .muted { color: #C9CDD3; }
.card.list { padding: 4px 16px; gap: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.title { font-size: 15px; font-weight: 600; }
.big { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; }
.section-label { margin: 6px 4px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.grey { background: #EEF0F3; color: #3A4250; }
.btn { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: 14px; }
.btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn.wide { width: 100%; min-height: 48px; font-size: 15px; }
.btn.link { border: 0; background: none; color: var(--link); padding: 0 6px; }
.btn:disabled { opacity: 0.5; }
.btns { display: flex; gap: 8px; }
.btns .btn { flex: 1; }
.check { width: 26px; height: 26px; border-radius: 13px; border: 2px solid #C9C6BE; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; }
.check.on { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.task-done .title { color: var(--muted); text-decoration: line-through; }
.prose { white-space: pre-line; font-size: 14px; line-height: 1.6; }
.notice { background: var(--info-bg); color: #1A3F7A; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.back { width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; display: flex; align-items: center; justify-content: center; }
.avatar { width: 40px; height: 40px; border-radius: 20px; background: var(--info-bg); color: var(--info); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.code { font-size: 44px; font-weight: 700; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
input.code-input { width: 100%; height: 56px; font: inherit; font-size: 28px; font-weight: 700; letter-spacing: 6px; text-align: center; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: space-around; align-items: center;
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #E2E0DA;
}
nav.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; min-width: 64px; min-height: 44px; justify-content: center; position: relative; }
nav.tabs a.on { color: var(--text); font-weight: 600; }
nav.tabs .dot { position: absolute; top: 2px; right: 16px; width: 8px; height: 8px; border-radius: 4px; background: #D9534F; }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; font-size: 14px; }
.spinner { text-align: center; color: var(--muted); padding: 40px 0; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 10; opacity: 0; transition: opacity .25s ease; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; }
ol.steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
/* Розкладка без вбудованих стилів (CSP забороняє style="…"). */
.plain { text-decoration: none; color: inherit; }
.notice.plain { color: #1A3F7A; }
.hstack { display: flex; align-items: center; gap: 10px; }
.hstack.tight { gap: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.h-sm { font-size: 18px; }
.label { font-weight: 600; }
.centered { justify-content: center; min-height: 100vh; padding-bottom: 40px; }
.center-text { text-align: center; }
.script-box { width: 100%; font: 12px ui-monospace, monospace; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
