:root {
  --bg:#03121d; --panel:#061b29; --panel2:#071e2c; --line:#075477; --cyan:#65d7ff;
  --text:#e8f7ff; --muted:#9bbbd0; --green:#62ed85; --yellow:#ffd84e; --red:#ff6868;
}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif}
body{background:radial-gradient(ellipse at 50% 0%,#10394c 0%,#061a28 42%,#020a11 100%)}
.screen{width:100vw;height:100vh;padding:.8vh .9vw;display:flex;flex-direction:column;gap:.8vh;position:relative;overflow:hidden}
.topbar{height:12%;min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 1.1vw;border-bottom:2px solid #075477;background:linear-gradient(90deg,rgba(2,18,29,.9),rgba(8,43,60,.65),rgba(2,18,29,.9));flex-shrink:0}
.brand{display:flex;align-items:center;gap:1vw;min-width:0}.crab-mark{font-size:clamp(36px,4vw,70px);color:var(--cyan);filter:drop-shadow(0 0 12px #0b7296)}
h1{font-size:clamp(28px,3.1vw,54px);letter-spacing:.055em;margin:0;line-height:1;font-weight:900}.subtitle{font-size:clamp(10px,1.1vw,19px);letter-spacing:.18em;color:#b7eaff;margin-top:.55vh;font-weight:700}
.hero-meta{text-align:right;min-width:22%;}.target-date{font-size:clamp(12px,1.2vw,21px);font-weight:800;color:#d6f3ff}.clock{font-size:clamp(25px,2.5vw,43px);font-weight:900;line-height:1.05;margin:.2vh 0}.plan-label{font-size:clamp(10px,.9vw,16px);color:var(--cyan);letter-spacing:.1em;font-weight:bold}
.main-grid{height:57%;min-height:0;display:grid;grid-template-columns:26% 46% minmax(0,1fr);gap:.7vw;flex-shrink:0}
.panel{min-width:0;min-height:0;background:linear-gradient(145deg,rgba(7,31,46,.97),rgba(2,15,24,.98));border:1px solid var(--line);border-radius:12px;padding:1.15vh 1vw;box-shadow:inset 0 0 0 1px rgba(66,194,239,.04),0 4px 18px #0005;overflow:hidden}
.weather-panel,.crab-panel,.tide-panel{height:100%}.section-heading{font-size:clamp(15px,1.5vw,26px);font-weight:900;letter-spacing:.035em;display:flex;align-items:center;gap:.45em;line-height:1.1}.subhead{font-size:.68em;color:var(--cyan);font-weight:700}.weather-hero{display:flex;align-items:center;gap:.7vw;margin:1.1vh 0 .5vh}.weather-icon{font-size:clamp(35px,4vw,67px);line-height:1}.temperature{font-size:clamp(34px,4vw,66px);font-weight:900;line-height:1}.weather-description{font-size:clamp(11px,1.15vw,20px);color:#c7e8f8;margin-top:.2vh}.high-low{display:flex;justify-content:space-between;font-size:clamp(12px,1.1vw,19px);padding:.65vh 0;border-bottom:1px solid #234b60}.high-low strong{font-size:1.12em}.weather-details{display:grid;grid-template-columns:1fr 1fr;gap:.7vh .6vw;margin:.8vh 0;font-size:clamp(10px,.95vw,16px)}.weather-details div{display:flex;justify-content:space-between;gap:.25vw}.weather-details span,.footer-item span{color:var(--muted)}.weather-details strong{white-space:nowrap}.divider{height:1px;background:#21475c;margin:.9vh 0}.small-heading{font-size:clamp(11px,1vw,17px);color:var(--cyan)}.hourly-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:.2vw;margin-top:.9vh}.hour-cell{text-align:center;min-width:0}.hour-cell span{display:block;font-size:clamp(9px,.82vw,14px);color:#b8d7e8}.hour-cell .hour-icon{font-size:clamp(16px,1.6vw,26px);margin:.4vh 0}.hour-cell strong{font-size:clamp(11px,1.05vw,18px)}.hour-cell strong{display:inline-block;min-width:2.3em;padding:.18em .22em;border-radius:5px;color:#fff}.hour-cell.temp-cold strong{color:#75c9ff}.hour-cell.temp-cool strong{color:#5edbd7}.hour-cell.temp-mild strong{color:#70e59b}.hour-cell.temp-warm strong{color:#ffd45c}.hour-cell.temp-hot strong{color:#ff9666}.hour-cell.temp-neutral strong{color:#d4e5ee}.hour-cell.hour-past{opacity:.42;filter:grayscale(1)}.hour-cell.hour-past span,.hour-cell.hour-past strong{color:#82919a}
.crab-panel{border-color:#126c8d;background:linear-gradient(145deg,rgba(7,30,46,.98),rgba(3,12,24,.99));display:flex;flex-direction:column}.crab-title{display:flex;align-items:center;justify-content:center;gap:.7vw;font-size:clamp(16px,1.55vw,27px);font-weight:900}.animal-icon{font-size:1.35em}.score-line{text-align:center;line-height:1;margin:.35vh 0}.score{font-size:clamp(46px,5.3vw,88px);font-weight:900;color:var(--green);letter-spacing:-.04em}.score-denom{font-size:clamp(20px,2vw,34px);font-weight:bold;color:#e7f6ff}.rating{border-radius:7px;text-align:center;padding:.45vh .5vw;font-size:clamp(13px,1.25vw,21px);font-weight:900;letter-spacing:.05em}.rating.good{background:var(--green);color:#062010}.rating.fair{background:var(--yellow);color:#211b00}.rating.poor{background:var(--red);color:#fff}.rating.closed{background:var(--red);color:#300}.rating.neutral{background:#19394a;color:#bcd9e8}
.window-box{border:1px solid #1e617a;border-radius:9px;margin-top:.8vh;padding:.75vh .7vw;text-align:center;background:#041723}.window-label,.action-label{font-size:clamp(10px,.9vw,15px);color:var(--cyan);font-weight:800;letter-spacing:.05em}.window-time{font-size:clamp(17px,1.65vw,28px);font-weight:900;color:var(--yellow);margin:.4vh 0}.drop-pull{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #1a4257;margin-top:.55vh;padding-top:.6vh}.drop-pull>div{display:flex;flex-direction:column;gap:.25vh}.drop-pull>div+div{border-left:1px solid #23475b}.drop-pull strong{font-size:clamp(17px,1.65vw,28px)}.next-action{background:#0b2a3a;border-left:4px solid var(--yellow);padding:.65vh .7vw;margin-top:.7vh;font-size:clamp(11px,1vw,17px);font-weight:700}.score-factors{display:grid;grid-template-columns:1fr;gap:.55vh;margin-top:.65vh}.score-factors>div{display:grid;grid-template-columns:minmax(105px,19%) minmax(0,1fr) 34px;align-items:center;gap:.35vh .55vw;font-size:clamp(9px,.78vw,13px)}.score-factors .factor-label{grid-column:auto;color:#c4e0ee;display:flex;justify-content:space-between;align-items:center;gap:.45em;white-space:nowrap}.factor-label em{font-style:normal;color:#8fb5c8;font-weight:800}.meter{height:8px;background:#173749;border-radius:10px;overflow:hidden}.meter i{display:block;height:100%;width:0;background:var(--green);border-radius:10px;transition:width .25s ease}.score-factors b{font-size:.9em;text-align:right}.fineprint{font-size:clamp(8px,.7vw,12px);line-height:1.25;color:#8caabc;margin:.6vh 0 0}
.tide-list{margin-top:.8vh}.tide-row{display:grid;grid-template-columns:.65fr .8fr .65fr;gap:.3vw;align-items:center;padding:.7vh .2vw;border-bottom:1px solid #1a3d51;font-size:clamp(11px,1.05vw,18px)}.tide-kind{font-weight:900}.tide-kind.high{color:var(--yellow)}.tide-kind.low{color:var(--green)}.tide-time{display:flex;flex-direction:column;gap:.12vh}.tide-day{font-size:.62em;line-height:1;color:#8cb4c9;font-weight:800;letter-spacing:.07em}.tide-row.past{opacity:.38;filter:grayscale(1)}.tide-height{text-align:right;font-weight:800}.tide-trend{margin-top:1.1vh;padding-top:.8vh}.next-tide-name{font-size:clamp(13px,1.2vw,20px);font-weight:900;margin-top:.5vh;color:var(--text)}.next-tide-name.high{color:var(--yellow)}.next-tide-name.low{color:var(--green)}.next-tide-countdown{font-size:clamp(20px,2vw,33px);font-weight:900;color:var(--yellow);margin-top:.2vh}.sun-row{display:grid;grid-template-columns:1fr 1fr;gap:.4vw;border-top:1px solid #23485c;margin-top:1vh;padding-top:.8vh}.sun-row>div{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:.4vw}.sun-symbol{grid-row:span 2;font-size:clamp(20px,2vw,33px);color:var(--yellow)}.sun-symbol.sunset{color:#ff8c71}.sun-label{font-size:clamp(8px,.72vw,12px);color:var(--muted);font-weight:bold}.sun-row strong{font-size:clamp(11px,1vw,17px)}
.clam-grid{height:28%;min-height:0;display:grid;grid-template-columns:18% repeat(3,minmax(0,1fr));gap:.6vw;flex-shrink:0}.clam-summary,.bed-panel{height:100%;padding:.75vh .7vw}.clam-summary-main{margin:.45vh 0;display:flex;align-items:center;gap:.6vw}.clam-score{font-size:clamp(35px,3.6vw,58px);font-weight:900;color:var(--cyan);line-height:1}.clam-score small{font-size:.35em;color:var(--muted)}.clam-summary .rating{flex:1}.clam-note{font-size:clamp(10px,.82vw,13px);line-height:1.2;color:#d0e6f1}.bed-heading{display:flex;flex-direction:column;gap:.1vh;font-size:clamp(14px,1.25vw,20px);font-weight:900}.bed-location{font-size:clamp(9px,.82vw,14px);font-weight:normal;color:var(--muted)}.bed-status{margin:.45vh 0;padding:.55vh .5vw;border-radius:6px;text-align:center;font-size:clamp(11px,1.05vw,18px);font-weight:900}.bed-status.good{background:var(--green);color:#08200f}.bed-status.warning{background:var(--yellow);color:#221b00}.bed-status.poor{background:#284353;color:#c4d9e6}.bed-status.closed{background:var(--red);color:#310000}.bed-status.neutral{background:#173748;color:#c1e0ed}.bed-metrics{display:grid;grid-template-columns:.8fr 1.2fr;gap:.4vw}.bed-metrics div{display:flex;flex-direction:column;gap:.25vh}.bed-metrics span{font-size:clamp(8px,.68vw,11px);color:var(--muted)}.bed-metrics strong{font-size:clamp(11px,.95vw,15px)}.species-line{font-size:clamp(9px,.78vw,13px);color:var(--muted);margin-top:.65vh}.species-line strong{color:#d7f1ff}.bed-detail{font-size:clamp(8px,.72vw,12px);line-height:1.2;color:#86a7b8;margin-top:.5vh}
.bottom-bar{flex:1;min-height:50px;display:grid;grid-template-columns:1.35fr 1fr 1.1fr 1.2fr;align-items:center;gap:1vw;border-top:1px solid #124b64;padding:.6vh .3vw 0}.health-status{display:flex;align-items:center;gap:.6vw;min-width:0}.status-dot{width:12px;height:12px;flex-shrink:0;border-radius:50%;background:var(--yellow);box-shadow:0 0 10px currentColor}.health-status.open .status-dot{background:var(--green)}.health-status.closed .status-dot{background:var(--red)}.health-status strong{font-size:clamp(10px,.9vw,15px);display:block}.health-status small{font-size:clamp(8px,.68vw,11px);display:block;color:var(--muted);margin-top:.2vh}.footer-item{display:flex;flex-direction:column;gap:.35vh;font-size:clamp(9px,.8vw,13px)}.footer-item strong{font-size:clamp(10px,.9vw,15px)}.connection-status{text-align:right;font-size:clamp(8px,.7vw,12px);color:var(--muted)}
.alert-banner{position:absolute;inset:13% 18% auto 18%;z-index:5;display:flex;align-items:center;gap:1vw;padding:1.6vh 1.5vw;background:rgba(55,0,0,.97);border:3px solid var(--red);border-radius:12px;box-shadow:0 0 0 100vmax rgba(0,0,0,.55),0 0 28px #f44a;animation:alertPulse 2s infinite}.alert-banner.hidden{display:none}.alert-icon{font-size:clamp(35px,4vw,65px);font-weight:900;color:#fff;background:#a00;border-radius:50%;width:1.2em;height:1.2em;display:grid;place-items:center;flex-shrink:0}.alert-banner strong{font-size:clamp(18px,2vw,32px);color:#fff}.alert-banner p{font-size:clamp(12px,1.2vw,20px);margin:.4vh 0 0;color:#ffdede}
.muted{color:var(--muted);font-size:clamp(10px,.9vw,15px)}
@keyframes alertPulse{50%{border-color:#ffb0b0;box-shadow:0 0 0 100vmax rgba(0,0,0,.55),0 0 36px #f77}}
@media(max-aspect-ratio: 1.45/1) and (min-width:801px){
  .screen{min-width:0;padding:.7vh .7vw;gap:.7vh}
  .topbar{min-height:68px;height:11%}
  .main-grid{height:58%;grid-template-columns:27% 44% minmax(0,1fr);gap:.55vw}
  .clam-grid{height:28%;grid-template-columns:18% repeat(3,minmax(0,1fr));gap:.5vw}
  .panel{padding:.9vh .7vw}
  .section-heading{font-size:clamp(14px,1.35vw,22px)}
  .tide-row{padding:.55vh .1vw;font-size:clamp(10px,.95vw,15px)}
  .score-factors>div{grid-template-columns:minmax(78px,24%) minmax(0,1fr) 26px}
}

@media(max-width:800px){
  html,body{height:auto;min-height:100%;overflow:auto}
  .screen{width:100%;height:auto;min-height:100vh;overflow:visible;padding:12px;gap:10px}
  .topbar{height:auto;min-height:0;padding:14px 8px;gap:10px;align-items:flex-start}
  .brand{gap:10px}.crab-mark{font-size:34px}h1{font-size:clamp(22px,5vw,34px)}.subtitle{font-size:9px;letter-spacing:.1em}
  .hero-meta{min-width:0}.target-date{font-size:10px}.clock{font-size:22px}.plan-label{font-size:9px}
  .main-grid,.clam-grid{height:auto;grid-template-columns:1fr;gap:10px}
  .panel{padding:14px;min-height:180px;border-radius:10px}
  .weather-panel,.crab-panel,.tide-panel,.clam-summary,.bed-panel{height:auto}
  .section-heading{font-size:17px}.temperature{font-size:48px}.weather-icon{font-size:42px}
  .weather-details{font-size:13px}.hour-cell span{font-size:11px}.hour-cell .hour-icon{font-size:20px}.hour-cell strong{font-size:13px}
  .crab-title{font-size:19px}.score{font-size:64px}.score-denom{font-size:24px}.rating{font-size:14px}.window-time{font-size:21px}
  .drop-pull strong{font-size:21px}.score-factors>div{font-size:11px;grid-template-columns:minmax(95px,19%) minmax(0,1fr) 30px}.fineprint{font-size:10px}
  .tide-row{font-size:14px;padding:10px 2px}.next-tide-name{font-size:16px}.next-tide-countdown{font-size:25px}
  .clam-score{font-size:44px}.bed-heading{font-size:18px}.bed-status{font-size:13px;padding:8px}.bed-metrics strong{font-size:14px}
  .alert-banner{position:fixed;inset:18% 5% auto 5%;padding:14px;gap:10px}.alert-banner strong{font-size:20px}.alert-banner p{font-size:13px}
}

/* Hatfield live water-quality panel */
.water-quality-card{margin-top:14px;padding:12px;border:1px solid rgba(93,190,202,.28);border-radius:10px;background:rgba(30,102,118,.12)}
.water-quality-heading{font-size:.72rem;letter-spacing:.12em;color:#83cbd4;font-weight:800;margin-bottom:8px}
.salinity-reading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:1.35rem;font-weight:800}
.salinity-reading small{font-size:.62rem;letter-spacing:.06em;color:#8fd9a8;text-align:right}
.water-quality-card a{color:#91dbe4}

/* Refined live-water card: clear readings, consistent gauges, calmer metadata. */
.weather-water-card{margin-top:.65vh;padding:.7vh .72vw;border:1px solid rgba(91,188,207,.34);border-radius:10px;background:linear-gradient(145deg,rgba(14,43,58,.88),rgba(5,24,35,.88));box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.water-gauge-row{display:grid;grid-template-columns:minmax(92px,27%) minmax(0,1fr);align-items:center;gap:.8vw;min-height:3.7vh}
.water-gauge-copy{display:grid;grid-template-columns:1fr;align-content:center;gap:.15vh;min-width:0}
.water-label{font-size:clamp(8px,.68vw,10px);letter-spacing:.12em;color:#8ccbd8;font-weight:800}
.water-gauge-copy strong{font-size:clamp(17px,1.35vw,22px);line-height:1.05;white-space:nowrap;font-weight:850;color:#f2f8fc;font-variant-numeric:tabular-nums}
.water-gauge-copy small{font-size:clamp(8px,.58vw,9px);color:#91d9b2;letter-spacing:.025em;line-height:1.15}
#water-temp-celsius{color:#a9c6d3}
.water-gauge{min-width:0;padding-top:.2vh}
.gauge-track{height:10px;border-radius:999px;background:linear-gradient(90deg,#c87943 0%,#e5c45d 35%,#66c7b7 65%,#3ca8d0 100%);padding:0;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.gauge-fill{height:100%;width:0;border-radius:999px;background:rgba(255,255,255,.13);border-right:7px solid #62ed85;box-sizing:border-box;transition:width .5s ease;filter:drop-shadow(0 0 2px rgba(0,0,0,.95)) drop-shadow(0 0 4px rgba(98,237,133,.95))}
.gauge-scale{display:flex;justify-content:space-between;font-size:clamp(8px,.56vw,9px);color:#9cb5c2;margin-top:4px;font-variant-numeric:tabular-nums}
.temperature-gauge-row{border-top:1px solid rgba(110,164,184,.2);margin-top:.55vh;padding-top:.6vh}
.temperature-gauge-track{background:linear-gradient(90deg,#55b8ed 0%,#5cc9c1 35%,#e5c45d 68%,#dc7950 100%)}
.temperature-gauge-row .water-gauge-copy strong{font-size:clamp(17px,1.35vw,22px)}
.water-temp-row span{color:var(--muted)}.water-temp-row strong{font-size:clamp(14px,1.1vw,18px)}.water-temp-row small{color:#8caabc}
.water-updated{display:flex;align-items:center;gap:.35em;font-size:clamp(8px,.58vw,9px);font-weight:650;color:#a8c2ce;margin-top:.6vh;padding-top:.45vh;border-top:1px solid rgba(110,164,184,.15);overflow-wrap:anywhere;line-height:1.25}
.weather-water-card .fineprint{font-size:clamp(8px,.56vw,9px);line-height:1.3;color:#7898a8;margin:.35vh 0 0}
.weather-water-card .fineprint a{color:#7dd6e7;text-decoration:underline;text-underline-offset:2px}

/* Compact dashboard update: visible score weights, less clamming microcopy. */
.score-factors{gap:.45vh;margin-top:.55vh}.score-factors>div{gap:.2vh .3vw;grid-template-columns:minmax(95px,19%) minmax(0,1fr) 30px}.score-factors .meter{height:6px}.clam-summary .section-heading{font-size:clamp(13px,1.15vw,19px)}.clam-summary .fineprint{display:none}.bed-location,.species-line,.bed-detail{display:none}

/* Minimal water conditions: show only the two metric names, values, and gauges. */
.weather-panel > .divider:last-of-type,
.weather-panel .section-heading.small-heading:has(+ .water-quality-card),
.weather-water-card .water-gauge-copy small,
.weather-water-card .gauge-scale,
.weather-water-card .water-updated,
.weather-water-card .fineprint { display: none !important; }
.weather-water-card { margin-top: 0; padding: 9px 11px; }
.weather-water-card .water-gauge-row { padding: 4px 0; }
.weather-water-card .water-gauge-row + .water-gauge-row { border-top: 1px solid rgba(110,164,184,.18); margin-top: 5px; padding-top: 8px; }
.weather-water-card .water-label { font-size: clamp(10px,.78vw,13px); color: #b8d7e8; font-weight: 800; letter-spacing: .055em; }
.weather-water-card .water-gauge-copy strong { font-size: clamp(18px,1.45vw,23px); }
.weather-water-card .water-gauge { align-self: center; }
.weather-water-card .gauge-track { height: 13px; overflow: visible; position: relative; }
.weather-water-card .gauge-fill { border-right: 0; position: relative; }
/* Large black circular indicator, doubled from the previous 7px line marker. */
.weather-water-card .gauge-fill::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #05090d;
  border: 2px solid #e8f4f8;
  box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 0 4px rgba(0,0,0,.75);
  box-sizing: border-box;
  z-index: 2;
}

/* Expanded dashboard layout: use the full display height and adapt to less-wide screens. */
@media (min-width:801px){
  .main-grid{flex:1 1 0;height:auto;min-height:0}
  .clam-grid{flex:0 0 29%;height:auto;min-height:0}
  .topbar{flex:0 0 12%;height:auto;min-height:72px}
}
@media (max-width:1200px) and (min-width:801px){
  .main-grid{grid-template-columns:minmax(245px, .92fr) minmax(360px, 1.45fr) minmax(245px, .95fr)}
  .clam-grid{grid-template-columns:minmax(170px,.8fr) repeat(3,minmax(0,1fr))}
  .section-heading{font-size:clamp(13px,1.45vw,19px)}
  .weather-details{font-size:clamp(9px,1vw,12px)}
  .tide-row{font-size:clamp(10px,1vw,13px)}
}

/* Room-distance upgrades: compact tide curve and simple bed-access indicators. */
.tide-graph{height:clamp(46px,6.2vh,62px);margin:.25vh 0 .35vh;flex:0 0 auto;overflow:hidden;border-radius:6px;background:linear-gradient(180deg,rgba(17,70,91,.22),rgba(4,21,31,.12))}
.tide-graph svg{display:block;width:100%;height:100%;overflow:hidden}
.tide-graph-empty{height:100%;display:grid;place-items:center;color:#7197aa;font-size:clamp(9px,.65vw,11px);font-weight:800;letter-spacing:.08em}
.tide-gridline{stroke:#23475b;stroke-width:.8;stroke-dasharray:3 4}
.tide-curve{fill:none;stroke:#42c8f1;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 2px rgba(66,200,241,.35))}
.tide-now-line{stroke:#fff;stroke-width:1.3;stroke-dasharray:2 2;opacity:.75}
.tide-axis-label{fill:#86a9ba;font-size:7px;font-weight:800;letter-spacing:.5px}
.tide-list{margin-top:.1vh}
.tide-row{padding:.42vh .2vw;font-size:clamp(10px,.95vw,16px)}
.tide-trend{margin-top:.65vh;padding-top:.55vh}
.bed-threshold-track{height:5px;border-radius:99px;background:#173749;overflow:hidden;margin:-.15vh 0 .65vh}
.bed-threshold-track i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#f0b34b,#42c9f0);transition:width .35s ease}
.bed-threshold-track i.met{background:linear-gradient(90deg,#1dbb77,#5af08a)}
@media (min-width:801px){
  .tide-panel{display:flex;flex-direction:column}
  .tide-list{flex:0 1 auto;min-height:0}
  .tide-row{padding:.34vh .15vw}
  .tide-trend{margin-top:auto;padding-top:.5vh}
  .bed-threshold-track{height:4px}
}

/* Full clamming-card redesign: clear, room-readable, data IDs preserved for app.js */
.clam-grid{
  height:29%;
  grid-template-columns:minmax(155px,.72fr) repeat(3,minmax(0,1fr));
  gap:.7vw;
  align-items:stretch;
}
.clam-summary,.bed-panel{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  padding:1.1vh .9vw;
  background:linear-gradient(150deg,rgba(10,36,51,.98),rgba(4,16,28,.99));
  border:1px solid rgba(63,133,158,.38);
  box-shadow:inset 0 1px 0 rgba(180,232,255,.035);
}
.clam-summary{display:flex;flex-direction:column;justify-content:center;gap:.7vh;border-color:rgba(57,201,245,.42);background:linear-gradient(145deg,rgba(8,43,58,.98),rgba(4,18,30,.99))}
.clam-summary:after,.bed-panel:after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#45d7e7,#2877a8);opacity:.9}
.clam-summary .section-heading{font-size:clamp(12px,1.05vw,18px);line-height:1.2;letter-spacing:.04em}
.clam-summary .animal-icon{font-size:1.15em}
.clam-summary-main{display:flex;flex-direction:column;align-items:flex-start;gap:.55vh;margin:.35vh 0 0}
.clam-score{font-size:clamp(40px,4vw,64px);line-height:.95;letter-spacing:-.045em;font-weight:900;color:#66d9e8;font-variant-numeric:tabular-nums}
.clam-score small{font-size:.28em;color:#8fb3c4;letter-spacing:0}
.clam-summary .rating{font-size:clamp(10px,.85vw,14px);padding:.45vh .6vw;letter-spacing:.07em}
.bed-panel{display:flex;flex-direction:column;justify-content:space-between;gap:.6vh;transition:border-color .2s ease,transform .2s ease}
.bed-panel:nth-of-type(2):after{background:linear-gradient(180deg,#3dd6ec,#238cb5)}
.bed-panel:nth-of-type(3):after{background:linear-gradient(180deg,#57d9a0,#168d78)}
.bed-panel:nth-of-type(4):after{background:linear-gradient(180deg,#8da7ff,#7065d9)}
.bed-heading{font-size:clamp(14px,1.35vw,23px);letter-spacing:.045em;line-height:1.1;padding-left:.15vw}
.bed-heading:before{content:"";display:inline-block;width:.42em;height:.42em;border-radius:50%;margin:0 .45em .08em 0;background:#42c8e8;box-shadow:0 0 12px rgba(66,200,232,.35)}
.bed-panel:nth-of-type(3) .bed-heading:before{background:#57d9a0;box-shadow:0 0 12px rgba(87,217,160,.3)}
.bed-panel:nth-of-type(4) .bed-heading:before{background:#9a94ff;box-shadow:0 0 12px rgba(154,148,255,.3)}
.bed-status{margin:.15vh 0 .35vh;text-align:left;padding:.65vh .65vw;border-radius:7px;font-size:clamp(10px,.9vw,15px);letter-spacing:.035em;background:rgba(25,57,74,.72);border:1px solid rgba(130,177,199,.16);}
.bed-status.good{background:rgba(26,142,89,.19);border-color:rgba(63,220,144,.4);color:#74f0b0}
.bed-status.warning{background:rgba(205,153,28,.17);border-color:rgba(255,208,77,.4);color:#ffdb71}
.bed-status.poor{background:rgba(68,91,108,.22);border-color:rgba(130,166,187,.25);color:#c0d3de}
.bed-status.closed{background:rgba(174,45,45,.18);border-color:rgba(255,93,93,.45);color:#ff9999}
.bed-threshold-track{height:5px;margin:0 0 .55vh;background:#17384a;border-radius:99px;overflow:hidden}
.bed-threshold-track i{background:linear-gradient(90deg,#2788b5,#4dd9ed)}
.bed-threshold-track i.met{background:linear-gradient(90deg,#20b879,#66edaa)}
.bed-metrics{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:.5vw;margin-top:auto}
.bed-metrics>div{min-width:0;display:flex;flex-direction:column;gap:.4vh;padding:.65vh .55vw;background:rgba(16,43,57,.7);border:1px solid rgba(85,135,158,.2);border-radius:7px}
.bed-metrics span{font-size:clamp(9px,.72vw,12px);color:#8fb0c0;text-transform:uppercase;letter-spacing:.065em;font-weight:800}
.bed-metrics strong{font-size:clamp(12px,1.05vw,18px);line-height:1.15;color:#effaff;font-weight:850;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media (max-width:900px){
 .clam-grid{height:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .clam-summary{grid-column:1/-1;min-height:78px;flex-direction:row;align-items:center;justify-content:space-between}
 .clam-summary-main{flex-direction:row;align-items:center;gap:12px;margin:0}
 .clam-score{font-size:42px}
 .bed-panel{min-height:150px;padding:12px}
 .bed-heading{font-size:16px}
 .bed-status{font-size:11px;padding:7px}
 .bed-metrics strong{font-size:13px}
}
@media (max-width:560px){.clam-grid{grid-template-columns:1fr}.clam-summary{grid-column:auto}.bed-panel{min-height:135px}}


/* Room-readable clamming bed redesign: scores + essential tide info only */
.clam-grid-redesign{grid-template-columns:12% repeat(3,minmax(0,1fr));gap:.65vw}
.clam-summary-redesign{justify-content:center;gap:1.2vh;padding:1vh .8vw}
.clam-summary-redesign .section-heading{font-size:clamp(12px,1.05vw,18px)}
.clam-summary-redesign .clam-summary-main{display:flex;flex-direction:column;align-items:flex-start;gap:.5vh}
.clam-summary-redesign .clam-score{font-size:clamp(35px,3.3vw,58px)}
.bed-redesign{position:relative;display:flex;flex-direction:column;justify-content:flex-start;gap:.45vh;padding:1vh .85vw;background:linear-gradient(155deg,rgba(8,36,52,.98),rgba(2,14,23,.99));border-color:rgba(63,135,168,.45);border-radius:12px}
.bed-redesign:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--bed-accent,#39d98a)}
.bed-bridge{--bed-accent:#39d98a}.bed-noaa{--bed-accent:#39b9f2}.bed-idaho{--bed-accent:#ffd84e}
.bed-topline{display:flex;align-items:center;justify-content:space-between;gap:.5vw}
.bed-redesign .bed-heading{font-size:clamp(14px,1.4vw,24px);letter-spacing:.035em}
.bed-redesign .bed-heading:before{background:var(--bed-accent);box-shadow:0 0 12px color-mix(in srgb,var(--bed-accent),transparent 50%)}
.bed-score-ring{width:clamp(44px,4.5vw,76px);height:clamp(44px,4.5vw,76px);flex:0 0 auto;border-radius:50%;display:grid;place-items:center;border:clamp(4px,.45vw,7px) solid var(--bed-accent);box-shadow:0 0 14px color-mix(in srgb,var(--bed-accent),transparent 78%),inset 0 0 10px #0006;background:#061b29}
.bed-score-ring strong{font-size:clamp(18px,1.9vw,32px);line-height:1;color:var(--bed-accent);font-weight:900;font-variant-numeric:tabular-nums}
.bed-redesign .bed-status{margin:.25vh 0 .1vh;padding:.5vh .55vw;font-size:clamp(10px,.9vw,15px);letter-spacing:.045em;text-align:center}
.bed-big-tide{padding:.5vh .15vw .15vh;min-height:0}
.bed-big-tide strong{font-size:clamp(15px,1.3vw,23px);font-weight:900;color:#f2fbff;font-variant-numeric:tabular-nums}
.bed-next-label{font-size:clamp(9px,.72vw,12px);font-weight:900;letter-spacing:.09em;color:#82b9d2;margin-top:.25vh}
.bed-window-value{font-size:clamp(13px,1.05vw,18px);font-weight:900;color:var(--bed-accent);font-variant-numeric:tabular-nums;line-height:1.2;overflow-wrap:anywhere}
.bed-redesign .bed-threshold-track{margin-top:auto;margin-bottom:0;height:4px;opacity:.9}
.bed-redesign .bed-threshold-track i{background:var(--bed-accent)}
.bed-redesign .bed-status.poor{color:#ffd16c;background:rgba(175,113,17,.13);border-color:rgba(255,209,108,.24)}
.bed-redesign .bed-status.good{color:#68f2a0;background:rgba(25,170,95,.14);border-color:rgba(70,235,142,.28)}
@media(max-aspect-ratio:1.45/1) and (min-width:801px){.clam-grid-redesign{grid-template-columns:11% repeat(3,minmax(0,1fr))}.bed-redesign .bed-heading{font-size:clamp(13px,1.25vw,20px)}}
@media(max-width:800px){.clam-grid-redesign{height:auto;grid-template-columns:repeat(3,minmax(0,1fr))}.clam-summary-redesign{grid-column:1/-1;min-height:65px;flex-direction:row;align-items:center;justify-content:space-between}.clam-summary-redesign .clam-summary-main{flex-direction:row;align-items:center}.bed-redesign{min-height:155px}.bed-score-ring{width:46px;height:46px}.bed-score-ring strong{font-size:19px}}
@media(max-width:560px){.clam-grid-redesign{grid-template-columns:1fr}.clam-summary-redesign{grid-column:auto}.bed-redesign{min-height:130px}}


/* Photo-inspired clamming bed cards: bold header, circular score, clean tide rows. */
.clam-grid-redesign{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8vw;height:28%;}
.bed-redesign{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start;gap:.55vh;padding:1vh .85vw;background:linear-gradient(180deg,rgba(7,34,51,.98),rgba(2,14,25,.99));border:1px solid rgba(65,126,160,.55);border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 7px 20px rgba(0,0,0,.18);}
.bed-redesign:before{content:"";position:absolute;inset:0 0 auto;height:clamp(54px,8vh,100px);background:linear-gradient(115deg,color-mix(in srgb,var(--bed-accent),transparent 88%),transparent 70%);pointer-events:none}
.bed-bridge{--bed-accent:#39e978}.bed-noaa{--bed-accent:#39b9f2}.bed-idaho{--bed-accent:#ffdc42}
.bed-topline{position:relative;display:flex;align-items:center;justify-content:space-between;gap:.65vw;min-height:clamp(52px,7.8vh,88px);padding:.2vh .2vw .65vh;border-bottom:1px solid rgba(104,157,184,.18)}
.bed-redesign .bed-heading{font-size:clamp(15px,1.55vw,27px);font-weight:900;letter-spacing:.025em;line-height:1.1;color:#eaf7ff}
.bed-redesign .bed-heading:before{content:"";display:inline-block;width:.2em;height:1.15em;margin-right:.45em;vertical-align:-.12em;border-radius:4px;background:var(--bed-accent);box-shadow:0 0 13px color-mix(in srgb,var(--bed-accent),transparent 45%)}
.bed-score-ring{width:clamp(50px,5.4vw,86px);height:clamp(50px,5.4vw,86px);flex:0 0 auto;border-radius:50%;display:grid;place-items:center;border:clamp(4px,.48vw,7px) solid var(--bed-accent);box-shadow:0 0 18px color-mix(in srgb,var(--bed-accent),transparent 78%),inset 0 0 10px #0006;background:#061b29}
.bed-score-ring strong{font-size:clamp(20px,2vw,34px);line-height:1;color:var(--bed-accent);font-weight:950;font-variant-numeric:tabular-nums}
.bed-redesign .bed-status{position:relative;margin:.35vh 0 .2vh;padding:.55vh .6vw;border-radius:6px;font-size:clamp(10px,.88vw,15px);letter-spacing:.055em;text-align:center;font-weight:900}
.bed-redesign .bed-status.good{color:#6af39c;background:rgba(10,111,60,.18);border:1px solid rgba(57,233,120,.32)}
.bed-redesign .bed-status.poor{color:#ffd45c;background:rgba(140,91,8,.18);border:1px solid rgba(255,212,92,.25)}
.bed-big-tide{display:flex;align-items:center;justify-content:space-between;padding:.7vh .65vw;background:linear-gradient(90deg,color-mix(in srgb,var(--bed-accent),transparent 90%),rgba(3,20,31,.3));border:1px solid color-mix(in srgb,var(--bed-accent),transparent 72%);border-radius:9px;min-height:clamp(40px,5.2vh,62px)}
.bed-big-tide:before{content:"NEXT LOW";font-size:clamp(9px,.75vw,12px);font-weight:900;letter-spacing:.08em;color:#91b8ca;margin-right:.5vw}
.bed-big-tide strong{font-size:clamp(14px,1.2vw,22px);font-weight:950;color:var(--bed-accent);font-variant-numeric:tabular-nums;text-align:right}
.bed-next-label{font-size:clamp(10px,.78vw,13px);font-weight:900;letter-spacing:.09em;color:#8bbbd1;margin-top:.3vh}
.bed-window-value{font-size:clamp(14px,1.25vw,22px);font-weight:950;color:var(--bed-accent);font-variant-numeric:tabular-nums;line-height:1.2;overflow-wrap:anywhere;margin-top:.1vh}
.bed-redesign .bed-threshold-track{margin-top:auto;height:5px;opacity:.95;border-radius:9px;background:#183648;overflow:hidden}
.bed-redesign .bed-threshold-track i{background:var(--bed-accent);box-shadow:0 0 10px color-mix(in srgb,var(--bed-accent),transparent 40%)}
@media(max-aspect-ratio:1.45/1) and (min-width:801px){.clam-grid-redesign{grid-template-columns:repeat(3,minmax(0,1fr))}.bed-redesign .bed-heading{font-size:clamp(13px,1.35vw,21px)}}
@media(max-width:800px){.clam-grid-redesign{height:auto;grid-template-columns:repeat(3,minmax(0,1fr))}.bed-redesign{min-height:155px}.bed-score-ring{width:46px;height:46px}.bed-score-ring strong{font-size:19px}}
@media(max-width:560px){.clam-grid-redesign{grid-template-columns:1fr}.bed-redesign{min-height:130px}}

/* Clamming beds redesigned to match the approved neon tide-card reference. */
.clam-grid-photo-match{height:28%;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75vw}
.clam-grid-photo-match .bed-redesign{padding:0;gap:0;border-radius:18px;background:linear-gradient(160deg,#082638 0%,#03121e 72%);border:1px solid rgba(53,125,164,.58);box-shadow:inset 0 1px 0 rgba(186,232,255,.07),0 8px 22px rgba(0,0,0,.3);display:flex;flex-direction:column;justify-content:flex-start;overflow:hidden}
.bed-photo-header{min-height:25%;display:flex;align-items:center;justify-content:space-between;gap:.5vw;padding:.7vh .9vw .8vh 1vw;background:linear-gradient(110deg,rgba(14,61,88,.92),rgba(3,23,37,.96)),radial-gradient(ellipse at 10% 0%,rgba(47,161,206,.3),transparent 60%);border-bottom:1px solid rgba(91,158,192,.28);position:relative}
.bed-photo-header:after{content:"";position:absolute;inset:auto 0 0;height:3px;background:linear-gradient(90deg,var(--bed-accent),transparent 80%);opacity:.9}
.bed-photo-title{display:flex;align-items:center;gap:.45vw;min-width:0;font-size:clamp(13px,1.05vw,20px);font-weight:900;letter-spacing:.025em;text-shadow:0 2px 10px #0008}
.bed-symbol{font-size:clamp(24px,2.4vw,42px);color:#bdeeff;text-shadow:0 0 12px rgba(64,190,255,.65);line-height:1}
.bed-score-ring{width:clamp(50px,5.1vw,86px);height:clamp(50px,5.1vw,86px);border-width:clamp(4px,.48vw,8px);box-shadow:0 0 17px color-mix(in srgb,var(--ring-color,var(--bed-accent)),transparent 78%),inset 0 0 10px #0008;flex-shrink:0}
.bed-score-ring strong{font-size:clamp(21px,2.15vw,37px);color:var(--ring-color,var(--bed-accent))}
.bed-forecast-list{display:grid;grid-template-rows:repeat(5,minmax(0,1fr));gap:.42vh;padding:.7vh .65vw .75vh;flex:1;min-height:0}
.bed-forecast-row{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1fr) minmax(0,.62fr);align-items:center;gap:.35vw;padding:.35vh .55vw;border:1px solid rgba(54,105,137,.48);border-radius:10px;background:linear-gradient(110deg,rgba(7,27,43,.95),rgba(4,19,31,.95));min-width:0}
.bed-row-day{font-size:clamp(10px,.78vw,14px);font-weight:900;color:#8ed7ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bed-row-time{font-size:clamp(11px,.88vw,16px);font-weight:850;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.bed-row-height{font-size:clamp(14px,1.05vw,19px);font-weight:900;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.bed-row-height small{font-size:.48em;color:#8ba7ba;font-weight:800}
.bed-row-height.qualifies{color:#4ce875}
.bed-row-height.near-threshold{color:#ffe34d}
.bed-row-height.marginal{color:#ff914d}
.bed-row-height.above-threshold{color:#ff554e}
.bed-row-next-good{border-color:var(--bed-accent);background:linear-gradient(90deg,rgba(0,76,54,.56),rgba(3,29,39,.94));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bed-accent),transparent 65%)}
.bed-row-next-good .bed-row-day{color:#65f18b}
.bed-forecast-empty{display:grid;place-items:center;text-align:center;color:#a2c3d5;font-size:clamp(10px,.9vw,15px);font-weight:900;letter-spacing:.07em}
@media(max-aspect-ratio:1.45/1) and (min-width:801px){.clam-grid-photo-match{grid-template-columns:repeat(3,minmax(0,1fr));gap:.55vw}.bed-photo-title{font-size:clamp(14px,1.35vw,21px)}.bed-row-day{font-size:clamp(10px,.95vw,14px)}.bed-row-time{font-size:clamp(11px,1vw,15px)}.bed-row-height{font-size:clamp(15px,1.4vw,21px)}}
@media(max-width:900px){.clam-grid-photo-match{height:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.clam-grid-photo-match .bed-redesign{min-height:200px}.bed-photo-header{padding:10px}.bed-forecast-list{padding:8px;gap:5px}.bed-row-day{font-size:11px}.bed-row-time{font-size:12px}.bed-row-height{font-size:16px}}
@media(max-width:560px){.clam-grid-photo-match{grid-template-columns:1fr}.clam-grid-photo-match .bed-redesign{min-height:220px}}

/* Replace bed score rings with the next forecasted low-tide access window. */
.bed-next-window{flex:0 0 auto;min-width:43%;max-width:58%;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:.18vh;text-align:right;padding:.45vh .55vw;border:1px solid rgba(112,153,175,.35);border-radius:10px;background:rgba(2,15,25,.72)}
.bed-next-window small{font-size:clamp(8px,.68vw,11px);font-weight:900;letter-spacing:.08em;color:#9ab8c8;white-space:nowrap}
.bed-next-window strong{font-size:clamp(12px,1.15vw,19px);line-height:1.1;font-weight:950;color:#d5e5ee;font-variant-numeric:tabular-nums;white-space:nowrap}
.bed-next-window em{font-size:clamp(8px,.68vw,11px);font-style:normal;font-weight:850;color:#8ba9b9;white-space:nowrap}
.bed-next-window.window-available{border-color:color-mix(in srgb,var(--bed-accent),transparent 40%);box-shadow:0 0 12px color-mix(in srgb,var(--bed-accent),transparent 88%)}
.bed-next-window.window-available strong{color:var(--bed-accent)}
@media(max-width:800px){.bed-next-window{min-width:45%;padding:5px}.bed-next-window strong{font-size:12px}}


/* Simplified status palette: green = good, red = bad, blue = everything else. */
:root{--green:#54ee8b;--yellow:#55bfff;--red:#ff5d68}
.rating.good{background:#54ee8b;color:#062010}
.rating.fair{background:#eab308;color:#211b00;border:1px solid #facc15}.rating.poor{background:#dc2626;color:#fff;border:1px solid #ff5d68}.rating.neutral{background:#123e5c;color:#bfe7ff;border:1px solid #267eb0}
.rating.closed{background:#7d202a;color:#fff0f0;border:1px solid #ff5d68}
.hour-cell.temp-cold strong,.hour-cell.temp-cool strong,.hour-cell.temp-mild strong,.hour-cell.temp-warm strong,.hour-cell.temp-hot strong,.hour-cell.temp-neutral strong{color:#72caff}
.tide-kind.high,.tide-kind.low,.next-tide-name.high,.next-tide-name.low,.next-tide-countdown{color:#72caff}
.sun-symbol,.sun-symbol.sunset{color:#72caff}

.bed-bridge,.bed-noaa,.bed-idaho{--bed-accent:#62c5ff}
.bed-row-height.qualifies{color:#54ee8b}
.bed-row-height.near-threshold,.bed-row-height.marginal{color:#72caff}
.bed-row-height.above-threshold{color:#ff5d68}
.bed-row-next-good{border-color:#54ee8b;background:linear-gradient(90deg,rgba(0,76,54,.42),rgba(3,29,39,.94));box-shadow:inset 0 0 0 1px rgba(84,238,139,.18)}
.bed-row-next-good .bed-row-day{color:#54ee8b}
.bed-next-window.window-available{--bed-accent:#54ee8b;border-color:rgba(84,238,139,.6)}
.bed-next-window.window-available strong{color:#54ee8b}
.bed-next-window.window-unavailable{border-color:rgba(255,93,104,.65);box-shadow:0 0 10px rgba(255,93,104,.08)}
.bed-next-window.window-unavailable strong,.bed-next-window.window-unavailable em{color:#ff727b}
.bed-status.warning,.bed-status.poor{color:#72caff;background:rgba(35,127,186,.15);border-color:rgba(98,197,255,.35)}
.bed-status.good{color:#54ee8b;background:rgba(25,170,95,.14);border-color:rgba(84,238,139,.32)}
.bed-status.closed{color:#ff727b;background:rgba(174,45,45,.18);border-color:rgba(255,93,104,.45)}

/* Compact clamming window: show only the time range in the tiny box. */
.bed-next-window small,.bed-next-window em{display:none!important}
.bed-next-window{gap:0!important;padding:.35vh .5vw!important}

/* Finished tide chart treatment: shaded water area, crisp axis, and restrained status markers. */
.tide-graph{height:clamp(58px,7.2vh,76px);margin:.35vh 0 .55vh;border:1px solid rgba(66,200,241,.12);background:linear-gradient(180deg,rgba(16,65,84,.3),rgba(4,19,29,.28));box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.tide-graph svg{overflow:visible}
.tide-area{fill:url(#tideAreaFill)}
.tide-curve{fill:none;stroke:#42c8f1;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 2px rgba(66,200,241,.28))}
.tide-gridline{stroke:#2b5062;stroke-width:.7;stroke-dasharray:2 4;opacity:.8}
.tide-now-line{stroke:#e5f8ff;stroke-width:1;stroke-dasharray:2 2;opacity:.72}
.tide-now-dot{fill:#e5f8ff;stroke:#42c8f1;stroke-width:1.2}
.tide-axis-label{fill:#8fb6c7;font-size:7px;font-weight:800;letter-spacing:.6px}
.tide-axis-line{stroke:#31576a;stroke-width:.8;opacity:.75}

/* Keep the main Weather Forecast and Tides headings visually matched and centered. */
.panel-main-heading{justify-content:center;text-align:center;color:var(--text);font-size:clamp(15px,1.5vw,26px);font-weight:900;letter-spacing:.035em;line-height:1.1}

/* Polished next-tide summary at the bottom of the tide panel. */
.tide-trend{position:relative;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:center;column-gap:1vw;row-gap:.25vh;margin-top:1.4vh;padding:1.1vh .9vw;border:1px solid rgba(98,197,255,.28);border-radius:9px;background:linear-gradient(115deg,rgba(14,57,76,.68),rgba(4,22,33,.88));box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 3px 10px rgba(0,0,0,.12)}
.tide-trend .small-heading{grid-column:1/-1;margin:0 0 .25vh;color:#72caff;font-size:clamp(10px,.82vw,14px);font-weight:900;letter-spacing:.12em;line-height:1.1}
.next-tide-name{grid-column:1;grid-row:2;margin:0;font-size:clamp(13px,1.15vw,19px);font-weight:900;letter-spacing:.045em;color:#72caff}
.next-tide-countdown{grid-column:2;grid-row:2;margin:0;font-size:clamp(22px,2vw,34px);font-weight:900;line-height:1;color:#72caff;text-align:right;font-variant-numeric:tabular-nums;text-shadow:0 0 12px rgba(98,197,255,.12)}
.next-tide-name.high,.next-tide-name.low,.next-tide-countdown{color:#72caff}
@media(max-width:900px){.tide-trend{padding:10px 12px;column-gap:10px}.tide-trend .small-heading{font-size:11px}.next-tide-name{font-size:15px}.next-tide-countdown{font-size:25px}}

/* Condition score bars: red at 0, green at 100; each filled portion is a single solid score color. */
.score-factors .meter{background:linear-gradient(90deg,rgba(255,65,65,.10),rgba(255,220,65,.09) 50%,rgba(65,220,110,.10));border:1px solid rgba(120,170,190,.14);box-shadow:inset 0 1px 2px rgba(0,0,0,.25)}
.score-factors .meter i{background-image:none!important;box-shadow:0 0 5px color-mix(in srgb,currentColor,transparent 70%)}

/* Shellfish Central three-color crabbing status */
.score.good{color:var(--green)}
.score.fair{color:var(--yellow)}
.score.poor{color:var(--red)}

/* Responsive typography refinement for the bottom clamming-bed cards. */
@media (min-width: 901px) {
  .bed-photo-header { gap: .4vw; padding: .55vh .65vw .65vh .75vw; }
  .bed-forecast-list { padding: .55vh .5vw .6vh; gap: .35vh; }
  .bed-forecast-row { gap: .25vw; padding: .25vh .4vw; border-radius: 8px; }
}
@media (max-width: 1200px) {
  .bed-photo-title { font-size: clamp(12px, 1.1vw, 16px); }
  .bed-row-day { font-size: clamp(10px, .9vw, 12px); }
  .bed-row-time { font-size: clamp(11px, .95vw, 13px); }
  .bed-row-height { font-size: clamp(13px, 1.05vw, 16px); }
}
