/* Light court: existing art, explicit hierarchy, no continuous visual effects. */
body.quarterly-mode header { background: rgba(23, 16, 8, 0.9); }
body.quarterly-mode .dock:not(.collapsed) {
  top: var(--council-top, 145px); bottom: max(8px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  max-height: none; grid-template-rows: auto minmax(0, 1fr) auto;
  z-index: 35; background: #171008;
}
body.quarterly-mode.dock-open:not(.map-focus) #hud > .court,
body.quarterly-mode.dock-open:not(.map-focus) #hud > .inspect,
body.quarterly-mode.dock-open:not(.map-focus) #hud > .map-legend,
body.quarterly-mode.dock-open:not(.map-focus) #hud > .ledger-strip { visibility: hidden; }
body.mobile-court-open #hud > .court { visibility: visible !important; }
.quarterly-mode .dock-content { display: block; padding: 0 2px 12px; scroll-padding: 12px; }
.quarterly-mode .dock-content > * { margin-bottom: 8px; }
.quarterly-mode .agenda-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 10px; }
.quarterly-mode .agenda-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; min-width: 0; }
.quarterly-mode .agenda-card h3 { font-size: 18px; margin: 0; line-height: 1.45; }
.quarterly-mode .agenda-card-summary { font-size: 14px; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.quarterly-mode .agenda-card-why { font-size: 12px; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #654c2e; }
.quarterly-mode .agenda-card-head small { font-size: 12px; }
.quarterly-mode .agenda-card-head strong { font-size: 15px; }
.quarterly-mode .agenda-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 0; }
.quarterly-mode .agenda-card-actions .agenda-approve { grid-column: auto; }
.quarterly-mode .agenda-card-actions button, .quarterly-mode .personal-rule button { font-size: 14px; min-height: 44px; padding: 8px 5px; }
/* Shared border-box height keeps filled and outlined actions on one baseline. */
.agenda-card-actions { align-items: stretch; }
.agenda-card-actions button, .personal-rule > button {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; height: 44px; min-height: 44px; margin: 0;
  line-height: 1.2; align-self: stretch;
}
.quarter-card-cost { font-size: 12px; color: #57380f; margin: 0; line-height: 1.6; }
body.quarterly-mode .crisis { top: calc(var(--council-top, 164px) - 24px); font-size: 12px; line-height: 20px; margin: 0; }
.quarter-card-preview { margin: 12px; padding: 18px; background: #302216; border: 1px solid #987749; }
.quarter-card-preview h3 { margin: 0 0 8px; color: #eed297; }
.quarter-plan-details, .quarter-transition, #quarter-brief, #quarter-answer, #quarter-receipt-body { font-size: 14px; line-height: 1.75; }
.quarter-muted, .quarterly-mode .agenda-note { font-size: 12px; line-height: 1.6; }
.quarter-execution-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 28%); align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #a18445; background: #241a10; }
.quarter-execution-bar p { margin: 2px 0; line-height: 1.5; font-size: 12px; }
#quarter-execute-budget { color: #f2d490; font-size: 14px; }
#quarter-execution-status { color: #d1bd99; }
#quarter-execute { min-height: 48px; font-size: 15px; }
.dock.collapsed .quarter-execution-bar { display: none; }
.quarterly-mode .quarter-draft-actions button, .quarterly-mode .edict button, .quarterly-mode .quarter-query button,
.army-actions button, .dossier-actions button, .mobile-court-head button, #dossier-close { min-height: 44px; font-size: 14px; }
.quarterly-mode .edict textarea, .quarter-query textarea, .quarter-query select { font-size: 16px; }
.quarterly-mode .quarter-workspace { padding: 16px; }
#map-quality { min-height: 36px; color: #e7d4ad; background: #24180e; border: 1px solid #806731; font: inherit; font-size: 12px; }
#document-new { color: #f2d08a; min-height: 44px; font-size: 12px; }
.chronicle-urgent { margin-top: 12px; padding: 12px 16px; background: #562a22; border-left: 3px solid #e6af65; }
.chronicle-urgent strong { display: block; color: #ffe0a3; }
.chronicle-opening > .chronicle-picture { min-height: 230px; }
.chronicle-picture figcaption { font-size: 12px; }
.chronicle-footer button { min-height: 44px; }
@media (max-width: 1050px) {
  .quarterly-mode .agenda-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px), (pointer: coarse) and (orientation: landscape) and (max-height: 620px) {
  body.quarterly-mode.dock-open:not(.map-focus) .map-layers { visibility: hidden; }
  .mobile-court-toggle:not([hidden]) { min-height: 44px; font-size: 14px; }
  body.quarterly-mode.dock-open .mobile-court-toggle:not([hidden]) { top: var(--council-top, 145px); bottom: auto; right: 120px; min-height: 40px; }
  body.quarterly-mode.dock-open .dock-bar-copy strong { display: none; }
  .document-reader-head { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  body.quarterly-mode .dock:not(.collapsed) { left: 6px; right: 6px; }
  .quarterly-mode .agenda-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
  .quarterly-mode .agenda-card { padding: 10px; gap: 6px; }
  .quarterly-mode .agenda-card h3 { font-size: 16px; }
  .quarterly-mode .agenda-card-head { gap: 6px; }
  .quarterly-mode .agenda-card-head img { width: 32px; height: 40px; }
  .quarterly-mode .agenda-card-head small { font-size: 12px; }
  .quarterly-mode .agenda-card-actions button { font-size: 12px; letter-spacing: 0; }
  .quarter-execution-bar { grid-template-columns: 1fr; padding: 8px 10px; gap: 6px; }
  #quarter-execute-budget { font-size: 12px; }
  #quarter-transition { display: none; }
  #quarter-execute { min-height: 44px; }
  .chronicle-opening { display: flex; flex-direction: column; }
  .chronicle-opening > .chronicle-picture { height: 130px; min-height: 130px; flex: none; }
  .chronicle-opening .chronicle-overlay { padding: 28px 18px 12px; }
  .chronicle-opening .chronicle-overlay h3 { font-size: 19px; }
  .chronicle-opening .chronicle-section { padding: 16px; }
}
@media (max-height: 500px) {
  .quarter-execution-bar { padding: 6px 10px; }
  #quarter-transition { display: none; }
  .quarterly-mode .dock-bar { min-height: 40px; }
}
@media (min-width: 621px) and (max-height: 500px) {
  body.quarterly-mode header { top: max(4px, env(safe-area-inset-top)); }
  .quarterly-mode .seal { width: 32px; height: 32px; }
  .quarterly-mode h1 { font-size: 14px; }
  .quarterly-mode .sub { display: none; }
  .quarterly-mode .era { font-size: 14px; }
  .quarterly-mode .stats { top: 44px; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .quarterly-mode .stats article { min-width: 0; padding: 4px 6px; }
  .quarterly-mode .stats label, .quarterly-mode .stats span { font-size: 12px; }
  .quarterly-mode .stats strong { font-size: 14px; }
  .quarterly-mode .map-layers { top: 126px; right: 10px; left: auto; transform: none; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 620px) {
  body.quarterly-mode.dock-open:not(.map-focus) #hud > header,
  body.quarterly-mode.dock-open:not(.map-focus) #hud > .stats,
  body.quarterly-mode.dock-open:not(.map-focus) #hud > .crisis { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.quarter-card-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.quarter-card-tools button { min-height: 36px; padding: 6px 10px; font-size: 0.85rem; }
.proposal-state { font-size: 0.8rem; color: #483a21; margin: 4px 0; }
.proposal-approved { outline: 2px solid #687249; outline-offset: -4px; }
.proposal-approved .proposal-state { color: #35401e; font-weight: bold; }
.proposal-rejected .proposal-state { color: #74372e; }
.agenda-card-actions button[data-decided="true"],
.agenda-card-actions button[data-decided="true"]:hover {
  opacity: 1; cursor: default; box-shadow: none; text-shadow: none; transform: none;
  color: #f4e9ce; background: #4b5633; border: 1px solid #6a784b;
}
.agenda-card-actions button[data-decision-action="reject"][data-decided="true"] {
  color: #f2dfd0; background: #674239; border-color: #83564a;
}
.court-institution-duty, .court-institution-note {
  margin: 4px 6px 6px 0; color: #ddcba8; font-size: 0.76rem;
  line-height: 1.7; white-space: normal; overflow-wrap: anywhere;
}
.court-institution-note { color: #baa789; }
