/* Courtyard, patrol, and farm control legibility overrides. */
#yardBook .yard-review[hidden], #expeditionBook .yard-review[hidden],
.yard-feedback[hidden] { display: none; }
.yard-feedback { flex-shrink: 0; margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
#yard-farm .plot-auto { min-height: 44px; cursor: pointer; gap: 10px; }
#yard-farm .plot-auto input { width: 24px; height: 24px; min-height: 24px; margin: 0; }
.plot-auto-state { min-width: 2em; font-size: 16px; color: var(--ink); }
.night .yard-feedback, .night .plot-auto-state { color: var(--night-ink); }
.patrol-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.patrol-actions .yard-button { margin: 0; }
.combat-stage #combatStop { margin: 0; min-height: 44px; color: var(--night-ink); border-bottom-color: var(--verm); font-size: 16px; }
.combat-stage #combatStop:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.combat-stage .cs-rule, .combat-stage .cs-drops { font-size: 13px; }

@media (max-height: 799px) {
  #expedition-combat .combat-stage { min-height: 160px; height: 160px; box-sizing: border-box; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); margin: 6px 8px 12px; padding: 8px 14px; gap: 10px; }
  #expedition-combat .combat-stage .cs-side { gap: 3px; }
  #expedition-combat .combat-stage .cs-fig { height: 82px; }
  #expedition-combat .combat-stage.live .cs-keeper .cs-fig { height: 54px; }
  #expedition-combat .combat-stage .cs-name { font-size: 16px; line-height: 1.2; }
  #expedition-combat .combat-stage .cs-rule { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
  #expedition-combat .combat-stage .cs-mid { gap: 2px; min-width: 44px; max-width: 120px; }
  #expedition-combat .combat-stage .cs-vs { font-size: 28px; }
  #expedition-combat .combat-stage .cs-stamp { width: 44px; height: 44px; font-size: 28px; }
  #expedition-combat .combat-stage .cs-line { top: 6px; right: 10px; }
  #expedition-combat .combat-stage .cs-line img { height: 36px; min-height: 0; }
  #expedition-combat .combat-stage .cs-drops img { width: 18px; height: 18px; }
  #expedition-combat .yard-field { margin-top: 2px; margin-bottom: 2px; }
  #expedition-combat .combat-live { margin: 3px 0; padding: 4px 0; font-size: 16px; line-height: 1.35; }
}
