.traffic-marker { color: #42d0e9; background: transparent; border: 0; text-align: center; font: 24px/26px sans-serif; text-shadow: 0 1px 3px #071420; }
.traffic-marker span { display: grid; width: 30px; height: 30px; place-items: center; transform: rotate(var(--traffic-marker-rotation, 0deg)) scale(var(--traffic-marker-scale, 1)); transition: transform 120ms ease; }
.traffic-marker svg { width: var(--traffic-marker-size, 18px); height: var(--traffic-marker-size, 18px); }
.traffic-vessels { color: #d8ab63; }
.traffic-marker.is-hover span { --traffic-marker-scale: 1.14; }
.traffic-marker.is-selected span { --traffic-marker-scale: 1.28; filter: drop-shadow(0 0 4px currentColor); }
.traffic-marker.is-stale { opacity: .45; }
.traffic-detail { min-width: 180px; max-width: 280px; overflow-wrap: anywhere; }
.traffic-detail strong { display: block; font-size: 16px; margin-bottom: 12px; }
.traffic-detail p { margin: 6px 0; font-size: 12px; }
.leaflet-popup:has(.traffic-detail) .leaflet-popup-content-wrapper,
.leaflet-popup:has(.traffic-detail) .leaflet-popup-tip { background: #fff; color: #14232e; }
.traffic-shell { max-width: 1600px; margin: auto; padding: 28px; }
.traffic-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.traffic-heading h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.traffic-heading p { margin: 0; opacity: .75; }
.traffic-controls { display: flex; gap: 20px; flex-wrap: wrap; }
.traffic-controls .traffic-status { flex-basis: 100%; }
.traffic-heading > * { min-width: 0; }
.traffic-page .public-header { padding-inline: 20px; }
.traffic-page .public-nav { min-width: 0; gap: 8px; }
.traffic-page .public-nav a { min-width: 0; padding-inline: 8px; }
.traffic-controls label { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.traffic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; border: 1px solid #66778844; border-radius: 16px; overflow: hidden; }
#traffic-map { height: min(72vh, 850px); min-height: 430px; z-index: 0; }
.traffic-sidebar { padding: 24px; background: var(--surface, #13212c); }
html[data-theme="day"] .traffic-sidebar { background: #f3f7fa; color: #16232e; }
.traffic-sidebar h2 { font-size: 15px; }
.traffic-status { font-size: 12px; line-height: 1.7; min-height: 2em; margin-top: 12px; }
.pro-traffic-panel label { display: flex; gap: 8px; align-items: center; padding: 10px; white-space: nowrap; }
body.is-pro-page .pro-traffic-panel { width: 260px; padding: 6px; border: 1px solid #456078; border-radius: 7px; background: #081522; color: #dce8f2; box-shadow: 0 12px 30px #0006; }
.pro-traffic-panel small { display: block; padding: 8px 10px; font-size: 11px; line-height: 1.5; white-space: normal; }
.pro-traffic-panel a { color: #8bd2ff; }
html[data-theme="day"] body.is-pro-page .pro-traffic-panel { background: #fff; color: #14232e; }
html[data-theme="day"] .pro-traffic-panel a { color: #164b7b; }
.pro-traffic-panel [data-traffic-status] { display: block; max-width: 250px; padding: 8px 10px; font-size: 11px; white-space: normal; }
@media (max-width: 700px) { .traffic-shell { padding: 16px; } .traffic-heading { align-items: start; flex-direction: column; } .traffic-layout { grid-template-columns: minmax(0,1fr); } #traffic-map { height: 58vh; min-height: 340px; } .traffic-sidebar { padding: 18px; } .traffic-controls { gap: 16px; } }
@media (max-width: 700px) { .traffic-page .public-header { padding-inline: 12px; } .traffic-page .public-nav { width: 100%; gap: 4px; } .traffic-page .public-nav a { padding-inline: 2px; font-size: 10px; } }
