/* Loading screen (11.11.2026): skeleton, "updating" badge, splash. Colours follow the theme tokens. */
.dd-sk{display:block;border-radius:8px;flex:none;max-width:100%;
 --sk-a:var(--line,#E3E7EA);--sk-b:color-mix(in srgb,var(--line,#E3E7EA) 40%,var(--panel,#fff));
 background:linear-gradient(90deg,var(--sk-a) 0%,var(--sk-b) 50%,var(--sk-a) 100%);background-size:200% 100%;animation:dd-sh 1.6s ease-in-out infinite}
.dd-sk-r10{border-radius:10px}.dd-sk-r12{border-radius:12px}
@keyframes dd-sh{0%{background-position:100% 0}100%{background-position:-100% 0}}
.dd-skel-card .tbig,.dd-skel-card .tsub{display:flex;align-items:center;min-height:0}
.dd-skel-card .tsub{margin-top:6px}
.dd-skel-card.fl-status{display:flex;flex-direction:column;gap:8px}
.dd-skel-card .fl-st-rate{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.dd-sk-ducks{display:flex;gap:4px}.dd-sk-ducks i{width:14px;height:14px;border-radius:50%;background:var(--line,#E3E7EA)}
.dd-skel-card .tl-row{display:flex;align-items:center;justify-content:space-between;gap:8px}

/* weekly strip skeleton: same footprint as the real strip */
.dd-skel-strip .dd-wk{display:flex;padding:8px 4px}
.dd-wk-day{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px;line-height:1.25}
.dd-wk-day b{font-weight:700;color:var(--text,inherit)}.dd-wk-day span{color:var(--muted,#5C6B76)}
.dd-wk-bars{display:flex;align-items:flex-end;gap:2px;height:48px;margin:2px 0}
.dd-wk-bar{width:10px!important;border-radius:3px}
/* the day table under the strip, as placeholder rows */
.dd-wk-table{display:flex;flex-direction:column;margin-top:12px;border-top:1px solid var(--line-2,#EDF0F2)}
.dd-wk-row{display:flex;align-items:center;gap:16px;height:48px;padding:0 12px;border-bottom:1px solid var(--line-2,#EDF0F2)}
/* wide screens: keep the skeleton the same height as the real cards so the page does not jump */
.dd-grow{flex:1;min-width:0}
@media (min-width:901px){#dashTiles .dd-skel-card.fl-wind,#dashTiles .dd-skel-card.fl-swell,#dashTiles .dd-skel-card.fl-triple{min-height:166px}}

/* "updating" badge in the status card header */
.dd-upd{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:1.4;padding:2px 8px;border-radius:8px;white-space:nowrap;
 background:color-mix(in srgb,var(--accent,#0E6E74) 12%,transparent);color:var(--text,inherit)}
.dd-upd-failed{background:var(--chip-bg,#F1F4F5);color:var(--muted,#5C6B76)}
.dd-spin{width:12px;height:12px;border-radius:50%;border:2px solid var(--line,#E3E7EA);border-top-color:var(--accent,#0E6E74);box-sizing:border-box;animation:dd-rot .9s linear infinite;flex:none}
@keyframes dd-rot{to{transform:rotate(360deg)}}
/* on the phone the header row is narrow: the reports line and the in-water count wait until the update arrives */
@media (max-width:900px){.dd-updating .fl-status .tl-row>:not(.tl):not(.dd-upd),#dashTiles.dd-updating .fl-status .tl-row #dashReportsTile{display:none!important}}

/* splash (first run): markup and base styles are inline in index.html so it paints before the scripts load */
#ddSplash.dd-splash-out{opacity:0;transition:opacity .3s ease}

@media (prefers-reduced-motion:reduce){.dd-sk,.dd-spin,#ddSplash *{animation:none!important}#ddSplash.dd-splash-out{transition:none}}

/* Styled basemap fades in once loaded; container shows the sea colour meanwhile (map-background.js) */
.leaflet-gl-layer.dd-map-fade{opacity:0;transition:opacity .2s ease}
.leaflet-gl-layer.dd-map-fade.dd-map-in{opacity:1}
@media (prefers-reduced-motion:reduce){.leaflet-gl-layer.dd-map-fade{transition:none}}
