:root { --bg: #14161a; --card: #1e2127; --ink: #eef0f3; --mute: #a3a9b4; --accent: #f2b33d; --red: #e5484d; --line: #2f343c; --ok: #46a758; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { padding: 18px 16px 4px; max-width: 640px; margin: 0 auto; }
h1 { font-size: 1.35rem; margin: 0; }
h1 span { display: block; color: var(--accent); font-size: 1rem; font-weight: 600; }
.lede { color: var(--mute); margin: 6px 0 0; }
main { max-width: 640px; margin: 0 auto; padding: 8px 16px 40px; }
.screen { display: none; }
.screen.active { display: block; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 108px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 1rem system-ui, sans-serif; text-align: center; cursor: pointer; }
.big:active { transform: scale(.98); }
.big .ico { font-size: 1.7rem; line-height: 1; color: var(--accent); }
.big .ico.rec { color: var(--red); }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file:focus-within { outline: 2px solid var(--accent); }
fieldset.loc { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0 14px; background: var(--card); }
legend { padding: 0 6px; font-weight: 600; }
.why { color: var(--mute); margin: 0 0 8px; font-size: .92rem; }
.opt { display: block; padding: 8px 0; border-top: 1px solid var(--line); }
.opt small { display: block; color: var(--mute); margin-left: 26px; }
.consent { display: block; margin-top: 10px; padding: 10px; border-radius: 10px; background: #2a2416; border: 1px solid #5c4a1d; }
input[type=radio], input[type=checkbox] { width: 18px; height: 18px; vertical-align: -3px; accent-color: var(--accent); }
.del { margin: 8px 0; color: var(--mute); }
.del summary { cursor: pointer; }
.del form { display: grid; gap: 8px; margin-top: 8px; }
input:not([type]), input[type=text] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0f1114; color: var(--ink); font-size: 1rem; }
button { font: 600 1rem system-ui, sans-serif; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 12px 16px; cursor: pointer; }
button.primary { background: var(--accent); color: #1a1406; border-color: var(--accent); }
button.ghost { background: transparent; }
button.small { padding: 8px 12px; font-size: .9rem; }
button:disabled { opacity: .5; }
.fine { color: var(--mute); font-size: .85rem; }
.msg { min-height: 1.2em; color: var(--accent); }
.msg.err { color: var(--red); }
.cam { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 3/4; max-height: 68vh; margin: 8px auto; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hud { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.timer { background: rgba(229,72,77,.9); color: #fff; padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 700; }
.gps { background: rgba(70,167,88,.92); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 700; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.camctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; }
.shutter, .recbtn { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: #fff; padding: 0; }
.recbtn { background: var(--red); }
.recbtn.on { border-radius: 18px; background: var(--red); transform: scale(.82); }
.prev { border-radius: 14px; overflow: hidden; background: #000; margin: 8px 0; }
.prev img, .prev video { width: 100%; max-height: 62vh; display: block; object-fit: contain; background: #000; }
.prev.batch { background: none; display: grid; gap: 10px; }
.bitem { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.bitem img, .bitem video { width: 96px; height: 96px; max-height: none; object-fit: cover; border-radius: 8px; }
.bitem input { width: 100%; margin: 4px 0; }
.bname { font-size: .85rem; color: var(--mute); word-break: break-all; }
.bstat { font-size: .85rem; min-height: 1.2em; }
#rcpt { white-space: pre-line; }
.info { color: var(--mute); font-size: .9rem; margin: 4px 0 10px; }
.where { display: block; margin: 8px 0; }
.locreview { padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: var(--card); }
.locreview p { margin: 0 0 8px; }
.row { display: flex; gap: 10px; justify-content: space-between; margin: 12px 0; }
.row button { flex: 1; }
.ts { margin: 8px 0; min-height: 0; }
.prog { position: relative; height: 26px; background: var(--card); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.prog #bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ok); transition: width .2s; }
.prog span { position: relative; display: block; text-align: center; font-size: .85rem; line-height: 26px; font-weight: 700; }
.receipt { font-size: 1rem; background: var(--card); border: 1px dashed var(--accent); border-radius: 12px; padding: 14px; text-align: center; }
.receipt b { font-size: 1.5rem; letter-spacing: .08em; user-select: all; }
@media (max-width: 360px) { .actions { grid-template-columns: 1fr; } }

/* ---- layout v2: header, hero, cards, auth, legal pages */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 760px; margin: 0 auto; padding: 14px 16px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .01em; }
.brand span { color: var(--accent); font-weight: 600; margin-left: 4px; }
nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--mute); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--ink); }
.hero { max-width: 760px; margin: 0 auto; padding: 10px 16px 6px; }
.hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.15; margin: 8px 0 10px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: var(--mute); margin: 0 0 12px; max-width: 60ch; }
.steps { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .92rem; }
.steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #1a1406; margin-right: 6px; font-size: .8rem; }
main { max-width: 760px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; }
.card.always { display: block; }
.card h2 { margin: 0 0 10px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { flex: 1; background: transparent; }
.tab.on { background: var(--accent); color: #1a1406; border-color: var(--accent); }
form label { display: block; margin: 0 0 10px; }
input[type=password], input[type=email], select, textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0f1114; color: var(--ink); font: inherit; margin-top: 4px; }
input:not([type]) { margin-top: 4px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink); }
.check input { flex: none; margin-top: 2px; }
a { color: var(--accent); }
.wide { width: 100%; margin-top: 6px; }
.hello { color: var(--mute); margin: 6px 0 0; }
.tip { color: var(--mute); font-size: .88rem; }
.mine { display: grid; gap: 8px; margin-bottom: 10px; }
.mine .row1 { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #171a1f; font-size: .9rem; }
.mine .st { font-weight: 700; text-transform: uppercase; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: #2c3138; }
.st.approved { background: #1f3b26; color: #8be09b; } .st.quarantine { background: #3b3320; color: #f2cf7a; } .st.rejected { background: #3b2020; color: #f29a9a; }
.danger { margin-top: 14px; } .danger summary { color: var(--red); cursor: pointer; }
.dangerbtn { background: var(--red); border-color: var(--red); color: #fff; }
.foot { text-align: center; color: var(--mute); font-size: .85rem; padding: 18px 16px 30px; }
.foot a { color: var(--mute); }
body.doc { background: var(--bg); }
.legal { max-width: 760px; margin: 0 auto; padding: 4px 16px 20px; }
.legal h1 { font-size: 1.7rem; margin: 6px 0; }
.legal h2 { font-size: 1.1rem; margin: 22px 0 6px; color: var(--accent); }
.legal p, .legal li { color: #d6d9de; }
.legal .ver { color: var(--mute); font-size: .88rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px; vertical-align: top; text-align: left; }
.legal th { background: var(--card); }
