:root { --bg: #000; --fg: #fff; --red: #e8000d; --mut: rgba(255, 255, 255, 0.66); --line: rgba(255, 255, 255, 0.2); --card: #0b0b0b; --head: "Barlow Semi Condensed", Barlow, "Arial Narrow", Arial, sans-serif; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.42 Barlow, "Helvetica Neue", Arial, sans-serif; -webkit-text-size-adjust: 100%; }
button, input, select { font: inherit; }
.wrap { max-width: 600px; margin: 0 auto; padding: 0 18px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(0, 0, 0, 0.94); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; background: none; border: 0; color: var(--fg); font-weight: 600; font-size: 16px; padding: 6px 0; cursor: pointer; }
.logo { background: var(--red); color: #fff; border-radius: 6px; padding: 3px 7px; font-weight: 700; }
.top-r { display: flex; gap: 8px; }
.pill { min-height: 42px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--fg); font-weight: 600; cursor: pointer; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; border-top: 3px solid var(--line); color: var(--mut); font-size: 13px; font-weight: 600; padding: 8px 0 2px; cursor: pointer; }
.step b { font-size: 15px; }
.step.on { color: #fff; border-top-color: var(--red); }
.step.done { color: #fff; border-top-color: #fff; }
main { padding-top: 14px; padding-bottom: 24px; }
.h1 { font: 700 38px/1.04 var(--head); margin: 14px 0 10px; }
.h2 { font: 700 30px/1.08 var(--head); margin: 8px 0 8px; }
.h3 { font: 700 21px/1.15 var(--head); margin: 4px 0 10px; }
.lead { font-size: 18px; color: rgba(255, 255, 255, 0.86); margin: 0 0 8px; }
.help { color: rgba(255, 255, 255, 0.84); margin: 0 0 16px; }
.sec { color: #ff4d55; font-weight: 700; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; margin: 8px 0 0; }
.btns { display: grid; gap: 12px; margin: 18px 0; }
.btns.row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 10px 0 4px; }
.btn, .btn2 { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 6px 18px; border-radius: 12px; font-weight: 700; font-size: 18px; cursor: pointer; text-align: center; text-decoration: none; }
.btn { background: var(--red); color: #fff; border: 0; }
.btn2 { background: none; color: #fff; border: 2px solid #fff; }
.btn3 { background: none; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; min-height: 44px; padding: 0 6px; cursor: pointer; }
.btn:focus-visible, .btn2:focus-visible, .btn3:focus-visible, .big:focus-visible, .seg button:focus-visible, .pill:focus-visible, .step:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn:active, .btn2:active, .big:active { transform: scale(0.99); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 8px; }
.nav .btn { min-width: 150px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 16px 0; background: var(--card); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.fld { display: grid; gap: 6px; grid-column: span 6; }
.fld.half { grid-column: span 3; }
.fld.third { grid-column: span 2; }
.fld > span { font-size: 15px; color: rgba(255, 255, 255, 0.86); }
input[type="text"], input[type="email"], input:not([type]), select { width: 100%; min-height: 52px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.32); background: #121212; color: #fff; padding: 0 14px; font-size: 18px; }
input:focus, select:focus { outline: none; border-color: #fff; }
input:disabled, select:disabled { opacity: 0.45; }
.up { text-transform: uppercase; }
.chk { display: flex; align-items: center; gap: 12px; min-height: 46px; grid-column: span 6; cursor: pointer; }
.chk input { width: 24px; height: 24px; accent-color: var(--red); flex-shrink: 0; }
.seg { grid-column: span 6; display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { flex: 1 1 140px; min-height: 50px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.32); background: none; color: #fff; font-weight: 600; cursor: pointer; padding: 6px 10px; }
.seg button.sel { background: #fff; color: #000; border-color: #fff; }
.seg.center { justify-content: center; margin: 8px 0; }
.seg.center button { flex: 0 1 140px; }
.seg-l { width: 100%; font-size: 15px; color: rgba(255, 255, 255, 0.86); }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.choices { display: grid; gap: 10px; margin: 8px 0; }
.big { min-height: 60px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.35); background: none; color: #fff; font-size: 19px; font-weight: 700; cursor: pointer; padding: 8px 16px; text-align: left; }
.yn .big { text-align: center; font-size: 22px; min-height: 72px; }
.big.sel { background: #fff; color: #000; border-color: #fff; }
.na { width: 100%; margin-top: 12px; }
.msg p { margin: 12px 0 0; }
.err { background: rgba(232, 0, 13, 0.2); border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 8px; }
.warn, .warnbox { background: rgba(255, 196, 0, 0.14); border-left: 4px solid #ffc400; padding: 10px 12px; border-radius: 8px; }
.warnbox { margin: 12px 0; }
.warnbox p { margin: 4px 0; }
.okline { color: #9fe39f; font-weight: 600; }
.link { display: inline-block; margin: 10px 0; color: #fff; font-weight: 600; }
.items { display: grid; gap: 10px; margin: 8px 0; }
.item { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.item.bad { border-color: var(--red); }
.item b { display: block; word-break: break-word; }
.item small { display: block; color: var(--mut); }
.item-b { display: flex; gap: 2px; flex-shrink: 0; }
.editor { border: 2px solid #fff; border-radius: 14px; padding: 14px; margin: 12px 0; }
.ed-h { font-weight: 700; margin: 0 0 12px; }
.add { width: 100%; margin-top: 8px; }
.muted { color: var(--mut); }
.center { text-align: center; }
.plan { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.plan li { display: flex; gap: 14px; align-items: center; font-size: 18px; }
.plan b { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #000; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.nums { padding-left: 22px; display: grid; gap: 8px; }
.nums.plain { list-style: none; padding-left: 0; }
.forms { padding-left: 22px; display: grid; gap: 10px; font-size: 18px; }
.forms .maybe { color: var(--mut); }
.forms small { display: block; font-size: 14px; }
.forms.sm { font-size: 15px; gap: 6px; }
.lbl { font-weight: 700; margin: 16px 0 0; }
.note { color: var(--mut); font-size: 15px; }
.rv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rv-row:last-child { border-bottom: 0; }
.rv-row small { display: block; color: var(--mut); font-size: 13px; }
.rv-row b { font-weight: 600; word-break: break-word; }
.danger { width: 100%; border-color: var(--red); margin: 10px 0 24px; }
.foot { color: var(--mut); font-size: 14px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.working { display: flex; align-items: center; gap: 14px; }
.spin { width: 28px; height: 28px; border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: var(--red); border-radius: 50%; animation: sp 0.9s linear infinite; display: inline-block; flex-shrink: 0; }
.spin.sm { width: 16px; height: 16px; border-width: 2px; vertical-align: -3px; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.errbox { border-color: var(--red); }
.photo-wrap { display: flex; justify-content: center; margin: 10px 0; }
.photo { width: 240px; background: #fff; display: block; outline: 1px solid rgba(255, 255, 255, 0.4); }
.checks { list-style: none; padding: 0; display: grid; gap: 8px; margin: 0 0 14px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks i { flex: 0 0 20px; height: 20px; border-radius: 50%; margin-top: 2px; background: #fff; }
.checks li.lv-warn i { background: var(--red); }
.checks li.lv-warn { font-weight: 700; }
.checks li.lv-info i { background: none; border: 2px solid rgba(255, 255, 255, 0.6); }
.adj summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
input[type="range"] { width: 100%; accent-color: var(--red); min-height: 40px; }
.sheet { width: 100%; max-width: 340px; display: block; margin: 10px auto; background: #fff; }
.end { margin-top: 26px; }
@media (min-width: 640px) { .h1 { font-size: 46px; } }
