/* Only the new setting and illustrations are styled here. Existing controls own the disclosure. */
:root[data-theme] #app#app .msl-weather-icon-choices{display:grid;gap:12px;margin:0;padding:0;border:0;min-width:0}
:root[data-theme] #app#app .msl-weather-icon-choice{display:block;min-width:0;margin:0;padding:10px;border:1px solid var(--arch-border);border-radius:var(--msl-format-radius,var(--arch-radius-control));background:var(--arch-control);color:var(--arch-text);cursor:pointer}
:root[data-theme] #app#app .msl-weather-icon-choice.is-selected{border-color:var(--arch-accent);box-shadow:inset 0 0 0 1px var(--arch-accent);background:var(--arch-selected)}
:root[data-theme] #app#app .msl-weather-icon-choice:focus-within{outline:2px solid var(--arch-accent);outline-offset:2px}
:root[data-theme] #app#app .msl-weather-icon-choice-name{display:flex;align-items:center;gap:9px;margin:0 0 8px;font:var(--arch-fw-regular) var(--arch-fs-config-control)/1.2 var(--arch-font);color:var(--arch-text)}
:root[data-theme] #app#app .msl-weather-icon-choice-name>input{appearance:auto!important;flex:0 0 22px!important;width:22px!important;height:22px!important;min-height:22px!important;min-width:22px!important;max-width:22px!important;margin:0!important;padding:0!important;accent-color:var(--arch-accent);border-radius:50%!important;transform:none!important;box-shadow:none!important}
:root[data-theme] #app#app .msl-weather-icon-samples{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));justify-items:center;align-items:center;gap:10px 4px;margin:0;padding:0}
:root[data-theme] #app#app .msl-weather-icon-sample{display:grid;place-items:center;width:100%;min-width:0;height:var(--msl-weather-preview-height,38px);max-width:52px}
:root[data-theme] #app#app .msl-weather-icon-sample>.weather-emoji.msl-weather-family-glyph{display:inline-flex!important;align-items:center;justify-content:center;font-size:var(--msl-weather-preview-height,38px)!important;line-height:1!important;width:var(--msl-weather-preview-width,44px)!important;height:var(--msl-weather-preview-height,38px)!important;max-width:100%;position:relative!important;left:auto!important;top:auto!important;transform:none!important}

.msl-weather-family-glyph{display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;line-height:1;vertical-align:-.12em;color:var(--msl-weather-ink,var(--text,#f4f7f5));--msl-weather-cutout:var(--arch-panel,var(--surface,#071a14))}
.msl-weather-family-art{display:block;width:100%;height:100%;overflow:visible;flex:none}
:root[data-theme] #app#app .weather-emoji.msl-weather-family-glyph{width:1em!important;height:1em!important;line-height:1!important}
:root[data-theme] #app#app .v13007-hour-symbol>.weather-emoji.msl-weather-family-glyph,
:root[data-theme] #app#app .v13023-day-symbol>.weather-emoji.msl-weather-family-glyph,
:root[data-theme] #app#app .v13024-weather-slot>.weather-emoji.msl-weather-family-glyph{width:40px!important;height:40px!important}
:root[data-theme] #app#app .v13007-hour-symbol>.weather-emoji.msl-weather-family-glyph:is([data-weather-family="original"],[data-weather-family="blue-yellow"],[data-weather-family="paper-relief"]),
:root[data-theme] #app#app .v13023-day-symbol>.weather-emoji.msl-weather-family-glyph:is([data-weather-family="original"],[data-weather-family="blue-yellow"],[data-weather-family="paper-relief"]),
:root[data-theme] #app#app .v13024-weather-slot>.weather-emoji.msl-weather-family-glyph:is([data-weather-family="original"],[data-weather-family="blue-yellow"],[data-weather-family="paper-relief"]){width:44px!important;height:44px!important}
#app .msl-weather-town-symbol .msl-weather-family-glyph{--msl-weather-ink:#243842;--msl-weather-cutout:#f7fbfe;filter:drop-shadow(0 0 1px #fff)}

:root[data-theme] #app#app [data-weather-icon-choice] .msl-weather-family-art{pointer-events:none}

/* Navigation and selector share one readable illustration size. */
:root[data-theme] #app#app .bottomnav .navbtn.nav-forecast .weather-emoji.msl-weather-family-glyph{font-size:38px!important;width:44px!important;height:38px!important;transform:none!important}
:root[data-theme] #app#app .bottomnav .navbtn.nav-forecast .navicon{transform:translateY(-6px)!important}

/* Family selection and catalogue expansion are separate actions. */
:root[data-theme] #app#app .msl-weather-icon-choice-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;min-width:0}
:root[data-theme] #app#app .msl-weather-icon-choice-name{flex:1;min-width:0;margin:0;cursor:pointer}
:root[data-theme] #app#app [data-weather-icon-choice] .msl-weather-icon-choice-name>span{font-weight:700}
:root[data-theme] #app#app .msl-weather-catalogue-toggle{display:grid;place-items:center;flex:0 0 32px;width:32px!important;height:32px!important;min-height:32px!important;min-width:32px!important;margin:0!important;padding:0!important;border:1px solid var(--arch-border)!important;border-radius:50%!important;background:var(--arch-control)!important;color:var(--arch-text)!important;font:700 23px/1 var(--arch-font)!important;cursor:pointer}
:root[data-theme] #app#app .msl-weather-catalogue-toggle:focus-visible{outline:2px solid var(--arch-accent);outline-offset:2px}
:root[data-theme] #app#app .msl-weather-icon-samples{grid-template-rows:auto;gap:4px}
:root[data-theme] #app#app .msl-weather-catalogue[hidden]{display:none!important}
:root[data-theme] #app#app .msl-weather-catalogue{margin-top:14px;cursor:default}
:root[data-theme] #app#app .msl-weather-catalogue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
:root[data-theme] #app#app .msl-weather-catalogue-case{min-width:0;display:grid;grid-template-rows:auto auto auto;align-content:start;gap:6px;margin:0;padding:7px;border:1px solid var(--arch-border);border-radius:9px;background:var(--arch-panel)}
:root[data-theme] #app#app .msl-weather-catalogue-case>h4{display:flex;align-items:flex-start;gap:5px;min-width:0;margin:0!important;padding:0!important;min-height:var(--msl-catalogue-title-height,0px);font:700 calc((var(--arch-fs-meta) + var(--arch-fs-config-control))/2)/1.25 var(--arch-font)!important;color:var(--arch-text)!important;overflow-wrap:anywhere}
:root[data-theme] #app#app .msl-weather-catalogue-case>h4>span{flex:none;font-size:var(--arch-fs-meta);line-height:1.25;min-width:1.25em;text-align:center;border-radius:4px;background:var(--arch-control)}
:root[data-theme] #app#app .msl-weather-catalogue-swatch{padding:5px 3px;border-radius:6px;--msl-weather-cutout:#fcfefd}
:root[data-theme] #app#app .msl-weather-catalogue-swatch[data-catalogue-theme="light"]{background:#dce9e3;color:#14271f;--msl-weather-ink:#183b4f;--text:#14271f}
:root[data-theme] #app#app .msl-weather-catalogue-swatch[data-catalogue-theme="dark"]{background:#4e6d65;color:#f5f7f6;--msl-weather-ink:#e8f4ee;--msl-weather-cutout:#4e6d65;--text:#f5f7f6}
:root[data-theme] #app#app .msl-weather-catalogue-swatch>small{display:block;font:700 var(--arch-fs-meta)/1.25 var(--arch-font)!important;color:inherit!important;text-align:left}
:root[data-theme] #app#app .msl-weather-catalogue-swatch>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
:root[data-theme] #app#app .msl-weather-catalogue-variant{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-width:0}
:root[data-theme] #app#app .msl-weather-catalogue-variant>small{font:400 var(--arch-fs-meta)/1.25 var(--arch-font)!important;color:inherit!important}
:root[data-theme] #app#app .msl-weather-catalogue-variant>.weather-emoji.msl-weather-family-glyph{width:44px!important;max-width:100%!important;height:42px!important;font-size:42px!important;color:inherit!important;transform:none!important}

/* v01.152: preserve SVG scale; reserve extra room below enlarged weather marks.
   Navigation and map return zero extra space and use a fixed bottom ink edge. */
:root[data-theme] #app#app .weather-emoji.msl-weather-family-glyph[data-weather-space]{box-sizing:content-box!important;padding-bottom:var(--msl-weather-extra,0em)!important}
:root[data-theme] #app#app .v13007-hour-symbol>.weather-emoji.msl-weather-family-glyph[data-weather-space],
:root[data-theme] #app#app .v13023-day-symbol>.weather-emoji.msl-weather-family-glyph[data-weather-space],
:root[data-theme] #app#app .v13024-weather-slot>.weather-emoji.msl-weather-family-glyph[data-weather-space]{font-size:44px!important}
:root[data-theme] #app#app [data-weather-icon-choice="original"] .msl-weather-icon-sample,
:root[data-theme] #app#app [data-weather-icon-choice="blue-yellow"] .msl-weather-icon-sample,
:root[data-theme] #app#app [data-weather-icon-choice="paper-relief"] .msl-weather-icon-sample{height:auto;min-height:var(--msl-weather-preview-height,38px);align-self:start}

/* Paired catalogue tracks follow the tallest title and swatch in each row. */
:root[data-theme] #app#app .msl-weather-catalogue-swatch[data-catalogue-theme="light"]{min-height:var(--msl-catalogue-light-height,0px)}
:root[data-theme] #app#app .msl-weather-catalogue-swatch[data-catalogue-theme="dark"]{min-height:var(--msl-catalogue-dark-height,0px)}
/* The flow viewport is wider when the artwork is wider; its52-unit height and
   physical drawing scale remain unchanged. The white contour is included. */
:root[data-theme] #app#app .weather-emoji.msl-weather-family-glyph[data-weather-flow]{width:var(--msl-weather-flow-width)!important;max-width:none!important;flex:0 0 auto!important}
:root[data-theme] #app#app .forecast-v012005>.msl-weather-flow-heading{grid-template-columns:max-content minmax(0,1fr)!important}
:root[data-theme] #app#app .forecast-v012005>.msl-weather-flow-heading>.v19-screen-icon{width:max-content!important;justify-items:start!important}
:root[data-theme] #app#app .forecast-v012005>.v19-screen-heading.msl-weather-flow-heading .weather-emoji.msl-weather-family-glyph[data-weather-flow]{width:var(--msl-weather-flow-width)!important;max-width:none!important}
:root[data-theme] #app#app .detail .msl-weather-flow-title-symbol{width:max-content!important;flex:0 0 auto!important;justify-items:start!important}
:root[data-theme] #app#app .detail .msl-weather-flow-title{display:flex!important;align-items:center!important;min-width:0!important}
:root[data-theme] #app#app .detail[data-detail-key="forecast-day"] .msl-weather-flow-title{padding-left:var(--msl-condition-inset,5px)!important}
:root[data-theme] #app#app .detail .msl-weather-flow-title>span:last-child{min-width:0!important;overflow-wrap:anywhere}
:root[data-theme] #app#app .msl-weather-flow-readout{width:max-content!important;max-width:none!important;flex-wrap:nowrap!important}
:root[data-theme] #app#app .forecast-v012005 .msl-weather-flow-readout>.weather-symbol{width:max-content!important;flex:0 0 auto!important}
:root[data-theme] #app#app .msl-weather-flow-readout>.v4-measure{flex:0 0 auto!important}
:root[data-theme] #app#app .detail .msl-weather-flow-readout{justify-self:start!important;justify-content:flex-start!important;margin-left:0!important;translate:var(--msl-hour-icon-x,0px) 0!important}

/* Larger weather marks reserve height in the existing readouts; the native
   SVG scale and temperature sizes stay fixed. Navigation keeps its anchor. */
:root[data-theme] #app#app .forecast-v012005 .msl-weather-flow-readout{height:auto!important;min-height:60px!important}
:root[data-theme] #app#app .forecast-v012005 .msl-weather-flow-readout>.weather-symbol{height:auto!important;min-height:60px!important}
:root[data-theme] #app#app .detail .msl-weather-flow-readout>.v13013-hour-weather{height:auto!important;min-height:50px!important}

/* A period's scene grows around its native icons and both temperature series. */
:root[data-theme] #app#app .detail .v13024-period-grid[data-msl-native-scenes="1"] .v13024-period{grid-template-rows:var(--v13025-heading-height,44px) var(--v13025-condition-height,21px) var(--msl-period-scene-height,150px) var(--msl-period-meta-height,87px)!important}
:root[data-theme] #app#app .detail .v13024-period-grid[data-msl-native-scenes="1"] .v13025-period-condition{align-items:flex-start!important}
:root[data-theme] #app#app .detail .v13024-period-grid[data-msl-native-scenes="1"] .v13026-period-weather{grid-row:3!important;width:100%!important;height:var(--msl-period-scene-height,150px)!important;min-height:0!important}
:root[data-theme] #app#app .detail .v13024-period-grid[data-msl-native-scenes="1"] .v13026-period-weather>.msl-weather-family-glyph{position:absolute!important;left:0!important;top:0!important;width:44px!important;height:44px!important;font-size:44px!important;transform-origin:0 0!important}
:root[data-theme] #app#app .detail .v13024-period-grid[data-msl-native-scenes="1"] .msl-period-temperatures{display:none!important}
:root[data-theme] #app#app .detail .v13024-period-grid[data-msl-native-scenes="1"] .v13024-period-moisture{grid-row:4!important}

/* v01.158: restore prominence in these two presentation roles only.
   Native artwork keeps its common geometry. The navigation drawing grows
   upwards from the existing bottom anchor, retaining the label clearance. */
:root[data-theme] #app#app .bottomnav .navbtn.nav-forecast .weather-emoji.msl-weather-family-glyph:is([data-weather-family="original"],[data-weather-family="blue-yellow"],[data-weather-family="paper-relief"])>.msl-weather-family-art{transform:scale(1.25);transform-origin:50% 100%}
:root[data-theme] #app#app .forecast-v012005 .v55-current-row.msl-weather-flow-readout>.weather-symbol>.weather-emoji.msl-weather-family-glyph:is([data-weather-family="original"],[data-weather-family="blue-yellow"],[data-weather-family="paper-relief"]){font-size:67.5px!important}
