:root { color-scheme: dark; font-family: system-ui, -apple-system, sans-serif; background: #12151d; color: #f3f4f8; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #ffc276; }
.shell { max-width: 800px; margin: auto; padding: 32px 20px 60px; }
.wide { max-width: 1280px; }
.brand { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #b2b9cb; margin-bottom: 28px; }
.brand span { color: #ed737f; }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; }
h2 { margin: 0 0 16px; font-size: 24px; overflow-wrap: anywhere; }
p { margin: 0 0 16px; }
.muted, small { color: #b2b9cb; }
.card { padding: 24px; border-radius: 18px; background: #1c2130; border: 1px solid #30384a; margin: 20px 0; }
label { display: block; font-weight: 600; margin: 14px 0; }
input:not([type="checkbox"]), select { display: block; width: 100%; border: 1px solid #5c6882; border-radius: 9px; background: #121722; color: inherit; font: inherit; padding: 11px 12px; margin-top: 8px; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: #dc5870; vertical-align: middle; }
button { border: 1px solid #66738c; border-radius: 10px; background: #30394f; color: inherit; font: inherit; font-weight: 650; cursor: pointer; padding: 12px 18px; }
button.primary { background: #b93248; border-color: #e35e71; }
button:disabled { opacity: .5; cursor: wait; }
button[aria-pressed="true"] { background: #b93248; border-color: #ffa7b4; }
input:focus-visible, button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #ffc276; outline-offset: 3px; }
.actions, nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
.error { color: #ffacb6; white-space: pre-wrap; }
.notice { color: #91d9ae; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 12px; border-bottom: 1px solid #30384a; text-align: left; white-space: nowrap; }
th { color: #b2b9cb; font-size: 12px; }
[hidden] { display: none !important; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; padding-bottom: 16px; border-bottom: 1px solid #30384a; }
.admin-tabs [aria-selected="true"] { background: #b93248; border-color: #ffa7b4; }
[role="tabpanel"] { min-width: 0; }
.judge-results-table thead th { white-space: normal; min-width: 140px; }
.judge-results-table tbody th { color: inherit; font-size: 15px; white-space: normal; min-width: 160px; overflow-wrap: anywhere; }
.judge-overall { color: #ffc276; font-weight: 750; }
.candidate-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.candidate-row > div { min-width: 0; flex: 1 1 220px; }
.candidate-row h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.candidate-row p { margin: 0; }
.candidate > .error:empty { margin: 0; }
@media (max-width: 520px) { .admin-tabs button { flex: 1 1 40%; padding: 12px; } }
.evaluation .step { color: #ffafba; font-weight: 700; margin: 0 0 12px; }
.evaluation h2 { margin-bottom: 24px; }
#unknown-judge { margin-bottom: 28px; }
fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
legend { font-weight: 650; margin-bottom: 12px; padding: 0; }
.rating { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.rating label { position: relative; margin: 0; min-width: 0; cursor: pointer; }
.rating input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; cursor: pointer; }
.rating span { display: flex; justify-content: center; align-items: center; height: 44px; border: 1px solid #5c6882; border-radius: 8px; background: #121722; }
.rating input:checked + span { background: #b93248; border-color: #ffa7b4; color: #fff; }
.rating input:focus-visible + span { outline: 3px solid #ffc276; outline-offset: 2px; }
progress { display: block; width: 100%; height: 8px; accent-color: #ec7586; margin: 16px 0 8px; }
@media (max-width: 520px) { .rating { gap: 3px; } .rating span { height: 42px; border-radius: 5px; font-size: 13px; } }
.judge-card-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.judge-card-editor canvas { display: block; width: 100%; height: auto; }
.judge-card-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 24px 0; }
.judge-card-gallery canvas { display: block; width: 100%; height: auto; }
.judge-card-gallery button { min-width: 0; padding: 8px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .judge-card-editor { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .shell { padding: 24px 12px 40px; } .card { padding: 18px 12px; } .actions button { flex: 1; } }
