:root {
  --cuc-red: #a3161a;
  --cuc-gold: #c9a227;
  --cuc-yellow: #fcd116;
  --cuc-green: #078930;
  --ink: #595959;
  --muted: #747474;
  --silver: #a5a5a5;
  --line: #cccccc;
  --paper: #f7f7f7;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { width: 100%; overflow-x: hidden; background: var(--paper); }
body { width: 100%; margin: 0; overflow-x: hidden; color: var(--ink); font-family: 'Red Hat Display', sans-serif; min-height: 100vh; background: radial-gradient(circle at 90% 5%, rgba(201,162,39,.15) 0, transparent 28%), var(--paper); }
img { max-width: 100%; }
.noise { position: fixed; inset: 0; opacity: .025; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.topbar { min-height: 96px; max-width: 1180px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }
.brand { min-width: 0; display: flex; align-items: center; gap: 22px; color: var(--cuc-red); text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.brand img { display: block; width: 250px; height: auto; max-width: 52vw; }
.brand span { padding-left: 22px; border-left: 1px solid var(--line); }
.exit-link, .back { color: var(--cuc-red); text-decoration: none; border-bottom: 1px solid; font-weight: 700; }
.hero-shell { max-width: 1180px; margin: 45px auto 90px; padding: 0 28px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.75fr); gap: 9vw; align-items: center; }
.login-page { background: #06194a; color: #fff; overflow-x: hidden; }
.login-page::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 73%, rgba(0,188,255,.2) 0 2px, transparent 3px), radial-gradient(circle at 69% 62%, rgba(0,188,255,.16) 0 4px, transparent 5px), repeating-linear-gradient(120deg, transparent 0 58px, rgba(0,188,255,.055) 59px 60px), linear-gradient(115deg, var(--cuc-red) 0%, #a3161a 35%, #4f1831 52%, #071c51 70%, #04123c 100%); background-size: 110px 110px, 190px 190px, auto, auto; }
.login-page::after { content: ''; position: fixed; right: -8vw; bottom: -18vw; width: 62vw; height: 62vw; border: 2px solid rgba(0,188,255,.35); border-radius: 50%; box-shadow: 0 0 0 30px rgba(0,188,255,.06), 0 0 0 70px rgba(0,188,255,.035), 0 0 90px rgba(0,188,255,.3); pointer-events: none; }
.login-page .noise { opacity: .06; }
.login-page .topbar { position: relative; z-index: 2; max-width: 1240px; }
.login-page .brand { background: #fff; padding: 10px 16px; border-radius: 2px 20px 2px 2px; }
.login-page .brand img { width: 210px; }
.login-page .brand span { color: var(--cuc-red); }
.login-page main { position: relative; z-index: 1; }
.login-page .hero-shell { max-width: 1380px; min-height: calc(100vh - 150px); margin: 0 auto; grid-template-columns: minmax(0,1.25fr) minmax(380px,.72fr); gap: clamp(45px,6vw,100px); }
.event-copy, .login-panel { min-width: 0; }
.event-copy { padding: 35px 0; }
.login-page .eyebrow { color: #fff; }
.login-page .eyebrow span { background: var(--cuc-yellow); }
.event-kicker { margin: 36px 0 -5px; font-size: clamp(24px,3vw,42px); font-weight: 400; }
.login-page h1 { margin: 0; color: var(--cuc-yellow); font-size: clamp(62px,8.6vw,124px); line-height: .79; letter-spacing: -.065em; text-shadow: 0 8px 32px rgba(0,0,0,.15); }
.login-page h1 em { color: var(--cuc-yellow); }
.event-date { display: inline-flex; align-items: center; gap: 13px; margin-top: 28px; padding: 10px 16px; color: var(--cuc-yellow); background: rgba(163,22,26,.88); border: 1px solid rgba(252,209,22,.55); border-radius: 2px 16px 2px 2px; }
.event-date > span { font-size: 40px; line-height: 1; font-weight: 900; }
.event-date div { display: grid; gap: 2px; text-align: left; }
.event-date b { font-size: 13px; letter-spacing: .08em; }
.event-date small { color: #fff; font-size: 11px; font-weight: 700; }
.login-page .lead { color: #fff; max-width: 730px; margin-top: 38px; font-size: 19px; font-weight: 600; }
.event-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.event-tags span { border: 1px solid rgba(255,255,255,.52); padding: 8px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: rgba(5,25,75,.25); }
.login-panel { position: relative; width: 100%; border: 1px solid rgba(255,255,255,.65); border-radius: 2px 42px 2px 2px; padding: 10px; background: rgba(6,25,74,.35); box-shadow: 0 35px 80px rgba(0,0,0,.3); backdrop-filter: blur(8px); }
.login-page .entry-card { background: rgba(163,22,26,.96); box-shadow: none; border-radius: 2px 30px 2px 2px; padding: clamp(34px,3vw,48px); }
.entry-card h2 { margin: 0 0 7px; color: #fff; font-size: 28px; font-weight: 900; }
.entry-card > p { margin: 0 0 26px; color: #f2dcdc; }
.login-page .primary { background: var(--cuc-yellow); color: #701014; }
.login-page footer { position: relative; z-index: 1; color: rgba(255,255,255,.7); }
.modal-open { overflow: hidden; }
.scanner-modal[hidden] { display: none; }
.scanner-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.scanner-backdrop { position: absolute; inset: 0; background: rgba(2,10,34,.78); backdrop-filter: blur(8px); }
.scanner-dialog { position: relative; width: min(100%,480px); max-height: calc(100vh - 36px); overflow: auto; color: var(--ink); background: #fff; padding: 30px; border-top: 8px solid var(--cuc-red); border-radius: 2px 26px 2px 2px; box-shadow: 0 35px 90px rgba(0,0,0,.48); }
.scanner-dialog h2 { margin: 13px 38px 8px 0; font-size: 28px; line-height: 1.05; color: var(--ink); }
.scanner-dialog > p { margin: 0 0 20px; color: var(--muted); }
.scanner-close { position: absolute; top: 17px; right: 17px; width: 38px; height: 38px; min-width: 38px; padding: 0; display: block; border-radius: 50%; color: #fff; background: var(--cuc-red); }
.scanner-close::before, .scanner-close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 17px; height: 2px; border-radius: 2px; background: #fff; transform-origin: center; }
.scanner-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.scanner-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
#modal-reader { min-height: 280px; overflow: hidden; background: #071c51; border: 7px solid #071c51; }
#modal-reader video { object-fit: cover; }
#modal-reader img { display: none; }
#modal-reader__dashboard_section_csr button { background: var(--cuc-red); color: #fff; }
#modal-scan-status.success { color: #fff; background: var(--cuc-green); font-weight: 800; }
.admin-login-page, .admin-dashboard-page { min-height: 100vh; background: #06194a; }
.admin-login-page::before, .admin-dashboard-page::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 30%,rgba(0,188,255,.18) 0 2px,transparent 3px), repeating-linear-gradient(120deg,transparent 0 58px,rgba(0,188,255,.045) 59px 60px), linear-gradient(115deg,#a3161a 0%,#77162a 31%,#141d4b 60%,#04123c 100%); background-size: 110px 110px,auto,auto; }
.admin-login-page .topbar, .admin-login-page main, .admin-login-page footer, .admin-dashboard-page .topbar, .admin-dashboard-page main, .admin-dashboard-page footer { position: relative; z-index: 1; }
.admin-login-page .brand, .admin-dashboard-page .brand { background: #fff; padding: 10px 16px; border-radius: 2px 20px 2px 2px; }
.admin-login-page .brand img, .admin-dashboard-page .brand img { width: 210px; }
.admin-login-page .brand span, .admin-dashboard-page .brand span { color: var(--cuc-red); }
.admin-login-page .eyebrow, .admin-dashboard-page .eyebrow { color: #fff; background: transparent; text-shadow: 0 1px 12px rgba(0,0,0,.28); }
.admin-login-page .eyebrow span, .admin-dashboard-page .eyebrow span { background: var(--cuc-yellow); box-shadow: 0 0 12px rgba(252,209,22,.35); }
.admin-dashboard-page .exit-link { color: #fff; }
.admin-login-page footer, .admin-dashboard-page footer { color: rgba(255,255,255,.62); }
.admin-login-shell { width: min(1080px,calc(100% - 36px)); min-height: calc(100vh - 170px); margin: auto; display: grid; grid-template-columns: 1fr minmax(340px,430px); gap: clamp(40px,8vw,110px); align-items: center; color: #fff; }
.admin-login-copy h1 { font-size: clamp(58px,8vw,100px); }
.admin-login-copy h1 em { color: var(--cuc-yellow); }
.admin-login-copy p { max-width: 520px; color: rgba(255,255,255,.78); font-size: 18px; }
.admin-login-card { padding: 40px; color: var(--ink); background: #fff; border-top: 8px solid var(--cuc-yellow); border-radius: 2px 30px 2px 2px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.admin-login-card h2 { margin: 8px 0 26px; font-size: 32px; }
.admin-login-card .primary { background: var(--cuc-red); color: #fff; }
.admin-dashboard-shell { width: min(1320px,calc(100% - 40px)); margin: 42px auto 90px; color: #fff; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 32px; }
.admin-heading h1 { margin: 15px 0 8px; font-size: clamp(42px,5vw,70px); }
.admin-heading p { margin: 0; color: rgba(255,255,255,.7); }
.admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-action { display: inline-flex; width: auto; align-items: center; justify-content: center; padding: 13px 18px; color: #071c51; background: var(--cuc-yellow); border: 0; border-radius: 2px 12px 2px 2px; text-decoration: none; font-weight: 900; white-space: nowrap; }
.export-action { color: #fff; background: var(--cuc-red); }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.metric-card { display: flex; min-height: 165px; flex-direction: column; justify-content: space-between; padding: 24px; color: var(--ink); background: #fff; border-top: 6px solid var(--cuc-red); border-radius: 2px 18px 2px 2px; box-shadow: 0 18px 45px rgba(0,0,0,.16); }
.metric-card.accent { color: #fff; background: var(--cuc-red); border-color: var(--cuc-yellow); }
.metric-card > span, .panel-title span { font-size: 10px; font-weight: 900; letter-spacing: .15em; color: var(--cuc-red); }
.metric-card.accent > span { color: var(--cuc-yellow); }
.metric-card b { font-size: 49px; line-height: 1; }
.metric-card small { color: var(--muted); }
.metric-card.accent small { color: rgba(255,255,255,.76); }
.admin-two-columns { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; margin-bottom: 20px; }
.admin-panel, .qr-admin-section { padding: 28px; color: var(--ink); background: #fff; border-radius: 2px 20px 2px 2px; box-shadow: 0 18px 45px rgba(0,0,0,.16); }
.panel-title { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.panel-title h2 { margin: 5px 0 0; font-size: 26px; }
.panel-title > b { color: var(--cuc-red); font-size: 34px; }
.panel-title > small { color: var(--muted); }
.table-bars { display: grid; gap: 21px; }
.table-bar > div:first-child { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.table-bar span { color: var(--muted); font-size: 12px; }
.bar-track { height: 9px; overflow: hidden; background: #eee; border-radius: 10px; }
.bar-track i { display: block; height: 100%; background: linear-gradient(90deg,var(--cuc-red),var(--cuc-gold)); border-radius: inherit; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #eee; }
.activity-item i { width: 9px; height: 9px; border-radius: 50%; background: var(--cuc-green); box-shadow: 0 0 0 4px rgba(7,137,48,.12); }
.activity-item div { display: grid; }
.activity-item span, .activity-item time { color: var(--muted); font-size: 11px; }
.student-panel { margin-bottom: 20px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th { padding: 11px; text-align: center; color: var(--muted); font-size: 10px; letter-spacing: .08em; border-bottom: 2px solid #eee; }
.admin-table th:first-child, .admin-table td:first-child { text-align: left; }
.admin-table td { padding: 12px 11px; text-align: center; border-bottom: 1px solid #eee; }
.admin-table td:first-child { display: grid; }
.admin-table td small { color: var(--muted); }
.visit-check { display: inline-grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: var(--silver); background: #eee; }
.visit-check.yes { color: #fff; background: var(--cuc-green); }
.empty-state { color: var(--muted); text-align: center; padding: 25px; }
.qr-admin-section > p { color: var(--muted); }
.qr-admin-section .qr-grid { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); }
.qr-admin-section .qr-card { padding: 22px; }
.qr-admin-section .qr img, .qr-admin-section .qr canvas { width: 100% !important; max-width: 190px; height: auto !important; }
.qr-print-button { margin-top: 20px; width: 100%; justify-content: center; padding: 13px 9px; color: #fff; background: var(--cuc-red); border-radius: 2px 10px 2px 2px; font-size: 12px; }
@media (min-width:1400px) {
  .login-page .hero-shell { max-width: 1480px; grid-template-columns: minmax(0,1.35fr) minmax(440px,.78fr); }
  .entry-card h2 { font-size: 34px; }
  .entry-card > p { font-size: 16px; }
  .login-page input { min-height: 56px; font-size: 16px; }
  .login-page .primary { min-height: 58px; }
}
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; display: flex; align-items: center; gap: 10px; color: var(--cuc-red); }
.eyebrow span { width: 24px; height: 3px; background: var(--cuc-gold); }
h1 { font-size: clamp(44px,6vw,80px); line-height: .98; letter-spacing: -.055em; margin: 22px 0; font-weight: 900; overflow-wrap: anywhere; }
h1 em { font-style: normal; color: var(--cuc-red); }
.lead, .dashboard-shell > p { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 580px; }
.entry-card { background: var(--cuc-red); color: #fff; padding: 38px; border-radius: 4px; box-shadow: 16px 16px 0 var(--cuc-gold); }
label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 22px; }
input { display: block; width: 100%; margin-top: 9px; background: #fff; border: 2px solid transparent; border-radius: 3px; padding: 15px 16px; font: inherit; outline: none; }
input:focus { border-color: var(--cuc-yellow); }
button, .primary, .secondary { border: 0; text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 17px 20px; border-radius: 3px; font: 700 15px 'Red Hat Display'; cursor: pointer; }
.primary { background: var(--cuc-gold); color: #fff; }
.primary:hover, .primary:focus-visible { background: var(--cuc-yellow); color: var(--ink); }
.primary span { font-size: 22px; }
.entry-card small { display: block; color: #f1dddd; line-height: 1.5; margin-top: 18px; }
.alert { padding: 12px; margin-bottom: 18px; background: #fff; color: var(--cuc-red); }
.dashboard-shell, .admin-shell { max-width: 1180px; margin: 40px auto 90px; padding: 0 28px; }
.dashboard-page { min-height: 100vh; color: #fff; background: #06194a; }
.dashboard-page::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 73%, rgba(0,188,255,.2) 0 2px, transparent 3px), radial-gradient(circle at 69% 62%, rgba(0,188,255,.16) 0 4px, transparent 5px), repeating-linear-gradient(120deg, transparent 0 58px, rgba(0,188,255,.055) 59px 60px), linear-gradient(115deg, var(--cuc-red) 0%, #a3161a 32%, #4f1831 50%, #071c51 70%, #04123c 100%); background-size: 110px 110px, 190px 190px, auto, auto; }
.dashboard-page::after { content: ''; position: fixed; right: -14vw; bottom: -26vw; width: 70vw; height: 70vw; pointer-events: none; border: 2px solid rgba(0,188,255,.28); border-radius: 50%; box-shadow: 0 0 0 35px rgba(0,188,255,.045), 0 0 0 85px rgba(0,188,255,.025), 0 0 90px rgba(0,188,255,.2); }
.dashboard-page .noise, .dashboard-page .topbar, .dashboard-page main, .dashboard-page footer { position: relative; z-index: 1; }
.dashboard-page .topbar { max-width: 1240px; }
.dashboard-page .brand { background: #fff; padding: 10px 16px; border-radius: 2px 20px 2px 2px; }
.dashboard-page .brand img { width: 210px; }
.dashboard-page .brand span { color: var(--cuc-red); }
.dashboard-page .exit-link { color: #fff; }
.dashboard-page .dashboard-shell { max-width: 1240px; margin-top: 45px; }
.dashboard-page .eyebrow { color: var(--cuc-yellow); }
.dashboard-page .welcome-row h1 { color: #fff; }
.dashboard-page .welcome-row p { color: rgba(255,255,255,.78); }
.dashboard-page .progress-ring { color: #fff; background: radial-gradient(closest-side,#1f234a 77%,transparent 80%), conic-gradient(var(--cuc-yellow) calc(var(--p)*1%),rgba(255,255,255,.22) 0); box-shadow: 0 0 35px rgba(252,209,22,.12); }
.dashboard-page .progress-ring span { color: rgba(255,255,255,.68); }
.dashboard-page .progress-track { background: rgba(255,255,255,.2); }
.dashboard-page .progress-track i { background: var(--cuc-yellow); }
.dashboard-page .table-card { color: var(--ink); border: 0; border-top: 7px solid var(--cuc-red); border-radius: 2px 22px 2px 2px; box-shadow: 0 22px 55px rgba(0,0,0,.18); }
.dashboard-page .table-card.done { background: #fff8d8; border-color: var(--cuc-gold); }
.dashboard-page .scan-button { background: var(--cuc-red); border-radius: 2px 12px 2px 2px; }
.dashboard-page .celebration { border: 1px solid rgba(252,209,22,.5); background: rgba(6,25,74,.75); backdrop-filter: blur(8px); }
.dashboard-page footer { color: rgba(255,255,255,.65); }
.welcome-row { display: flex; justify-content: space-between; align-items: end; }
.welcome-row h1, .admin-shell h1 { font-size: clamp(42px,5vw,68px); margin: 15px 0; }
.welcome-row p, .admin-shell > p { color: var(--muted); font-size: 17px; }
.progress-ring { width: 110px; height: 110px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side,var(--paper) 78%,transparent 80%), conic-gradient(var(--cuc-red) calc(var(--p)*1%),#ddd 0); }
.progress-ring b { font-size: 23px; font-weight: 900; }
.progress-ring span { font-size: 11px; color: var(--muted); }
.progress-track { height: 5px; background: #ddd; margin: 34px 0; }
.progress-track i { display: block; height: 100%; background: var(--cuc-red); transition: .5s; }
.table-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.table-card { position: relative; min-height: 280px; background: var(--card); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.table-card.done { background: #f6edee; border-color: var(--cuc-red); }
.table-number { position: absolute; right: 15px; top: -20px; font-size: 100px; font-weight: 900; color: #eeeeee; letter-spacing: -.08em; }
.done .table-number { color: #ead2d3; }
.status-dot { position: absolute; right: 24px; top: 24px; width: 30px; height: 30px; border: 2px solid var(--silver); border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.done .status-dot { background: var(--cuc-red); border-color: var(--cuc-red); color: #fff; }
.mini-label { font-size: 10px; font-weight: 900; letter-spacing: .16em; color: var(--cuc-red); }
.stand-logo { display: block; width: 76px; height: 76px; margin: 0 0 18px; object-fit: contain; object-position: center; }
.qr-brand-logo { width: 70px; height: 70px; margin: 0 auto 18px; }
.table-card h2 { font-size: 29px; font-weight: 900; margin: 10px 0 3px; }
.table-card p { margin: 0; color: var(--muted); }
.scan-button { align-self: flex-start; width: auto; background: var(--cuc-red); color: #fff; text-decoration: none; padding: 13px 17px; font-weight: 800; }
.completed-label { color: var(--cuc-red); font-weight: 900; }
.celebration { display: flex; gap: 16px; align-items: center; background: var(--cuc-red); color: #fff; padding: 18px 24px; margin: -12px 0 24px; }
.celebration b { color: var(--cuc-yellow); }
.scanner-shell, .result-shell { max-width: 660px; margin: 35px auto 90px; padding: 0 28px; text-align: center; }
.scanner-shell .back { display: inline-block; margin-bottom: 40px; }
.scanner-shell .eyebrow, .result-shell .eyebrow { justify-content: center; }
.scanner-shell h1, .result-shell h1 { font-size: clamp(40px,7vw,62px); }
.scanner-shell > p, .result-shell > p { color: var(--muted); font-size: 17px; line-height: 1.6; }
#reader { background: var(--cuc-red); border: 10px solid var(--cuc-red); min-height: 280px; margin-top: 28px; }
#reader video { object-fit: cover; }
.scan-status { padding: 14px; background: #eee; font-size: 13px; }
details { text-align: left; margin-top: 24px; }
summary { cursor: pointer; font-weight: 800; }
.secondary { background: var(--cuc-red); color: #fff; }
.result-icon { margin: 35px auto; width: 94px; height: 94px; border-radius: 50%; display: grid; place-items: center; font-size: 48px; font-weight: 900; }
.result-icon.success { background: var(--cuc-green); color: #fff; }
.result-icon.failure { background: var(--cuc-red); color: #fff; }
.result-shell .primary { max-width: 300px; margin: 30px auto; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.qr-card { background: #fff; padding: 36px; text-align: center; border: 1px solid var(--line); border-top: 8px solid var(--cuc-red); break-inside: avoid; }
.qr { display: flex; justify-content: center; margin-bottom: 25px; }
.qr-card span { font-size: 10px; letter-spacing: .16em; color: var(--cuc-red); font-weight: 800; }
.qr-card h2 { font-size: 32px; font-weight: 900; margin: 8px 0; }
.qr-card p { color: var(--muted); margin: 0; }
footer { text-align: center; padding: 28px; color: var(--muted); font-size: 12px; }
@media (max-width:1000px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-two-columns { grid-template-columns: 1fr; }
  .qr-admin-section .qr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width:760px) {
  body { min-width: 0; }
  .topbar { width: 100%; min-height: 76px; padding: 12px 16px; gap: 12px; }
  .brand { min-width: 0; gap: 0; }
  .brand img { width: 170px; max-width: 58vw; }
  .exit-link { flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
  .hero-shell { grid-template-columns: 1fr; margin-top: 20px; }
  .entry-card { box-shadow: 8px 8px 0 var(--cuc-gold); padding: 26px; }
  .table-grid, .qr-grid { grid-template-columns: 1fr; }
  .dashboard-page { overflow-x: hidden; }
  .dashboard-page .topbar { min-height: 76px; padding: 12px 16px; gap: 12px; }
  .dashboard-page .brand { min-width: 0; padding: 8px 11px; gap: 0; }
  .dashboard-page .brand img { width: 170px; max-width: 58vw; }
  .dashboard-page .exit-link { flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
  .dashboard-page .dashboard-shell { width: 100%; margin: 24px auto 64px; padding: 0 16px; }
  .welcome-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; }
  .welcome-row h1 { overflow-wrap: anywhere; font-size: clamp(36px,12vw,48px); letter-spacing: 0; }
  .welcome-row p { max-width: 100%; font-size: 15px; line-height: 1.45; }
  .progress-ring { width: 84px; height: 84px; }
  .progress-ring b { font-size: 19px; }
  .progress-track { margin: 24px 0; }
  .table-card { min-height: 0; padding: 22px; gap: 24px; }
  .table-number { right: 12px; top: -13px; font-size: 76px; opacity: .72; }
  .status-dot { right: 18px; top: 18px; width: 28px; height: 28px; }
  .stand-logo { width: 64px; height: 64px; margin-bottom: 14px; }
  .qr-brand-logo { width: 62px; height: 62px; margin-bottom: 14px; }
  .table-card h2 { max-width: calc(100% - 48px); font-size: clamp(24px,8vw,29px); line-height: 1.05; overflow-wrap: anywhere; }
  .table-card p { font-size: 14px; line-height: 1.45; }
  .scan-button { width: 100%; justify-content: center; padding: 14px 16px; text-align: center; }
  .completed-label { min-height: 44px; display: flex; align-items: center; }
  .celebration { display: grid; gap: 6px; padding: 15px 17px; line-height: 1.35; }
  .scanner-modal { padding: 10px; align-items: start; overflow-y: auto; }
  .scanner-dialog { width: 100%; max-height: none; margin: 10px 0; padding: 24px 18px; }
  .scanner-dialog h2 { margin-right: 44px; font-size: 25px; }
  #modal-reader { min-height: min(68vw,260px); border-width: 5px; }
  h1 { font-size: 42px; line-height: 1; letter-spacing: 0; }
  .brand span { display: none; }
  .login-page { background: #06194a; }
  .login-page::before { background: radial-gradient(circle at 82% 62%, rgba(0,188,255,.22) 0 2px, transparent 3px), repeating-linear-gradient(130deg, transparent 0 50px, rgba(0,188,255,.05) 51px 52px), linear-gradient(180deg, #a3161a 0%, #a3161a 28%, #551735 48%, #071d54 69%, #04123c 100%); background-size: 105px 105px, auto, auto; }
  .login-page::after { right: -42vw; bottom: 18vh; width: 120vw; height: 120vw; border-color: rgba(0,188,255,.42); }
  .login-page .topbar { min-height: 76px; justify-content: center; padding: 12px 16px 0; }
  .login-page .brand { width: 100%; max-width: 430px; justify-content: center; padding: 9px 14px; border-radius: 2px 22px 2px 2px; }
  .login-page .brand img { width: 188px; max-width: 76%; }
  .login-page .hero-shell { grid-template-columns: 1fr; min-height: auto; width: 100%; max-width: 520px; gap: 18px; padding: 0 14px 42px; }
  .event-copy { padding: 24px 4px 0; text-align: left; }
  .login-page .eyebrow { font-size: 10px; letter-spacing: .1em; }
  .event-kicker { margin: 22px 0 -2px; font-size: 25px; line-height: 1; }
  .login-page h1 { font-size: 54px; line-height: .84; letter-spacing: 0; }
  .event-date { margin-top: 23px; }
  .login-page .lead { font-size: 15px; line-height: 1.5; margin: 22px 0 0; font-style: italic; font-weight: 800; }
  .event-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 22px; }
  .event-tags span { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 7px; text-align: center; font-size: 9px; background: rgba(6,25,74,.62); border-color: rgba(252,209,22,.55); }
  .login-panel { margin-top: 6px; padding: 7px; border-radius: 2px 28px 2px 2px; background: rgba(6,25,74,.7); box-shadow: 0 24px 55px rgba(0,0,0,.38); }
  .login-panel-top { padding: 11px 12px 15px; }
  .login-page .entry-card { padding: 24px 18px; border-radius: 2px 22px 2px 2px; }
  .entry-card h2 { font-size: 25px; }
  .entry-card > p { font-size: 13px; margin-bottom: 22px; }
  .login-page input { min-height: 52px; font-size: 16px; }
  .login-page .primary { min-height: 54px; }
  .login-page footer { padding-top: 0; }
  .admin-login-page .topbar, .admin-dashboard-page .topbar { min-height: 76px; padding: 12px 16px; gap: 12px; }
  .admin-login-page .brand, .admin-dashboard-page .brand { min-width: 0; padding: 8px 11px; gap: 0; }
  .admin-login-page .brand img, .admin-dashboard-page .brand img { width: 170px; max-width: 58vw; }
  .admin-login-page .exit-link, .admin-dashboard-page .exit-link { flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
  .admin-login-shell { width: 100%; grid-template-columns: 1fr; gap: 22px; padding: 26px 16px 50px; }
  .admin-login-copy h1 { font-size: 44px; line-height: 1; letter-spacing: 0; }
  .admin-login-copy p { font-size: 15px; }
  .admin-login-card { padding: 28px 22px; }
  .admin-dashboard-shell { width: 100%; margin: 24px auto 64px; padding: 0 14px; }
  .admin-heading { display: grid; align-items: start; }
  .admin-heading h1 { font-size: 38px; line-height: 1; letter-spacing: 0; }
  .admin-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .admin-action { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 140px; padding: 17px; }
  .metric-card b { font-size: 39px; }
  .admin-panel, .qr-admin-section { padding: 21px 17px; }
  .panel-title { display: grid; align-items: start; gap: 8px; }
  .panel-title h2 { font-size: 22px; line-height: 1.1; }
  .table-bar > div:first-child { display: grid; gap: 3px; }
  .activity-item { grid-template-columns: 10px minmax(0,1fr) auto; }
  .activity-item b, .activity-item span { overflow-wrap: anywhere; }
  .admin-table { min-width: 640px; }
  .qr-admin-section .qr-grid { grid-template-columns: 1fr; }
  .scanner-shell, .result-shell { width: 100%; margin: 24px auto 64px; padding: 0 16px; }
  .scanner-shell .back { margin-bottom: 26px; }
  .scanner-shell h1, .result-shell h1 { font-size: 40px; line-height: 1; letter-spacing: 0; }
  .scanner-shell > p, .result-shell > p { font-size: 15px; line-height: 1.5; }
  #reader { min-height: min(72vw,280px); border-width: 6px; }
  .result-shell .primary { max-width: none; }
}
@media (max-width:420px) {
  .topbar { padding-inline: 12px; }
  .brand img { width: 148px; max-width: 54vw; }
  .dashboard-page .topbar { padding-inline: 12px; }
  .dashboard-page .brand img { width: 148px; max-width: 54vw; }
  .dashboard-page .dashboard-shell { padding-inline: 12px; }
  .welcome-row { grid-template-columns: 1fr; align-items: start; }
  .progress-ring { width: 76px; height: 76px; justify-self: start; }
  .table-card { padding: 19px; }
  .table-number { font-size: 64px; }
  .stand-logo { width: 58px; height: 58px; }
  .mini-label { font-size: 9px; letter-spacing: .12em; }
  .login-page .hero-shell { padding-inline: 12px; }
  .login-page h1 { font-size: 44px; line-height: .9; }
  .event-kicker { font-size: 22px; }
  .event-date { width: 100%; padding: 9px 12px; }
  .event-tags { grid-template-columns: 1fr; }
  .login-panel { padding: 6px; }
  .login-page .entry-card { padding: 22px 16px; }
  .primary, .secondary, button { gap: 10px; padding-inline: 15px; }
  .admin-login-page .brand img, .admin-dashboard-page .brand img { width: 148px; max-width: 54vw; }
  .admin-login-shell, .admin-dashboard-shell { padding-inline: 12px; }
  .admin-login-copy h1, .admin-heading h1 { font-size: 36px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 118px; }
  .metric-card b { font-size: 34px; }
  .admin-panel, .qr-admin-section { padding: 18px 14px; }
  .qr-card { padding: 22px 16px; }
  .qr-card h2 { font-size: 26px; line-height: 1.05; overflow-wrap: anywhere; }
  .scanner-shell, .result-shell { padding-inline: 12px; }
  .scanner-shell h1, .result-shell h1 { font-size: 34px; }
  .scanner-dialog { padding: 22px 14px; }
  .scanner-dialog h2 { font-size: 22px; }
  #reader, #modal-reader { min-height: min(78vw,250px); }
}
@media (max-width:360px) {
  .topbar { padding-inline: 10px; gap: 8px; }
  .brand img, .dashboard-page .brand img, .admin-login-page .brand img, .admin-dashboard-page .brand img { width: 132px; max-width: 52vw; }
  .exit-link { font-size: 12px; }
  .login-page .hero-shell, .dashboard-page .dashboard-shell, .admin-login-shell, .admin-dashboard-shell, .scanner-shell, .result-shell { padding-inline: 10px; }
  .login-page h1 { font-size: 39px; }
  .event-date > span { font-size: 34px; }
  .event-date b { font-size: 12px; }
  .event-date small { font-size: 10px; }
  .entry-card h2 { font-size: 22px; }
  input { padding: 13px 14px; }
  .welcome-row h1, .admin-login-copy h1, .admin-heading h1, .scanner-shell h1, .result-shell h1 { font-size: 31px; }
  .progress-ring { width: 70px; height: 70px; }
  .progress-ring b { font-size: 17px; }
  .table-card { padding: 17px; }
  .table-card h2 { font-size: 23px; }
  .metric-card { padding: 15px; }
  .admin-table { min-width: 580px; }
}
@media print {
  @page { margin: 18mm; }
  body { background: #fff; }
  .topbar, footer, .no-print, .admin-shell > .eyebrow, .admin-shell > h1, .admin-shell > p { display: none; }
  .admin-shell { margin: 0; max-width: none; }
  .qr-grid { gap: 10px; }
  .qr-card { padding: 22px; page-break-inside: avoid; }
  .print-one .qr-admin-section .qr-card:not(.print-target) { display: none; }
  .print-one .qr-admin-section .qr-grid { display: block; }
  .print-one .admin-dashboard-shell > *:not(.qr-admin-section) { display: none; }
  .print-one .qr-admin-section { padding: 0; box-shadow: none; background: #fff; }
  .print-one .qr-admin-section > .panel-title, .print-one .qr-admin-section > p { display: none; }
  .print-one .qr-card.print-target { width: 100%; max-width: none; min-height: 0; height: auto; margin: 0; padding: 18mm 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; border: 0; box-shadow: none; break-inside: avoid-page; page-break-inside: avoid; }
  .print-one .qr-card.print-target > span, .print-one .qr-card.print-target > .qr-print-button { display: none !important; }
  .print-one .qr-card.print-target .qr { margin: 0; }
  .print-one .qr-card.print-target .qr img, .print-one .qr-card.print-target .qr canvas { width: 100mm !important; max-width: 90vw; height: 100mm !important; image-rendering: pixelated; }
  .print-one .qr-card.print-target h2 { display: block !important; margin: 9mm 0 1.5mm; color: #000; font-size: 30pt; line-height: 1.1; text-align: center; }
  .print-one .qr-card.print-target p { display: block !important; margin: 0; color: #444; font-size: 20pt; line-height: 1.2; text-align: center; }
}
