* { box-sizing: border-box; margin: 0; }
body { font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
       background: #f4f4f8; color: #1a1a2e; }
main { max-width: 480px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.3rem; margin: 12px 0; }
h2 { font-size: 1.1rem; margin: 10px 0; }
.muted { color: #777; }
.card { background: #fff; border-radius: 12px; padding: 14px; margin: 10px 0;
        box-shadow: 0 1px 3px rgba(0,0,0,.08); }
button, .btn { display: block; width: 100%; padding: 14px; border: 0;
        border-radius: 10px; font-size: 1rem; background: #1a1a2e; color: #fff;
        text-align: center; cursor: pointer; margin: 8px 0; }
button:disabled { background: #bbb; }
button.secondary { background: #e8e8ef; color: #1a1a2e; }
input { width: 100%; padding: 12px; font-size: 1.1rem; border: 1px solid #ccc;
        border-radius: 10px; margin: 6px 0; }
.zone { display: flex; justify-content: space-between; align-items: center; }
.status { font-size: .85rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st-not_started { background: #eee; color: #555; }
.st-accepted { background: #d8f5dc; color: #1c7c2e; }
.st-needs_retake, .st-needs_fix { background: #ffe1e1; color: #c0392b; }
.st-pending, .st-manual_review { background: #fff3cd; color: #8a6d00; }
.verdict-ok { color: #1c7c2e; font-size: 1.2rem; font-weight: 700; }
.verdict-bad { color: #c0392b; font-size: 1.05rem; font-weight: 600; }
.feedback { margin: 10px 0; }
.spinner { text-align: center; padding: 30px 0; color: #777; }
.error { color: #c0392b; margin: 8px 0; }
.cam-wrap { position: relative; width: 100%; border-radius: 12px; overflow: hidden;
            background: #000; }
.cam-wrap video { width: 100%; display: block; }
.cam-overlay { position: absolute; inset: 0; width: 100%; height: 100%;
               object-fit: cover; opacity: .35; pointer-events: none; }
.cam-hint { position: absolute; top: 8px; left: 0; right: 0; text-align: center;
            color: #fff; text-shadow: 0 1px 3px #000; font-size: .85rem;
            pointer-events: none; }
.cam-shoot { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
             width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff;
             background: rgba(255,255,255,.35); padding: 0; margin: 0; }

.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.topbar h1{margin:0;}
.topbar .secondary{width:auto;flex:0 0 auto;}
