/* KiDraht Asistent — one stylesheet, design tokens first. */
:root {
  --bg: #121c28;
  --surface: rgba(30, 48, 72, 0.7);
  --surface-2: rgba(36, 55, 80, 0.74);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f7f8;
  --muted: #b2c7cb;
  --faint: #86a3a8;
  --cyan: #3ec8e0;
  --sky: #38dbf8;
  --peach: #fdba74;
  --amber: #fcd34d;
  --rose: #fb7185;
  --green: #4ade80;
  --radius: 18px;
  --radius-sm: 12px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 560px at 88% -12%, rgba(43, 124, 240, 0.22), transparent 62%),
    radial-gradient(820px 560px at -8% 6%, rgba(62, 200, 224, 0.2), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(56, 219, 248, 0.12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(170deg, #1c2e45 0%, #152234 55%, #172538 100%);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 26px; height: 26px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(16, 26, 39, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.brand small { font: 500 10px var(--mono); letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase; margin-left: 4px; }
.nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); margin: 0 auto; }
.nav button {
  display: flex; align-items: center; gap: 8px;
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 550;
  transition: color 0.15s, background 0.15s;
}
.nav button:hover { color: var(--text); }
.nav button[aria-current="page"] { background: rgba(255, 255, 255, 0.09); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--peach); color: #2a1505; font: 700 11px/18px var(--sans); text-align: center; }
.top-right { display: flex; align-items: center; gap: 10px; }
.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.seg button { border: 0; background: transparent; color: var(--faint); padding: 5px 9px; border-radius: 7px; font: 600 11px var(--mono); letter-spacing: 0.08em; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.person { position: relative; }
.person > button {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  padding: 5px 12px 5px 5px; border-radius: 999px;
}
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(62, 200, 224, 0.25), rgba(253, 186, 116, 0.25)); border: 1px solid var(--line-strong); }
.avatar .icon { width: 16px; height: 16px; }
.person-name { display: grid; line-height: 1.15; text-align: left; }
.person-name b { font-size: 13px; font-weight: 600; }
.person-name span { font: 500 10px var(--mono); color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  padding: 6px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(21, 34, 50, 0.97); backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px; border-radius: 10px; text-align: left; }
.menu button:hover, .menu button[aria-checked="true"] { background: rgba(255, 255, 255, 0.06); }
.menu .demo-note { padding: 6px 8px 8px; font: 500 10px var(--mono); color: var(--faint); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Layout ---------- */
main { max-width: 1040px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 40px) 120px; }
.eyebrow { font: 600 11px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; }
h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 8px; font-weight: 650; }
h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0; font-weight: 620; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 620px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.head-row .lead { margin: 0; }
.stack { display: grid; gap: 14px; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px rgba(0, 0, 0, 0.25);
}
.card::before {
  content: "";
  position: absolute; left: 22px; right: 22px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 200, 224, 0.55), rgba(253, 186, 116, 0.45), transparent);
}
.card.flat::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05);
  padding: 9px 15px; border-radius: 11px; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, #67f0ff, #3fd8ef 45%, #2b7cf0); color: #0f1824; border-color: transparent; box-shadow: 0 6px 20px rgba(62, 200, 224, 0.25); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); padding: 8px 10px; }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* ---------- Ask ---------- */
.composer { display: grid; gap: 14px; padding: 14px; }
.composer-row { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea {
  flex: 1; resize: none; border: 0; outline: 0; background: transparent;
  font-size: 17px; line-height: 1.5; padding: 10px 8px; min-height: 48px; max-height: 160px;
}
.composer textarea::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted);
  padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 13px; font-weight: 550;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { color: #0e1722; background: var(--cyan); border-color: var(--cyan); }
.thread { display: grid; gap: 18px; margin-top: 26px; }
.q-bubble { justify-self: end; max-width: min(560px, 90%); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); padding: 10px 15px; border-radius: 16px 16px 4px 16px; }
.answer { display: grid; gap: 12px; }
.answer-meta { display: flex; align-items: center; gap: 8px; color: var(--faint); font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.rule {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  padding: 16px 18px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.rule .sig { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.rule.never { border-color: rgba(251, 113, 133, 0.35); }
.rule.never .sig { background: rgba(251, 113, 133, 0.14); color: var(--rose); }
.rule.must { border-color: rgba(251, 191, 36, 0.32); }
.rule.must .sig { background: rgba(251, 191, 36, 0.13); color: var(--amber); }
.rule.should .sig { background: rgba(56, 219, 248, 0.12); color: var(--sky); }
.rule.fact .sig { background: rgba(253, 186, 116, 0.13); color: var(--peach); }
.rule-label { font: 700 10px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.rule.never .rule-label { color: var(--rose); }
.rule.must .rule-label { color: var(--amber); }
.rule.should .rule-label { color: var(--sky); }
.rule.fact .rule-label { color: var(--peach); }
.rule h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 620; letter-spacing: -0.01em; }
.rule p { margin: 0; color: #d7e4e6; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: #e4edef; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 600 12px var(--mono); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--muted); }
.source { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; font: 500 11px var(--mono); color: var(--faint); letter-spacing: 0.06em; }
.auth { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(253, 186, 116, 0.35); background: rgba(253, 186, 116, 0.08); }
.notice .sig { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(253, 186, 116, 0.16); color: var(--peach); }
.notice.warn { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); }
.notice.warn .sig { background: rgba(251, 191, 36, 0.14); color: var(--amber); }
.notice p { margin: 0; }
.typing { display: flex; gap: 5px; padding: 8px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); opacity: 0.4; animation: pulse 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 50% { opacity: 1; transform: translateY(-2px); } }

/* ---------- Lists ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tile { display: grid; gap: 14px; text-align: left; color: inherit; border: 1px solid var(--line); }
.tile:hover { border-color: var(--line-strong); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(62, 200, 224, 0.16), rgba(253, 186, 116, 0.16)); border: 1px solid var(--line-strong); color: var(--cyan); }
.tile h2 { font-size: 18px; }
.meta { color: var(--faint); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 6px; font: 600 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.ok { color: var(--green); border-color: rgba(74, 222, 128, 0.25); }
.status.wait { color: var(--amber); border-color: rgba(251, 191, 36, 0.25); }
.status.off { color: var(--faint); }
.status.bad { color: var(--rose); border-color: rgba(251, 113, 133, 0.25); }
.status.source-review { display: block; padding: 12px 14px; border-radius: var(--radius-sm); font: 500 14px/1.6 var(--sans); letter-spacing: normal; text-transform: none; white-space: normal; }
.status.source-review::before { display: none; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row h3 { margin: 0; font-size: 15px; font-weight: 600; }
.row .sub { color: var(--faint); font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .tile-ico { margin: 0 auto 14px; width: 56px; height: 56px; }
.empty .tile-ico .icon { width: 26px; height: 26px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 12px; margin-top: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font: 600 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.input, .textarea {
  width: 100%; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.25);
  border-radius: 11px; padding: 10px 12px; outline: none;
}
.input:focus, .textarea:focus { border-color: rgba(62, 200, 224, 0.6); box-shadow: 0 0 0 3px rgba(62, 200, 224, 0.12); }
.textarea { resize: vertical; min-height: 84px; }
.strength-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.strength-pick button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.strength-pick button[aria-pressed="true"].never { color: var(--rose); border-color: rgba(251, 113, 133, 0.5); background: rgba(251, 113, 133, 0.08); }
.strength-pick button[aria-pressed="true"].must { color: var(--amber); border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.08); }
.strength-pick button[aria-pressed="true"].should { color: var(--sky); border-color: rgba(56, 219, 248, 0.5); background: rgba(56, 219, 248, 0.08); }

/* ---------- Reader ---------- */
.reader { display: grid; gap: 18px; }
.reader-top { display: flex; align-items: center; gap: 12px; }
.dots { display: flex; gap: 6px; margin-left: auto; }
.dots i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.dots i.on { background: linear-gradient(90deg, var(--cyan), var(--sky)); }
.page { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.visual {
  position: relative; min-height: 340px; display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    radial-gradient(240px 200px at 30% 30%, rgba(62, 200, 224, 0.25), transparent 70%),
    radial-gradient(280px 220px at 75% 70%, rgba(253, 186, 116, 0.28), transparent 70%),
    linear-gradient(160deg, #1c2d43, #2a2f3a);
  border-right: 1px solid var(--line);
}
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual .vis-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); color: #e9ecff; }
.visual .vis-ico .icon { width: 30px; height: 30px; }
.visual p { margin: 0; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(233, 236, 255, 0.7); }
.ai-tag { position: absolute; left: 14px; bottom: 14px; font: 600 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line-strong); padding: 4px 8px; border-radius: 8px; }
.page-body { padding: 26px; display: grid; align-content: start; gap: 12px; }
.page-body h2 { font-size: 24px; }
.page-body p { margin: 0; color: #dbe7e9; }
.reader-nav { display: flex; justify-content: space-between; gap: 10px; }

/* ---------- Quiz ---------- */
.quiz { display: grid; gap: 16px; }
.progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--peach)); transition: width 0.3s; }
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 12px; align-items: center; text-align: left; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; }
.option:hover { border-color: var(--line-strong); }
.option .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.option[aria-checked="true"] { border-color: rgba(62, 200, 224, 0.7); background: rgba(62, 200, 224, 0.07); }
.option[aria-checked="true"] .radio { border-color: var(--cyan); background: radial-gradient(circle, var(--cyan) 45%, transparent 50%); }
.result { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 34px 20px; }
.ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font: 650 30px var(--sans); }
.ring.ok { background: conic-gradient(var(--green) var(--p), rgba(255, 255, 255, 0.08) 0); }
.ring.bad { background: conic-gradient(var(--rose) var(--p), rgba(255, 255, 255, 0.08) 0); }
.ring span { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #172537; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; background: rgba(26, 42, 62, 0.97); border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); display: flex; gap: 8px; align-items: center; z-index: 50; }
.toast .icon { color: var(--green); }

/* ---------- Mobile ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar .nav { display: none; }
  .brand small, .person-name span { display: none; }
  .top-right { margin-left: auto; }
  .person > button { padding: 4px; }
  .person-name { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 30; justify-content: space-around; padding: 6px; border-radius: 20px;
    background: rgba(19, 32, 48, 0.9); backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
  .tabbar button { position: relative; flex: 1; display: grid; justify-items: center; gap: 3px; border: 0; background: transparent; color: var(--faint); padding: 7px 4px; border-radius: 14px; font-size: 11px; font-weight: 600; }
  .tabbar button[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
  .tabbar .badge { position: absolute; top: 2px; right: calc(50% - 22px); }
  .page { grid-template-columns: 1fr; }
  .visual { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .row { flex-wrap: wrap; }
  .row .actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* standalone signal icons + rule list */
.sig { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(62, 200, 224, 0.1); color: var(--cyan); }
.sig.never { background: rgba(251, 113, 133, 0.14); color: var(--rose); }
.sig.must { background: rgba(251, 191, 36, 0.13); color: var(--amber); }
.sig.should { background: rgba(56, 219, 248, 0.12); color: var(--sky); }
.sig.fact { background: rgba(253, 186, 116, 0.13); color: var(--peach); }
.rule-item { border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.rule-item.open { border-color: rgba(62, 200, 224, 0.28); }
.rule-head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; }
.rule-head:hover { background: rgba(255, 255, 255, 0.03); }
.rule-head:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.rule-head .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rule-head b { font-weight: 600; color: var(--text); }
.rule-body { padding: 0 16px 16px 68px; color: #d7e4e6; }
.rule-body p { margin: 0 0 8px; }
@media (max-width: 900px) { .rule-body { padding-left: 16px; } }
.reader-top > .btn { min-width: 0; max-width: 70%; }
.reader-top > .btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dots { flex: none; }
.dots i { width: clamp(10px, 4vw, 22px); }
.page > * { min-width: 0; }
.page-body { overflow-wrap: anywhere; }
@media (max-width: 1180px) and (min-width: 901px) { .person-name, .brand small { display: none; } }
.reader, .quiz { min-width: 0; }
.reader > *, .quiz > * { min-width: 0; }
.reader-top > .btn { flex: 0 1 auto; overflow: hidden; }
.reader-top .meta { white-space: nowrap; }

/* translations */
.tr { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); display: grid; gap: 10px; }
.tr-pills { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field-label { font: 600 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.tr-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--line-strong); background: transparent; color: var(--muted); font: 600 11px var(--mono); letter-spacing: 0.08em; }
.tr-pill.has { border-style: solid; color: var(--cyan); border-color: rgba(62, 200, 224, 0.4); background: rgba(62, 200, 224, 0.08); }
.tr-pill[aria-pressed="true"] { color: #2a1505; background: var(--peach); border-color: var(--peach); }
.tr-preview { padding: 10px 12px; border-radius: 12px; background: rgba(253, 186, 116, 0.07); border: 1px solid rgba(253, 186, 116, 0.2); }
.tr-preview p { margin: 2px 0 0; }
.tr-source { margin: 0; font-size: 13px; color: var(--faint); }
.tr .form { margin-top: 0; }

/* avatars by role */
.avatar.owner { background: linear-gradient(135deg, rgba(253, 186, 116, 0.55), rgba(251, 146, 60, 0.35)); color: #2a1505; }
.avatar.editor { background: linear-gradient(135deg, rgba(56, 219, 248, 0.45), rgba(62, 200, 224, 0.3)); }
.avatar.worker { background: linear-gradient(135deg, rgba(62, 200, 224, 0.45), rgba(74, 222, 128, 0.25)); }
.avatar.out { background: rgba(255, 255, 255, 0.06); }
.avatar.lg { width: 56px; height: 56px; }
.avatar.lg .icon { width: 24px; height: 24px; }
.menu-out { border-top: 1px solid var(--line) !important; border-radius: 0 0 10px 10px !important; margin-top: 4px; color: var(--muted); }

/* login */
.login { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 32px 16px; }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 20px; letter-spacing: -0.02em; }
.login-brand img { width: 38px; height: 38px; }
.login-brand small { font: 500 10px var(--mono); letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase; }
.login-card { width: min(560px, calc(100vw - 32px)); padding: 28px; }
.login-card h1 { font-size: clamp(26px, 5vw, 34px); }
.login-card .lead { margin-bottom: 18px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.person-tile { display: grid; justify-items: center; gap: 6px; padding: 18px 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); text-align: center; transition: transform 0.15s, border-color 0.15s; }
.person-tile:hover { transform: translateY(-2px); border-color: rgba(62, 200, 224, 0.45); }
.person-tile b { font-size: 15px; }
.person-tile .meta { font-size: 12px; }
.demo-pin { font: 600 11px var(--mono); letter-spacing: 0.1em; color: var(--peach); padding: 2px 8px; border-radius: 99px; background: rgba(253, 186, 116, 0.1); }
.input.pin { font: 600 22px var(--mono); letter-spacing: 0.4em; text-align: center; }
.login-error { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; color: var(--rose); }
.login-lang { margin-top: 4px; }

/* image upload on a manual page */
.upload-btn { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; color: #2a1505; background: var(--peach); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.upload-btn:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.sub-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
@media (max-width: 900px) { .row .grow { flex: 1 1 calc(100% - 64px); } }
.lang-tag { font: 600 10px var(--mono); letter-spacing: 0.1em; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); }

/* team */
.form-row { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: end; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.input.pin-sm { font: 600 16px var(--mono); letter-spacing: 0.3em; max-width: 180px; }
.btn.danger { color: var(--rose); border-color: rgba(251, 113, 133, 0.35); background: transparent; margin-left: auto; }
.btn.danger:hover { background: rgba(251, 113, 133, 0.1); }
.you { margin-left: 8px; font: 600 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--peach); }
.rule-head:disabled { cursor: default; }
.settings { margin-top: 18px; display: grid; gap: 16px; }
.copy-box { display: flex; gap: 8px; align-items: center; }
.copy-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px var(--mono); padding: 10px 12px; border-radius: 11px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line-strong); }
.chosen { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.rule-head .avatar { flex: none; }
.settings, .settings .field, .copy-box { min-width: 0; } .settings .field > * { min-width: 0; }

/* Basis pack */
.src-name { color: var(--muted); letter-spacing: 0.02em; text-transform: none; }
.basis-pill { padding: 1px 7px; border-radius: 999px; background: rgba(62, 200, 224, 0.14); color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; }
.section-title { font-size: 15px; margin: 18px 0 8px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.card.basis { margin-top: 22px; }
.basis-head { display: flex; gap: 14px; align-items: flex-start; }
.basis-head .grow { min-width: 0; }
.basis-head h2 { margin: 0 0 4px; }
.basis-head .lead { margin: 0 0 6px; }
.card.basis .stack { margin-top: 14px; }
.src-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.src-list li { margin: 3px 0; }
.src-loc { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: var(--peach); }
@media (max-width: 600px) { .basis-head { flex-wrap: wrap; } .basis-head .btn { width: 100%; } }
.source { flex-wrap: wrap; }
.basis-head .grow { flex: 1; }
@media (max-width: 600px) {
  .ask-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 4px; }
  .ask-chips::-webkit-scrollbar { display: none; }
  .ask-chips > * { flex: 0 0 auto; }
}

/* AI short answer */
.ai-short { padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 14%, transparent), color-mix(in srgb, var(--peach) 10%, transparent)); border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent); }
.ai-short .rule-label { display: flex; align-items: center; gap: 6px; }
.ai-short p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.55; }
.cite { font: 600 10px var(--mono); color: var(--cyan); margin-left: 1px; }
.cite-num { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-right: 6px; border-radius: 8px; background: color-mix(in srgb, var(--cyan) 20%, transparent); color: var(--cyan); font: 600 10px var(--mono); }

/* references stay hidden behind a small toggle */
.src-toggle { margin-top: 8px; }
.src-toggle > summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 3px 9px; border-radius: 999px; font: 600 11px var(--mono); letter-spacing: 0.04em; color: var(--faint); border: 1px solid color-mix(in srgb, var(--faint) 35%, transparent); }
.src-toggle > summary::-webkit-details-marker { display: none; }
.src-toggle > summary:hover, .src-toggle[open] > summary { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }
.src-toggle .source { margin-top: 8px; }
.card.learned .learned-text { margin: 10px 0; line-height: 1.5; }
.card.learned .chips { margin-bottom: 12px; }
.chip.static { cursor: default; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 8px; }
.lead.small { font-size: 14px; margin: -4px 0 12px; }

.src-toggle .orig { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.auto-note { margin-top: 10px; }
.chip.ghost-chip { border-style: dashed; color: var(--muted); }

/* Topic manuals kept by KiDraht */
.status.auto { color: var(--accent, #7de9fc); border-color: rgba(125, 233, 252, 0.25); }
.custom-manual > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; list-style: none; }
.custom-manual > summary::-webkit-details-marker { display: none; }
.custom-manual[open] > summary { margin-bottom: 14px; }

/* ---------- Library (books) and tests ---------- */
.lib-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: -8px 0 16px; }
.lib-tools .seg button { font-size: 11px; padding: 7px 11px; }
.search-wrap { position: relative; flex: 1 1 240px; max-width: 420px; display: block; }
.search-wrap .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input.search { padding-left: 38px; }
.input.search::-webkit-search-cancel-button { filter: invert(0.8); }

.shelf {
  --gap: 14px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
  grid-auto-rows: calc((100% - var(--gap)) / 2);
  height: clamp(420px, calc(100dvh - 330px), 640px);
  overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scroll-padding: 0;
  padding: 2px 6px 2px 2px; margin-right: -6px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.shelf::-webkit-scrollbar { width: 6px; }
.shelf::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 6px; }
.book {
  position: relative; scroll-snap-align: start; min-height: 0; display: flex;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  overflow: hidden; transition: border-color 0.15s, transform 0.15s;
}
.book:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.book.picked { border-color: rgba(62, 200, 224, 0.75); box-shadow: 0 0 0 3px rgba(62, 200, 224, 0.14); }
.book-open, .book.test { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; min-height: 0; }
.book.test { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; scroll-snap-align: start; }
.book.test:hover { border-color: var(--line-strong); }
.book-open:focus-visible, .book.test:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; border-radius: var(--radius); }
.cover {
  position: relative; flex: 1 1 58%; min-height: 0; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(253, 186, 116, 0.28), transparent 55%),
    radial-gradient(120% 100% at 0% 100%, rgba(62, 200, 224, 0.26), transparent 60%),
    linear-gradient(160deg, #1f334d, #132030);
  border-bottom: 1px solid var(--line);
}
.cover::after { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(255, 255, 255, 0.16), transparent); }
.cover.k-own { background: radial-gradient(120% 90% at 85% 0%, rgba(253, 186, 116, 0.42), transparent 60%), linear-gradient(160deg, #3b3a3a, #242930); }
.cover.k-newcomer { background: radial-gradient(120% 90% at 85% 0%, rgba(56, 219, 248, 0.38), transparent 60%), linear-gradient(160deg, #1d3a55, #13283a); }
.cover.k-intern { background: radial-gradient(120% 90% at 85% 0%, rgba(252, 211, 77, 0.36), transparent 60%), linear-gradient(160deg, #3a3622, #24291f); }
.cover-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #eafcff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); }
.cover-ico .icon { width: 30px; height: 30px; }
.cover-kind { position: absolute; left: 22px; top: 14px; font: 600 10px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.book-body { flex: 0 0 auto; padding: 12px 16px 14px; display: grid; gap: 6px; }
.book-body h3 { margin: 0; font-size: 15px; font-weight: 620; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-body .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.status.req { color: var(--peach); border-color: rgba(253, 186, 116, 0.3); }
.pick {
  position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(14, 23, 34, 0.55); color: transparent; backdrop-filter: blur(6px);
}
.pick:hover { color: rgba(255, 255, 255, 0.6); }
.pick[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: #0e1722; }
.pickbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 18px; border-radius: 16px; background: rgba(19, 32, 48, 0.94); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); backdrop-filter: blur(16px); white-space: nowrap;
}
.pickbar > span { font-weight: 600; margin-right: 4px; }

/* sheets */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(8, 14, 21, 0.6); backdrop-filter: blur(4px); }
.sheet { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; display: grid; gap: 16px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.choice { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.choice:hover, .choice:focus-visible { border-color: rgba(62, 200, 224, 0.6); }
.choice b { display: block; }
.choice .meta { margin: 2px 0 0; font-size: 13px; color: var(--faint); }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

/* reader */
.reader-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.page.text-only { grid-template-columns: 1fr; }
.page.text-only .page-body { max-width: 720px; padding: 30px; }

/* tests */
.test-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.test-head .meta { display: flex; gap: 10px; color: var(--faint); font-size: 13px; margin-right: auto; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line-strong); position: relative; transition: background 0.15s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch input:checked + .track { background: var(--peach); border-color: var(--peach); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--cyan); outline-offset: 2px; }
.qrev h3 { margin: 0 0 10px; font-size: 16px; }
.opts { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; }
.opts li { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); display: flex; gap: 8px; align-items: center; }
.opts li.ok { color: var(--text); border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.07); }
.opts li.ok .icon { color: var(--green); }
.qcard.with-pic { display: grid; grid-template-columns: 0.9fr 1fr; gap: 20px; align-items: start; }
.qpic { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.qcard h2 { margin-bottom: 16px; }
.sign { text-align: left; display: grid; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid rgba(253, 186, 116, 0.35); background: rgba(253, 186, 116, 0.06); margin: 6px 0 4px; }
.sign h3 { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 16px; }
.sign p { margin: 0; color: var(--muted); }
.signed-note { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--green); margin: 4px 0; }

@media (max-width: 900px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); height: max(360px, calc(100dvh - 330px)); --gap: 12px; }
  .cover-ico { width: 52px; height: 52px; border-radius: 16px; }
  .cover-ico .icon { width: 24px; height: 24px; }
  .book-body { padding: 10px 12px 12px; }
  .book-body h3 { font-size: 14px; }
  .pickbar { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .qcard.with-pic { grid-template-columns: 1fr; }
  .lib-tools .search-wrap { max-width: none; flex-basis: 100%; }
}
@media (max-width: 900px) and (min-width: 601px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
main:has(> .shelf) { padding-bottom: 24px; }
@media (max-width: 900px) { main:has(> .shelf) { padding-bottom: 110px; } }
@media (max-width: 600px) {
  .shelf { height: max(330px, calc(100dvh - 440px)); }
  main:has(> .shelf) .head-row { margin-bottom: 18px; }
}
.cover { min-height: 84px; }
.book-body .meta { flex-wrap: nowrap; overflow: hidden; }
.book-body .meta .status { flex: none; }
.book-body .meta > span { white-space: nowrap; }
.lib-tools .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lib-tools .seg button { white-space: nowrap; }

/* ---------- Covers with pictures, Grundkurse, Librat (2026-11-02) ---------- */
.cover.has-img { place-items: stretch; background: #132030; overflow: hidden; }
.cover.has-img::after { left: 0; right: 0; width: auto; top: 0; bottom: auto; height: 46%; background: linear-gradient(rgba(7, 12, 18, 0.62), transparent); }
.cover-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.book:hover .cover-img, .book.test:hover .cover-img { transform: scale(1.04); }
.cover.has-img .cover-kind { z-index: 1; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }

/* Grundkurse: one colour per course, so the shelf reads at a glance */
.cover.k-course { background: radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, 0.16), transparent 55%), linear-gradient(160deg, #243853, #131f2f); }
.cover.c-kurs-erstehilfe { background: radial-gradient(120% 90% at 85% 0%, rgba(134, 239, 172, 0.34), transparent 58%), linear-gradient(160deg, #166534, #121d2c); }
.cover.c-kurs-brandschutz { background: radial-gradient(120% 90% at 85% 0%, rgba(253, 164, 175, 0.34), transparent 58%), linear-gradient(160deg, #9f1239, #4c0519); }
.cover.c-kurs-zeichen { background: radial-gradient(120% 90% at 85% 0%, rgba(253, 224, 71, 0.38), transparent 58%), linear-gradient(160deg, #1e3a8a, #0f1d47); }
.cover.c-kurs-baustelle { background: radial-gradient(120% 90% at 85% 0%, rgba(253, 186, 116, 0.42), transparent 58%), linear-gradient(160deg, #9a3412, #431407); }
.cover.has-img.k-course { background: #132030; }

/* Librat: drawn cover (title set like a real book) until a cover picture exists */
.cover.k-lib { --accent: #273f5e; place-items: stretch; background: radial-gradient(110% 80% at 90% 0%, color-mix(in srgb, var(--accent) 70%, white 10%), transparent 60%), linear-gradient(165deg, color-mix(in srgb, var(--accent) 55%, #0c141f), #0c141f); }
.cover.k-lib::after { left: 10px; }
.lib-art { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px 18px 16px 26px; }
.lib-art b { font-size: clamp(16px, 1.6vw, 21px); line-height: 1.12; letter-spacing: -0.01em; color: #fff; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lib-art small { font: 600 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

/* Small picture of a rule (Pro), in rule lists and answers */
.thumb { width: 44px; height: 44px; flex: none; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: var(--surface); }
.rule > .thumb { width: 52px; height: 52px; }

/* Reading a library book */
.book-reader { gap: 10px; }
.book-reader .reader-top .seg button { font-size: 11px; padding: 6px 10px; }
.book-sum { margin: 0; }
.book-frame { width: 100%; height: calc(100dvh - 210px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius); background: #0b121b; display: block; }
@media (max-width: 900px) { .book-frame { height: calc(100dvh - 250px); } }
@media (max-width: 600px) { .book-frame { height: calc(100dvh - 240px); border-radius: 14px; } .book-sum { display: none; } }
@media (prefers-reduced-motion: reduce) { .cover-img { transition: none; } }

/* Brand 2026-11: navy + glowing cyan wordmark, matching the KiDraht logo. */
.brand, .login-brand > span { color: #e6fcff; text-shadow: 0 0 14px rgba(63, 216, 239, 0.45); }
.brand img, .login-brand img { border-radius: 24%; box-shadow: 0 0 18px rgba(63, 216, 239, 0.28); }
.pwa-install{position:fixed;left:16px;bottom:16px;z-index:30;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:99px;border:1px solid #78dfeb66;background:#132031;color:#eef2f7;font:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 10px 30px #0008}
.pwa-install svg{color:#78dfeb}.pwa-install:hover{background:#18283c}
.pwa-installed .pwa-install{display:none}
.offline-page{max-width:640px;margin:auto;padding:56px 20px}
