/* BestSwell planning tools: inherit all existing appearance roles. */
.main-nav{overflow-x:auto;white-space:nowrap;scrollbar-width:thin;gap:clamp(16px,3vw,34px)}
.main-nav a.active{color:var(--ink);border-bottom:3px solid var(--sea)}
.feature-view{padding-top:32px}.feature-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.feature-heading h1{font-size:clamp(30px,5vw,58px);letter-spacing:-.045em;margin:6px 0}.feature-heading p{color:var(--muted)}
.feature-controls,.feature-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.feature-controls label{display:grid;gap:7px}.feature-controls p{width:100%;margin:2px 0;color:var(--muted)}
.feature-controls select,.feature-form select,.feature-form input:not([type=checkbox]):not([type=range]),#direction-hour{min-height:46px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:10px;font:inherit}
.compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0}.compare-card{min-width:0}.compare-card h2{font-size:25px}.compare-clock{font-size:14px;color:var(--muted)}.compare-metrics{display:grid;gap:0;margin:24px 0}.compare-metrics>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.compare-metrics dt{color:var(--muted)}.compare-metrics dd{margin:0;font-weight:650;text-align:right;display:flex;align-items:center;gap:5px}.compare-metrics svg,.map-legend svg{width:24px;height:24px}.compare-card .outline-button{width:100%}
.feature-picker{max-height:50dvh;overflow:auto}.picker-row{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:15px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink)}.picker-row small,.alert-beaches small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.picker-row:disabled{opacity:.5}
.feature-dialog{width:min(720px,calc(100% - 28px))}.feature-dialog h2{border:0;background:none;outline:none}.feature-form{display:grid;gap:20px}.feature-form>label,.form-pair label{display:grid;gap:9px;color:var(--ink);text-align:left}.feature-check{display:flex!important;align-items:flex-start!important;gap:12px!important;line-height:1.5}.feature-check input[type=checkbox]{appearance:auto;flex:0 0 18px;width:18px;height:18px;padding:0;margin:3px 0 0;accent-color:var(--sea)}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.feature-form input[type=range]{width:100%;accent-color:var(--sea)}
.alert-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.alert-card h2{font-size:23px;line-height:1.4}.alert-beaches{max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:14px}.alert-beaches label{padding:9px 0;border-bottom:1px solid var(--line)}.community-reports{margin-top:20px}.community-reports time{display:block;font-weight:600}.community-reports p{font-size:14px;line-height:1.6}
.camera-links{display:grid;gap:12px}.camera-link{display:grid;gap:6px;padding:16px;border:1px solid var(--line);border-radius:14px;text-decoration:none;color:var(--ink)}.camera-link small{color:var(--muted)}
.satellite-map{position:relative;aspect-ratio:5/3;min-height:250px;max-height:450px;overflow:hidden;border-radius:18px;background:#102535;isolation:isolate}.map-tiles{position:absolute;display:grid;grid-template-columns:repeat(4,256px);width:1024px;height:1024px}.map-tiles img{display:block;width:256px;height:256px;max-width:none}.satellite-map>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.map-beach-dot{fill:#fff;stroke:#152a38;stroke-width:4}.map-swell-arrow{stroke:#92f2db}.map-wind-arrow{stroke:#ffc484}.map-swell-arrow,.map-wind-arrow{fill:none;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 2px #000)}.map-north{position:absolute;top:10px;left:12px;color:#fff;background:#102535dd;padding:8px;border-radius:8px;font-size:14px}.map-buttons{position:absolute;top:12px;right:12px;display:grid;gap:5px}.map-buttons button{width:40px;height:40px;border:1px solid #9bafb6;color:#fff;background:#102535dd;border-radius:10px;font-size:22px;display:grid;place-items:center;padding:0}.map-credit{position:absolute;bottom:0;left:0;right:0;margin:0;background:#06131bed;color:#fff;font-size:10px;line-height:1.4;padding:7px 10px}.map-credit a{color:#d8f4e7}.map-legend{display:flex;flex-wrap:wrap;gap:14px}.map-legend p{display:flex;align-items:center;gap:6px}.map-swell{color:var(--sea)}.map-wind{color:var(--ink)}.map-consent{padding:18px;background:var(--foam);border-radius:16px;margin-bottom:18px}
@media(max-width:900px){.compare-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compare-card:last-child:nth-child(3){grid-column:1/-1}.spot-actions{flex-wrap:wrap;justify-content:flex-end}.spot-actions #add-compare{font-size:12px;padding:10px}}
@media(max-width:600px){.feature-heading{align-items:flex-start;flex-direction:column}.compare-grid,.alert-list{grid-template-columns:1fr}.compare-card:last-child:nth-child(3){grid-column:auto}.feature-controls{gap:12px}.feature-controls label{flex:1;min-width:110px}.feature-dialog{padding:22px 18px}.form-pair{grid-template-columns:1fr}.spot-actions #add-compare{order:3;width:100%;white-space:nowrap}.spot-heading>.spot-actions{max-width:140px;gap:8px}.feature-toolbar{gap:10px}.satellite-map{min-height:275px}.map-legend{font-size:14px}}
@media(prefers-reduced-motion:reduce){.feature-view{animation:none}}
.main-nav a{margin-left:0}.main-nav a.active{border-bottom:0}
.compare-metrics [data-rating-band="flat"]{color:var(--rating-red)}.compare-metrics [data-rating-band="very-low"]{color:var(--rating-red)}.compare-metrics [data-rating-band="low"]{color:var(--rating-orange)}.compare-metrics [data-rating-band="fair"]{color:var(--rating-amber)}.compare-metrics [data-rating-band="good"]{color:var(--rating-green)}.compare-metrics [data-rating-band="excellent"]{color:var(--rating-best)}
@media(max-width:600px){.spot-heading:has(#add-compare){flex-wrap:wrap}.spot-heading:has(#add-compare)>div:first-child{flex:1 1 100%}.spot-heading>.spot-actions{width:100%;max-width:none;justify-content:flex-start;flex-wrap:nowrap}.spot-actions #add-compare{order:0;width:auto;margin-right:auto}.spot-actions .icon-button,.spot-actions .save-button{flex:0 0 44px}}

/* v8: one clock and one scroll track for every compared beach. */
.compare-planner{padding:0 0 20px;border-bottom:1px solid var(--line)}
.compare-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.compare-toolbar .primary-button{font-size:14px;padding:13px 20px;background:var(--sea);color:var(--paper)}
.compare-toolbar #compare-profile{margin-left:auto;font-size:13px}
.compare-selection{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.compare-choice{display:inline-flex;align-items:center;gap:14px;padding:10px 7px 10px 14px;border:1px solid var(--line);border-radius:13px;background:var(--card);min-width:0}
.compare-choice strong{font-size:14px}.compare-choice small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.compare-choice button,.account-beach-chip button{display:grid;place-items:center;width:36px;height:36px;flex:none;padding:0;border-radius:50%;color:var(--muted)}
.compare-choice svg,.account-beach-chip svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#compare-status{margin:16px 0 0;line-height:1.6}
.compare-days{display:flex;gap:7px;overflow-x:auto;padding:8px;background:var(--card);border-radius:16px;margin-top:20px;scrollbar-width:thin}
.compare-day-button{min-width:94px;flex:1 0 94px;min-height:62px;border-radius:11px;display:grid;align-content:center;gap:5px;text-align:left;padding:10px 14px;color:var(--muted)}
.compare-day-button strong{font-size:14px}.compare-day-button small{font-size:11px}
.compare-day-button[aria-pressed=true]{background:var(--paper);color:var(--sea)}
.compare-time-controls{display:grid;grid-template-columns:minmax(140px,190px) minmax(160px,200px) 1fr;align-items:center;gap:18px;margin:18px 0 0}
.compare-time-controls label{display:grid;gap:8px;font-size:12px;color:var(--muted);min-width:0}
.compare-time-controls select{width:100%;background:var(--card);font-size:14px;padding:10px 12px}
.compare-time-controls p{font-size:12px;line-height:1.6;color:var(--muted);margin:15px 0 0}
.compare-timeline-section{margin-top:24px;min-width:0}
.compare-timeline-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}
.compare-timeline-heading h2{margin:0;font-size:20px}.compare-timeline-heading p{margin:0}
.compare-timeline{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:17px;background:var(--paper);padding:0 6px 8px 0;scrollbar-width:thin}
.compare-table{border-collapse:separate;border-spacing:0;width:max-content;table-layout:fixed;text-align:left}
.compare-table th,.compare-table td{padding:5px;font-weight:400;vertical-align:top;width:136px;min-width:136px}
.compare-table thead th{padding:12px 5px 3px}.compare-table thead th button{width:100%;min-height:40px;font-size:12px;font-weight:650;border-radius:8px;color:var(--muted)}
.compare-table thead th button[aria-pressed=true]{color:var(--sea);background:var(--card)}
.compare-table .compare-row-label{position:sticky;left:0;background:var(--paper);width:180px;min-width:180px;max-width:180px;z-index:1;padding:16px;border-right:1px solid var(--line)}
.compare-row-label>strong{display:block;font-size:17px;font-weight:650;line-height:1.3;overflow-wrap:anywhere}.compare-row-label>small{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.compare-row-label>.text-button{font-size:12px;padding:0;min-height:44px;margin-top:4px;color:var(--sea)}
.compare-table tbody tr:not(:last-child)>*{border-bottom:1px solid var(--line);padding-bottom:14px}.compare-table tbody tr+tr>*{padding-top:14px}
.compare-hour{display:flex;flex-direction:column;gap:7px;width:100%;min-height:208px;text-align:left;padding:12px 10px 9px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-variant-numeric:tabular-nums}
.compare-hour[aria-pressed=true]{border-color:var(--sea)}
.compare-hour-weather{display:flex;gap:5px;align-items:center;min-height:22px;color:var(--muted)}.compare-hour-weather .weather-icon{width:20px;height:20px;color:var(--sea)}.compare-hour-weather small{font-size:9px;line-height:1.4}
.compare-hour-surf{font-size:19px;white-space:nowrap;font-weight:650}.compare-hour-period,.compare-hour-wind{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.compare-hour .direction-arrow,.compare-hour .calm-mark{width:17px;height:17px}
.compare-hour-scores{display:grid;gap:5px;margin-top:4px}.compare-hour-scores>span{display:flex;justify-content:space-between;align-items:baseline;gap:4px;font-size:10px;color:var(--muted)}.compare-hour-scores b{font-size:15px;color:var(--rating-ink,var(--ink))}.compare-hour-scores b small{font-size:9px;font-weight:400;color:var(--muted)}
.compare-hour-confidence{font-size:9px;color:var(--muted);margin-top:auto}.compare-hour .hour-rating-strip{height:3px;flex:none;width:100%;margin-top:3px;border-radius:3px;background:var(--rating-ink,var(--line))}
.compare-hour-missing{justify-content:center;align-items:center;text-align:center;color:var(--muted)}.compare-hour-missing span{font-size:12px;line-height:1.5}.compare-hour-missing small{font-size:10px}
.compare-scrubber{display:flex;align-items:center;gap:18px;margin-top:16px}.compare-scrubber span{font-size:13px;font-weight:650;white-space:nowrap;min-width:78px}.compare-scrubber input{width:100%;margin:0;accent-color:var(--sea)}
.compare-card h2{margin:0;font-size:24px}.compare-card .section-heading{min-height:0}.compare-empty{padding:32px 20px}.compare-empty h2{color:var(--ink);font-size:21px;margin:0 0 12px}.compare-empty p{margin:0;line-height:1.6}
.alert-page-actions{display:grid;grid-template-columns:minmax(170px,230px) minmax(170px,230px);gap:12px;align-items:center;margin:20px 0}.alert-page-actions button{width:100%;font-size:14px;min-height:48px;margin:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.compare-toolbar{gap:10px}.compare-toolbar #compare-profile{margin-left:0}.compare-toolbar #compare-capacity{margin-left:auto}.compare-toolbar #compare-profile{flex-basis:100%}.compare-time-controls{grid-template-columns:1fr 1fr;gap:14px}.compare-time-controls p{grid-column:1/-1;margin:0}.compare-timeline-heading{align-items:flex-start;gap:10px;flex-wrap:wrap}.compare-table .compare-row-label{min-width:112px;width:112px;max-width:112px;padding:12px 10px}.compare-row-label>strong{font-size:14px}.compare-row-label>small{font-size:10px}.compare-table th,.compare-table td{width:124px;min-width:124px}.compare-hour{padding:10px 8px;min-height:208px}.compare-hour-surf{font-size:17px}.compare-choice{flex:1 1 150px;justify-content:space-between}.compare-grid{grid-template-columns:1fr}.compare-card:last-child:nth-child(3){grid-column:auto}.alert-page-actions{grid-template-columns:1fr}}
/* Old mobile rules hid the former external link; feature tabs must remain available. */
.main-nav a{display:inline-flex;align-items:center;min-height:44px;flex:none}
#compare-empty-message{margin:24px 0}.compare-details{margin:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px 0}.compare-details>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;font-weight:600;color:var(--ink)}.compare-details>summary:after{content:'+';color:var(--sea);font-size:24px;font-weight:400}.compare-details[open]>summary:after{content:'−'}
