mirror of
https://github.com/n30nex/CartoLite-Server.git
synced 2026-10-19 13:19:54 +00:00
* Compact map legends, attribution and dock with direct 3D access * Keep map legend placement scoped and compact graph window control * Keep packet legend clear of expanded credits and verify compact desktop targets * Separate layout and 3D journeys within the standard browser timeout * Use theme-aware credits and settled terrain measurements * Isolate terrain screenshot configuration in its own browser spec * Run dock terrain checks in the isolated terrain stage * Separate cold-start preference restoration from terrain interaction
718 lines
33 KiB
CSS
718 lines
33 KiB
CSS
:root {
|
|
--ink: #d9e8ee;
|
|
--ink-strong: #efffff;
|
|
--muted: #9fb2bf;
|
|
--field-bg: #07141a;
|
|
--panel-background: linear-gradient(145deg, rgba(8, 20, 26, 0.95), rgba(2, 9, 14, 0.92));
|
|
--panel-solid: #08141a;
|
|
--panel-border: rgba(151, 220, 224, 0.2);
|
|
--panel-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
|
|
--selected: rgba(41, 184, 169, 0.14);
|
|
|
|
color: #d9e8ee;
|
|
background: #0b151b;
|
|
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
font-synthesis: none;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body, #app, #map {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body { background: #0b151b; }
|
|
button { font: inherit; }
|
|
|
|
#app { position: relative; isolation: isolate; }
|
|
#app { --traffic-rgb: 77, 231, 196; }
|
|
#app[data-traffic-kind="trace"] { --traffic-rgb: 255, 209, 90; }
|
|
#app[data-traffic-kind="text"] { --traffic-rgb: 255, 117, 181; }
|
|
#app[data-traffic-kind="ack"] { --traffic-rgb: 120, 207, 255; }
|
|
#app[data-traffic-kind="control"] { --traffic-rgb: 167, 139, 250; }
|
|
#app[data-traffic-kind="other"] { --traffic-rgb: 156, 174, 189; }
|
|
#map { position: absolute; inset: 0; background: #0b151b; }
|
|
|
|
.map-grade {
|
|
position: absolute;
|
|
z-index: 1;
|
|
inset: 0;
|
|
background:
|
|
radial-gradient(circle at 52% 42%, rgba(39, 143, 146, 0.03), transparent 54%),
|
|
radial-gradient(ellipse at center, transparent 64%, rgba(1, 7, 12, 0.14) 100%);
|
|
box-shadow: inset 0 0 96px rgba(0, 4, 8, 0.14);
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
transition: box-shadow 500ms ease, background-color 500ms ease;
|
|
}
|
|
|
|
.map-grade::after {
|
|
position: absolute;
|
|
inset: -12%;
|
|
content: "";
|
|
pointer-events: none;
|
|
}
|
|
.map-grade::after {
|
|
background: repeating-linear-gradient(90deg, transparent 0 72px, rgba(130, 220, 225, 0.018) 73px 74px);
|
|
-webkit-mask-image: radial-gradient(ellipse at center, black, transparent 78%);
|
|
mask-image: radial-gradient(ellipse at center, black, transparent 78%);
|
|
opacity: 0.24;
|
|
}
|
|
#app.focus-active .map-grade { box-shadow: inset 0 0 150px rgba(0, 3, 7, 0.34), inset 0 0 54px rgba(var(--traffic-rgb), 0.04); }
|
|
#map[data-camera-mode="director"] + .map-grade { box-shadow: inset 0 0 120px rgba(4, 32, 39, 0.22), inset 0 0 36px rgba(var(--traffic-rgb), 0.05); }
|
|
|
|
#packet-canvas {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#packet-canvas { z-index: 4; }
|
|
|
|
.glass {
|
|
z-index: 5;
|
|
border: 1px solid var(--panel-border);
|
|
background: var(--panel-background);
|
|
box-shadow: var(--panel-shadow);
|
|
-webkit-backdrop-filter: blur(14px) saturate(1.18);
|
|
backdrop-filter: blur(14px) saturate(1.18);
|
|
transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
|
|
}
|
|
|
|
@media (pointer: coarse), (max-width: 700px) {
|
|
.glass {
|
|
background: var(--panel-solid);
|
|
-webkit-backdrop-filter: none;
|
|
backdrop-filter: none;
|
|
}
|
|
}
|
|
|
|
.toolbar {
|
|
position: absolute;
|
|
z-index: 8;
|
|
top: max(12px, env(safe-area-inset-top));
|
|
left: max(12px, env(safe-area-inset-left));
|
|
right: max(12px, env(safe-area-inset-right));
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
pointer-events: none;
|
|
}
|
|
.toolbar > section { flex-shrink: 0; pointer-events: auto; }
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 18px;
|
|
min-height: 44px;
|
|
padding: 0 12px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.brand, .netgraph-link, .status { display: flex; align-items: center; gap: 7px; }
|
|
.brand { min-height: 44px; border: 0; padding: 0 2px; color: #effdff; background: transparent; cursor: pointer; font-size: 13px; font-weight: 720; letter-spacing: 0.02em; }
|
|
.brand:hover, .brand:focus-visible { color: #ffffff; outline: none; }
|
|
.brand:focus-visible { border-radius: 6px; box-shadow: 0 0 0 2px #63d9cc; }
|
|
.brand-mark { width: 9px; height: 9px; border: 2px solid #35cdbc; border-radius: 50%; box-shadow: 0 0 11px #36d7c2; }
|
|
.netgraph-link { min-height: 44px; padding: 0 3px; color: #9ccbc8; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
|
|
.netgraph-link:hover, .netgraph-link:focus-visible { color: var(--ink-strong); outline: none; }
|
|
.netgraph-link:focus-visible { border-radius: 6px; box-shadow: 0 0 0 2px #63d9cc; }
|
|
.netgraph-link > span:first-child { color: #63d9cc; text-shadow: 0 0 10px rgba(99, 217, 204, 0.68); }
|
|
.status { color: #aebdcb; font-size: 11px; font-weight: 600; }
|
|
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #86919b; }
|
|
.status[data-state="active"] .status-dot { background: #45df9a; box-shadow: 0 0 8px #45df9a; }
|
|
.status[data-state="quiet"] .status-dot { background: #70a99f; }
|
|
.status[data-state="reconnecting"] .status-dot { background: #e9c35b; animation: status-pulse 1.1s ease-in-out infinite; }
|
|
.status[data-state="offline"] .status-dot { background: #ed7283; }
|
|
.topbar.traffic-pulse .brand-mark { animation: traffic-brand 680ms ease-out; }
|
|
.topbar.traffic-pulse .status-dot { animation: traffic-status 680ms ease-out; }
|
|
|
|
.traffic-meter {
|
|
display: inline-flex;
|
|
height: 12px;
|
|
align-items: flex-end;
|
|
gap: 2px;
|
|
margin-left: 2px;
|
|
}
|
|
.traffic-meter i {
|
|
width: 2px;
|
|
height: 2px;
|
|
border-radius: 2px;
|
|
background: rgba(var(--traffic-rgb), 0.32);
|
|
box-shadow: 0 0 0 rgba(var(--traffic-rgb), 0);
|
|
transition: height 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
|
|
}
|
|
.traffic-meter[data-level="1"] i:nth-child(-n+1),
|
|
.traffic-meter[data-level="2"] i:nth-child(-n+2),
|
|
.traffic-meter[data-level="3"] i:nth-child(-n+3),
|
|
.traffic-meter[data-level="4"] i:nth-child(-n+4),
|
|
.traffic-meter[data-level="5"] i:nth-child(-n+5) {
|
|
height: 10px;
|
|
background: rgba(var(--traffic-rgb), 0.9);
|
|
box-shadow: 0 0 7px rgba(var(--traffic-rgb), 0.62);
|
|
}
|
|
.traffic-meter i:nth-child(2) { max-height: 8px; }
|
|
.traffic-meter i:nth-child(3) { max-height: 12px; }
|
|
.traffic-meter i:nth-child(4) { max-height: 7px; }
|
|
.traffic-meter i:nth-child(5) { max-height: 10px; }
|
|
|
|
.controls {
|
|
margin-left: auto;
|
|
display: flex;
|
|
overflow: visible;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.layers-disclosure { position: relative; }
|
|
.layers-panel[hidden],
|
|
.layers-summary[hidden] { display: none !important; }
|
|
.sound-control { position: relative; display: flex; }
|
|
.find-control { position: relative; display: flex; }
|
|
|
|
.control-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 44px;
|
|
border: 0;
|
|
border-right: 1px solid rgba(139, 205, 214, 0.12);
|
|
padding: 0 11px;
|
|
color: #b9cad7;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-weight: 650;
|
|
transition: color 150ms ease, background-color 150ms ease, box-shadow 180ms ease, transform 150ms ease;
|
|
}
|
|
.icon-button { border-right: 0; }
|
|
.control-button:hover, .control-button:focus-visible, .control-button.selected { color: var(--ink-strong); background: rgba(41, 184, 169, 0.14); outline: none; }
|
|
#follow-button[data-mode="director"] { color: var(--ink-strong); box-shadow: inset 0 -1px rgba(99, 217, 204, 0.45), 0 0 18px rgba(50, 200, 187, 0.08); }
|
|
#app.traffic-awake #follow-button[data-mode="director"] > span:first-child { animation: director-lock 880ms ease-out; }
|
|
.control-button:focus-visible { outline: 2px solid #63d9cc; outline-offset: -3px; }
|
|
.control-button:disabled { color: #667480; cursor: not-allowed; opacity: 0.62; }
|
|
.control-icon { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
|
|
.control-button.sounding .control-icon,
|
|
.sound-activity.active { animation: sound-hop 680ms ease-out; }
|
|
.icon-button { width: 44px; justify-content: center; padding: 0; font-size: 17px; }
|
|
.sound-state { color: #778b97; font-size: 10px; font-weight: 720; }
|
|
.control-button[data-sound-state="on"] .sound-state,
|
|
.sound-panel[data-sound-state="on"] header span { color: #6ce2c5; }
|
|
.control-button[data-sound-state="resume"] .sound-state,
|
|
.sound-panel[data-sound-state="resume"] header span { color: #f0c36a; }
|
|
|
|
.sound-panel {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
right: 0;
|
|
z-index: 9;
|
|
display: grid;
|
|
width: 244px;
|
|
gap: 11px;
|
|
padding: 13px;
|
|
border-radius: 12px;
|
|
}
|
|
.sound-panel[hidden] { display: none; }
|
|
.sound-panel header { display: flex; align-items: center; justify-content: space-between; color: var(--ink-strong); font-size: 12px; }
|
|
.sound-panel header span { color: #899da8; font-size: 11px; font-weight: 750; }
|
|
.sound-toggle {
|
|
min-height: 44px;
|
|
border: 1px solid rgba(99, 217, 204, 0.25);
|
|
border-radius: 9px;
|
|
color: var(--ink-strong);
|
|
background: rgba(38, 166, 155, 0.14);
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
.sound-toggle:hover, .sound-toggle:focus-visible { background: rgba(38, 166, 155, 0.24); outline: 2px solid #63d9cc; outline-offset: 1px; }
|
|
.scene-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 650; }
|
|
.scene-control select {
|
|
min-height: 36px;
|
|
border: 1px solid rgba(139, 205, 214, 0.18);
|
|
border-radius: 7px;
|
|
padding: 0 28px 0 9px;
|
|
color: var(--ink-strong);
|
|
background: var(--field-bg);
|
|
font: inherit;
|
|
}
|
|
.scene-control select:focus-visible { outline: 2px solid #63d9cc; outline-offset: 1px; }
|
|
.volume-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px; color: var(--muted); font-size: 11px; font-weight: 650; }
|
|
.volume-control output { color: var(--ink-strong); font-variant-numeric: tabular-nums; }
|
|
.volume-control input { grid-column: 1 / -1; width: 100%; min-height: 44px; accent-color: #4dcfbe; cursor: pointer; }
|
|
.sound-panel p { display: flex; align-items: center; gap: 7px; margin: 0; color: #859aa5; font-size: 10px; }
|
|
.sound-activity { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #41545c; }
|
|
.sound-activity.active { background: #6ce2c5; box-shadow: 0 0 9px rgba(108, 226, 197, 0.9); }
|
|
|
|
.find-panel {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
left: 0;
|
|
z-index: 9;
|
|
display: grid;
|
|
width: min(292px, calc(100vw - 24px));
|
|
gap: 8px;
|
|
padding: 12px;
|
|
border-radius: 12px;
|
|
}
|
|
.find-panel[hidden] { display: none; }
|
|
.find-panel > label { color: var(--ink-strong); font-size: 11px; font-weight: 750; }
|
|
.find-panel input {
|
|
min-height: 44px;
|
|
width: 100%;
|
|
border: 1px solid rgba(99, 217, 204, 0.26);
|
|
border-radius: 8px;
|
|
padding: 0 11px;
|
|
color: var(--ink-strong);
|
|
background: rgba(4, 15, 20, 0.96);
|
|
font: inherit;
|
|
}
|
|
.find-panel input:focus-visible { outline: 2px solid #63d9cc; outline-offset: 1px; }
|
|
.node-search-results { display: grid; max-height: min(330px, 52vh); overflow-y: auto; overscroll-behavior: contain; }
|
|
.node-search-results > p { margin: 6px 2px; color: #8297a4; font-size: 11px; }
|
|
.node-search-result {
|
|
display: grid;
|
|
min-height: 48px;
|
|
gap: 2px;
|
|
border: 0;
|
|
border-top: 1px solid rgba(139, 205, 214, 0.1);
|
|
padding: 7px 8px;
|
|
color: var(--ink-strong);
|
|
background: transparent;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.node-search-result strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
|
|
.node-search-result span { color: #8197a5; font-size: 10px; text-transform: capitalize; }
|
|
.node-search-result:hover, .node-search-result:focus-visible, .node-search-result[aria-selected="true"] { background: rgba(41, 184, 169, 0.14); outline: none; }
|
|
.node-search-result:focus-visible { box-shadow: inset 0 0 0 2px #63d9cc; }
|
|
|
|
@keyframes sound-hop {
|
|
0% { filter: drop-shadow(0 0 0 rgba(99, 217, 204, 0)); transform: scale(1); }
|
|
35% { filter: drop-shadow(0 0 5px rgba(99, 217, 204, 0.9)); transform: scale(1.2); }
|
|
100% { filter: drop-shadow(0 0 0 rgba(99, 217, 204, 0)); transform: scale(1); }
|
|
}
|
|
|
|
.route-window {
|
|
position: static;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 44px;
|
|
padding: 5px 8px 5px 10px;
|
|
border: 0;
|
|
border-radius: 0;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 650;
|
|
}
|
|
.route-window select {
|
|
min-height: 30px;
|
|
border: 1px solid rgba(139, 205, 214, 0.18);
|
|
border-radius: 7px;
|
|
padding: 0 24px 0 8px;
|
|
color: var(--ink-strong);
|
|
background: var(--field-bg);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.route-window select:focus-visible { outline: 2px solid #63d9cc; outline-offset: 1px; }
|
|
|
|
.legend {
|
|
position: absolute;
|
|
bottom: max(13px, env(safe-area-inset-bottom));
|
|
left: max(12px, env(safe-area-inset-left));
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 10px;
|
|
border-radius: 10px;
|
|
color: #93a5b6;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
.legend-items { display: flex; align-items: center; gap: 13px; }
|
|
.legend-items span, .focus-chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
|
|
.legend i.node { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 5px currentColor; }
|
|
.legend .repeater { color: #45c27f; background: #45c27f; }
|
|
.legend .companion { color: #53a7e8; background: #53a7e8; }
|
|
.legend .room { color: #ab76dc; background: #ab76dc; }
|
|
.legend-toggle { display: none; }
|
|
.focus-chip {
|
|
max-width: min(360px, calc(100vw - 24px));
|
|
color: var(--ink-strong);
|
|
font-size: 10px;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
.focus-chip i {
|
|
width: 7px;
|
|
height: 7px;
|
|
flex: none;
|
|
border: 1px solid #f2bf4f;
|
|
border-radius: 50%;
|
|
background: #fff4b1;
|
|
box-shadow: 0 0 10px rgba(242, 191, 79, 0.9);
|
|
}
|
|
.focus-chip span { overflow: hidden; text-overflow: ellipsis; }
|
|
.focus-chip[hidden] { display: none; }
|
|
.legend[data-focused="true"] .legend-items,
|
|
.legend[data-focused="true"] .legend-toggle { display: none; }
|
|
.legend[data-focused="false"] .focus-chip { display: none; }
|
|
|
|
.route-legend {
|
|
position: absolute;
|
|
right: max(12px, env(safe-area-inset-right));
|
|
bottom: max(34px, calc(env(safe-area-inset-bottom) + 30px));
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
padding: 7px 9px;
|
|
border-radius: 9px;
|
|
color: #9cadba;
|
|
font-size: 10px;
|
|
font-weight: 650;
|
|
pointer-events: none;
|
|
}
|
|
.route-legend-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
|
|
.route-legend[hidden] { display: none; }
|
|
.route-legend-swatch {
|
|
width: 13px;
|
|
height: 2px;
|
|
border-radius: 2px;
|
|
background: var(--route-color);
|
|
box-shadow: 0 0 6px var(--route-color);
|
|
}
|
|
|
|
.tooltip {
|
|
position: absolute;
|
|
z-index: 6;
|
|
display: grid;
|
|
gap: 3px;
|
|
min-width: 110px;
|
|
max-width: 220px;
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
transform: translateX(-50%);
|
|
pointer-events: none;
|
|
}
|
|
.tooltip strong { overflow: hidden; color: #f3ffff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
|
|
.tooltip span { color: #92a6b7; font-size: 9px; text-transform: capitalize; }
|
|
.tooltip[hidden] { display: none; }
|
|
|
|
|
|
/* Raise the popup wrapper's stacking context above traffic (4), below controls (8). */
|
|
.node-inspector-popup { z-index: 7; }
|
|
.node-inspector-popup .maplibregl-popup-content {
|
|
overflow: hidden;
|
|
border: 1px solid rgba(123, 205, 209, 0.22);
|
|
border-radius: 13px;
|
|
padding: 0;
|
|
color: #dceaf2;
|
|
background: rgba(6, 17, 23, 0.95);
|
|
box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), inset 0 1px rgba(218, 255, 255, 0.04);
|
|
backdrop-filter: blur(15px) saturate(125%);
|
|
}
|
|
.node-inspector-popup .maplibregl-popup-tip { border-top-color: rgba(6, 17, 23, 0.95); }
|
|
.node-inspector-popup .maplibregl-popup-close-button {
|
|
z-index: 1;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 8px;
|
|
color: #a9bdc8;
|
|
font-size: 22px;
|
|
}
|
|
.node-inspector-popup .maplibregl-popup-close-button:hover,
|
|
.node-inspector-popup .maplibregl-popup-close-button:focus-visible { color: var(--ink-strong); background: rgba(41, 184, 169, 0.16); outline: 2px solid #63d9cc; outline-offset: -3px; }
|
|
.node-inspector-sheet {
|
|
position: absolute;
|
|
z-index: 7;
|
|
right: 8px;
|
|
bottom: max(8px, env(safe-area-inset-bottom));
|
|
left: 8px;
|
|
max-height: min(48vh, 420px);
|
|
overflow: hidden;
|
|
border-radius: 15px;
|
|
}
|
|
.node-inspector-sheet[hidden] { display: none; }
|
|
.node-inspector { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); min-width: 300px; max-height: min(430px, 65vh); }
|
|
.node-inspector > header { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 46px 9px 13px; border-bottom: 1px solid rgba(139, 205, 214, 0.11); }
|
|
.node-inspector > header > div { display: grid; min-width: 0; gap: 2px; }
|
|
.node-inspector > header strong { overflow: hidden; color: #f0ffff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
|
|
.node-inspector > header span { color: #8ca2af; font-size: 10px; text-transform: capitalize; }
|
|
.node-inspector-close { width: 44px; height: 44px; flex: none; border: 0; border-radius: 9px; color: #a9bdc8; background: transparent; cursor: pointer; font-size: 24px; }
|
|
.node-inspector-close:hover, .node-inspector-close:focus-visible { color: var(--ink-strong); background: rgba(41, 184, 169, 0.16); outline: 2px solid #63d9cc; outline-offset: -3px; }
|
|
.node-inspector dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 10px 13px; }
|
|
.node-inspector dl div { display: grid; min-width: 0; gap: 2px; }
|
|
.node-inspector dt { color: #708895; font-size: 9px; font-weight: 650; text-transform: uppercase; }
|
|
.node-inspector dd { overflow: hidden; margin: 0; color: #d9e9ef; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
|
|
.node-inspector h3 { margin: 0; padding: 6px 13px 7px; color: #8da3ae; font-size: 10px; font-weight: 700; }
|
|
.neighbor-list { overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid rgba(139, 205, 214, 0.09); }
|
|
.neighbor-row { display: grid; width: 100%; min-height: 54px; gap: 1px; border: 0; border-bottom: 1px solid rgba(139, 205, 214, 0.08); padding: 7px 13px; color: var(--ink-strong); background: transparent; text-align: left; cursor: pointer; }
|
|
.neighbor-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
|
|
.neighbor-row span { color: #8298a5; font-size: 9px; text-transform: capitalize; }
|
|
.neighbor-row:hover, .neighbor-row:focus-visible { background: rgba(41, 184, 169, 0.13); outline: none; }
|
|
.neighbor-row:focus-visible { box-shadow: inset 0 0 0 2px #63d9cc; }
|
|
|
|
.fatal {
|
|
position: absolute;
|
|
z-index: 8;
|
|
top: 50%;
|
|
left: 50%;
|
|
max-width: min(420px, calc(100% - 32px));
|
|
padding: 14px 18px;
|
|
border-color: rgba(237, 114, 131, 0.35);
|
|
border-radius: 12px;
|
|
color: #ffd7dc;
|
|
font-size: 12px;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
.fatal[hidden] { display: none; }
|
|
|
|
.about-dialog {
|
|
z-index: 10;
|
|
width: min(460px, calc(100vw - 28px));
|
|
max-height: min(650px, calc(100vh - 28px));
|
|
overflow: auto;
|
|
border-radius: 16px;
|
|
padding: 22px;
|
|
color: #dceaf7;
|
|
}
|
|
.about-dialog::backdrop { background: rgba(0, 4, 8, 0.72); backdrop-filter: blur(3px); }
|
|
.about-dialog h1 { margin: 0 42px 8px 0; color: #f2ffff; font-size: 22px; }
|
|
.about-dialog p { margin: 0 0 18px; color: #adc2ce; font-size: 13px; line-height: 1.5; }
|
|
.about-dialog dl { display: grid; gap: 14px; margin: 0; }
|
|
.about-dialog dl div { display: grid; gap: 3px; }
|
|
.about-dialog dt { color: #67d9cc; font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
.about-dialog dd { margin: 0; color: #c8d8e2; font-size: 12px; line-height: 1.5; }
|
|
.about-link { color: #75e8d5; font-weight: 750; text-underline-offset: 3px; }
|
|
.about-link:hover, .about-link:focus-visible { color: #f2ffff; outline: 2px solid #63d9cc; outline-offset: 3px; }
|
|
.about-close {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
width: 44px;
|
|
height: 44px;
|
|
border: 0;
|
|
border-radius: 10px;
|
|
color: #b9cad7;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 24px;
|
|
}
|
|
.about-close:hover, .about-close:focus-visible { color: #ffffff; background: rgba(41, 184, 169, 0.14); outline: 2px solid #63d9cc; outline-offset: -3px; }
|
|
|
|
.maplibregl-ctrl-bottom-right { z-index: 3; opacity: 0.45; }
|
|
.maplibregl-ctrl-attrib { color: var(--muted); background: var(--panel-solid); font-size: 10px; }
|
|
.maplibregl-ctrl-attrib a { color: #9cb4c4; }
|
|
.maplibregl-ctrl-attrib-button { filter: invert(1); }
|
|
|
|
@keyframes status-pulse { 50% { opacity: 0.35; } }
|
|
@keyframes traffic-brand {
|
|
0% { transform: scale(0.82); box-shadow: 0 0 4px rgba(54, 215, 194, 0.55); }
|
|
35% { transform: scale(1.45); border-color: var(--ink-strong); box-shadow: 0 0 20px #5fffe8, 0 0 34px rgba(53, 205, 188, 0.45); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
@keyframes traffic-status {
|
|
30% { background: var(--ink-strong); box-shadow: 0 0 14px #45dfc3; }
|
|
}
|
|
@keyframes director-lock {
|
|
0% { opacity: 0.5; transform: scale(0.76); }
|
|
42% { opacity: 1; transform: scale(1.22); text-shadow: 0 0 10px rgba(99, 217, 204, 0.85); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
@media (min-width: 621px) and (max-width: 1180px) {
|
|
.controls .control-button > span:not(.sound-state) { display: none; }
|
|
.controls .control-button { min-width: 44px; justify-content: center; padding-inline: 9px; }
|
|
.controls .sound-button-label { display: none; }
|
|
}
|
|
|
|
:root[data-view-class="mobile"] .toolbar { top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); }
|
|
:root[data-view-class="mobile"] .topbar { gap: 10px; min-height: 44px; padding: 0 9px; }
|
|
:root[data-view-class="mobile"] .control-button { min-width: 44px; min-height: 44px; justify-content: center; padding: 0 9px; }
|
|
:root[data-view-class="mobile"] .control-button > span:last-child:not(.sound-state) { display: none; }
|
|
:root[data-view-class="mobile"] .node-search-results { max-height: 220px; }
|
|
:root[data-view-class="mobile"] .route-window { position: static; min-height: 52px; justify-content: space-between; padding: 4px 6px 4px 13px; border: 0; border-radius: 0; transform: none; }
|
|
:root[data-view-class="mobile"] .route-window select { min-height: 44px; font-size: 12px; }
|
|
:root[data-view-class="mobile"] .sound-button-label,
|
|
:root[data-view-class="mobile"] .sound-state { display: none; }
|
|
:root[data-view-class="mobile"] .sound-panel { right: -44px; width: min(244px, calc(100vw - 16px)); }
|
|
:root[data-view-class="mobile"] .legend { right: auto; bottom: max(9px, env(safe-area-inset-bottom)); left: 8px; min-height: 44px; padding: 0; }
|
|
:root[data-view-class="mobile"] .legend-toggle {
|
|
display: inline-grid;
|
|
width: 44px;
|
|
height: 44px;
|
|
place-items: center;
|
|
border: 0;
|
|
border-radius: 7px;
|
|
color: var(--muted);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
:root[data-view-class="mobile"] .legend-toggle:hover,
|
|
:root[data-view-class="mobile"] .legend-toggle:focus-visible { color: var(--ink-strong); background: rgba(41, 184, 169, 0.14); outline: none; }
|
|
:root[data-view-class="mobile"] .legend-toggle:focus-visible { box-shadow: inset 0 0 0 2px #63d9cc; }
|
|
:root[data-view-class="mobile"] .legend-toggle-mark {
|
|
display: grid;
|
|
width: 18px;
|
|
height: 18px;
|
|
place-items: center;
|
|
border: 1px solid currentColor;
|
|
border-radius: 50%;
|
|
font-family: Georgia, serif;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
}
|
|
:root[data-view-class="mobile"] .legend[data-focused="true"] .legend-toggle { display: none; }
|
|
:root[data-view-class="mobile"] .legend-items { min-height: 44px; gap: 9px; padding: 0 10px; font-size: 12px; }
|
|
:root[data-view-class="mobile"] .legend-items span { gap: 4px; }
|
|
:root[data-view-class="mobile"] .legend[data-collapsed="true"] .legend-items { display: none; }
|
|
:root[data-view-class="mobile"] .legend[data-focused="true"] { max-width: calc(100vw - 16px); padding: 8px 10px; }
|
|
:root[data-view-class="mobile"] .route-legend { right: 8px; bottom: max(38px, calc(env(safe-area-inset-bottom) + 34px)); gap: 5px; padding: 5px 7px; opacity: 0.88; }
|
|
:root[data-view-class="mobile"] .route-legend-label { font-size: 0; }
|
|
:root[data-view-class="mobile"] .route-legend-label::after { content: attr(data-short); font-size: 10px; }
|
|
:root[data-view-class="mobile"] .route-legend-swatch { width: 10px; }
|
|
:root[data-view-class="mobile"] .node-inspector { min-width: 0; max-height: min(48vh, 420px); }
|
|
:root[data-view-class="mobile"] .node-inspector > header { padding-right: 8px; }
|
|
|
|
@media (max-width: 520px) {
|
|
.brand { min-width: 44px; justify-content: center; padding: 0; }
|
|
.topbar .brand > span:last-child,
|
|
.netgraph-link > span:last-child {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
.netgraph-link { min-width: 44px; justify-content: center; padding: 0; }
|
|
.status { gap: 7px; }
|
|
}
|
|
|
|
@media (max-width: 380px) {
|
|
.topbar { gap: 7px; padding-inline: 8px; }
|
|
.control-button { padding-inline: 7px; }
|
|
.control-icon { width: 14px; height: 14px; }
|
|
.icon-button { width: 44px; padding: 0; }
|
|
}
|
|
|
|
@media (orientation: landscape) and (max-height: 520px) {
|
|
.node-inspector-sheet { max-height: min(40vh, 220px); }
|
|
:root[data-view-class="mobile"] .node-inspector {
|
|
grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
max-height: min(40vh, 220px);
|
|
}
|
|
:root[data-view-class="mobile"] .node-inspector > header { grid-column: 1; grid-row: 1; padding-block: 4px; }
|
|
:root[data-view-class="mobile"] .node-inspector dl { grid-column: 1; grid-row: 2; padding-block: 6px; }
|
|
:root[data-view-class="mobile"] .node-inspector h3 { grid-column: 2; grid-row: 1; align-self: end; padding-block: 8px; }
|
|
:root[data-view-class="mobile"] .node-inspector .neighbor-list { grid-column: 2; grid-row: 2; min-height: 0; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
|
|
}
|
|
|
|
/* All secondary controls share one disclosure on every viewport. */
|
|
#layers-summary { display: inline-flex; }
|
|
.layers-disclosure[open] #layers-summary { color: var(--ink-strong); background: var(--selected); }
|
|
#layers-panel {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
right: -44px;
|
|
width: min(330px, calc(100vw - 24px));
|
|
max-height: calc(100dvh - 136px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
|
|
display: grid;
|
|
gap: 10px;
|
|
padding: 10px 12px 12px;
|
|
overflow: auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-width: thin;
|
|
background: var(--panel-solid);
|
|
backdrop-filter: none; -webkit-backdrop-filter: none;
|
|
border-radius: 12px;
|
|
}
|
|
#layers-panel[hidden], .follow-card[hidden] { display: none; }
|
|
.map-options-header { position: sticky; top: -10px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -10px -12px 0; padding: 8px 12px; background: var(--panel-solid); border-bottom: 1px solid var(--panel-border); color: var(--ink-strong); font-size: 13px; }
|
|
.map-options-subtitle { margin: 3px 0 0; color: var(--muted); font-size: 11px; font-weight: 400; }
|
|
.map-layer-group { min-width: 0; margin: 0; }
|
|
section.map-layer-group, .layer-group-body, .map-appearance-content { display: grid; gap: 8px; }
|
|
.map-layer-group h2 { margin: 2px 0; color: var(--ink-strong); font-size: 12px; font-weight: 650; }
|
|
.map-layer-group > summary, .map-appearance > summary { min-height: 44px; padding: 12px 0; color: var(--ink-strong); font-size: 12px; font-weight: 650; cursor: pointer; }
|
|
.map-layer-group > summary > span, .map-appearance > summary > span { float: right; margin-left: 8px; color: var(--muted); font-size: 10px; font-weight: 400; }
|
|
details.map-layer-group, .map-appearance { border-top: 1px solid var(--panel-border); }
|
|
.layer-hint { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
|
|
#map-appearance .reset-appearance { width: 100%; margin-block: 10px 8px; }
|
|
#layers-panel :is(button, input, select, summary) { scroll-margin-block: 70px 12px; }
|
|
#layers-panel input:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
.map-options-header .control-button { border: 0; border-radius: 7px; }
|
|
.map-options-label { padding-top: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
|
|
.layer-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
|
|
#layers-panel .layer-toggles .control-button {
|
|
width: 100%; min-height: 44px; min-width: 0; gap: 6px; padding: 0 8px;
|
|
justify-content: flex-start; border: 1px solid var(--panel-border); border-radius: 8px; font-size: 11px;
|
|
}
|
|
#layers-panel .control-button > span:last-child { display: inline; }
|
|
.layer-toggles .control-icon { width: 14px; height: 14px; }
|
|
.layer-toggles .control-button::after { content: 'Off'; flex: none; margin-left: auto; font-size: 9px; font-weight: 400; opacity: 1; }
|
|
.layer-toggles .control-button[aria-pressed="true"]::after { content: 'On'; font-weight: 750; opacity: 1; }
|
|
.map-option, #layers-panel .route-window { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; color: var(--muted); font-size: 12px; }
|
|
.map-option select, #layers-panel .route-window select { width: 146px; min-width: 0; min-height: 44px; border: 1px solid var(--panel-border); border-radius: 8px; padding: 0 8px; color: var(--ink-strong); background: var(--field-bg); font: inherit; }
|
|
.map-slider { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 10px; color: var(--muted); font-size: 12px; }
|
|
.map-slider output { color: var(--ink-strong); font-variant-numeric: tabular-nums; }
|
|
.map-slider input { width: 100%; min-height: 36px; grid-column: 1 / -1; accent-color: #45baa6; cursor: pointer; }
|
|
#layers-panel .reset-appearance { min-height: 44px; justify-content: center; border: 1px solid var(--panel-border); border-radius: 8px; }
|
|
.find-panel { left: auto; right: 0; }
|
|
.follow-card { position: absolute; z-index: 6; left: max(12px, env(safe-area-inset-left)); bottom: max(70px, calc(env(safe-area-inset-bottom) + 64px)); width: min(320px, calc(100vw - 24px)); border-radius: 12px; overflow: hidden; }
|
|
.follow-card { background: var(--panel-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
|
|
.follow-card header { display: flex; align-items: center; min-height: 44px; padding-left: 13px; }
|
|
.follow-badge { flex: 1; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
|
|
.follow-card header .control-button { min-height: 44px; padding-inline: 10px; border: 0; font-size: 11px; }
|
|
.follow-copy { display: grid; gap: 6px; padding: 0 13px 10px; }
|
|
.follow-copy strong { color: var(--ink-strong); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.follow-copy span, .follow-card footer { color: var(--muted); font-size: 11px; }
|
|
.follow-card footer { display: flex; justify-content: space-between; gap: 10px; padding: 0 13px 10px; }
|
|
#follow-countdown { color: var(--ink-strong); font-variant-numeric: tabular-nums; }
|
|
#follow-progress { display: block; width: 100%; height: 3px; border: 0; appearance: none; background: var(--panel-border); accent-color: #45baa6; }
|
|
#follow-progress::-webkit-progress-bar { background: var(--panel-border); }
|
|
#follow-progress::-webkit-progress-value { background: #45baa6; }
|
|
#follow-progress::-moz-progress-bar { background: #45baa6; }
|
|
:root[data-theme="light"] {
|
|
--ink: #294650; --ink-strong: #183b43; --muted: #4a6873; --field-bg: #f5faf8;
|
|
--panel-background: linear-gradient(145deg, rgba(250, 254, 252, 0.97), rgba(232, 241, 238, 0.95));
|
|
--panel-solid: #f1f7f4; --panel-border: rgba(42, 91, 90, 0.24); --panel-shadow: 0 8px 28px rgba(18, 51, 50, 0.16);
|
|
color: var(--ink); color-scheme: light;
|
|
}
|
|
:root[data-theme="light"] :is(.control-button, .brand, .netgraph-link, .legend, .status, .sound-panel header span, .sound-panel p, .node-search-result span, .focus-chip) { color: var(--ink); }
|
|
:root[data-theme="light"] :is(.find-panel input, .node-inspector, .maplibregl-popup-content, .node-inspector-sheet, .about-dialog) { color: var(--ink); background: var(--panel-solid); }
|
|
:root[data-theme="light"] :is(.tooltip strong, .tooltip span, .node-inspector header strong, .node-inspector header span, .node-inspector h3, .node-inspector dt, .node-inspector dd, .about-dialog h1, .about-dialog p, .about-dialog dd, .about-dialog dt) { color: var(--ink); }
|
|
:root[data-basemap="light"] .map-grade, :root[data-basemap="streets"] .map-grade { opacity: 0; }
|
|
:root:not([data-basemap="dark"]) #packet-canvas { filter: none; }
|
|
:root[data-view-class="mobile"] .controls { backdrop-filter: none; -webkit-backdrop-filter: none; }
|
|
:root[data-view-class="mobile"] #layers-panel { position: fixed; top: max(108px, calc(env(safe-area-inset-top) + 100px)); right: 8px; }
|
|
:root[data-view-class="mobile"] .find-panel { position: fixed; top: max(108px, calc(env(safe-area-inset-top) + 100px)); right: 8px; width: min(320px, calc(100vw - 16px)); }
|
|
@media (orientation: landscape) and (max-height: 520px) {
|
|
.follow-card { width: min(300px, calc(100vw - 24px)); bottom: max(54px, calc(env(safe-area-inset-bottom) + 46px)); }
|
|
#layers-panel { max-height: calc(100dvh - 86px - env(safe-area-inset-top)); }
|
|
:root[data-view-class="mobile"] #layers-panel, :root[data-view-class="mobile"] .find-panel { top: max(62px, calc(env(safe-area-inset-top) + 54px)); }
|
|
}
|
|
|
|
.director-enabled :is(.node-inspector-sheet, .node-inspector-popup) { visibility: hidden; pointer-events: none; }
|
|
|
|
/* Keep the larger voice library within the existing compact sound menu. */
|
|
.sound-panel { max-height: calc(100dvh - 140px); overflow-y: auto; }
|
|
.scene-control { grid-template-columns: auto minmax(0, 1fr); }
|
|
.scene-control select { width: 100%; min-width: 0; }
|
|
.sound-panel .sound-description { display: block; min-height: 2.8em; line-height: 1.4; }
|