/* Podium desktop debate screen rules, scoped to the website practice form. */
#judge-form {
  --navy: #0b1220;
  --surface: #121e2e;
  --line: #28364a;
  --muted: #a4b2c6;
  --mint: #a5edcf;
  color: #edf2fa;
  color-scheme: dark;
  font-family: 'Segoe UI', Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: normal;
}

#judge-form #studio {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 2fr);
  align-items: start;
  gap: 24px;
  margin-bottom: 20px;
}

#judge-form #studio > .panel {
  min-width: 0;
  margin: 0;
  border: 1px solid #34465b;
  border-radius: 12px;
  background-color: var(--surface) !important;
}

#judge-form .roster-panel {
  padding: 22px;
}

#judge-form .podium-panel {
  padding: 30px 32px;
}

#judge-form .roster-panel > .section-head {
  margin-bottom: 12px;
}

#judge-form .roster-panel .progress-panel {
  margin: 0 0 10px;
  padding: 4px 0 10px;
}

#judge-form .roster-panel .progress-top {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}

#judge-form .roster-panel progress {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #263144;
  accent-color: var(--mint);
}

#judge-form .roster-panel progress::-webkit-progress-bar { background: #263144; }
#judge-form .roster-panel progress::-webkit-progress-value { background: var(--mint); }
#judge-form .roster-panel progress::-moz-progress-bar { background: var(--mint); }

#judge-form .speaker-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#judge-form .speaker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
}

#judge-form .speaker-row.current {
  border-color: var(--mint);
  box-shadow: inset 3px 0 var(--mint);
}

#judge-form .speaker-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #222e40;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

#judge-form .current .speaker-mark {
  background: var(--mint);
  color: #102a24;
}

#judge-form .speaker-mark.saved {
  font-weight: 800;
}

#judge-form .speaker-row > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

#judge-form .speaker-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  line-height: 1.4;
}

#judge-form .speaker-row small {
  display: block;
  color: #a6b8cb;
  font-size: 12px;
  line-height: 1.55;
}

#judge-form .speaker-row.current small {
  color: #b5d2c9;
}

#judge-form .roster-panel .speech-tools {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ffffff09;
  text-align: center;
}

#judge-form .roster-panel .speech-tools a {
  color: var(--mint);
  font-size: 13px;
}

#judge-form .podium-panel > .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ffffff09;
}

#judge-form .section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.3px;
}

#judge-form .live-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0 7px 11px;
  font-size: 12px;
  color: #bdcddd;
}

#judge-form .dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #718198;
}

#judge-form .playing .dot {
  background: var(--mint);
}

#judge-form .podium-panel label {
  display: block;
  margin-bottom: 9px;
  color: #b4c3d5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.5;
}

#judge-form .podium-panel :is(input, textarea) {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #314056;
  border-radius: 8px;
  background: #0d1725;
  color: #e7edf7;
  font: inherit;
  line-height: 1.45;
  outline: none;
}

#judge-form .podium-panel :is(input, textarea)::placeholder {
  color: #8191a8;
}

#judge-form .podium-panel :is(input, textarea):focus {
  border-color: #80c6b1;
  box-shadow: 0 0 0 3px #a5edcf0d;
}

#judge-form #name {
  font-size: 19px;
  font-weight: 500;
}

#judge-form #autoPosition {
  margin: 10px 0 0;
  color: #a7b8cc;
  font-size: 12px;
  line-height: 1.65;
}

#judge-form .judge-timer-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

#judge-form .judge-timer-main {
  flex: 1;
  min-width: 180px;
}

#judge-form .podium-panel .timer {
  margin: 18px 0 10px;
  padding: 0;
  font-size: clamp(64px, 6.5vw, 100px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -4px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#judge-form .time-warning {
  min-height: 18px;
  margin: 0 0 10px;
  color: #a7b9cd;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

#judge-form .judge-timer-row .up-next {
  display: flex;
  flex: 0 1 240px;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 8px 0 8px 20px;
  border-left: 1px solid var(--line);
}

#judge-form .up-next strong {
  display: block;
  margin: 6px 0;
  font-size: 17px;
}

#judge-form .up-next p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

#judge-form .next-arrow {
  color: var(--mint);
  font-size: 26px;
}

#judge-form .up-next .eyebrow {
  color: #a4cabc;
  font-size: 10px;
  letter-spacing: .13em;
}

#judge-form .record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 0;
  padding: 8px 0 0;
}

#judge-form .record-actions button {
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#judge-form .record-actions #record {
  flex: 1;
  min-width: 155px;
  border: 0;
  background: var(--mint);
  box-shadow: 0 4px 18px #a5edcf0a;
  color: #102a24;
  font-weight: 700;
}

#judge-form .record-actions #record:hover {
  background: #c1f8e1;
}

#judge-form #record[data-ready] {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

#judge-form .record-actions button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#judge-form #transcriptSection {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #31455c;
  border-radius: 12px;
  background: #101e2f;
}

#judge-form #transcriptSection summary {
  color: #d6e2f4;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

#judge-form #transcript {
  block-size: 8.4em;
  margin-top: 12px;
  padding: 0 4px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--mint) transparent;
  color: #d9e1ef;
  font-size: 15px;
  line-height: 1.68;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#judge-form #transcript:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  #judge-form #transcript.typing::after {
    content: "";
    border-inline-end: 2px solid var(--mint);
  }
}

#judge-form .judge-card {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#judge-form .judge-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

#judge-form .judge-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.3px;
}

#judge-form .save-status {
  color: #a5c8ba;
  max-width: 55%;
  font-size: 12px;
  text-align: right;
}

#judge-form .judge-card .scores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

#judge-form .scores label {
  color: #b5c1d2;
  font-size: 12px;
  letter-spacing: 0;
}

#judge-form .scores input {
  min-height: 51px;
  padding: 12px 6px;
  border-color: #374b62;
  background: #111f30;
  box-shadow: inset 0 2px 5px #030a141a;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

#judge-form .scores input.podium-field-needed {
  padding: 11px 5px;
  border: 2px solid var(--mint);
  background: var(--navy);
}

#judge-form .scores .total input {
  background: #1a3338;
  border-color: #4e746a;
  color: #bcf4df;
}

#judge-form #judgeComments {
  min-height: 210px;
  padding: 16px;
  border-color: #34485f;
  background: #0e1a2a;
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
}

@media (max-width: 700px) {
  #judge-form .podium-panel { padding: 22px; }
  #judge-form .judge-card .scores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 980px) {
  #judge-form #studio { grid-template-columns: minmax(0, 1fr); }
  #judge-form .speaker-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  #judge-form .roster-panel { padding: 14px; }
  #judge-form .speaker-row {
    gap: 7px;
    padding-inline: 7px;
  }
  #judge-form .speaker-mark {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 650px) {
  #judge-form .judge-timer-row { display: block; }
  #judge-form .judge-timer-row .up-next {
    margin-bottom: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  #judge-form #judgeComments { min-height: 180px; }
}

/* Website exercise controls and result. */
#judge-a-speech #debateMotion {
  margin: 10px 0 24px;
  font-family: 'Segoe UI', Inter, Arial, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.02em;
  color: inherit;
  overflow-wrap: anywhere;
}

#judge-form .practice-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

#judge-a-speech .speech-transcript {
  margin-top: 24px;
}
