Files
l5y b5d9249918 web: change tiles to carto (#831)
* web: change tiles to carto

* web: change tiles to carto
2026-06-28 20:59:52 +02:00

2591 lines
46 KiB
CSS

/*
* Copyright © 2025-26 l5yth & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* The app is dark-only. These tokens are the (formerly ``body.dark``) dark
* palette, promoted to ``:root`` so every element — including ``html`` itself —
* resolves them; the previous light palette and its always-overridden
* ``body.dark`` token block were removed with the light theme.
*/
:root {
--bg: #0e1418;
--bg2: #0e141b;
--fg: #e6ebf0;
--muted: #9aa7b4;
--card: rgba(255, 255, 255, 0.04);
--line: rgba(255, 255, 255, 0.1);
--accent: #5fa8ff;
--row-alt: rgba(255, 255, 255, 0.05);
--table-head-bg: rgba(255, 255, 255, 0.06);
--table-head-fg: var(--fg);
--input-bg: #1e262c;
--input-fg: var(--fg);
--input-border: rgba(230, 235, 240, 0.24);
--input-placeholder: rgba(230, 235, 240, 0.55);
--control-accent: var(--accent);
--announcement-bg: #3b2500;
--announcement-fg: #ffd184;
--announcement-border: #a56a00;
--pad: 16px;
}
html {
color-scheme: dark;
}
html,
body {
background-color: var(--bg);
color: var(--fg);
transition: background-color 160ms ease, color 160ms ease;
}
a {
color: var(--accent);
}
hr {
border-color: var(--line);
}
.card,
.panel,
.box {
background: var(--card);
backdrop-filter: blur(2px);
border: 1px solid var(--line);
border-radius: 10px;
}
table {
border-collapse: collapse;
width: 100%;
border: 1px solid var(--line);
}
thead th {
background: var(--table-head-bg);
color: var(--table-head-fg);
text-align: left;
border-bottom: 1px solid var(--line);
padding: 8px;
}
tbody td {
padding: 8px;
border-bottom: 1px solid var(--line);
}
tbody tr:nth-child(even) td {
background: var(--row-alt);
}
.leaflet-container {
background: transparent !important;
color: var(--fg);
}
.neighbor-connection-line {
cursor: pointer;
}
.trace-connection-line {
stroke-dasharray: 6 6;
}
/*
* Spider leader line drawn from each co-located marker back to its shared
* coordinate. Stroke uses the foreground token so the line stays visible
* against both light and dark basemaps; opacity keeps it subdued enough to
* read as a hint rather than a primary connection. `pointer-events: none`
* matches the `interactive: false` Leaflet option so the line never
* intercepts clicks intended for the marker beneath it.
*/
.colocated-spider-line {
stroke: var(--fg);
stroke-width: 1;
stroke-opacity: 0.5;
stroke-dasharray: 1 1;
fill: none;
pointer-events: none;
}
/*
* Asterisk + count badge that represents a collapsed (or expanded-but-still-
* present) co-located node group. The Leaflet ``L.divIcon`` host element
* receives the ``.colocated-spider-hub`` class; the inner ``__glyph`` span
* carries the visible circle so the cursor can still flip back to the
* default state outside the badge. Theming is delegated to the existing
* ``--fg`` / ``--bg`` tokens so the badge blends with both light and dark
* basemaps.
*/
.colocated-spider-hub {
cursor: pointer;
background: transparent;
border: 0;
}
.colocated-spider-hub__glyph {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--bg);
color: var(--fg);
border: 1px solid var(--fg);
font-size: 10px;
font-weight: 600;
line-height: 1;
user-select: none;
}
.leaflet-tooltip.trace-tooltip {
background: var(--bg2);
color: var(--fg);
border: 1px solid var(--line);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
padding: 6px 8px;
font-size: 13px;
}
.trace-tooltip__content {
display: inline-flex;
align-items: center;
gap: 6px;
}
.trace-tooltip__arrow {
opacity: 0.7;
}
.neighbor-snr {
margin-left: 4px;
color: var(--muted);
font-size: 12px;
}
body {
font-family: system-ui, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
margin: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.page-shell {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-height: 100vh;
padding: var(--pad);
padding-bottom: calc(96px + var(--pad));
gap: var(--pad);
}
.page-shell--full-screen {
padding: 0;
gap: var(--pad);
}
.page-shell--full-screen .site-header,
.page-shell--full-screen .app-footer {
padding-left: var(--pad);
padding-right: var(--pad);
}
.page-shell--full-screen .site-header {
padding-top: var(--pad);
}
.page-shell--full-screen .app-footer {
padding-top: var(--pad);
padding-bottom: var(--pad);
}
.page-main {
flex: 1 1 auto;
display: flex;
flex-direction: column;
gap: var(--pad);
min-height: 0;
}
.page-main--dashboard {
padding: 0;
}
.page-main--full-screen {
padding: 0;
gap: var(--pad);
}
h1 {
margin: 0;
}
.site-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
gap: 16px;
min-height: 56px;
padding: 4px 0;
margin-bottom: 8px;
}
.site-header__left,
.site-header__right {
display: flex;
align-items: center;
gap: 12px;
}
.site-header__left {
flex: 1 1 auto;
min-width: 0;
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
.site-header__right {
flex: 0 0 auto;
margin-left: auto;
}
.announcement-banner {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
height: 1.6em;
padding: 0 var(--pad);
border-radius: 999px;
background: var(--announcement-bg);
color: var(--announcement-fg);
border: 1px solid var(--announcement-border);
box-sizing: border-box;
overflow: hidden;
}
.announcement-banner__content {
margin: 0;
line-height: 1.6;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.site-title {
display: inline-flex;
align-items: center;
gap: 12px;
min-width: 0;
}
.site-title__link {
display: inline-flex;
align-items: center;
gap: inherit;
color: inherit;
text-decoration: none;
min-width: 0;
}
.site-title-text {
min-width: 0;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.site-title img {
width: 36px;
height: 36px;
display: block;
border-radius: 12px;
}
.site-nav {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.site-nav__link {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 999px;
color: var(--fg);
text-decoration: none;
border: 1px solid transparent;
font-size: 14px;
}
.site-nav__link:hover {
background: var(--card);
}
.site-nav__link.is-active {
border-color: var(--accent);
color: var(--accent);
background: transparent;
font-weight: 600;
}
.site-nav__link:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Compound selector required: .icon-button { display: inline-flex } (below) shares
the same specificity and appears later in the source, so it would otherwise win
and keep the toggle permanently visible above the 900px breakpoint. */
.icon-button.menu-toggle {
display: none;
}
.menu-toggle:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.mobile-menu {
position: fixed;
inset: 0;
z-index: 1400;
display: flex;
justify-content: flex-end;
pointer-events: none;
}
.mobile-menu[hidden] {
display: none;
}
.mobile-menu__backdrop {
flex: 1 1 auto;
background: rgba(0, 0, 0, 0.4);
opacity: 0;
transition: opacity 200ms ease;
}
.mobile-menu__panel {
width: min(320px, 86vw);
background: var(--bg2);
color: var(--fg);
padding: 16px;
display: flex;
flex-direction: column;
gap: 16px;
height: 100%;
overflow-y: auto;
transform: translateX(100%);
transition: transform 220ms ease;
box-shadow: -12px 0 32px rgba(0, 0, 0, 0.3);
}
.mobile-menu__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.mobile-menu__title {
margin: 0;
font-size: 16px;
}
.mobile-menu__close:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.mobile-nav {
display: flex;
flex-direction: column;
gap: 8px;
}
.mobile-nav__link {
display: inline-flex;
align-items: center;
padding: 8px 10px;
border-radius: 10px;
color: var(--fg);
text-decoration: none;
border: 1px solid transparent;
}
.mobile-nav__link.is-active {
border-color: var(--accent);
color: var(--accent);
font-weight: 600;
}
.mobile-nav__link:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.mobile-menu.is-open {
pointer-events: auto;
}
.mobile-menu.is-open .mobile-menu__backdrop {
opacity: 1;
}
.mobile-menu.is-open .mobile-menu__panel {
transform: translateX(0);
}
.menu-open {
overflow: hidden;
}
.section-link {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
border-radius: 999px;
border: 1px solid var(--line);
color: var(--fg);
text-decoration: none;
font-size: 14px;
}
.section-link:hover {
border-color: var(--accent);
color: var(--accent);
}
.section-link:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.meta {
color: #555;
margin-bottom: 12px;
}
.instance-selector {
display: flex;
align-items: center;
}
.instance-select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-color: var(--input-bg);
color: var(--input-fg);
border: 1px solid var(--input-border);
border-radius: 8px;
padding: 6px 32px 6px 12px;
font-size: 14px;
line-height: 1.4;
min-width: 220px;
background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
linear-gradient(135deg, var(--muted) 50%, transparent 50%);
background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 12px) calc(50% - 4px);
background-size: 6px 6px, 6px 6px;
background-repeat: no-repeat;
}
.instance-select:focus {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@media (max-width: 900px) {
.site-header {
margin-bottom: 4px;
}
.site-header__left {
flex-wrap: nowrap;
}
.site-nav {
display: none;
}
.icon-button.menu-toggle {
display: inline-flex;
}
.instance-selector {
flex: 0 1 auto;
}
.instance-select {
width: 100%;
}
.instance-select {
min-width: 0;
}
}
.pill {
display: inline-block;
padding: 2px 8px;
border-radius: 999px;
background: #eee;
font-size: 12px;
}
#map {
position: relative;
width: 100%;
height: 60vh;
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
display: block;
}
.map-panel.is-fullscreen,
.map-panel:fullscreen,
.map-panel:-webkit-full-screen,
.map-panel:-moz-full-screen,
.map-panel:-ms-fullscreen,
#map.is-fullscreen,
#map:fullscreen,
#map:-webkit-full-screen,
#map:-moz-full-screen,
#map:-ms-fullscreen {
width: 100vw;
height: 100vh;
min-width: 100vw;
min-height: 100vh;
max-width: 100vw;
max-height: 100vh;
margin: 0;
border: none;
border-radius: 0;
background: #000;
}
.map-panel.is-fullscreen,
.map-panel:fullscreen,
.map-panel:-webkit-full-screen,
.map-panel:-moz-full-screen,
.map-panel:-ms-fullscreen {
display: block;
}
.map-panel.is-fullscreen #map,
.map-panel:fullscreen #map,
.map-panel:-webkit-full-screen #map,
.map-panel:-moz-full-screen #map,
.map-panel:-ms-fullscreen #map,
#map.is-fullscreen,
#map:fullscreen,
#map:-webkit-full-screen,
#map:-moz-full-screen,
#map:-ms-fullscreen {
height: 100vh !important;
width: 100vw !important;
min-height: 100vh;
min-width: 100vw;
max-height: 100vh;
max-width: 100vw;
border: none;
border-radius: 0;
flex: none;
}
.map-panel.is-fullscreen .map-toolbar,
.map-panel:fullscreen .map-toolbar,
.map-panel:-webkit-full-screen .map-toolbar,
.map-panel:-moz-full-screen .map-toolbar,
.map-panel:-ms-fullscreen .map-toolbar {
top: 16px;
right: 16px;
}
#map[data-map-status="placeholder"] {
background: repeating-linear-gradient(
135deg,
rgba(0, 0, 0, 0.02),
rgba(0, 0, 0, 0.02) 12px,
rgba(0, 0, 0, 0.04) 12px,
rgba(0, 0, 0, 0.04) 24px
);
}
#map .map-placeholder-message {
text-align: center;
color: #555;
font-size: 14px;
line-height: 1.5;
padding: 0 16px;
}
#map .map-placeholder-message strong {
display: block;
margin-bottom: 6px;
font-size: 16px;
}
#map .map-placeholder-message span {
display: block;
margin-top: 4px;
}
body.dark #map .map-placeholder-message {
color: #ddd;
}
#map .map-status-message {
position: absolute;
top: 12px;
left: 50%;
transform: translateX(-50%);
padding: 6px 12px;
border-radius: 999px;
font-size: 12px;
line-height: 1.2;
backdrop-filter: blur(6px);
pointer-events: none;
border: 1px solid rgba(0, 0, 0, 0.15);
background: rgba(255, 255, 255, 0.9);
color: #333;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
z-index: 1200;
}
body.dark #map[data-map-status="placeholder"] {
background: repeating-linear-gradient(
135deg,
rgba(255, 255, 255, 0.02),
rgba(255, 255, 255, 0.02) 12px,
rgba(255, 255, 255, 0.06) 12px,
rgba(255, 255, 255, 0.06) 24px
);
}
body.dark #map .map-status-message {
border-color: rgba(255, 255, 255, 0.16);
background: rgba(0, 0, 0, 0.65);
color: #eee;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
body.dark .map-toolbar button {
background: rgba(36, 36, 36, 0.88);
color: #f1f1f1;
border: 1px solid rgba(255, 255, 255, 0.25);
}
body.dark .map-toolbar button:hover {
background: rgba(52, 52, 52, 0.9);
}
table {
border-collapse: collapse;
width: 100%;
margin: 0;
}
th,
td {
padding: 4px 6px;
text-align: left;
}
th {
position: sticky;
top: 0;
background: #fafafa;
}
.mono {
font-family: ui-monospace, Menlo, Consolas, monospace;
}
.row {
display: flex;
gap: var(--pad);
align-items: center;
justify-content: space-between;
}
.map-row {
display: flex;
gap: var(--pad);
align-items: stretch;
}
.full-screen-section {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-height: 0;
width: 100%;
}
.map-panel--full {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-height: 0;
height: 100%;
}
.map-panel--full #map {
flex: 1 1 auto;
height: 100%;
min-height: 0;
}
.full-screen-section--map {
flex: 1 1 auto;
min-height: 0;
align-items: stretch;
}
.full-screen-section--map .map-panel {
flex: 1 1 auto;
}
.view-map .page-main--full-screen {
gap: 0;
}
.view-nodes .page-main--full-screen {
gap: 0;
}
.view-map .full-screen-section--map {
flex: 1 1 auto;
display: flex;
}
.view-map .full-screen-section--map .map-panel {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-height: 0;
}
.view-map .full-screen-section--map .map-panel #map {
flex: 1 1 auto;
min-height: 0;
}
.view-nodes .full-screen-section--nodes {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-height: 0;
}
body.view-map .map-panel--full #map {
height: 100%;
min-height: 100%;
}
.chat-panel--full {
flex: 1 1 auto;
max-width: 100%;
width: 100%;
height: 100%;
min-height: 0;
max-height: 100%;
overflow: hidden;
}
.full-screen-section--chat .chat-panel {
height: 100%;
}
body.view-chat {
height: 100vh;
overflow: hidden;
}
body.view-chat .page-shell {
height: 100vh;
min-height: 0;
overflow: hidden;
}
.view-chat .page-main--full-screen {
gap: 0;
}
.view-chat .full-screen-section--chat {
flex: 1 1 auto;
display: flex;
min-height: 0;
}
.view-chat .full-screen-section--chat .chat-panel {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-height: 0;
}
.chat-panel--disabled {
align-items: center;
justify-content: center;
text-align: center;
padding: var(--pad) calc(var(--pad) * 2);
min-height: 50vh;
}
.chat-disabled-message {
font-size: 1rem;
color: var(--muted);
}
.nodes-table-wrapper {
width: 100%;
}
.map-panel {
position: relative;
flex: 1 1 0%;
min-width: 0;
display: block;
}
.map-toolbar {
position: absolute;
top: 12px;
right: 12px;
display: flex;
gap: 8px;
z-index: 1300;
pointer-events: none;
}
.map-toolbar button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 12px;
border-radius: 999px;
border: 1px solid rgba(0, 0, 0, 0.2);
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
font-size: 13px;
line-height: 1.2;
transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease,
box-shadow 160ms ease;
pointer-events: auto;
}
.map-toolbar button:hover {
background: rgba(245, 245, 245, 0.95);
}
.map-toolbar button svg {
width: 18px;
height: 18px;
display: block;
fill: currentColor;
}
#mapFullscreenToggle .icon-fullscreen-exit {
display: none;
}
#mapFullscreenToggle[aria-pressed='true'] .icon-fullscreen-exit {
display: block;
}
#mapFullscreenToggle[aria-pressed='true'] .icon-fullscreen-enter {
display: none;
}
.chat-panel {
flex: 0 0 33%;
max-width: 33%;
height: 60vh;
border: 1px solid #ddd;
border-radius: 8px;
display: flex;
flex-direction: column;
overflow: hidden;
font-size: 12px;
background: var(--bg2);
}
.chat-panel.chat-panel--full {
flex: 1 1 auto;
max-width: 100%;
width: 100%;
height: 100%;
min-height: 0;
}
/* Variant used inside the node detail page Messages section: full width,
bounded height so the surrounding section does not turn into a single
massive scroll. The 60vh default of ``.chat-panel`` works for the
dashboard sidebar but is too tall when stacked under telemetry charts. */
.chat-panel.chat-panel--node-detail {
flex: 1 1 auto;
max-width: 100%;
width: 100%;
height: auto;
max-height: 60vh;
min-height: 0;
}
/* Wrapper spans the full width and owns the bottom border so the arrow
buttons are visually part of the tab bar. */
.chat-tablist-wrapper {
display: flex;
align-items: stretch;
overflow: hidden;
border-bottom: 1px solid var(--line);
}
.chat-tablist {
display: flex;
gap: 4px;
padding: 6px 6px 0;
flex: 1;
overflow-x: auto;
scroll-behavior: smooth;
scrollbar-width: none; /* Firefox */
}
.chat-tablist::-webkit-scrollbar {
display: none; /* Chrome / Safari */
}
.chat-tab {
flex: none; /* natural content width — no equal-stretch */
white-space: nowrap;
border: none;
background: transparent;
color: inherit;
padding: 6px 8px;
border-radius: 6px 6px 0 0;
cursor: pointer;
font-size: 12px;
transition: background-color 120ms ease, color 120ms ease;
}
/* Scroll arrow buttons flanking the tab list */
.chat-tab-scroll-btn {
flex: none;
display: flex;
align-items: center;
justify-content: center;
width: 20px;
background: var(--bg2);
border: none;
cursor: pointer;
color: var(--text-muted, #666);
font-size: 10px;
padding: 0;
z-index: 1;
transition: background-color 120ms ease;
}
.chat-tab-scroll-btn:hover {
background: rgba(0, 0, 0, 0.08);
}
.chat-tab-scroll-btn[hidden] {
display: none;
}
/* Channel dropdown selector (SPEC LV8): a compact jump-to-channel control at the
end of the tab bar. Mirrors the federation/region `.instance-select` chrome
(theme tokens + a CSS-gradient triangle) so the two dropdowns match, sized down
to sit beside the channel tabs. */
.chat-tab-select {
flex: 0 0 auto;
align-self: center;
margin-left: 0.5rem;
max-width: 11rem;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-color: var(--input-bg);
color: var(--input-fg);
border: 1px solid var(--input-border);
border-radius: 8px;
padding: 4px 26px 4px 10px;
font-size: 13px;
line-height: 1.4;
background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
linear-gradient(135deg, var(--muted) 50%, transparent 50%);
background-position: calc(100% - 14px) calc(50% - 3px), calc(100% - 9px) calc(50% - 3px);
background-size: 5px 5px, 5px 5px;
background-repeat: no-repeat;
}
.chat-tab-select:focus {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.chat-tab:is(:focus-visible, :hover) {
background: rgba(0, 0, 0, 0.06);
}
.chat-tab.is-active {
background: var(--bg2);
color: var(--accent);
border-bottom: 2px solid var(--accent);
}
.chat-tabpanels {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
}
.chat-tabpanel {
flex: 1 1 auto;
padding: 6px;
overflow-y: auto;
min-height: 0;
}
.chat-empty {
margin: 12px 0;
color: var(--muted);
font-style: italic;
}
.chat-entry-node {
font-family: ui-monospace, Menlo, Consolas, monospace;
color: #555;
}
.chat-entry-copy {
font-style: normal;
}
.chat-entry-reply {
color: var(--muted);
font-style: italic;
margin-right: 4px;
}
.chat-entry-msg {
font-family: ui-monospace, Menlo, Consolas, monospace;
}
.chat-entry-date {
font-family: ui-monospace, Menlo, Consolas, monospace;
font-weight: bold;
}
.short-name {
display: inline-block;
border-radius: 4px;
padding: 0 2px;
}
.short-name[data-node-info] {
cursor: pointer;
}
.short-info-overlay {
position: absolute;
background: #fff;
color: #111;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
padding: 8px 10px 10px;
font-size: 11px;
line-height: 1.4;
min-width: 200px;
max-width: 240px;
z-index: 20000;
}
.short-info-overlay[hidden] {
display: none;
}
.short-info-overlay .short-info-close {
position: absolute;
top: 4px;
right: 4px;
border: none;
background: transparent;
font-size: 14px;
line-height: 1;
padding: 2px;
border-radius: 4px;
cursor: pointer;
color: inherit;
}
.short-info-overlay .short-info-close:hover {
background: rgba(0, 0, 0, 0.08);
}
.short-info-sats {
display: inline-flex;
align-items: center;
gap: 4px;
font-weight: inherit;
color: inherit;
padding: 0;
margin: 0;
vertical-align: middle;
}
.short-info-sats__icon {
display: inline-flex;
align-items: center;
justify-content: center;
color: currentColor;
}
.short-info-sats__glyph {
display: block;
filter: grayscale(1);
}
body.dark .short-info-sats__glyph {
filter: invert(1) grayscale(1);
}
.short-info-sats__count {
font-family: inherit;
font-size: inherit;
letter-spacing: 0.1px;
}
.node-detail-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.65);
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
z-index: 15000;
}
.node-detail-overlay[hidden] {
display: none;
}
.node-detail-overlay__dialog {
width: 90vw;
height: 90vh;
max-width: 1400px;
max-height: 960px;
background: var(--bg2);
color: var(--fg);
border-radius: 16px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
padding: 32px 24px 24px;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
}
.node-detail-overlay__close {
position: absolute;
top: 12px;
right: 12px;
border: none;
background: rgba(0, 0, 0, 0.05);
color: inherit;
font-size: 18px;
width: 32px;
height: 32px;
border-radius: 999px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
line-height: 1;
}
.node-detail-overlay__close:hover {
background: rgba(0, 0, 0, 0.12);
}
.node-detail-overlay__content {
flex: 1;
overflow-y: auto;
padding-right: 6px;
}
.node-detail-overlay__status {
margin: 0;
font-size: 1rem;
color: var(--muted);
}
.node-detail-overlay__status--error {
color: #c62828;
}
body.dark .node-detail-overlay__dialog {
background: var(--bg2);
color: var(--fg);
}
body.dark .node-detail-overlay__close {
background: rgba(255, 255, 255, 0.08);
}
body.dark .node-detail-overlay__close:hover {
background: rgba(255, 255, 255, 0.18);
}
.charts-page {
padding: 0 0 var(--pad);
max-width: 1400px;
margin: 0 auto;
width: 100%;
}
.charts-page__intro {
padding: 0 4px 12px;
}
.charts-page__intro h2 {
margin: 0 0 6px;
font-size: 1.6rem;
}
.charts-page__intro p {
margin: 0;
color: var(--muted);
}
.charts-page__content {
min-height: 320px;
}
.charts-page__status {
margin: 18px 0;
font-size: 1rem;
color: var(--muted);
}
.charts-page__status--error {
color: #c62828;
}
.node-detail {
width: 100%;
margin: 0;
padding: 24px 0 40px;
}
.node-detail__header {
margin-bottom: 12px;
padding: 0 20px;
}
.node-detail__title {
display: flex;
align-items: baseline;
gap: 10px;
flex-wrap: wrap;
font-size: 1.4rem;
}
.node-detail__badge {
font-family: ui-monospace, Menlo, Consolas, monospace;
font-size: 1.2rem;
}
.node-detail__table {
margin: 20px 0 32px;
overflow-x: auto;
}
.node-detail__table table {
width: 100%;
}
.node-detail__charts {
padding: 0 20px;
margin: 12px 0 24px;
}
.node-detail__charts-grid {
display: grid;
gap: 24px;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr));
}
.node-detail__chart {
border: 1px solid var(--line);
border-radius: 10px;
background: var(--card);
padding: 18px 20px 20px;
display: flex;
flex-direction: column;
gap: 12px;
}
.node-detail__chart-header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
font-size: 1rem;
margin: 0;
}
.node-detail__chart-header h4 {
margin: 0;
font-size: 1.2rem;
}
.node-detail__chart-header span {
color: var(--muted);
font-size: 1rem;
}
.node-detail__chart svg {
width: 100%;
height: auto;
max-height: 420px;
}
.node-detail__chart-axis line {
stroke: var(--line);
stroke-width: 1;
}
.node-detail__chart-axis text,
.node-detail__chart-axis-label {
fill: var(--muted);
font-size: 0.95rem;
}
.node-detail__chart-grid-line {
stroke: rgba(12, 15, 18, 0.08);
stroke-width: 1;
}
body.dark .node-detail__chart-grid-line {
stroke: rgba(255, 255, 255, 0.15);
}
.node-detail__chart-point {
stroke: none;
}
.node-detail__chart-legend {
display: flex;
flex-wrap: wrap;
gap: 12px 18px;
}
.node-detail__chart-legend-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 1rem;
}
.node-detail__chart-legend-swatch {
width: 14px;
height: 14px;
border-radius: 999px;
flex: 0 0 auto;
}
.node-detail__chart-legend-text {
display: flex;
flex-direction: column;
line-height: 1.2;
}
.node-detail__chart-legend-text small {
color: var(--muted);
font-size: 0.9rem;
}
.node-detail__identifier {
font-family: ui-monospace, Menlo, Consolas, monospace;
color: var(--muted);
}
.node-long-link {
color: inherit;
text-decoration: underline;
text-decoration-thickness: 1px;
}
.node-long-link:focus,
.node-long-link:hover {
text-decoration-thickness: 2px;
}
.node-detail__status,
.node-detail__error,
.node-detail__noscript {
margin: 16px 0;
padding: 0 20px;
}
.node-detail__error {
color: #b00020;
}
.node-detail__content {
display: grid;
gap: 24px;
padding: 0 20px;
}
.node-detail__neighbors-grid {
display: grid;
gap: 16px;
}
@media (min-width: 720px) {
.node-detail__neighbors-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.node-detail__neighbors-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.node-detail__neighbors-title {
margin: 0;
font-size: 1rem;
font-weight: 600;
}
.node-detail__neighbors-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 6px;
}
.node-detail__neighbors-list li {
display: flex;
align-items: center;
gap: 10px;
}
.node-detail__neighbor-snr {
font-family: ui-monospace, Menlo, Consolas, monospace;
color: var(--muted);
font-size: 0.95rem;
}
.node-detail__trace-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 6px;
}
.node-detail__trace {
display: flex;
align-items: center;
gap: 10px;
}
.node-detail__trace-arrow {
color: var(--muted);
font-size: 0.95rem;
}
.node-detail__section h3 {
margin: 0 0 10px;
font-size: 1.1rem;
}
.node-detail__list {
margin: 0;
padding: 0;
list-style: none;
}
.node-detail__row {
display: grid;
grid-template-columns: minmax(140px, 200px) 1fr;
gap: 8px;
margin-bottom: 6px;
}
.node-detail__row dt {
font-weight: 600;
color: var(--muted);
margin: 0;
}
.node-detail__row dd {
margin: 0;
font-family: ui-monospace, Menlo, Consolas, monospace;
}
.node-detail__list li {
margin-bottom: 4px;
font-family: ui-monospace, Menlo, Consolas, monospace;
}
.short-info-content {
margin: 0;
}
.meta-controls {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 0 8px;
}
.meta-controls .filter-input {
flex: 1 1 auto;
display: inline-flex;
align-items: center;
position: relative;
}
.filter-input input[type="text"] {
flex: 1 1 auto;
width: 100%;
padding-right: 28px;
}
.filter-clear {
position: absolute;
right: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
border: none;
background: transparent;
color: var(--muted);
font-size: 16px;
line-height: 1;
border-radius: 50%;
cursor: pointer;
padding: 0;
}
.filter-clear:hover {
background: rgba(0, 0, 0, 0.06);
}
body.dark .filter-clear:hover {
background: rgba(255, 255, 255, 0.12);
}
.filter-clear:focus-visible {
outline: 2px solid #4a90e2;
outline-offset: 2px;
}
button:not(.chat-tab):not(.sort-button) {
padding: 6px 10px;
border: 1px solid #ccc;
background: #fff;
border-radius: 6px;
cursor: pointer;
color: var(--fg);
}
.icon-button {
width: 36px;
height: 36px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.protocol-toggle-btn {
width: 32px;
height: 32px;
border: 1px solid #ccc;
background: #fff;
border-radius: 6px;
cursor: pointer;
}
.protocol-toggle-btn[aria-pressed="true"] {
background: #f0f0f0;
}
.protocol-toggle-icon {
display: block;
transition: filter 0.15s ease;
}
button:not(.chat-tab):not(.sort-button):hover {
background: #f6f6f6;
}
.sort-button {
padding: 0;
border: none;
background: none;
color: inherit;
font: inherit;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 4px;
}
.sort-button:hover {
background: none;
}
.sort-button:focus-visible {
outline: 2px solid #4a90e2;
outline-offset: 2px;
}
.sort-header {
display: inline-flex;
align-items: center;
gap: 4px;
cursor: pointer;
user-select: none;
}
.sort-header:focus-visible {
outline: 2px solid #4a90e2;
outline-offset: 2px;
}
.sort-indicator {
font-size: 0.75em;
opacity: 0.6;
}
th[aria-sort] .sort-indicator {
opacity: 1;
}
label {
font-size: 14px;
color: #333;
}
input[type="text"] {
padding: 6px 10px;
border: 1px solid var(--input-border);
border-radius: 6px;
background: var(--input-bg);
color: var(--input-fg);
transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease,
box-shadow 160ms ease;
}
input[type="text"]::placeholder {
color: var(--input-placeholder);
}
input[type="text"]:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
border-color: var(--accent);
}
input[type="checkbox"],
input[type="radio"] {
accent-color: var(--control-accent);
transition: accent-color 160ms ease, background-color 160ms ease;
}
/* Wrapper that places the toggle button to the LEFT of the legend panel. */
.legend-outer {
display: flex;
flex-direction: row;
align-items: flex-end;
gap: 4px;
/* Reset Leaflet control chrome so only the inner elements have styling. */
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
}
.legend {
position: relative;
background: #fff;
color: var(--fg);
padding: 8px 10px 10px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 12px;
line-height: 18px;
min-width: 160px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.legend-header {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 4px;
margin-bottom: 6px;
font-weight: 600;
}
.legend-title {
font-size: 13px;
}
.legend-items {
display: flex;
flex-direction: column;
gap: 2px;
}
.legend-items--columns {
flex-direction: row;
align-items: stretch;
gap: 8px;
}
.legend-column {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.legend-column--bottom {
justify-content: flex-end;
}
.legend-protocol-count {
font-weight: 400;
opacity: 0.7;
}
.legend-column-header {
display: flex;
align-items: center;
gap: 4px;
font-weight: 600;
font-size: 11px;
padding: 2px 6px 4px;
color: var(--fg);
}
.legend-item {
display: flex;
align-items: center;
gap: 6px;
font: inherit;
color: inherit;
background: transparent;
border: 1px solid transparent;
border-radius: 4px;
padding: 3px 6px;
cursor: pointer;
width: 100%;
justify-content: flex-start;
text-align: left;
}
.legend-item:hover {
background: rgba(0, 0, 0, 0.05);
}
.legend-item:focus-visible {
outline: 2px solid #4a90e2;
outline-offset: 2px;
}
.legend-item[aria-pressed="true"] {
border-color: #2a6bc5;
background: rgba(58, 123, 213, 0.32);
color: #0e3a8a;
font-weight: 600;
}
.legend-swatch {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 2px;
}
.protocol-icon {
display: inline-block;
vertical-align: middle;
margin-right: 2px;
}
.nav-protocol-icon {
margin-right: 3px;
}
.legend-hidden {
display: none !important;
}
.legend-toggle {
margin-top: 8px;
}
.legend-toggle-button {
font-size: 12px;
color: var(--fg);
}
#map .leaflet-tile-pane,
#map .leaflet-layer,
#map .leaflet-tile.map-tiles {
opacity: 0.75;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
background: #fff;
color: #333;
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}
#nodes {
font-size: 12px;
}
.nodes-col--protocol {
width: 20px;
min-width: 20px;
text-align: center;
padding-inline: 4px;
}
.app-footer {
position: fixed;
inset-block-end: 0;
inset-inline: 0;
box-sizing: border-box;
background: #fafafa;
border-top: 1px solid #ddd;
font-size: 12px;
z-index: 4100;
}
.app-footer .footer-content {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 6px;
margin: 0 auto;
width: 100%;
max-width: 960px;
padding: 6px var(--pad);
text-align: center;
box-sizing: border-box;
}
.app-footer .footer-separator {
margin: 0 4px;
}
.app-footer .footer-links {
display: inline-flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
justify-content: center;
}
.app-footer .footer-brand {
font-weight: 600;
}
.app-footer a {
color: inherit;
}
/* Slim footer variant used on Charts and Federation pages — floats like the
dashboard footer but with a transparent background and no border. */
.app-footer--slim {
background: transparent;
border-top: none;
}
/* Cancel the extra block padding that .page-shell--full-screen injects on
.app-footer — slim footers use the same visual height as the dashboard. */
.page-shell--full-screen .app-footer--slim {
padding-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
}
.meta-active-nodes {
font-size: 0.85em;
color: var(--muted);
white-space: nowrap;
}
@media (max-width: 600px) {
.app-footer .footer-content {
padding: 10px 12px;
justify-content: center;
gap: 4px 8px;
}
.app-footer .footer-links {
flex-direction: column;
gap: 4px;
}
.app-footer .footer-separator {
display: none;
}
}
@media (max-width: 1024px) {
.row {
flex-direction: column;
align-items: stretch;
gap: var(--pad);
}
.site-title img {
width: 44px;
height: 44px;
}
.map-row {
flex-direction: column;
}
.meta-controls {
flex-wrap: wrap;
gap: 8px;
}
.meta-controls .filter-input {
flex: 1 1 100%;
order: -1;
}
#map {
order: 1;
width: 100%;
max-width: 100%;
height: 50vh;
}
.chat-panel {
order: 2;
flex: none;
max-width: 100%;
height: 30vh;
}
.legend {
max-width: min(240px, 80vw);
}
}
@media (max-width: 1679px) {
.nodes-col--node-id,
.nodes-col--frequency,
.nodes-col--modem-preset {
display: none;
}
}
@media (max-width: 1559px) {
.nodes-col--temperature,
.nodes-col--humidity,
.nodes-col--pressure {
display: none;
}
}
@media (max-width: 1319px) {
.nodes-col--latitude,
.nodes-col--longitude,
.nodes-col--last-position {
display: none;
}
}
@media (max-width: 1109px) {
.nodes-col--voltage,
.nodes-col--air-util-tx,
.nodes-col--altitude {
display: none;
}
}
@media (max-width: 899px) {
.nodes-col--uptime,
.nodes-col--frequency,
.nodes-col--modem-preset {
display: none;
}
}
@media (max-width: 659px) {
.nodes-col--battery,
.nodes-col--channel-util,
.nodes-col--hw-model {
display: none;
}
}
body.dark .pill {
background: #444;
}
body.dark #map {
border-color: #444;
}
body.dark .chat-panel {
border-color: #444;
background: #222;
color: #eee;
}
body.dark .chat-tablist-wrapper {
border-bottom-color: rgba(255, 255, 255, 0.18);
}
body.dark .chat-tab-scroll-btn {
background: #1a1a1a;
color: #aaa;
}
body.dark .chat-tab-scroll-btn:hover {
background: rgba(255, 255, 255, 0.1);
}
body.dark .chat-tab {
color: #ddd;
background: transparent;
border-color: transparent;
}
body.dark .chat-tab:is(:focus-visible, :hover) {
background: rgba(255, 255, 255, 0.1);
}
body.dark .chat-tab.is-active {
background: #222;
color: var(--accent);
border-bottom-color: var(--accent);
}
body.dark .chat-empty {
color: #888;
}
body.dark th {
background: #222;
}
body.dark button:not(.chat-tab):not(.sort-button) {
background: #333;
border-color: #444;
color: #eee;
}
body.dark button:not(.chat-tab):not(.sort-button):hover {
background: #444;
}
body.dark .protocol-toggle-btn {
background: #333;
border-color: #444;
}
body.dark .protocol-toggle-btn:hover {
background: #444;
}
body.dark .protocol-toggle-btn[aria-pressed="true"] {
background: #2a2a2a;
}
body.dark .sort-button {
background: none;
border: none;
color: inherit;
}
body.dark .sort-header {
color: inherit;
}
body.dark .sort-button:hover {
background: none;
}
body.dark label {
color: #ddd;
}
body.dark .legend {
background: #333;
border-color: #444;
color: #eee;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
body.dark .legend-toggle-button {
background: #333;
border-color: #444;
color: #eee;
}
body.dark .legend-toggle-button:hover {
background: #444;
}
body.dark .legend-item:hover {
background: rgba(255, 255, 255, 0.1);
}
body.dark .legend-item[aria-pressed="true"] {
border-color: #70b3f0;
background: rgba(91, 155, 213, 0.48);
color: #c8e8ff;
font-weight: 600;
}
body.dark .leaflet-popup-content-wrapper,
body.dark .leaflet-popup-tip {
background: #333;
color: #eee;
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.8);
}
body.dark footer {
background: #222;
border-top-color: #444;
color: #eee;
}
body.dark a {
color: #9bd;
}
body.dark .chat-entry-node {
color: #777;
}
body.dark .chat-entry-msg {
color: #bbb;
}
body.dark .chat-entry-reply {
color: #999;
}
body.dark .short-name {
color: #555;
}
body.dark .chat-entry-date {
color: #bbb;
}
body.dark .short-info-overlay {
background: #1c1c1c;
border-color: #444;
color: #eee;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
body.dark .short-info-overlay .short-info-close:hover {
background: rgba(255, 255, 255, 0.1);
}
/* ===========================
Federation Page Styles
=========================== */
.header-federation {
display: flex;
align-items: center;
gap: 12px;
}
.federation-link {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
text-decoration: none;
padding: 4px 8px;
border-radius: 8px;
transition: background-color 160ms ease, transform 160ms ease;
}
.federation-link:hover {
background: var(--hover-bg, rgba(255, 255, 255, 0.1));
transform: scale(1.1);
}
.federation-page {
padding: 0 0 var(--pad);
max-width: none;
margin: 0;
width: 100%;
}
.federation-page__content {
display: flex;
flex-direction: column;
gap: 24px;
}
.federation-page__map-row {
width: 100%;
height: 400px;
border-radius: 8px;
overflow: hidden;
border: 1px solid var(--border);
}
.federation-page__map-row .map-panel {
height: 100%;
}
.federation-page__map-row #map {
height: 100%;
width: 100%;
}
.instances-table-wrapper {
width: 100%;
overflow-x: auto;
}
#instances {
width: 100%;
border-collapse: collapse;
font-size: 0.95rem;
}
#instances th,
#instances td {
padding: 10px 12px;
text-align: left;
border-bottom: 1px solid var(--border);
}
#instances th {
font-weight: 600;
background: var(--table-header-bg, var(--surface));
position: sticky;
top: 0;
z-index: 1;
}
#instances tbody tr:hover {
background: var(--hover-bg, rgba(255, 255, 255, 0.05));
}
#instances a {
color: var(--accent);
text-decoration: none;
}
#instances a:hover {
text-decoration: underline;
}
.instances-col--name {
min-width: 140px;
}
.instances-col--domain {
min-width: 180px;
}
.instances-col--contact {
min-width: 160px;
white-space: pre-wrap;
word-break: break-word;
}
.instances-col--version {
min-width: 80px;
}
.instances-col--channel,
.instances-col--frequency {
min-width: 100px;
}
.instances-col--nodes {
min-width: 110px;
}
.instances-col--latitude,
.instances-col--longitude {
min-width: 100px;
}
.instances-col--last-update {
min-width: 90px;
}
@media (max-width: 900px) {
.federation-page__map-row {
height: 300px;
}
.header-federation {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.federation-link {
align-self: flex-end;
}
}
/* ── Static pages (markdown content) ────────────────────────── */
.static-page {
max-width: 800px;
margin: 0 auto;
padding: 32px 16px;
}
.static-page__content.markdown-body {
color: var(--fg);
line-height: 1.7;
font-size: 15px;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
color: var(--fg);
margin: 1.6em 0 0.6em;
font-weight: 600;
line-height: 1.3;
}
.markdown-body h1 { font-size: 1.6em; }
.markdown-body h2 { font-size: 1.3em; border-bottom: 1px solid var(--line); padding-bottom: 0.3em; }
.markdown-body h3 { font-size: 1.1em; }
.markdown-body h4 { font-size: 1em; }
.markdown-body h1:first-child,
.markdown-body h2:first-child,
.markdown-body h3:first-child {
margin-top: 0;
}
.markdown-body p {
margin: 0.8em 0;
}
.markdown-body a {
color: var(--accent);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 2px;
}
.markdown-body a:hover {
opacity: 0.85;
}
.markdown-body ul,
.markdown-body ol {
margin: 0.8em 0;
padding-left: 1.8em;
}
.markdown-body li {
margin: 0.3em 0;
}
.markdown-body blockquote {
margin: 1em 0;
padding: 0.5em 1em;
border-left: 3px solid var(--accent);
background: var(--bg2);
border-radius: 4px;
color: var(--muted);
}
.markdown-body blockquote p {
margin: 0.4em 0;
}
.markdown-body code {
font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
font-size: 0.9em;
background: var(--bg2);
padding: 0.15em 0.4em;
border-radius: 4px;
}
.markdown-body pre {
margin: 1em 0;
padding: 12px 16px;
background: var(--bg2);
border-radius: 6px;
overflow-x: auto;
}
.markdown-body pre code {
background: none;
padding: 0;
font-size: 0.85em;
line-height: 1.5;
}
.markdown-body table {
width: 100%;
border-collapse: collapse;
margin: 1em 0;
font-size: 0.9em;
}
.markdown-body th,
.markdown-body td {
padding: 8px 12px;
border: 1px solid var(--line);
text-align: left;
}
.markdown-body th {
background: var(--bg2);
font-weight: 600;
}
.markdown-body hr {
border: none;
border-top: 1px solid var(--line);
margin: 2em 0;
}
.markdown-body img {
max-width: 100%;
height: auto;
border-radius: 6px;
}
@media (max-width: 600px) {
.static-page {
padding: 20px 12px;
}
.markdown-body h1 { font-size: 1.3em; }
.markdown-body h2 { font-size: 1.15em; }
}
/* Live-update highlight (SPEC LV1/LV2/LV3, amends VF5): a ~1.2s fade applied to a
node row / chat message row when a live SSE update lands on it. It starts
white, fades through the element's role colour (the --flash-role-color custom
property stamped at render time) with increasing transparency, then clears.
An inset box-shadow overlay means there is no layout shift; each element runs
its own animation, so concurrent updates stack independently (LV2). */
@keyframes live-flash-fade {
0% { box-shadow: inset 0 0 0 100vmax rgba(255, 255, 255, 0.9); }
30% { box-shadow: inset 0 0 0 100vmax var(--flash-role-color, rgba(255, 255, 255, 0.55)); }
100% { box-shadow: inset 0 0 0 100vmax transparent; }
}
.live-flash {
animation: live-flash-fade 1.2s ease-out;
}
/* Map-marker wave (SPEC LV5): an expanding ring emitted from a flashed marker.
The ring grows from ~12px radius and fades toward the role colour over ~1.2s.
Rendered as a Leaflet divIcon, so it is a positioned overlay with no layout
shift; the marker layer removes it after the animation completes. */
@keyframes live-flash-wave {
0% { transform: scale(1); opacity: 0.85; }
100% { transform: scale(3.5); opacity: 0; }
}
.live-flash-wave {
width: 24px;
height: 24px;
border-radius: 50%;
border: 2px solid var(--flash-role-color, rgba(255, 255, 255, 0.85));
pointer-events: none;
animation: live-flash-wave 1.2s ease-out forwards;
}
/* Honor reduced-motion: data still updates live, only the highlight/wave is
withheld. */
@media (prefers-reduced-motion: reduce) {
.live-flash,
.live-flash-wave {
animation: none;
}
}