:root { --c: #1f4fd8; --bg: #f4f6fb; --card: #fff; --text: #1b1f2a; --muted: #667085; --line: #e3e7ef; --ok: #12a150; --warn: #d97706; --bad: #dc2626; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--c); }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px; }
.wide { max-width: 1100px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.hero { background: var(--c); color: #fff; border-radius: 14px; padding: 22px 20px; margin-bottom: 16px; }
.hero h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; }
.hero p { margin: 2px 0; opacity: .92; }
h2 { font-size: 18px; margin: 0 0 12px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 14px; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd5e1; border-radius: 10px; font: inherit; background: #fff; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--c); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 14px 0 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
button, .btn { display: inline-block; border: 0; background: var(--c); color: #fff; padding: 11px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
button.full { width: 100%; margin-top: 18px; padding: 14px; font-size: 16px; }
button.ghost, .btn.ghost { background: #eef1f7; color: var(--text); }
button.sm, .btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
button.danger { background: var(--bad); }
button:disabled { opacity: .6; cursor: default; }
.err { color: var(--bad); margin-top: 10px; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1; min-width: 140px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.top h1 { margin: 0; font-size: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.tablewrap { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef1f7; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.bad { background: #fee2e2; color: #991b1b; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.stat { background: #f4f6fb; border-radius: 10px; padding: 8px 12px; }
.stat b { display: block; font-size: 20px; }
.qr { display: block; margin: 10px auto; width: 260px; max-width: 100%; image-rendering: pixelated; }
.center { text-align: center; }
.hidden { display: none !important; }
.evlist .card { cursor: pointer; transition: border-color .15s; }
.evlist .card:hover { border-color: var(--c); }
.result { border-radius: 14px; padding: 18px; color: #fff; text-align: center; margin-top: 12px; }
.result h2 { font-size: 22px; margin: 0 0 4px; }
.result.ok { background: var(--ok); } .result.warn { background: var(--warn); } .result.bad { background: var(--bad); }
#reader { width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
