:root {
  --bg: #f4f6fb; --card: #ffffff; --ink: #14213d; --muted: #5b6478; --line: #e1e5ee;
  --brand: #14213d; --accent: #ffb703; --good: #1a7f4b; --bad: #c0392b; --soft: #eef2fb;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1424; --card: #151f35; --ink: #e8ecf4; --muted: #9aa6bd; --line: #26324d; --brand: #e8ecf4; --soft: #1b2742; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.mark { background: var(--accent); color: #14213d; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; }
.gear { text-decoration: none; font-size: 22px; color: var(--muted); }
main { max-width: 760px; width: 100%; margin: 0 auto; padding: 0 16px 24px; flex: 1; }
.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 16px; }
h1 { font-size: 28px; line-height: 1.2; margin: 12px 0; }
h2 { font-size: 20px; margin: 22px 0 10px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 6px 0; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 10px 0; }
.hero { background: var(--brand); color: #fff; border: 0; }
@media (prefers-color-scheme: dark) { .hero { background: #1f3a6b; } }
.hero p { color: #d7deec; }
.pill { display: inline-block; background: var(--soft); border-radius: 999px; padding: 3px 10px; font-size: 13px; margin: 2px 4px 2px 0; }
.hero .pill { background: rgba(255,255,255,.14); color: #fff; }
.btn { display: inline-block; border: 0; border-radius: 12px; padding: 13px 18px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn.primary { background: var(--accent); color: #14213d; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.block { display: block; width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
select, input[type=date], textarea { width: 100%; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
textarea { min-height: 260px; resize: vertical; line-height: 1.55; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.task { display: block; text-decoration: none; }
.task:hover { border-color: var(--accent); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.score { font-size: 44px; font-weight: 900; }
.bar { height: 10px; background: var(--soft); border-radius: 6px; overflow: hidden; margin: 4px 0 10px; }
.bar > i { display: block; height: 100%; background: var(--accent); }
.ok { color: var(--good); } .no { color: var(--bad); }
.fix { border-inline-start: 4px solid var(--accent); padding-inline-start: 12px; margin: 12px 0; }
.fix del { color: var(--bad); } .fix ins { color: var(--good); text-decoration: none; font-weight: 600; }
.de { white-space: pre-wrap; background: var(--soft); border-radius: 10px; padding: 12px; }
.banner { background: #fff4d6; color: #5a4300; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.price { font-size: 22px; font-weight: 800; }
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 6px 0; border-bottom: 1px solid var(--line); }
ul.clean li:last-child { border-bottom: 0; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; margin-inline-end: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
[dir=rtl] .gear { margin: 0; }
