:root {
  --navy: #11284b;
  --blue: #1a73e8;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --bg: #f4f6f9;
  --ok: #188038;
  --warn: #b06000;
  --bad: #c5221f;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.top { background: var(--navy); color: #fff; }
.top-inner, .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.brand-sub { font-weight: 400; opacity: .75; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .3); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #4285f4; }
.dots i:nth-child(2) { background: #ea4335; }
.dots i:nth-child(3) { background: #f9ab00; }
.dots i:nth-child(4) { background: #34a853; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.who img { border-radius: 50%; }
.top .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }

.btn {
  font: inherit; font-weight: 600; font-size: 14px;
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, tr:focus-visible { outline: 3px solid #8ab4f8; outline-offset: 2px; }

.gate { max-width: 440px; margin: 80px auto; background: #fff; border-radius: 16px; padding: 32px; text-align: center; }
.gate h1 { margin-top: 0; }
.error { color: var(--bad); min-height: 1.2em; }

.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin: 24px 0 12px; }
.event-pick { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
select, input, textarea { font: inherit; font-size: 14px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
textarea { padding: 10px 12px; width: 100%; resize: vertical; }
.tabs { display: flex; gap: 6px; background: #e8eaed; padding: 4px; border-radius: 999px; }
.tab { font: inherit; font-weight: 600; font-size: 14px; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tab[aria-pressed="true"] { background: #fff; color: var(--ink); }

.stats { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stats li { background: #fff; border-radius: 12px; padding: 10px 16px; color: var(--muted); font-size: 14px; }
.stats b { color: var(--navy); font-size: 20px; margin-right: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input[type="search"] { flex: 1 1 260px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.actions #shown { margin-right: auto; color: var(--muted); font-size: 14px; }
.progress { min-height: 1.2em; font-size: 14px; color: var(--muted); }

.table-wrap { background: #fff; border-radius: 16px; overflow: auto; }
.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list td { padding: 10px 12px; border-bottom: 1px solid #f1f3f4; vertical-align: top; }
.list tbody tr { cursor: pointer; }
.list tbody tr:hover { background: #f8f9fa; }
.list input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; }
.sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e8eaed; }
.pill-shortlisted { background: #fef7e0; color: var(--warn); }
.pill-confirmed { background: #e8f0fe; color: #1967d2; }
.pill-checkedin { background: #e6f4ea; color: var(--ok); }

dialog { border: 0; border-radius: 16px; padding: 24px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 48px); }
dialog::backdrop { background: rgba(17, 40, 75, .4); }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.detail-head h2 { margin: 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.notes-label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
.detail-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 10px; font-size: 14px; color: var(--muted); }

.scan { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 8px; }
.scan-video { position: relative; background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.scan-video video { width: 100%; height: 100%; object-fit: cover; }
.scan-hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); font-size: 14px; }
.scan-side { display: grid; gap: 16px; align-content: start; }
.manual label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.manual-row { display: flex; gap: 8px; }
.manual-row input { flex: 1; text-transform: uppercase; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.result { border-radius: 16px; padding: 16px 20px; background: #fff; min-height: 96px; }
.result p { margin: 4px 0; }
.result-title { font-size: 20px; font-weight: 700; }
.result-ok { background: #e6f4ea; color: var(--ok); }
.result-warn { background: #fef7e0; color: var(--warn); }
.result-bad { background: #fce8e6; color: var(--bad); }

@media (max-width: 760px) {
  .brand-sub, #who-email { display: none; }
  .scan { grid-template-columns: 1fr; }
  .list thead { display: none; }
  .list, .list tbody, .list tr, .list td { display: block; }
  .list tr { padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
  .list td { padding: 0; border: 0; }
  .list td:first-child { grid-row: span 3; }
  .list td[data-label="Level"], .list td[data-label="Expertise"] { display: none; }
}
