:root{
  --bg:#f3f4f6;--card:#fff;--text:#111827;--muted:#6b7280;
  --line:#e5e7eb;--primary:#111827;--green:#047857;--red:#b91c1c;--amber:#b45309;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
.app{max-width:720px;margin:auto;padding:18px 14px 40px}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--muted)}
h1{font-size:28px;margin:4px 0 0}h2{font-size:18px;margin:4px 0}
.badge,.count{padding:7px 10px;border-radius:999px;background:#e5e7eb;font-size:12px;font-weight:700}
.card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:18px;margin:12px 0;box-shadow:0 6px 24px rgba(0,0,0,.04)}
.dropzone{border:2px dashed #d1d5db;border-radius:18px;padding:30px 16px;text-align:center}
.camera-icon{font-size:44px}.dropzone h2{font-size:21px}.dropzone p,.muted{color:var(--muted);font-size:14px;line-height:1.55}
.actions{display:flex;justify-content:center;margin-top:18px}
.btn{border:0;border-radius:12px;padding:12px 16px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:44px}
.primary{background:var(--primary);color:white}.secondary{background:#eef2ff;color:#1e1b4b}.ghost{background:#f3f4f6;color:#374151}
.full{width:100%;margin-top:12px}.preview{display:block;width:100%;max-height:480px;object-fit:contain;border-radius:14px;margin-top:12px;background:#f9fafb}
.hidden{display:none!important}
.status{margin-top:12px;padding:11px 13px;border-radius:12px;background:#f3f4f6;font-size:13px;line-height:1.5}
.status.error{background:#fef2f2;color:var(--red)}.status.ok{background:#ecfdf5;color:var(--green)}
.section-head{display:flex;justify-content:space-between;align-items:center}
.admin-row{display:flex;gap:8px;margin-top:14px}.admin-row input{min-width:0;flex:1;border:1px solid var(--line);border-radius:12px;padding:12px}
.ref-item,.history-item{border-top:1px solid var(--line);padding:12px 0}.ref-item:first-child,.history-item:first-child{border-top:0}
.ref-title{font-weight:800}.small{font-size:12px;color:var(--muted);margin-top:4px}
.result-status{padding:16px;border-radius:16px;text-align:center;margin-bottom:14px}
.result-status.yes{background:#ecfdf5;color:var(--green)}.result-status.no{background:#fef2f2;color:var(--red)}.result-status.maybe{background:#fffbeb;color:var(--amber)}
.result-status .big{font-size:24px;font-weight:900}.score{font-size:14px;margin-top:4px}
.question{white-space:pre-wrap;background:#f9fafb;border-radius:12px;padding:13px;font-size:14px;line-height:1.55}
.match{border:1px solid var(--line);border-radius:14px;padding:13px;margin-top:10px}.match strong{display:block}
.match .meter{height:7px;background:#e5e7eb;border-radius:99px;margin-top:9px;overflow:hidden}.match .meter span{display:block;height:100%;background:#111827}
footer{text-align:center;color:var(--muted);font-size:12px;padding:10px 20px}
@media(max-width:520px){.admin-row{flex-direction:column}.admin-row .btn{width:100%}}
