/* App frame. Wide: two fixed rows. Narrow: one top row, bottom navigation, floating report button. */
header small{display:none}
header{display:flex;align-items:center;gap:8px;position:sticky;top:0;box-sizing:border-box}
header>div{margin-inline-end:auto;min-width:0}
header h1{margin:0;white-space:nowrap}
#new{order:1}#headerLang{order:2}#headerTheme{order:3}#openMenu{order:4}
.view-heading{top:var(--bars-top,60px)}
@media(min-width:901px){
 :root{--bars-top:124px}
 header{height:60px;padding-block:6px;z-index:910;background:var(--bg)}
 header h1{font-size:21px}
 header .brand-logo{width:38px;height:38px}
 #new{width:auto;min-height:40px;padding:0 14px}
 #openMenu{min-width:44px;height:44px;font-size:20px}
 .view-tabs{position:sticky;top:60px;z-index:900;justify-content:flex-start;align-items:center;flex-wrap:nowrap;min-height:64px;box-sizing:border-box;padding-block:4px}
 .view-tabs #spot{display:flex;align-items:center;gap:8px;min-width:0;margin:0;margin-inline-start:auto;padding:0;border:0;background:none}
 .view-tabs #spot .forecast-beach-label{display:none}
 .view-tabs #spot .forecast-beach-picker{min-width:240px}
 .view-tabs #spot select{min-height:40px;font-size:15px}
 body:not([data-view=dashboard]):not([data-view=map]) .view-tabs #spot{display:none}
}
@media(max-width:900px){
 :root{--bars-top:50px;--nav-h:calc(58px + env(safe-area-inset-bottom))}
 body{padding-bottom:calc(var(--nav-h) + 16px)}
 header{height:50px;padding:4px 10px;z-index:890;background:var(--bg)}
 header h1{font-size:16px}
 header .brand-logo{width:30px;height:30px}
 #headerLang,#headerTheme,#openMenu{width:38px;min-width:38px;height:38px;min-height:38px;padding:0;font-size:15px}
 .view-tabs{position:fixed;inset:auto 0 0;top:auto;z-index:900;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0 0 env(safe-area-inset-bottom);background:var(--panel);border-top:1px solid var(--line);border-bottom:0;flex-wrap:nowrap}
 .view-tabs button{min-height:58px;padding:6px 2px;font-size:12px;line-height:1.15;white-space:normal;border-bottom:0;border-top:3px solid transparent}
 .view-tabs button[aria-selected=true]{color:var(--accent);border-top-color:var(--accent)}
 #new{position:fixed;inset-inline-end:14px;inset-inline-start:auto;bottom:calc(var(--nav-h) + 10px);z-index:895;width:54px;height:54px;min-height:54px;padding:0;border:0;border-radius:50%;font-size:0;color:#061722;background:var(--accent);box-shadow:0 6px 16px #0007}
 #new::before{content:"＋";font-size:26px;line-height:1}
 #mapView[data-mode=map]>.mapwrap.mapwrap{height:calc(100dvh - 50px - var(--nav-h));--map-height:calc(100dvh - 50px - var(--nav-h))}
 #mapView[data-mode=map] .map-locate{bottom:76px}
 body:has(#mapView[data-mode=map]:not([hidden])){padding-bottom:0}
}
/* weekly strip: bars fill the day tile */
.wk-bars{display:flex;justify-content:stretch;gap:3px;padding:3px 4px 2px}
.wk-bars i{flex:1 1 0;width:auto;min-width:0;border-radius:3px 3px 1px 1px}
/* hover cue on clickable tiles, mouse only */
@media(hover:hover) and (pointer:fine){
 button.wk-day:hover,.wk-tr[role=button]:hover,.clickable-beach:hover,.favorite-card:hover,.beach-list-card:hover,.qs-latest:hover,.dash-reports-tile:not(:disabled):hover,.mr-row:hover{background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent);cursor:pointer}
 button.wk-day[aria-pressed=true]:hover{background:color-mix(in srgb,var(--accent) 22%,transparent)}
}
@media(max-width:900px){#mapView[data-mode=map] .maptag{left:76px;right:12px;bottom:14px}}
/* day parts follow the reading direction: morning first (right in Hebrew, left in English) */
.wk-bars,.wk-ar{direction:inherit}
.bath-rating-button small.bath-verdict{display:block!important;font-weight:700;font-size:12px;line-height:1.2;text-align:center;color:var(--text)}
.bath-verdict:empty{display:none}
.bath-flat{font-size:13px;font-weight:700;color:var(--muted)}
/* Weekly strip: each wind arrow sits exactly over its rating bar. */
.wk-ar{justify-content:stretch;gap:3px;padding:0 4px}
.wk-ar svg,.wk-ar .wk-dash{flex:1 1 0;width:auto;min-width:0;height:15px}
/* Mobile: the report action lives in the bottom tabs, so nothing floats over the content. */
#navReport{display:none}
@media(max-width:900px){
 #new{display:none!important}
 .view-tabs #navReport{display:block;min-height:42px;margin:8px 6px;padding:0 2px;font-size:13px;font-weight:700;color:#061722;background:var(--accent);border:0;border-radius:9px}
 .light .view-tabs #navReport{color:#fff}
 .view-tabs{align-items:center}
 body:has(#cardDialog[open]) .map-beach-actions{visibility:hidden}
}
.signup-note{font-size:13px;color:var(--muted)}
.signup-note a{color:var(--accent)}

/* Consent, presence name and account deletion */
.consent-check,.sea-name{display:flex;align-items:flex-start;gap:8px;margin:10px 0;font-size:14px;line-height:1.5;color:inherit}
.consent-check input,.sea-name input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--accent,#53d9d0)}
.guest-signup-dialog a.primary[aria-disabled=true]{opacity:.5}
.account-legal{margin:14px 0 6px;font-size:13px}
.account-delete{margin-top:18px;background:none;border:1px solid #c0533f80;color:#e0735c}

/* The English name is longer than the Hebrew one */
@media(max-width:400px){html[lang=en] header h1{font-size:14.5px}}

/* Admin test reports */
#reportTestBanner{margin:0 0 8px;padding:8px 12px;border-radius:8px;background:#ffc72c;color:#3a2703;font-size:13px;font-weight:700}
#reportTestBanner[hidden]{display:none}
.report-test-badge{background:#ffc72c!important;color:#3a2703!important}

/* Admin reports summary */
.admin-report{width:min(460px,calc(100vw - 24px));max-height:90dvh;padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--panel,#0a202c);color:var(--text)}
.ar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.ar-head h2{margin:0;font-size:20px}
.ar-seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.ar-seg button{min-height:38px;padding:4px;font-size:13px}.ar-seg button[aria-pressed=true]{background:var(--accent);color:#06262b;border-color:var(--accent)}
.ar-body h3{margin:16px 0 6px;font-size:14px;color:var(--accent)}.ar-body>p{margin:12px 0}
.ar-row{display:grid;grid-template-columns:74px minmax(0,1fr) 30px;gap:8px;align-items:center;font-size:13px;margin-bottom:5px}.ar-row i{display:block;height:9px}.ar-row b{display:block;height:9px;min-width:3px;border-radius:5px;background:var(--accent)}
.ar-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}.ar-tiles div{padding:9px;border-radius:9px;background:color-mix(in srgb,var(--accent) 10%,transparent)}.ar-tiles p{margin:0;font-size:12px;color:var(--muted)}.ar-tiles strong{font-size:20px}
.ar-note{font-size:12px;color:var(--muted);margin:6px 0 0}
.ar-csv{display:block;margin-top:14px;padding:10px;text-align:center;border:1px solid var(--accent);border-radius:10px;color:var(--accent);font-weight:700;text-decoration:none}

/* Install row at the top of the menu */
.drawer-group[hidden]{display:none}
.drawer-install{background:color-mix(in srgb,var(--accent) 16%,transparent);border-radius:10px;font-weight:700}

/* Wave park marker and card */
.wave-park-host{background:none;border:0}
.wave-park-mark{display:grid;place-items:center;width:38px;height:38px;box-sizing:border-box;border-radius:10px;background:#0a202c;border:3px solid #ffc72c;box-shadow:0 2px 8px #0006;cursor:pointer}
.wave-park-name{position:absolute;top:42px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#0a202c;color:#ffc72c;border-radius:999px;padding:1px 9px;font-size:12px;font-weight:700;line-height:18px;pointer-events:none}
.wave-park-card{width:min(420px,calc(100vw - 24px));padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--panel,#0a202c);color:var(--text)}
.wp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.wp-head h2{margin:2px 0 0;font-size:21px}
.wp-kind{margin:0;font-size:13px;color:#d69a00}body:not(.light) .wp-kind{color:#ffc72c}
.wp-text{margin:10px 0}.wave-park-card h3{margin:14px 0 6px;font-size:14px;color:var(--accent)}
.wp-sessions div{display:grid;grid-template-columns:76px 64px minmax(0,1fr);gap:8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.wp-sessions .wp-expert b{color:#d69a00}body:not(.light) .wp-sessions .wp-expert b{color:#ffc72c}
.wp-note{margin:8px 0 0;font-size:13px;color:var(--muted)}
.wp-link{display:block;margin-top:14px;padding:11px;border-radius:12px;text-align:center;font-weight:700;text-decoration:none}

/* Admin usage dashboard */
.au-seg{grid-template-columns:repeat(3,minmax(0,1fr))}.au-mode{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:8px}.au-mode button[aria-pressed=true]{background:var(--accent);color:#06262b;border-color:var(--accent)}
.ar-tiles small{font-size:12px;color:var(--accent);font-weight:700}
.au-bars{display:flex;align-items:flex-end;gap:3px;height:72px;margin-top:10px}
.au-bars i{flex:1;display:flex;flex-direction:column;justify-content:flex-end;min-height:2px;border-radius:3px 3px 0 0;background:var(--accent);overflow:hidden}
.au-bars i b{display:block;background:#2f6f78}

/* Date range for admin screens */
.ar-seg{grid-auto-flow:column;grid-template-columns:none}.ar-seg button[data-range]{padding-inline:8px}
.ar-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:6px;align-items:end;margin-top:8px}
.ar-range[hidden]{display:none}.ar-range label{display:grid;gap:3px;font-size:12px;color:var(--muted)}.ar-range input{min-width:0;min-height:38px}
.ar-range button{min-height:38px}.ar-range-error{grid-column:1/-1;margin:0;font-size:13px;color:#e0735c}.ar-range-error:empty{display:none}
.ar-range{grid-template-columns:repeat(2,minmax(0,1fr))}.ar-range input{width:100%;box-sizing:border-box;padding-inline:6px;font-size:14px}.ar-range button{grid-column:1/-1}

.wp-weather{margin:8px 0 0;font-size:15px;font-weight:700}.wp-weather:empty{display:none}

/* small note when the account could not load (replaces the old full-screen check) */
.startup-note{position:fixed;z-index:1100;inset-inline:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:10px;justify-content:space-between;padding:10px 12px;border-radius:12px;background:var(--panel);color:var(--text);border:1px solid var(--line);box-shadow:0 6px 18px #0006;font-size:14px}
.startup-note button{min-height:40px;padding:0 14px;border-radius:10px;border:1px solid var(--accent);background:var(--accent);color:var(--bg);font:inherit;font-weight:700;cursor:pointer}
