mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-05 12:24:25 +01:00
The crewed boat hears its hull creak deep down and crack when it fails, hears detonations close aboard or far off (logged with a bearing), and rigs its uConsole and browser screens for red light in silent running. The boat's browsers get its own cues; the SAR alarm cue is now known to the browser. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
280 lines
24 KiB
CSS
280 lines
24 KiB
CSS
/* Panels, cards, lists, readouts and forms shared by every station. */
|
|
|
|
.panel { min-width: 0; min-height: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
|
|
.panel > *, .metrics > *, .detail-metrics > *, .panel-heading > * { min-width: 0; }
|
|
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-bottom: .45rem; margin-bottom: .45rem; border-bottom: 1px solid var(--line-faint); }
|
|
.panel-help { color: var(--text-dim); font-size: var(--font-xs); padding: 0 0 .45rem; }
|
|
|
|
/* Readouts: label above value, value in mono. */
|
|
.metrics { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
|
|
.detail-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); gap: .45rem .7rem; }
|
|
.detail-metrics > div, .metrics > div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
|
|
.detail-metrics dd { font-size: var(--font-md); }
|
|
|
|
/* Contact list (left dock). */
|
|
.contacts-panel { display: flex; flex-direction: column; height: 100%; padding: 0; border: 0; background: transparent; }
|
|
.contacts-panel > .panel-heading { display: none; }
|
|
.contacts-panel > :not(.track-list) { flex-shrink: 0; }
|
|
.contacts-panel .panel-help { display: none; }
|
|
.contact-filter { display: grid; gap: .25rem; padding-bottom: .5rem; color: var(--text-dim); font-size: var(--font-xs); }
|
|
.contact-filter input { width: 100%; }
|
|
.track-list { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px; margin: -2px; }
|
|
.track {
|
|
position: relative; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); align-items: center; gap: .5rem;
|
|
flex-shrink: 0; width: 100%; padding: .45rem .55rem; text-align: left; font-weight: 500;
|
|
background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--aff-color, var(--line-strong)); border-radius: var(--radius);
|
|
}
|
|
.track:hover:not(:disabled) { background: var(--bg-3); border-color: var(--line-strong); border-left-color: var(--aff-color); }
|
|
.track[aria-pressed="true"] { background: var(--live-bg); border-color: var(--live); border-left-color: var(--aff-color); color: var(--text); }
|
|
.track .track-name { display: block; font-family: var(--font-mono); font-size: var(--font-md); font-weight: 700; overflow-wrap: anywhere; }
|
|
.track .track-info { display: block; margin-top: .1rem; color: var(--text-dim); font-size: var(--font-xs); font-weight: 400; line-height: 1.4; }
|
|
.track .track-flags { color: var(--caution); font-size: .66rem; font-weight: 600; letter-spacing: .04em; }
|
|
.aff-unknown { --aff-color: var(--aff-unknown); }
|
|
.aff-friend { --aff-color: var(--aff-friend); }
|
|
.aff-neutral { --aff-color: var(--aff-neutral); }
|
|
.aff-hostile { --aff-color: var(--aff-hostile); }
|
|
.domain-symbol { display: inline-block; width: 1.15rem; height: 1.15rem; color: var(--aff-color); border: 2px solid currentColor; }
|
|
.domain-surface { border-radius: .15rem; }
|
|
.domain-air { border-bottom-color: transparent; border-radius: 60% 60% 0 0; }
|
|
.domain-subsurface { border-top-color: transparent; border-radius: 0 0 60% 60%; }
|
|
.domain-unknown { transform: rotate(45deg); width: .95rem; height: .95rem; margin-left: .1rem; }
|
|
|
|
/* Contact detail (detail dock). */
|
|
.details-panel { padding: 0; border: 0; background: transparent; }
|
|
.details-panel > .panel-heading { display: none; }
|
|
#detail-label { margin: 0 0 .35rem; font-family: var(--font-mono); font-size: 1.05rem; color: var(--live-strong); overflow-wrap: anywhere; }
|
|
.badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
|
|
.badges .badge { color: var(--aff-color, var(--text-dim)); border-color: currentColor; }
|
|
#detail-metrics { padding-bottom: .4rem; }
|
|
.annotation-form { margin: .45rem 0; }
|
|
.annotation-form label, .control-form label, .station-controls label, .fire-grid label, .bridge-order-form label { display: block; margin-bottom: .2rem; color: var(--text-dim); font-size: var(--font-xs); }
|
|
.setter { display: flex; gap: .35rem; }
|
|
.setter select, .setter input { flex: 1; width: 0; min-width: 0; }
|
|
#navigation-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; }
|
|
#navigation-form input, #navigation-form button, #propose { width: 100%; }
|
|
#propose { margin-top: .5rem; }
|
|
.proposal-box { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line-faint); display: grid; gap: .35rem; }
|
|
#proposal-status { color: var(--caution); font-size: var(--font-md); }
|
|
.opz-track-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; margin: .4rem 0; }
|
|
.command-status { margin-top: .5rem; color: var(--caution); font-size: var(--font-sm); }
|
|
.command-status:empty { display: none; }
|
|
.command-status[data-status="applied"] { color: var(--live-2); }
|
|
.command-status[data-status="rejected"] { color: var(--alarm); }
|
|
.command-reconcile { margin-top: .5rem; display: grid; gap: .35rem; }
|
|
|
|
/* Event log (drawer). */
|
|
.events-panel { display: flex; flex-direction: column; min-height: 0; padding: 0; border: 0; background: transparent; }
|
|
.events-panel > .panel-heading { display: none; }
|
|
.event-list { list-style: none; margin: 0; padding: 0; min-height: 0; overflow-y: auto; font-size: var(--font-sm); }
|
|
.event-list li { display: grid; grid-template-columns: minmax(7rem, auto) minmax(0, 1fr); gap: .7rem; padding: .25rem .5rem; border-left: 2px solid var(--line); line-height: 1.4; }
|
|
.event-list li:nth-child(odd) { background: var(--bg-2); }
|
|
.event-list li.warning { border-left-color: var(--alarm); color: var(--text); }
|
|
.event-list li.warning .event-meta { color: var(--alarm-2); }
|
|
.event-meta { display: inline; margin: 0; color: var(--text-faint); font: var(--font-xs) var(--font-mono); white-space: nowrap; }
|
|
.log-drawer footer, #log-drawer footer { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem .5rem; color: var(--text-faint); font-size: var(--font-xs); }
|
|
|
|
/* Mission card (station dock). */
|
|
.mission-card { display: grid; gap: .3rem; }
|
|
.mission-card .panel-heading { margin-bottom: .1rem; }
|
|
#objective { color: var(--text); font-size: var(--font-sm); }
|
|
.session { display: grid; gap: .15rem; color: var(--text-dim); font-size: var(--font-xs); }
|
|
.session p:empty { display: none; }
|
|
|
|
/* Chart panel (operations view without a workstation). */
|
|
.chart-panel { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: var(--bg-0); }
|
|
body.workstation-mode .chart-panel { display: none; }
|
|
.chart-panel .panel-heading { padding: .45rem .7rem; margin: 0; }
|
|
.chart-toolbar, .visual-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
|
|
.chart-toolbar { padding: .35rem .7rem; }
|
|
.chart-toolbar button, .visual-toolbar button { min-height: 1.9rem; padding: .1rem .55rem; font-size: var(--font-xs); }
|
|
.chart-toolbar output, .visual-toolbar output { margin-left: auto; color: var(--text-dim); font-size: var(--font-xs); }
|
|
#chart { display: block; flex: 1; width: 100%; min-height: 16rem; background: var(--scope); touch-action: none; cursor: grab; }
|
|
#chart:active { cursor: grabbing; }
|
|
.chart-help { padding: .3rem .7rem 0; max-height: 4rem; overflow: auto; }
|
|
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: .35rem .7rem; font-size: var(--font-xs); color: var(--text-dim); }
|
|
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
|
|
.legend span::before { content: ""; width: .8rem; height: .8rem; border: 1px solid; }
|
|
.selected-key::before { border-color: var(--live) !important; }
|
|
.bearing-key::before { height: 0 !important; border: 0 !important; border-top: 1px dashed var(--text-dim) !important; }
|
|
#chart-disclaimer { padding: .3rem .7rem .5rem; max-height: 4rem; overflow: auto; }
|
|
|
|
/* Station dock cards. */
|
|
.station-view { min-width: 0; }
|
|
.station-section { min-width: 0; }
|
|
.station-heading { display: none; }
|
|
.station-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .5rem; min-width: 0; }
|
|
.station-card-view { min-width: 0; padding: .6rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
|
|
.station-card-view > h3, .station-card-view > summary > h3 { margin-bottom: .45rem; color: var(--text-dim); font-size: var(--font-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
|
|
.station-card-view > summary { cursor: pointer; list-style: none; }
|
|
.station-card-view > summary::-webkit-details-marker { display: none; }
|
|
.station-card-view > summary h3 { display: inline; }
|
|
.station-card-view > summary::before { content: "\25B8"; margin-right: .35rem; color: var(--text-faint); }
|
|
.station-card-view[open] > summary::before { content: "\25BE"; }
|
|
.station-wide { grid-column: 1 / -1; }
|
|
.card-readout { background: var(--bg-2); }
|
|
.card-controls { border-top: 2px solid var(--live); }
|
|
.card-controls > h3 { color: var(--live); }
|
|
.station-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .35rem; max-height: 28rem; min-width: 0; overflow: auto; overscroll-behavior: contain; }
|
|
.compact-list { max-height: 12rem; }
|
|
.station-row { min-width: 0; padding: .45rem .55rem; background: var(--bg-1); border: 1px solid var(--line-faint); border-left: 3px solid var(--info); border-radius: var(--radius); }
|
|
.station-row h4 { margin: 0 0 .35rem; font-family: var(--font-mono); font-size: var(--font-sm); overflow-wrap: anywhere; }
|
|
.station-row .detail-metrics, .station-card-view > .detail-metrics { padding-bottom: 0; }
|
|
.station-row-actions { display: flex; flex-wrap: wrap; gap: .3rem; padding-top: .45rem; margin-top: .45rem; border-top: 1px solid var(--line-faint); }
|
|
.station-row-actions button { flex: 1 1 7rem; font-size: var(--font-xs); }
|
|
.station-alert { grid-column: 1 / -1; padding: .45rem .6rem; color: var(--alarm); background: var(--alarm-bg); border: 1px solid var(--alarm); border-radius: var(--radius); font-weight: 600; animation: glow 1.6s ease-in-out infinite; }
|
|
.sighting-log { margin: 0; padding-left: 1.1rem; max-height: 14rem; overflow: auto; font: var(--font-sm) var(--font-mono); }
|
|
.sighting-log li { margin-bottom: .15rem; overflow-wrap: anywhere; }
|
|
|
|
/* Controls grid inside cards. */
|
|
.station-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .45rem; align-items: end; }
|
|
.station-controls > h3 { grid-column: 1 / -1; }
|
|
.station-controls select, .station-controls button, .station-controls input:not([type="checkbox"]) { width: 100%; }
|
|
.control-page { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .45rem; align-items: end; padding-top: .3rem; }
|
|
.control-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; min-width: 0; }
|
|
.toggle { display: flex !important; align-items: center; gap: .45rem; min-height: var(--control-h); padding: .3rem .5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: var(--font-sm); }
|
|
.check { display: inline-flex; align-items: center; gap: .35rem; }
|
|
|
|
/* Direct fire: red frame, armed state inverts. */
|
|
.direct-fire-controls { border-top: 2px solid var(--alarm); }
|
|
.direct-fire-controls > h3 { color: var(--alarm) !important; }
|
|
.fire-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .35rem .5rem; align-items: end; }
|
|
.fire-grid input, .fire-grid select, .fire-grid button { width: 100%; }
|
|
.fire-grid button { border-color: var(--alarm); color: var(--alarm); }
|
|
.fire-grid button.armed { background: var(--alarm); border-color: var(--alarm); color: var(--on-alarm); animation: pulse 1s ease-in-out infinite; }
|
|
.fire-status { min-height: 1.4em; margin-top: .45rem; color: var(--text-dim); font-size: var(--font-xs); }
|
|
.fire-status[data-state="armed"], .fire-status[data-state="fire_pending"], .fire-status[data-state="fire_uncertain"] { color: var(--caution); }
|
|
.fire-status[data-state="fire_revoked"], .fire-status[data-state="fire_stale"] { color: var(--alarm); }
|
|
|
|
/* Bridge orders and OPZ radar controls sit at the top of the station dock. */
|
|
.bridge-orders, .opz-controls { display: grid; gap: .5rem; }
|
|
.bridge-orders { border-top: 2px solid var(--info); }
|
|
.opz-controls { border-top: 2px solid var(--caution); }
|
|
.bridge-order-heading { display: flex; flex-direction: column; gap: .15rem; }
|
|
.bridge-order-heading .eyebrow, .opz-controls .eyebrow { display: none; }
|
|
.bridge-order-heading p { color: var(--text-dim); font-size: var(--font-xs); }
|
|
.bridge-order-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .5rem; }
|
|
.bridge-order-form .setter > * { width: 50%; }
|
|
.opz-radars { display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
|
|
.opz-radars label, .opz-manage { display: flex; align-items: center; gap: .35rem; min-height: 2rem; font-size: var(--font-sm); }
|
|
#opz-range { width: 100%; }
|
|
|
|
.bridge-weather canvas { display: block; width: 100%; height: clamp(4.5rem, 10vh, 7rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--scope); }
|
|
.bridge-weather p { margin-top: .35rem; color: var(--text-dim); font-size: var(--font-sm); }
|
|
|
|
/* Map mouse-over: a readable box beside the cursor that never catches the pointer. */
|
|
.map-tooltip {
|
|
position: fixed; z-index: var(--z-toast); display: grid; gap: .1rem; max-width: min(26rem, 90vw); padding: .4rem .55rem;
|
|
pointer-events: none; color: var(--text); background: var(--bg-2); border: 1px solid var(--live); border-radius: var(--radius);
|
|
font: var(--font-sm)/1.35 var(--font-mono); box-shadow: 0 .6rem 1.4rem -.4rem var(--shadow);
|
|
}
|
|
.map-tooltip strong { color: var(--live-strong); }
|
|
|
|
/* Silent running: the boat's stations rig for red, dimmed light. */
|
|
body[data-boat-light="red"] #operations { filter: sepia(1) saturate(4) hue-rotate(-45deg) brightness(.72); }
|
|
@media (prefers-reduced-motion: no-preference) { #operations { transition: filter .8s ease; } }
|
|
/* Crewed submarine: boat-mode toggles (silent running, snorkel, bottom). */
|
|
/* ---- Boat stations: dense two-column instrument panel ------------------ */
|
|
#station-uboot .uboot-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); grid-auto-flow: row dense; align-content: start; gap: .45rem; }
|
|
#station-uboot .station-card-view { padding: .5rem .6rem; display: flex; flex-direction: column; align-items: stretch; gap: .4rem; }
|
|
body.workstation-mode #station-uboot .uboot-grid > .station-controls:not(.station-wide) { grid-column: auto; }
|
|
#station-uboot .control-form label { margin: 0; }
|
|
#station-uboot .station-card-view > h3 { margin-bottom: 0; }
|
|
#station-uboot .control-form { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem auto; gap: .35rem; align-items: center; }
|
|
#station-uboot .compact-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .15rem .6rem; }
|
|
#station-uboot .compact-list { max-height: none; }
|
|
.uboot-strip { background: var(--bg-3); border-top: 2px solid var(--live); }
|
|
.uboot-readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
|
|
.uboot-readout { position: relative; display: grid; gap: .05rem; padding: .35rem .5rem; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--live); border-radius: var(--radius); }
|
|
.uboot-readout strong { color: var(--text); font-family: var(--font-mono); font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
|
|
.uboot-readout-label { color: var(--text-dim); font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .1em; }
|
|
.uboot-readout-sub { color: var(--text-dim); font-family: var(--font-mono); font-size: var(--font-sm); }
|
|
.uboot-readout[data-level="caution"] { border-left-color: var(--caution); }
|
|
.uboot-readout[data-level="caution"] strong { color: var(--caution); }
|
|
.uboot-readout[data-level="alarm"] { border-left-color: var(--alarm); }
|
|
.uboot-readout[data-level="alarm"] strong { color: var(--alarm); }
|
|
.uboot-readout[data-gauge="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--fill, 0%); background: var(--live); }
|
|
.uboot-readout[data-gauge="true"][data-level="caution"]::after { background: var(--caution); }
|
|
.uboot-readout[data-gauge="true"][data-level="alarm"]::after { background: var(--alarm); }
|
|
.uboot-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
|
|
.uboot-chip { padding: .15rem .5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-faint); font-size: var(--font-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
|
|
.uboot-chip[data-level="on"] { color: var(--live-strong); background: var(--live-bg); border-color: var(--live); }
|
|
.uboot-chip[data-level="caution"] { color: var(--bg-0); background: var(--caution); border-color: var(--caution); }
|
|
.uboot-chip[data-level="alarm"] { color: var(--bg-0); background: var(--alarm); border-color: var(--alarm); }
|
|
.uboot-canvas { display: block; width: 100%; height: clamp(14rem, 30vh, 24rem); border: 1px solid var(--line); border-radius: var(--radius); }
|
|
.uboot-presets, .uboot-telegraph, .uboot-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); gap: .3rem; }
|
|
.uboot-presets button, .uboot-telegraph button, .uboot-pair button { min-height: 2.5rem; }
|
|
.uboot-grid[data-role="uboot_esm"] .uboot-esm-card { grid-column: 1 / -1; }
|
|
.uboot-grid[data-role="uboot_esm"] .uboot-esm-card .uboot-canvas { height: clamp(16rem, 40vh, 30rem); }
|
|
.uboot-esm-columns { display: grid; grid-template-columns: minmax(15rem, 2fr) minmax(0, 3fr); gap: .6rem; align-items: start; }
|
|
@media (max-width: 60rem) { .uboot-esm-columns { grid-template-columns: minmax(0, 1fr); } }
|
|
.uboot-esm-columns section { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
|
|
.uboot-esm-columns h4, .uboot-esm-detail h4 { margin: 0; }
|
|
.uboot-esm-table-wrap { max-height: 22rem; overflow: auto; }
|
|
.uboot-esm-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--font-sm); }
|
|
.uboot-esm-table th, .uboot-esm-table td { padding: .15rem .35rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
|
|
.uboot-esm-table thead th { position: sticky; top: 0; background: var(--bg-2); color: var(--text-dim); font-family: var(--font-ui); font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .04em; }
|
|
.uboot-esm-table tbody tr { cursor: pointer; }
|
|
.uboot-esm-table tbody tr[data-live="false"] { color: var(--text-dim); }
|
|
.uboot-esm-table tbody tr[data-threat="true"] td:first-child { color: var(--alarm); font-weight: 700; }
|
|
.uboot-esm-table tbody tr[aria-selected="true"] { background: var(--live-bg); }
|
|
.uboot-esm-table button { min-height: 1.8rem; padding: 0 .4rem; font-family: var(--font-mono); }
|
|
.uboot-esm-empty { margin: 0; color: var(--text-dim); }
|
|
.uboot-esm-detail { display: flex; flex-direction: column; gap: .35rem; padding: .4rem .5rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
|
|
#uboot-esm-class-form { grid-template-columns: minmax(0, 1fr) auto; }
|
|
#uboot-esm-class-form label { grid-column: 1 / -1; }
|
|
#uboot-esm-class-form select { min-width: 0; width: 100%; }
|
|
#uboot-esm-mast[data-level="caution"] dd { color: var(--caution); }
|
|
#uboot-esm-mast[data-level="alarm"] dd { color: var(--alarm); }
|
|
.uboot-scope-canvas { height: clamp(16rem, 36vh, 28rem); background: var(--scope-bg); }
|
|
.uboot-grid[data-role="uboot_esm"] .uboot-scope-card .uboot-canvas { height: clamp(20rem, 52vh, 40rem); }
|
|
.uboot-scope-status { margin: .35rem 0; color: var(--text-dim); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
|
|
.uboot-scope-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr)); gap: .3rem; margin-bottom: .5rem; }
|
|
.uboot-scope-controls button { min-height: 2.5rem; }
|
|
.uboot-log-line { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .5rem; padding: .15rem 0; border-bottom: 1px solid var(--line); font-size: var(--font-sm); }
|
|
.uboot-log-age { color: var(--text-dim); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
|
|
/* Engine room: energy and stores (bars, balance, endurance, air). */
|
|
.uboot-grid[data-role="uboot_engine"] .uboot-supply-card { grid-column: 1 / -1; }
|
|
.uboot-ballast-columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr); gap: .6rem; align-items: start; }
|
|
@media (max-width: 60rem) { .uboot-ballast-columns { grid-template-columns: minmax(0, 1fr); } }
|
|
.uboot-ballast-columns section { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
|
|
.uboot-ballast-columns h4 { margin: 0; }
|
|
#uboot-ballast-canvas { height: clamp(13rem, 30vh, 20rem); }
|
|
.uboot-dc-columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr); gap: .6rem; align-items: start; }
|
|
@media (max-width: 60rem) { .uboot-dc-columns { grid-template-columns: minmax(0, 1fr); } }
|
|
.uboot-dc-columns section { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
|
|
.uboot-dc-columns h4 { margin: 0; }
|
|
#uboot-dc-canvas { height: clamp(9rem, 20vh, 13rem); }
|
|
.uboot-dc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
|
|
.uboot-dc-table th, .uboot-dc-table td { padding: .2rem .35rem; text-align: left; border-bottom: 1px solid var(--line); }
|
|
.uboot-dc-table tr[data-alert="true"] { color: var(--amber); }
|
|
.uboot-dc-table tr[data-down="true"] { color: var(--red); }
|
|
#station-uboot .uboot-dc-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .5rem; align-items: center; }
|
|
#station-uboot .uboot-dc-form button { grid-column: 1 / -1; }
|
|
.uboot-ballast-orders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
|
|
.uboot-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .45rem; }
|
|
.uboot-bar { position: relative; display: grid; gap: .05rem; padding: .35rem .5rem .55rem; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--live); border-radius: var(--radius); }
|
|
.uboot-bar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: var(--fill, 0%); background: var(--live); }
|
|
.uboot-bar strong { font-family: var(--font-mono); font-size: 1.3rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
|
|
.uboot-bar-label { color: var(--text-dim); font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .1em; }
|
|
.uboot-bar-sub, .uboot-bar-note { color: var(--text-dim); font-family: var(--font-mono); font-size: var(--font-sm); }
|
|
.uboot-bar[data-level="caution"] { border-left-color: var(--caution); }
|
|
.uboot-bar[data-level="caution"]::after { background: var(--caution); }
|
|
.uboot-bar[data-level="caution"] strong { color: var(--caution); }
|
|
.uboot-bar[data-level="alarm"] { border-left-color: var(--alarm); }
|
|
.uboot-bar[data-level="alarm"]::after { background: var(--alarm); }
|
|
.uboot-bar[data-level="alarm"] strong { color: var(--alarm); }
|
|
.uboot-supply-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .6rem; align-items: start; }
|
|
.uboot-supply-columns section { display: flex; flex-direction: column; gap: .35rem; }
|
|
.uboot-supply-columns h4 { margin: 0; }
|
|
.uboot-endurance { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--font-sm); }
|
|
.uboot-endurance th, .uboot-endurance td { padding: .15rem .4rem; border-bottom: 1px solid var(--line); text-align: right; }
|
|
.uboot-endurance thead th { color: var(--text-dim); font-family: var(--font-ui); font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .08em; }
|
|
#uboot-air[data-level="caution"] dd { color: var(--caution); }
|
|
#uboot-air[data-level="danger"] dd { color: var(--alarm); }
|
|
.uboot-modes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .35rem; }
|
|
|
|
/* Support link: pairing, lobby and settings only, never over a station. */
|
|
.support-line { margin: 0.75rem 0 0; }
|
|
.support-link { color: var(--caution); text-decoration: underline; text-underline-offset: 0.2em; }
|
|
.support-link:hover, .support-link:focus-visible { color: var(--text); }
|