geospatial1 / frontend /src /styles.css
Umar666's picture
M5: add curated Sentinel-2 (Track-B) tab — baked OSCD AOIs, cache-served
6dad9a7 verified
Raw
History Blame Contribute Delete
21.8 kB
/* ============================================================================
Satellite Change Detection — "Observatory Console"
Cool, instrument-grade GEOINT theme. Imagery is the hero; chrome recedes.
Type: IBM Plex Sans (UI) + IBM Plex Mono (labels, coordinates, numbers).
========================================================================== */
:root {
--bg: #080b10;
--bg-2: #0b0f16;
--panel: #0c1119;
--panel-2: #0f151f;
--line: #182231;
--line-2: #101823;
--text: #dfe7f0;
--text-dim: #8494a6;
--text-faint: #54637a;
--accent: #3fd0e6; /* controlled instrument cyan */
--accent-deep: #0f3a45;
--accent-glow: rgba(63, 208, 230, 0.15);
--signal: #ffb454; /* amber change signal / legend */
--ok: #5fd39a;
--warn: #ffcf6b;
--err: #ff6b6b;
--radius: 8px;
--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
--sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
margin: 0;
}
body {
background: var(--bg);
color: var(--text);
font-family: var(--sans);
font-size: 14px;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
overflow: hidden;
}
::selection {
background: var(--accent-deep);
color: #fff;
}
.app {
display: flex;
flex-direction: column;
height: 100%;
}
/* ---------- top bar ---------- */
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
height: 54px;
flex: none;
padding: 0 18px;
border-bottom: 1px solid var(--line);
background: linear-gradient(180deg, #0c1119, #080b10);
}
.brand {
display: flex;
align-items: center;
gap: 13px;
}
.mark {
width: 30px;
height: 30px;
flex: none;
color: var(--accent);
}
.brand h1 {
font-size: 13px;
font-weight: 600;
margin: 0;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text);
}
.brand .sub {
font-family: var(--mono);
font-size: 10.5px;
letter-spacing: 0.08em;
color: var(--text-faint);
margin-top: 3px;
}
.brand .sub b {
color: var(--accent);
font-weight: 500;
}
.nav {
display: flex;
align-items: center;
gap: 4px;
}
.tab {
font-family: var(--mono);
font-size: 11px;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text-dim);
background: transparent;
border: 1px solid transparent;
padding: 8px 13px;
border-radius: 6px;
cursor: pointer;
transition: color 0.15s, background 0.15s;
}
.tab:hover {
color: var(--text);
}
.tab.on {
color: var(--bg);
background: var(--accent);
border-color: var(--accent);
font-weight: 600;
}
.status {
display: flex;
align-items: center;
gap: 7px;
margin-left: 10px;
padding-left: 14px;
border-left: 1px solid var(--line);
font-family: var(--mono);
font-size: 10.5px;
letter-spacing: 0.06em;
color: var(--text-dim);
}
.dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--ok);
box-shadow: 0 0 8px var(--ok);
animation: pulse 2.6s ease-in-out infinite;
}
.dot.down {
background: var(--err);
box-shadow: 0 0 8px var(--err);
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.4;
}
}
/* ---------- banners ---------- */
.banner {
flex: none;
padding: 9px 20px;
font-size: 12.5px;
font-family: var(--mono);
letter-spacing: 0.01em;
display: flex;
align-items: center;
gap: 9px;
background: #2a2410;
color: var(--warn);
border-bottom: 1px solid #4a3d16;
}
.banner strong {
color: #fff;
}
.banner.err {
background: #2a1414;
color: var(--err);
border-color: #4a1c1c;
}
.banner .bicon {
font-size: 13px;
}
/* ---------- body / rail ---------- */
.body {
flex: 1;
display: flex;
min-height: 0;
}
.rail {
width: 326px;
flex: none;
border-right: 1px solid var(--line);
background: var(--panel);
overflow-y: auto;
}
.rail::-webkit-scrollbar {
width: 8px;
}
.rail::-webkit-scrollbar-thumb {
background: #16202e;
border-radius: 4px;
}
.sec {
padding: 16px 18px;
border-bottom: 1px solid var(--line-2);
animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.sec:nth-child(1) {
animation-delay: 0.02s;
}
.sec:nth-child(2) {
animation-delay: 0.07s;
}
.sec:nth-child(3) {
animation-delay: 0.12s;
}
.sec:nth-child(4) {
animation-delay: 0.17s;
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(7px);
}
to {
opacity: 1;
transform: none;
}
}
.sec h2 {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--mono);
font-size: 10.5px;
font-weight: 500;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--text-faint);
margin: 0 0 13px;
}
.sec h2 .idx {
color: var(--accent);
opacity: 0.85;
}
.sec h2 .rule {
flex: 1;
height: 1px;
background: var(--line);
}
/* scene list */
.scene {
display: flex;
align-items: center;
gap: 11px;
width: 100%;
text-align: left;
padding: 9px 10px;
margin-bottom: 5px;
border-radius: 7px;
cursor: pointer;
background: var(--panel-2);
border: 1px solid var(--line-2);
color: var(--text);
transition: border-color 0.15s, background 0.15s;
}
.scene:hover {
border-color: #22303f;
}
.scene.on {
border-color: var(--accent);
background: linear-gradient(90deg, var(--accent-glow), transparent 72%);
}
.scene .tag {
font-family: var(--mono);
font-size: 10px;
letter-spacing: 0.04em;
color: var(--text-faint);
border: 1px solid var(--line);
border-radius: 4px;
padding: 3px 5px;
flex: none;
min-width: 34px;
text-align: center;
}
.scene.on .tag {
color: var(--accent);
border-color: var(--accent-deep);
}
.scene .meta {
flex: 1;
min-width: 0;
}
.scene .meta .t {
display: block; /* required for overflow/ellipsis to clip long titles (S2 sites) */
font-size: 12.5px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.scene .meta .bar {
height: 3px;
border-radius: 2px;
background: #13202c;
margin-top: 6px;
overflow: hidden;
}
.scene .meta .bar > i {
display: block;
height: 100%;
background: linear-gradient(90deg, var(--signal), #ff7a59);
}
.scene .pct {
font-family: var(--mono);
font-size: 10.5px;
color: var(--text-dim);
flex: none;
}
.scene-note {
font-family: var(--mono);
font-size: 10.5px;
line-height: 1.55;
color: var(--text-faint);
margin: 10px 2px 0;
}
/* model select + chips */
.select {
position: relative;
}
.select select {
width: 100%;
appearance: none;
background: var(--panel-2);
color: var(--text);
border: 1px solid var(--line);
border-radius: 7px;
padding: 10px 30px 10px 12px;
font-family: var(--mono);
font-size: 12px;
letter-spacing: 0.02em;
cursor: pointer;
}
.select select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
.select::after {
content: "▾";
position: absolute;
right: 12px;
top: 9px;
color: var(--text-dim);
pointer-events: none;
}
.kv {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 11px;
}
.chip {
font-family: var(--mono);
font-size: 10px;
letter-spacing: 0.03em;
color: var(--text-dim);
border: 1px solid var(--line);
border-radius: 5px;
padding: 4px 7px;
background: var(--bg-2);
}
.chip b {
color: var(--accent);
font-weight: 500;
}
/* overlay controls */
.toggle {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 14px;
}
.toggle .lbl {
font-size: 12.5px;
color: var(--text);
}
.sw {
position: relative;
width: 38px;
height: 20px;
border-radius: 20px;
background: #182430;
border: 1px solid var(--line);
cursor: pointer;
transition: 0.15s;
flex: none;
}
.sw::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--text-dim);
transition: 0.15s;
}
.sw.on {
background: var(--accent-deep);
border-color: var(--accent);
}
.sw.on::after {
left: 20px;
background: var(--accent);
}
.slabel {
display: flex;
justify-content: space-between;
font-family: var(--mono);
font-size: 10.5px;
letter-spacing: 0.06em;
color: var(--text-faint);
text-transform: uppercase;
margin-bottom: 8px;
}
.slabel b {
color: var(--text);
font-weight: 500;
}
input[type="range"] {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 3px;
border-radius: 3px;
background: linear-gradient(
90deg,
var(--accent) var(--fill, 70%),
#16212e var(--fill, 70%)
);
outline: none;
cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--text);
border: 2px solid var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
input[type="range"]::-moz-range-thumb {
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--text);
border: 2px solid var(--accent);
}
.legend {
display: flex;
align-items: center;
gap: 9px;
margin-top: 14px;
font-family: var(--mono);
font-size: 10.5px;
color: var(--text-dim);
}
.legend .sq {
width: 12px;
height: 12px;
border-radius: 3px;
background: var(--signal);
box-shadow: 0 0 8px rgba(255, 180, 84, 0.5);
flex: none;
}
/* analysis readout */
.readout {
font-family: var(--mono);
}
.readout .row {
display: flex;
align-items: baseline;
justify-content: space-between;
padding: 9px 0;
border-bottom: 1px solid var(--line-2);
}
.readout .row:last-child {
border-bottom: 0;
}
.readout .k {
font-size: 10.5px;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text-faint);
}
.readout .v {
font-size: 16px;
font-weight: 500;
color: var(--text);
font-variant-numeric: tabular-nums;
}
.readout .v small {
font-size: 11px;
color: var(--text-dim);
margin-left: 3px;
}
.readout .v.skeleton {
color: transparent;
border-radius: 4px;
background: linear-gradient(90deg, #131c28, #1b2836, #131c28);
background-size: 200% 100%;
animation: shimmer 1.2s linear infinite;
min-width: 46px;
display: inline-block;
height: 14px;
}
@keyframes shimmer {
to {
background-position: -200% 0;
}
}
.gauge {
margin-top: 14px;
}
.gauge .track {
height: 6px;
border-radius: 4px;
background: #13202c;
overflow: hidden;
}
.gauge .track > i {
display: block;
height: 100%;
background: linear-gradient(90deg, var(--signal), #ff7a59);
box-shadow: 0 0 12px rgba(255, 140, 80, 0.4);
transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gauge .cap {
display: flex;
justify-content: space-between;
font-family: var(--mono);
font-size: 9.5px;
letter-spacing: 0.05em;
color: var(--text-faint);
margin-top: 6px;
}
.readout-empty {
font-family: var(--mono);
font-size: 11px;
color: var(--text-faint);
line-height: 1.6;
}
.readout-caption {
font-family: var(--mono);
font-size: 10px;
letter-spacing: 0.03em;
color: var(--text-faint);
line-height: 1.5;
margin: 12px 0 0;
}
/* ---------- stage ---------- */
.stage {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
position: relative;
}
.viewer {
position: relative;
flex: 1;
min-height: 0;
}
.compare-wrap {
position: absolute;
inset: 0;
overflow: hidden;
background: #04070b;
touch-action: none;
}
.map-layer {
position: absolute;
inset: 0;
}
.map-top {
z-index: 2;
}
.maplibregl-map {
background: #04070b;
}
.maplibregl-canvas {
outline: none;
}
/* change overlay — the mask is rendered server-side at native resolution as a translucent amber
fill + crisp outline. Smooth interpolation (never blocky) + a faint thermal glow. */
.change-overlay {
position: absolute;
z-index: 3;
pointer-events: none;
image-rendering: auto;
filter: drop-shadow(0 0 2px rgba(255, 170, 80, 0.4));
transition: opacity 0.14s ease;
}
/* HUD */
.hud {
position: absolute;
pointer-events: none;
font-family: var(--mono);
z-index: 5;
}
.hud.chip {
padding: 5px 9px;
border-radius: 6px;
font-size: 10.5px;
letter-spacing: 0.1em;
background: rgba(6, 10, 16, 0.72);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
border: 1px solid rgba(63, 208, 230, 0.18);
color: var(--text);
display: flex;
align-items: center;
gap: 8px;
}
.hud.chip .muted {
color: var(--text-faint);
letter-spacing: 0.04em;
}
.hud.before {
top: 14px;
left: 14px;
}
.hud.after {
top: 14px;
right: 14px;
}
.hud.legendchip {
bottom: 14px;
left: 14px;
gap: 9px;
}
.hud.legendchip .sq {
width: 11px;
height: 11px;
border-radius: 2px;
background: var(--signal);
box-shadow: 0 0 8px rgba(255, 180, 84, 0.6);
}
.hud.gsd {
bottom: 14px;
right: 14px;
color: rgba(223, 231, 240, 0.75);
font-size: 10px;
letter-spacing: 0.08em;
background: rgba(6, 10, 16, 0.6);
border-color: rgba(223, 231, 240, 0.14);
}
/* frame ticks */
.frame {
position: absolute;
inset: 10px;
pointer-events: none;
z-index: 4;
}
.frame span {
position: absolute;
width: 12px;
height: 12px;
border: 1px solid rgba(63, 208, 230, 0.4);
}
.frame .tl {
top: 0;
left: 0;
border-right: none;
border-bottom: none;
}
.frame .tr {
top: 0;
right: 0;
border-left: none;
border-bottom: none;
}
.frame .bl {
bottom: 0;
left: 0;
border-right: none;
border-top: none;
}
.frame .br {
bottom: 0;
right: 0;
border-left: none;
border-top: none;
}
/* swipe divider */
.swipe-divider {
position: absolute;
top: 0;
bottom: 0;
width: 2px;
background: linear-gradient(
180deg,
rgba(63, 208, 230, 0.2),
var(--accent),
rgba(63, 208, 230, 0.2)
);
z-index: 6;
transform: translateX(-1px);
cursor: ew-resize;
box-shadow: 0 0 12px rgba(63, 208, 230, 0.5);
}
.swipe-handle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 38px;
height: 38px;
border-radius: 50%;
background: rgba(8, 12, 18, 0.85);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
border: 1px solid var(--accent);
color: var(--accent);
display: flex;
align-items: center;
justify-content: center;
font-family: var(--mono);
font-size: 13px;
box-shadow: 0 0 16px rgba(63, 208, 230, 0.35);
cursor: ew-resize;
}
/* loading scan veil (shown while a fresh prediction runs on CPU) */
.scanning {
position: absolute;
inset: 0;
z-index: 7;
pointer-events: none;
display: flex;
align-items: center;
justify-content: center;
background: rgba(4, 7, 11, 0.35);
backdrop-filter: blur(1px);
}
.scanning .beam {
position: absolute;
inset: 0;
background: linear-gradient(
180deg,
transparent,
rgba(63, 208, 230, 0.12) 48%,
rgba(63, 208, 230, 0.18) 50%,
rgba(63, 208, 230, 0.12) 52%,
transparent
);
transform: translateY(-100%);
animation: sweep 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes sweep {
to {
transform: translateY(100%);
}
}
.scanning .tagword {
font-family: var(--mono);
font-size: 11px;
letter-spacing: 0.3em;
color: var(--accent);
text-transform: uppercase;
padding: 8px 16px;
border: 1px solid rgba(63, 208, 230, 0.3);
border-radius: 6px;
background: rgba(6, 10, 16, 0.7);
box-shadow: 0 0 20px rgba(63, 208, 230, 0.2);
}
.scanning .tagword::after {
content: "";
animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots {
0% {
content: "";
}
25% {
content: "·";
}
50% {
content: "··";
}
75% {
content: "···";
}
}
.empty {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-faint);
font-family: var(--mono);
font-size: 12px;
letter-spacing: 0.1em;
text-transform: uppercase;
}
/* telemetry footer */
.telemetry {
height: 30px;
flex: none;
display: flex;
align-items: center;
border-top: 1px solid var(--line);
background: var(--panel);
font-family: var(--mono);
font-size: 10.5px;
letter-spacing: 0.05em;
color: var(--text-dim);
overflow: hidden;
}
.telemetry .cell {
padding: 0 14px;
height: 100%;
display: flex;
align-items: center;
gap: 7px;
border-right: 1px solid var(--line-2);
white-space: nowrap;
}
.telemetry .cell .k {
color: var(--text-faint);
}
.telemetry .cell b {
color: var(--text);
font-weight: 500;
}
.telemetry .cell.accent b {
color: var(--accent);
}
.telemetry .spacer {
flex: 1;
}
.telemetry .cell.hide-narrow {
display: flex;
}
/* ---------- model card ---------- */
.card-page {
flex: 1;
overflow-y: auto;
background: radial-gradient(
1100px 500px at 80% -10%,
rgba(63, 208, 230, 0.05),
transparent 60%
),
var(--bg);
}
.card-inner {
max-width: 900px;
margin: 0 auto;
padding: 42px 40px 64px;
animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.card-eyebrow {
font-family: var(--mono);
font-size: 10.5px;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--accent);
margin: 0 0 12px;
}
.card-page h2 {
font-size: 26px;
font-weight: 600;
letter-spacing: -0.01em;
margin: 0 0 12px;
}
.card-lead {
color: var(--text-dim);
font-size: 14.5px;
line-height: 1.65;
max-width: 68ch;
margin: 0 0 30px;
}
.card-page h3 {
font-size: 12px;
font-family: var(--mono);
font-weight: 500;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-faint);
margin: 34px 0 14px;
display: flex;
align-items: center;
gap: 10px;
}
.card-page h3::after {
content: "";
flex: 1;
height: 1px;
background: var(--line);
}
.metrics-table {
width: 100%;
border-collapse: collapse;
margin: 6px 0 8px;
font-size: 13.5px;
border: 1px solid var(--line);
border-radius: 10px;
overflow: hidden;
}
.metrics-table th,
.metrics-table td {
text-align: left;
padding: 12px 14px;
border-bottom: 1px solid var(--line-2);
}
.metrics-table thead th {
color: var(--text-faint);
font-weight: 500;
font-size: 10px;
font-family: var(--mono);
text-transform: uppercase;
letter-spacing: 0.12em;
background: var(--panel);
}
.metrics-table td.num {
font-family: var(--mono);
font-variant-numeric: tabular-nums;
color: var(--text);
}
.metrics-table tbody tr:last-child td {
border-bottom: 0;
}
.metrics-table tr.row-headline {
background: linear-gradient(90deg, var(--accent-glow), transparent 80%);
}
.metrics-table tr.row-headline td:first-child {
box-shadow: inset 3px 0 0 var(--accent);
}
.metrics-table tr.row-headline td.num {
color: var(--accent);
font-weight: 600;
}
.row-note {
display: block;
font-size: 11px;
color: var(--text-faint);
margin-top: 3px;
}
.card-page p.muted,
.card-page ul.muted {
color: var(--text-dim);
font-size: 13.5px;
line-height: 1.7;
}
.card-page ul.muted {
padding-left: 18px;
}
.card-page ul.muted li {
margin-bottom: 9px;
}
.card-page ul.muted li::marker {
color: var(--accent);
}
.card-page strong {
color: var(--text);
}
.callout {
border: 1px solid var(--line);
border-left: 2px solid var(--signal);
background: var(--panel);
border-radius: 8px;
padding: 16px 18px;
margin: 8px 0;
}
.callout p {
margin: 0;
}
/* ---------- responsive ---------- */
@media (max-width: 980px) {
.telemetry .cell.hide-narrow {
display: none;
}
}
@media (max-width: 820px) {
body {
overflow: auto;
}
.body,
.s2-body {
flex-direction: column;
}
.rail {
width: 100%;
border-right: 0;
border-bottom: 1px solid var(--line);
}
.viewer {
min-height: 62vh;
}
}
/* ============================================================================
Sentinel-2 (Track B) tab
========================================================================== */
.s2-honesty {
flex: none;
display: flex;
align-items: flex-start;
gap: 10px;
padding: 9px 20px;
font-size: 12px;
line-height: 1.5;
color: var(--text-dim);
background: linear-gradient(90deg, rgba(63, 208, 230, 0.06), transparent 70%);
border-bottom: 1px solid var(--line);
}
.s2-honesty .bicon {
color: var(--accent);
font-size: 13px;
line-height: 1.4;
flex: none;
}
.s2-honesty b {
color: var(--text);
font-weight: 600;
}
.s2-body {
flex: 1;
display: flex;
min-height: 0;
}
/* locator map */
.s2-locator {
height: 188px;
border-radius: var(--radius);
border: 1px solid var(--line);
background: #070a10;
overflow: hidden;
position: relative;
}
.s2-locator .maplibregl-canvas {
cursor: default;
}
.s2-pin {
width: 12px;
height: 12px;
padding: 0;
border: 0;
border-radius: 50%;
cursor: pointer;
background: rgba(63, 208, 230, 0.35);
box-shadow:
0 0 0 1.5px var(--accent),
0 0 8px rgba(63, 208, 230, 0.4);
transition:
transform 0.15s ease,
background 0.15s ease;
}
.s2-pin:hover {
transform: scale(1.2);
}
.s2-pin.on {
width: 15px;
height: 15px;
background: var(--signal);
box-shadow:
0 0 0 2px #fff,
0 0 12px rgba(255, 140, 80, 0.7);
}
.s2-list {
margin-top: 12px;
display: flex;
flex-direction: column;
gap: 6px;
}
/* acquisitions block — a compact readout with left-aligned date/text values */
.s2-acq {
font-family: var(--mono);
}
.s2-acq .row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
padding: 8px 0;
border-bottom: 1px solid var(--line-2);
}
.s2-acq .row:last-child {
border-bottom: 0;
}
.s2-acq .k {
font-size: 10.5px;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text-faint);
flex: none;
}
.s2-acq .v {
font-size: 13px;
color: var(--text);
font-variant-numeric: tabular-nums;
text-align: right;
}
.s2-acq .v small {
font-size: 10.5px;
color: var(--text-dim);
}