html:has(.cis-dash),
body:has(.cis-dash) {
    height: 100%;
    overflow: hidden;
    margin: 0;
}

.cis-dash {
    --cis-bg: #e8eee9;
    --cis-panel: #ffffff;
    --cis-header: #f7faf8;
    --cis-line: #d7e0da;
    --cis-emerald: #047857;
    --cis-text: #0f172a;
    --cis-muted: #64748b;
    background: var(--cis-bg);
    color: var(--cis-text);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cis-dash * {
    scrollbar-width: thin;
    scrollbar-color: rgba(4, 120, 87, 0.25) transparent;
}

.cis-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    height: 3rem;
    min-height: 3rem;
    padding: 0 0.65rem 0 0.5rem;
    border-bottom: 1px solid var(--cis-line);
    background: var(--cis-header);
    z-index: 40;
}

.cis-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    justify-self: start;
    text-decoration: none;
    color: inherit;
}

.cis-brand-dost {
    height: 2.15rem;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.cis-brand-logo {
    height: 2.35rem;
    width: auto;
    max-width: 11.5rem;
    flex-shrink: 0;
    object-fit: contain;
}

.cis-app-title {
    margin: 0;
    justify-self: center;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.cis-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 0.45rem;
}

.cis-select {
    display: block;
    background: #fff;
    border: 1px solid var(--cis-line);
    border-radius: 0.35rem;
    color: #0f172a;
    font-size: 0.75rem;
    height: 2rem;
    min-height: 2rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    field-sizing: fixed;
    padding: 0 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cis-select:focus {
    outline: none;
    border-color: #047857;
    background: #f0fdf4;
}

.cis-loc-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    height: 2rem;
    width: 100%;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 0.35rem;
    background: #047857;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.cis-loc-apply:hover { background: #065f46; }

.cis-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.cis-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--cis-line);
    border-radius: 0.4rem;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.cis-icon-btn:hover {
    border-color: #047857;
    color: #047857;
}

.cis-app-menu {
    z-index: 60;
    margin-top: 0.4rem;
    width: 16.5rem;
    padding: 0.4rem;
    border: 1px solid var(--cis-line);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.cis-app-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}

.cis-app-menu a:hover { background: #ecfdf5; color: #047857; }
.cis-app-menu .material-symbols-outlined { font-size: 1.05rem; }

.cis-app-menu-label {
    padding: 0.45rem 0.55rem 0.15rem;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.cis-workspace {
    position: relative;
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.cis-workspace > input[type="radio"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.cis-rail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.45rem 0.3rem;
    border-right: 1px solid var(--cis-line);
    background: #f7faf8;
}

.cis-rail-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 3.35rem;
    padding: 0.35rem 0.15rem;
    border-radius: 0.45rem;
    color: #64748b;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
}

.cis-rail-tab .material-symbols-outlined { font-size: 1.2rem; }

.cis-rail-tab span:last-child {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.1;
}

.cis-rail-tab:hover {
    color: #047857;
    background: #ecfdf5;
}

#cis-tab-outlook:checked ~ .cis-rail label[for="cis-tab-outlook"],
#cis-tab-historical:checked ~ .cis-rail label[for="cis-tab-historical"],
#cis-tab-stations:checked ~ .cis-rail label[for="cis-tab-stations"] {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.cis-panels {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.cis-panel {
    display: none;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

#cis-tab-outlook:checked ~ .cis-panels [data-panel="outlook"],
#cis-tab-historical:checked ~ .cis-panels [data-panel="historical"],
#cis-tab-stations:checked ~ .cis-panels [data-panel="stations"] {
    display: flex;
    flex-direction: column;
}

.cis-outlook-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0.5rem;
    overflow: hidden;
}

.cis-outlook {
    display: grid;
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
}

.cis-card {
    background: var(--cis-panel);
    border: 1px solid var(--cis-line);
    border-radius: 0.55rem;
    overflow: hidden;
}

.cis-map-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    height: 100%;
}

.cis-sat-pane {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100% - 11rem);
}

.cis-sat-body {
    flex: 0 0 auto;
    min-height: 8rem;
    width: 100%;
}

.cis-pane-label {
    flex-shrink: 0;
    padding: 0.28rem 0.55rem;
    border-bottom: 1px solid var(--cis-line);
    background: #f8faf9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.cis-map-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cis-map-frame {
    position: relative;
    flex: 1;
    min-height: 0;
}

.cis-map-frame > div,
.cis-map-frame > div > div {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

.cis-map-frame iframe,
.cis-map-frame .folium-map,
#weather-object iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0;
}

.cis-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.cis-current-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11.5rem, 18%);
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: 0;
}

.cis-current {
    min-width: 0;
    padding: 0.55rem 0.7rem 0.6rem;
}

.cis-loc-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    min-height: 0;
}

.cis-loc-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    padding: 0.5rem 0.6rem 0.6rem;
}

.cis-loc-region-card {
    flex: 0 0 auto;
}

.cis-loc-place-card {
    flex: 1 1 auto;
    min-height: 0;
}

.cis-loc-region {
    margin-top: 0.3rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.cis-loc-hint {
    margin: 0.28rem 0 0;
    font-size: 9px;
    line-height: 1.35;
    color: #94a3b8;
}

.cis-loc-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.35rem;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.cis-loc-form label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.cis-loc-form .cis-select,
.cis-loc-region .cis-select {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.cis-hourly {
    flex: 0 0 auto;
    height: 12rem;
    min-height: 12rem;
    max-height: 12rem;
    display: flex;
    flex-direction: column;
    overflow: visible;
    z-index: 2;
}

.cis-hourly-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.28rem 0.7rem 0;
    flex-shrink: 0;
}

.cis-hourly-plot {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    position: relative;
    overflow: visible;
}

.cis-hourly-plot .js-plotly-plot,
.cis-hourly-plot .plotly-graph-div {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Tailwind preflight zeroes borders on every element, which collapses Plotly SVGs. */
.cis-hourly-plot .plotly-graph-div *,
.cis-hourly-plot .js-plotly-plot * {
    border-style: unset;
    border-width: unset;
}

.cis-hourly-plot svg {
    max-width: none !important;
}

.cis-hourly-plot .hoverlayer .hovertext path,
.cis-hourly-plot .hoverlayer path {
    fill-opacity: 1 !important;
    stroke-opacity: 1 !important;
}

.cis-current-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cis-current-hero {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.cis-current-icon {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: contain;
}

.cis-current-temp {
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.9;
    color: #0f172a;
}

.cis-current-temp span {
    font-size: 1.35rem;
    font-weight: 700;
    color: #94a3b8;
}

.cis-kpi-cram {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.3rem;
}

.cis-kpi-cell {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.35rem 0.4rem;
    border: 1px solid #edf2ef;
    border-radius: 0.4rem;
    background: #f8faf9;
    min-width: 0;
}

.cis-kpi-cell .material-symbols-outlined {
    font-size: 0.95rem;
    color: #047857;
}

.cis-kpi-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cis-kpi-value {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cis-forecast-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(11rem, 0.55fr);
    gap: 0.5rem;
    flex: 1 1 0;
    min-height: 0;
}

.cis-forecast-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cis-forecast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.7rem 0.3rem;
    flex-shrink: 0;
}

.cis-forecast-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0.3rem 0.3rem;
}

.cis-forecast-foot {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    border-top: 1px solid #e4ebe6;
    padding: 0.35rem 0.7rem;
    flex-shrink: 0;
}

.cis-source {
    flex-shrink: 0;
    margin: 0;
    padding: 0 0.15rem;
    font-size: 10px;
    color: #94a3b8;
}

.cis-source a {
    font-weight: 700;
    color: #047857;
    text-decoration: none;
}

.cis-source a:hover { text-decoration: underline; }

.cis-metric-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.cis-day-cols,
.cis-day-row {
    display: grid;
    grid-template-columns: 4.4rem 2.4rem minmax(0, 1.4fr) minmax(6rem, 1.1fr) minmax(7.5rem, 1.4fr) 3.4rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.7rem;
    border-radius: 0.4rem;
}

.cis-day-cols {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    align-items: end;
    padding: 0.1rem 0.7rem 0.28rem;
    margin: 0 0.3rem;
    border-bottom: 1px solid #e4ebe6;
    border-radius: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.cis-day-when { min-width: 0; }

.cis-day-name {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1e293b;
}

.cis-day-name.is-today { color: #047857; }

.cis-day-date {
    margin-top: 0.12rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
}

.cis-day-icon {
    width: 2.15rem;
    height: 2.15rem;
    object-fit: contain;
}

.cis-day-desc {
    min-width: 0;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cis-day-rain,
.cis-day-temp {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.cis-day-rain-val {
    width: 2.2rem;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 800;
}

.cis-day-low,
.cis-day-high {
    font-size: 0.92rem;
    font-weight: 800;
}

.cis-day-low { color: #64748b; }
.cis-day-high { color: #0f172a; }

.cis-day-wind {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
}

.cis-day-wind .material-symbols-outlined {
    font-size: 1rem;
    color: #94a3b8;
}

.cis-advisory {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cis-advisory-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem;
    text-align: center;
    color: #64748b;
}

.cis-advisory-empty .material-symbols-outlined {
    font-size: 2rem;
    color: #047857;
}

.cis-advisory-empty h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.cis-advisory-empty p {
    margin: 0;
    max-width: 16rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.cis-day-row.is-today {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.cis-day-row:hover { background: #f8faf9; }

.cis-temp-track {
    position: relative;
    flex: 1;
    width: 100%;
    height: 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
}

.cis-temp-fill {
    position: absolute;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9, #f59e0b);
}

.cis-rain-track {
    flex: 1;
    height: 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.cis-well {
    background: #fff;
    color: #0f172a;
    border-radius: 0.55rem;
    overflow: hidden;
    margin: 0.5rem;
    border: 1px solid #e4ebe6;
}

.cis-section-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.cis-station-card {
    border: 1px solid #e4ebe6;
    border-radius: 0.55rem;
    background: #fff;
    overflow: hidden;
}

.cis-station-card h3 {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
}

.cis-stations-app {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin: 0.5rem;
}

.cis-stations-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid #e4ebe6;
}

.cis-stations-viewer {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    height: 2rem;
    padding: 0 0.7rem;
    border-radius: 0.4rem;
    background: #047857;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.cis-stations-viewer .material-symbols-outlined {
    font-size: 1rem;
}

.cis-stations-viewer:hover {
    background: #065f46;
    color: #fff;
}

.cis-station-tabs {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 0.35rem 0.35rem;
}

.cis-hist-host {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    flex: 1;
}

.cis-hist-app {
    display: grid;
    grid-template-columns: 17.5rem minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    background: #fff;
}

.cis-hist-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--cis-line);
    background: #f7faf8;
}

.cis-hist-sidebar-head {
    padding: 0.7rem 0.85rem 0.4rem;
    flex-shrink: 0;
}

.cis-hist-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem 0.85rem 0.85rem;
    min-height: 0;
    overflow: auto;
    flex: 1;
}

.cis-hist-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.cis-hist-field input[type="date"] {
    height: 2rem;
    border: 1px solid var(--cis-line);
    border-radius: 0.35rem;
    background: #fff;
    padding: 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    text-transform: none;
    letter-spacing: 0;
}

.cis-hist-hint {
    margin: 0;
    font-size: 10px;
    color: #64748b;
}

.cis-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--cis-line);
    border-radius: 0.35rem;
    overflow: hidden;
}

.cis-seg label { cursor: pointer; }

.cis-seg input { display: none; }

.cis-seg span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.85rem;
    background: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.cis-seg label + label span { border-left: 1px solid var(--cis-line); }
.cis-seg input:checked + span { background: #ecfdf5; color: #047857; }

.cis-param-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: 14rem;
    overflow: auto;
    padding: 0.2rem;
    border: 1px solid var(--cis-line);
    border-radius: 0.4rem;
    background: #fff;
}

.cis-param-list label { cursor: pointer; }
.cis-param-list input { display: none; }

.cis-param-list span {
    display: block;
    padding: 0.35rem 0.45rem;
    border-radius: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #334155;
}

.cis-param-list label:hover span { background: #f1f5f4; }
.cis-param-list input:checked + span { background: #ecfdf5; color: #047857; }

.cis-hist-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 2.15rem;
    border: 0;
    border-radius: 0.4rem;
    background: #047857;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.cis-hist-submit:hover { background: #065f46; }

.cis-hist-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    position: relative;
}

.cis-hist-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--cis-line);
    flex-shrink: 0;
}

.cis-hist-switch {
    display: flex;
    border: 1px solid var(--cis-line);
    border-radius: 0.35rem;
    overflow: hidden;
}

.cis-hist-switch label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 1.85rem;
    padding: 0 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #fff;
    cursor: pointer;
}

.cis-hist-switch label + label { border-left: 1px solid var(--cis-line); }
.cis-hist-switch .material-symbols-outlined { font-size: 0.95rem; }

.cis-hist-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}

.cis-hist-meta a {
    color: #047857;
    text-decoration: none;
}

.cis-hist-stage {
    flex: 1;
    min-height: 0;
    position: relative;
}

.cis-hist-plot {
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.cis-hist-plot .js-plotly-plot,
.cis-hist-plot .plotly-graph-div {
    height: 100% !important;
}

.cis-hist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #64748b;
    padding: 1.5rem;
}

.cis-hist-empty h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.cis-hist-empty p {
    margin: 0;
    max-width: 20rem;
    font-size: 0.82rem;
}

.cis-hist-table-wrap {
    height: 100%;
    overflow: auto;
}

.cis-hist-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.cis-hist-table-wrap th {
    position: sticky;
    top: 0;
    background: #f0fdf4;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #065f46;
    border-bottom: 1px solid #d1fae5;
}

.cis-hist-table-wrap td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #f1f5f4;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #334155;
}

.cis-himawari {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cis-himawari-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
    line-height: 0;
    aspect-ratio: 1 / 1;
}

.cis-himawari-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #0f172a;
}

.cis-himawari-controls {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.6rem;
    padding: 0.55rem 0.7rem 0.6rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.82));
    line-height: 1.2;
}

.cis-himawari-slider { grid-column: 1 / -1; }

.cis-himawari-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.cis-himawari-frame {
    display: flex;
    gap: 0.5rem;
    font-size: 10px;
    color: #cbd5e1;
}

.cis-himawari-play {
    height: 1.7rem;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 0.3rem;
    background: #047857;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.cis-himawari.is-compact .cis-himawari-controls {
    padding: 0.35rem 0.5rem 0.4rem;
}

.cis-himawari.is-compact .cis-himawari-label { font-size: 0.68rem; }
.cis-himawari.is-compact .cis-himawari-stage { border-radius: 0; }

.cis-himawari-slider {
    width: 100%;
    height: 0.45rem;
    appearance: none;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(16, 185, 129, 0.95) 0%,
        rgba(16, 185, 129, 0.95) var(--slider-percent, 0%),
        rgba(148, 163, 184, 0.35) var(--slider-percent, 0%),
        rgba(148, 163, 184, 0.35) 100%
    );
    accent-color: #10b981;
}

.cis-himawari-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #10b981;
    border: 2px solid #fff;
    cursor: pointer;
}

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.25); border-radius: 10px; }

.aws-skeleton-bar {
    background: linear-gradient(90deg, #eef2f0 25%, #f8faf9 50%, #eef2f0 75%);
    background-size: 200% 100%;
    animation: cis-shimmer 1.4s infinite;
    border-radius: 6px;
    height: 0.7rem;
}

@keyframes cis-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 1180px) {
    .cis-kpi-cram { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    html:has(.cis-dash),
    body:has(.cis-dash) {
        height: auto;
        overflow: auto;
    }
    .cis-dash {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
    .cis-topbar {
        height: auto;
        min-height: 3rem;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        padding: 0.45rem;
    }
    .cis-app-title {
        font-size: 0.72rem;
        white-space: normal;
        max-width: 14rem;
    }
    .cis-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        min-height: 70vh;
    }
    .cis-rail {
        flex-direction: row;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--cis-line);
    }
    .cis-rail-tab {
        min-width: 4.5rem;
        min-height: 3.1rem;
        flex: 1;
    }
    .cis-outlook {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .cis-map-stack { height: 34rem; }
    .cis-current-row { grid-template-columns: minmax(0, 1fr) minmax(11rem, 22%); }
    .cis-forecast-grid { grid-template-columns: 1fr; }
    .cis-hourly {
        height: 12rem;
        min-height: 12rem;
        max-height: 12rem;
    }
    .cis-hist-app { grid-template-columns: 1fr; }
    .cis-hist-sidebar { border-right: 0; border-bottom: 1px solid var(--cis-line); max-height: 18rem; }
}

@media (max-width: 720px) {
    .cis-kpi-cram { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cis-clock { display: none; }
    .cis-current-row { grid-template-columns: 1fr; }
}
