/* collab — мобильный интерфейс блогера и сотрудника. Без сборки, без внешних шрифтов. */
:root {
  --bg: #f6f5f3; --card: #ffffff; --fg: #1c1917; --muted: #6b645e; --line: #e7e3df;
  --accent: #0f766e; --accent-fg: #ffffff; --ok: #15803d; --warn: #b45309; --err: #b91c1c; --soft: #ecfdf5; --err-soft: #fef2f2;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141210; --card: #1f1c1a; --fg: #f3f1ee; --muted: #a8a19a; --line: #34302c;
          --accent: #2dd4bf; --accent-fg: #062b27; --ok: #4ade80; --warn: #fbbf24; --err: #f87171; --soft: #0f2a26; --err-soft: #2a1515; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
main { max-width: 640px; margin: 0 auto; padding: 16px 16px 96px; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 8px 0 12px; }
h2 { font-size: 1.15rem; margin: 20px 0 8px; }
.muted { color: var(--muted); font-size: .92rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.badge { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--accent); border: 1px solid var(--line); }
.badge.warn { color: var(--warn); } .badge.err { color: var(--err); } .badge.ok { color: var(--ok); }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
textarea { min-height: 96px; }
input[type=file] { font: inherit; max-width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn.danger { color: var(--err); }
.btn.block { width: 100%; }
.stack > * + * { margin-top: 10px; }
.msg { border-radius: 12px; padding: 12px 14px; margin: 12px 0; background: var(--soft); border: 1px solid var(--line); }
.msg.error { color: var(--err); background: var(--err-soft); border-color: var(--err); }
.code { font: 700 2rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.qr { display: flex; justify-content: center; }
.qr svg { width: 100%; max-width: 240px; height: auto; background: #fff; border-radius: 12px; padding: 8px; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
.tabs a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: .8rem; padding: 6px 0; }
.tabs a.on { color: var(--accent); font-weight: 700; }
.tabs .i { display: block; font-size: 1.3rem; line-height: 1.2; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; max-width: 640px; margin: 0 auto; }
.topbar .brand { font-weight: 800; text-decoration: none; color: var(--fg); }
.lang a, .lang strong { font-size: .85rem; margin-left: 8px; }
table.simple { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.simple td, table.simple th { border-bottom: 1px solid var(--line); padding: 8px 4px; text-align: left; vertical-align: top; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.timeline li { padding: 4px 0; border-left: 2px solid var(--line); padding-left: 10px; }
.big-actions .btn { min-height: 64px; font-size: 1.1rem; }
#scanner video { width: 100%; border-radius: 12px; background: #000; }
.hidden { display: none !important; }
