:root {
    --mw-ink: #172a38;
    --mw-muted: #637481;
    --mw-line: #d7e0e5;
    --mw-paper: #ffffff;
    --mw-canvas: #edf2f4;
    --mw-blue: #176b82;
}

body.site-home,
body.site-dashboard,
body.site-error,
body.site-astronomy,
body.site-earthquakes {
    color-scheme: light;
    background: var(--mw-canvas) !important;
    color: var(--mw-ink) !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
}

body.site-home {
    background:
        radial-gradient(ellipse at 10% 12%, rgb(96 168 185 / 11%), transparent 28rem),
        radial-gradient(ellipse at 90% 42%, rgb(220 177 112 / 10%), transparent 30rem),
        #edf2f4 !important;
}

.portal-topbar {
    min-height: 76px;
    padding: 0 max(calc((100vw - 1280px) / 2), 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background: #102a3b;
}

.portal-brand,
.dashboard-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.portal-brand img,
.dashboard-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.portal-brand span,
.dashboard-brand span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.portal-brand strong,
.dashboard-brand strong {
    color: inherit;
    font-size: 0.83rem;
    letter-spacing: 0.11em;
}

.portal-brand small,
.dashboard-brand small {
    color: #aab9c3;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.portal-nav a {
    color: #d6e0e5;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.portal-nav a:hover {
    color: #fff;
}

.home-main {
    max-width: 1280px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: center;
    padding: clamp(28px, 5vw, 60px);
    background: linear-gradient(115deg, #fff 0%, #f5fafb 68%, #f3f8f5 100%);
    border: 1px solid var(--mw-line);
    border-top: 3px solid #176b82;
}

.home-kicker {
    margin: 0 0 14px;
    color: #176b82;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.home-hero h1 {
    margin: 0;
    color: #152b3b;
    font-size: clamp(2.6rem, 5.2vw, 4.7rem);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.home-intro {
    max-width: 540px;
    margin: 22px 0 0;
    color: #61717c;
    font-size: 1.04rem;
    line-height: 1.7;
}

.coverage-panel {
    padding: 22px 24px;
    border-left: 1px solid var(--mw-line);
}

.coverage-label {
    display: block;
    margin-bottom: 12px;
    color: #798893;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.coverage-panel div {
    padding: 12px 0;
    border-top: 1px solid #e7ecef;
}

.coverage-panel strong,
.coverage-panel span {
    display: block;
}

.coverage-panel strong {
    color: #1b3444;
    font-size: 0.94rem;
}

.coverage-panel div span {
    margin-top: 3px;
    color: #73828c;
    font-size: 0.8rem;
}

.home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 16px;
}

.home-section-heading .home-kicker {
    margin-bottom: 6px;
}

.home-section-heading h2 {
    margin: 0;
    color: var(--mw-ink);
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.home-section-heading > span {
    color: var(--mw-muted);
    font-size: 0.84rem;
}

.home-cards > a {
    min-height: 275px;
    padding: 24px !important;
    border: 1px solid var(--mw-line) !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--mw-ink) !important;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease !important;
}

.home-cards > a:hover {
    transform: translateY(-3px) !important;
    border-color: #9aadb8 !important;
    box-shadow: 0 8px 22px rgb(21 43 59 / 7%) !important;
}

.home-cards > a > div:first-child > div:first-child {
    margin-bottom: 28px !important;
}

.home-cards > a > div:first-child > div:first-child > span:first-child {
    padding: 10px 12px !important;
    border: 1px solid var(--mw-line) !important;
    border-radius: 5px !important;
    background: #f2f6f7 !important;
    color: #1d5e73 !important;
    font-size: 0.95rem !important;
}

.home-cards > a > div:first-child > div:first-child > span:last-child {
    border-radius: 3px !important;
    background: #f1f5f6 !important;
    color: #637481 !important;
}

.home-cards > a > div.absolute {
    display: none;
}

.home-cards h2 {
    color: #1b3444 !important;
    font-size: 1.35rem !important;
    letter-spacing: -0.025em;
}

.home-cards p {
    color: #637481 !important;
    line-height: 1.65;
}

.home-cards > a > div:last-child {
    border-color: #e4eaed !important;
    color: #176b82 !important;
    letter-spacing: 0.08em;
}

@media (min-width: 1100px) {
    .home-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.site-astronomy {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 82% 10%, rgb(223 218 241 / 45%), transparent 32rem),
        #f0f3f5 !important;
}

.site-earthquakes {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 86% 8%, rgb(226 218 203 / 40%), transparent 34rem),
        #f0f3f5 !important;
}

.earthquake-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 42px;
}

.earthquake-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.earthquake-heading h1 {
    margin: 0;
    color: #172a38;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -0.055em;
    line-height: 1;
}

.earthquake-heading > div > p:last-child {
    max-width: 650px;
    margin: 14px 0 0;
    color: #637481;
    font-size: 1rem;
    line-height: 1.65;
}

.earthquake-refresh {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid #bccbd1;
    border-radius: 4px;
    background: #fff;
    color: #1b3444;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.earthquake-refresh:hover {
    background: #f5f8f8;
}

.earthquake-refresh:disabled {
    cursor: wait;
    opacity: 0.6;
}

.earthquake-panel {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #d7e0e5;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 6px rgb(22 42 56 / 4%);
}

.earthquake-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.earthquake-panel-heading h2 {
    margin: 4px 0 0;
    color: #1b3444;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

.earthquake-eyebrow {
    color: #8a5a29;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.earthquake-count {
    color: #596c77;
    font-size: 0.82rem;
    font-weight: 700;
}

.earthquake-map {
    width: 100%;
    height: 420px;
    border: 1px solid #d7e0e5;
    background: #e8eef0;
    color: #526570;
    font-size: 0.9rem;
}

.earthquake-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-top: 15px;
    color: #50636f;
    font-size: 0.77rem;
}

.earthquake-legend strong {
    color: #1b3444;
}

.earthquake-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.earthquake-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.earthquake-dot.mag-2,
.earthquake-magnitude.mag-2 {
    background: #167b67;
}

.earthquake-dot.mag-3,
.earthquake-magnitude.mag-3 {
    background: #a16207;
}

.earthquake-dot.mag-4,
.earthquake-magnitude.mag-4 {
    background: #d97706;
}

.earthquake-dot.mag-5,
.earthquake-magnitude.mag-5 {
    background: #b42318;
}

.earthquake-status {
    margin: 0;
    color: #657782;
    font-size: 0.76rem;
    text-align: right;
}

.earthquake-table-scroll {
    overflow-x: auto;
}

.earthquake-table {
    width: 100%;
    border-collapse: collapse;
    color: #314957;
    font-size: 0.84rem;
    text-align: left;
}

.earthquake-table th {
    padding: 11px 12px;
    border-bottom: 1px solid #dce4e8;
    background: #f5f7f8;
    color: #4b606c;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.earthquake-table td {
    padding: 12px;
    border-bottom: 1px solid #e8edef;
    vertical-align: middle;
}

.earthquake-table td:first-child {
    min-width: 200px;
    font-weight: 600;
}

.earthquake-sort {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.earthquake-sort:hover {
    color: #176b82;
}

.earthquake-sort:focus-visible,
.earthquake-refresh:focus-visible {
    outline: 2px solid #176b82;
    outline-offset: 3px;
}

.earthquake-magnitude {
    display: inline-block;
    min-width: 42px;
    padding: 4px 7px;
    border-radius: 3px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}

.earthquake-table td a,
.earthquake-attribution a {
    color: #176b82;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.earthquake-empty {
    padding: 26px 12px !important;
    color: #657782;
    text-align: center;
}

.earthquake-distance-note,
.earthquake-attribution {
    color: #71818a;
    font-size: 0.75rem;
    line-height: 1.6;
}

.earthquake-distance-note {
    margin: 14px 0 0;
}

.earthquake-attribution {
    margin: 16px 0 0;
}

.summary-update-line {
    margin: -2px 0 -18px;
    color: #647782;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.summary-update-line time {
    color: #1e3d59;
}

html[data-theme="dark"] .summary-update-line {
    color: #b8c5cb;
}

html[data-theme="dark"] .summary-update-line time {
    color: #e6edf1;
}

.astro-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 42px;
}

.astro-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.astro-heading h1 {
    margin: 0;
    color: #172a38;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: -0.055em;
    line-height: 1;
}

.astro-heading > div > p:last-child {
    max-width: 590px;
    margin: 14px 0 0;
    color: #637481;
    font-size: 1rem;
    line-height: 1.65;
}

.astro-location-control {
    display: flex;
    flex: 0 0 290px;
    flex-direction: column;
    gap: 7px;
    padding: 16px;
    border: 1px solid #d6dfe5;
    border-top: 3px solid #75619d;
    background: #fff;
}

.astro-location-control > span,
.astro-eyebrow {
    color: #75619d;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.astro-location-control select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d6dfe5;
    border-radius: 3px;
    background: #fff;
    color: #1d3443;
    font: inherit;
    font-size: 0.9rem;
}

.astro-location-control small {
    color: #70808a;
    font-size: 0.73rem;
}

.astro-status {
    min-height: 1.25rem;
    margin: 0 0 14px;
    color: #61727e;
    font-size: 0.8rem;
}

.astro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.astro-panel {
    padding: 24px;
    border: 1px solid #d7e0e5;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 6px rgb(22 42 56 / 4%);
}

.astro-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e6ebee;
}

.astro-panel-heading h2 {
    margin: 4px 0 0;
    color: #1b3444;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.astro-symbol {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #eadcbd;
    border-radius: 50%;
    background: #fcf6e8;
    color: #936c29;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.astro-moon-symbol {
    border-color: #dad3e8;
    background: #f2eff8;
    color: #75619d;
}

.astro-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding-top: 8px;
}

.astro-event {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 14px 0 10px;
    border-bottom: 1px solid #edf0f2;
}

.astro-event span,
.astro-twilight > span {
    color: #677883;
    font-size: 0.83rem;
}

.astro-event strong {
    color: #1d3443;
    font-size: 0.98rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.astro-twilight {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 15px;
}

.astro-twilight strong {
    color: #1d3443;
    font-size: 0.87rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.moon-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    border-bottom: 1px solid #edf0f2;
}

.moon-summary > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.moon-summary > div:last-child strong {
    color: #29223b;
    font-size: 1.12rem;
}

.moon-summary > div:last-child span {
    color: #677883;
    font-size: 0.81rem;
}

.moon-phase-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid #ded9e9;
    border-radius: 50%;
    background: #f6f4fa;
}

.moon-phase-mark span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(90deg, #8173a1 var(--moon-lit, 0%), #ded9e9 var(--moon-lit, 0%));
}

.astro-phases {
    margin-top: 18px;
}

.astro-source-note {
    color: #7a8790;
    font-size: 0.72rem;
}

.phase-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 18px;
}

.phase-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 106px;
    padding: 15px;
    border: 1px solid #e0dbea;
    border-top: 2px solid #75619d;
    background: #fbfaff;
}

.phase-card strong {
    color: #302846;
    font-size: 0.9rem;
}

.phase-card span {
    color: #677883;
    font-size: 0.77rem;
    font-variant-numeric: tabular-nums;
}

.astro-placeholder {
    grid-column: 1 / -1;
    margin: 0;
    color: #74838c;
    font-size: 0.85rem;
}

.astro-attribution {
    max-width: 820px;
    margin: 22px 0 0;
    color: #74828b;
    font-size: 0.73rem;
    line-height: 1.65;
}

.astro-attribution a {
    color: #5c4c81;
    text-underline-offset: 2px;
}

.portal-footer {
    margin-top: auto;
    padding: 20px 24px;
    border-top: 1px solid var(--mw-line);
    color: #75838d;
    font-size: 0.75rem;
    text-align: center;
}

.site-dashboard .max-w-7xl {
    max-width: 1440px;
}

.dashboard-masthead {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(210px, 0.85fr) minmax(260px, 1.25fr) auto;
    align-items: center;
    gap: 32px;
    margin: -32px -16px 24px;
    padding: 22px 16px;
    color: #fff;
}

.dashboard-masthead::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: #102a3b;
    box-shadow: 0 0 0 100vmax #102a3b;
    clip-path: inset(0 -100vmax);
    content: "";
}

.dashboard-location p,
.observation-label {
    display: block;
    margin: 0 0 5px;
    color: #93b4c1;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.dashboard-location h1 {
    margin: 0;
    color: #fff !important;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.dashboard-location > span {
    display: block;
    margin-top: 5px;
    color: #c1d0d7;
    font-size: 0.78rem;
}

.header-live-temp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    min-width: 160px;
}

.header-live-temp .temp {
    color: #fff !important;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.05;
}

.header-live-temp .update-time {
    color: #b7c8d0;
    font-size: 0.72rem;
}

.site-southbay {
    --site-accent: #1a7485;
    --site-accent-soft: #e5f2f3;
    --site-line: #cfe1e3;
}

.site-mohave {
    --site-accent: #a25b32;
    --site-accent-soft: #f5eadc;
    --site-line: #e1d3c0;
}

body.site-dashboard.site-southbay {
    background: linear-gradient(180deg, #eaf4f5 0%, #f2f6f4 52%, #f5f1e9 100%) !important;
}

body.site-dashboard.site-mohave {
    background: linear-gradient(180deg, #f3eee4 0%, #f5f1e9 58%, #e9e5d9 100%) !important;
}

.site-southbay .dashboard-masthead::before {
    background:
        radial-gradient(ellipse at 72% 125%, rgb(107 190 190 / 22%), transparent 48%),
        repeating-linear-gradient(175deg, transparent 0 46px, rgb(255 255 255 / 3%) 47px 48px),
        linear-gradient(110deg, #103f50, #176b78 52%, #103f50);
    box-shadow: 0 0 0 100vmax #103f50;
}

.site-mohave .dashboard-masthead::before {
    background: linear-gradient(110deg, #414536, #745438 52%, #414536);
    box-shadow: 0 0 0 100vmax #414536;
}

.site-mohave .dashboard-masthead::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    width: 46%;
    height: 100%;
    background: rgb(236 207 161 / 9%);
    clip-path: polygon(0 100%, 13% 55%, 24% 79%, 47% 23%, 62% 65%, 77% 42%, 100% 100%);
    content: "";
    pointer-events: none;
}

.site-southbay .dashboard-location p,
.site-southbay .observation-label {
    color: #a8d7dc;
}

.site-mohave .dashboard-location p,
.site-mohave .observation-label {
    color: #e2c59e;
}

.dashboard-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    overflow-x: auto;
    border-bottom: 1px solid var(--mw-line);
}

.site-dashboard .tab-btn {
    flex: 0 0 auto;
    padding: 10px 14px !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #5d6e79 !important;
    box-shadow: none !important;
    font-size: 0.82rem !important;
    font-weight: 650 !important;
    transition: background 120ms ease, color 120ms ease !important;
}

.site-dashboard .tab-btn:hover {
    background: #e5ecef !important;
    color: var(--mw-ink) !important;
}

.site-dashboard .tab-btn[aria-current="page"] {
    border-color: var(--site-accent) !important;
    background: var(--site-accent) !important;
    color: #fff !important;
}

.site-dashboard #tab-content-live {
    gap: 20px !important;
}

.site-dashboard #weekly-forecast-grid img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
}

.site-dashboard .forecast-outlook {
    border-color: var(--site-line) !important;
}

.site-dashboard .forecast-outlook > h4 {
    margin-bottom: 16px !important;
    color: var(--site-accent) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em !important;
}

.site-dashboard #detailed-outlook-grid > div,
.site-dashboard #weekly-forecast-details > div {
    gap: 8px !important;
    padding: 16px !important;
    border: 1px solid var(--site-line) !important;
    border-left: 3px solid var(--site-accent) !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.site-dashboard #detailed-outlook-grid h5,
.site-dashboard #weekly-forecast-details > div > span {
    margin: 0 !important;
    color: var(--site-accent) !important;
    font-size: 0.76rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.07em;
}

.site-dashboard #detailed-outlook-grid p,
.site-dashboard #weekly-forecast-details p {
    margin: 0 !important;
    color: #405563 !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
}

.site-dashboard .dashboard-nav {
    border-color: var(--site-line);
}

.site-dashboard [class*="rounded-3xl"],
.site-dashboard [class*="rounded-2xl"] {
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgb(21 43 59 / 5%) !important;
    backdrop-filter: none !important;
}

.site-dashboard [class~="bg-white/70"],
.site-dashboard [class~="bg-white/60"],
.site-dashboard [class~="bg-white/50"],
.site-dashboard [class~="bg-white/40"],
.site-dashboard [class*="bg-gradient-to-br"]:not([class~="text-white"]) {
    background: #fff !important;
    border-color: var(--mw-line) !important;
}

.site-dashboard h2,
.site-dashboard h3 {
    color: #1e3a4b !important;
}

.site-dashboard h1,
.site-dashboard h2,
.site-dashboard h3,
.site-dashboard h4 {
    font-family: "Segoe UI", Arial, sans-serif !important;
}

.site-dashboard #coastal-summary-text,
.site-dashboard #kingman-digest {
    color: #405563 !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
}

.site-dashboard .weather-metrics > div {
    border: 1px solid var(--mw-line) !important;
    border-top: 2px solid var(--site-accent) !important;
    border-radius: 4px !important;
    background: #f9fbfc !important;
    box-shadow: none !important;
}

.site-dashboard .weather-metrics > div > span:first-child {
    color: var(--site-accent) !important;
}

.site-dashboard .weather-metrics [id^="metric-"] {
    color: #1b3444 !important;
}

.site-dashboard [class~="text-slate-500"],
.site-dashboard [class~="text-slate-600"] {
    color: var(--mw-muted) !important;
}

.site-dashboard .city-btn {
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #304957 !important;
}

.site-dashboard .city-btn[class*="bg-amber-100"] {
    border-color: var(--site-accent) !important;
    background: var(--site-accent-soft) !important;
    color: var(--site-accent) !important;
}

.site-southbay #tab-content-live > aside > div:last-child {
    border-color: #103f50 !important;
    background: #103f50 !important;
}

.site-southbay #tab-content-live > aside > div:last-child h4 {
    color: #a8d7dc !important;
}

.site-southbay #tab-content-live > aside > div:last-child p {
    color: #e1eff0 !important;
}

.site-mohave #tab-content-live > aside > div:last-child {
    border-color: #414536 !important;
    background: linear-gradient(145deg, #414536, #745438) !important;
}

.site-mohave #tab-content-live > aside > div:last-child h4 {
    color: #e5cda9 !important;
}

.site-mohave #tab-content-live > aside > div:last-child p {
    color: #f0e6d6 !important;
}

.site-dashboard #nws-alert-bar,
.site-dashboard #manual-notice,
.site-dashboard #manual-alert-bar {
    background: #9d332e !important;
    box-shadow: none !important;
}

.site-dashboard .newsletter-panel {
    border: 1px solid var(--mw-line) !important;
    border-top: 3px solid var(--site-accent) !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--mw-ink) !important;
}

.site-dashboard .newsletter-panel > div > span {
    border-radius: 3px !important;
    background: var(--site-accent-soft) !important;
    color: var(--site-accent) !important;
}

.site-dashboard .newsletter-panel h3 {
    color: var(--mw-ink) !important;
}

.site-dashboard .newsletter-panel p {
    color: var(--mw-muted) !important;
}

.site-dashboard .newsletter-panel input {
    border: 1px solid var(--mw-line) !important;
    border-radius: 4px !important;
    background: #fff !important;
}

.site-dashboard .newsletter-panel button {
    border-radius: 4px !important;
    background: var(--site-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.site-dashboard footer {
    color: var(--mw-muted) !important;
    border-color: var(--mw-line) !important;
}

.site-national,
.site-telemetry {
    font-family: Inter, "Segoe UI", sans-serif !important;
}

html.light body.site-national {
    background: var(--mw-canvas) !important;
    color: var(--mw-ink) !important;
}

html.light .site-national .app-card {
    background: var(--mw-paper) !important;
    border-color: var(--mw-line) !important;
    color: var(--mw-ink) !important;
    box-shadow: 0 1px 3px rgb(21 43 59 / 7%) !important;
}

html.light .site-national .app-card .text-white,
html.light .site-national .app-card [class~="text-slate-100"] {
    color: var(--mw-ink) !important;
}

html.light .site-national .app-card [class~="text-slate-400"],
html.light .site-national .app-card [class~="text-slate-500"] {
    color: var(--mw-muted) !important;
}

html.light .site-national [class*="from-blue-900/40"] {
    background: #f4f8fb !important;
    border-color: var(--mw-line) !important;
}

html.light .site-national [class~="text-blue-400"] {
    color: var(--mw-blue) !important;
}

.site-national [class*="rounded-3xl"],
.site-national [class*="rounded-2xl"],
.site-telemetry [class*="rounded-3xl"],
.site-telemetry [class*="rounded-2xl"] {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgb(0 0 0 / 12%) !important;
    backdrop-filter: none !important;
}

.site-error {
    overflow-y: auto !important;
}

.site-error [class*="rounded-3xl"],
.site-error [class*="rounded-2xl"] {
    border-radius: 12px !important;
}

.site-error .text-white {
    color: var(--mw-ink) !important;
}

.site-error [class~="text-slate-300"],
.site-error [class~="text-slate-400"],
.site-error [class~="text-slate-500"],
.site-error [class~="text-slate-600"] {
    color: var(--mw-muted) !important;
}

.site-error [class~="bg-white/5"] {
    background: var(--mw-paper) !important;
    border-color: var(--mw-line) !important;
}

.site-radar .brand-overlay {
    border-radius: 8px !important;
    background: rgb(17 35 49 / 94%) !important;
    box-shadow: 0 2px 8px rgb(0 0 0 / 20%) !important;
    backdrop-filter: none !important;
}

@media (max-width: 640px) {
    .portal-topbar {
        min-height: 68px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        padding: 10px 16px;
    }

    .portal-nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .portal-nav a {
        font-size: 0.72rem;
    }

    .portal-brand small {
        display: none;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .coverage-panel {
        padding: 14px 0 0;
        border-top: 1px solid var(--mw-line);
        border-left: 0;
    }

    .home-section-heading {
        display: block;
    }

    .home-section-heading > span {
        display: block;
        margin-top: 8px;
    }

    .astro-main {
        width: min(100% - 32px, 640px);
        padding: 32px 0;
    }

    .astro-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .astro-location-control {
        flex-basis: auto;
    }

    .astro-grid {
        grid-template-columns: 1fr;
    }

    .astro-panel {
        padding: 18px;
    }

    .phase-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-masthead {
        grid-template-columns: 1fr auto;
        gap: 18px 12px;
        margin-right: -16px;
        margin-left: -16px;
        padding: 18px 16px;
    }

    .dashboard-brand {
        grid-column: 1 / -1;
    }

    .dashboard-brand img {
        width: 34px;
        height: 34px;
    }

    .dashboard-location h1 {
        font-size: 1.3rem;
    }

    .dashboard-location > span {
        max-width: 220px;
        font-size: 0.69rem;
    }

    .header-live-temp {
        min-width: 0;
    }

    .header-live-temp .temp {
        font-size: 1.7rem;
    }

    .header-live-temp .update-time {
        text-align: right;
    }

    .site-dashboard .tab-btn {
        padding: 9px 11px !important;
    }
}

@media (min-width: 640px) {
    .dashboard-masthead {
        margin-right: -24px;
        margin-left: -24px;
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 900px) {
    .dashboard-masthead {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px 24px;
    }

    .dashboard-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .dashboard-masthead {
        margin-right: -32px;
        margin-left: -32px;
        padding-right: 32px;
        padding-left: 32px;
    }
}

@media (max-width: 640px) {
    .portal-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 2px 0 5px;
        scrollbar-width: thin;
    }

    .portal-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .earthquake-main {
        width: min(100% - 32px, 640px);
        padding: 32px 0;
    }

    .earthquake-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .earthquake-refresh {
        align-self: flex-start;
    }

    .earthquake-panel {
        padding: 16px;
    }

    .earthquake-map {
        height: 340px;
    }

    .earthquake-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .earthquake-status {
        text-align: left;
    }
}

body.site-home,
body.site-dashboard,
body.site-national,
body.site-astronomy,
body.site-earthquakes,
body.site-radar,
body.site-telemetry,
body.site-error {
    margin: 0;
}

.site-theme-control {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d5dee3;
    border-radius: 999px;
    background: #fff;
    color: #314957;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(21 43 59 / 7%);
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.site-theme-control:hover {
    transform: translateY(-1px);
    border-color: #9aafb9;
    background: #f7fafb;
    box-shadow: 0 3px 8px rgb(21 43 59 / 10%);
}

.site-theme-control:focus-visible,
.site-national-alert-acknowledge:focus-visible,
.home-newsletter-form input:focus-visible,
.home-newsletter-form button:focus-visible {
    outline: 2px solid #176b82;
    outline-offset: 3px;
}

.site-theme-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-theme-control-floating {
    position: fixed;
    z-index: 9998;
    top: 14px;
    right: 14px;
    box-shadow: 0 2px 12px rgb(0 0 0 / 16%);
}

.portal-nav .site-theme-control {
    border-color: rgb(255 255 255 / 24%);
    background: rgb(255 255 255 / 8%);
    color: #fff;
}

.portal-nav .site-theme-control:hover {
    background: rgb(255 255 255 / 15%);
}

.dashboard-nav .site-theme-control {
    margin-left: 4px;
}

html[data-theme="dark"] .site-theme-control {
    border-color: #40535f;
    background: #1b2b36;
    color: #e2ebef;
    box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}

html[data-theme="dark"] .site-theme-control:hover {
    border-color: #718692;
    background: #263944;
    box-shadow: 0 3px 9px rgb(0 0 0 / 24%);
}

html[data-theme="dark"] .site-theme-control:focus-visible {
    outline-color: #8ed6e0;
}

.site-national-alert {
    position: sticky;
    z-index: 10000;
    top: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px max(calc((100vw - 1200px) / 2), 20px);
    border-bottom: 2px solid #fecaca;
    background: #7f1d1d;
    color: #fff;
    box-shadow: 0 4px 16px rgb(51 10 10 / 28%);
}

.site-national-alert[hidden],
.site-national-alert-backdrop[hidden] {
    display: none !important;
}

.site-national-alert-label {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 3px;
    color: #fff;
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.site-national-alert-message {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    white-space: pre-wrap;
}

.site-national-alert-backdrop {
    position: fixed;
    z-index: 10001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgb(10 15 20 / 78%);
}

.site-national-alert-dialog {
    width: min(560px, 100%);
    padding: clamp(22px, 5vw, 36px);
    border: 2px solid #fecaca;
    border-top: 8px solid #b91c1c;
    border-radius: 6px;
    background: #fff;
    color: #1b2932;
    box-shadow: 0 24px 70px rgb(0 0 0 / 38%);
}

.site-national-alert-dialog h2 {
    margin: 0;
    color: #8f1515;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.025em;
}

.site-national-alert-dialog p {
    margin: 15px 0 24px;
    color: #3c4b54;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.65;
    white-space: pre-wrap;
}

.site-national-alert-acknowledge {
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 4px;
    background: #991b1b;
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.site-national-alert-acknowledge:hover {
    background: #7f1d1d;
}

.home-hero-copy {
    padding-left: 18px;
    border-left: 3px solid #3b91a2;
}

.home-cards > a {
    background: linear-gradient(145deg, #fff, #f8fbfc) !important;
}

.home-cards > a:nth-child(2) {
    border-top: 3px solid #d5ad78 !important;
    background: linear-gradient(145deg, #fff, #fbf6ee) !important;
}

.home-cards > a:nth-child(1) {
    border-top: 3px solid #78b9c9 !important;
    background: linear-gradient(145deg, #fff, #f0f8fa) !important;
}

.home-cards > a:nth-child(3) {
    border-top: 3px solid #8eadd7 !important;
    background: linear-gradient(145deg, #fff, #f3f6fc) !important;
}

.home-cards > a:nth-child(4) {
    border-top: 3px solid #7eb69b !important;
    background: linear-gradient(145deg, #fff, #f1f8f4) !important;
}

.home-cards > a:nth-child(5) {
    border-top: 3px solid #a69acb !important;
    background: linear-gradient(145deg, #fff, #f6f4fb) !important;
}

.home-cards > a:nth-child(6) {
    border-top: 3px solid #d38b82 !important;
    background: linear-gradient(145deg, #fff, #fcf4f2) !important;
}

.home-dashboard-icon {
    display: grid !important;
    width: 54px;
    height: 54px;
    place-content: center;
    justify-items: center;
    gap: 2px;
    padding: 5px !important;
    border-radius: 10px !important;
    font-size: 0.55rem !important;
    line-height: 1;
}

.home-dashboard-icon svg {
    width: 23px;
    height: 23px;
}

.home-dashboard-icon > span {
    color: currentColor;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.home-icon-southbay {
    background: #e6f4f8 !important;
    color: #176b82 !important;
}

.home-icon-mohave {
    background: #f6efe3 !important;
    color: #8d5d2e !important;
}

.home-icon-national {
    background: #e9f0fb !important;
    color: #2b5f9a !important;
}

.home-icon-radar {
    background: #e8f4ee !important;
    color: #267558 !important;
}

.home-icon-sky {
    background: #efedf8 !important;
    color: #695b91 !important;
}

.home-icon-earthquake {
    background: #f9ecea !important;
    color: #a13a31 !important;
}

.home-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: 28px;
    margin-top: 28px;
    padding: 25px 28px;
    border: 1px solid #cddde2;
    border-left: 4px solid #267f8e;
    border-radius: 5px;
    background: linear-gradient(110deg, #f0f8f9, #fff 62%);
}

.home-newsletter h2 {
    margin: 2px 0 6px;
    color: #1b3444;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.home-newsletter > div > p:last-child {
    max-width: 600px;
    margin: 0;
    color: #637481;
    font-size: 0.82rem;
    line-height: 1.55;
}

.home-newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.home-newsletter-form input {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #cbd7dc;
    border-radius: 4px;
    background: #fff;
    color: #1b3444;
    font: inherit;
    font-size: 0.85rem;
}

.home-newsletter-form button {
    padding: 10px 14px;
    border: 0;
    border-radius: 4px;
    background: #176b82;
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.home-newsletter-form button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.home-newsletter-status {
    grid-column: 1 / -1;
    min-height: 1em;
    margin: 0;
    color: #647782;
    font-size: 0.72rem;
    line-height: 1.4;
}

@media (min-width: 1100px) {
    .home-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-hero-copy {
        padding-left: 13px;
    }

    .home-newsletter {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 19px;
    }

    .site-national-alert {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 11px 16px;
    }

    .site-national-alert-message {
        font-size: 0.82rem;
    }

    .home-newsletter-form {
        grid-template-columns: 1fr;
    }

    .site-dashboard .dashboard-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

html[data-theme="dark"] {
    color-scheme: dark;
    --mw-ink: #e6edf1;
    --mw-muted: #a2b1ba;
    --mw-line: #354752;
    --mw-paper: #17252f;
    --mw-canvas: #101a22;
}

html[data-theme="dark"] body.site-dashboard,
html[data-theme="dark"] body.site-national,
html[data-theme="dark"] body.site-astronomy,
html[data-theme="dark"] body.site-earthquakes,
html[data-theme="dark"] body.site-error,
html[data-theme="dark"] body.site-telemetry {
    background: #101a22 !important;
    color: #e6edf1 !important;
    color-scheme: dark;
}

html[data-theme="dark"] body.site-home {
    background:
        radial-gradient(ellipse at 10% 12%, rgb(72 143 163 / 10%), transparent 28rem),
        radial-gradient(ellipse at 90% 42%, rgb(164 123 67 / 8%), transparent 30rem),
        #101a22 !important;
    color: #e6edf1 !important;
    color-scheme: dark;
}

html[data-theme="dark"] body.site-home,
html[data-theme="dark"] body.site-dashboard,
html[data-theme="dark"] body.site-national,
html[data-theme="dark"] body.site-astronomy,
html[data-theme="dark"] body.site-earthquakes,
html[data-theme="dark"] body.site-error {
    color-scheme: dark;
}

html[data-theme="dark"] .portal-footer {
    border-color: #354752;
    background: #101a22;
    color: #a2b1ba;
}

html[data-theme="dark"] .portal-brand,
html[data-theme="dark"] .portal-nav a {
    color: #e4edf1;
}

html[data-theme="dark"] .home-kicker {
    color: #83cbd8;
}

html[data-theme="dark"] .site-theme-control {
    border-color: #425560;
    background: #1b2b36;
    color: #e6edf1;
}

html[data-theme="dark"] .portal-nav .site-theme-control {
    border-color: rgb(255 255 255 / 24%);
    background: rgb(255 255 255 / 8%);
    color: #fff;
}

html[data-theme="dark"] .home-hero h1,
html[data-theme="dark"] .home-section-heading h2,
html[data-theme="dark"] .coverage-panel strong,
html[data-theme="dark"] .home-newsletter h2 {
    color: #e6edf1;
}

html[data-theme="dark"] .home-hero {
    border-color: #354752;
    background: linear-gradient(115deg, #172832 0%, #1a2e36 68%, #1d302d 100%);
}

html[data-theme="dark"] .home-intro,
html[data-theme="dark"] .coverage-panel div span,
html[data-theme="dark"] .home-section-heading > span,
html[data-theme="dark"] .home-newsletter > div > p:last-child {
    color: #a2b1ba;
}

html[data-theme="dark"] .coverage-panel div,
html[data-theme="dark"] .home-cards > a > div:last-child {
    border-color: #354752 !important;
}

html[data-theme="dark"] .home-cards > a > div:last-child {
    color: #8ed6e0 !important;
}

html[data-theme="dark"] .home-cards > a {
    border-color: #354752 !important;
    background: linear-gradient(145deg, #1a2a34, #15232c) !important;
}

html[data-theme="dark"] .home-cards h2 {
    color: #e6edf1 !important;
}

html[data-theme="dark"] .home-cards p {
    color: #a9b8c0 !important;
}

html[data-theme="dark"] .home-cards > a > div:first-child > div:first-child > span:last-child {
    border-color: #40515b;
    background: #21323c !important;
    color: #c2cdd2 !important;
}

html[data-theme="dark"] .home-newsletter {
    border-color: #354752;
    background: linear-gradient(110deg, #1a2c34, #15232c 65%);
}

html[data-theme="dark"] .home-newsletter-form input {
    border-color: #465963;
    background: #111d25;
    color: #e6edf1;
}

html[data-theme="dark"] .home-newsletter-status,
html[data-theme="dark"] .astro-heading > div > p:last-child,
html[data-theme="dark"] .earthquake-heading > div > p:last-child,
html[data-theme="dark"] .earthquake-status,
html[data-theme="dark"] .earthquake-distance-note,
html[data-theme="dark"] .earthquake-attribution,
html[data-theme="dark"] .earthquake-count {
    color: #a2b1ba;
}

html[data-theme="dark"] .astro-panel,
html[data-theme="dark"] .earthquake-panel {
    border-color: #354752;
    background: #17252f;
    color: #e6edf1;
}

html[data-theme="dark"] .astro-panel-heading h2,
html[data-theme="dark"] .astro-event strong,
html[data-theme="dark"] .astro-event span,
html[data-theme="dark"] .astro-twilight strong,
html[data-theme="dark"] .astro-twilight > span,
html[data-theme="dark"] .astro-status,
html[data-theme="dark"] .astro-attribution,
html[data-theme="dark"] .astro-placeholder,
html[data-theme="dark"] .phase-card span,
html[data-theme="dark"] .earthquake-panel-heading h2,
html[data-theme="dark"] .earthquake-legend strong {
    color: #aebcc4;
}

html[data-theme="dark"] .astro-panel-heading h2,
html[data-theme="dark"] .astro-event strong,
html[data-theme="dark"] .astro-twilight strong,
html[data-theme="dark"] .earthquake-panel-heading h2,
html[data-theme="dark"] .earthquake-legend strong {
    color: #e6edf1;
}

html[data-theme="dark"] .phase-card {
    border-color: #354752;
    background: #202f39;
}

html[data-theme="dark"] .phase-card strong {
    color: #e6edf1;
}

html[data-theme="dark"] .site-dashboard .newsletter-panel {
    border-color: #354752 !important;
    background: #17252f !important;
    color: #e6edf1 !important;
}

html[data-theme="dark"] .site-dashboard .newsletter-panel h3,
html[data-theme="dark"] .site-dashboard .newsletter-panel p {
    color: #d3dee3 !important;
}

html[data-theme="dark"] .earthquake-table {
    color: #d7e1e6;
}

html[data-theme="dark"] .earthquake-table th {
    border-color: #354752;
    background: #202f39;
    color: #d2dde2;
}

html[data-theme="dark"] .earthquake-table td {
    border-color: #2b3c46;
}

html[data-theme="dark"] .earthquake-empty {
    color: #a2b1ba;
}

html[data-theme="dark"] .earthquake-refresh {
    border-color: #465963;
    background: #1b2b36;
    color: #e6edf1;
}

html[data-theme="dark"] .site-dashboard [class*="bg-white/"],
html[data-theme="dark"] .site-dashboard [class~="bg-white"],
html[data-theme="dark"] .site-dashboard [class*="bg-gradient-to-br"]:not([class~="text-white"]) {
    background: #17252f !important;
    border-color: #354752 !important;
    color: #e6edf1 !important;
}

html[data-theme="dark"] .site-dashboard [class~="text-slate-700"],
html[data-theme="dark"] .site-dashboard [class~="text-slate-600"],
html[data-theme="dark"] .site-dashboard [class~="text-slate-500"],
html[data-theme="dark"] .site-dashboard [class~="text-slate-400"] {
    color: #aebcc4 !important;
}

html[data-theme="dark"] .site-dashboard [class*="border-sky-100"],
html[data-theme="dark"] .site-dashboard [class*="border-white/"] {
    border-color: #354752 !important;
}

html[data-theme="dark"] .site-dashboard .tab-btn:not([aria-current="page"]) {
    color: #aebcc4 !important;
}

html[data-theme="dark"] .site-dashboard .tab-btn:not([aria-current="page"]):hover {
    background: #263843 !important;
    color: #e6edf1 !important;
}

html[data-theme="dark"] .site-dashboard h2,
html[data-theme="dark"] .site-dashboard h3,
html[data-theme="dark"] .site-dashboard #detailed-outlook-grid h5,
html[data-theme="dark"] .site-dashboard #weekly-forecast-details > div > span {
    color: #e6edf1 !important;
}

html[data-theme="dark"] .site-dashboard #detailed-outlook-grid > div,
html[data-theme="dark"] .site-dashboard #weekly-forecast-details > div,
html[data-theme="dark"] .site-dashboard .weather-metrics > div {
    border-color: #354752 !important;
    background: #17252f !important;
    color: #e6edf1 !important;
}

html[data-theme="dark"] .site-dashboard #detailed-outlook-grid p,
html[data-theme="dark"] .site-dashboard #weekly-forecast-details p,
html[data-theme="dark"] .site-dashboard #coastal-summary-text,
html[data-theme="dark"] .site-dashboard #kingman-digest {
    color: #c2cfd6 !important;
}

html[data-theme="dark"] .site-dashboard .weather-metrics [id^="metric-"],
html[data-theme="dark"] .site-dashboard .city-btn {
    color: #e6edf1 !important;
}

html[data-theme="dark"] .site-dashboard .city-btn[class*="bg-amber-100"] {
    border-color: var(--site-accent) !important;
    background: var(--site-accent) !important;
    color: #fff !important;
}

html[data-theme="light"] body.site-error,
html[data-theme="light"] body.site-telemetry {
    background: #edf2f4 !important;
    color: #172a38 !important;
}

html[data-theme="light"] body.site-error [class*="bg-white/5"],
html[data-theme="light"] body.site-telemetry [class*="bg-white/5"] {
    background: #fff !important;
    border-color: #d7e0e5 !important;
    color: #172a38 !important;
}

html[data-theme="light"] body.site-error .text-white {
    color: #172a38 !important;
}

html[data-theme="light"] body.site-telemetry #auth-gate,
html[data-theme="light"] body.site-telemetry #dashboard-content > header {
    background: #f4f7f8 !important;
}

html[data-theme="light"] body.site-telemetry #lock-panel,
html[data-theme="light"] body.site-telemetry .app-card,
html[data-theme="light"] body.site-telemetry [class*="bg-[#0f172a]"] {
    background: #fff !important;
    border-color: #d7e0e5 !important;
    color: #172a38 !important;
}

html[data-theme="light"] body.site-telemetry #auth-gate h1,
html[data-theme="light"] body.site-telemetry #dashboard-content > header h2 {
    color: #172a38 !important;
}

html[data-theme="light"] body.site-telemetry #auth-gate label,
html[data-theme="light"] body.site-telemetry #auth-gate p:not(#auth-error),
html[data-theme="light"] body.site-telemetry #dashboard-content > header p {
    color: #637481 !important;
}

html[data-theme="light"] .site-national .app-card button.text-white,
html[data-theme="light"] .site-national .app-card a.text-white {
    color: #fff !important;
}

html[data-theme="light"] body.site-radar {
    background-color: #e9eff2 !important;
}

html[data-theme="dark"] body.site-radar {
    background-color: #0d1117 !important;
}

html[data-theme="light"] .site-radar .brand-overlay {
    border-color: rgb(23 42 56 / 18%) !important;
    background: rgb(255 255 255 / 96%) !important;
    color: #172a38 !important;
    box-shadow: 0 8px 22px rgb(22 42 56 / 18%) !important;
}

html[data-theme="dark"] .site-radar .brand-overlay {
    border-color: rgb(255 255 255 / 15%);
    background: rgb(15 23 42 / 95%);
    color: #fff;
}

.site-radar .site-national-alert {
    position: fixed;
    right: 0;
    left: 0;
}

html[data-theme="dark"] .site-mohave [class*="text-amber-"],
html[data-theme="dark"] .site-mohave [class*="text-orange-"],
html[data-theme="dark"] .site-mohave [class*="text-yellow-"],
html[data-theme="dark"] .site-mohave [class*="text-stone-"],
html[data-theme="dark"] .site-mohave [class*="text-[#7c2d12]"],
html[data-theme="dark"] .site-mohave [class*="text-[#9a3412]"] {
    color: #e6c39f !important;
}

html[data-theme="dark"] .site-mohave [class*="bg-amber-"],
html[data-theme="dark"] .site-mohave [class*="bg-orange-"],
html[data-theme="dark"] .site-mohave [class*="bg-yellow-"] {
    border-color: #51483a !important;
    background: #292d2b !important;
}

html[data-theme="dark"] .site-mohave [class*="border-amber-"],
html[data-theme="dark"] .site-mohave [class*="border-orange-"],
html[data-theme="dark"] .site-mohave [class*="border-yellow-"] {
    border-color: #51483a !important;
}

html[data-theme="dark"] .site-mohave .city-btn[class*="bg-amber-100"] {
    border-color: #c28b61 !important;
    background: #8d512f !important;
    color: #fff !important;
}

html[data-theme="dark"] .site-mohave .city-btn[class*="bg-amber-100"] [class*="text-amber-"] {
    color: #fff1dc !important;
}

html[data-theme="dark"] .site-mohave .city-btn > span:last-child {
    color: #b8c5cb !important;
    opacity: 1;
}

html[data-theme="dark"] .site-mohave .weather-metrics > div > span:first-child,
html[data-theme="dark"] .site-mohave .forecast-outlook > h4 {
    color: #e6c39f !important;
}
