/* GateGuard design system — navy + gold, matching the product mockups. */
:root {
  --navy: #0f2443;
  --navy-2: #1a3561;
  --navy-3: #284a7e;
  --gold: #c9a24b;
  --gold-soft: #f6ecd2;
  --bg: #eef1f6;
  --card: #ffffff;
  --line: #e1e6ee;
  --line-2: #cfd7e3;
  --text: #0f1d33;
  --text-2: #44536b;
  --muted: #6b7a90;
  --green: #1f9d55;
  --green-soft: #def5e7;
  --green-ink: #137a3f;
  --red: #d33545;
  --red-soft: #fde4e6;
  --red-ink: #b02334;
  --amber: #c98500;
  --amber-soft: #fdf1d8;
  --amber-ink: #8a5b00;
  --blue-soft: #e3eefc;
  --blue-ink: #1d5aa6;
  --series-in: #2a78d6;
  --series-out: #eb6834;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 36, 67, .06), 0 4px 14px rgba(15, 36, 67, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }
.mb { margin-bottom: 16px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { font-weight: 400; opacity: .8; font-size: 15px; }
.topbar .spacer { flex: 1; }
.chip-dark {
  border: 1px solid rgba(201, 162, 75, .5);
  background: rgba(201, 162, 75, .14);
  color: #f1d48d;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- cards & layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; }
.narrow { max-width: 480px; margin: 0 auto; padding: 18px 16px 40px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h2 { font-size: 18px; }
.card h3 { font-size: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; } }
.footer-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 18px; font-weight: 600; cursor: pointer;
  background: var(--navy); color: #fff;
  transition: transform .05s ease, background .15s ease, opacity .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.lg { padding: 15px 22px; font-size: 18px; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn.ghost:hover { background: #f4f6fa; }
.btn.gold { background: var(--gold); color: #1c1404; }
.btn.gold:hover { background: #d6b25f; }
.btn.green { background: var(--green); }
.btn.green:hover { background: #178a49; }
.btn.red { background: var(--red); }
.btn.red:hover { background: #bd2b3a; }
.btn.danger-ghost { background: transparent; color: var(--red-ink); border-color: #f2c0c5; }
.btn.danger-ghost:hover { background: var(--red-soft); }
.btn.link { background: none; border: none; color: var(--blue-ink); padding: 4px 6px; font-weight: 500; }
.btn.link:hover { text-decoration: underline; background: none; }

.dir-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dir-btn {
  border: none; border-radius: 14px; color: #fff; font-weight: 800; font-size: 30px; letter-spacing: .02em;
  padding: 22px 10px; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.dir-btn small { font-size: 12px; font-weight: 600; opacity: .9; letter-spacing: 0; }
.dir-btn.in { background: var(--green); }
.dir-btn.out { background: var(--red); }
.dir-btn.dim { opacity: .45; box-shadow: none; }
.dir-btn:disabled { cursor: wait; }

/* ---------- forms ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(40, 74, 126, .15); }
.input.big { font-size: 22px; letter-spacing: .04em; padding: 14px 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.error-box { background: var(--red-soft); color: var(--red-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.info-box { background: var(--blue-soft); color: var(--blue-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.warn-box { background: var(--amber-soft); color: var(--amber-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.ok-box { background: var(--green-soft); color: var(--green-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 7px; padding: 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap; line-height: 1.6;
}
.badge.in { background: var(--green-soft); color: var(--green-ink); }
.badge.out { background: var(--red-soft); color: var(--red-ink); }
.badge.warn { background: var(--amber-soft); color: var(--amber-ink); }
.badge.info { background: var(--blue-soft); color: var(--blue-ink); }
.badge.neutral { background: #edf0f5; color: var(--text-2); }
.badge.gold { background: var(--gold-soft); color: #7a5a12; }
.pill-status { display: inline-block; border-radius: 999px; padding: 4px 16px; font-weight: 700; color: #fff; background: var(--green); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.in { background: var(--green); }
.dot.out { background: var(--red); }
.dot.pending { background: var(--gold); }

/* ---------- avatar ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; overflow: hidden; background: var(--navy-3);
  user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 132px; height: 132px; font-size: 44px; border: 5px solid var(--gold); box-shadow: 0 0 0 3px #fff inset; }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; border: 3px solid var(--gold); }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 600; color: var(--text-2); font-size: 13px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #f6f8fc; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }

/* ---------- tabs & chips ---------- */
.tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); }
.tabs button {
  flex: 1; border: none; background: none; padding: 14px 10px; font-size: 17px; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; cursor: pointer;
}
.tabs button.active { color: var(--navy); border-bottom-color: var(--gold); }
.tabs.dark { background: var(--navy); border-bottom: none; }
.tabs.dark button { color: rgba(255, 255, 255, .6); }
.tabs.dark button.active { color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-2); background: #fff; color: var(--text); border-radius: 999px;
  padding: 7px 15px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--navy-3); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #1c1404; font-weight: 600; }
.chip .count { opacity: .7; margin-left: 4px; font-size: 12px; }

/* ---------- stat tiles ---------- */
.stat { padding: 16px 18px; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 34px; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.alert { border-color: #f2c0c5; background: linear-gradient(0deg, #fff, #fff6f7); }
.stat.alert .value { color: var(--red-ink); }
.stat.attn { border-color: #f0d9a4; background: linear-gradient(0deg, #fff, #fffaf0); }
.stat.attn .value { color: var(--amber-ink); }
@media (max-width: 420px) { .stat .value { font-size: 28px; } .stat { padding: 12px 14px; } }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item .meta { margin-left: auto; text-align: right; flex: none; }

/* ---------- toast & modal ---------- */
.toast-host { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 440px; pointer-events: none; }
.toast { background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px; animation: toast-in .2s ease; pointer-events: auto; width: 100%; }
.toast.error { background: #8f1d29; }
.toast.ok { background: #156b3a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 40, .5); z-index: 900; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 620px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: toast-in .18s ease; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.icon-btn { border: none; background: none; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--muted); font-size: 20px; line-height: 1; }
.icon-btn:hover { background: #f0f3f8; color: var(--text); }

/* ---------- full-screen result ---------- */
.result-screen {
  position: fixed; inset: 0; z-index: 800; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center; gap: 14px; animation: toast-in .2s ease;
}
.result-screen.in { background: linear-gradient(160deg, #22a85c, #137a3f); }
.result-screen.out { background: linear-gradient(160deg, #e04a58, #a71f2f); }
.result-screen .big-check { width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; }
.result-screen .big-check svg { width: 70px; height: 70px; }
.result-screen .word { font-size: 44px; font-weight: 850; letter-spacing: .02em; }
.result-screen .who { font-size: 22px; font-weight: 700; }
.result-screen .when { font-size: 18px; opacity: .95; }
.result-screen .flags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.result-screen .flag { background: rgba(255, 255, 255, .95); color: var(--red-ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.result-screen .live-clock { font-size: 15px; opacity: .85; font-variant-numeric: tabular-nums; }
.result-screen .btn { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .5); margin-top: 10px; }
.draw-check { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- verified card (student) ---------- */
.verified-head { background: var(--navy); color: #fff; text-align: center; padding: 16px; font-size: 22px; font-weight: 750; display: flex; align-items: center; justify-content: center; gap: 8px; }
.verified-head .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.id-card { text-align: center; padding: 26px 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.id-card .name { font-size: 30px; font-weight: 800; color: var(--navy); margin-top: 10px; }
.id-card .reg { background: #eef1f6; border-radius: 999px; padding: 6px 26px; font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: .02em; font-variant-numeric: tabular-nums; margin: 4px 0 6px; }
.id-card .line { font-size: 17px; color: var(--text); }
.id-card .when { font-size: 15px; color: var(--muted); margin-top: 4px; }
.status-strip { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--text-2); padding: 10px; background: #f6f8fb; border-top: 1px solid var(--line); }

/* ---------- admin shell ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: #fff; padding: 22px 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar .brand { padding: 0 22px 26px; font-size: 18px; }
.nav a {
  display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .62); padding: 11px 24px; font-size: 15px; font-weight: 500;
  border-left: 4px solid transparent; text-decoration: none;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav a.active { color: #fff; font-weight: 700; border-left-color: var(--gold); background: rgba(255, 255, 255, .06); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav .nav-badge { margin-left: auto; background: var(--gold); color: #1c1404; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.sidebar .side-foot { margin-top: auto; padding: 16px 22px 0; font-size: 12px; color: rgba(255, 255, 255, .5); }
.main { padding: 22px 28px 48px; min-width: 0; }
.main-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.main-top .search { flex: 1; max-width: 620px; position: relative; }
.main-top .search .input { padding-left: 40px; border-radius: 12px; }
.main-top .search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); z-index: 50; max-height: 360px; overflow-y: auto; }
.search-results .list-item { padding: 10px 14px; cursor: pointer; }
.search-results .list-item:hover { background: #f6f8fc; }
.page-title { font-size: 24px; font-weight: 750; margin-bottom: 4px; }
.page-sub { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.mobile-nav-btn { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 700; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .main { padding: 14px 16px 40px; }
  .mobile-nav-btn { display: inline-flex; }
}

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: #e6eaf0; stroke-width: 1; }
.chart .axis-text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:hover { fill: rgba(15, 36, 67, .04); }
.chart-tip {
  position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 8px 10px; font-size: 13px; min-width: 130px; z-index: 5; transform: translate(-50%, -100%);
  white-space: nowrap;
}
.chart-tip .t { font-weight: 600; margin-bottom: 4px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
details.table-view summary { cursor: pointer; color: var(--blue-ink); font-size: 13px; margin-top: 10px; }

/* ---------- gate display ---------- */
.gate-layout { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 20px; padding: 20px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 860px) { .gate-layout { grid-template-columns: 1fr; padding: 14px; } }
.qr-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-frame { position: relative; padding: 22px; background: #fff; border-radius: 22px; border: 1px solid var(--line); width: 100%; max-width: 360px; aspect-ratio: 1 / 1; }
.qr-frame .corner { position: absolute; width: 44px; height: 44px; border: 6px solid var(--gold); }
.qr-frame .c1 { top: 8px; left: 8px; border-right: none; border-bottom: none; border-radius: 14px 0 0 0; }
.qr-frame .c2 { top: 8px; right: 8px; border-left: none; border-bottom: none; border-radius: 0 14px 0 0; }
.qr-frame .c3 { bottom: 8px; left: 8px; border-right: none; border-top: none; border-radius: 0 0 0 14px; }
.qr-frame .c4 { bottom: 8px; right: 8px; border-left: none; border-top: none; border-radius: 0 0 14px 0; }
.qr-frame .qr { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.qr-frame .qr svg { width: 100%; height: 100%; }
.countdown { width: 100%; max-width: 360px; height: 6px; background: #e8ecf2; border-radius: 99px; overflow: hidden; }
.countdown > div { height: 100%; background: var(--gold); border-radius: 99px; transition: width 1s linear; }
.feed-item { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: none; }
.feed-item.fresh { animation: flash 2.4s ease; }
@keyframes flash { 0%, 30% { background: #fff7dd; } 100% { background: transparent; } }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- landing ---------- */
.hero { background: radial-gradient(1200px 400px at 20% -10%, #284a7e 0%, var(--navy) 60%); color: #fff; padding: 46px 20px 90px; }
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.hero p { font-size: 18px; opacity: .85; margin-top: 10px; max-width: 640px; }
.hero-inner { max-width: 1080px; margin: 0 auto; }
.role-grid { max-width: 1080px; margin: -60px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.role-card { display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none !important; transition: transform .12s ease, box-shadow .12s ease; }
.role-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15, 36, 67, .14); }
.role-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; color: #7a5a12; }
.role-card .ic svg { width: 24px; height: 24px; }
.role-card h3 { font-size: 18px; margin-top: 4px; }
.role-card p { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .hero h1 { font-size: 30px; } .hero p { font-size: 16px; } }

.step { display: flex; gap: 14px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
kbd, code.k { background: #eef1f6; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

.spinner { width: 22px; height: 22px; border: 3px solid rgba(15, 36, 67, .15); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 50%, #eef1f6 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; min-height: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- printing (QR posters) ---------- */
.poster { width: 100%; max-width: 700px; margin: 0 auto; text-align: center; padding: 40px; border: 3px solid var(--navy); border-radius: 26px; background: #fff; }
.poster h1 { font-size: 40px; color: var(--navy); }
.poster .gate-name { font-size: 30px; font-weight: 700; margin-top: 8px; color: var(--navy-2); }
.poster .qr { width: 360px; height: 360px; margin: 26px auto; }
.poster .qr svg { width: 100%; height: 100%; }
.poster ol { text-align: left; display: inline-block; font-size: 18px; line-height: 1.7; }
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .poster { border-width: 2px; page-break-after: always; }
}
