/* Build 199 (Eric, Nov 21, 2026, of Captain's Voyages: "This Save & Hold section needs to be cooler - the look needs an upgrade and
   the layout. More futuristic and Star Trekky ... Just buttons / pills with little pills as the options that light up / get a more
   vibrant background color when selected. Start New Voyage needs to be more prominent and distinctive and to the right.")
   One console: a readout of the voyage in flight, the next voyage's choices as rows of pills with the launch button beside them,
   and the standing orders under them. Each row is a coloured cap (its name) and its options; the chosen option is lit in the
   row's colour. The choices themselves stay in the hidden controls voyage-pills.js drives.
   Build 200 (Eric, Nov 22, of Build 199 in his browser: "The defaults aren't on and clicking them has no effect"): his browser
   wears a glass look (Compact or Bridge). glass-ui.css styles every dialog button from html.ui-glass #sim :is(...,#crewDeck,...),
   two ids, which outranked this sheet's one-id rules: no pill showed as lit and the launch button lost its colour, though each
   press was taken. Every rule here that styles a button now carries three ids (#sim #gamePanel #voyageConsole, or the button's
   own id), so the console looks the same in Clear, Compact and Bridge. tests/build200-console-looks.test.mjs keeps it so.
   Build 212: Clear is the only look and glass-ui.css is gone; the three ids stay (the test now holds them above any other
   stylesheet's dialog-button rules). */
#gamePanel{width:min(720px,calc(100vw - 32px))}
#gamePanel #gameTitle{display:flex;align-items:center;gap:12px;margin:14px 0 4px;letter-spacing:.02em}
#gamePanel #gameTitle::before{content:"";flex:none;width:44px;height:18px;border-radius:999px 3px 3px 999px;background:#f6b352}
#gamePanel #gameTitle::after{content:"";flex:1;height:3px;border-radius:2px;background:linear-gradient(90deg,#f6b352 0 14%,transparent 14% 16%,#b7a8ff 16% 30%,transparent 30% 32%,#6cc8f5 32% 100%);opacity:.75}
.voyage-console{--v-amber:#f6b352;--v-orange:#ff9552;--v-lilac:#b7a8ff;--v-blue:#6cc8f5;--v-teal:#58dcb4;--v-red:#ff6f5c;
 display:grid;grid-template-columns:minmax(0,1fr) 188px;grid-template-areas:"readout readout" "next launch" "standing standing";gap:14px 16px;
 margin:8px 0 12px;padding:16px;border:1px solid rgba(143,220,242,.22);border-radius:18px;
 background:linear-gradient(180deg,rgba(143,220,242,.10),rgba(143,220,242,.03) 55%,rgba(8,14,24,.25))}
.voyage-readout{grid-area:readout;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0;min-height:22px;font-size:13.5px;line-height:1.3;color:#d7e4f0}
.voyage-readout-tag{padding:4px 10px 3px;border-radius:999px;border:1px solid rgba(143,220,242,.45);font:600 10px/1 Barlow,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#9fe3f5}
.voyage-readout-now{white-space:nowrap}
.voyage-next{grid-area:next;display:grid;gap:8px;align-content:start;min-width:0}
.voyage-standing{grid-area:standing;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding-top:13px;border-top:1px solid rgba(143,220,242,.16)}
.voyage-standing .pill-row[data-pills=defaultShip]{flex:1 1 330px}
.voyage-standing .pill-row[data-pills=autoMenus]{flex:0 1 232px}
/* Build 218: Play mode takes the whole width, its three names in full, the hint beneath it */
.voyage-standing .pill-row[data-pills=playMode]{flex:1 1 100%}
.voyage-standing #pillPlayHint{flex:1 1 100%}
.voyage-console-heading{flex:1 0 100%;margin:0;font:600 10.5px/1.2 Barlow,Arial,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#a9c0d2}
.voyage-console-heading span{margin-left:10px;font-weight:500;letter-spacing:.04em;text-transform:none;color:#7f97aa}
.pill-row{--tone:var(--v-blue);display:flex;align-items:stretch;gap:3px;min-width:0;height:36px}
.pill-row[data-tone=amber]{--tone:var(--v-amber)}
.pill-row[data-tone=level]{--tone:var(--v-orange)}
.pill-row[data-tone=lilac]{--tone:var(--v-lilac)}
.pill-row[data-tone=level] .pill[data-value=cadet]{--tone:var(--v-teal)}
.pill-row[data-tone=level] .pill[data-value=commander]{--tone:var(--v-amber)}
.pill-row[data-tone=level] .pill[data-value=captain]{--tone:var(--v-red)}
.pill-cap{flex:none;display:flex;align-items:center;width:110px;padding:1px 8px 0 15px;border-radius:999px 4px 4px 999px;background:var(--tone);color:#0a1420;font:700 11.5px/1 Barlow,Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase;white-space:nowrap;opacity:.9}
#sim #gamePanel #voyageConsole .pill{flex:1 1 0;min-width:0;height:100%;min-height:0;margin:0;padding:1px 10px 0;display:flex;align-items:center;justify-content:center;gap:6px;
 border:1px solid rgba(160,190,215,.3);border-color:color-mix(in srgb,var(--tone) 42%,transparent);border-radius:4px;
 background:rgba(13,22,36,.7);background:color-mix(in srgb,var(--tone) 9%,rgba(9,16,28,.72));color:#d5e4f1;
 font:600 13.5px/1 Barlow,Arial,sans-serif;letter-spacing:.02em;white-space:nowrap;overflow:hidden;cursor:pointer;
 backdrop-filter:none;-webkit-backdrop-filter:none;transition:background-color .14s,color .14s,box-shadow .14s,border-color .14s}
#sim #gamePanel #voyageConsole .pill:last-of-type{border-radius:4px 999px 999px 4px;padding-right:15px}
#sim #gamePanel #voyageConsole .pill small{font:500 9.5px/1 Barlow,Arial,sans-serif;letter-spacing:.07em;text-transform:uppercase;opacity:.66}
#sim #gamePanel #voyageConsole .pill:hover:not(:disabled):not([aria-checked=true]){background:color-mix(in srgb,var(--tone) 24%,rgba(9,16,28,.72));color:#fff}
#sim #gamePanel #voyageConsole .pill[aria-checked=true]{background:var(--tone);border-color:var(--tone);color:#07111c;font-weight:700;cursor:default;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -8px 14px -8px rgba(0,0,0,.28),0 0 16px -2px var(--tone)}
#sim #gamePanel #voyageConsole .pill[aria-checked=true] small{opacity:.78}
#sim #gamePanel #voyageConsole .pill:focus-visible{outline:2px solid #fff;outline-offset:2px}
#sim #gamePanel #voyageConsole .pill:disabled{opacity:.5;cursor:default}
.pill-hint{margin:0;min-height:17px;padding-left:16px;font-size:12.5px;line-height:1.35;color:#a9bfd0}
#sim #gamePanel #voyageConsole .voyage-launch{grid-area:launch;align-self:stretch;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;
 height:auto;min-height:118px;margin:0;padding:14px 32px 13px 20px;border:0;border-radius:16px 46px 46px 16px;
 background:linear-gradient(135deg,#ffd27a 0%,#ffab4d 42%,#ff7d3f 100%);color:#1d0f03;text-align:left;white-space:normal;cursor:pointer;
 backdrop-filter:none;-webkit-backdrop-filter:none;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.65),inset 0 -14px 24px -10px rgba(160,52,8,.42),0 0 0 1px rgba(255,220,170,.55),0 12px 30px -12px rgba(255,138,74,.85);
 transition:transform .14s,filter .14s,box-shadow .14s}
#sim #gamePanel #voyageConsole .voyage-launch::after{content:"";position:absolute;right:20px;top:50%;width:12px;height:12px;border:solid #1d0f03;border-width:3px 3px 0 0;transform:translateY(-50%) rotate(45deg);opacity:.7;transition:right .14s}
.voyage-launch-kicker{font:700 10px/1 Barlow,Arial,sans-serif;letter-spacing:.26em;text-transform:uppercase;opacity:.7}
.voyage-launch-title{font:800 21px/1.04 Barlow,Arial,sans-serif;letter-spacing:.05em;text-transform:uppercase}
.voyage-launch-choice{min-height:14px;margin-right:-22px;font:600 12px/1.15 Barlow,Arial,sans-serif;letter-spacing:.01em;white-space:nowrap;opacity:.82}
#sim #gamePanel #voyageConsole .voyage-launch:hover:not(:disabled){filter:brightness(1.07) saturate(1.06);transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 -14px 24px -10px rgba(160,52,8,.42),0 0 0 1px rgba(255,230,190,.8),0 16px 34px -12px rgba(255,138,74,1)}
#sim #gamePanel #voyageConsole .voyage-launch:hover:not(:disabled)::after{right:16px}
#sim #gamePanel #voyageConsole .voyage-launch:active:not(:disabled){transform:none;filter:brightness(.95)}
#sim #gamePanel #voyageConsole .voyage-launch:focus-visible{outline:2px solid #fff;outline-offset:3px}
#sim #gamePanel #voyageConsole .voyage-launch:disabled{filter:saturate(.2) brightness(.72);cursor:default}
.voyage-console-help{margin:0 0 12px}
.voyage-console-help summary{display:inline-flex;align-items:center;gap:7px;padding:5px 12px 4px;border:1px solid rgba(143,220,242,.28);border-radius:999px;font-size:12px;letter-spacing:.04em;color:#a9d7ea;cursor:pointer;list-style:none}
.voyage-console-help summary::-webkit-details-marker{display:none}
.voyage-console-help summary::after{content:"▾";font-size:10px}
.voyage-console-help[open] summary::after{content:"▴"}
.voyage-console-help[open] summary{margin-bottom:8px}
.voyage-console-help .dossier-notes{margin:0 0 8px}
/* the rest of the dialog's buttons take the same rounded form */
#sim #gamePanel :is(#closeGame,#saveVoyage,#downloadVoyage,#importVoyage,#retrySaves,#playUnsaved),#sim #gamePanel #savedVoyages button{border-radius:999px;padding-left:16px;padding-right:16px;letter-spacing:.03em}
#sim #gamePanel #saveVoyage{border-color:rgba(143,220,242,.6);color:#dff6ff}
#gamePanel .voyage-file-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
#gamePanel #saveStatus{margin:4px 0}
/* below the dialog's full width the class names go, so the ship names always fit */
@media(max-width:751px){#sim #gamePanel #voyageConsole .pill small{display:none}}
@media(max-width:700px){
 .voyage-console{grid-template-columns:minmax(0,1fr);grid-template-areas:"readout" "next" "launch" "standing";padding:13px;gap:12px}
 #sim #gamePanel #voyageConsole .voyage-launch{min-height:70px;border-radius:14px 36px 36px 14px}
 .pill-row{height:auto;flex-wrap:wrap}
 .pill-cap{width:100%;height:24px;border-radius:12px 12px 4px 4px}
 #sim #gamePanel #voyageConsole .pill{height:36px;flex:1 1 30%}
 #sim #gamePanel #voyageConsole .pill:last-of-type{border-radius:4px 4px 16px 16px;padding-right:10px}
 #sim #gamePanel #voyageConsole .pill:nth-last-of-type(n+2):first-of-type{border-radius:4px 4px 4px 16px}
 .voyage-standing .pill-row{flex:1 1 100%}
 .pill-hint{padding-left:4px}
 #gamePanel .voyage-file-actions{grid-template-columns:1fr 1fr}
 #sim #gamePanel #voyageConsole .pill small{display:none}
}
/* the narrowest phones: pills take the width their words need, so "Commander" is whole */
@media(max-width:360px){#sim #gamePanel #voyageConsole .pill,#sim #gamePanel #voyageConsole .pill:last-of-type{flex:1 1 auto;padding-left:5px;padding-right:5px;font-size:12.5px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){#sim #gamePanel #voyageConsole .pill,#sim #gamePanel #voyageConsole .voyage-launch,#sim #gamePanel #voyageConsole .voyage-launch::after{transition:none}}

.ship-library { margin: 12px 0; }
.ship-library-actions {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 10rem));
 gap: 8px;
 margin-top: 10px;
}
#sim #gamePanel #shipLibrary .ship-library-actions button {
 width: 100%;
 height: 38px;
 min-width: 0;
 padding: 0 6px;
 white-space: nowrap;
}
#shipLibraryStatus:empty { display: none; }
#shipLibraryEntries section { margin-top: 12px; }
#shipLibraryEntries article { padding: 8px 0; border-top: 1px solid rgba(143,220,242,.22); }
#shipLibraryEntries h4, #shipLibraryEntries h5, #shipLibraryEntries p { margin: 0 0 4px; }
#shipLibraryEntries a { color: #9fe3f5; font-size: .85em; }
