.judge-editor { --judge-accent: #ed3343; --judge-muted: #b7c0cc; --judge-border: #3b424c; margin-top: 18px; min-width: 0; color: #f4f6f9; }
.judge-editor *, .judge-editor *::before, .judge-editor *::after { box-sizing: border-box; }
.judge-editor [hidden] { display: none !important; }
.judge-editor-shell { padding: 18px; border: 1px solid #404751; border-top: 3px solid var(--judge-accent); border-radius: 12px; background: #10141a; }
.judge-editor-heading, .judge-editor-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.judge-editor-enable { display: flex; align-items: flex-start; gap: 12px; min-width: 0; cursor: pointer; }
.judge-editor-enable > input { width: 24px; height: 24px; flex: 0 0 24px; margin: 3px 0; accent-color: var(--judge-accent); }
.judge-editor-enable > span { display: grid; gap: 5px; }
.judge-editor-enable strong { font-size: 21px; line-height: 1.2; }
.judge-editor-enable small { color: var(--judge-muted); font-size: 13px; font-weight: 400; line-height: 1.45; }
.judge-editor button, .judge-editor input:not([type="checkbox"]), .judge-editor select { min-height: 44px; font: inherit; }
.judge-editor button { cursor: pointer; }
.judge-editor button:disabled, .judge-editor input:disabled, .judge-editor select:disabled { cursor: not-allowed; opacity: .6; }
.judge-editor button:focus-visible, .judge-editor input:focus-visible, .judge-editor select:focus-visible, .judge-editor-pool-list:focus-visible { outline: 3px solid #ff7782; outline-offset: 2px; }
.judge-editor-export { flex-shrink: 0; font-size: 13px !important; }
.judge-editor-exports { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.judge-editor-exports small { flex-basis: 100%; color: var(--judge-muted); font-size: 12px; line-height: 1.4; }
.judge-editor-feedback:empty { display: none; }
.judge-editor-feedback p, .judge-editor-warning { margin: 14px 0 0; border-radius: 7px; padding: 12px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.judge-editor-error { color: #ffe4e8; background: #471f29; border: 1px solid #e77589; }
.judge-editor-saving { color: #f5f6f8; background: #252b35; }
.judge-editor-saved { color: #a0e9ba; background: #17372a; }
.judge-editor-warning { color: #ffb3bb; background: #351b22; }
.judge-editor-rules { margin: 16px 0; padding: 12px 15px; background: #1c222c; border-left: 3px solid var(--judge-accent); border-radius: 4px; }
.judge-editor-rules > strong { color: #f5f6f8; font-size: 14px; }
.judge-editor-rules > p { margin: 6px 0 0; color: #b7c0cc; font-size: 13px; line-height: 1.55; }
.judge-editor-layout { display: grid; grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); align-items: start; gap: 20px; }
.judge-editor-pool, .judge-editor-board { min-width: 0; }
.judge-editor-section-heading { align-items: flex-start; margin-bottom: 13px; }
.judge-editor-section-heading h3 { margin: 0; color: #f5f6f8; font-size: 18px; }
.judge-editor-section-heading p { margin: 5px 0 0; color: var(--judge-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.judge-editor-count { min-width: 32px; min-height: 32px; display: grid; place-items: center; color: #f5f6f8; background: #252b35; border: 1px solid #4b5564; border-bottom: 2px solid var(--judge-accent); border-radius: 6px; }
.judge-editor-pool-search { margin: 10px 0 0; }
.judge-editor-pool-result-count { color: var(--judge-muted); font-size: 11px; margin: 6px 0; line-height: 1.4; }
.judge-editor-pool-list { display: grid; gap: 5px; max-height: clamp(250px, calc(100vh - 235px), 690px); overflow-y: auto; overscroll-behavior: contain; padding: 3px; scrollbar-gutter: stable; }
.judge-editor-person { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; padding: 2px; background: #1a2029; border: 1px solid var(--judge-border); border-left: 3px solid #4b5564; border-radius: 6px; cursor: grab; }
.judge-editor-person.is-selected { border-color: #ff7782; box-shadow: inset 0 0 0 1px #ff7782; background: #351b22; }
.judge-editor-person.is-judging { border-left: 4px solid #63da94; }
.judge-editor-person.is-competing { border-left-color: #ed7180; }
.judge-editor-person.is-dragging { opacity: .45; }
.judge-editor-person-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }
.judge-editor-person-top > strong { min-width: 0; color: #f5f6f8; font-size: 13px; line-height: 1.35; align-self: center; overflow-wrap: anywhere; }
.judge-editor-person-choice { color: #8c97a7; flex: 0 0 auto; font-size: 15px; line-height: 1.2; }
.judge-editor-person.is-selected .judge-editor-person-choice { color: #ffb3bb; }
.judge-editor-remove { width: 44px; display: grid; place-items: center; align-self: center; padding: 0; color: #adb4c0; background: transparent; border: 0; border-left: 1px solid #414954; border-radius: 3px; font-size: 22px !important; }
.judge-editor-remove:hover { color: #ffc2c9; border-color: #e57488; }
.judge-editor-person-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: 10px; font-weight: 400; line-height: 1.4; }
.judge-editor-person-kind { color: #b7c0cc; }
.judge-editor-person-usage { color: #d1d7e0; white-space: nowrap; }
.judge-editor-activity { color: var(--judge-muted); font-size: 11px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.judge-editor-activity.is-live { color: #89f6b0; }
.judge-editor-activity.is-competing { color: #ffa7b0; }
.judge-editor-participation, .judge-editor-future { color: #b7c0cc; font-size: 10px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.judge-editor-future { color: #d0d8e4; }
.judge-editor-future.is-unconfirmed { color: #c1cbd9; }
.judge-editor-select-person { display: grid; gap: 3px; width: 100%; min-width: 0; padding: 6px 7px; border: 0; border-radius: 3px; background: transparent; text-align: left; color: #f5f6f8; cursor: grab !important; }
.judge-editor-select-person:hover { background: #ffffff06; }
.judge-editor-select-person[aria-pressed="true"] { color: #ffb3bb; }
.judge-editor-add { margin: 0 0 8px; }
.judge-editor-add-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid #535d6b; border-left: 3px solid var(--judge-accent); border-radius: 5px; background: #252b35; color: #f5f6f8; font-size: 13px !important; font-weight: 700 !important; }
.judge-editor-add-toggle[aria-expanded="true"] { border-color: #ff7782; }
.judge-editor-add-content { padding: 12px 0 4px; }
.judge-editor-add-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; gap: 4px; }
.judge-editor-add-tabs button { border: 1px solid #3d444e; border-radius: 5px; background: #1b2028; color: #bcc5d2; padding: 6px; line-height: 1.3; font-size: 11px !important; }
.judge-editor-add-tabs button[aria-pressed="true"] { background: #351b22; border-color: #ed3343; color: #ffc2c9; }
.judge-editor-field { display: grid; gap: 6px; min-width: 0; color: #bec6d2; font-size: 12px; font-weight: 700; }
.judge-editor-field input, .judge-editor-field select { width: 100%; min-width: 0; max-width: 100%; border: 1px solid #464f5c; background: #0d1117; color: #f2f4f7; border-radius: 6px; padding: 9px; font-size: 14px !important; }
.judge-editor-add form { display: grid; gap: 12px; }
.judge-editor-add form > button { width: 100%; font-size: 13px !important; }
.judge-editor-check { display: flex; align-items: center; min-height: 44px; gap: 9px; color: #c2c9d4; font-size: 12px; line-height: 1.5; }
.judge-editor-check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: var(--judge-accent); }
.judge-editor-athlete-results { display: grid; gap: 6px; max-height: 310px; overflow-y: auto; overscroll-behavior: contain; margin-top: 10px; padding: 2px; }
.judge-editor-athlete-result { display: flex; gap: 6px; justify-content: space-between; align-items: center; padding: 8px; background: #191e26; border-radius: 5px; }
.judge-editor-athlete-result > div { display: grid; min-width: 0; gap: 4px; }
.judge-editor-athlete-result strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.judge-editor-athlete-result small { color: #9da9b9; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.judge-editor-athlete-result button { flex: 0 0 auto; padding: 7px; font-size: 11px !important; }
.judge-editor-empty, .judge-editor-note { color: var(--judge-muted); font-size: 12px; line-height: 1.55; margin: 9px 0; }
.judge-editor-empty { padding: 13px; border: 1px dashed #505966; border-radius: 6px; }
.judge-editor-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.judge-editor-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; align-items: start; }
.judge-editor-table { min-width: 0; }
.judge-editor-table > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #252b35; color: #f5f6f8; border: 1px solid #4b5564; border-top: 4px solid var(--judge-accent); border-radius: 7px 7px 0 0; padding: 12px; }
.judge-editor-table > header h4 { margin: 0; font-size: 21px; }
.judge-editor-table > header > span { color: #b7c0cc; font-size: 11px; font-weight: 700; }
.judge-editor-table-slots { display: grid; gap: 8px; margin-top: 8px; }
.judge-editor-slot { min-width: 0; padding: 11px; background: #151d28; border: 1px solid #414f65; border-left: 3px solid #6baded; border-radius: 6px; }
.judge-editor-slot.is-right { background: #241b24; border-left-color: #e76e81; }
.judge-editor-slot.is-active { background: #183027; border-color: #67d899; box-shadow: inset 0 0 0 1px #67d899; }
.judge-editor-slot.is-done, .judge-editor-slot.is-skipped { background: #161a20; border-color: #3b424d; }
.judge-editor-slot.is-done .judge-editor-slot-heading strong, .judge-editor-slot.is-skipped .judge-editor-slot-heading strong { color: #919cae; }
.judge-editor-slot-heading { display: grid; gap: 6px; margin-bottom: 12px; }
.judge-editor-slot-heading > div { display: grid; gap: 5px; min-width: 0; }
.judge-editor-slot-heading strong { color: #f4f6fb; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.judge-editor-slot-heading > div > span { color: #b6c9e0; font-size: 12px; line-height: 1.4; }
.judge-editor-slot.is-right .judge-editor-slot-heading > div > span { color: #e9b5bf; }
.judge-editor-slot-status { justify-self: start; color: #aebdce; font-size: 11px; font-weight: 700; }
.judge-editor-reassigned { margin: 0 0 10px; padding: 8px; border-left: 3px solid #ed3343; background: #351b22; color: #ffc2c9; font-size: 12px; line-height: 1.4; }
.judge-editor-live-replacement { margin: 8px 0; color: #b7c0cc; font-size: 11px; line-height: 1.4; }
.judge-editor-slot.is-active .judge-editor-slot-status { padding: 4px 7px; background: #8cecaf; border-radius: 3px; color: #062913; }
.judge-editor-pair { display: grid; gap: 9px; }
.judge-editor-role { min-width: 0; border: 1px dashed #626d7c; border-radius: 6px; padding: 9px; background: #11161ead; }
.judge-editor-role.has-judge { border-style: solid; border-color: #596b67; }
.judge-editor-role.is-drop-target { background: #351b22; outline: 2px solid #ff7782; outline-offset: 2px; }
.judge-editor-quick-assign { display: block; margin-top: 8px; width: 100%; padding: 8px; border: 1px solid #ed3343; border-radius: 5px; background: #351b22; color: #ffc2c9; text-align: left; font-size: 12px !important; line-height: 1.5; overflow-wrap: anywhere; }
.judge-editor-candidate-reason { display: block; margin-top: 6px; color: #ffb3bb; font-size: 11px; line-height: 1.45; }
.judge-editor-slot-reason { margin: 10px 0 0; padding: 8px; background: #351b22; color: #ffb3bb; border-radius: 4px; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.judge-editor-slot-reason.is-blocking { background: #4a232c; color: #ffc5ce; }
.judge-editor-slot-feedback { margin: 10px 0 0; padding: 9px; border-radius: 4px; background: #17372a; color: #a0e9ba; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.judge-editor-slot-feedback.is-error { background: #471f29; color: #ffe4e8; border: 1px solid #e77589; }
.judge-editor-swap { width: 100%; margin-top: 8px; padding: 8px; background: transparent; border: 1px solid #52615f; color: #bdd3c8; border-radius: 5px; font-size: 12px !important; }
@media (min-width: 721px) {
  .judge-editor-pool { position: sticky; top: 12px; }
  .judge-editor-pool:has(.judge-editor-add-toggle[aria-expanded="true"]) { position: static; }
}
@media (max-width: 1050px) {
  .judge-editor-layout { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); gap: 14px; }
  .judge-editor-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .judge-editor-shell { padding: 12px; }
  .judge-editor-layout { grid-template-columns: minmax(0, 1fr); }
  .judge-editor-pool-list { max-height: 440px; }
  .judge-editor-enable strong { font-size: 18px; }
  .judge-editor-export { width: 100%; }
  .judge-editor-filters { grid-template-columns: minmax(0, 1fr); }
  .judge-editor-field input, .judge-editor-field select { font-size: 16px !important; }
  .judge-editor-add-tabs button { font-size: 12px !important; }
  .judge-editor-rules { padding: 10px; }
}
