#voyage-panel{padding:18px 20px}
#voyage-panel[hidden]{display:none}
.voyage-title,.voyage-stages,.fleet-list,.fleet-actions,.chart-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.voyage-title{justify-content:space-between}.voyage-title .primary{min-height:35px;font-size:.84rem}
#fleet-focus{pointer-events:auto;margin-left:auto;margin-right:7px;cursor:pointer}
#fleet-focus[hidden]{display:none}
#map:has(.fleet-piece){overflow:hidden}
.voyage-title h2,.session-report h3{font-family:var(--serif);margin:0}
.voyage-title span,.report-caption{font-size:.81rem;color:#57675d}
.voyage-stages{padding:0;list-style:none;margin:10px 0;color:#5b685f;font-size:.82rem;gap:0}
.voyage-stages li{padding:4px 8px;border-radius:5px}
.voyage-stages li+li:before{content:'›';color:#79867e;margin-left:-8px;margin-right:9px}
.voyage-stages li[aria-current]{background:#e0ede3;color:#255347;font-weight:700}
.voyage-hint,.voyage-objective,.voyage-missions p{margin:8px 0;font-size:.9rem;line-height:1.45}
.voyage-objective,.voyage-missions{margin-top:12px;color:#43584b}
.voyage-missions summary,.session-report summary{cursor:pointer;font-weight:600;font-size:.84rem}
.fleet-list{align-items:stretch;margin:10px 0 0}
.fleet-card{display:grid;gap:3px;text-align:left;padding:8px 12px;border-radius:8px;border:1px solid #b5c4b8;background:#fffdf6;color:#30493e;font:inherit;cursor:pointer}
.fleet-card strong{font-size:.9rem}.fleet-card span,.fleet-card small{font-size:.78rem}.fleet-card small{color:#52685b}
.fleet-card[aria-pressed=true]{border-color:#216052;box-shadow:inset 3px 0 #216052;background:#edf5ed}
.fleet-card:disabled{cursor:default}
.fleet-actions{margin-top:10px}.fleet-actions button{display:grid;gap:2px;text-align:left;line-height:1.3}.fleet-actions small{font-size:.72rem;color:#53675b;font-weight:400}
.fleet-piece{cursor:pointer}.fleet-piece .hull-ring{fill:#fff9e7;stroke:#526d67;stroke-width:1.6}
.fleet-piece.selected .hull-ring{stroke:#154d47;stroke-width:4;fill:#fff3c5}
.council-pier circle{fill:#2d605e;stroke:#fff6d8;stroke-width:1.2}
.council-pier path{fill:none;stroke:#fff6d8;stroke-width:1.4}
.sail-marker{cursor:pointer}.sail-marker circle{fill:#245e56;stroke:#fff6d7;stroke-width:2}.sail-marker path{stroke:#fff6d7;stroke-width:2;fill:none}
.voyage-key{display:grid;gap:12px}.voyage-key>div{display:flex;align-items:center;gap:10px}
.voyage-key img,.terrain-symbol{width:30px;height:30px;flex:none}.terrain-symbol{display:grid;place-items:center;background:#d9e9df;color:#305d52;border-radius:6px}
.voyage-key small{display:block;color:#52665a;line-height:1.4}
.sea-choice{fill:#ffe5a74d;stroke:#f9e8b7;stroke-width:4;stroke-dasharray:7 4}
#modal:has(.session-report){width:min(690px,calc(100% - 20px))}
.session-report h3{font-size:1.25rem;margin:20px 0 5px}
.report-lead{margin:0 0 12px;color:#4a6051}
.report-note{background:#f5ead3;border-radius:7px;padding:8px 12px;font-size:.85rem}
.report-scroll{max-width:100%;overflow-x:auto;margin:14px 0 6px}
.session-report table{border-collapse:collapse;width:100%;font-size:.82rem;font-variant-numeric:tabular-nums}
.session-report caption{text-align:left;padding:0 0 8px;font-weight:700;font-size:1rem}
.session-report td,.session-report th{padding:7px 6px;border-bottom:1px solid #d8e0d5;text-align:right}
.session-report thead th{color:#54665a;font-size:.76rem}
.session-report th:first-child{text-align:left;overflow-wrap:anywhere;min-width:62px}
.report-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}
.score-chart{width:100%;height:auto;display:block;background:#f2f5ec;border-radius:6px}
.score-chart text{font:11px sans-serif;fill:#44594b}.chart-grid path{fill:none;stroke:#c9d6ca;stroke-width:1}
.chart-legend{font-size:.78rem;margin:7px 0 12px;overflow-wrap:anywhere}
.session-report details .report-scroll{max-height:38vh;overflow:auto}
.report-caption{margin:4px 0 8px;line-height:1.45}
.dice-histogram{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:4px;align-items:end}
.dice-bin{display:grid;grid-template-rows:auto 70px auto;text-align:center;gap:3px;font-variant-numeric:tabular-nums}
.dice-bin b,.dice-bin strong{font-size:.76rem}.dice-bin b{color:#52665a}
.dice-bin div{display:flex;align-items:flex-end;justify-content:center;background:#edf1e9;border-radius:4px 4px 0 0}
.dice-bin i{display:block;width:74%;background:#418372;border-radius:3px 3px 0 0}
.play-again{margin:8px 0 0}
@media(max-width:780px){
  .table-layout:has(#voyage-panel:not([hidden])) #voyage-panel{grid-row:2}
  .table-layout:has(#voyage-panel:not([hidden])) .turn{grid-row:3}
  .table-layout:has(#voyage-panel:not([hidden])) .inventory{grid-row:4}
  .table-layout:has(#voyage-panel:not([hidden])) .players{grid-row:5}
  .table-layout:has(#voyage-panel:not([hidden])) .log-button{grid-row:6}
  #voyage-panel{padding:12px 14px}
  #fleet-focus{margin-right:65px}
}
@media(max-width:510px){
  #modal:has(.session-report){padding:14px}
  .session-report td,.session-report th{padding:7px 3px}
  .session-report thead th{font-size:.68rem}
  .fleet-card{padding:7px 9px}
}
