/* add-on: Airflow (the code and the files still say breeze), the fourth mode of the Home plan (js/plus/breeze.js, R15). Light ink on the white plan card, the same pill, compass and segmented
   control as Sunlight and the mode bar. The air itself is a canvas (drawn in screen space from the plan's zoom); everything here is the quiet frame around it: the season and the compass float
   top right (a row under the mode bar on a narrow card), one pill floats at the bottom with the line and a hint, and the label sits under it. No filter or backdrop-filter anywhere. */
@property --bz-c { syntax: "<color>"; inherits: false; initial-value: transparent; }

.u-plan { --bz-d: 86px; --bz-t: 0px; }                              /* --bz-d: the height of the bottom dock (set from js); --bz-t: the room a second control row takes at the top */
.u-plan:is([data-bzw="mid"], [data-bzw="xs"]) { --bz-t: calc(var(--q-ctl, 44px) + 8px); }
.u-plan.bz-none { --bz-t: 0px; }
.bz-top, .bz-dock, .bz-cv, .bz-doors { display: none; }
.u-plan[data-pm="breeze"] :is(.bz-cv, .bz-doors) { display: block; }
.u-plan[data-pm="breeze"] :is(.bz-top, .bz-dock) { display: flex; }
.u-plan.bz-none .bz-top, .u-plan.bz-none .bz-foot { display: none !important; }
/* the drawing keeps the room above the dock and below the controls, and nothing more (the bottom pill is a single compact pill, as Sunlight's bar is) */
.u-plan[data-pm="breeze"] .u-z img { height: calc(100% - 5.8rem - var(--bz-d) - 14px); }
html.r13 body #lv-home .u-plan[data-pm="breeze"] .u-z img { top: calc(var(--q-hm-bar) + var(--s2) + var(--bz-t)); height: calc(100% - var(--q-hm-bar) - var(--s2) - var(--bz-t) - var(--bz-d) - 16px); }

.bz-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.bz-doors { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; border-radius: inherit; }

/* the rooms: a very soft tint by rating, painted once inside the zoomed layer (so it moves with the plan) */
.bz-tints { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--e-x, ease); }
.u-plan[data-pm="breeze"] .bz-tints { opacity: 1; }
.bz-t { position: absolute; border-radius: 50%; --bz-c: transparent; background: radial-gradient(closest-side, var(--bz-c) 0, var(--bz-c) 40%, transparent 100%); transition: --bz-c .5s var(--e-x, ease); }
.bz-t[data-r="through"] { --bz-c: rgba(46, 150, 168, .24); }
.bz-t[data-r="corner"] { --bz-c: rgba(120, 104, 204, .24); }
.bz-t[data-r="one-sided"] { --bz-c: rgba(226, 164, 52, .22); }
.bz-t[data-r="still"] { --bz-c: rgba(118, 116, 140, .13); }
.bz-t.sel[data-r="through"] { --bz-c: rgba(46, 150, 168, .38); }
.bz-t.sel[data-r="corner"] { --bz-c: rgba(120, 104, 204, .38); }
.bz-t.sel[data-r="one-sided"] { --bz-c: rgba(226, 164, 52, .4); }
.bz-t.sel[data-r="still"] { --bz-c: rgba(118, 116, 140, .26); }

/* the legend lives in the sentence: a swatch the colour of the tint, before the words it explains */
.bz-sw { display: inline-block; width: .72em; height: .72em; margin-right: .5em; border-radius: 50%; vertical-align: -.02em; background: var(--k); box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .2); }
.bz-sw[data-k="through"] { --k: rgba(46, 150, 168, .62); } .bz-sw[data-k="corner"] { --k: rgba(120, 104, 204, .66); }
.bz-sw[data-k="one-sided"] { --k: rgba(226, 164, 52, .78); } .bz-sw[data-k="still"] { --k: rgba(118, 116, 140, .5); }
.bz-sep { margin-right: .45em; }

/* top right: the wind and the season in one white pill (Sunlight's pill look). On a narrow card there is no room beside the mode bar: it sits in a row under it */
.bz-top { position: absolute; z-index: 3; top: calc(var(--s4, 1rem) - 2px); right: var(--s4, 1rem); align-items: center; gap: .5rem; padding: 7px 4px 3px 8px; border-radius: var(--r-pill, 999px); background: #fff; box-shadow: var(--mf-sh-float, 0 1px 3px rgba(22, 22, 27, .16)); color: #16161b; }
.u-plan:is([data-bzw="mid"], [data-bzw="xs"]) .bz-top { top: calc(var(--s4, 1rem) + var(--q-ctl, 44px) + 6px); right: auto; left: var(--s4, 1rem); }
.bz-compass { width: calc(48px * min(var(--ui-scale, 1), 1.2)); height: calc(48px * min(var(--ui-scale, 1), 1.2)); flex: none; overflow: visible; margin: 0; }
.bz-compass .c-t { font: 700 14px var(--sans); }
.bz-compass .c-ring { stroke-width: 1.6; }
.bz-compass .c-n, .bz-compass .bz-w { transition: transform .6s var(--e-in, cubic-bezier(.22, 1, .36, 1)); }
.bz-w path { fill: none; stroke: rgb(28, 92, 122); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
:root body #lv-home .u-plan.bz-open .bz-seg { display: none; }

/* the season switch: the mode bar's own control (same track, same glide thumb) */
:root body #lv-home .bz-seg { position: relative; display: inline-flex; flex: none; flex-wrap: nowrap; gap: 0; width: auto; padding: 3px; border-radius: var(--r-pill, 999px); background: rgba(22, 22, 27, .055); box-shadow: none; --glow-bg: #fff; --glow-sh: 0 0 0 1px rgba(22, 22, 27, .1), 0 1px 3px rgba(22, 22, 27, .2); }
:root body #lv-home .bz-seg[hidden] { display: none; }
:root body #lv-home .bz-seg button { min-height: calc(var(--q-ctl, 44px) - 10px); padding: 0 .95rem; border-radius: var(--r-pill, 999px); color: rgba(22, 22, 27, .72); font: 600 max(.86rem, 13.5px)/1 var(--sans); white-space: nowrap; }
:root body #lv-home .bz-seg[data-glide] button.on { color: #16161b; background: transparent; box-shadow: none; }
:root body #lv-home .bz-seg:not([data-glide]) button.on { color: #16161b; background: #fff; box-shadow: 0 0 0 1px rgba(22, 22, 27, .1), 0 1px 3px rgba(22, 22, 27, .2); }   /* until the shared thumb is in place the active season still shows */
:root body #lv-home .bz-seg .seg-glow.gl { border-radius: var(--r-pill, 999px); background-image: none; }

/* the bottom: one pill (the line, and the hint or the reason) and the label under it */
.bz-dock { position: absolute; z-index: 3; left: var(--s4, 1rem); right: var(--s4, 1rem); bottom: 10px; flex-direction: column; gap: 5px; color: #16161b; }
.bz-ui { display: grid; align-content: center; gap: 1px; min-height: calc(56px * var(--ui-scale, 1)); padding: .55rem 1.1rem; border-radius: calc(24px * var(--ui-scale, 1)); background: #fff; box-shadow: var(--mf-sh-float, 0 1px 3px rgba(22, 22, 27, .16)); }
.bz-ui p { margin: 0; }
.bz-line { font: var(--ty-callout, 500 15px/1.33 var(--sans)); font-weight: 600; letter-spacing: var(--tr-callout, 0); text-wrap: balance; }
.bz-sub { font: var(--ty-cap, 500 12px/1.33 var(--sans)); letter-spacing: var(--tr-cap, .01em); color: rgba(22, 22, 27, .66); }
.bz-sub:empty, .u-plan.bz-plain .bz-sub { display: none; }
.u-plan.bz-plain .bz-line { font-weight: 500; }
.bz-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5em; margin: 0; padding: 0 1.1rem; font: var(--ty-cap, 500 12px/1.33 var(--sans)); letter-spacing: var(--tr-cap, .01em); color: rgba(22, 22, 27, .62); }
.bz-ind { font-weight: 650; color: #16161b; }
.bz-fw:not(:empty)::before, .bz-sample:not([hidden])::before { content: "\00b7"; margin-right: .5em; }
.bz-sample[hidden] { display: none; }
.u-plan:is([data-bzw="mid"], [data-bzw="xs"]) .bz-sample:not([hidden]) { flex-basis: 100%; }   /* a narrow card: the second note takes its own line, without a leading dot */
.u-plan:is([data-bzw="mid"], [data-bzw="xs"]) .bz-sample:not([hidden])::before { content: none; }

/* the doors on a path: a 44px target, a small visible door, a slow ring that says "tap me" until the first tap. The hit area of a door is cut to its own cell by the script (clip-path) */
.bz-d { position: absolute; left: calc(var(--q-ctl, 44px) / -2); top: calc(var(--q-ctl, 44px) / -2); width: var(--q-ctl, 44px); height: var(--q-ctl, 44px); display: grid; place-items: center; padding: 0; border: 0; background: transparent; pointer-events: auto; touch-action: manipulation; will-change: transform; -webkit-tap-highlight-color: transparent; }
.bz-d i { position: relative; width: calc(24px * var(--ui-scale, 1)); height: calc(24px * var(--ui-scale, 1)); border-radius: 50%; display: grid; place-items: center; color: #16161b; background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px rgba(22, 22, 27, .3), 0 1px 4px rgba(22, 22, 27, .16); transition: background-color .22s var(--e-x, ease), color .22s var(--e-x, ease), scale .18s var(--e-in, ease); }
.bz-d svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bz-d circle { fill: currentColor; stroke: none; }
.bz-d[aria-pressed="true"] i { background: #16161b; color: #fff; }
.bz-d:active i { scale: .9; }
.bz-d:focus-visible { outline: none; } .bz-d:focus-visible i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #16161b; }
.bz-d i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(22, 22, 27, .5); opacity: 0; animation: bzPulse 3.2s cubic-bezier(.22, 1, .36, 1) infinite; }
.bz-d[aria-pressed="true"] i::after, .u-plan.bz-seen .bz-d i::after { animation: none; }
@keyframes bzPulse { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.u-plan[data-pm="breeze"] .bz-d:nth-child(2) i::after { animation-delay: .5s; } .u-plan[data-pm="breeze"] .bz-d:nth-child(3) i::after { animation-delay: 1s; } .u-plan[data-pm="breeze"] .bz-d:nth-child(4) i::after { animation-delay: 1.5s; }

/* a narrow card: the pill and the controls get a little tighter */
.u-plan:is([data-bzw="mid"], [data-bzw="xs"]) .bz-ui { padding: .5rem .95rem; }
/* xs: a card under about 380px of the plain scale (?tv=1 on a 1280 screen). Everything here drops to the plain scale so the drawing keeps some room; the mode bar gets tighter so all four modes are reachable */
.u-plan[data-bzw="xs"] { --bz-t: 60px; }
.u-plan[data-bzw="xs"] .bz-top { right: auto; left: var(--s4, 1rem); top: calc(var(--s4, 1rem) + var(--q-ctl, 44px) + 6px); gap: .3rem; padding: 4px 4px 3px 6px; }
.u-plan[data-bzw="xs"] .bz-compass { width: 42px; height: 42px; }
.u-plan[data-bzw="xs"] .bz-compass .c-t { font-size: 15px; }
:root body #lv-home .u-plan[data-bzw="xs"] .bz-seg button { min-height: 40px; padding: 0 .7rem; font: 600 13px/1 var(--sans) !important; }
.u-plan[data-bzw="xs"] .bz-ui { min-height: 0; padding: .4rem .8rem; border-radius: 18px; }
.u-plan[data-bzw="xs"] .bz-line { font: 600 13.5px/1.3 var(--sans); }
.u-plan[data-bzw="xs"] .bz-sub { font: 500 12px/1.3 var(--sans); }
.u-plan[data-bzw="xs"] .bz-mo { display: none; }
.u-plan[data-bzw="xs"] .bz-foot { padding: 0 .8rem; font-size: 12px; }
.u-plan[data-bzw="xs"] .bz-d i { width: 24px; height: 24px; }
html.r13 body #lv-home .u-plan[data-bzw="xs"] .pm-seg button { padding: 0 .35rem; font-size: 12.5px !important; letter-spacing: 0 !important; }
@media (max-width: 1100px) { :root body #lv-home .bz-seg button { padding: 0 .8rem; } }
@media (prefers-reduced-motion: reduce) {
  .bz-t, .bz-tints, .bz-compass .c-n, .bz-compass .bz-w, .bz-d i { transition: none; }
  .bz-d i::after { animation: none; }
}
