:root {
  --competition-navy: #123c69;
  --competition-navy-deep: #092a4c;
  --competition-blue: #1d65a6;
  --competition-sky: #e9f4ff;
  --competition-ink: #172233;
  --competition-muted: #667085;
  --competition-line: #d9e1eb;
  --competition-surface: #ffffff;
  --competition-bg: #f3f6fa;
  --competition-success: #147d55;
  --competition-success-bg: #e8f7f0;
  --competition-warning: #a35a00;
  --competition-warning-bg: #fff3dc;
  --competition-danger: #b42318;
  --competition-danger-bg: #fff0ee;
  --competition-shadow: 0 12px 32px rgba(16, 42, 67, .09);
  --competition-radius: 18px;
}

.competition-judge-body,
.competition-judge-body * { box-sizing: border-box; }

.competition-judge-body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--competition-ink);
  background: var(--competition-bg);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.competition-judge-body button,
.competition-judge-body input,
.competition-judge-body select,
.competition-judge-body textarea { font: inherit; }

.competition-judge-body button,
.competition-judge-body a { -webkit-tap-highlight-color: transparent; }

.competition-judge-body a { color: inherit; text-decoration: none; }

.competition-judge-body :focus-visible,
.competition-admin-shell :focus-visible {
  outline: 3px solid #4c9ffe;
  outline-offset: 2px;
}

.judge-network-banner {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 44px;
  padding: 11px 18px;
  color: #fff;
  background: var(--competition-danger);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.judge-topbar {
  position: sticky;
  z-index: 60;
  top: 0;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(217, 225, 235, .9);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.judge-network-banner:not([hidden]) + .judge-topbar { top: 44px; }

.judge-brand,
.judge-account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.judge-brand { min-height: 48px; }
.judge-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--competition-blue), var(--competition-navy-deep));
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(18, 60, 105, .22);
}

.judge-brand span:last-child,
.judge-account > span { display: grid; min-width: 0; gap: 2px; }
.judge-brand b { font-size: 16px; }
.judge-brand small,
.judge-account small { overflow: hidden; color: var(--competition-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.judge-account { justify-content: flex-end; }
.judge-account > span { text-align: right; }
.judge-account b { font-size: 13px; }

.judge-quiet-button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--competition-line);
  border-radius: 12px;
  color: #344054;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.judge-main {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 22px max(16px, env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.judge-flash {
  width: min(calc(100% - 32px), 788px);
  margin: 14px auto 0;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 14px;
  font-weight: 750;
}
.judge-flash.success { color: #0f6848; border-color: #a6dbc8; background: var(--competition-success-bg); }
.judge-flash.error { color: #8f1710; border-color: #f3b6b0; background: var(--competition-danger-bg); }

.judge-save-announcer {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 16px;
  max-width: 520px;
  margin: auto;
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  background: var(--competition-navy-deep);
  box-shadow: 0 14px 34px rgba(9, 42, 76, .28);
  text-align: center;
  font-weight: 850;
}
.judge-save-announcer.error { background: var(--competition-danger); }
.judge-save-announcer.success { background: var(--competition-success); }

.judge-bottom-nav {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: calc(72px + env(safe-area-inset-bottom));
  padding: 5px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
  border-top: 1px solid var(--competition-line);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -10px 28px rgba(16, 42, 67, .08);
}
.judge-bottom-nav a {
  display: grid;
  min-height: 62px;
  place-content: center;
  gap: 3px;
  border-radius: 14px;
  color: #667085;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}
.judge-bottom-nav a span { font-size: 21px; line-height: 1; }
.judge-bottom-nav a.active { color: var(--competition-navy); background: var(--competition-sky); }

.judge-kicker,
.competition-eyebrow {
  color: var(--competition-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.judge-dashboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.judge-dashboard-head h1 { margin: 6px 0 5px; font-size: clamp(23px, 6vw, 32px); line-height: 1.25; }
.judge-dashboard-head p { margin: 0; color: var(--competition-muted); font-size: 14px; }
.judge-live-status {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #b9dfcf;
  border-radius: 999px;
  color: #0d6b49;
  background: var(--competition-success-bg);
  font-size: 12px;
  font-weight: 850;
}
.judge-live-status span { width: 8px; height: 8px; border-radius: 50%; background: #16a06b; box-shadow: 0 0 0 4px rgba(22,160,107,.12); }
.judge-live-status.closed { color: #5f6b7b; border-color: var(--competition-line); background: #eef1f5; }
.judge-live-status.closed span { background: #98a2b3; box-shadow: none; }

.judge-stage-filters {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 0 -16px 18px;
  padding: 0 16px 7px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.judge-stage-filters::-webkit-scrollbar { display: none; }
.judge-stage-filters a {
  display: flex;
  min-width: max-content;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--competition-line);
  border-radius: 14px;
  background: #fff;
  color: #475467;
  font-size: 14px;
  font-weight: 850;
  scroll-snap-align: start;
}
.judge-stage-filters a b { display: grid; min-width: 24px; height: 24px; place-items: center; border-radius: 999px; background: #eef2f6; font-size: 12px; }
.judge-stage-filters a.active { color: #fff; border-color: var(--competition-navy); background: var(--competition-navy); }
.judge-stage-filters a.active b { color: var(--competition-navy); background: #fff; }

.judge-participant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.judge-participant-card {
  overflow: hidden;
  border: 1px solid var(--competition-line);
  border-radius: var(--competition-radius);
  background: #fff;
  box-shadow: 0 7px 22px rgba(16, 42, 67, .06);
}
.judge-participant-card.dq { border-color: #efaaa4; background: #fffafa; }
.judge-participant-main { position: relative; display: grid; min-height: 154px; align-content: center; justify-items: center; padding: 18px; }
.judge-number-label { color: var(--competition-muted); font-size: 11px; font-weight: 800; }
.judge-participant-number { margin: 1px 0 4px; color: var(--competition-navy-deep); font-size: clamp(46px, 12vw, 64px); line-height: 1; letter-spacing: -.05em; }
.judge-participant-name { margin-top: 8px; font-size: 14px; font-weight: 800; }
.judge-stage-pill,
.competition-stage-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: #344054;
  background: #eef2f6;
  font-size: 12px;
  font-weight: 850;
}
.stage-disassembly { color: #854a00; background: #fff1d6; }
.stage-wheel_building { color: #155c95; background: #e4f3ff; }
.stage-assembly { color: #6b3aa8; background: #f2e9ff; }
.stage-assembly_complete { color: #0e704c; background: #e4f6ee; }
.dq .judge-stage-pill { color: #9e1c14; background: var(--competition-danger-bg); }

.judge-participant-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; background: #fafbfd; }
.judge-participant-summary span { display: grid; min-width: 0; gap: 2px; padding: 10px 5px; text-align: center; }
.judge-participant-summary span + span { border-left: 1px solid #edf0f4; }
.judge-participant-summary small { color: var(--competition-muted); font-size: 10px; }
.judge-participant-summary b { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.judge-card-actions { display: grid; grid-template-columns: 1fr 1.08fr; gap: 8px; padding: 10px; }

.judge-primary-button,
.judge-secondary-button,
.judge-danger-button,
.judge-camera-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.judge-primary-button { color: #fff; border-color: var(--competition-navy); background: var(--competition-navy); box-shadow: 0 5px 13px rgba(18,60,105,.16); }
.judge-secondary-button { color: var(--competition-navy); border-color: #b8c9dc; background: #fff; }
.judge-danger-button { color: #fff; border-color: var(--competition-danger); background: var(--competition-danger); }
.judge-primary-button:disabled,
.judge-secondary-button:disabled,
.judge-danger-button:disabled,
.judge-camera-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.judge-full-button { width: 100%; min-height: 58px; }

.judge-empty-state { grid-column: 1 / -1; padding: 44px 20px; border: 1px dashed #bdc8d5; border-radius: var(--competition-radius); background: rgba(255,255,255,.6); text-align: center; }
.judge-empty-state b { font-size: 18px; }
.judge-empty-state p { margin: 7px 0 0; color: var(--competition-muted); }
.judge-independence-note { margin-top: 18px; padding: 16px 18px; border: 1px solid #c9d9e9; border-radius: 16px; background: #eef6fd; }
.judge-independence-note b { color: var(--competition-navy); }
.judge-independence-note p { margin: 5px 0 0; color: #536478; font-size: 13px; line-height: 1.55; }
.judge-ranking-panel { margin-top: 14px; padding: 18px; border-radius: var(--competition-radius); background: #fff; }
.judge-ranking-panel h2 { margin: 0 0 12px; font-size: 18px; }
.judge-ranking-panel > div { display: flex; min-height: 44px; align-items: center; justify-content: space-between; border-top: 1px solid #edf0f4; }

.judge-login-page { background: radial-gradient(circle at 15% 5%, #e1f1ff, transparent 32%), linear-gradient(180deg, #f7fbff, #edf2f7); }
.judge-login-page .judge-topbar { display: none; }
.judge-login-page .judge-main { display: grid; min-height: 100vh; place-items: center; padding-bottom: 24px; }
.judge-login-card { width: min(100%, 470px); padding: clamp(24px, 7vw, 38px); border: 1px solid rgba(185, 201, 220, .75); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(9,42,76,.14); }
.judge-login-heading h1 { margin: 8px 0; font-size: 30px; }
.judge-login-heading p { margin: 0 0 24px; color: var(--competition-muted); line-height: 1.6; }
.judge-login-help { margin: 18px 0 0; color: var(--competition-muted); font-size: 12px; line-height: 1.6; text-align: center; }

.judge-form { display: grid; gap: 17px; }
.judge-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.judge-form legend { margin-bottom: 12px; font-size: 16px; font-weight: 900; }
.judge-form label:not(.judge-camera-button):not(.judge-existing-record):not(.judge-score-item) { display: grid; gap: 7px; color: #344054; font-size: 14px; font-weight: 800; }
.judge-form label > span > small,
.judge-form label > span small { color: var(--competition-muted); font-size: 11px; font-weight: 600; }
.judge-form em { color: var(--competition-danger); font-style: normal; }
.judge-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.judge-form select,
.judge-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid #b8c3d0;
  border-radius: 12px;
  color: var(--competition-ink);
  background: #fff;
  font-size: 16px;
}
.judge-form textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.judge-form input:focus,
.judge-form select:focus,
.judge-form textarea:focus { border-color: var(--competition-blue); box-shadow: 0 0 0 3px rgba(29,101,166,.12); outline: 0; }
.judge-form input[aria-invalid="true"],
.judge-form textarea[aria-invalid="true"] { border-color: var(--competition-danger); }
.judge-draft-hint { margin: -7px 0 0; color: var(--competition-muted); font-size: 12px; text-align: center; }
.judge-draft-hint.saved { color: var(--competition-success); font-weight: 800; }

.judge-back-link,
.competition-back-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 8px; color: var(--competition-navy); font-size: 14px; font-weight: 850; }
.judge-participant-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--competition-navy-deep), var(--competition-navy)); box-shadow: var(--competition-shadow); }
.judge-participant-hero.dq { background: linear-gradient(135deg, #6d1611, #a72820); }
.judge-hero-number { display: grid; justify-items: center; }
.judge-hero-number span { color: rgba(255,255,255,.7); font-size: 10px; font-weight: 800; }
.judge-hero-number strong { font-size: clamp(54px, 14vw, 72px); line-height: 1; letter-spacing: -.06em; }
.judge-hero-detail { min-width: 0; }
.judge-hero-detail .judge-stage-pill { margin-bottom: 7px; }
.judge-hero-detail h1 { overflow: hidden; margin: 0; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.judge-hero-detail p { overflow: hidden; margin: 4px 0 0; color: rgba(255,255,255,.72); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.judge-score-block { display: grid; min-width: 92px; justify-items: center; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.12); }
.judge-score-block > span { font-size: 11px; }
.judge-score-block strong { font-size: 34px; line-height: 1.15; }
.judge-score-block small { color: rgba(255,255,255,.72); font-size: 10px; }

.judge-stage-progress { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 20px; padding: 0; list-style: none; }
.judge-stage-progress li { position: relative; display: grid; justify-items: center; gap: 5px; color: #8994a3; font-size: 11px; font-weight: 750; text-align: center; }
.judge-stage-progress li::before { position: absolute; z-index: 0; top: 14px; right: 50%; left: -50%; height: 2px; background: #cbd4df; content: ""; }
.judge-stage-progress li:first-child::before { display: none; }
.judge-stage-progress li span { z-index: 1; display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid #cbd4df; border-radius: 50%; background: var(--competition-bg); }
.judge-stage-progress li.current { color: var(--competition-navy); }
.judge-stage-progress li.current span { color: #fff; border-color: var(--competition-navy); background: var(--competition-navy); }
.judge-stage-progress li.complete { color: var(--competition-success); }
.judge-stage-progress li.complete span { color: #fff; border-color: var(--competition-success); background: var(--competition-success); }
.judge-stage-progress li.complete::before,
.judge-stage-progress li.current::before { background: var(--competition-success); }

.judge-blocking-notice,
.judge-change-warning { margin-bottom: 16px; padding: 16px 18px; border: 1px solid #e6bbb8; border-radius: 16px; color: #81201a; background: var(--competition-danger-bg); }
.judge-blocking-notice b,
.judge-change-warning b { font-size: 16px; }
.judge-blocking-notice p,
.judge-change-warning p { margin: 5px 0 0; font-size: 13px; line-height: 1.55; }
.judge-change-warning { margin: 0; border-color: #edcf92; color: #774500; background: var(--competition-warning-bg); }

.judge-work-card { margin-top: 16px; padding: clamp(18px, 5vw, 26px); border: 1px solid var(--competition-line); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(16,42,67,.055); scroll-margin-top: 90px; }
.judge-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.judge-section-heading h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.judge-section-heading p { margin: 5px 0 0; color: var(--competition-muted); font-size: 13px; line-height: 1.55; }
.judge-step-badge { display: inline-flex; min-width: max-content; min-height: 30px; align-items: center; padding: 4px 9px; border-radius: 9px; color: var(--competition-navy); background: var(--competition-sky); font-size: 11px; font-weight: 900; }
.judge-step-badge.always { color: #8f1710; background: var(--competition-danger-bg); }

.judge-checklist { display: grid; gap: 9px; }
.judge-checklist label { display: flex !important; min-height: 58px; align-items: center; gap: 12px !important; padding: 11px 13px; border: 1px solid var(--competition-line); border-radius: 14px; background: #fbfcfe; cursor: pointer; }
.judge-checklist input { width: 24px; height: 24px; flex: 0 0 24px; accent-color: var(--competition-success); }
.judge-checklist label > span { display: grid; gap: 2px; }
.judge-checklist label small { color: var(--competition-muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.judge-checklist label:has(input:checked) { border-color: #8fcbb4; background: var(--competition-success-bg); }

.judge-photo-field { display: grid; gap: 11px; padding: 16px; border: 1px dashed #9fb4c9; border-radius: 16px; background: #f7fbff; }
.judge-photo-field > div:first-child { display: grid; gap: 3px; }
.judge-photo-field > div > small { color: var(--competition-muted); font-size: 12px; line-height: 1.5; }
.judge-photo-field input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.judge-camera-button { width: 100%; color: #fff; background: var(--competition-blue); }
.judge-camera-button span { font-size: 20px; }
.judge-photo-previews { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px !important; }
.judge-photo-preview { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: #dfe7ef; }
.judge-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.judge-photo-preview button { position: absolute; top: 5px; right: 5px; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(31,42,55,.82); font-size: 24px; cursor: pointer; }
.judge-photo-preview small { position: absolute; right: 4px; bottom: 4px; left: 4px; overflow: hidden; padding: 3px 5px; border-radius: 5px; color: #fff; background: rgba(0,0,0,.55); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.judge-big-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.judge-big-choice-grid form,
.judge-big-choice-grid button { width: 100%; }
.judge-big-choice-grid .judge-primary-button,
.judge-big-choice-grid > .judge-danger-button { min-height: 68px; font-size: 17px; }
.judge-confirm-panel { margin-top: 14px; padding: 17px; border: 1px solid #efb1ac; border-radius: 16px; background: #fff8f7; }
.judge-confirm-panel h3 { margin: 0; color: var(--competition-danger); }
.judge-confirm-panel > p { margin: 6px 0 0; color: #71433f; font-size: 13px; line-height: 1.55; }
.judge-inline-actions,
.judge-stack-actions { display: flex; justify-content: flex-end; gap: 9px; }
.judge-inline-actions > *,
.judge-stack-actions > * { flex: 1; }
.judge-stack-actions { display: grid; grid-template-columns: 1fr 1.2fr; }

.judge-measurement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.judge-rule-result { padding: 15px; border-radius: 14px; color: #3f5369; background: #f0f5fa; }
.judge-rule-result b { color: var(--competition-navy); }
.judge-rule-result p { margin: 4px 0 0; font-size: 12px; line-height: 1.55; }
.judge-measurement-summary { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 18px; border: 1px solid var(--competition-line); border-radius: 15px; background: #f9fbfd; }
.judge-measurement-summary div { padding: 12px; border-bottom: 1px solid var(--competition-line); }
.judge-measurement-summary div:nth-child(odd) { border-right: 1px solid var(--competition-line); }
.judge-measurement-summary div:nth-last-child(-n+2) { border-bottom: 0; }
.judge-measurement-summary dt { color: var(--competition-muted); font-size: 11px; }
.judge-measurement-summary dd { margin: 3px 0 0; font-size: 18px; font-weight: 900; }
.judge-signature-statement { margin: 0; padding: 13px 15px; border-radius: 12px; color: var(--competition-navy-deep); background: var(--competition-sky); font-weight: 850; text-align: center; }
.judge-signature-pad { position: relative; overflow: hidden; height: 190px; border: 2px solid #7f91a6; border-radius: 14px; background: #fff; touch-action: none; }
.judge-signature-pad canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.judge-signature-pad > span { position: absolute; top: 50%; right: 0; left: 0; color: #a1aab6; text-align: center; transform: translateY(-50%); pointer-events: none; }
.judge-signature-pad.has-signature > span { display: none; }
.judge-signed-state,
.competition-finalized-state { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #9fd2bd; border-radius: 15px; color: #0c6546; background: var(--competition-success-bg); }
.judge-signed-state > span,
.competition-finalized-state > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 50%; color: #fff; background: var(--competition-success); font-weight: 900; }
.judge-signed-state div,
.competition-finalized-state div { display: grid; gap: 3px; }
.judge-signed-state small { color: #417561; }

.judge-two-column-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.judge-duplicate-panel { display: grid; gap: 9px; padding: 15px; border: 2px solid #efc16a; border-radius: 16px; background: #fffbf1; }
.judge-duplicate-title { display: flex; align-items: flex-start; gap: 10px; }
.judge-duplicate-title > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--competition-warning); font-weight: 900; }
.judge-duplicate-title div { display: grid; gap: 2px; }
.judge-duplicate-title p { margin: 0; color: #795c2c; font-size: 12px; }
.judge-existing-record { display: flex; min-height: 70px; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid #e7c985; border-radius: 13px; background: #fff; cursor: pointer; }
.judge-existing-record input { width: 23px; height: 23px; flex: 0 0 23px; margin-top: 2px; accent-color: var(--competition-warning); }
.judge-existing-record > span { display: grid; gap: 3px; }
.judge-existing-record em { color: #3e4754; font-size: 13px; }
.judge-existing-record small { color: var(--competition-muted); font-size: 11px; }
.judge-existing-record.different { border-color: #e4a6a1; background: #fff8f7; }
.judge-existing-record:has(input:checked) { border-width: 2px; border-color: var(--competition-warning); box-shadow: 0 0 0 3px rgba(163,90,0,.09); }
.judge-record-list { margin-top: 22px; }
.judge-record-list h3 { margin: 0 0 10px; font-size: 16px; }
.judge-record-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: flex-start; gap: 11px; padding: 13px 0; border-top: 1px solid #edf0f4; }
.judge-record-subject { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--competition-navy); background: var(--competition-sky); font-weight: 900; }
.judge-record-list article div { min-width: 0; }
.judge-record-list article p { margin: 3px 0; font-size: 13px; line-height: 1.45; }
.judge-record-list article small { color: var(--competition-muted); font-size: 10px; }
.judge-record-list article > strong { color: var(--competition-danger); font-size: 20px; }

.judge-score-section { overflow: hidden; margin-bottom: 12px !important; border: 1px solid var(--competition-line) !important; border-radius: 15px; }
.judge-score-section legend { display: flex; width: 100%; min-height: 50px; align-items: center; gap: 9px; margin: 0; padding: 9px 13px; background: #eef4fa; }
.judge-score-section legend span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #fff; background: var(--competition-navy); }
.judge-score-section legend b { flex: 1; }
.judge-score-section legend em { color: var(--competition-navy); font-size: 13px; }
.judge-score-item { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 12px; min-height: 72px; padding: 11px 13px; border-top: 1px solid #edf0f4; }
.judge-score-item > span:first-child { display: grid; gap: 3px; }
.judge-score-item small { color: var(--competition-muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.judge-score-input { display: flex; align-items: center; gap: 4px; }
.judge-score-input input { min-width: 0; padding: 8px !important; text-align: right; }
.judge-score-input em { min-width: max-content; color: var(--competition-muted); font-size: 11px; }
.judge-unavailable-rule { margin: 0; padding: 16px; color: var(--competition-danger); font-size: 13px; }
.judge-official-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; padding: 15px; border-radius: 14px; background: var(--competition-navy-deep); color: #fff; }
.judge-official-total span { margin-right: auto; font-weight: 800; }
.judge-official-total strong { font-size: 32px; }
.judge-official-total em { color: rgba(255,255,255,.7); }

.judge-timeline { margin: 0; padding: 0; list-style: none; }
.judge-timeline li { display: grid; grid-template-columns: 62px 12px minmax(0, 1fr); gap: 10px; min-height: 62px; }
.judge-timeline time { color: var(--competition-muted); font-size: 11px; }
.judge-timeline li > span { position: relative; width: 10px; height: 10px; margin-top: 2px; border-radius: 50%; background: var(--competition-blue); }
.judge-timeline li > span::after { position: absolute; top: 12px; bottom: -47px; left: 4px; width: 2px; background: #d7e1eb; content: ""; }
.judge-timeline li:last-child > span::after { display: none; }
.judge-timeline b { font-size: 14px; }
.judge-timeline p { margin: 3px 0; color: #475467; font-size: 12px; line-height: 1.45; }
.judge-timeline small { color: var(--competition-muted); }

/* ERP MASTER competition screens */
.competition-admin-shell,
.competition-admin-shell * { box-sizing: border-box; }
.competition-admin-shell { width: min(100%, 1520px); margin: 0 auto; padding: 24px; color: var(--competition-ink); }
.competition-admin-head,
.competition-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.competition-admin-head h1,
.competition-detail-head h1 { margin: 6px 0; color: var(--competition-navy-deep); font-size: clamp(28px, 3vw, 40px); line-height: 1.18; }
.competition-admin-head p,
.competition-detail-head p { margin: 0; color: var(--competition-muted); }
.competition-admin-shell .btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid #b9c6d4; border-radius: 11px; color: #344054; background: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.competition-admin-shell .btn.primary { color: #fff; border-color: var(--competition-navy); background: var(--competition-navy); }
.competition-admin-shell .btn.danger { color: #fff; border-color: var(--competition-danger); background: var(--competition-danger); }
.competition-admin-shell .btn:disabled { cursor: not-allowed; opacity: .55; }

.competition-admin-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.competition-admin-summary article { display: grid; gap: 3px; min-height: 116px; padding: 18px; border: 1px solid var(--competition-line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(16,42,67,.045); }
.competition-admin-summary span { color: var(--competition-muted); font-size: 13px; font-weight: 750; }
.competition-admin-summary b { color: var(--competition-navy-deep); font-size: 32px; line-height: 1.1; }
.competition-admin-summary small { color: #8a94a3; }
.competition-admin-summary.stage-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.competition-admin-summary article.danger { border-color: #efb8b3; background: #fff8f7; }
.competition-admin-summary article.danger b { color: var(--competition-danger); }

.competition-admin-shell .panel { margin: 0 0 18px; padding: 22px; border: 1px solid var(--competition-line); border-radius: var(--competition-radius); background: #fff; box-shadow: 0 7px 22px rgba(16,42,67,.045); }
.competition-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.competition-panel-head h2 { margin: 0; color: var(--competition-navy-deep); font-size: 21px; }
.competition-panel-head p { margin: 5px 0 0; color: var(--competition-muted); font-size: 13px; line-height: 1.5; }
.competition-header-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.competition-admin-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; padding: 18px; border: 1px solid #c7d5e3; border-radius: 15px; background: #f5f9fd; }
.competition-admin-form.single { grid-template-columns: 1fr; margin: 16px 0 0; }
.competition-admin-form label { display: grid; align-content: start; gap: 6px; color: #344054; font-size: 13px; font-weight: 750; }
.competition-admin-form label > span small { color: var(--competition-muted); font-weight: 500; }
.competition-admin-form input:not([type="checkbox"]),
.competition-admin-form select,
.competition-admin-form textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #b6c2cf; border-radius: 10px; background: #fff; font: inherit; }
.competition-admin-form textarea { min-height: 76px; resize: vertical; }
.competition-admin-form .wide { grid-column: span 2; }
.competition-form-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.competition-confirm-check { display: flex !important; min-height: 44px; grid-template-columns: auto 1fr; align-items: center !important; }
.competition-confirm-check input { width: 21px; height: 21px; accent-color: var(--competition-navy); }

.competition-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.competition-list-card { display: grid; gap: 10px; min-height: 238px; padding: 19px; border: 1px solid var(--competition-line); border-radius: 16px; color: inherit; background: #fff; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.competition-list-card:hover { border-color: #9db8d1; box-shadow: var(--competition-shadow); transform: translateY(-2px); }
.competition-list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.competition-type-badge,
.competition-status,
.competition-count-badge,
.competition-dq-badge,
.competition-warning-badge,
.competition-award-badge,
.competition-tie-badge { display: inline-flex; width: max-content; min-height: 28px; align-items: center; padding: 4px 9px; border-radius: 999px; color: var(--competition-navy); background: var(--competition-sky); font-size: 11px; font-style: normal; font-weight: 850; }
.competition-status.status-active,
.competition-status.status-running,
.competition-status.status-in_progress { color: #0c6d4a; background: var(--competition-success-bg); }
.competition-status.status-ended { color: #684b00; background: var(--competition-warning-bg); }
.competition-status.status-finalized { color: #fff; background: var(--competition-navy); }
.competition-status.status-finished { color: #684b00; background: var(--competition-warning-bg); }
.competition-dq-badge { color: #fff; background: var(--competition-danger); }
.competition-list-card h3 { margin: 2px 0 0; font-size: 19px; line-height: 1.4; }
.competition-list-card > p { margin: 0; color: var(--competition-muted); font-size: 13px; }
.competition-list-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid #edf0f4; border-radius: 11px; background: #fafbfd; }
.competition-list-card dl div { padding: 9px; }
.competition-list-card dt { color: var(--competition-muted); font-size: 10px; }
.competition-list-card dd { margin: 2px 0 0; font-weight: 850; }
.competition-open-link { margin-top: auto; color: var(--competition-blue); font-size: 13px; font-weight: 850; }
.competition-admin-empty { width: 100%; padding: 28px 16px; color: var(--competition-muted); text-align: center; }
.competition-admin-empty p { margin: 5px 0 0; }

.competition-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.competition-anchor-nav { position: sticky; z-index: 10; top: 10px; display: flex; overflow-x: auto; gap: 6px; margin-bottom: 16px; padding: 7px; border: 1px solid var(--competition-line); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(16,42,67,.06); backdrop-filter: blur(8px); scrollbar-width: none; }
.competition-anchor-nav::-webkit-scrollbar { display: none; }
.competition-anchor-nav a { display: inline-flex; min-width: max-content; min-height: 40px; align-items: center; padding: 0 12px; border-radius: 9px; color: #526071; font-size: 12px; font-weight: 800; text-decoration: none; }
.competition-anchor-nav a:hover { color: var(--competition-navy); background: var(--competition-sky); }
.competition-admin-section { scroll-margin-top: 82px; }

.competition-table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.competition-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; }
.competition-table th { padding: 11px 12px; border-top: 1px solid var(--competition-line); border-bottom: 1px solid var(--competition-line); color: var(--competition-muted); background: #f6f8fb; font-size: 11px; text-align: left; white-space: nowrap; }
.competition-table th:first-child { border-left: 1px solid var(--competition-line); border-radius: 11px 0 0 11px; }
.competition-table th:last-child { border-right: 1px solid var(--competition-line); border-radius: 0 11px 11px 0; }
.competition-table td { padding: 13px 12px; border-bottom: 1px solid #edf0f4; vertical-align: middle; font-size: 13px; }
.competition-table td > b,
.competition-table td > span:not(.competition-stage-badge):not(.competition-inline-score) { display: block; }
.competition-table td small { display: block; margin-top: 3px; color: var(--competition-muted); font-size: 10px; }
.competition-table tr.dq-row td { color: #884039; background: #fffafa; }
.competition-player-number { display: inline-grid !important; min-width: 36px; height: 36px; margin-right: 7px; place-items: center; border-radius: 9px; color: #fff; background: var(--competition-navy); font-size: 16px; }
.competition-row-menu { position: relative; }
.competition-row-menu summary { display: inline-flex; min-height: 36px; align-items: center; padding: 5px 10px; border: 1px solid #bdc8d4; border-radius: 9px; background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.competition-row-menu summary::-webkit-details-marker { display: none; }
.competition-row-menu[open] > div { position: absolute; z-index: 15; top: 42px; right: 0; width: 290px; padding: 13px; border: 1px solid var(--competition-line); border-radius: 13px; background: #fff; box-shadow: var(--competition-shadow); }
.competition-row-menu form { display: grid; gap: 9px; }
.competition-row-menu form + form { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--competition-line); }
.competition-row-menu .competition-row-delete-form .btn { width: 100%; }
.competition-row-menu label { display: grid; gap: 4px; font-size: 11px; font-weight: 750; }
.competition-row-menu select,
.competition-row-menu input,
.competition-row-menu textarea { width: 100%; min-height: 40px; padding: 8px; border: 1px solid #b8c3cf; border-radius: 8px; font: inherit; }

.competition-judge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.competition-judge-grid article { position: relative; display: grid; gap: 7px; padding: 16px; border: 1px solid var(--competition-line); border-radius: 14px; background: #fbfcfe; }
.competition-judge-grid h3 { margin: 0; font-size: 17px; }
.competition-judge-grid p { margin: 0; color: var(--competition-muted); font-size: 12px; }
.competition-judge-grid dl { display: grid; gap: 6px; margin: 8px 0; }
.competition-judge-grid dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.competition-judge-grid dt { color: var(--competition-muted); }
.competition-judge-grid dd { margin: 0; font-weight: 800; text-align: right; }
.competition-judge-state { display: flex; align-items: center; gap: 6px; color: var(--competition-muted); font-size: 11px; font-weight: 800; }
.competition-judge-state span { width: 8px; height: 8px; border-radius: 50%; background: #98a2b3; }
.competition-judge-state span.online { background: #16a06b; box-shadow: 0 0 0 4px rgba(22,160,107,.11); }

.competition-admin-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.competition-wait-list,
.competition-submission-list { display: grid; gap: 8px; }
.competition-wait-list a,
.competition-submission-list article { display: grid; min-height: 62px; align-content: center; gap: 3px; padding: 11px 13px; border: 1px solid #e3e8ef; border-radius: 11px; color: inherit; background: #fbfcfd; text-decoration: none; }
.competition-wait-list a:hover { border-color: #aac0d5; background: #f3f8fd; }
.competition-wait-list span,
.competition-wait-list small { color: var(--competition-muted); font-size: 11px; }
.competition-submission-list article > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.competition-submission-list article span { padding: 4px 7px; border-radius: 7px; color: #7a4b00; background: var(--competition-warning-bg); font-size: 10px; font-weight: 750; }
.competition-submission-list article span.done { color: #0a6747; background: var(--competition-success-bg); }
.competition-submission-judge { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.competition-reopen-toggle { min-height: 32px; padding: 4px 8px; border: 1px solid #c6a553; border-radius: 7px; color: #754700; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.competition-score-reopen-form { display: grid; flex: 1 0 100%; gap: 8px; margin: 5px 0 9px; padding: 10px; border: 1px solid #e7c985; border-radius: 10px; background: #fffdf7; }
.competition-score-reopen-form label { display: grid; gap: 4px; color: #5b430d; font-size: 11px; font-weight: 800; }
.competition-score-reopen-form textarea { width: 100%; min-height: 62px; padding: 8px; border: 1px solid #c9b780; border-radius: 8px; resize: vertical; font: inherit; }
.competition-score-reopen-form > div { display: flex; justify-content: flex-end; gap: 6px; }
.competition-live-notice { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: flex; max-width: min(440px, calc(100% - 32px)); align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #9fb7cf; border-radius: 13px; color: var(--competition-navy-deep); background: #fff; box-shadow: var(--competition-shadow); font-size: 13px; font-weight: 750; }
.competition-live-notice button { min-height: 40px; flex: 0 0 auto; padding: 7px 11px; border: 0; border-radius: 9px; color: #fff; background: var(--competition-navy); font: inherit; font-weight: 850; cursor: pointer; }
.competition-scoring-rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.competition-scoring-rule { overflow: hidden; border: 1px solid var(--competition-line); border-radius: 12px; background: #fbfcfe; }
.competition-scoring-rule.needs-review { border-color: #dfbc6f; background: #fffdf7; }
.competition-scoring-rule summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 54px; align-items: center; gap: 9px; padding: 10px 12px; cursor: pointer; list-style: none; }
.competition-scoring-rule summary::-webkit-details-marker { display: none; }
.competition-scoring-rule summary span { color: var(--competition-blue); font-size: 11px; font-weight: 900; }
.competition-scoring-rule summary b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.competition-scoring-rule summary em { color: var(--competition-muted); font-size: 10px; font-style: normal; font-weight: 750; }
.competition-scoring-rule.needs-review summary em { color: var(--competition-warning); }
.competition-scoring-rule-form { display: grid; gap: 11px; padding: 13px; border-top: 1px solid var(--competition-line); background: #fff; }
.competition-scoring-rule-form dl { display: grid; grid-template-columns: 1fr 1.5fr; gap: 7px; margin: 0; }
.competition-scoring-rule-form dl div { padding: 9px; border-radius: 8px; background: #f3f6f9; }
.competition-scoring-rule-form dt { color: var(--competition-muted); font-size: 10px; }
.competition-scoring-rule-form dd { margin: 3px 0 0; font-size: 12px; font-weight: 800; }
.competition-scoring-rule-form dd small { color: var(--competition-danger); font-size: 9px; }
.competition-scoring-rule-form > label:not(.competition-confirm-check) { display: grid; gap: 5px; color: #344054; font-size: 11px; font-weight: 800; }
.competition-scoring-rule-form textarea,
.competition-scoring-rule-form input:not([type="checkbox"]) { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #b8c3d0; border-radius: 8px; background: #fff; font: 12px/1.45 Consolas, monospace; }
.competition-scoring-rule-form textarea { min-height: 128px; resize: vertical; }
.competition-fixed-rule { display: grid; grid-template-columns: 1fr 1.5fr; gap: 7px; margin: 0; padding: 13px; border-top: 1px solid var(--competition-line); background: #fff; }
.competition-fixed-rule div { padding: 9px; border-radius: 8px; background: #f3f6f9; }
.competition-fixed-rule dt { color: var(--competition-muted); font-size: 10px; }
.competition-fixed-rule dd { margin: 3px 0 0; font-size: 12px; font-weight: 800; }
.competition-count-badge { color: #fff; background: var(--competition-navy); }
.competition-count-badge.warning,
.competition-warning-badge { color: #7c4900; background: var(--competition-warning-bg); }
.competition-inline-score { display: inline-flex; gap: 4px; margin: 2px 5px 2px 0; padding: 4px 7px; border-radius: 7px; background: #f0f3f7; font-size: 11px; }
.competition-ranking-table td:first-child strong { font-size: 21px; }
.competition-tie-badge { margin-top: 3px; color: #774500; background: var(--competition-warning-bg); }
.competition-award-badge { color: #604000; background: #fff1b8; }
.competition-tie-groups { display: grid; gap: 10px; margin-bottom: 16px; }
.competition-tie-form { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr) minmax(220px, 1fr) auto; align-items: end; gap: 12px; padding: 14px; border: 1px solid #e2bd68; border-radius: 13px; background: #fffaf0; }
.competition-tie-form > div:first-of-type p { margin: 4px 0 0; color: #795c2c; font-size: 11px; line-height: 1.45; }
.competition-tie-placements { display: grid; gap: 6px; }
.competition-tie-placements label { display: grid; grid-template-columns: minmax(0, 1fr) 68px; align-items: center; gap: 7px; color: #4d3b17; font-size: 11px; font-weight: 800; }
.competition-tie-placements input[type="number"] { width: 68px; min-height: 38px; padding: 6px; border: 1px solid #c8b071; border-radius: 8px; text-align: center; }
.competition-tie-form > label { display: grid; gap: 4px; color: #594318; font-size: 11px; font-weight: 800; }
.competition-tie-form textarea { width: 100%; min-height: 56px; padding: 8px; border: 1px solid #c8b071; border-radius: 8px; resize: vertical; font: inherit; }

.competition-danger-note { padding: 9px 10px; border: 1px solid #e2ada7; border-radius: 9px; color: #7f2821; background: #fff6f5; }
.competition-danger-note b { font-size: 12px; }
.competition-danger-note p { margin: 3px 0 0; font-size: 10px; line-height: 1.45; }
.competition-evidence-participants { display: grid; gap: 14px; }
.competition-evidence-participant { overflow: hidden; border: 1px solid var(--competition-line); border-radius: 14px; background: #fbfcfe; }
.competition-evidence-participant > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--competition-line); background: #fff; }
.competition-evidence-participant > header > div { display: flex; align-items: center; }
.competition-evidence-participant > header > span { color: var(--competition-muted); font-size: 11px; font-weight: 750; }
.competition-protected-photo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.competition-protected-photo-grid a { overflow: hidden; border: 1px solid #dce3eb; border-radius: 10px; color: inherit; background: #fff; text-decoration: none; }
.competition-protected-photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e8edf2; }
.competition-protected-photo-grid span { display: grid; gap: 2px; padding: 8px; }
.competition-protected-photo-grid b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.competition-protected-photo-grid small { color: var(--competition-muted); font-size: 9px; line-height: 1.35; }
.competition-admin-wheel-history { margin: 0 12px 12px; border: 1px solid #dce3eb; border-radius: 10px; background: #fff; }
.competition-admin-wheel-history > summary { display: flex; min-height: 44px; align-items: center; padding: 8px 11px; color: var(--competition-navy); font-size: 12px; font-weight: 850; cursor: pointer; }
.competition-admin-wheel-history > div { display: grid; gap: 8px; padding: 0 10px 10px; }
.competition-admin-wheel-history article { padding: 10px; border-radius: 9px; background: #f5f7fa; }
.competition-admin-wheel-history article header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.competition-admin-wheel-history article header span { color: var(--competition-muted); font-size: 10px; }
.competition-admin-wheel-history article header em { margin-left: auto; color: var(--competition-warning); font-size: 10px; font-style: normal; font-weight: 850; }
.competition-admin-wheel-history dl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 8px 0; }
.competition-admin-wheel-history dl div { padding: 6px; border-radius: 7px; background: #fff; }
.competition-admin-wheel-history dt { color: var(--competition-muted); font-size: 9px; }
.competition-admin-wheel-history dd { margin: 2px 0 0; font-size: 11px; font-weight: 800; }
.competition-admin-wheel-history p { margin: 4px 0 0; color: #475467; font-size: 10px; }

.judge-count-badge { display: inline-grid; min-width: 44px; min-height: 32px; place-items: center; padding: 4px 9px; border-radius: 999px; color: #fff; background: var(--competition-navy); font-size: 11px; font-weight: 850; }
.judge-protected-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.judge-protected-photo-grid a { overflow: hidden; border: 1px solid var(--competition-line); border-radius: 12px; color: inherit; background: #fff; text-decoration: none; }
.judge-protected-photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e7edf2; }
.judge-protected-photo-grid span { display: grid; gap: 2px; padding: 9px; }
.judge-protected-photo-grid b { font-size: 12px; }
.judge-protected-photo-grid small { color: var(--competition-muted); font-size: 10px; line-height: 1.35; }
.judge-wheel-history-list { display: grid; gap: 9px; }
.judge-wheel-history-list details { overflow: hidden; border: 1px solid var(--competition-line); border-radius: 12px; background: #fbfcfe; }
.judge-wheel-history-list summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.judge-wheel-history-list summary::-webkit-details-marker { display: none; }
.judge-wheel-history-list summary span { display: grid; gap: 2px; }
.judge-wheel-history-list summary small { color: var(--competition-muted); font-size: 10px; }
.judge-wheel-history-list summary em { color: var(--competition-blue); font-size: 11px; font-style: normal; font-weight: 800; }
.judge-wheel-history-list details > dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 0; padding: 0 11px 10px; }
.judge-wheel-history-list details > dl div { padding: 9px; border-radius: 9px; background: #fff; }
.judge-wheel-history-list dt { color: var(--competition-muted); font-size: 10px; }
.judge-wheel-history-list dd { margin: 3px 0 0; font-size: 13px; font-weight: 850; }
.judge-wheel-history-list details > p { margin: 0 11px 10px; color: #475467; font-size: 11px; line-height: 1.5; }
.judge-wheel-history-list .judge-change-warning,
.judge-wheel-history-list .judge-blocking-notice { margin: 0 11px 10px; }
.judge-chief-sheet-list { display: grid; gap: 9px; }
.judge-chief-sheet-list > article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--competition-line); border-radius: 12px; background: #fbfcfe; }
.judge-chief-sheet-list > article > div:first-child { display: grid; gap: 3px; }
.judge-chief-sheet-list > article small { color: var(--competition-muted); font-size: 10px; }
.judge-chief-sheet-list > article > strong { color: var(--competition-navy); font-size: 18px; }
.judge-chief-sheet-list > article > button { min-height: 44px; }
.judge-chief-reopen-form { grid-column: 1 / -1; width: 100%; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--competition-line); }

.competition-timeline { margin: 0; padding: 0; list-style: none; }
.competition-timeline li { display: grid; grid-template-columns: 120px 12px minmax(0, 1fr); gap: 12px; min-height: 72px; }
.competition-timeline time { color: var(--competition-muted); font-size: 11px; }
.competition-timeline li > span { position: relative; width: 10px; height: 10px; margin-top: 2px; border-radius: 50%; background: var(--competition-blue); }
.competition-timeline li > span::after { position: absolute; top: 13px; bottom: -57px; left: 4px; width: 2px; background: #dce4ed; content: ""; }
.competition-timeline li:last-child > span::after { display: none; }
.competition-timeline li b { font-size: 14px; }
.competition-timeline li p { margin: 3px 0; color: #475467; font-size: 12px; }
.competition-timeline li small { color: var(--competition-muted); font-size: 10px; }

.competition-result-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.competition-result-grid .panel { margin-bottom: 0; }
.competition-export-list { display: grid; gap: 8px; }
.competition-export-list a { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--competition-line); border-radius: 11px; color: inherit; background: #fbfcfe; text-decoration: none; }
.competition-export-list a:hover { color: var(--competition-navy); border-color: #9eb7d0; background: #f1f7fc; }
.competition-export-list span { color: var(--competition-muted); font-size: 11px; text-align: right; }

@media (max-width: 1100px) {
  .competition-admin-summary.stage-summary { grid-template-columns: repeat(3, 1fr); }
  .competition-list-grid,
  .competition-judge-grid { grid-template-columns: repeat(2, 1fr); }
  .competition-admin-form { grid-template-columns: repeat(2, 1fr); }
  .competition-tie-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .judge-main { padding-top: 16px; }
  .judge-participant-grid { grid-template-columns: 1fr; }
  .judge-participant-main { min-height: 138px; }
  .judge-participant-number { font-size: 58px; }
  .competition-admin-shell { padding: 16px; }
  .competition-admin-head,
  .competition-detail-head { display: grid; }
  .competition-admin-summary,
  .competition-admin-summary.stage-summary { grid-template-columns: repeat(2, 1fr); }
  .competition-list-grid,
  .competition-judge-grid,
  .competition-scoring-rule-list,
  .competition-admin-two-column,
  .competition-result-grid { grid-template-columns: 1fr; }
  .competition-panel-head { align-items: stretch; }
  .competition-header-buttons { justify-content: flex-start; }
  .competition-admin-shell .panel { padding: 17px; }
  .competition-admin-form { grid-template-columns: 1fr; padding: 14px; }
  .competition-tie-form { grid-template-columns: 1fr; }
  .competition-protected-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .competition-admin-wheel-history dl { grid-template-columns: repeat(3, 1fr); }
  .competition-admin-form .wide { grid-column: auto; }
  .competition-row-menu[open] > div { right: auto; left: 0; }
}

@media (max-width: 520px) {
  .judge-topbar { min-height: 64px; padding-top: 7px; padding-bottom: 7px; }
  .judge-brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .judge-brand b { font-size: 14px; }
  .judge-brand small { max-width: 140px; }
  .judge-account > span { display: none; }
  .judge-quiet-button { padding: 0 10px; font-size: 11px; }
  .judge-dashboard-head { display: grid; }
  .judge-live-status { width: max-content; }
  .judge-participant-hero { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px; }
  .judge-score-block { grid-column: 1 / -1; grid-template-columns: 1fr auto auto; min-width: 100%; align-items: baseline; justify-items: start; gap: 9px; padding: 9px 13px; }
  .judge-score-block strong { font-size: 26px; }
  .judge-score-block small { justify-self: end; }
  .judge-stage-progress li { font-size: 9px; }
  .judge-work-card { margin-right: -3px; margin-left: -3px; padding: 16px; border-radius: 17px; }
  .judge-section-heading { display: grid; gap: 8px; }
  .judge-measurement-grid,
  .judge-two-column-fields { grid-template-columns: 1fr; }
  .judge-photo-previews { grid-template-columns: repeat(2, 1fr); }
  .judge-protected-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .judge-big-choice-grid,
  .judge-stack-actions { grid-template-columns: 1fr; }
  .judge-inline-actions { display: grid; grid-template-columns: 1fr 1.2fr; }
  .judge-score-item { grid-template-columns: minmax(0, 1fr) 98px; gap: 8px; padding: 10px; }
  .judge-score-section legend { padding: 8px 10px; }
  .judge-signature-pad { height: 170px; }
  .judge-chief-sheet-list > article { grid-template-columns: minmax(0, 1fr) auto; }
  .judge-chief-sheet-list > article > button { grid-column: 1 / -1; width: 100%; }
  .competition-admin-summary article { min-height: 98px; padding: 14px; }
  .competition-admin-summary b { font-size: 27px; }
  .competition-panel-head { display: grid; }
  .competition-protected-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .competition-admin-wheel-history dl { grid-template-columns: repeat(2, 1fr); }
  .competition-list-card { min-height: 220px; }
  .competition-timeline li { grid-template-columns: 82px 10px minmax(0,1fr); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .competition-list-card { transition: none; }
}
