/* ─────────────────────────────────────────────────────────────────────────
   The weather sheet's layout, shared by WeatherGPX and W WEATHER since 2026-10-23 (moved out of
   weather/app.html's SHEET LAYOUT block). Looks come from the W dictionary (design/scss); this file only
   places the sheet and its insides. Each host loads it AFTER its own three sheets and BEFORE its own
   layout rules, so a host can still override. W WEATHER's top bar, Layers menu and restyled dialogs stay
   in weather/app.html until WeatherGPX takes them (v1 steps 2 and 6).
   `html body.w-mode` everywhere: it outranks the older rules AND the APK's appended safe-area rules.
   Portrait: sheet at the bottom, measured peek. Landscape (and desktop): a full-height left column;
   A host with a rail (WeatherGPX: a bottom bar in phone portrait, a left column otherwise) passes mount({rail}) and
   sheet.js sets --w-sheet-bottom / --w-sheet-left from it, live; --w-sheet-z lets the host keep its popovers above.
   ───────────────────────────────────────────────────────────────────────── */
:root { --w-peek: 300px;   /* until sheet.js measures it (the bottom of the hourly line) */
        --w-safe-top: var(--wws-top, env(safe-area-inset-top, 0px)); --w-safe-bottom: var(--wws-bottom, env(safe-area-inset-bottom, 0px)); }
html body.w-mode .cc-marker--custom { display: none; }   /* the old red point card: the sheet says it now */
html body.w-mode #w-sheet { z-index: var(--w-sheet-z, 1000); bottom: var(--w-sheet-bottom, 0px); height: calc(var(--w-peek) + var(--w-safe-bottom)); padding-bottom: var(--w-safe-bottom); }
html body.w-mode #w-sheet.is-full { height: calc(100dvh - 62px - var(--w-safe-top) - var(--w-sheet-bottom, 0px)); }
.w-now { display: flex; align-items: center; gap: 12px; }
.w-now-ico { width: 56px; height: 56px; flex: none; }
.w-now-txt { flex: 1; min-width: 0; }
.w-now-act { display: flex; flex-direction: column; gap: 6px; }
.w-round.w-mini { width: 38px; height: 38px; box-shadow: none; }
.w-round.w-mini > svg { width: 18px; height: 18px; }
#w-star.is-on { background: var(--w-amber-soft); border-color: var(--w-amber); }
#w-star.is-on > svg { fill: var(--w-amber); stroke: var(--w-amber-ink); }
#w-warn:empty { display: none; }
#w-warn { margin-top: 12px; }
.w-warn-btn { width: 100%; border: 0; border-left: 5px solid var(--w-danger); text-align: left; cursor: pointer; font: inherit; }
#w-seg { margin-top: 14px; }
.w-more { width: 100%; margin-top: 12px; }
.w-chart { display: block; width: 100%; height: auto; margin-top: 8px; }
#w-empty { padding: 18px 4px; }
/* the day browser (2026-10-20): chevrons either side of the rain card, the card a fixed two lines, past hours dimmed.
   2026-10-30 (Pierre): no longer tall and pulled to the column's edge, where the right one read as the panel's handle */
.w-day-nav { display: flex; align-items: stretch; gap: 2px; margin: 12px 0 0; }
.w-day-nav .w-headline { flex: 1; min-width: 0; min-height: 66px; margin: 0; }
.w-head-txt { flex: 1; min-width: 0; }
.w-head-txt .w-title, .w-head-txt .w-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-chev { flex: none; width: 24px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--w-ink-2); cursor: pointer; border-radius: 10px; }
.w-chev svg { width: 12px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.w-chev[data-dir="-1"] svg { transform: scaleX(-1); }
.w-chev:disabled { visibility: hidden; }
.w-chev:active { background: rgba(0, 0, 0, 0.06); }
.w-hour.is-past { opacity: 0.45; }
.w-row.is-today { box-shadow: inset 4px 0 0 var(--w-amber); }
.w-date-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 22px; }
#w-date { font: 800 0.85rem var(--w-font-cond); letter-spacing: 0.06em; text-transform: uppercase; color: var(--w-amber-ink); }
.w-day-nav .w-headline { cursor: pointer; }
.w-ele { white-space: nowrap; font-weight: 600; color: var(--w-ink); }
.w-ele svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; stroke: var(--w-ink-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.w-day-nav .w-headline:active { filter: brightness(0.97); }
/* timeline and radar bar ride above the peek (portrait: in landscape the sheet is a column, the host places them) */
@media (orientation: portrait) {
    html body.w-mode:not(.w-nosheet) #tl-widget, html body.w-mode:not(.w-nosheet) #radar-widget { bottom: calc(var(--w-peek) + var(--w-safe-bottom) + var(--w-sheet-bottom, 0px) + 10px) !important; }
}
html[data-wtheme="dark"] body.w-mode .w-sheet { border-top: 1px solid var(--w-paper-3); }
@media (orientation: landscape) and (max-height: 600px) {
    /* the left column compact enough that "Today | 16 days" is on screen without scrolling */
    html body.w-mode #w-sheet .w-hero { font-size: 3.3rem; }
    html body.w-mode #w-sheet .w-now-ico { width: 44px; height: 44px; }
    html body.w-mode #w-sheet .w-now .w-title { font-size: 1.15rem; }
    html body.w-mode #w-sheet #w-feels { font-size: 0.78rem; line-height: 1.3; }
    html body.w-mode #w-sheet .w-round.w-mini { width: 34px; height: 34px; }
    html body.w-mode #w-sheet .w-day-nav { margin-top: 6px; }
    html body.w-mode #w-sheet .w-day-nav .w-headline { min-height: 52px; padding: 0.4rem 0.7rem; }
    html body.w-mode #w-sheet .w-headline .w-title { font-size: 1.15rem; }
    html body.w-mode #w-sheet .w-strip { margin-top: 6px; }
    html body.w-mode #w-sheet .w-hour { width: 44px; font-size: 0.7rem; }
    html body.w-mode #w-sheet .w-hour img { width: 24px; height: 24px; }
    html body.w-mode #w-sheet .w-hour .w-num { font-size: 1rem; }
    html body.w-mode #w-sheet .w-bar { height: 14px; }
    html body.w-mode #w-sheet #w-seg { margin-top: 6px; }
    html body.w-mode #w-sheet .w-seg > button { min-height: 34px; }
    /* the column's cut edge: the scroll cue (.w-cue, below) shows a chevron while there is more (it was a fixed mask, 2026-10-21) */
}
@media (orientation: landscape) {
    html body.w-mode #w-sheet, html body.w-mode #w-sheet.is-full { top: 0; bottom: 0; left: var(--w-sheet-left, 0px); right: auto; width: var(--w-col-w, 360px); height: auto;
        border-radius: 0 var(--w-r-sheet) var(--w-r-sheet) 0; padding-top: var(--w-safe-top); }
    html body.w-mode #w-grab { visibility: hidden; height: 6px; padding: 0; }
}
/* Two states (2026-10-23). .w-mode = the new layout is on; a host can suspend it (mount suspend: WeatherGPX's ride mode),
   and then the chrome hides and the moved buttons are back in their old places. .w-nosheet = no point to show
   (mount pointOnly: WeatherGPX's Active Point off): no sheet, the chrome stays. */
body:not(.w-mode) :is(#w-sheet, #w-top, #w-side, #w-park, #w-layers-menu, #w-search-box) { display: none; }
html body.w-mode.w-nosheet #w-sheet { display: none; }

/* ══ THE CHROME (top bar = place pill + one round button, right column = locate + Layers, the search box, the parked
   buttons, the Layers menu, MapLibre's stack in the paper look). Shared since 2026-10-23 (WeatherGPX v1 step 2), moved
   out of weather/app.html; mount({chrome}) builds it. W WEATHER's own search list (place list, star list) stays there. */
html body.w-mode #coords-row { display: none !important; }
#w-top { position: absolute; z-index: 1001; top: calc(10px + var(--w-safe-top)); left: 12px; right: 12px; display: flex; gap: 8px; }
#w-place { flex: 1; cursor: pointer; }
.w-place-txt { display: flex; flex-direction: column; min-width: 0; }
#w-side { position: absolute; z-index: 1001; right: 12px; top: calc(64px + var(--w-safe-top)); display: flex; flex-direction: column; gap: 6px; }
#w-side .w-round { padding: 0; }
#w-side .w-round.active, #w-side .w-round.radar-active, #w-side .w-round.mc-active { background: var(--w-amber); border-color: var(--w-amber); color: var(--w-on-amber); }
#w-side .w-round.radar-na { display: none; }
/* MapLibre's own stack (zoom, relief, hazards) in the paper look; the old dark look inverted MapLibre's
   dark glyphs, on paper they stay as drawn */
html body.w-mode .maplibregl-ctrl-group { background: var(--w-paper-glass) !important; box-shadow: var(--w-shadow-float) !important; border-radius: var(--w-r-btn); overflow: hidden; }
html body.w-mode .maplibregl-ctrl-group button.btn-map { width: 44px; height: 44px; background: transparent; color: var(--w-ink); border: 0; border-radius: 0; margin: 0; }
html body.w-mode .maplibregl-ctrl-group button.btn-map + button.btn-map { border-top: 1px solid var(--w-paper-3); }
html body.w-mode .maplibregl-ctrl-group button.btn-map:not(:disabled):not(.active):hover { background: var(--w-paper-2); }
html body.w-mode .maplibregl-ctrl-group button.btn-map.active, html body.w-mode .maplibregl-ctrl-group button.btn-map.mc-active { background: var(--w-amber); color: var(--w-on-amber); }
html body.w-mode .btn-map .maplibregl-ctrl-icon, html body.w-mode .btn-map:hover .maplibregl-ctrl-icon { filter: none; }
#w-search-box { position: absolute; z-index: 1600; top: calc(10px + var(--w-safe-top)); left: 12px; right: 12px; display: flex; gap: 8px; }
/* min-width 0: an input will not shrink below its natural width, so on a 360 px phone (OnePlus) the row overflowed by
   6 px and the close X sat off the settings button it replaces (Pierre, 2026-10-22) */
#w-search-box #place-box { flex: 1; display: flex; min-width: 0; }
#w-search-box #coords-input { min-width: 0; }
#w-search-box .w-round { flex: none; }
html body.w-mode #w-search-box #coords-input { flex: 1; height: 44px; padding: 0 16px; font: 16px var(--w-font); color: var(--w-ink); background: var(--w-paper);
    border: 1px solid var(--w-paper-3); border-radius: 999px 0 0 999px; box-shadow: var(--w-shadow-float); }
#w-park { position: absolute; right: 12px; top: calc(64px + 50px + var(--w-safe-top)); width: 44px; height: 44px; overflow: hidden; visibility: hidden; pointer-events: none; z-index: 0; }
#w-park > * { position: absolute; inset: 0; }
html body.w-mode .maplibregl-ctrl-group:not(:has(.maplibregl-ctrl-zoom-in)) { display: none; }   /* relief, hazards: in the menu */
#w-top .w-round { flex: none; }
.w-pill-ico { margin-left: auto; flex: none; display: grid; place-items: center; color: var(--w-ink-3); }
.w-pill-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
#w-layers.is-on { background: var(--w-amber); border-color: var(--w-amber); color: var(--w-on-amber); }
#w-layers-menu { position: absolute; z-index: 1700; right: 64px; top: calc(64px + var(--w-safe-top)); width: min(360px, calc(100vw - 88px)); padding: 0.4rem 0.9rem 0.6rem;
    background: var(--w-paper); box-shadow: var(--w-shadow-float); }
/* the title line = Settings' (weather/app.html #wws-settings .xp-header): 1.25rem condensed in ink, a 40 px round X */
.w-layers-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0.35rem 0 0.2rem; }
.w-layers-head > span { font: 800 1.25rem var(--w-font-cond); text-transform: uppercase; letter-spacing: 0.04em; color: var(--w-ink); }
.w-layers-x { flex: none; width: 40px; height: 40px; margin-right: -0.4rem; border-radius: 50%; background: var(--w-paper-2); border: 0; color: var(--w-ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.w-layers-x svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
html[data-wtheme="dark"] body.w-mode .w-layers-x { border: 1px solid var(--w-paper-3); }
/* never taller than the screen under its top (Pierre, 2026-11-26: the ⓘ texts and the sources line pushed it off a landscape
   phone): it scrolls, with the scroll chip; a short landscape also takes the rows down to 42 px */
#w-layers-menu { max-height: calc(var(--vvh, 100dvh) - 64px - var(--w-safe-top, 0px) - 12px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
#w-layers-menu.w-cue::after { bottom: calc(8px - 0.6rem); }
/* one width with W WEATHER's Settings (Pierre, 2026-11-26: 290 -> 360, the same panel twice). Under 340 px wide (old small
   phones) the room left of the buttons is too narrow for Settings' rows: both panels take the width and cover the buttons */
@media (max-width: 339px) { #w-layers-menu { right: 12px; width: calc(100vw - 24px); } }
@media (orientation: landscape) and (max-height: 600px) { #w-layers-menu .w-layer-row { min-height: 42px; } }
.w-layer-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; width: 100%; min-height: 48px; padding: 0;
    background: none; border: 0; border-bottom: 1px solid var(--w-paper-3); font: 500 0.9375rem var(--w-font); color: var(--w-ink); text-align: left; cursor: pointer; }
.w-layer-row:last-of-type { border-bottom: 0; }
/* ⓘ after the label (2026-11-26): small and grey, its own 44 px target; its text unfolds under the row, the row's rule moves under it */
.w-layer-name { display: flex; align-items: center; min-width: 0; }
.w-layer-i { display: grid; place-items: center; width: 34px; height: 44px; margin: 0 -6px 0 0; color: var(--w-ink-3); flex: none; }
.w-layer-i svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.w-layer-i.is-on { color: var(--w-amber-ink, var(--w-amber)); }
.w-layer-row.is-open { border-bottom: 0; }
.w-layer-info { padding: 0 0 0.7rem; border-bottom: 1px solid var(--w-paper-3); font: 400 0.8125rem/1.4 var(--w-font); color: var(--w-ink-2); }
.w-layer-row.is-na { cursor: default; }
.w-layer-row.is-na .w-layer-name > span:first-child { color: var(--w-ink-3); }
.w-layer-na { font-size: 0.8125rem; color: var(--w-ink-3); white-space: nowrap; }
.w-layer-foot { margin-top: 0.5rem; padding-top: 0.55rem; border-top: 1px solid var(--w-paper-3); font: 400 0.6875rem/1.4 var(--w-font); color: var(--w-ink-3); }
.w-layer-row .w-switch { pointer-events: none; }
.w-layer-end { display: flex; align-items: center; gap: 10px; }
.w-refresh { display: grid; place-items: center; }
.w-refresh > svg { width: 18px; height: 18px; }
.w-layer-more { display: flex; align-items: center; gap: 6px; color: var(--w-ink-3); }
.w-layer-more svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* MapLibre's stack (zoom, relief, hazards) continues the button column: right under it (--w-side-h is measured
   by sheet.js). Touch screens drop the zoom pair: pinch does it, and the column must fit above the peek. */
html body.w-mode:has(#map) .maplibregl-ctrl-top-right { top: calc(64px + var(--w-safe-top) + var(--w-side-h, 0px)) !important; bottom: auto !important; right: 2px; }
@media (pointer: coarse) { html body.w-mode .maplibregl-ctrl-group:has(.maplibregl-ctrl-zoom-in) { display: none; } }
html body.w-sheet-full .maplibregl-ctrl-top-right, html body.w-sheet-full #tl-widget, html body.w-sheet-full #radar-widget,
html body.w-sheet-full #w-side, html body.w-sheet-full #wxs-panel { visibility: hidden; }
@media (orientation: landscape) {
    #w-top, #w-search-box { left: calc(var(--w-sheet-left, 0px) + var(--w-col-cur, var(--w-col-w, 360px)) + 12px); }
    /* the place pill and the open search field keep a readable width, centred between the round buttons, not the whole
       map's width (Pierre, 2026-10-29) */
    #w-top #w-place, #w-search-box #place-box, #w-search-box #w-search-slot > #coords-input { flex: 0 1 420px; margin: 0 auto; }
    html body.w-sheet-full .maplibregl-ctrl-top-right, html body.w-sheet-full #tl-widget, html body.w-sheet-full #radar-widget, html body.w-sheet-full #w-side, html body.w-sheet-full #wxs-panel { visibility: visible; }
}
/* a host whose search box holds the bare field (WeatherGPX: the coordinates input, no star list beside it): a full pill */
html body.w-mode #w-search-slot > #coords-input { border-radius: 999px; }

html body.w-mode #radar-widget { background: var(--w-paper-glass); backdrop-filter: var(--w-blur); -webkit-backdrop-filter: var(--w-blur); color: var(--w-ink);
    border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 18px; box-shadow: var(--w-shadow-float); font-family: var(--w-font); padding: 0.45rem 0.8rem 1.15rem 0.5rem; gap: 0.6rem; }
html body.w-mode #radar-widget.no-now { padding-bottom: 0.45rem; }
html body.w-mode #btn-radar-play { width: 38px; height: 38px; border-radius: 50%; background: var(--w-amber); color: var(--w-on-amber); opacity: 1;
    display: grid; place-items: center; font-size: 0.95rem; padding: 0; }
html body.w-mode #radar-time { font: 700 1rem var(--w-font-cond); opacity: 1; color: var(--w-ink); width: 5.5ch; }
html body.w-mode #radar-track { height: 6px; border-radius: 3px; background: var(--w-paper-3); margin-left: 10px; }   /* the cursor at 0 clears the button */
html body.w-mode #radar-progress { background: var(--w-amber); opacity: 0.55; border-radius: 3px; }
html body.w-mode #radar-cursor { width: 14px; height: 14px; background: var(--w-amber); box-shadow: 0 0 0 2.5px #fff, 0 1px 4px rgba(0, 0, 0, 0.3); }
html body.w-mode #radar-now-line { background: var(--w-ink-2); }
html body.w-mode #radar-now-line::after { color: var(--w-ink-3); font: 600 0.7rem var(--w-font); }

/* ══ The timeline (WeatherGPX shows it while a track has weather; W WEATHER hides it) + its calendar and time picker:
   module elements still drawn with the old tokens, remapped here onto the dictionary (the same trick as WeatherGPX's
   rail), so they follow light / dark. 2026-10-23. */
html body.w-mode :is(#tl-widget, #mini-cal, #tl-time-picker) {
    --blue1: var(--w-ink); --blue2: var(--w-ink-2); --blue3: var(--w-ink-2); --blue4: var(--w-ink-3); --blue4-5: var(--w-ink-3);
    --blue5: var(--w-ink-3); --blue6: var(--w-paper-3); --blue6-5: var(--w-paper-3); --blue7: var(--w-paper-2); --blue8: var(--w-paper);
    --blue8-90: var(--w-paper-glass);
    --color-primary-ultralight: var(--w-ink); --color-primary-bright: var(--w-amber-ink); --color-primary-light: var(--w-amber-ink);
    --color-primary-lightT: rgba(245, 158, 11, 0.22); --color-primary-light55: rgba(245, 158, 11, 0.55); --color-primary-tint: rgba(245, 158, 11, 0.14);
    --color-primary: var(--w-amber); --color-primary-dark: var(--w-amber-ink); --color-primary-darker: var(--w-paper-2);
    --color-primary-darker90: var(--w-paper-2); --color-primary-deep: var(--w-amber-soft);
    font-family: var(--w-font); color: var(--w-ink);
}
html body.w-mode #tl-widget { background: var(--w-paper-glass); backdrop-filter: var(--w-blur); -webkit-backdrop-filter: var(--w-blur);
    border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 18px; box-shadow: var(--w-shadow-float); }
html body.w-mode #tl-widget .tl-btn, html body.w-mode #tl-widget .tl-label { color: var(--w-ink); }
html body.w-mode #tl-widget #tl-play { width: 40px; height: 40px; border-radius: 50%; background: var(--w-amber); color: var(--w-on-amber); }
html body.w-mode #tl-widget #tl-play .svg-ico { color: var(--w-on-amber); }
html body.w-mode #tl-widget #tl-date-label, html body.w-mode #tl-widget #tl-time-label { font: 700 1rem var(--w-font-cond); letter-spacing: 0.02em; }
html body.w-mode #tl-widget #tl-track-fill { background: var(--w-amber); opacity: 0.55; }
html body.w-mode #tl-widget #tl-track-cursor { background: var(--w-amber); box-shadow: 0 0 0 2.5px #fff, 0 1px 4px rgba(0, 0, 0, 0.3); }
html body.w-mode #tl-widget .tl-now { color: var(--w-amber-ink); border-color: var(--w-paper-3); background: var(--w-paper-2); }
html[data-wtheme="dark"] body.w-mode #tl-widget { border-color: var(--w-paper-3); }

/* ══ The module's dialogs and markers in the dictionary's look: the detail dialogs (15 min / Daily / Weekly) and their
   two-part titles, the hazards + emergency numbers dialog, the host checkbox toggle drawn as the dictionary's switch,
   the area points in the paper look. Shared since 2026-10-23 (moved out of weather/app.html): WeatherGPX opens the same
   dialogs from the same sheet. W WEATHER's Settings dialog and its single-column "What the points show" stay in its page. */
/* the host's checkbox toggle (the APK's Rain alert row in Settings) drawn as the dictionary's .w-switch (2026-10-21) */
html body.w-mode .toggle-check-box { width: 46px; height: 28px; border-radius: 14px; background: var(--w-paper-3); border: 0; }
html body.w-mode .toggle-check-box::before, html body.w-mode .toggle-label:has(input:checked) .toggle-check-box::before { content: none; }
html body.w-mode .toggle-check-box::after { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
html body.w-mode .toggle-label:not(:has(input:checked)):not(:has(input:disabled)):hover .toggle-check-box { background: var(--w-paper-3); }
html body.w-mode .toggle-label:has(input:checked) .toggle-check-box { background: var(--w-amber); }
html body.w-mode .toggle-label:has(input:checked) .toggle-check-box::after { background: #fff; transform: translateX(18px); }
html body.w-mode .toggle-label input:focus-visible ~ .toggle-check-box { outline: 2px solid var(--w-amber); }
/* ── Hazards + emergency numbers in the dictionary's look (2026-10-20). CSS only: the module's markup, ids and the
   checkboxes it reads stay as they are. A checkbox is drawn as the dictionary's switch (still a real checkbox). ── */
html body.w-mode #hazards-dialog { background: var(--w-paper); color: var(--w-ink); border: 1px solid var(--w-paper-3); border-radius: 22px;
    box-shadow: var(--w-shadow-float); font-family: var(--w-font); padding: 0.9rem 1.1rem 0.8rem; }
html body.w-mode #hazards-dialog::backdrop { background: rgba(17, 17, 17, 0.18); }
html body.w-mode #hazards-dialog .cfd-header { display: flex; align-items: center; justify-content: space-between; padding: 0 0 0.3rem; border: 0; background: none; }
html body.w-mode #hazards-dialog .cfd-header > span { font: 800 1.25rem var(--w-font-cond); text-transform: uppercase; letter-spacing: 0.04em; color: var(--w-ink); }
html body.w-mode #hazards-dialog .close-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--w-paper-2); border: 0; color: var(--w-ink); display: grid; place-items: center; }
html body.w-mode #hazards-dialog .hazards-hint { color: var(--w-ink-2); font-size: 0.875rem; margin: 0 0 0.3rem; }
html body.w-mode #hazards-dialog .hz-row { display: flex; align-items: center; gap: 0.7rem; min-height: 52px; padding: 0; border: 0; border-bottom: 1px solid var(--w-paper-3);
    font: 500 0.9375rem var(--w-font); color: var(--w-ink); cursor: pointer; }
html body.w-mode #hazards-dialog .hz-row > span:last-child { flex: 1; }
html body.w-mode #hazards-dialog .hz-row input[type=checkbox] { order: 3; appearance: none; -webkit-appearance: none; margin: 0; position: relative; flex: none;
    width: 46px; height: 28px; border-radius: 14px; background: var(--w-paper-3); border: 0; cursor: pointer; transition: background var(--w-dur) var(--w-ease); }
html body.w-mode #hazards-dialog .hz-row input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform var(--w-dur) var(--w-ease); }
html body.w-mode #hazards-dialog .hz-row input[type=checkbox]:checked { background: var(--w-amber); }
html body.w-mode #hazards-dialog .hz-row input[type=checkbox]:checked::after { transform: translateX(18px); }
html body.w-mode #hazards-dialog .hz-clear { width: 100%; min-height: 44px; margin: 0.7rem 0 0.3rem; border: 1px solid var(--w-paper-3); border-radius: var(--w-r-btn);
    background: var(--w-paper); color: var(--w-ink); font: 600 0.9375rem var(--w-font); }
html body.w-mode #hazards-dialog .hazards-src, html body.w-mode #hazards-dialog .emg-src { color: var(--w-ink-3); font-size: 0.75rem; }
html body.w-mode #hazards-dialog .emg-src a { color: var(--w-amber-ink); }
html body.w-mode #hazards-dialog .emg-block { border-top: 1px solid var(--w-paper-3); margin-top: 0.4rem; padding-top: 0.3rem; }
html body.w-mode #hazards-dialog .emg-title { font: 800 0.9375rem var(--w-font-cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--w-amber-ink); margin: 0.6rem 0 0.5rem; }
html body.w-mode #hazards-dialog .emg-head { display: flex; align-items: center; gap: 0.5rem; }
html body.w-mode #hazards-dialog .emg-picker { flex: 1; min-height: 44px; padding: 0 0.8rem; border: 1px solid var(--w-paper-3); border-radius: var(--w-r-btn);
    background: var(--w-paper); color: var(--w-ink); font: 500 0.9375rem var(--w-font); }
html body.w-mode #hazards-dialog .emg-note, html body.w-mode #hazards-dialog .emg-none { color: var(--w-ink-2); font-size: 0.85rem; }
html body.w-mode #hazards-dialog .emg-list { display: flex; flex-direction: column; gap: 6px; margin-top: 0.6rem; }
html body.w-mode #hazards-dialog .emg-row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 0.9rem;
    border-radius: var(--w-r-card); background: var(--w-paper-2); border: 0; color: var(--w-ink); text-decoration: none; }
html body.w-mode #hazards-dialog .emg-label { font: 500 0.9375rem var(--w-font); color: var(--w-ink); }
html body.w-mode #hazards-dialog .emg-num { font: 800 1.5rem var(--w-font-cond); color: var(--w-danger); letter-spacing: 0.02em; }
/* ── The detail dialogs (15 min / Daily / Weekly) in the dictionary's look (2026-10-20). Their insides and the charts are
   painted from the old palette variables (the charts read them off their own canvas at draw time), so the variables are
   REMAPPED inside these dialogs: grid + axis text go paper / ink-3, the temperature line amber, rain blue, the now line
   ink, the today row a rain tint. Markup and handlers untouched. ── */
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) {
    --blue1: var(--w-ink); --blue2: var(--w-ink); --blue3: var(--w-ink-3); --blue4: var(--w-ink-3); --blue5: var(--w-ink-3);
    --blue6: var(--w-paper-3); --blue7: var(--w-paper-2); --blue8: var(--w-paper);
    --color-primary-light: var(--w-rain); --color-primary-light55: rgba(14, 165, 233, 0.55); --color-primary-lightT: rgba(14, 165, 233, 0.14);
    --color-primary-tint: rgba(14, 165, 233, 0.08); --color-primary-bright: var(--w-ink); --color-primary-ultralight: var(--w-ink);
    --color-primary: var(--w-rain); --color-secondary-light: var(--w-amber);
    background: var(--w-paper); color: var(--w-ink); border: 1px solid var(--w-paper-3); border-radius: 22px; box-shadow: var(--w-shadow-float); font-family: var(--w-font); }
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog)::backdrop { background: rgba(17, 17, 17, 0.18); }
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) .cfd-header { border: 0; background: none; }
html body.w-mode :is(#daily-title, #minutely-title, #weekly-title) { font: 800 1.1rem var(--w-font-cond); text-transform: uppercase; letter-spacing: 0.03em; color: var(--w-ink); }
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) .close-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--w-paper-2); border: 0; color: var(--w-ink);
    display: inline-grid; place-items: center; }
/* separate buttons with a small gap, no shared strip behind them (Pierre, 2026-10-21: like Today | 16 days) */
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) .dlg-switch { display: flex; padding: 0; gap: 4px; border: 0; border-radius: 0; background: none; overflow: visible; }
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) .dlg-switch > button { flex: 1; min-height: 36px; border: 0; border-radius: var(--w-r-btn); background: var(--w-paper-2); box-shadow: none;
    font: 500 0.875rem var(--w-font); color: var(--w-ink-2); }
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) .dlg-switch > button + button { border-left: 0; }
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) .dlg-switch > button.active { background: var(--w-amber); color: var(--w-on-amber); font-weight: 600; }
/* two-part titles (module _dlg_title): the kind in a fixed ~8ch column, then the date over the place */
html body.w-mode :is(#daily-title, #weekly-title, #minutely-title) { display: flex; align-items: baseline; gap: 0.4rem; flex: 1; min-width: 0; }
html body.w-mode .dt-kind { flex: none; min-width: 8ch; font: 800 1.05rem var(--w-font-cond); text-transform: uppercase; letter-spacing: 0.03em; color: var(--w-ink); }
html body.w-mode .dt-main { display: flex; flex-direction: column; min-width: 0; }
html body.w-mode .dt-l1 { font: 700 0.95rem/1.15 var(--w-font-cond); text-transform: uppercase; letter-spacing: 0.02em; color: var(--w-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.w-mode .dt-l2 { font: 600 0.85rem/1.15 var(--w-font-cond); text-transform: uppercase; letter-spacing: 0.02em; color: var(--w-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) .cfd-header { display: flex; align-items: center; gap: 0.5rem; }
/* < > as one tight pair, the close button set apart on the far right (Pierre, 2026-10-20) */
/* even margins (Pierre's screenshots, 2026-10-22): the close button as far from the right edge as from the top (10 px), a
   little air under the header, and the Daily | Weekly row inset 12 px from both edges instead of touching them */
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) .cfd-header { padding: 10px 10px 8px 14px; }
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) .cfd-header-btns { display: flex; align-items: center; gap: 4px; margin-right: 0; }
html body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #best-dep-dialog, #compare-dialog) > .dlg-switch { margin: 0 12px 10px; width: auto; box-sizing: border-box; }
html body.w-mode :is(#daily-close, #minutely-close, #weekly-close) { margin-left: 14px; }
html body.w-mode #weekly-dialog .wk-row { border-color: var(--w-paper-3); }
/* sunrise / sunset / UV: each item stacked, icon (or label) over its value: narrower, a little taller (Pierre) */
html body.w-mode #daily-sun { gap: 1.6rem; align-items: flex-end; }
html body.w-mode #daily-sun > span { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; font: 600 0.85rem var(--w-font); color: var(--w-ink); }
html body.w-mode #daily-sun > span:has(> b) { font: 700 0.62rem/18px var(--w-font-cond); text-transform: uppercase; letter-spacing: 0.06em; color: var(--w-ink-3); }
html body.w-mode #daily-sun > span:has(> b) b { font: 700 0.85rem var(--w-font); color: var(--w-ink); letter-spacing: 0; line-height: 1.2; }
html body.w-mode #weekly-dialog .wk-day { font-family: var(--w-font-cond); font-weight: 700; text-transform: uppercase; }
html body.w-mode #weekly-dialog .wk-hi { color: var(--w-ink); font-weight: 700; }
html body.w-mode #weekly-dialog .wk-lo { color: var(--w-ink-3); }
/* ── Area points in the paper look (2026-10-21): a white ring on the icon instead of the old brown one, a paper label
   (soft shadow, so it reads on any map colour) with the temperature in condensed ink and the optional fields in the
   dictionary's softer inks. Both hosts since 2026-10-23 (WeatherGPX's track points: its own .route-marker rules). ── */
html body.w-mode .cc-marker--area .cc-marker-icon { box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(0, 0, 0, 0.3); }
html body.w-mode .cc-marker--area .cc-marker-info { margin-top: 3px; padding: 2px 8px 3px; gap: 0; border-radius: 10px; background: var(--w-paper-glass);
    border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); font-family: var(--w-font); }
html body.w-mode .cc-marker--area .cc-marker-temp { font: 700 1.05rem/1.15 var(--w-font-cond); color: var(--w-ink); letter-spacing: 0.01em; }
html body.w-mode .cc-marker--area :is(.cc-marker-feels, .cc-marker-label, .cc-marker-ele, .cc-marker-time, .cc-marker-tz) { font: 500 0.72rem/1.25 var(--w-font); color: var(--w-ink-2); }
html body.w-mode .cc-marker--area .cc-marker-wind { font: 500 0.75rem var(--w-font); color: var(--w-ink-2); }
html body.w-mode .cc-marker--area :is(.cc-marker-precip, .cc-marker-prob) { font: 600 0.72rem var(--w-font); color: var(--w-rain); }
html body.w-mode .cc-marker--area .cc-marker-uv { font: 600 0.72rem var(--w-font); color: var(--w-amber-ink); }
@media (orientation: landscape) and (max-height: 600px) {
    /* 3. the Daily dialog: everything above the chart in ONE row (title | switch | sun + UV | buttons), the icons under
       it, the chart takes the rest of the full screen height */
    html body.w-mode #daily-dialog[open] { width: min(calc(100vw - 16px), 640px); max-width: none; height: calc(100dvh - 16px); max-height: none; margin: auto;
        display: grid; grid-template-columns: auto auto 1fr auto; grid-template-rows: auto auto 1fr; column-gap: 0.8rem; align-items: center; padding: 8px 10px 8px 14px; }
    html body.w-mode #daily-dialog .cfd-header, html body.w-mode #daily-dialog #daily-content { display: contents; }
    html body.w-mode #daily-dialog #daily-title { grid-column: 1; grid-row: 1; }
    html body.w-mode #daily-dialog .dlg-switch { grid-column: 2; grid-row: 1; width: auto; margin: 0 !important; }
    html body.w-mode #daily-dialog .dlg-switch > button { flex: none; min-height: 32px; padding: 0 12px; }
    html body.w-mode #daily-dialog #daily-sun { grid-column: 3; grid-row: 1; justify-content: center; padding: 0; }
    html body.w-mode #daily-dialog .cfd-header-btns { grid-column: 4; grid-row: 1; }
    html body.w-mode #daily-dialog #daily-icons { grid-column: 1 / -1; grid-row: 2; padding-top: 0.2rem; }
    html body.w-mode #daily-dialog .daily-ico img { width: 24px; height: 24px; }
    html body.w-mode #daily-dialog #daily-chart-wrap { grid-column: 1 / -1; grid-row: 3; align-self: stretch; min-height: 0; height: 100%; }
    html body.w-mode #daily-dialog .close-btn { width: 36px; height: 36px; }
}
/* dark: the thin warm edge on the shared dialogs' buttons and surfaces (W WEATHER's page repeats it with its Settings) */
html[data-wtheme="dark"] body.w-mode :is(.dlg-switch > button, .close-btn, .hz-clear, .emg-row) { border: 1px solid var(--w-paper-3) !important; }
html[data-wtheme="dark"] body.w-mode :is(#daily-dialog, #minutely-dialog, #weekly-dialog, #hazards-dialog, .cc-marker--area .cc-marker-info) { border-color: var(--w-paper-3) !important; }
/* "What the points show": the remap gives every host the paper look; W WEATHER's page then lays it out in one column */
html body.w-mode #marker-config-panel {
--blue1: var(--w-ink); --blue2: var(--w-ink-2); --blue3: var(--w-ink-2); --blue4: var(--w-ink-3); --blue4-5: var(--w-ink-3);
--blue5: var(--w-ink-3); --blue6: var(--w-paper-3); --blue6-5: var(--w-paper-3); --blue7: var(--w-paper-2); --blue8: var(--w-paper);
--blue8-90: var(--w-paper-glass);
--color-primary-ultralight: var(--w-ink); --color-primary-bright: var(--w-amber-ink); --color-primary-light: var(--w-amber-ink);
--color-primary-lightT: rgba(245, 158, 11, 0.22); --color-primary-light55: rgba(245, 158, 11, 0.55); --color-primary-tint: rgba(245, 158, 11, 0.14);
--color-primary: var(--w-amber); --color-primary-dark: var(--w-amber-ink); --color-primary-darker: var(--w-paper-2);
--color-primary-darker90: var(--w-paper-2); --color-primary-deep: var(--w-amber-soft);
background: var(--w-paper); color: var(--w-ink); font-family: var(--w-font); border-color: var(--w-paper-3); border-radius: 18px; box-shadow: var(--w-shadow-float);
}
#w-mc-close { width: 32px; height: 32px; border-radius: 50%; background: var(--w-paper-2); border: 0; color: var(--w-ink); display: grid; place-items: center; }
#w-mc-close svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }

/* ══ The Route tab (mount route, WeatherGPX, 2026-10-23): three tabs share the row; a hidden tab button really hides */
.w-seg > button[hidden] { display: none; }
#w-route .w-headline { margin: 4px 0 6px; }
.w-r-sum { margin: 0 2px 4px; }
.w-r-svg { cursor: pointer; }
.w-r-dep { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.w-r-dep .w-btn-quiet { flex: none; }
#w-r-alerts > * { margin-top: 8px; }
/* MapLibre draws its zoom glyphs dark: on the dark paper (desktop, the only place the zoom pair shows) they vanished */
html[data-wtheme="dark"] body.w-mode .btn-map .maplibregl-ctrl-icon { filter: invert(1) brightness(1.6); }
/* the small sheet's route card has no day chevrons beside it: the row is no longer pulled out (2026-10-30), so no inset */
.w-day-nav .w-route-head { margin: 0; cursor: pointer; }
/* the small height (2026-10-24): only the "now" block shows, nothing scrolls under it */
@media (orientation: portrait) { html body.w-mode #w-sheet.is-small .w-sheet-body { overflow: hidden; } }

/* ══ The landscape strip (mount landStrip, 2026-10-26): the column's width is --w-col-w (a host may narrow it, WeatherGPX
   does), the small height becomes a narrow strip of the "now" block stacked vertically, and #w-fold on the column's edge
   folds and unfolds it. --w-col-cur = what the column takes now, so the top bar follows it. Portrait untouched. */
.w-fold, .w-sx { display: none; }
@media (orientation: landscape) {
    html body.w-mode.w-landstrip { --w-col-cur: var(--w-col-w, 360px); }
    html body.w-mode.w-landstrip.w-sheet-small { --w-col-cur: var(--w-strip-w, 112px); }
    /* the fold handle = the portrait handle on its side (Pierre, 2026-10-27: the dictionary has ONE handle): the same 5 px line,
       vertical, inside the column's right edge, mid-height; the column keeps a 14 px lane for it */
    /* around the line (Pierre, 2026-10-27): ~9 px to the edge, ~16 px to the content; the lane is the column's right padding */
    html body.w-mode.w-landstrip #w-sheet { padding-right: 28px; }
    html body.w-mode.w-landstrip:not(.w-nosheet) .w-fold { display: grid; place-items: center; position: absolute; z-index: calc(var(--w-sheet-z, 1000) + 1);
        top: 50%; left: calc(var(--w-sheet-left, 0px) + var(--w-col-cur) - 20px); width: 22px; height: 72px; margin-top: -36px; padding: 0;
        border: 0; background: none; touch-action: none; cursor: pointer; }
    .w-fold::before { content: ''; width: 5px; height: 40px; border-radius: 3px; background: var(--w-paper-3); }
    html body.w-mode.w-landstrip #w-sheet.is-small { width: var(--w-strip-w, 112px); cursor: pointer; }
    html body.w-mode.w-landstrip #w-sheet.is-small .w-sheet-body { overflow: hidden; -webkit-mask-image: none; mask-image: none; padding: 0 6px; }
    html body.w-mode.w-landstrip #w-sheet.is-small #w-main > :not(.w-now) { display: none !important; }
    html body.w-mode.w-landstrip #w-sheet.is-small .w-now { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 8px; }
    html body.w-mode.w-landstrip #w-sheet.is-small .w-hero { font-size: 2.3rem; }
    html body.w-mode.w-landstrip #w-sheet.is-small .w-now-ico { width: 46px; height: 46px; }
    html body.w-mode.w-landstrip #w-sheet.is-small #w-feels { display: none; }
    html body.w-mode.w-landstrip #w-sheet.is-small #w-cond { font-size: 0.95rem; line-height: 1.1; margin-bottom: 3px; overflow-wrap: anywhere; }
    html body.w-mode.w-landstrip #w-sheet.is-small .w-sx-g[hidden] { display: none; }
    /* the strip, top to bottom (Pierre, 2026-10-27): share, temperature, icon, day + time, then one value per line */
    html body.w-mode.w-landstrip #w-sheet.is-small .w-now-act { order: -1; margin: 0; }
    html body.w-mode.w-landstrip #w-sheet.is-small .w-sx { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 4px;
        font: 500 0.75rem/1.25 var(--w-font); color: var(--w-ink-2); }
    html body.w-mode.w-landstrip #w-sheet.is-small .w-sx > span::first-letter { text-transform: uppercase; }
    html body.w-mode.w-landstrip #w-sheet.is-small .w-sx .w-ele { font-weight: 600; }
    html body.w-mode.w-landstrip #w-sheet.is-small .w-date-row { justify-content: center; }
    html body.w-mode.w-landstrip #w-sheet.is-small #w-date { font-size: 0.72rem; line-height: 1.3; }
}
/* the sheet's own boxes in landscape (mount landStrip, Pierre 2026-10-28): the column is folded to the strip while one is open
   (sheet.js), the box sits right of it and runs to the right edge over the round buttons; no blur, the page under it stays
   visible (a modal box: nothing under it answers a tap). Only in a TIGHT landscape (= TIGHT in sheet.js, 2026-10-30): a tablet
   or a desktop keeps the column and the box centred */
@media (orientation: landscape) and (max-height: 600px), (orientation: landscape) and (max-width: 999px) {
    html body.w-mode.w-landstrip :is(#daily-dialog, #weekly-dialog, #minutely-dialog)[open] {
        position: fixed; inset: calc(8px + var(--w-safe-top, 0px)) 8px 8px calc(var(--w-sheet-left, 0px) + var(--w-strip-w, 112px) + 8px);
        margin: 0; width: auto; height: auto; max-width: none; max-height: none; transform: none; box-sizing: border-box; }
    html body.w-mode.w-landstrip :is(#daily-dialog, #weekly-dialog, #minutely-dialog)::backdrop { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ══ The scroll cue (2026-10-28, both hosts; dictionary element): WSheet.cue(el) marks a scrolling part. While it sits at the
   top with more below, a small round chevron chip shows at the bottom centre (sticky, takes no room); it goes as soon as the
   user scrolls and comes back only at the top. No fade, no scrollbar: a thin bar broke the rounded corners (Pierre). */
.w-cue::after { content: ''; display: block; position: sticky; bottom: 8px; width: 30px; height: 30px; margin: -38px auto 8px; flex: none;
    border-radius: 50%; pointer-events: none; z-index: 2; opacity: 0; transform: translateY(4px);
    transition: opacity var(--w-dur) var(--w-ease), transform var(--w-dur) var(--w-ease);
    background: var(--w-paper) center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344403C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 3px 10px rgba(0,0,0,.14); }
:root[data-wtheme="dark"] .w-cue::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7BFB2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.w-cue.w-cue-on::after { opacity: 1; transform: none; }
/* the sheet's own scroller has a 1.75rem bottom padding (dictionary) that a sticky element stays above: its chip floated ~45 px up,
   right between "Today" and "16 days" in a landscape column, where it read as a button (Pierre, 2026-11-25). 10 px off the edge */
.w-sheet-body.w-cue::after { bottom: calc(10px - 1.75rem); }
#weekly-content.w-cue::after { bottom: calc(10px - 0.75rem); }   /* the 16 days box: the same 10 px over its 0.75rem padding */
/* portrait: the small and regular heights end on purpose (under the "now" block / the hourly line), so the sheet's cue shows
   only at the big height; the landscape column always has it */
@media (orientation: portrait) {
    html body.w-mode #w-sheet:not(.is-full) .w-sheet-body.w-cue::after { display: none; }
}

/* ══ The place search (weather/sheet/places.js, both hosts since 2026-10-29; the rules came from W WEATHER's page): the star
   beside the field and the list under it (search matches, or the saved + recent places with the temperature now) */
#place-list { position: fixed; z-index: 1500; background: var(--blue8); border: 1px solid var(--blue6); border-radius: 0.6rem; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.5); max-width: calc(100vw - 16px); }
#place-list .place-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 0.45rem 0.8rem; background: none; border: 0; border-bottom: 1px solid var(--blue7); color: var(--blue1); text-align: left; cursor: pointer; font: inherit; }
#place-list .place-item:last-child { border-bottom: 0; }
#place-list .place-item:hover, #place-list .place-item:active { background: var(--blue7); }
#place-list .place-name { font-weight: 600; }
#place-list .place-head { padding: 0.35rem 0.8rem 0.2rem; font-size: var(--font-xs); text-transform: uppercase; letter-spacing: 0.03em; color: var(--blue4); background: var(--blue7); }
#place-list .place-empty { text-transform: none; letter-spacing: 0; padding: 0.6rem 0.8rem; background: none; }
#place-list .place-item[data-kind] { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "name temp x" "sub temp x"; column-gap: 0.6rem; align-items: center; }
#place-list .place-item[data-kind] .place-name { grid-area: name; }
#place-list .place-item[data-kind] .place-sub { grid-area: sub; }
#place-list .place-temp { grid-area: temp; font-family: monospace; font-size: var(--font-sm); color: var(--blue2); }
#place-list .place-x { grid-area: x; color: var(--blue4); padding: 0 0.2rem; }
#place-list .place-x:hover { color: #f87171; }
#place-list .place-sub { font-size: var(--font-xs); color: var(--blue4); }
html body.w-mode #w-search-box #btn-places { width: 48px; color: var(--w-amber-ink); background: var(--w-paper); border: 1px solid var(--w-paper-3); border-radius: 0 999px 999px 0; box-shadow: var(--w-shadow-float); }
html body.w-mode #place-list { background: var(--w-paper); border-color: var(--w-paper-3); box-shadow: var(--w-shadow-float); font-family: var(--w-font); }
html body.w-mode #place-list .place-item { color: var(--w-ink); border-bottom-color: var(--w-paper-3); }
html body.w-mode #place-list .place-item:hover, html body.w-mode #place-list .place-item:active { background: var(--w-paper-2); }
html body.w-mode #place-list .place-head { background: var(--w-paper-2); color: var(--w-ink-3); }
html body.w-mode #place-list .place-sub, html body.w-mode #place-list .place-x { color: var(--w-ink-3); }
html body.w-mode #place-list .place-temp { color: var(--w-ink-2); }
