/* V23: changes scoped to the approved judge panels. */
.role-card.judge-note-card { grid-template-columns: auto minmax(0, 1fr); cursor: default; }
.role-card.judge-note-card:hover { transform: none; }
.judge-note-card > span:last-child { min-width: 0; }
.role-card.judge-note-card .note-state {
  display: block; font-size: clamp(32px, 4vw, 52px); line-height: 1.15;
  color: #3ee67a; background: transparent; border: 0; padding: 0;
  margin: 12px 0 20px; letter-spacing: 0; overflow-wrap: normal;
}
.judge-note-card button { display: block; min-height: 44px; margin-top: 10px; min-width: 150px; }
.judge-note-card button:disabled { opacity: .35; cursor: not-allowed; }
.note-edit-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 28px; color: var(--white); border: 1px solid #45384f;
  background: #14101c; box-shadow: 0 24px 80px #000a;
}
.note-edit-dialog::backdrop { background: #05040aba; }
.note-edit-dialog h2 { margin: 0 0 16px; }
.note-edit-dialog label { display: block; margin: 20px 0 8px; }
.note-edit-dialog input { width: 100%; min-height: 48px; background: #0a080f; color: white; border: 1px solid #777080; padding: 12px; }
.note-edit-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.note-edit-actions button { min-height: 44px; }
#executionForm .execution-label { color: #bd91ff; text-transform: uppercase; font-weight: 800; font-size: 14px; margin: 22px 0 10px; }
#executionForm .execution-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 8px; }
#executionForm .security-values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#executionForm .execution-value {
  min-height: 44px; padding: 8px 4px; border: 1px solid white; border-radius: 0;
  color: white; background: #0d0a12; font-weight: 700; font-size: 16px; touch-action: manipulation;
}
#executionForm .execution-value.deduction-low { border-color: #43cf74; }
#executionForm .execution-value.deduction-medium { border-color: #f5d329; }
#executionForm .execution-value.deduction-high { border-color: #f05252; }
#executionForm .execution-value:hover { background: #241d30; }
#executionForm .execution-value:active { background: #45364e; transform: scale(.97); }
#executionForm button:focus-visible, .judge-note-card button:focus-visible { outline: 2px solid #bd91ff; outline-offset: 3px; }
.execution-history { margin-top: 20px; padding: 20px; background: #14101c; border: 1px solid #36303f; }
.execution-history h3 { margin: 0 0 16px; }
.execution-history-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 12px; }
.execution-history h4 { color: #bd91ff; margin: 0 0 10px; }
.execution-history-row { display: grid; grid-template-columns: 1fr auto 44px; gap: 12px; align-items: center; background: #211b28; margin: 6px 0; padding: 6px 10px; }
.execution-history-row span { color: #aaa2b8; font-size: 14px; }
.execution-history-row .ghost-button { min-height: 44px; padding: 0; font-size: 22px; }
.history-deduction { color: #f77787; }
.history-bonus { color: #65e18b; }
@media (max-width: 700px) {
  #executionForm .execution-grid, .execution-history-grid { grid-template-columns: minmax(0, 1fr); }
  #executionForm .execution-card { padding: 14px; min-width: 0; }
  #executionForm .execution-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #executionForm .security-values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .execution-history { padding: 14px; }
  .note-edit-dialog { padding: 20px; }
  .note-edit-actions { display: grid; grid-template-columns: 1fr; }
  .note-edit-actions button { width: 100%; }
}
