Files
airdef/tools/web_remote/static/app.css
T

157 lines
9.7 KiB
CSS

:root {
color-scheme: dark;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 16px;
background: #0a1018;
color: #e4edf1;
--surface: #111b26;
--surface-raised: #172534;
--border: #293a4c;
--muted: #9ab0bb;
--accent: #70d7c9;
--warning: #edbd6c;
--danger: #f08c83;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; min-height: 100dvh; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, input, select, textarea {
min-height: 44px;
border: 1px solid var(--border);
border-radius: 9px;
background: #12232e;
color: inherit;
}
button { padding: .6rem .9rem; font-weight: 650; }
button:hover:not(:disabled) { background: #213c48; border-color: #52717c; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .48; }
input, select, textarea { width: 100%; padding: .6rem .7rem; }
select {
appearance: none;
padding-right: 1.8rem;
background-image: linear-gradient(45deg, transparent 50%, #9ab0bb 50%), linear-gradient(135deg, #9ab0bb 50%, transparent 50%);
background-position: calc(100% - 15px) center, calc(100% - 10px) center;
background-size: 5px 5px;
background-repeat: no-repeat;
}
input[type="checkbox"], input[type="radio"] { width: auto; min-height: auto; accent-color: var(--accent); }
label { display: grid; gap: .35rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid #9af4e5; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.15rem, 2.4vw, 1.55rem); margin-bottom: 0; }
h2 { font-size: 1rem; margin-bottom: .8rem; }
h3 { font-size: .9rem; margin-bottom: .55rem; }
.shell { width: min(100%, 1680px); margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding: .3rem .1rem .9rem; }
.topbar p { margin: .2rem 0 0; color: var(--muted); font-size: .82rem; }
.status, [role="status"] { color: var(--muted); font-size: .85rem; }
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding: 0 0 .75rem; scrollbar-width: thin; }
.tabs button, .tabs a { flex: 0 0 auto; }
.tabs [aria-selected="true"], .tabs [aria-current="page"], .tabs .active { background: #1b4c4a; border-color: #70d7c9; color: #e6fffa; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 320px); gap: 1rem; align-items: start; }
.map-column, .side-panel { min-width: 0; display: grid; }
.map-column { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: clip; }
.map-wrap { position: relative; overflow: hidden; min-height: 260px; border-block: 1px solid var(--border); background: #101c24; }
.map-wrap canvas { display: block; width: 100%; height: auto; touch-action: none; }
.map-tools, .toolbar, .row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.map-tools > *, .toolbar > * { flex: 0 1 auto; }
.card { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.card > :last-child { margin-bottom: 0; }
.card + .card { margin-top: 0; }
.list { display: grid; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.list > * { min-width: 0; padding: .7rem; border: 1px solid #29404c; border-radius: 8px; background: #142530; overflow-wrap: anywhere; }
.empty { color: var(--muted); line-height: 1.5; padding: .6rem 0; }
small, .muted { color: var(--muted); }
.success { color: var(--accent); }
.warning { color: var(--warning); }
.error, .danger { color: var(--danger); }
[hidden] { display: none !important; }
dialog { width: min(90vw, 540px); max-height: min(85vh, 800px); overflow: auto; padding: 1.2rem; border: 1px solid #4d6974; border-radius: 14px; background: #152630; color: inherit; box-shadow: 0 20px 70px #0009; }
dialog::backdrop { background: #02080dc9; }
@media (max-width: 800px), (max-width: 1100px) and (orientation: portrait) {
.workspace { grid-template-columns: minmax(0, 1fr); }
.side-panel { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.map-wrap { min-height: 200px; }
}
@media (max-width: 420px) {
.shell { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
.card { padding: .8rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }
.map-wrap canvas { height: clamp(300px, 65dvh, 780px); }
.map-tools { padding: .65rem; gap: .5rem .85rem; }
.map-actions { display: flex; gap: .35rem; margin-left: auto; }
.map-actions button { min-width: 44px; }
.legend { display: flex; flex-wrap: wrap; gap: .1rem .85rem; }
.legend label { display: flex; align-items: center; min-height: 34px; cursor: pointer; }
.side-panel > .card { display: grid; gap: .7rem; }
.pairing { max-width: 410px; margin: clamp(36px, 15vh, 160px) auto 0; }
.pairing form, #scenario-form { display: grid; gap: .7rem; }
.scroller { max-height: 380px; overflow-y: auto; scrollbar-color: #42636f transparent; }
.list button { text-align: left; min-height: 44px; font-size: .9rem; }
.list [aria-pressed="true"] { border-color: var(--accent); background: #193b40; }
.subcard, .object-card:not(:empty) { border-bottom: 1px solid var(--border); padding-bottom: .7rem; }
.subcard h3:not(:first-child) { margin-top: .9rem; }
.scroller.chain { max-height: 225px; }
.detail-row { margin: .25rem 0; line-height: 1.4; font-size: .9rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.object-card button { margin-top: .5rem; }
#history-more, #preview, #confirm-launch { color: #b6f3eb; border-color: #447672; }
#launch-status:empty, #pair-error:empty, #map-status:empty { display: none; }
@media (min-width: 801px) and (min-height: 680px) and (orientation: landscape), (min-width: 1101px) and (min-height: 680px) { .map-column { position: sticky; top: .75rem; } }
@media (max-width: 800px), (max-width: 1100px) and (orientation: portrait) { .map-wrap canvas { height: clamp(270px, 49dvh, 580px); } }
.timeline-marker-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .1rem; }
.timeline-marker-slot { display: flex; justify-content: center; min-width: 0; }
.timeline-marker { min-width: 44px; padding: .25rem; border-color: #526977; font-size: .9rem; }
.timeline-marker[data-type="impact"] { color: var(--danger); }
.timeline-marker[data-type="refusal"] { color: var(--warning); }
.timeline-marker[data-type="miss"] { color: #b7c8fa; }
.timeline-marker[data-type="mixed"] { color: var(--accent); }
.timeline-marker.selected, .timeline-marker[aria-expanded="true"] { border-color: var(--accent); background: #193b40; }
.timeline-marker-details:not(:empty) { display: grid; gap: .35rem; max-height: 220px; overflow-y: auto; margin-top: .4rem; }
.timeline-marker-heading { margin: 0; font-size: .8rem; }
.timeline-marker-choice { text-align: left; font-size: .82rem; overflow-wrap: anywhere; }
.timeline-marker-choice[aria-current="true"] { border-color: var(--accent); }
.brand { display: flex; align-items: baseline; gap: .65rem; }
.brand h1 { letter-spacing: -.035em; }
.connection-readout { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; }
#connection { display: inline-flex; align-items: center; gap: .45rem; border-radius: 99px; padding: .3rem .6rem; background: var(--surface); border: 1px solid var(--border); font-weight: 650; }
#connection::before { content: ""; height: .45rem; width: .45rem; border-radius: 50%; background: currentColor; }
#refresh-rate { color: var(--muted); font-size: .79rem; font-variant-numeric: tabular-nums; }
.tabs { gap: .2rem; }
.tabs button { background: transparent; border-color: transparent; }
.tabs [aria-current="page"] { color: #b6f2e7; background: #163332; border-color: #305b56; }
.map-mode { display: inline-flex; gap: 2px; padding: 2px; background: #0b141f; border: 1px solid var(--border); border-radius: 10px; }
.map-mode button { background: transparent; border-color: transparent; min-height: 38px; padding: .4rem .8rem; color: var(--muted); }
.map-mode button[aria-pressed="true"] { background: #234443; border-color: #3d6864; color: #d3fff3; }
.inline-field { display: flex; align-items: center; gap: .4rem; }
.inline-field select { min-width: 0; max-width: 13rem; min-height: 42px; font-size: .85rem; }
.map-footer { padding: .35rem .75rem .6rem; }
.map-readout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; min-height: 1rem; color: var(--muted); font-size: .78rem; }
#map-status { font-variant-numeric: tabular-nums; }
.legend [data-layer="units"] { accent-color: #6adcd2; }
.legend [data-layer="objects"] { accent-color: #a9baf6; }
.legend [data-layer="contacts"] { accent-color: #f0bf6a; }
.legend [data-layer="interceptors"] { accent-color: #b2e68f; }
.panel-title { margin: 0; font-size: 1.05rem; }
#object-list { max-height: min(52dvh, 510px); gap: .32rem; }
#object-list button { display: grid; gap: .2rem; border-left: 3px solid var(--marker, var(--border)); }
#object-list small { font-weight: 450; font-size: .76rem; }
#object-list [data-kind="unit"] { --marker: #6adcd2; }
#object-list [data-kind="object"] { --marker: #a9baf6; }
#object-list [data-kind="contact"] { --marker: #f0bf6a; }
#object-list [data-kind="interceptor"] { --marker: #b2e68f; }
@media (max-width: 540px) {
.map-tools { gap: .5rem; }
.inline-field { font-size: .8rem; }
.inline-field select { max-width: 45vw; }
#fit { padding-inline: .5rem; }
}