:root {
    --ink-950: #07111d;
    --ink-900: #0b1826;
    --ink-850: #102132;
    --ink-800: #15293d;
    --ink-700: #294158;
    --slate-600: #53697c;
    --slate-500: #718497;
    --slate-300: #bfccd7;
    --slate-200: #dce5ec;
    --slate-100: #edf3f7;
    --surface: #ffffff;
    --canvas: #f2f6f9;
    --primary: #0b7fab;
    --primary-dark: #075f82;
    --cyan: #35c4dd;
    --green: #2fbc87;
    --red: #e45858;
    --orange: #e99a3f;
    --yellow: #d7af3f;
    --shadow-sm: 0 2px 9px rgba(8, 28, 46, 0.07);
    --shadow-md: 0 12px 32px rgba(8, 28, 46, 0.11);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-ui: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 0%, rgba(53, 196, 221, 0.08), transparent 28rem),
        var(--canvas);
    color: var(--ink-850);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.5;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
}

.topbar {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 17, 29, 0.96);
    box-shadow: 0 8px 24px rgba(4, 12, 20, 0.18);
    color: white;
    backdrop-filter: blur(14px);
}

.site-notices {
    display: grid;
    gap: 8px;
    max-width: 1532px;
    margin: 14px auto -8px;
    padding: 0 14px;
}

.site-notices:empty {
    display: none;
}

.service-notice {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #f0cb91;
    border-radius: var(--radius-sm);
    background: #fff8e9;
    color: #75480c;
    font-size: 0.79rem;
    line-height: 1.45;
}

.service-notice.notice-update {
    border-color: #a9dbc5;
    background: #eefaf4;
    color: #28664f;
}

.service-notice.notice-update strong {
    color: #176947;
}

.service-notice strong {
    flex: 0 0 auto;
    color: #8b5100;
    font-size: 0.8rem;
}

.service-notice.hidden {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(92, 218, 236, 0.34);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(53, 196, 221, 0.2), rgba(11, 127, 171, 0.08));
}

.brand-mark svg {
    width: 30px;
    fill: none;
    stroke: var(--cyan);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}

.brand-mark circle {
    fill: white;
    stroke: none;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
}

.brand small {
    margin-top: 3px;
    color: #91a9ba;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.topbar-status {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #a9bac8;
    font-size: 0.79rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 7px 10px;
    border-radius: 8px;
    color: #9fb3c2;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s, background .18s;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(92, 218, 236, .1);
    color: #e9fbff;
}

@media (max-width: 900px) {
    .site-nav { flex-wrap: wrap; justify-content: flex-end; }
    .site-nav a { padding: 5px 7px; font-size: .68rem; }
}

@media (max-width: 700px) {
    .site-notices { margin-top: 10px; padding: 0 10px; }
    .service-notice { align-items: flex-start; flex-direction: column; gap: 3px; }
    .topbar-status .site-nav { display: none; }
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(47, 188, 135, 0.28);
    border-radius: 999px;
    background: rgba(47, 188, 135, 0.1);
    color: #7be0b8;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.live-indicator i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #54d99e;
    box-shadow: 0 0 0 4px rgba(84, 217, 158, 0.12);
}

.update-label strong {
    margin-left: 4px;
    color: #e8f0f5;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
}

.admin-entry {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #c9d7e1;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-entry:hover {
    border-color: rgba(53, 196, 221, 0.52);
    color: white;
}

.custom-monitor-mark {
    display: inline-flex;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(53, 196, 221, 0.13);
    color: var(--primary-dark);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-shell {
    display: grid;
    grid-template-columns: 284px minmax(0, 1fr);
    gap: 24px;
    width: min(1580px, 100%);
    margin: 0 auto;
    padding: 24px;
}

.sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    min-height: 540px;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--slate-200);
}

.eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.sidebar-heading h1 {
    color: var(--ink-900);
    font-size: 1.17rem;
    line-height: 1.2;
}

.storm-count {
    display: grid;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    place-items: center;
    border-radius: 11px;
    background: var(--slate-100);
    color: var(--primary-dark);
    font-weight: 800;
}

.storm-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    list-style: none;
    scrollbar-color: var(--slate-300) transparent;
    scrollbar-width: thin;
}

.storm-item + .storm-item {
    margin-top: 6px;
}

.storm-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 12px 13px 15px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.storm-button::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: transparent;
    content: "";
}

.storm-button:hover {
    border-color: #d9e8ef;
    background: #f6fafc;
    transform: translateX(2px);
}

.storm-button.active {
    border-color: #c7e4ee;
    background: #edf8fb;
}

.storm-button.active::before {
    background: var(--primary);
}

.storm-item-info {
    min-width: 0;
}

.storm-id {
    display: block;
    color: var(--slate-500);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.storm-name {
    display: block;
    max-width: 145px;
    margin-top: 2px;
    overflow: hidden;
    color: var(--ink-900);
    font-size: 0.94rem;
    font-weight: 750;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.storm-meta {
    display: block;
    margin-top: 3px;
    color: var(--slate-500);
    font-size: 0.69rem;
}

.badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 4px 7px;
    border-radius: 7px;
    color: white;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.badge-ty { background: var(--red); }
.badge-sty { background: #8f4bb8; }
.badge-ts { background: var(--orange); }
.badge-td { background: var(--green); }
.badge-db { background: var(--slate-600); }

.sidebar-message {
    padding: 24px 14px;
    color: var(--slate-500);
    text-align: center;
}

.sidebar-message.error {
    color: #b44949;
}

.sidebar-note {
    display: flex;
    gap: 10px;
    margin: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 0.69rem;
    line-height: 1.45;
}

.note-icon {
    display: grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink-700);
    color: white;
    font-family: serif;
    font-size: 0.73rem;
    font-weight: 700;
}

.main-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
}

.welcome-panel {
    position: relative;
    display: grid;
    min-height: calc(100vh - 120px);
    overflow: hidden;
    place-content: center;
    padding: 48px;
    border: 1px solid #d7e4eb;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(238, 248, 251, 0.94)),
        var(--surface);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.welcome-panel h2 {
    position: relative;
    margin-bottom: 12px;
    color: var(--ink-900);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    letter-spacing: -0.035em;
}

.welcome-panel p {
    position: relative;
    max-width: 590px;
    color: var(--slate-600);
    font-size: 1rem;
}

.welcome-panel .eyebrow {
    position: relative;
}

.welcome-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(11, 127, 171, 0.09);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.welcome-orbit::before,
.welcome-orbit::after {
    position: absolute;
    border: 1px solid rgba(11, 127, 171, 0.09);
    border-radius: 50%;
    content: "";
    inset: 55px;
}

.welcome-orbit::after {
    inset: 125px;
}

.welcome-orbit span {
    position: absolute;
    top: 51px;
    left: 226px;
    width: 16px;
    height: 16px;
    border: 4px solid #d9f4f8;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 24px rgba(53, 196, 221, 0.5);
}

.storm-overview,
.viewer-panel {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.storm-overview {
    overflow: hidden;
}

.storm-identity {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 26px 21px;
    border-bottom: 1px solid var(--slate-200);
    background: linear-gradient(115deg, #ffffff 65%, #edf8fb);
}

.title-row {
    display: flex;
    align-items: center;
    gap: 11px;
}

.title-row h2 {
    color: var(--ink-900);
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

#storm-subtitle {
    margin-top: 6px;
    color: var(--slate-500);
    font-size: 0.82rem;
}

.analysis-time {
    text-align: right;
}

.analysis-time span,
.analysis-time strong {
    display: block;
}

.analysis-time span {
    margin-bottom: 4px;
    color: var(--slate-500);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analysis-time strong {
    color: var(--ink-800);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--slate-200);
}

.metric-card {
    min-width: 0;
    padding: 18px 20px;
    background: white;
}

.metric-card > span,
.metric-card > strong,
.metric-card > small {
    display: block;
}

.metric-card > span {
    margin-bottom: 7px;
    color: var(--slate-500);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card > strong {
    overflow: hidden;
    color: var(--ink-900);
    font-size: 1.18rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-card > strong.metric-source {
    font-size: 0.93rem;
}

.metric-card > small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--slate-500);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.viewer-panel {
    overflow: hidden;
}

.viewer-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px 16px;
}

.viewer-header h2 {
    color: var(--ink-900);
    font-size: 1.2rem;
}

#frame-time {
    margin-top: 3px;
    color: var(--slate-500);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.frame-counter,
.history-limit {
    padding: 6px 9px;
    border-radius: 7px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
}

.icon-btn {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--slate-200);
    border-radius: 9px;
    background: white;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.icon-btn:hover {
    border-color: #a9d8e7;
    background: #f0fafc;
}

.icon-btn:disabled {
    cursor: wait;
    opacity: 0.55;
}

.icon-btn svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

#refresh-btn.is-refreshing svg {
    animation: refresh-spin 750ms linear infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.viewer-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 0 18px 14px;
}

.tab-btn {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--slate-600);
    cursor: pointer;
    text-align: left;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.tab-btn span {
    flex: 0 0 auto;
    color: var(--ink-800);
    font-size: 0.78rem;
    font-weight: 850;
}

.tab-btn small {
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: #b4dbe7;
    background: #f0f9fb;
}

.tab-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 6px 16px rgba(11, 127, 171, 0.18);
    color: #dff8fc;
}

.tab-btn.active span {
    color: white;
}

.scatterometer-styles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 0 18px 14px;
    border-top: 1px solid var(--slate-100);
}

.scatterometer-styles.hidden {
    display: none;
}

.microwave-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 18px 14px;
    border-top: 1px solid var(--slate-100);
    background: #f4f9fa;
}

.microwave-controls.hidden {
    display: none;
}

.microwave-control-field {
    display: grid;
    grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
    align-items: center;
    min-height: 46px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(24, 47, 65, 0.04);
}

.microwave-control-field > span {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 11px;
    border-right: 1px solid var(--slate-100);
    color: var(--slate-500);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.microwave-control-field select {
    width: 100%;
    min-height: 44px;
    padding: 0 28px 0 11px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: var(--ink-800);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.microwave-control-field:focus-within {
    border-color: #70b8cf;
    box-shadow: 0 0 0 3px rgba(11, 127, 171, 0.13);
}

.microwave-control-field select:focus {
    outline: none;
}

.scatterometer-style-btn {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: #fbfdfe;
    color: var(--slate-600);
    cursor: pointer;
    text-align: left;
}

.scatterometer-style-btn span {
    color: var(--ink-800);
    font-size: 0.74rem;
    font-weight: 800;
}

.scatterometer-style-btn small {
    overflow: hidden;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scatterometer-style-btn.active {
    border-color: var(--primary);
    background: #e9f7fb;
    color: var(--primary-dark);
}

.scatterometer-style-btn.active span {
    color: var(--primary-dark);
}

.image-stage {
    position: relative;
    display: grid;
    min-height: clamp(460px, 65vw, 920px);
    overflow: hidden;
    place-items: center;
    border-top: 1px solid #1d3141;
    border-bottom: 1px solid #1d3141;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        #03090f;
    background-size: 32px 32px;
}

.satellite-img {
    display: block;
    max-width: 100%;
    max-height: min(80vh, 960px);
    object-fit: contain;
    opacity: 1;
    transition: opacity 180ms ease;
}

.satellite-img.is-loading {
    opacity: 0.42;
}

.image-status {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 26px;
    color: #c4d2dd;
    text-align: center;
}

.image-status strong,
.image-status small {
    display: block;
}

.image-status strong {
    margin-top: 12px;
    color: #edf5f8;
    font-size: 0.9rem;
}

.image-status small {
    max-width: 360px;
    margin-top: 4px;
    color: #8499aa;
    font-size: 0.72rem;
}

.loader {
    width: 29px;
    height: 29px;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.frame-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    width: 44px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 12px;
    background: rgba(7, 17, 29, 0.72);
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: background 150ms ease, opacity 150ms ease;
    backdrop-filter: blur(8px);
}

.image-stage:hover .frame-nav,
.frame-nav:focus-visible {
    opacity: 1;
}

.frame-nav:hover {
    background: rgba(11, 127, 171, 0.9);
}

.frame-nav:disabled {
    cursor: default;
    opacity: 0 !important;
}

.frame-nav svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.frame-nav-prev { left: 16px; }
.frame-nav-next { right: 16px; }

.timeline-panel {
    padding: 18px 20px 21px;
}

.timeline-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.timeline-heading strong,
.timeline-heading span {
    display: block;
}

.timeline-heading strong {
    color: var(--ink-900);
    font-size: 0.82rem;
}

.timeline-heading > div > span {
    margin-top: 2px;
    color: var(--slate-500);
    font-size: 0.69rem;
}

.timeline {
    display: grid;
    grid-auto-columns: minmax(126px, 148px);
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--slate-300) transparent;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.timeline-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed var(--slate-300);
    border-radius: 10px;
    color: var(--slate-500);
    text-align: center;
}

.frame-thumb {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 11px;
    background: var(--ink-900);
    box-shadow: 0 0 0 1px #d7e1e8;
    cursor: pointer;
    scroll-snap-align: start;
    text-align: left;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.frame-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(10, 35, 54, 0.16);
}

.frame-thumb.active {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px var(--primary), 0 6px 16px rgba(11, 127, 171, 0.22);
}

.frame-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #050b11;
    object-fit: cover;
    opacity: 0.86;
}

.frame-thumb.active img,
.frame-thumb:hover img {
    opacity: 1;
}

.frame-thumb.unavailable img {
    opacity: 0.2;
    filter: grayscale(1);
}

.image-stage:fullscreen {
    width: 100vw;
    height: 100vh;
}

.image-stage:fullscreen .satellite-img {
    max-height: 100vh;
}

.frame-thumb-label {
    display: block;
    padding: 8px 9px 9px;
    color: #ccd8e0;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    line-height: 1.35;
}

.latest-tag {
    position: absolute;
    top: 7px;
    left: 7px;
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(53, 196, 221, 0.94);
    color: var(--ink-950);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .viewer-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .topbar {
        padding: 0 18px;
    }

    .update-label {
        display: none;
    }

    .app-shell {
        display: block;
        padding: 14px;
    }

    .sidebar {
        position: static;
        height: auto;
        min-height: 0;
        margin-bottom: 14px;
    }

    .storm-list {
        display: grid;
        grid-auto-columns: minmax(210px, 250px);
        grid-auto-flow: column;
        gap: 8px;
        overflow-x: auto;
        padding: 10px;
    }

    .storm-item + .storm-item {
        margin-top: 0;
    }

    .storm-button {
        border-color: var(--slate-200);
    }

    .sidebar-note {
        display: none;
    }

    .welcome-panel {
        min-height: 540px;
    }
}

@media (max-width: 580px) {
    .topbar {
        min-height: 64px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand small,
    .live-indicator {
        display: none;
    }

    .storm-identity,
    .viewer-header,
    .timeline-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .storm-identity {
        padding: 20px;
    }

    .analysis-time {
        text-align: left;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .metric-card {
        padding: 15px;
    }

    .metric-card > strong {
        font-size: 0.98rem;
    }

    .viewer-actions {
        position: absolute;
        top: 18px;
        right: 18px;
    }

    .viewer-tabs {
        gap: 5px;
        padding: 0 12px 12px;
    }

    .tab-btn {
        padding: 9px;
    }

    .tab-btn small {
        display: none;
    }

    .scatterometer-styles {
        grid-template-columns: 1fr;
    }

    .microwave-controls {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 9px 12px 12px;
    }

    .microwave-control-field {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .scatterometer-style-btn small {
        display: block;
    }

    .image-stage {
        min-height: 390px;
    }

    .frame-nav {
        width: 38px;
        height: 48px;
        opacity: 0.72;
    }

    .timeline-panel {
        padding: 15px 12px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.forecast-panel { margin-top: 20px; overflow: hidden; border: 1px solid #d9e3ea; border-radius: 18px; background: #fff; }
.forecast-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px 14px; }
.forecast-heading h2 { margin:4px 0 0; }
.forecast-heading > span { color:#607483; font-size:.72rem; }
.forecast-controls { display:flex; gap:12px; padding:0 24px 16px; }
.forecast-controls label { display:grid; gap:5px; color:#607483; font-size:.66rem; font-weight:750; text-transform:uppercase; }
.forecast-controls select { min-width:190px; padding:9px 11px; border:1px solid #cad7df; border-radius:9px; background:white; color:#102635; }
.forecast-stage { display:grid; min-height:420px; place-items:center; background:#07111d; }
.forecast-stage img { display:block; width:100%; max-height:820px; object-fit:contain; }
.forecast-stage p { color:#aebdca; }
.forecast-note { margin:0; padding:12px 24px 16px; color:#6b7c88; font-size:.68rem; }
@media(max-width:760px){.forecast-heading,.forecast-controls{align-items:stretch;flex-direction:column}.forecast-controls select{width:100%}.forecast-stage{min-height:300px}}
