/* Duel operation surface; light campus paper + sage, no global theme reset. */
#duel-phase-plan { margin-block: 16px 24px; min-width: 0; }
.duel-brief { padding: clamp(16px, 3vw, 26px); border: 2px solid #96ad94; background: #fbfcf4; box-shadow: 4px 4px 0 #dce5d3; color: #243d30; }
.duel-brief-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.duel-brief-heading h2 { margin: 0; font-size: clamp(20px, 3vw, 26px); }
.duel-clock { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.duel-clock small { display: block; font-size: 12px; font-weight: 500; color: #526550; }
.duel-rule { margin: 10px 0 16px; font-weight: 600; }
.duel-phase-track { display: grid; grid-template-columns: 1fr 1fr; padding: 0; margin: 0 0 16px; list-style: none; border: 1px solid #adbea7; }
.duel-phase-track li { padding: 12px 16px; background: #eef2e6; min-width: 0; }
.duel-phase-track li + li { border-left: 1px solid #adbea7; }
.duel-phase-track li[aria-current="step"] { background: #d9e9cc; box-shadow: inset 0 -4px #52744b; }
.duel-phase-track b, .duel-phase-track span { display: block; }
.duel-phase-track span { font-size: 14px; color: #475c44; }
.duel-objective { font-weight: 600; margin-bottom: 10px; }
.duel-access { margin-bottom: 0; font-size: 14px; line-height: 1.8; }
.duel-enemy-templates { border-block: 1px solid #c6d2bd; margin-block: 16px; padding-block: 16px; }
.duel-enemy-templates h3 { margin-bottom: 6px; font-size: 16px; }
.duel-enemy-templates p { color: #526550; font-size: 14px; margin-bottom: 10px; }
.room-tools .command-templates { display: flex; flex-wrap: wrap; gap: 8px; }
.room-tools .command-templates button { flex: 1 1 160px; }
.room-tools button, .room-buttons button, .room-title button, .evidence-submit button,
.room-tools summary, .match-history summary { min-height: 44px; min-width: 44px; }
.room-tools summary, .match-history summary { padding-block: 10px; cursor: pointer; }
.room-tools .policy-switches label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.room-tools :is(button, summary, input, select, textarea):focus-visible,
.evidence-submit :is(button, input):focus-visible { outline: 3px solid #386644; outline-offset: 3px; }
.duel-brief, .room-tools, .room-tools > *, .room-title > *, .evidence-submit { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.room-tools :is(textarea, select, input), .evidence-submit input { max-width: 100%; }
.room-buttons, .room-title > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.room-tools button:disabled { color: #5c665a; background: #e6e9df; border-color: #bdc5b5; opacity: 1; }
@media (max-width: 600px) {
  .duel-brief-heading { flex-wrap: wrap; gap: 8px; }
  .duel-clock { text-align: left; }
  .duel-phase-track { grid-template-columns: minmax(0, 1fr); }
  .duel-phase-track li + li { border-left: 0; border-top: 1px solid #adbea7; }
  .room-tools { grid-template-columns: minmax(0, 1fr); }
  .room-tools .request-fields { grid-template-columns: minmax(0, 1fr); }
  .room-tools button, .evidence-submit button { white-space: normal; max-width: 100%; }
  .evidence-submit .inline-form { display: flex; flex-wrap: wrap; }
  .evidence-submit .inline-form input { flex: 1 1 180px; min-width: 0; }
  .evidence-submit .inline-form button { flex: 1 1 180px; }
  .room-title { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  #duel-phase-plan *, .room-tools *, .room-buttons *, .evidence-submit * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
