:root {
  --navy: #1e3a8a;
  --navy-dark: #14295e;
  --cyan: #0284c7;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #f5f8fc;
  --green: #16845b;
  --amber: #b45309;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #f7f9fc; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.topbar { height: 72px; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .04em; color: var(--navy); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(135deg, var(--navy), var(--cyan)); font-size: 20px; }
.topbar nav { display: flex; align-items: center; gap: 28px; height: 100%; font-size: 14px; font-weight: 700; }
.topbar nav a { height: 100%; display: flex; align-items: center; border-bottom: 3px solid transparent; }
.topbar nav a.active { border-color: var(--cyan); color: var(--navy); }
.login-link { height: 44px !important; padding: 0 18px; border: 0 !important; border-radius: 8px; color: white; background: var(--navy); }
.nav-logout { border: 0; background: none; color: var(--muted); cursor: pointer; font-weight: 700; }
.sync-pill { position: fixed; right: 18px; bottom: 18px; z-index: 50; border-radius: 999px; padding: 9px 13px; font-size: 12px; font-weight: 800; box-shadow: 0 8px 30px rgba(15,23,42,.15); }
.sync-pill.online { color: #116d4d; background: #dcfce7; }
.sync-pill.offline { color: #92400e; background: #fef3c7; }
.sync-pill[title] { cursor: help; }
.hero { min-height: 560px; display: flex; align-items: center; background: radial-gradient(circle at 80% 20%, rgba(2,132,199,.13), transparent 25%), linear-gradient(135deg, #edf5ff 0%, #fff 70%); border-bottom: 1px solid var(--line); }
.hero-grid { width: 90%; max-width: 1180px; margin: auto; display: grid; grid-template-columns: 1.6fr .7fr; gap: 60px; align-items: center; }
.eyebrow { color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 18px 0 16px; font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; color: var(--navy-dark); }
.hero h1 span { display: block; color: var(--cyan); font-size: .58em; letter-spacing: -.02em; margin-top: 10px; }
.hero-subtitle { max-width: 620px; font-size: 21px; line-height: 1.55; color: #475569; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.btn { min-height: 44px; border: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; font-weight: 800; font-size: 14px; cursor: pointer; }
.btn.primary { background: var(--navy); color: white; box-shadow: 0 8px 20px rgba(30,58,138,.15); }
.btn.secondary { border: 1px solid #cbd5e1; background: white; color: var(--navy); }
.btn.full { width: 100%; }
.hero-card { padding: 28px; min-height: 260px; border-radius: 18px; background: var(--navy-dark); color: white; box-shadow: 0 25px 60px rgba(30,58,138,.22); display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero-card strong { font-size: 20px; margin: 12px 0 22px; }
.hero-card p { font-size: 22px; font-weight: 900; margin: 0 0 12px; }
.hero-card small { color: #bfdbfe; line-height: 1.6; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 7px rgba(34,211,238,.12); }
.strip { max-width: 1180px; width: 90%; margin: -38px auto 0; min-height: 76px; display: grid; grid-template-columns: repeat(4,1fr); background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(30,58,138,.08); position: relative; z-index: 3; }
.strip div { display: flex; flex-direction: column; justify-content: center; padding: 14px 22px; border-right: 1px solid var(--line); }
.strip div:last-child { border: 0; }
.strip strong { color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.strip span { font-size: 13px; margin-top: 5px; color: #475569; }
.section { max-width: 1180px; width: 90%; margin: 0 auto; padding: 100px 0 20px; }
.section-heading span { color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin: 8px 0 32px; font-size: 38px; letter-spacing: -.035em; color: var(--navy-dark); }
.card-grid { display: grid; gap: 16px; }
.card-grid.three { grid-template-columns: repeat(3,1fr); }
.card-grid.four { grid-template-columns: repeat(4,1fr); }
.info-card { min-height: 300px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 14px; position: relative; }
.info-card:hover { border-color: #93c5fd; transform: translateY(-3px); transition: .2s; }
.card-number { color: #dbeafe; font-size: 52px; font-weight: 900; line-height: 1; margin-bottom: 28px; }
.info-card > span { color: var(--cyan); font-size: 12px; font-weight: 800; }
.info-card h3 { font-size: 21px; color: var(--navy-dark); margin: 8px 0 12px; }
.info-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.info-card b { display: inline-block; margin-top: 10px; color: var(--navy); border-bottom: 2px solid #bae6fd; }
.split-section { display: grid; grid-template-columns: 1.5fr .5fr; gap: 28px; align-items: end; }
.timeline { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 90px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.day { color: var(--cyan); font-weight: 900; font-size: 13px; }
.timeline strong { color: var(--navy-dark); }
.timeline p { color: var(--muted); margin: 8px 0 0; }
.schedule-section { padding-top: 72px; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.schedule-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 12px 32px rgba(30,58,138,.06); }
.schedule-card-heading { padding: 20px 24px; background: var(--navy-dark); color: white; }
.schedule-card-heading span { color: #93c5fd; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.schedule-card-heading h3 { margin: 6px 0 0; font-size: 20px; }
.schedule-list { margin: 0; padding: 6px 24px; list-style: none; }
.schedule-list li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.schedule-list li:last-child { border-bottom: 0; }
.schedule-list time { color: var(--cyan); font-size: 12px; font-weight: 900; }
.schedule-list strong { color: var(--navy-dark); font-size: 13px; }
.schedule-list p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.prize-card { min-height: 310px; border-radius: 14px; padding: 28px; background: var(--navy); color: white; }
.prize-card > span { text-transform: uppercase; font-size: 11px; letter-spacing: .1em; color: #bfdbfe; }
.prize-card div { padding: 24px 0 18px; border-bottom: 1px solid rgba(255,255,255,.16); }
.prize-card div:last-child { border: 0; }
.prize-card strong { font-size: 24px; }
.prize-card p { margin: 6px 0 0; color: #bfdbfe; }
.fee-card { padding: 28px; min-height: 130px; border: 1px solid var(--line); background: white; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; }
.fee-card strong { color: var(--navy); font-size: 22px; }
.fee-card span { color: var(--muted); margin-top: 8px; }
.contact-section { display: grid; grid-template-columns: .8fr 1fr; gap: 48px; align-items: start; padding-bottom: 60px; }
.contact-copy > p { max-width: 420px; color: var(--muted); line-height: 1.7; }
.contact-copy > a { display: inline-block; margin-top: 8px; color: var(--cyan); font-weight: 800; }
.contact-form { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; color: #334155; font-size: 13px; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 11px 12px; background: white; outline: none; }
.contact-form input { height: 46px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(2,132,199,.1); }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-status { min-height: 18px; margin: 0; color: var(--navy); font-size: 13px; }
footer { max-width: 1180px; width: 90%; margin: 100px auto 0; border-top: 1px solid var(--line); height: 150px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.portal-shell { min-height: calc(100vh - 72px); background: linear-gradient(135deg,#eef5ff,#fff); display: grid; place-items: center; padding: 40px 5%; }
.login-panel { width: min(980px,100%); min-height: 540px; display: grid; grid-template-columns: 1fr 430px; border-radius: 18px; overflow: hidden; box-shadow: 0 25px 70px rgba(30,58,138,.12); }
.login-copy { padding: 64px 54px; background: var(--navy-dark); color: white; display: flex; flex-direction: column; justify-content: center; }
.login-copy h1 { font-size: 50px; letter-spacing: -.05em; margin: 16px 0; }
.login-copy p { color: #bfdbfe; }
.login-form-card { background: white; padding: 36px 44px; display: flex; flex-direction: column; justify-content: center; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #eff4fb; border-radius: 9px; margin-bottom: 28px; }
.tabs button { height: 44px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.tabs button.active { background: white; color: var(--navy); box-shadow: 0 3px 12px rgba(30,58,138,.08); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label, .checkin-form label { display: flex; flex-direction: column; gap: 7px; color: #334155; font-size: 13px; font-weight: 800; }
.auth-form input, .auth-form select, .checkin-form input, .checkin-form select, .checkin-form textarea { height: 48px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 12px; background: white; outline: none; }
.password-input-wrap { position: relative; display: flex; align-items: center; }
.password-input-wrap input { width: 100%; padding-right: 68px; }
.password-toggle { position: absolute; right: 10px; border: 0; padding: 6px; background: transparent; color: var(--navy); font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-form input:focus, .auth-form select:focus, .checkin-form input:focus, .checkin-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(2,132,199,.1); }
.checkin-form textarea { height: auto; padding-top: 10px; resize: vertical; }
.form-help { color: var(--muted); font-size: 12px; margin: 0 0 4px; }
.dashboard { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 230px 1fr; }
.sidebar { background: var(--navy-dark); padding: 24px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-title { color: white; display: flex; flex-direction: column; padding: 8px 14px 24px; }
.sidebar-title span { color: #93c5fd; text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.sidebar-title strong { font-size: 16px; margin-top: 4px; }
.side-link { height: 42px; border: 0; border-radius: 8px; background: transparent; color: #bfdbfe; display: flex; align-items: center; gap: 8px; padding: 0 10px; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; }
.side-link span { width: 20px; text-align: center; }
.side-link.active { color: white; background: rgba(255,255,255,.11); box-shadow: inset 3px 0 #38bdf8; }
.dashboard-main { min-width: 0; padding: 34px 40px 60px; background: #f6f8fc; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dashboard-heading > div > span, .judge-heading > div > span { color: var(--cyan); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; font-weight: 900; }
.dashboard-heading h1, .judge-heading h1 { margin: 5px 0 0; color: var(--navy-dark); font-size: 30px; letter-spacing: -.03em; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { min-height: 132px; background: white; border: 1px solid var(--line); border-radius: 11px; padding: 20px; display: flex; flex-direction: column; }
.stat-card strong { color: var(--navy); font-size: 34px; }
.stat-card span { font-weight: 800; margin-top: 5px; }
.stat-card small { color: var(--muted); margin-top: auto; }
.admin-grid { display: grid; grid-template-columns: 1.6fr .8fr; gap: 18px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-heading span { color: var(--muted); font-size: 11px; }
.panel-heading h3 { margin: 4px 0 0; color: var(--navy-dark); }
.text-button { border: 0; background: none; color: var(--cyan); font-weight: 800; cursor: pointer; }
.empty-mini { min-height: 160px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-mini p { margin: 6px 0; }
.toggle-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.toggle-row span { display: flex; flex-direction: column; }
.toggle-row small { color: var(--muted); margin-top: 4px; }
.toggle-row input { width: 44px; height: 24px; accent-color: var(--cyan); }
.table-list div { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; min-height: 52px; border-top: 1px solid var(--line); }
.table-list b { color: var(--muted); font-size: 12px; }
.desk-grid { grid-template-columns: 1.5fr .5fr; }
.checkin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }
.allocation-slip { margin-top: 16px; border: 2px solid #86efac; background: #f0fdf4; border-radius: 10px; padding: 16px; display: grid; grid-template-columns: 1fr auto; }
.allocation-slip span { color: var(--green); font-weight: 800; }
.allocation-slip strong { font-size: 24px; color: var(--navy); grid-row: span 2; }
.allocation-slip div { display: flex; gap: 16px; margin-top: 6px; }
.capacity-list { display: grid; gap: 16px; }
.capacity-list > div > div:first-child { display: flex; justify-content: space-between; }
.capacity-list span { color: var(--muted); font-size: 12px; }
.progress { height: 7px; border-radius: 999px; background: #e2e8f0; margin-top: 8px; overflow: hidden; }
.progress i { height: 100%; display: block; background: linear-gradient(90deg,var(--cyan),var(--navy)); }
.live-badge, .limit-badge { background: #fee2e2; color: #b91c1c; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 900; }
.table-admin { width: 100%; }
.venue-row, .judge-row { min-height: 78px; display: grid; grid-template-columns: 52px 1fr 130px 44px; align-items: center; border-top: 1px solid var(--line); }
.venue-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #e0f2fe; color: var(--cyan); }
.venue-row div:nth-child(2), .judge-row div { display: flex; flex-direction: column; }
.venue-row div span, .judge-row div span { color: var(--muted); margin-top: 4px; }
.status-badge { width: fit-content; border-radius: 999px; padding: 6px 9px; background: #f1f5f9; color: var(--muted); font-size: 11px; font-weight: 800; }
.status-badge.good { background: #dcfce7; color: var(--green); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.table-head { min-height: 42px; display: grid; grid-template-columns: 1.4fr .8fr 1fr .8fr .6fr; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.judge-row { grid-template-columns: minmax(180px, 1.4fr) minmax(80px, .7fr) minmax(90px, .8fr) minmax(70px, .6fr) minmax(230px, 1.5fr); }
.judge-row div small { color: var(--muted); margin-top: 4px; font-size: 10px; }
.rubric-panel { margin-bottom: 16px; }
.criterion-row { min-height: 86px; display: grid; grid-template-columns: 24px 1fr 70px 70px 36px; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.criterion-row p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.drag { color: #94a3b8; }
.criterion-score, .criterion-weight { text-align: center; font-weight: 900; color: var(--navy); }
.criterion-score small { display: block; color: var(--muted); }
.leaderboard-panel { margin-bottom: 16px; }
.rank-list div { min-height: 58px; display: grid; grid-template-columns: 40px 1fr 100px 90px; align-items: center; border-top: 1px solid var(--line); }
.rank-list div b { color: #94a3b8; }
.rank-list div.promoted { background: #f0fdf4; margin: 0 -10px; padding: 0 10px; border-radius: 8px; }
.rank-list small { color: var(--green); }
.heading-actions { display: flex; gap: 8px; }
.monitor-head, .monitor-row { grid-template-columns: 70px minmax(140px,1.5fr) minmax(120px,1.15fr) minmax(105px,.9fr) minmax(105px,.9fr) minmax(125px,1fr); }
.monitor-row { min-height: 68px; display: grid; align-items: center; border-top: 1px solid var(--line); }
.monitor-row span { display: flex; flex-direction: column; }
.monitor-row span small { color: var(--muted); margin-top: 4px; }
.judge-shell { max-width: 1100px; width: 92%; margin: 0 auto; padding: 60px 0; }
.judge-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.judge-profile { display: flex; align-items: center; gap: 12px; }
.judge-profile > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #dbeafe; color: var(--navy); font-weight: 900; }
.judge-profile div { display: flex; flex-direction: column; }
.judge-profile small { color: var(--muted); margin-top: 3px; }
.stage-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stage-card { min-height: 360px; border: 1px solid var(--line); border-radius: 16px; background: white; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 12px 35px rgba(30,58,138,.06); }
.stage-card.final { background: var(--navy-dark); color: white; }
.stage-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 14px; background: #e0f2fe; color: var(--cyan); font-size: 22px; font-weight: 900; }
.stage-card.final .stage-icon { background: rgba(255,255,255,.1); color: #7dd3fc; }
.stage-card span { color: var(--cyan); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.stage-card h2 { margin: 8px 0; font-size: 28px; }
.stage-card p { color: var(--muted); }
.stage-card.final p { color: #bfdbfe; }
.stage-card b { color: var(--navy); }
.stage-card.final b { color: #7dd3fc; }
.judge-directory { max-width: 1100px; width: 92%; margin: 0 auto; padding: 36px 0 80px; }
.back-link { display: inline-block; color: var(--cyan); font-weight: 800; font-size: 13px; margin-bottom: 18px; }
.directory-heading { margin-bottom: 20px; }
.directory-tools { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.search-box { height: 50px; border: 1px solid #cbd5e1; background: white; border-radius: 9px; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); }
.search-box input { border: 0; outline: 0; width: 100%; height: 48px; }
.directory-tools select { border: 1px solid #cbd5e1; border-radius: 9px; background: white; padding: 0 12px; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.team-card { min-height: 210px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.team-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.team-card-top > strong { color: var(--navy); }
.team-card-status { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 6px; }
.team-card h3 { margin: 20px 0 4px; color: var(--navy-dark); }
.team-card p { color: var(--muted); margin: 0; }
.team-card .evaluation-cap-status { margin: 12px 0; color: var(--navy); font-size: 12px; font-weight: 700; }
.evaluation-cap-reached { color: #b91c1c; font-size: 12px; }
.team-location { margin-top: auto; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 12px; }
.team-location b { color: var(--navy); }
.empty-state { min-height: 430px; display: grid; place-content: center; text-align: center; background: white; border: 1px solid var(--line); border-radius: 14px; }
.empty-state div { width: 64px; height: 64px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: #eff6ff; color: #93c5fd; font-size: 30px; }
.empty-state h2 { color: var(--navy-dark); }
.empty-state p { color: var(--muted); }
.evaluation-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 300px 1fr; background: #edf3fa; }
.evaluation-team { background: var(--navy-dark); color: white; padding: 38px 32px; }
.evaluation-team .back-link { color: #7dd3fc; margin-bottom: 60px; }
.evaluation-team > span { color: #93c5fd; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.evaluation-team h1 { margin: 12px 0 4px; color: #7dd3fc; }
.evaluation-team h2 { line-height: 1.25; }
.evaluation-team p { color: #bfdbfe; }
.evaluation-team div { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; margin-top: 14px; }
.evaluation-team div small { color: #93c5fd; margin-bottom: 5px; }
.evaluation-sheet { width: 100%; max-width: 820px; margin: 0 auto; padding: 100px 24px 60px; }
.sticky-score { position: fixed; top: 72px; left: 300px; right: 0; z-index: 20; height: 76px; padding: 0 calc((100% - 820px)/2 + 24px); background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.sticky-score div { display: flex; align-items: baseline; gap: 8px; }
.sticky-score div span { color: var(--muted); font-size: 12px; margin-right: 8px; }
.sticky-score strong { color: var(--navy); font-size: 34px; }
.draft-badge { color: var(--muted); background: #f1f5f9; border-radius: 999px; padding: 7px 10px; font-size: 11px; }
.draft-badge.saved { color: var(--green); background: #dcfce7; }
.criterion-eval { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 12px; }
.criterion-title { display: grid; grid-template-columns: 1fr 80px; gap: 12px; }
.criterion-title h3 { color: var(--navy-dark); margin: 0 0 6px; }
.criterion-title p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.score-output { text-align: right; }
.score-output strong { color: var(--navy); font-size: 30px; }
.score-output span { color: var(--muted); }
.slider-wrap { margin-top: 18px; }
.score-slider { width: 100%; accent-color: var(--cyan); height: 44px; }
.slider-marks { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.module-hint { background: #f8fafc; color: var(--muted); border-radius: 7px; padding: 9px 10px; font-size: 12px; margin: 12px 0 0; }
.module-hint b { color: var(--navy); margin-right: 5px; }
.remarks { display: flex; flex-direction: column; gap: 8px; font-weight: 800; color: var(--navy-dark); margin: 18px 0 12px; }
.remarks textarea { border: 1px solid #cbd5e1; border-radius: 9px; padding: 12px; resize: vertical; outline: none; }
.submit-eval { min-height: 52px; }
@media (max-width: 900px) {
  .topbar { padding: 0 16px; }
  .topbar nav { gap: 12px; }
  .topbar nav a:first-child { display: none; }
  .hero { min-height: auto; padding: 70px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { min-height: 210px; }
  .strip { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .strip div:nth-child(2) { border-right: 0; }
  .card-grid.three, .card-grid.four, .split-section { grid-template-columns: 1fr 1fr; }
  .login-panel { grid-template-columns: 1fr 400px; }
  .login-copy { display: none; }
  .login-panel { width: 430px; grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 70px 1fr; }
  .sidebar { padding: 20px 8px; }
  .sidebar-title { display: none; }
  .side-link { justify-content: center; padding: 0; font-size: 0; }
  .side-link span { display: block; font-size: 16px; }
  .dashboard-main { padding: 28px 20px; }
  .directory-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-tools .search-box { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid, .desk-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .evaluation-shell { grid-template-columns: 220px 1fr; }
  .sticky-score { left: 220px; }
}
@media (max-width: 620px) {
  .topbar { height: 64px; }
  .brand > span:last-child { display: none; }
  .topbar nav { margin-left: auto; }
  .topbar nav a { font-size: 12px; }
  .sync-pill { bottom: 10px; right: 10px; }
  .hero h1 { font-size: 43px; }
  .hero-subtitle { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .strip { grid-template-columns: 1fr; }
  .strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding-top: 72px; }
  .section-heading h2 { font-size: 30px; }
  .card-grid.three, .card-grid.four, .split-section { grid-template-columns: 1fr; }
  .schedule-grid, .contact-section { grid-template-columns: 1fr; }
  .schedule-list { padding: 4px 16px; }
  .schedule-list li { grid-template-columns: 94px 1fr; gap: 8px; }
  .contact-section { gap: 20px; }
  .timeline article { grid-template-columns: 70px 1fr; }
  footer { flex-direction: column; justify-content: center; gap: 12px; text-align: center; }
  .portal-shell { padding: 20px 12px; align-items: start; }
  .login-panel { width: 100%; min-height: 520px; }
  .login-form-card { padding: 28px 20px; }
  .dashboard { display: block; }
  .sidebar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 40px; gap: 4px; padding: 6px; }
  .side-link { height: 40px; padding: 0 4px; font-size: 9px; line-height: 1.1; text-align: center; white-space: normal; }
  .side-link span { display: none; }
  .side-link.active { box-shadow: inset 0 3px #38bdf8; }
  .dashboard-main { padding: 22px 12px 160px; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading h1 { font-size: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 112px; }
  .checkin-form { grid-template-columns: 1fr; }
  .checkin-form .span-2 { grid-column: span 1; }
  .table-list div { grid-template-columns: 70px 1fr; }
  .table-list b { display: none; }
  .table-head { display: none; }
  .venue-row { grid-template-columns: 48px 1fr 90px 36px; }
  .judge-row { grid-template-columns: minmax(140px, 1fr) 70px 100px; padding: 10px 0; }
  .judge-row > span:nth-last-child(2) { display: none; }
  .criterion-row { grid-template-columns: 1fr 48px 48px 32px; }
  .criterion-row .drag { display: none; }
  .rank-list div { grid-template-columns: 30px 1fr 70px; }
  .rank-list small { display: none; }
  .monitor-row { grid-template-columns: 60px minmax(0,1fr) 110px; }
  .monitor-row > span:nth-child(3), .monitor-row > span:nth-child(4), .monitor-row > span:nth-child(5) { display: none; }
  .stage-cards { grid-template-columns: 1fr; }
  .stage-card { min-height: 260px; }
  .judge-profile { display: none; }
  .judge-shell { padding-top: 34px; }
  .directory-tools, .team-filter-tools { grid-template-columns: 1fr; }
  .final-result-row { grid-template-columns: 70px 1fr; }
  .final-result-row > b { grid-column: 2; }
  .directory-tools select { height: 44px; }
  .team-grid { grid-template-columns: 1fr; }
  .evaluation-shell { display: block; }
  .evaluation-team { min-height: auto; padding: 18px 16px; }
  .evaluation-team .back-link { margin-bottom: 12px; }
  .evaluation-team h1, .evaluation-team h2 { display: inline; margin-right: 8px; font-size: 20px; }
  .evaluation-team p, .evaluation-team div { display: none; }
  .evaluation-sheet { padding: 90px 10px 40px; }
  .sticky-score { top: 64px; left: 0; height: 66px; padding: 0 12px; }
  .criterion-eval { padding: 16px 12px; }
  .criterion-title { grid-template-columns: 1fr 70px; }
}
.btn.danger { background: #b91c1c; color: white; }
.btn.danger:hover { background: #991b1b; }
.dialog-fields label { display: flex; flex-direction: column; gap: 7px; color: #334155; font-size: 13px; font-weight: 800; }
.dialog-fields input, .dialog-fields textarea, .dialog-fields select {
  width: 100%; min-height: 42px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 11px; background: white; color: var(--ink); outline: none;
}
.dialog-fields textarea { resize: vertical; }
.dialog-fields input:focus, .dialog-fields textarea:focus, .dialog-fields select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(2,132,199,.1); }
.reset-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; color: #991b1b; background: #fff7f7; border-color: #fecaca; }
.reset-note p { margin: 0; color: #7f1d1d; font-size: 13px; line-height: 1.5; }
.members-editor { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
.members-editor .panel-heading { margin-bottom: 10px; }
.member-table-wrap { width: 100%; overflow-x: auto; }
.member-table { width: 100%; border-collapse: collapse; text-align: left; }
.member-table th { padding: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.member-table td { padding: 6px 8px; border-top: 1px solid var(--line); }
.member-table input { width: 100%; min-width: 130px; height: 40px; border: 1px solid #cbd5e1; border-radius: 7px; padding: 0 10px; outline: none; }
.member-table input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(2,132,199,.1); }
.admin-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-team-card { width: 100%; border: 1px solid var(--line); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.admin-team-card:hover { border-color: #93c5fd; box-shadow: 0 10px 24px rgba(30,58,138,.08); }
.team-score-summary { display: flex; justify-content: space-between; gap: 8px; margin: auto 0 14px; padding-top: 14px; color: var(--muted); font-size: 11px; }
.team-score-summary span { display: flex; flex-direction: column; gap: 4px; }
.team-score-summary b { color: var(--navy); }
.team-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: 16px; align-items: start; }
.profile-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-details div { min-width: 0; }
.profile-details dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.profile-details dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.subsection-title { color: var(--navy-dark); font-size: 14px; margin: 22px 0 8px; }
.evaluation-profile-list { display: grid; gap: 14px; }
.evaluation-profile-panel > .panel-heading > strong { color: var(--navy); }
.readonly-evaluation { padding: 13px 0; border-top: 1px solid var(--line); }
.evaluation-profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.evaluation-profile-heading::-webkit-details-marker { display: none; }
.evaluation-profile-heading::after { content: "+"; color: var(--cyan); font-size: 18px; font-weight: 800; }
.readonly-evaluation[open] .evaluation-profile-heading::after { content: "−"; }
.evaluation-profile-heading b { color: var(--navy); white-space: nowrap; }
.score-breakdown { display: grid; gap: 7px; margin-top: 12px; }
.score-breakdown span { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.score-breakdown b { color: var(--ink); white-space: nowrap; }
.readonly-evaluation p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-dialog { width: min(520px, calc(100vw - 28px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 14px; background: transparent; overflow: visible; }
.admin-dialog::backdrop { background: rgba(15,23,42,.58); backdrop-filter: blur(2px); }
.admin-dialog-card { position: relative; max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 25px 80px rgba(15,23,42,.24); }
.admin-dialog-card h2 { margin: 8px 0; color: var(--navy-dark); }
.admin-dialog-card > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; white-space: pre-line; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: #f1f5f9; color: var(--muted); font-size: 22px; cursor: pointer; }
.dialog-fields { display: grid; gap: 14px; }
.dialog-fields input, .dialog-fields select { min-height: 46px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.dialog-error { min-height: 18px; margin: 10px 0 0 !important; color: #b91c1c !important; font-weight: 700; }
.toast-region { position: fixed; top: 88px; right: 18px; z-index: 90; display: grid; gap: 10px; width: min(420px, calc(100vw - 28px)); max-height: calc(100vh - 110px); overflow-y: auto; }
.app-toast { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; border: 1px solid; border-radius: 12px; background: white; box-shadow: 0 14px 40px rgba(15,23,42,.18); animation: toast-enter .18s ease-out; transition: opacity .2s, transform .2s; }
.app-toast p { flex: 1; margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.app-toast.success { border-color: #86efac; }
.app-toast.success::before { content: "✓"; color: var(--green); font-weight: 900; }
.app-toast.error { border-color: #fecaca; }
.app-toast.error::before { content: "!"; color: #b91c1c; font-weight: 900; }
.app-toast.warning { border-color: #fcd34d; }
.app-toast.warning::before { content: "•"; color: var(--amber); font-size: 18px; line-height: 14px; }
.app-toast.info { border-color: #bae6fd; }
.app-toast.info::before { content: "i"; color: var(--cyan); font-weight: 900; }
.toast-dismiss { flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 18px; cursor: pointer; }
.app-toast.is-leaving { opacity: 0; transform: translateX(12px); }
.feedback-dialog { width: min(460px, calc(100vw - 28px)); max-width: none; padding: 0; border: 0; border-radius: 16px; background: transparent; }
.feedback-dialog::backdrop { background: rgba(15,23,42,.58); backdrop-filter: blur(3px); }
.feedback-dialog-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 25px 80px rgba(15,23,42,.24); }
.feedback-dialog-card h2 { margin: 8px 0; color: var(--navy-dark); }
.feedback-dialog-card > p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.feedback-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 50%; font-size: 21px; font-weight: 900; }
.feedback-icon.success { color: var(--green); background: #dcfce7; }
.credential-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }
.credential-field > span { grid-column: 1 / -1; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.credential-field strong, .credential-field code { color: var(--navy-dark); overflow-wrap: anywhere; }
.credential-field code { font-size: 15px; font-weight: 900; }
.feedback-dialog-card .form-help { margin-top: 12px; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .team-profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .admin-team-grid { grid-template-columns: 1fr; }
  .day2-finalist-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .profile-details { grid-template-columns: 1fr; }
  .reset-note { align-items: flex-start; flex-direction: column; }
  .dashboard-heading > .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .admin-dialog-card { padding: 24px 18px; }
  .feedback-dialog-card { padding: 24px 18px; }
  .toast-region { top: 72px; right: 10px; }
}
.admin-search { margin: 0 0 12px; }
.team-filter-tools { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.team-filter-tools select { min-height: 46px; border: 1px solid #cbd5e1; border-radius: 9px; background: white; padding: 0 12px; }
.confirm-finalist { align-self: end; }
.confirm-finalist .checkbox-label { min-height: 48px; display: flex; align-items: center; gap: 10px; color: #334155; font-size: 13px; font-weight: 600; }
.confirm-finalist input { width: 18px; height: 18px; flex: 0 0 18px; }
.day2-attendance-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.day2-attendance-summary > div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }
.day2-attendance-summary span { color: var(--muted); font-size: 12px; font-weight: 700; }
.day2-checkin-count, .day2-not-checked-in-count { color: var(--navy); font-size: 32px; }
.day2-not-checked-in-count { color: #b45309; }
.day2-team-link { margin-top: 12px; }
.day2-finalists-panel { grid-column: 1 / -1; }
.day2-finalist-list { display: grid; }
.day2-finalist-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid var(--line); }
.day2-finalist-row > span:nth-child(2) { color: var(--muted); font-size: 13px; }
.day2-checkin-notice { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0; padding: 14px; border: 1px solid; border-radius: 10px; }
.day2-checkin-notice.success { border-color: #86efac; background: #f0fdf4; color: #166534; }
.day2-checkin-notice.error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.day2-checkin-notice .notice-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.8); font-weight: 900; }
.day2-checkin-notice p { margin: 4px 0 0; font-size: 13px; }
.day2-team-status { margin-top: 8px; }
.final-winners-panel { margin-top: 16px; }
.final-module-results { padding-top: 14px; border-top: 1px solid var(--line); }
.final-module-results h4 { margin: 0 0 8px; color: var(--navy-dark); }
.final-result-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--line); }
.final-result-row > strong { color: var(--navy); font-size: 12px; }
.final-result-row > b { color: var(--navy); white-space: nowrap; }
.public-final-rank { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.public-final-rank h3 { margin-bottom: 4px; }
.public-final-rank p { margin-top: 0; }
.stage1-cap-form { margin: 14px 0 0; }
.team-number-preview { display: flex; min-height: 88px; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 12px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; color: var(--navy-dark); }
.team-number-preview output { color: var(--navy); font-size: 22px; font-weight: 900; }
.team-number-preview small { color: var(--muted); font-size: 11px; }
.profile-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdff; }
.profile-edit-form label { display: flex; flex-direction: column; gap: 7px; color: #334155; font-size: 12px; font-weight: 800; }
.profile-edit-form input, .profile-edit-form select { min-height: 42px; width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; background: white; }
.profile-edit-form .form-help { margin: 0; font-weight: 400; }
.profile-edit-form button { grid-column: 1 / -1; justify-self: start; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.compact { min-height: 36px; padding: 0 10px; font-size: 12px; }
.danger-icon { color: #b91c1c; border-color: #fecaca; }
.venue-row { grid-template-columns: 52px 1fr 100px 100px; }
.judge-table-head, .judge-row { grid-template-columns: minmax(180px, 1.4fr) minmax(80px, .7fr) minmax(90px, .8fr) minmax(70px, .6fr) minmax(230px, 1.5fr); }
.judge-row .row-actions { flex-direction: row; flex-wrap: wrap; }
.table-admin { overflow-x: auto; }
.judge-history-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; min-height: 62px; padding: 10px 0; border-top: 1px solid var(--line); }
.judge-history-row > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.judge-history-row small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.judge-history-row > b { color: var(--navy); white-space: nowrap; }
.button-spinner { width: 15px; height: 15px; flex: 0 0 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: button-spin .7s linear infinite; }
.btn.is-loading, .icon-button.is-loading { gap: 8px; cursor: wait; opacity: .8; }
@keyframes button-spin { to { transform: rotate(360deg); } }
@media (max-width: 620px) {
  .profile-edit-form { grid-template-columns: 1fr; }
  .profile-edit-form button { grid-column: auto; width: 100%; }
  .venue-row { grid-template-columns: 42px minmax(100px, 1fr) 80px 78px; }
  .judge-row { grid-template-columns: minmax(140px, 1fr) 68px 90px 70px 230px; }
  .judge-row > span:nth-last-child(2) { display: flex; }
  .judge-table-head { display: none; }
  .judge-history-row { grid-template-columns: 1fr auto; }
  .judge-history-row .text-button { grid-column: 1 / -1; justify-self: start; }
}
