
:root{font-family:Arial,Helvetica,sans-serif;color:#e7ecec;background:#07131a;--gap:10px}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#07131a}
#screen{height:100dvh;width:100%;overflow:hidden;padding:12px;display:grid;gap:var(--gap);grid-template-columns:minmax(0,1fr);grid-template-rows:64px minmax(0,1.55fr) minmax(0,1fr) 18px;background:radial-gradient(circle at 40% 5%,#10222c,#07131a 72%)}
.header{min-width:0;display:grid;grid-template-columns:1.12fr 1fr 1.15fr .95fr;gap:10px;align-items:center;border-bottom:2px solid #71858c;font-weight:800;font-size:clamp(16px,1.7vw,30px);white-space:nowrap;overflow:hidden}
.header>div:not(:first-child){border-left:2px solid #7c8b91;padding-left:10px}.header small{text-align:right;color:#f4c52e;font-size:clamp(13px,1.15vw,21px);line-height:1.25;white-space:normal}.header small span{color:#96b0b9;font-size:11px}
.top{min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:var(--gap)}
.camera-wrap{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:stretch}.cam-label{height:32px;flex:0 0 32px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:clamp(12px,1.1vw,18px);font-weight:700;white-space:nowrap;overflow:hidden}.cam-label span:last-child{font-size:12px;color:#f4c52e}.red-dot{display:inline-block;width:11px;height:11px;background:#ed3341;border-radius:50%;margin-right:7px}
.camera{position:relative;aspect-ratio:16/9;max-height:calc(100% - 32px);width:auto;max-width:100%;align-self:center;overflow:hidden;border:2px solid #91a5ac}.camera img{display:block;width:100%;height:100%;object-fit:cover}.camera-note{position:absolute;bottom:0;left:0;right:0;padding:5px 8px;background:#07131acc;color:white;font-size:12px;letter-spacing:1px}
.side{min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,1.2fr) minmax(0,1fr);gap:var(--gap)}
.panel{min-width:0;min-height:0;overflow:hidden;border:1px solid #6e858e;border-radius:7px;padding:10px 12px}.panel h2{font-size:clamp(17px,1.3vw,22px);line-height:1.1;margin:0 0 8px;font-weight:800;letter-spacing:.3px}
.condition-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:10px}.temp{display:flex;align-items:center;gap:8px;margin-bottom:5px;flex-wrap:wrap}.temp #temp{font-size:clamp(31px,3vw,52px);font-weight:800;white-space:nowrap}.yellow{color:#f5c62e}.temp #condition{font-size:16px;font-weight:700}.readout{display:flex;justify-content:space-between;gap:5px;font-size:15px;padding:3px 0;border-bottom:1px solid #38515b}.readout b{text-align:right}.rain{border-left:1px solid #637982;padding-left:10px}.eyebrow{color:#a5c5d0;font-size:13px;font-weight:700}.rain strong{display:block;font-size:30px;margin:3px 0 8px}.rain p{font-size:14px;font-weight:700;margin:5px 0 8px;overflow-wrap:anywhere}
.astro-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.astro-item+.astro-item{border-left:1px solid #607983;padding-left:9px}.astro-top{display:flex;align-items:center;gap:8px;min-height:42px}.astro-top b{font-size:16px}.astro-top p{font-size:13px;margin:2px 0}.moon-symbol,.sun-symbol{font-size:40px;line-height:1;color:#e5e3d7}.sun-symbol{color:#f5c62e}.planets{border-top:1px solid #607983;margin-top:8px;padding-top:8px;display:flex;justify-content:space-between;gap:8px;font-size:13px}
.bottom{min-width:0;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}.days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(100% - 30px);min-height:0}.day{text-align:center;border-right:1px solid #4d6670;padding:3px 2px;min-width:0}.day:last-child{border:0}.day .weekday{font-size:16px;font-weight:700}.day .symbol{font-size:29px;height:46px;display:flex;align-items:center;justify-content:center;color:#f5c62e}.day .hi{font-size:25px;font-weight:800}.day .lo{font-size:20px;color:#8ac5dc;margin-top:4px}.day .chance{font-size:15px;color:#9db5c1;margin-top:8px}
.iss{display:flex;flex-direction:column}.chart{min-height:0;flex:1}.chart svg{height:100%;width:100%}.iss-footer{border-top:1px solid #506773;padding-top:6px;display:flex;justify-content:space-between;gap:8px;font-size:15px}.iss-footer strong{color:#f5c62e;text-align:right}
.earth{display:flex;flex-direction:column}.earth-row{min-height:0;flex:1;border-bottom:1px solid #4a626c;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px}.earth-row b{color:#9ddb68;font-size:14px;text-align:right;overflow-wrap:anywhere}.earth-row span{min-width:0}
footer{min-width:0;overflow:hidden;display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.7px;color:#748f9b;white-space:nowrap}
/* Progressive disclosure is cumulative. Compact and minimal inherit all earlier hiding. */
.panel[data-density="medium"] .rain p#rain-total,
.panel[data-density="compact"] .rain p#rain-total,
.panel[data-density="minimal"] .rain p#rain-total,
.conditions:is([data-density="medium"],[data-density="compact"],[data-density="minimal"]) .readout:has(#pressure),
.conditions:is([data-density="medium"],[data-density="compact"],[data-density="minimal"]) .readout:has(#humidity),
.conditions:is([data-density="medium"],[data-density="compact"],[data-density="minimal"]) .rain .eyebrow:last-of-type{display:none}
.conditions:is([data-density="compact"],[data-density="minimal"]) .readout,
.conditions:is([data-density="compact"],[data-density="minimal"]) .rain p,
.conditions:is([data-density="compact"],[data-density="minimal"]) .rain .eyebrow:not(:first-child){display:none}
.conditions[data-density="minimal"] .condition-grid{grid-template-columns:minmax(0,1fr) auto}
.conditions[data-density="minimal"] .rain .eyebrow{display:none}
.conditions[data-density="minimal"] .rain strong{font-size:23px}
.conditions[data-density="minimal"] .temp #temp{font-size:31px}
.astronomy:is([data-density="medium"],[data-density="compact"],[data-density="minimal"]) .planets{display:none}
.astronomy:is([data-density="compact"],[data-density="minimal"]) .astro-top p{display:none}
.astronomy[data-density="minimal"] .readout{display:none}
.astronomy[data-density="minimal"] .moon-symbol,.astronomy[data-density="minimal"] .sun-symbol{font-size:30px}
.forecast:is([data-density="medium"],[data-density="compact"],[data-density="minimal"]) .chance{display:none}
.forecast:is([data-density="compact"],[data-density="minimal"]) .lo{display:none}
.forecast[data-density="minimal"] .hi{display:none}
.forecast[data-density="minimal"] .day .weekday{font-size:14px}
.forecast[data-density="minimal"] .day .symbol{height:32px;font-size:23px}
.forecast[data-density="compact"] .day .symbol{height:38px;font-size:27px}
.iss:is([data-density="compact"],[data-density="minimal"]) .chart{display:none}
.iss:is([data-density="compact"],[data-density="minimal"]) .iss-footer{border-top:0;flex:1;align-items:center}
.iss[data-density="minimal"] .iss-footer{font-size:14px}
.earth{gap:0}
.earth-row{flex:1 1 0;line-height:1.12;overflow:hidden}
.earth-row span{flex:1 1 42%;min-width:0}
.earth-row b{flex:1 1 58%;min-width:0;overflow-wrap:normal;word-break:normal}
.earth:is([data-density="medium"],[data-density="compact"],[data-density="minimal"]) .earth-row{font-size:13px}
.earth:is([data-density="medium"],[data-density="compact"],[data-density="minimal"]) .earth-row b{font-size:12px}
.earth:is([data-density="compact"],[data-density="minimal"]) .earth-row:nth-of-type(1),
.earth:is([data-density="compact"],[data-density="minimal"]) .earth-row:nth-of-type(4){display:none}
.earth[data-density="minimal"] .earth-row{font-size:13px}
.earth[data-density="minimal"] .earth-row b{font-size:12px}
/* The camera always uses the native 16:9 ratio and never stretches. */
.camera{flex-shrink:1}
/* Narrow browser: distribute all six modules into two columns and three rows. */
@media(max-aspect-ratio:1.43){
 #screen{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:64px minmax(0,1.18fr) minmax(0,1fr) minmax(0,1fr) 18px}
 .top,.side,.bottom{display:contents}.header,footer{grid-column:1/-1}.camera-wrap{grid-column:1;grid-row:2}.conditions{grid-column:2;grid-row:2}.astronomy{grid-column:1;grid-row:3}.forecast{grid-column:2;grid-row:3}.iss{grid-column:1;grid-row:4}.earth{grid-column:2;grid-row:4}
 .header{grid-template-columns:1fr 1fr 1.1fr;grid-template-rows:1fr 1fr;font-size:clamp(14px,1.5vw,21px)}.header small{grid-column:3;grid-row:1/3;font-size:clamp(12px,1.2vw,18px)}.header>div:nth-child(3){grid-column:1/3;grid-row:2;border-left:0;padding-left:0}
}
@media(max-height:720px){#screen{padding:7px;--gap:7px;grid-template-rows:48px minmax(0,1.55fr) minmax(0,1fr) 14px}.panel{padding:7px 9px}.panel h2{margin-bottom:4px}.cam-label{height:25px;flex-basis:25px}.camera{max-height:calc(100% - 25px)}.header{font-size:16px}.header small{font-size:13px}.header small span{display:none}footer{font-size:9px}}
@media(max-height:720px) and (max-aspect-ratio:1.43){#screen{grid-template-rows:48px minmax(0,1.18fr) minmax(0,1fr) minmax(0,1fr) 14px}}
@media(max-width:800px){.cam-label span:last-child{display:none}.panel h2{font-size:16px}.condition-grid{gap:5px}.rain{padding-left:5px}.earth-row b{font-size:12px}}

/* Four independently responsive instrument panels in the lower deck. */
.bottom{grid-template-columns:repeat(4,minmax(0,1fr))}
.sun-rain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.uv-stat{border-left:1px solid #637982;padding-left:8px}
.uv-risk{font-size:12px;font-weight:800;letter-spacing:.3px;margin-top:-4px;margin-bottom:8px}
.sun-rain-grid strong{font-size:clamp(22px,2.3vw,34px);margin:3px 0 6px}
.rain .eyebrow{font-size:12px}
.tides{display:flex;flex-direction:column}
.tides h2 small{font-size:11px;color:#9bb5bf;font-weight:600;white-space:nowrap}
.tide-status{display:flex;flex:1;min-height:0;align-items:center;justify-content:space-between;gap:8px;color:#a5c5d0;font-weight:700;font-size:14px}
.tide-status strong{font-size:clamp(17px,1.8vw,29px);color:#8ac5dc;white-space:nowrap}
.tide-event{display:flex;flex:1;min-height:0;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid #4a626c;font-size:13px}
.tide-event b{font-size:13px;text-align:right;color:#e7ecec}
.planets{align-items:center;min-width:0}
.planets #planets{overflow:hidden;text-overflow:ellipsis;text-align:right}
/* When compact, keep current UV and rain chance; discard supporting rain text. */
.conditions:is([data-density="compact"],[data-density="minimal"]) .uv-risk{display:none}
.conditions[data-density="minimal"] .rain .sun-rain-grid .eyebrow{display:block;font-size:10px}
.conditions[data-density="minimal"] .rain .sun-rain-grid strong{font-size:21px}
.conditions[data-density="minimal"] .sun-rain-grid{gap:4px}
.conditions[data-density="minimal"] .uv-stat{padding-left:4px}
.tides:is([data-density="medium"],[data-density="compact"],[data-density="minimal"]) .tide-secondary{display:none}
.tides:is([data-density="compact"],[data-density="minimal"]) .tide-status{display:none}
.tides[data-density="minimal"] .tide-event{font-size:12px;flex-wrap:wrap}
.tides[data-density="minimal"] .tide-event b{font-size:12px}
@media(max-aspect-ratio:1.43){
 #screen{grid-template-rows:64px minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.72fr) 18px}
 .tides{grid-column:1/-1;grid-row:5}
 .tides{flex-direction:row;align-items:center;gap:12px}
 .tides h2{margin:0;min-width:145px}
 .tide-status,.tide-event{border-top:0;border-left:1px solid #4a626c;padding-left:10px}
}
@media(max-height:720px) and (max-aspect-ratio:1.43){
 #screen{grid-template-rows:48px minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.72fr) 14px}
}
@media(max-width:1050px) and (min-aspect-ratio:1.43){.bottom{grid-template-columns:repeat(4,minmax(0,1fr))}.tides h2 small{display:none}.tide-event{font-size:12px}}

/* Six modules again: weather, astronomy, forecast, ISS, Earth Watch and camera. */
.bottom{grid-template-columns:repeat(3,minmax(0,1fr))}
/* The four headline measurements are permanent, including in minimal mode. */
.conditions{display:flex;flex-direction:column}
.condition-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;min-width:0;min-height:0;flex:1}
.metric{min-width:0;padding:5px 9px;border-left:1px solid #4d6670;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:3px}
.metric:first-child{border-left:0;padding-left:0}
.metric .eyebrow{font-size:clamp(10px,1vw,14px);line-height:1.15;white-space:normal}
.metric strong{font-size:clamp(24px,2.65vw,42px);line-height:1.08;white-space:nowrap}
.metric-temp .metric-value{display:flex;flex-direction:column;gap:2px}
.metric-temp #condition{font-size:clamp(11px,1vw,15px);font-weight:700;color:#f5c62e}
.metric span:not(.eyebrow){font-size:clamp(10px,.9vw,14px);line-height:1.2;overflow-wrap:anywhere}
.metric-uv #uv{color:#f5c62e}
.metric-rain #pop{color:#e7ecec}
.metric-aqi #aqi{color:#f4db32}
.condition-extras{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:12px;row-gap:1px;margin-top:7px;border-top:1px solid #38515b;padding-top:5px}
.condition-extras .readout{font-size:clamp(10px,.9vw,13px);gap:5px}
.conditions:is([data-density="medium"],[data-density="compact"],[data-density="minimal"]) .condition-extras{display:none}
.conditions:is([data-density="compact"],[data-density="minimal"]) .metric-rain #rain-window{display:none}
.conditions[data-density="minimal"] .metric-uv #uv-risk,
.conditions[data-density="minimal"] .metric-aqi #aqi-risk,
.conditions[data-density="minimal"] .metric-temp #condition{display:none}
.conditions:is([data-density="compact"],[data-density="minimal"]) .condition-metrics{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
.conditions:is([data-density="compact"],[data-density="minimal"]) .metric:nth-child(3){border-left:0;padding-left:0;border-top:1px solid #4d6670}
.conditions:is([data-density="compact"],[data-density="minimal"]) .metric:nth-child(4){border-top:1px solid #4d6670}
.conditions:is([data-density="compact"],[data-density="minimal"]) .metric{padding-top:3px;padding-bottom:2px;gap:1px}
.conditions:is([data-density="compact"],[data-density="minimal"]) .metric strong{font-size:clamp(21px,2.1vw,34px)}
/* Earth Watch now has only three readings, with tides integrated. */
.earth .earth-row{display:flex!important;flex:1;min-height:0;gap:8px;font-size:clamp(12px,1.05vw,16px)}
.earth .earth-row b{font-size:clamp(11px,.95vw,15px)}
.earth .earth-row:nth-of-type(2),.earth .earth-row:nth-of-type(3){display:flex!important}
.earth .earth-row>span{flex:0 1 auto}
.earth .earth-row small{font-size:10px;color:#8ea7b2;display:block}
.tide-readings{min-width:0;display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:3px}
.tide-readings #tide-trend{color:#8ac5dc}
.tide-readings #tide-level{font-size:12px;color:#e7ecec}
.tide-detail{font-size:11px;color:#a5c5d0}
.tide-detail b{color:#e7ecec!important;font-size:11px!important}
.earth:is([data-density="medium"],[data-density="compact"],[data-density="minimal"]) .tide-secondary{display:none}
.earth:is([data-density="compact"],[data-density="minimal"]) .tide-detail{display:none}
.earth[data-density="minimal"] #tide-level{display:none}
/* Restore the original narrow six-panel grid; do not create a seventh row. */
@media(max-aspect-ratio:1.43){
 #screen{grid-template-rows:64px minmax(0,1.18fr) minmax(0,1fr) minmax(0,1fr) 18px}
 .bottom{display:contents}
 .earth{grid-column:2;grid-row:4}
}
@media(max-height:720px) and (max-aspect-ratio:1.43){#screen{grid-template-rows:48px minmax(0,1.18fr) minmax(0,1fr) minmax(0,1fr) 14px}}
@media(max-width:1000px){.condition-metrics{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.metric:nth-child(3){border-left:0;padding-left:0;border-top:1px solid #4d6670}.metric:nth-child(4){border-top:1px solid #4d6670}.condition-extras{display:none}}

/* Slightly larger date, time, location, and station title. */
.header{font-size:clamp(18px,1.9vw,33px)}
.header small{font-size:clamp(15px,1.3vw,23px)}
@media(max-aspect-ratio:1.43){
 .header{font-size:clamp(16px,1.7vw,24px)}
 .header small{font-size:clamp(14px,1.35vw,20px)}
}
@media(max-height:720px){
 .header{font-size:18px}
 .header small{font-size:15px}
}

/* Visual-only refinement. No changes to panel geometry, breakpoints or density rules. */
.header, .panel h2, .cam-label, .weekday, .iss-footer, .station-brand {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}
/* Keep data labels and readings in the established readable typeface. */
.header{letter-spacing:-0.04em}
.station-brand{
  display:flex; align-items:center; justify-content:flex-end;
  gap:clamp(6px,.75vw,13px); min-width:0;
  color:#f3b24a; line-height:1.14;
}
.station-sunset{display:block; flex:0 0 auto; width:clamp(22px,2.3vw,40px); height:clamp(22px,2.3vw,40px)}
.station-brand-text{display:flex; flex-direction:column; align-items:flex-end; min-width:0; overflow-wrap:normal}
.station-brand-text #updated{display:block; margin-top:3px; font-family:Arial,'Helvetica Neue',sans-serif; letter-spacing:0}
@media(max-width:950px){
 .station-sunset{width:22px;height:22px}
 .station-brand{gap:5px}
}

/* Visual correction: restore a readable, lighter 1990s terminal type treatment. */
.header,.panel h2,.cam-label,.weekday,.iss-footer,.station-brand{
 font-family:Menlo,Monaco,'Courier New',monospace;
 font-weight:600;letter-spacing:-.025em;
}
.panel h2{font-weight:700;letter-spacing:0;font-size:clamp(15px,1.5vmin,23px)}
.header{grid-template-columns:minmax(0,1.2fr) minmax(0,1.02fr) minmax(0,1.15fr) minmax(230px,1.65fr);font-weight:650;letter-spacing:-.025em}
.header>div{min-width:0;white-space:nowrap}
.header>div:not(:first-child){padding-left:clamp(6px,.9vw,18px)}
.header small.station-brand{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:clamp(14px,1.25vw,21px);line-height:1.1;text-align:right;color:#f2b04a}
.station-brand-text{display:block;min-width:0;white-space:normal;overflow-wrap:normal;max-width:230px;text-align:right}
.station-brand-text #updated{display:none}
.station-sunset{width:clamp(27px,2.8vw,43px);height:clamp(27px,2.8vw,43px)}
@media(max-aspect-ratio:1.43){
 .header{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr);grid-template-rows:1fr 1fr}
 .header small.station-brand{grid-column:3;grid-row:1/3;font-size:clamp(13px,1.45vw,19px)}
 .header>div:nth-child(3){grid-column:1/3;grid-row:2;border-left:0;padding-left:0}
}
@media(max-width:950px){
 .station-brand-text{max-width:160px}
 .header small.station-brand{gap:6px}
 .station-sunset{width:26px;height:26px}
}

/* Reference palette and typography only. Grid and density behavior unchanged. */
:root{color:#c8eacb;background:#07130f}
html,body{background:#07130f}
#screen{background:radial-gradient(ellipse at 45% 12%,#0c1c18 0%,#06110e 80%)}
.header{border-bottom-color:#7caa91;color:#c7efcf}
.header>div:not(:first-child){border-left-color:#7caa91}
.panel{border-color:#638c77}
.readout,.earth-row,.metric,.iss-footer{border-color:#4a7564}
.cam-label,.panel h2,.weekday,.header,.iss-footer,.earth-row,.readout,.days,.planets,footer{
 font-family:Menlo,Monaco,'Courier New',monospace;
 font-weight:500;letter-spacing:.005em;
 text-shadow:.35px 0 rgba(188,255,198,.42),0 0 1.3px rgba(150,235,169,.22);
}
.panel h2{font-weight:600;color:#bdeac4}
.cam-label,.header{color:#c5eccb}
.yellow,.cam-label span:last-child,.iss-footer strong{color:#f5b84f}
.eyebrow{color:#a7d2b4}
.day .lo{color:#83c69c}
.day .chance{color:#9fceae}
footer{color:#72ae87}
/* The reference logo has two complete lines of orange lettering next to the sunset. */
.header{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr) minmax(0,1.12fr) minmax(245px,1.55fr)}
.header small.station-brand{display:flex;justify-content:flex-end;align-items:center;gap:clamp(6px,.8vw,12px);min-width:0;overflow:visible;color:#f8b54a;text-align:left;font-size:clamp(13px,1.42vw,23px);line-height:1.02;font-weight:700;letter-spacing:-.025em}
.station-brand-text{display:block;max-width:none;min-width:0;text-align:left;white-space:nowrap}
.station-brand-text .brand-name{display:block!important;color:#f8b54a!important;font-size:inherit!important;line-height:1.02}
.station-brand-text #updated{display:none!important}
.station-sunset{width:clamp(30px,3vw,47px);height:clamp(30px,3vw,47px);flex-shrink:0;filter:drop-shadow(0 0 1px rgba(255,149,60,.32))}
/* A restrained phosphor edge on lettering, without any scanline or screen overlay. */
.header,.panel h2,.station-brand{ text-shadow:.45px 0 rgba(214,255,215,.25),0 0 1.6px rgba(163,242,174,.18) }
.station-brand{ text-shadow:.4px 0 rgba(255,183,78,.28),0 0 1.5px rgba(255,171,66,.18) }
@media(max-aspect-ratio:1.43){
 .header{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(205px,1.15fr);grid-template-rows:1fr 1fr}
 .header small.station-brand{grid-column:3;grid-row:1/3;font-size:clamp(12px,1.65vw,20px)}
 .header>div:nth-child(3){grid-column:1/3;grid-row:2}
}
@media(max-width:950px){
 .header small.station-brand{font-size:clamp(10px,1.45vw,15px);gap:5px}
 .station-sunset{width:26px;height:26px}
}
@media(max-width:650px){
 .header small.station-brand{font-size:10px}
 .station-sunset{width:20px;height:20px}
}

/* Logo visibility repair. Earlier short viewport rule hid ALL spans in header small. */
.header small.station-brand .station-brand-text,
.header small.station-brand .station-brand-text .brand-name {
 display:block!important; visibility:visible!important; opacity:1!important;
}
.header small.station-brand .station-brand-text{flex:0 1 auto;min-width:0;max-width:100%;overflow:visible}
.header small.station-brand .brand-name{white-space:nowrap!important;line-height:1.04!important}
.header small.station-brand{overflow:visible!important;align-self:center;white-space:normal!important}
.header small.station-brand #updated{display:none!important}
/* Give the full wordmark a real grid track instead of squeezing it offscreen. */
@media (min-aspect-ratio:1.43){
 .header{grid-template-columns:minmax(0,1.05fr) minmax(0,.91fr) minmax(0,1.05fr) minmax(260px,1.48fr)}
}
@media (max-aspect-ratio:1.43){
 .header{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(220px,1.18fr)}
}
@media (max-width:950px){
 .header small.station-brand{font-size:clamp(11px,1.4vw,16px)}
 .station-sunset{width:clamp(24px,2.8vw,34px);height:clamp(24px,2.8vw,34px)}
}

/* Illustrated celestial bodies. Keep the existing astronomy grid and density rules. */
.moon-symbol,.sun-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:clamp(30px,4.2vmin,52px);height:clamp(30px,4.2vmin,52px);font-size:inherit!important;line-height:1}
.moon-symbol svg,.sun-symbol svg{display:block;width:100%;height:100%;overflow:visible}
.astronomy[data-density="minimal"] .moon-symbol,.astronomy[data-density="minimal"] .sun-symbol{width:30px;height:30px}

/* Larger sunset wordmark only. All panel geometry and behavior unchanged. */
.header small.station-brand{font-size:clamp(17px,1.75vw,28px)!important;gap:clamp(8px,1vw,15px)!important}
.header .station-sunset{width:clamp(38px,3.8vw,60px)!important;height:clamp(38px,3.8vw,60px)!important}
.header .station-brand-text .brand-name{font-size:inherit!important;line-height:1.04!important}
@media (min-aspect-ratio:1.43){
 .header{grid-template-columns:minmax(0,1fr) minmax(0,.88fr) minmax(0,1fr) minmax(305px,1.7fr)}
}
@media (max-aspect-ratio:1.43){
 .header{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(255px,1.4fr)}
 .header small.station-brand{font-size:clamp(15px,1.8vw,23px)!important}
}
@media (max-width:950px){
 .header small.station-brand{font-size:clamp(13px,1.65vw,19px)!important}
 .header .station-sunset{width:clamp(30px,3.4vw,42px)!important;height:clamp(30px,3.4vw,42px)!important}
}
@media (max-width:650px){
 .header small.station-brand{font-size:clamp(11px,1.9vw,14px)!important;gap:5px!important}
 .header .station-sunset{width:27px!important;height:27px!important}
}

/* Full logo: wordmark lettering matches the date's computed font size. */
.header small.station-brand,
.header .station-brand-text .brand-name{
  font-size:inherit!important;
  font-weight:inherit!important;
  line-height:1.02!important;
}
.header small.station-brand{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:clamp(8px,1vw,16px)!important;
  min-width:0;
}
.header .station-sunset{
  width:clamp(40px,4.5vw,70px)!important;
  height:clamp(40px,4.5vw,70px)!important;
  flex-shrink:0;
}
.header .station-brand-text{flex:0 0 auto;white-space:nowrap}
@media (min-aspect-ratio:1.43){
  .header{grid-template-columns:minmax(0,1fr) minmax(0,.94fr) minmax(0,1.12fr) minmax(0,2.15fr)}
}
@media (max-aspect-ratio:1.43){
  .header{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2.05fr)}
}
@media (max-width:650px){
  .header .station-sunset{width:clamp(30px,5vw,45px)!important;height:clamp(30px,5vw,45px)!important}
  .header small.station-brand{gap:5px!important}
}

/* Definitive logo sizing: override the generic `.header small span` rule.
   Use the SAME shared font size for date and both lines of wordmark. */
.header{--header-type:clamp(18px,1.9vw,33px);font-size:var(--header-type)!important}
.header small.station-brand{font-size:var(--header-type)!important;font-weight:650!important;gap:clamp(8px,1vw,16px)!important}
.header small.station-brand span.station-brand-text{font-size:var(--header-type)!important;display:block!important;flex:0 0 auto!important;max-width:none!important;line-height:1!important}
.header small.station-brand span.station-brand-text span.brand-name{font-size:var(--header-type)!important;font-weight:650!important;line-height:1.02!important;letter-spacing:-.035em!important;white-space:nowrap!important;display:block!important}
.header small.station-brand svg.station-sunset{width:clamp(42px,4.5vw,70px)!important;height:clamp(42px,4.5vw,70px)!important;flex:none!important}
.header{grid-template-columns:minmax(0,1fr) minmax(0,.94fr) minmax(0,1.12fr) minmax(0,2.15fr)!important}
@media(max-aspect-ratio:1.43){
 .header{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2.1fr)!important}
}
@media(max-width:950px){
 .header{--header-type:clamp(14px,2vw,22px)}
 .header small.station-brand svg.station-sunset{width:clamp(32px,4vw,48px)!important;height:clamp(32px,4vw,48px)!important}
}
@media(max-width:650px){
 .header{--header-type:clamp(11px,2vw,16px)}
 .header small.station-brand svg.station-sunset{width:30px!important;height:30px!important}
}


/* Optional cosmetic CRT finish. No sizing or grid changes. */
#screen{isolation:isolate}
#screen::after{
 content:"";position:absolute;inset:0;z-index:100;pointer-events:none;
 background:repeating-linear-gradient(to bottom,rgba(0,0,0,0) 0px,rgba(0,0,0,0) 2px,rgba(0,0,0,.12) 3px,rgba(0,0,0,0) 4px);
 opacity:.32;
}
.header,.panel h2,.readout,.earth-row,.day,.iss-footer,.astro-item,.cam-label{
 text-shadow:0 0 2px rgba(167,237,172,.22);
}
.header small.station-brand span.station-brand-text span.brand-name{
 text-shadow:0 0 3px rgba(255,173,67,.32)!important;
}
@media(prefers-reduced-transparency:reduce){#screen::after{opacity:.15}}

/* CRT texture repair: a fixed screen overlay, visible at normal monitor scale. */
html body #screen::after {
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  display:block !important;
  width:100vw !important;
  height:100vh !important;
  z-index:2147483000 !important;
  pointer-events:none !important;
  opacity:1 !important;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0px, transparent 2px, rgba(0,0,0,.34) 2px, rgba(0,0,0,.34) 3px, transparent 3px, transparent 4px),
    repeating-linear-gradient(to right, rgba(255,100,80,.022) 0px, rgba(255,100,80,.022) 1px, rgba(70,255,170,.018) 1px, rgba(70,255,170,.018) 2px, rgba(100,130,255,.022) 2px, rgba(100,130,255,.022) 3px),
    radial-gradient(ellipse at center, transparent 48%, rgba(0,0,0,.26) 100%) !important;
  background-repeat:repeat,repeat,no-repeat !important;
}
/* Strengthen the phosphor edge without blurring the readouts. */
#screen .header, #screen .panel h2, #screen .readout, #screen .day, #screen .astro-item, #screen .earth-row {
  text-shadow:0 0 3px rgba(166,239,180,.35) !important;
}

/* Typography refinement: slightly lighter, more open, preserving the CRT overlay. */
#screen { font-weight:400; letter-spacing:.018em; }
#screen .header { font-weight:600!important; letter-spacing:0!important; }
#screen .header small.station-brand { font-weight:600!important; letter-spacing:0!important; }
#screen .header small.station-brand span.station-brand-text span.brand-name {
  font-weight:600!important; letter-spacing:0!important;
}
#screen .panel h2 { font-weight:600; letter-spacing:.025em; }
#screen .readout, #screen .earth-row, #screen .astro-item, #screen .day, #screen .cam-label { letter-spacing:.018em; }
#screen .header, #screen .panel h2, #screen .readout, #screen .day, #screen .astro-item, #screen .earth-row {
  text-shadow:0 0 2px rgba(166,239,180,.25)!important;
}
#screen .header small.station-brand span.station-brand-text span.brand-name {
  text-shadow:0 0 2px rgba(255,173,67,.25)!important;
}

/* Legibility correction: remove synthetic bold and stacked phosphor shadows. */
#screen {font-family:Menlo, Monaco, 'Courier New', monospace!important; font-weight:400!important; letter-spacing:.025em!important; text-shadow:none!important; -webkit-font-smoothing:antialiased;}
#screen .header, #screen .header *, #screen .panel h2, #screen .panel h2 *,
#screen .readout, #screen .readout *, #screen .day, #screen .day *,
#screen .astro-item, #screen .astro-item *, #screen .earth-row, #screen .earth-row *,
#screen .cam-label, #screen .cam-label *, #screen .metric-temp, #screen .metric-temp *,
#screen .condition-grid, #screen .condition-grid *, #screen .bottom, #screen .bottom * {
  text-shadow:none!important;
}
#screen .header {font-weight:400!important;letter-spacing:.018em!important;}
#screen .header small.station-brand,
#screen .header small.station-brand span.station-brand-text span.brand-name {
  font-weight:400!important;letter-spacing:.018em!important;
}
#screen .panel h2 {font-weight:500!important;letter-spacing:.035em!important;}
#screen .panel b, #screen .panel strong, #screen .panel .hi,
#screen .panel .weekday, #screen .panel .eyebrow,
#screen .panel #temp, #screen .panel #condition,
#screen .cam-label {font-weight:500!important;}
#screen .readout, #screen .earth-row, #screen .astro-item, #screen .day {letter-spacing:.025em!important;}
/* Keep the visible scanline overlay untouched. */

/* Pure black CRT background for maximum text contrast. */
:root, html, body { background:#000 !important; }
html body #screen { background:#000 !important; }
/* Panels remain transparent so the entire dashboard has a uniform black field. */
html body #screen .panel { background-color:transparent !important; }

/* Handjet typography and collision-free header layout */
:root, body, #screen,
#screen .header, #screen .header *,
#screen .panel, #screen .panel *,
#screen .cam-label, #screen .cam-label *,
#screen footer {
  font-family:'Handjet', Menlo, Monaco, monospace !important;
}
#screen {
  font-size:clamp(16px,1.45vw,22px);
}
#screen .header {
  --header-type:clamp(22px,2.05vw,31px);
  display:grid !important;
  grid-template-columns:max-content max-content minmax(0,1fr) max-content !important;
  grid-template-rows:minmax(0,1fr) !important;
  column-gap:clamp(12px,1.6vw,28px) !important;
  align-items:center !important;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  font-size:var(--header-type) !important;
  letter-spacing:.025em !important;
}
#screen .header > div {
  grid-column:auto !important;
  grid-row:auto !important;
  min-width:0;
  padding:0 !important;
  border:0 !important;
  white-space:nowrap;
}
#screen .header > div:nth-child(3) {
  overflow:hidden;
  text-overflow:ellipsis;
}
#screen .header small.station-brand {
  grid-column:4 !important;
  grid-row:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  min-width:0;
  overflow:visible !important;
  gap:clamp(8px,1vw,15px) !important;
  font-size:var(--header-type) !important;
  line-height:.88 !important;
  white-space:nowrap !important;
}
#screen .header small.station-brand .station-brand-text,
#screen .header small.station-brand .station-brand-text .brand-name {
  display:block !important;
  visibility:visible !important;
  font-size:var(--header-type) !important;
  font-weight:400 !important;
  line-height:.86 !important;
  letter-spacing:.03em !important;
  white-space:nowrap !important;
  max-width:none !important;
  overflow:visible !important;
}
#screen .header small.station-brand svg.station-sunset {
  width:clamp(43px,4vw,60px) !important;
  height:clamp(43px,4vw,60px) !important;
  flex:none !important;
}
#screen .panel h2 {font-weight:500 !important;letter-spacing:.05em !important;}
#screen .panel b, #screen .panel strong, #screen .panel .weekday,
#screen .panel .eyebrow, #screen .cam-label {font-weight:500 !important;}
@media (max-width:1080px) {
  #screen {grid-template-rows:80px minmax(0,1.55fr) minmax(0,1fr) 18px;}
  #screen .header {
    --header-type:clamp(20px,2.3vw,26px);
    grid-template-columns:max-content minmax(0,1fr) max-content !important;
    grid-template-rows:1fr 1fr !important;
    column-gap:12px !important;
  }
  #screen .header > div:nth-child(1) {grid-column:1;grid-row:1 !important;}
  #screen .header > div:nth-child(2) {grid-column:2;grid-row:1 !important;}
  #screen .header > div:nth-child(3) {grid-column:1/3;grid-row:2 !important;}
  #screen .header small.station-brand {grid-column:3 !important;grid-row:1/3 !important;}
}
@media (max-width:1080px) and (max-aspect-ratio:1.43) {
  #screen {grid-template-rows:80px minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) 18px;}
}
@media (max-height:720px) and (min-width:1081px) {
  #screen {grid-template-rows:56px minmax(0,1.55fr) minmax(0,1fr) 14px;}
}
@media (max-height:720px) and (max-width:1080px) {
  #screen {grid-template-rows:68px minmax(0,1.55fr) minmax(0,1fr) 14px;}
}
@media (max-height:720px) and (max-width:1080px) and (max-aspect-ratio:1.43) {
  #screen {grid-template-rows:68px minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) 14px;}
}
@media (max-width:650px) {
  #screen .header {--header-type:clamp(16px,3.1vw,21px);column-gap:7px !important;}
  #screen .header small.station-brand svg.station-sunset {width:30px !important;height:30px !important;}
}

/* Clean Handjet display: remove CRT overlay entirely. */
html body #screen::after,
html body #screen::before {content:none!important;display:none!important;background:none!important;opacity:0!important;}
html body #screen, html, body {background:#000!important;}
/* Handjet has a smaller apparent cap height than the previous monospace font. */
#screen {font-size:20px!important;letter-spacing:.025em!important;}
#screen .header {--header-type:clamp(25px,2.45vw,36px)!important;}
#screen .header small.station-brand .brand-name,
#screen .header small.station-brand .station-brand-text {font-weight:500!important;}
#screen .panel {padding:clamp(9px,1vw,15px)!important;}
#screen .panel h2 {font-size:clamp(23px,2vw,31px)!important;font-weight:500!important;line-height:1!important;margin-bottom:clamp(6px,.8vw,12px)!important;}
#screen .cam-label {font-size:clamp(20px,1.55vw,26px)!important;font-weight:500!important;}
#screen .cam-label span:last-child {font-size:clamp(17px,1.2vw,21px)!important;}
#screen .camera-note {font-size:clamp(17px,1.3vw,22px)!important;letter-spacing:.035em!important;}
#screen .eyebrow {font-size:clamp(18px,1.45vw,23px)!important;font-weight:400!important;}
#screen .temp #temp {font-size:clamp(38px,3.5vw,57px)!important;font-weight:500!important;}
#screen .condition-grid strong,#screen .sun-rain-grid strong {font-size:clamp(32px,2.7vw,45px)!important;font-weight:500!important;}
#screen .uv-risk,#screen .rain p,#screen .temp #condition {font-size:clamp(16px,1.25vw,21px)!important;}
#screen .readout {font-size:clamp(18px,1.4vw,23px)!important;}
#screen .astro-top b {font-size:clamp(21px,1.7vw,27px)!important;font-weight:500!important;}
#screen .astro-top p {font-size:clamp(16px,1.25vw,21px)!important;}
#screen .planets {font-size:clamp(16px,1.2vw,20px)!important;}
#screen .day .weekday {font-size:clamp(19px,1.45vw,24px)!important;font-weight:500!important;}
#screen .day .hi {font-size:clamp(29px,2.35vw,38px)!important;font-weight:500!important;}
#screen .day .lo {font-size:clamp(24px,1.9vw,31px)!important;}
#screen .day .chance {font-size:clamp(17px,1.3vw,22px)!important;}
#screen .iss-footer {font-size:clamp(19px,1.45vw,24px)!important;}
#screen .earth-row,#screen .earth-row b {font-size:clamp(18px,1.35vw,23px)!important;font-weight:400!important;}
#screen .earth-row small,#screen .tide-detail {font-size:clamp(15px,1.1vw,19px)!important;}
#screen footer {font-size:clamp(13px,1vw,17px)!important;letter-spacing:.025em!important;}
#screen .chart text {font-family:'Handjet',monospace!important;font-size:23px!important;}
@media(max-height:760px) {
 #screen .panel {padding:7px 10px!important;}
 #screen .panel h2 {font-size:clamp(21px,1.7vw,26px)!important;margin-bottom:5px!important;}
 #screen .earth-row,#screen .earth-row b {font-size:clamp(16px,1.15vw,20px)!important;}
 #screen .day .hi {font-size:clamp(25px,2vw,32px)!important;}
 #screen .day .lo {font-size:clamp(21px,1.6vw,27px)!important;}
}
@media(max-width:1080px) {
 #screen .header {--header-type:clamp(21px,2.5vw,28px)!important;}
}
@media(max-width:650px) {
 #screen .header {--header-type:clamp(17px,3vw,21px)!important;}
 #screen .panel h2 {font-size:21px!important;}
 #screen .earth-row,#screen .earth-row b {font-size:16px!important;}
}

/* Readable Handjet with consistent letter spacing and predictable panels */
#screen, #screen * {letter-spacing:.055em!important;text-shadow:none!important;}
#screen .header, #screen .header * {letter-spacing:.045em!important;}
#screen .header {grid-template-columns:max-content max-content minmax(0,1fr) max-content!important;gap:clamp(14px,1.8vw,30px)!important;}
#screen .header > div {width:auto!important;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;}
#screen .header small.station-brand .brand-name {letter-spacing:.045em!important;}
/* Let the existing density system hide secondary information before it collides. */
#screen .conditions {min-height:0!important;}
#screen .conditions .condition-metrics {min-height:0!important;grid-template-rows:minmax(0,1fr)!important;}
#screen .conditions:is([data-density="compact"],[data-density="minimal"]) .condition-metrics {grid-template-rows:repeat(2,minmax(0,1fr))!important;}
#screen .conditions .metric {min-height:0!important;overflow:hidden;gap:1px!important;padding-top:2px!important;padding-bottom:2px!important;}
#screen .conditions .metric .eyebrow {font-size:clamp(16px,1.15vw,19px)!important;line-height:1!important;}
#screen .conditions .metric strong {font-size:clamp(27px,2.45vw,37px)!important;line-height:1!important;}
#screen .conditions .metric span:not(.eyebrow) {font-size:clamp(13px,1vw,17px)!important;line-height:1!important;}
#screen .conditions .metric-temp #condition {font-size:clamp(13px,1vw,17px)!important;line-height:1!important;}
#screen .conditions .condition-extras {display:none!important;}
#screen .astronomy .astro-pair {min-height:0!important;}
#screen .astronomy .astro-item {min-width:0!important;overflow:hidden;}
#screen .astronomy .astro-top {min-height:0!important;}
#screen .astronomy .astro-top b {font-size:clamp(19px,1.5vw,24px)!important;}
#screen .astronomy .readout {font-size:clamp(17px,1.2vw,21px)!important;}
#screen .bottom .panel {min-width:0!important;min-height:0!important;overflow:hidden!important;}
#screen .bottom .panel h2 {font-size:clamp(22px,1.65vw,28px)!important;line-height:1!important;}
#screen .earth .earth-row {min-height:0!important;align-items:center!important;}
#screen .earth .earth-row > span {min-width:0;}
#screen .earth .earth-row b {min-width:0;max-width:58%;overflow-wrap:anywhere;text-align:right;font-size:clamp(15px,1.05vw,19px)!important;line-height:1.05!important;}
#screen .earth .tide-readings b {max-width:none;}
#screen .forecast .days {min-height:0!important;}
#screen .forecast .day {min-width:0!important;overflow:hidden;}
#screen .iss .chart {min-height:0!important;}
#screen .camera-wrap, #screen .camera {min-height:0!important;}
@media(max-width:1080px) {
 #screen .header {grid-template-columns:max-content minmax(0,1fr) max-content!important;grid-template-rows:1fr 1fr!important;}
 #screen .header > div:nth-child(1) {grid-column:1!important;grid-row:1!important;}
 #screen .header > div:nth-child(2) {grid-column:2!important;grid-row:1!important;}
 #screen .header > div:nth-child(3) {grid-column:1/3!important;grid-row:2!important;}
 #screen .header small.station-brand {grid-column:3!important;grid-row:1/3!important;}
}
@media(max-height:750px){
 #screen .conditions .metric .eyebrow {font-size:15px!important;}
 #screen .conditions .metric strong {font-size:clamp(23px,2vw,32px)!important;}
 #screen .conditions .metric span:not(.eyebrow) {font-size:13px!important;}
 #screen .panel h2 {margin-bottom:4px!important;}
}

/* Geist Pixel Square: legible, restrained pixel typography. */
html body #screen, html body #screen *, html body #screen *::before, html body #screen *::after {
 font-family:"Geist Pixel", "Geist Mono", monospace !important;
 font-variation-settings:"ELSH" 1 !important;
 font-weight:400 !important;
 letter-spacing:.015em !important;
 text-shadow:none !important;
}
#screen .header {--header-type:clamp(17px,1.45vw,23px) !important;}
#screen .header small.station-brand .station-brand-text,
#screen .header small.station-brand .brand-name {font-size:var(--header-type) !important;line-height:1.05 !important;letter-spacing:0 !important;}
#screen .panel h2 {font-size:clamp(17px,1.4vw,23px) !important;line-height:1.2 !important;margin-bottom:clamp(5px,.7vw,9px) !important;}
#screen .cam-label {font-size:clamp(15px,1.2vw,19px) !important;}
#screen .cam-label span:last-child {font-size:clamp(13px,1vw,16px) !important;}
#screen .camera-note {font-size:clamp(13px,1vw,16px) !important;}
#screen .conditions .metric .eyebrow {font-size:clamp(11px,.85vw,14px) !important;}
#screen .conditions .metric strong {font-size:clamp(24px,2vw,33px) !important;line-height:1.05 !important;}
#screen .conditions .metric span:not(.eyebrow) {font-size:clamp(11px,.8vw,14px) !important;}
#screen .astronomy .astro-top b {font-size:clamp(15px,1.15vw,19px) !important;}
#screen .astronomy .readout {font-size:clamp(12px,.95vw,16px) !important;}
#screen .bottom .panel h2 {font-size:clamp(17px,1.3vw,22px) !important;}
#screen .day .weekday {font-size:clamp(13px,1vw,17px) !important;}
#screen .day .hi {font-size:clamp(22px,1.8vw,30px) !important;}
#screen .day .lo {font-size:clamp(18px,1.45vw,24px) !important;}
#screen .earth .earth-row,#screen .earth .earth-row b {font-size:clamp(12px,.9vw,15px) !important;line-height:1.2 !important;}
#screen .iss-footer {font-size:clamp(12px,.9vw,16px) !important;}
#screen footer {font-size:clamp(10px,.75vw,13px) !important;}
@media(max-width:1080px){#screen .header {--header-type:clamp(15px,1.8vw,19px) !important;}}

/* Neutral white interface. Preserve semantic amber and colored readings. */
:root {color:#f5f5f5 !important;}
#screen {color:#f5f5f5 !important;}
#screen .header, #screen .header > div,
#screen .panel, #screen .panel h2,
#screen .cam-label, #screen .eyebrow,
#screen .readout, #screen .readout b,
#screen .astro-top, #screen .astro-top b,
#screen .planets, #screen .weekday,
#screen .day .hi, #screen .day .lo, #screen .day .chance,
#screen .iss-footer, #screen .earth-row,
#screen .earth-row span, #screen .earth-row small,
#screen .tide-detail, #screen .tide-detail b,
#screen .tide-readings #tide-level,
#screen .conditions .metric .eyebrow,
#screen footer {color:#f5f5f5 !important;}
#screen .panel {border-color:#b9b9b9 !important;}
#screen .header {border-bottom-color:#b9b9b9 !important;}
#screen .header > div:not(:first-child) {border-left-color:#8e8e8e !important;}
#screen .readout, #screen .earth-row, #screen .metric,
#screen .iss-footer, #screen .astro-item+.astro-item,
#screen .planets, #screen .day,
#screen .condition-extras, #screen .tide-event,
#screen .conditions .metric:nth-child(3),
#screen .conditions .metric:nth-child(4) {border-color:#707070 !important;}
#screen .camera {border-color:#b9b9b9 !important;}
/* Semantic color coding and the amber station identity stay intact. */
#screen .header small.station-brand,
#screen .header small.station-brand .brand-name,
#screen .header small.station-brand .station-brand-text,
#screen .yellow, #screen .cam-label span:last-child,
#screen .iss-footer strong {color:#f8b54a !important;}
#screen .metric-uv #uv {color:#a8e86a !important;}
#screen .metric-aqi #aqi {color:#f4db32 !important;}
#screen .earth-row b {color:#9ddb68 !important;}
#screen .tide-readings #tide-trend {color:#8ac5dc !important;}
#screen .metric-temp #condition {color:#f5b84f !important;}

/* Clear, bold header, including date, clock, city and complete wordmark. */
#screen .header, #screen .header > div,
#screen .header small.station-brand,
#screen .header small.station-brand .station-brand-text,
#screen .header small.station-brand .brand-name {
 font-weight:700!important; font-variation-settings:normal!important;
}
/* Reading labels stay above. Numbers and their status appear side by side. */
#screen .conditions .metric-reading {
 display:flex!important; flex-direction:row!important; align-items:baseline!important;
 flex-wrap:nowrap!important; gap:clamp(7px,.8vw,13px)!important;
 min-width:0!important; max-width:100%!important;
}
#screen .conditions .metric-reading strong {flex:0 0 auto!important; margin:0!important;}
#screen .conditions .metric-reading span {
 display:inline-block!important; flex:0 1 auto!important; min-width:0!important;
 font-size:clamp(11px,.8vw,14px)!important; line-height:1.15!important;
 overflow-wrap:normal!important; white-space:nowrap!important;
}
/* The forecast timing is long, so only show it where there is room. */
#screen .conditions .metric-rain #rain-window {
 overflow:hidden!important; text-overflow:ellipsis!important; max-width:calc(100% - 55px)!important;
}
#screen .conditions:is([data-density="compact"],[data-density="minimal"]) .metric-rain #rain-window {display:none!important;}
@media(max-width:1150px){
 #screen .conditions .metric-reading {gap:6px!important;}
 #screen .conditions .metric-reading span {font-size:11px!important;}
}

/* Rotating observation sources */
.camera-wrap{position:relative;min-height:0!important;display:flex!important;flex-direction:column!important}
.observation-stage{position:relative;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;aspect-ratio:16/9;max-height:100%;background:#050505}
.observation-stage>img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center}
.observation-info{position:absolute;bottom:0;left:0;right:0;padding:9px 12px;background:linear-gradient(transparent,rgba(0,0,0,.94) 22%);display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#fff;font-size:clamp(12px,1.1vw,17px);line-height:1.25}
.observation-info strong{color:#fff;font-weight:700}.observation-info span{color:#d4d4d4;flex:1 1 150px}.observation-info a{color:#f0a23d;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.observation-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:25px;flex:none;color:#ddd;font-size:clamp(11px,.9vw,15px)}
.observation-controls button{font:inherit;color:#fff;background:#000;border:1px solid #777;padding:2px 9px;cursor:pointer}
.observation-controls button:hover,.observation-controls button:focus-visible{border-color:#f0a23d;color:#f0a23d}
.observation-stage .observation-info{z-index:2}
@media(max-height:720px){.observation-controls{min-height:20px}.observation-info{padding:5px 8px}}

/* Compact direct source selector */
.observation-controls{justify-content:flex-start!important;gap:clamp(5px,.65vw,10px)!important;flex-wrap:nowrap!important;min-width:0!important}
.feed-select-label{font-size:inherit;color:#ddd;white-space:nowrap}
#feed-select{font:inherit;color:#fff;background:#000;border:1px solid #888;border-radius:2px;padding:3px 20px 3px 6px;max-width:clamp(115px,15vw,205px);min-width:0;cursor:pointer}
#feed-select:focus-visible{outline:2px solid #f0a23d;outline-offset:2px}
#feed-status{margin-left:auto;white-space:nowrap}
@media(max-width:850px){.feed-select-label{display:none}.observation-controls{gap:5px!important}#feed-select{max-width:120px}.observation-controls button{padding:2px 5px!important}}

/* Keep the twelve-view selector usable at narrower widths. */
#feed-select{min-width:0!important;max-width:min(40vw,290px)!important;text-overflow:ellipsis;}
.observation-controls{overflow:hidden;}
.observation-stage>img{object-fit:cover;}

/* Actual observation player: approved NASA YouTube embed. */
.observation-stage>iframe#observation-video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;z-index:1}
.observation-stage>iframe#observation-video[hidden],.observation-stage>img[hidden],.observation-availability[hidden]{display:none!important}
.observation-availability{position:absolute;top:12px;left:12px;right:12px;z-index:2;padding:10px 12px;background:rgba(0,0,0,.8);border:1px solid rgba(255,255,255,.5);color:#fff;font-size:clamp(12px,1vw,16px);text-align:center;pointer-events:none}
.observation-stage .observation-info{z-index:3}

/* Working feed test v2: video fills the observation panel without text obstruction. */
#screen .observation-stage{width:100%!important;max-width:none!important;aspect-ratio:auto!important;flex:1 1 0!important;min-height:0!important;}
#screen .observation-stage>iframe#observation-video{display:block;width:100%!important;height:100%!important;inset:0!important;max-width:none!important;max-height:none!important;}
#screen .observation-stage .observation-info{position:absolute!important;left:8px!important;right:auto!important;bottom:8px!important;top:auto!important;padding:0!important;background:transparent!important;display:block!important;z-index:4!important;pointer-events:none!important;}
#screen .observation-stage .observation-info strong,#screen .observation-stage .observation-info span{display:none!important;}
#screen .observation-stage .observation-info a{pointer-events:auto!important;display:inline-block!important;font-size:11px!important;line-height:1.2!important;padding:5px 7px!important;background:rgba(0,0,0,.86)!important;border:1px solid #777!important;text-decoration:none!important;}

/* Los Angeles live Doppler observation */
#screen #radar-map{position:absolute;inset:0;z-index:2;width:100%;height:100%;background:#111b20}
#screen #radar-map[hidden],#screen #radar-readout[hidden]{display:none!important}
#screen #radar-readout{position:absolute;z-index:5;top:8px;left:8px;right:8px;display:flex;justify-content:space-between;gap:10px;pointer-events:none;font-size:11px;color:#fff;text-shadow:0 1px 4px #000;background:rgba(0,0,0,.65);padding:5px 7px}
#screen #radar-map .leaflet-control-attribution{font:10px sans-serif;background:rgba(0,0,0,.72);color:#eee}
#screen #radar-map .leaflet-control-attribution a{color:#f4c52e}
#screen #radar-map .leaflet-control-zoom a{background:#111;color:#eee;border-color:#666}

#screen .observation-stage>iframe#observation-video[hidden]{display:none!important}


/* Phone layout: same site and data, purpose built vertical presentation. */
@media (max-width: 700px) {
 html,body {height:auto!important;min-height:100%;overflow-x:hidden!important;overflow-y:auto!important;background:#000!important;}
 #screen {display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;padding:12px 12px max(16px,env(safe-area-inset-bottom))!important;background:#000!important;}
 #screen::after {display:none!important;}
 #screen .header {order:0;display:grid!important;grid-template-columns:1fr auto!important;grid-template-rows:auto auto!important;gap:8px 12px!important;min-height:88px!important;height:auto!important;padding:4px 0 12px!important;overflow:visible!important;align-items:center!important;white-space:normal!important;}
 #screen .header small.station-brand {grid-column:1/-1!important;grid-row:1!important;justify-self:start!important;text-align:left!important;display:flex!important;align-items:center!important;gap:10px!important;font-size:clamp(16px,4.5vw,21px)!important;}
 #screen .header small.station-brand .station-brand-text,#screen .header small.station-brand .brand-name {font-size:clamp(16px,4.5vw,21px)!important;line-height:1.02!important;}
 #screen .header small.station-brand svg.station-sunset {width:44px!important;height:44px!important;}
 #screen .header>div {grid-row:2!important;min-width:0!important;border:0!important;padding:0!important;font-size:clamp(11px,3vw,14px)!important;}
 #screen .header>div:nth-child(1){grid-column:1!important;justify-self:start!important;}
 #screen .header>div:nth-child(2){grid-column:2!important;justify-self:end!important;}
 #screen .header>div:nth-child(3){display:none!important;}
 #screen .top,#screen .bottom,#screen .side {display:contents!important;}
 #screen .camera-wrap {order:1;display:flex!important;width:100%!important;min-height:0!important;height:auto!important;gap:7px!important;}
 #screen .cam-label {flex:0 0 auto!important;height:auto!important;min-height:24px!important;font-size:clamp(11px,2.8vw,14px)!important;white-space:normal!important;}
 #screen .cam-label span:last-child {display:inline!important;flex:none!important;font-size:11px!important;}
 #screen .observation-stage {position:relative!important;display:block!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:16/9!important;max-height:none!important;align-self:stretch!important;}
 #screen .observation-stage>iframe#observation-video,#screen #radar-map {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;}
 #screen #radar-readout {font-size:9px!important;flex-wrap:wrap!important;gap:3px!important;}
 #screen .observation-controls {width:100%!important;display:flex!important;gap:6px!important;flex-wrap:wrap!important;justify-content:space-between!important;overflow:visible!important;min-height:38px!important;}
 #screen .observation-controls button {font-size:12px!important;min-height:36px!important;padding:6px 10px!important;}
 #screen #feed-select {font-size:12px!important;min-height:36px!important;max-width:none!important;flex:1 1 145px!important;min-width:110px!important;}
 #screen #feed-status {order:5!important;flex:1 1 100%!important;margin:0!important;text-align:right!important;font-size:10px!important;}
 #screen .feed-select-label {display:none!important;}
 #screen .panel {width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:13px!important;border-radius:5px!important;}
 #screen .panel h2 {font-size:16px!important;margin:0 0 12px!important;}
 #screen .conditions {order:2!important;}
 #screen .astronomy {order:3!important;}
 #screen .forecast {order:4!important;}
 #screen .iss {order:5!important;}
 #screen .earth {order:6!important;}
 #screen footer {order:7!important;display:block!important;height:auto!important;min-height:0!important;white-space:normal!important;line-height:1.6!important;text-align:center!important;padding:6px 0!important;font-size:10px!important;}
 #screen .conditions .condition-metrics {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto auto!important;gap:0!important;}
 #screen .conditions .metric {min-height:90px!important;padding:10px 8px!important;overflow:visible!important;}
 #screen .conditions .metric:nth-child(odd){border-left:0!important;padding-left:0!important;}
 #screen .conditions .metric:nth-child(n+3){border-top:1px solid #707070!important;}
 #screen .conditions .metric .eyebrow {font-size:11px!important;}
 #screen .conditions .metric strong {font-size:clamp(23px,7vw,34px)!important;}
 #screen .conditions .metric-reading {flex-wrap:wrap!important;gap:5px!important;}
 #screen .conditions .metric-reading span {font-size:11px!important;white-space:normal!important;}
 #screen .conditions .condition-extras {display:grid!important;grid-template-columns:1fr!important;gap:0!important;padding-top:8px!important;}
 #screen .conditions .readout {display:flex!important;padding:7px 0!important;font-size:13px!important;}
 #screen .astro-pair {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
 #screen .astro-item {min-width:0!important;}
 #screen .astro-top {min-height:48px!important;}
 #screen .astro-top p {font-size:11px!important;}
 #screen .astronomy .planets {display:flex!important;flex-wrap:wrap!important;font-size:12px!important;}
 #screen .days {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;height:auto!important;min-height:135px!important;}
 #screen .day {padding:4px 2px!important;}
 #screen .day .weekday {font-size:clamp(10px,2.7vw,13px)!important;}
 #screen .day .symbol {font-size:23px!important;height:35px!important;}
 #screen .day .hi {font-size:clamp(15px,4vw,21px)!important;}
 #screen .day .lo {font-size:clamp(13px,3.5vw,18px)!important;}
 #screen .day .chance {font-size:11px!important;}
 #screen .iss .chart {display:block!important;height:165px!important;flex:none!important;}
 #screen .iss-footer {font-size:12px!important;gap:10px!important;}
 #screen .earth-row {display:flex!important;min-height:54px!important;padding:8px 0!important;font-size:12px!important;}
 #screen .earth-row b {font-size:12px!important;}
 #screen .tide-row {align-items:flex-start!important;}
 #screen .tide-readings {max-width:65%!important;}
}
@media (max-width: 360px) {
 #screen {padding-left:9px!important;padding-right:9px!important;}
 #screen .observation-controls button {padding:5px 7px!important;}
 #screen .astro-pair {gap:6px!important;}
}

/* Phone landscape: a scrollable layout, never a compressed desktop dashboard. */
@media (orientation:landscape) and (max-height:600px) and (max-width:1100px) {
 html,body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;background:#000!important}
 #screen{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;padding:10px max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;grid-template-rows:none!important}
 #screen::after{display:none!important}
 #screen .header{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-rows:auto!important;gap:12px!important;height:auto!important;min-height:54px!important;padding:4px 0 9px!important;align-items:center!important;overflow:visible!important;white-space:normal!important}
 #screen .header>div{grid-row:1!important;min-width:0!important;width:auto!important;max-width:none!important;padding:0!important;border:0!important;overflow:visible!important;font-size:clamp(12px,1.8vw,17px)!important;white-space:nowrap!important}
 #screen .header>div:nth-child(1){grid-column:1!important}
 #screen .header>div:nth-child(2){grid-column:2!important}
 #screen .header>div:nth-child(3){display:none!important}
 #screen .header small.station-brand{grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:7px!important;justify-self:end!important;text-align:left!important;white-space:normal!important;font-size:13px!important}
 #screen .header small.station-brand .station-brand-text,#screen .header small.station-brand .brand-name{display:block!important;font-size:clamp(12px,1.6vw,16px)!important;line-height:1!important}
 #screen .header small.station-brand svg.station-sunset{width:35px!important;height:35px!important;flex:none!important}
 #screen .top{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)!important;gap:12px!important;min-height:0!important;align-items:start!important}
 #screen .camera-wrap{display:flex!important;min-width:0!important;width:100%!important;height:auto!important;gap:5px!important}
 #screen .cam-label{height:auto!important;min-height:23px!important;flex:0 0 auto!important;white-space:normal!important;line-height:1.15!important;font-size:clamp(10px,1.3vw,13px)!important}
 #screen .cam-label span:last-child{display:inline!important;flex:none!important;font-size:11px!important}
 #screen .observation-stage{display:block!important;position:relative!important;width:100%!important;height:auto!important;aspect-ratio:16/9!important;flex:0 0 auto!important;max-height:none!important;align-self:stretch!important}
 #screen .observation-stage>iframe#observation-video,#screen #radar-map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
 #screen .observation-controls{display:flex!important;flex-wrap:wrap!important;gap:5px!important;width:100%!important;min-height:34px!important;overflow:visible!important}
 #screen .observation-controls button{font-size:12px!important;min-height:31px!important;padding:5px 8px!important}
 #screen #feed-select{flex:1 1 140px!important;min-width:100px!important;max-width:none!important;min-height:31px!important;font-size:12px!important}
 #screen #feed-status{margin-left:auto!important;font-size:11px!important;white-space:nowrap!important}
 #screen .feed-select-label{display:none!important}
 #screen .side{display:flex!important;flex-direction:column!important;gap:10px!important;min-height:0!important}
 #screen .bottom{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;min-height:0!important}
 #screen .panel,#screen .bottom .panel{display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:12px!important;border-radius:5px!important}
 #screen .panel h2,#screen .bottom .panel h2{font-size:clamp(15px,2vw,19px)!important;line-height:1.15!important;margin:0 0 10px!important}
 #screen .conditions .condition-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto auto!important;min-height:0!important}
 #screen .conditions .metric{min-height:62px!important;overflow:visible!important;padding:6px!important}
 #screen .conditions .metric .eyebrow{font-size:11px!important}
 #screen .conditions .metric strong{font-size:clamp(21px,2.8vw,29px)!important}
 #screen .conditions .metric-reading{flex-wrap:wrap!important;gap:4px!important}
 #screen .conditions .metric-reading span{white-space:normal!important;font-size:11px!important}
 #screen .conditions .condition-extras{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0 10px!important;margin-top:8px!important}
 #screen .conditions .readout{display:flex!important;padding:5px 0!important;font-size:11px!important}
 #screen .astronomy .astro-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #screen .astronomy .astro-top b{font-size:14px!important}
 #screen .astronomy .readout{display:flex!important;font-size:12px!important}
 #screen .astronomy .planets{display:flex!important;flex-wrap:wrap!important;font-size:11px!important}
 #screen .forecast .days{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;height:auto!important;min-height:135px!important}
 #screen .forecast .day{padding:4px 2px!important;overflow:visible!important}
 #screen .forecast .day .weekday{font-size:12px!important}
 #screen .forecast .day .symbol{height:36px!important;font-size:24px!important}
 #screen .forecast .day .hi{display:block!important;font-size:22px!important}
 #screen .forecast .day .lo{display:block!important;font-size:16px!important}
 #screen .forecast .day .chance{font-size:11px!important}
 #screen .iss .chart{display:block!important;height:165px!important;flex:none!important}
 #screen .iss-footer{display:flex!important;font-size:12px!important}
 #screen .earth{grid-column:1/-1!important}
 #screen .earth-row{display:flex!important;min-height:52px!important;flex:none!important;overflow:visible!important;padding:8px 0!important;font-size:13px!important}
 #screen .earth-row b{font-size:13px!important}
 #screen footer{display:block!important;height:auto!important;min-height:0!important;overflow:visible!important;white-space:normal!important;text-align:center!important;font-size:10px!important;line-height:1.5!important}
}

/* Final portrait phone header layout. Override older desktop and tablet header rules. */
@media screen and (orientation: portrait) and (max-width: 700px) {
 #screen > header.header {
   display:grid!important;
   grid-template-columns:minmax(0,1fr) auto!important;
   grid-template-rows:auto auto!important;
   column-gap:10px!important;
   row-gap:12px!important;
   height:auto!important;
   min-height:105px!important;
   padding:8px 0 14px!important;
   align-items:center!important;
   overflow:visible!important;
   white-space:normal!important;
 }
 #screen > header.header > small.station-brand {
   grid-column:1 / -1!important;
   grid-row:1!important;
   justify-self:start!important;
   align-self:start!important;
   display:flex!important;
   flex-direction:row!important;
   align-items:center!important;
   gap:12px!important;
   width:100%!important;
   max-width:100%!important;
   margin:0!important;
   padding:0!important;
   border:0!important;
   overflow:visible!important;
   text-align:left!important;
   white-space:normal!important;
 }
 #screen > header.header > small.station-brand svg.station-sunset {
   display:block!important;
   flex:0 0 48px!important;
   width:48px!important;
   height:48px!important;
 }
 #screen > header.header > small.station-brand .station-brand-text {
   display:block!important;
   width:auto!important;
   min-width:0!important;
   overflow:visible!important;
   white-space:normal!important;
 }
 #screen > header.header > small.station-brand .brand-name {
   display:block!important;
   color:#ed8c35!important;
   font-size:clamp(17px,4.7vw,22px)!important;
   font-weight:700!important;
   line-height:1.02!important;
   letter-spacing:0!important;
   white-space:normal!important;
 }
 #screen > header.header > small.station-brand #updated {display:none!important;}
 #screen > header.header > div {
   display:block!important;
   position:static!important;
   width:auto!important;
   max-width:100%!important;
   min-width:0!important;
   height:auto!important;
   overflow:visible!important;
   margin:0!important;
   padding:0!important;
   border:0!important;
   font-size:clamp(11px,2.9vw,14px)!important;
   line-height:1.2!important;
   white-space:nowrap!important;
   letter-spacing:0!important;
 }
 #screen > header.header > div#date {grid-column:1!important;grid-row:2!important;justify-self:start!important;}
 #screen > header.header > div#clock {grid-column:2!important;grid-row:2!important;justify-self:end!important;}
 #screen > header.header > div:nth-child(3) {display:none!important;}
}

/* Weather and space news ticker */
.news-ticker{display:flex;align-items:center;gap:10px;min-width:0;min-height:34px;margin-top:7px;margin-bottom:3px;border:1px solid #777;background:#050505;color:#fff;overflow:hidden;font-family:inherit}
.news-ticker-label{display:flex;align-items:center;gap:7px;flex:none;padding:6px 10px;background:#ed8c35;color:#000;font-size:12px;font-weight:700;white-space:nowrap}
.news-ticker-indicator{height:7px;width:7px;border-radius:50%;background:#111}
.news-ticker-window{position:relative;flex:1;min-width:0;overflow:hidden;outline-offset:-2px}
.news-ticker-track{display:flex;align-items:center;width:max-content;min-width:100%;animation:weather-news-crawl var(--news-duration,110s) linear infinite;will-change:transform}
.news-ticker-window:hover .news-ticker-track,.news-ticker-window:focus .news-ticker-track,.news-ticker-window:focus-within .news-ticker-track{animation-play-state:paused}
.news-ticker-item{display:inline-flex;align-items:center;gap:8px;flex:none;margin-right:38px;white-space:nowrap;text-decoration:none;color:#f5f5f5;font-size:12px;line-height:28px}
.news-ticker-item:hover,.news-ticker-item:focus-visible{text-decoration:underline;color:#fff}
.news-ticker-source{color:#ed8c35;font-weight:700}
.news-ticker-item.is-urgent .news-ticker-source{color:#ff4d59}
.news-ticker-item.is-urgent .news-ticker-headline{color:#fff}
.news-ticker-status{flex:none;padding-right:10px;color:#ed8c35;font-size:11px;white-space:nowrap}
.news-ticker-loading{padding:6px 12px;color:#aaa;font-size:12px;white-space:nowrap}
@keyframes weather-news-crawl{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:700px){.news-ticker{gap:5px;margin-top:10px;min-height:37px}.news-ticker-label{font-size:10px;padding:9px 7px}.news-ticker-item{font-size:11px}.news-ticker-status{font-size:9px;padding-right:5px}}
@media(orientation:landscape) and (max-height:550px){.news-ticker{min-height:30px}}
@media(prefers-reduced-motion:reduce){.news-ticker-track{animation:none!important;width:auto;overflow-x:auto;max-width:100%}.news-ticker-window{overflow-x:auto}}

/* News wire is a dedicated row immediately beneath the station header.
   Keep the source footer in its own row so it cannot overlap the headlines. */
#screen{grid-template-rows:64px 34px minmax(0,1.55fr) minmax(0,1fr) 18px!important}
#screen > .header{grid-row:1!important}
#screen > .news-ticker{grid-column:1/-1!important;grid-row:2!important;margin:0!important;min-height:0!important;height:34px!important;align-self:center!important;position:relative;z-index:1}
#screen > .top{grid-row:3!important;min-height:0!important}
#screen > .bottom{grid-row:4!important;min-height:0!important}
#screen > footer{grid-row:5!important;min-height:0!important;position:relative;z-index:0}
.news-ticker-window{height:100%;display:flex;align-items:center;isolation:isolate}
.news-ticker-track{flex:none}
@media(max-height:720px) and (min-width:701px){
 #screen{grid-template-rows:48px 30px minmax(0,1.55fr) minmax(0,1fr) 14px!important}
 #screen > .news-ticker{height:30px!important}
}
@media(max-aspect-ratio:1.43) and (min-width:701px){
 #screen{grid-template-rows:80px 34px minmax(0,1.18fr) minmax(0,1fr) minmax(0,1fr) 18px!important}
 #screen > .camera-wrap{grid-row:3!important}
 #screen > .conditions{grid-row:3!important}
 #screen > .astronomy{grid-row:4!important}
 #screen > .forecast{grid-row:4!important}
 #screen > .iss{grid-row:5!important}
 #screen > .earth{grid-row:5!important}
 #screen > footer{grid-row:6!important}
}
@media(max-aspect-ratio:1.43) and (min-width:701px) and (max-height:720px){
 #screen{grid-template-rows:68px 30px minmax(0,1.18fr) minmax(0,1fr) minmax(0,1fr) 14px!important}
 #screen > .news-ticker{height:30px!important}
}
@media(max-width:700px){
 #screen > .header,#screen > .news-ticker,#screen > footer{grid-row:auto!important}
 #screen > .news-ticker{order:1!important;flex:0 0 37px!important;width:100%!important;height:37px!important;min-height:37px!important;margin:0!important}
 #screen > .camera-wrap{order:2!important}
 #screen > .conditions{order:3!important}
 #screen > .astronomy{order:4!important}
 #screen > .forecast{order:5!important}
 #screen > .iss{order:6!important}
 #screen > .earth{order:7!important}
 #screen > footer{order:8!important}
}
