/* Live report card (24.11.2026). Loaded last. Existing tokens only. */
dialog#cardDialog.live-report>button{display:none}
dialog#cardDialog.live-report[open]{
 position:fixed;inset:auto 0 0 0;margin:0 auto;box-sizing:border-box;
 width:min(100vw,560px);max-width:100vw;height:auto;min-height:0;
 max-height:calc(100dvh - max(10px,env(safe-area-inset-top,0px)));
 padding:10px 16px max(14px,env(safe-area-inset-bottom,0px));
 border-radius:var(--r-dialog) var(--r-dialog) 0 0!important;
 overflow-y:auto;overscroll-behavior:contain}
dialog#cardDialog.live-report #cardBody{display:flex;flex-direction:column;gap:6px}
@media(min-width:700px){
 dialog#cardDialog.live-report[open]{inset:0;margin:auto;width:min(680px,calc(100vw - 32px));max-height:min(94dvh,880px);border-radius:var(--r-dialog)!important;padding:14px 20px}
}

.lr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.lr-titles{min-width:0;flex:1}
.lr-kicker{display:block;font-size:15px;font-weight:500;line-height:1.3;color:var(--accent)}
.lr-titles h2{margin:0;font-size:24px;font-weight:500;line-height:1.2;overflow-wrap:anywhere}
.lr-titles .beach-settlement{display:block;margin-top:2px;font-size:13px;color:var(--muted)}
.lr-close{flex:none;width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;font-size:18px;line-height:1;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:var(--r-ctl);cursor:pointer}

dialog#cardDialog.live-report #cardBody>.report{padding:0}
dialog#cardDialog.live-report #cardBody>.report>small{margin:2px 0 6px}
dialog#cardDialog.live-report .report-hero{margin-top:6px;padding:10px 0}
dialog#cardDialog.live-report .report .report-key-metrics{padding:10px 0}
dialog#cardDialog.live-report .report-secondary{padding:8px 0}
dialog#cardDialog.live-report .report-secondary .report-shape{order:-1;font-size:15px;color:var(--text)}
dialog#cardDialog.live-report .report-secondary .report-shape>span{color:var(--muted);font-size:13px}
dialog#cardDialog.live-report .report-secondary .report-shape b{font-weight:600}
dialog#cardDialog.live-report #cardBody .card-actions{margin-top:8px;padding-top:8px}

.lr-note{border-top:1px solid var(--line);padding-top:8px}
.lr-note-text{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.lr-more{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0;border:0;background:none;color:var(--accent);font-size:14px;font-weight:500;cursor:pointer}
.lr-more[hidden]{display:none}
.lang-en .lr-chev,.lang-en .lr-arrow{display:inline-block;transform:scaleX(-1)}

dialog.lr-details[open]{
 position:fixed;inset:0;margin:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;
 padding:0;border:0;border-radius:0!important;background:var(--panel);color:var(--text);
 display:flex;flex-direction:column;overflow:hidden}
.lr-d-top{flex:none;display:flex;align-items:center;padding:max(10px,env(safe-area-inset-top,0px)) 16px 8px;border-bottom:1px solid var(--line)}
.lr-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;font-size:15px;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:var(--r-ctl);cursor:pointer}
.lr-d-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px max(18px,env(safe-area-inset-bottom,0px))}
.lr-d-sub{display:block;margin-top:2px;font-size:13px;color:var(--muted)}
.lr-d-meta{display:block;margin-top:4px;font-size:13px;line-height:1.5;color:var(--muted)}
.lr-full{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
@media(min-width:700px){
 dialog.lr-details[open]{inset:0;margin:auto;width:560px;height:auto;max-height:min(86dvh,760px);border:1px solid var(--line);border-radius:var(--r-dialog)!important}
}

/* ---- compact layout inside the card: same data, same sizes, less height ---- */
dialog#cardDialog.live-report #cardBody{gap:4px}
/* wave height: the figure sits beside the text instead of above it */
dialog#cardDialog.live-report .report-wave{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center}
dialog#cardDialog.live-report .report-wave>*{grid-column:1;min-width:0}
dialog#cardDialog.live-report .report-wave>.vis-body{grid-column:2;grid-row:1/span 4;align-self:center}
/* beach rating under the report: one row instead of a column */
dialog#cardDialog.live-report #cardBody>.surf-rating-button{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 10px;min-height:0;padding:4px 8px;margin:0}
dialog#cardDialog.live-report .report .report-key-metrics .metric-icon{height:26px}
/* jelly level: label, icon and value on one line */
dialog#cardDialog.live-report .report-secondary .vis-level{display:flex;align-items:center;gap:6px}
dialog#cardDialog.live-report .report-secondary .vis-level>small{font-size:12px}
/* note: the link sits beside the two lines when it is shown */
.lr-note:has(.lr-more:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px}
.lr-note:has(.lr-more:not([hidden])) .lr-more{white-space:nowrap}
dialog#cardDialog.live-report .report-secondary .vis-level{flex-direction:row;flex-wrap:nowrap}
dialog#cardDialog.live-report .report-hero{grid-template-columns:minmax(0,1fr) 112px;gap:8px;padding:6px 0}
dialog#cardDialog.live-report .report-hero-rating{padding-inline-start:8px}
dialog#cardDialog.live-report .report-hero-rating .bath-rating-button{max-width:none;width:100%}
dialog#cardDialog.live-report .report .report-key-metrics{padding:6px 0;gap:4px}
dialog#cardDialog.live-report .report-secondary{padding:6px 0;gap:4px 14px}
dialog#cardDialog.live-report .report-more summary{min-height:40px;padding:6px 0}
dialog#cardDialog.live-report #cardBody{gap:2px}
dialog#cardDialog.live-report .report .row>.validity{flex:1 1 130px;margin:0;font-size:12px;line-height:1.4}
dialog#cardDialog.live-report .report .report-key-metrics .metric{gap:2px}
dialog#cardDialog.live-report .report>.row{gap:6px;margin-top:4px}
dialog#cardDialog.live-report #cardBody .card-actions{margin-top:4px;padding-top:6px}
dialog#cardDialog.live-report .report .report-key-metrics .metric{min-height:0;justify-content:flex-start}
dialog#cardDialog.live-report #cardBody>.report{margin:0;padding:0;border:0;border-radius:0;background:transparent}
dialog#cardDialog.live-report #cardBody>.report:has(.tube-badge){padding:8px;border:2px solid var(--tube-border,#ffd35b);border-radius:12px}
dialog#cardDialog.live-report .report-more{margin:0}
dialog#cardDialog.live-report .report-hero{margin-top:0}
