/* Sweeflow landing page, v9: one pinned view that plays six short steps as you scroll, or by itself.
 * Three things, on one centre line: the words (the headline, then each step's title and line), a
 * simulated Linux desktop in a screen of a fixed shape (16:10 on a computer, a square at most on a
 * phone: it scales, it never stretches), and a small control (play, and a ring per step). On a
 * computer the words sit above the screen; on a phone the screen is on top. The nav is flat liquid
 * glass. Page palette: the logo's violet (tokens.css), light and dark. */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- page chrome ---------- */
.defs { position: absolute; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-tooltip); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { transform: translateY(calc(var(--space-3xl) + var(--space-md))); }
.lead { color: var(--color-ink-2); font-size: var(--text-lead); }
.fine { font-size: var(--text-sm); color: var(--color-muted); }
code { font-family: var(--font-outlier); font-size: 0.92em; padding: var(--space-3xs) var(--space-xs); border-radius: var(--space-xs); background: var(--color-paper-3); color: var(--color-ink); white-space: nowrap; }
/* light text on dark reads heavier: a touch lighter in dark mode (a weight, so not light-dark()) */
@media (prefers-color-scheme: dark) { :root:not(:has(> head > meta[name="color-scheme"][content="light"])) body { font-weight: 350; } }
:root:has(> head > meta[name="color-scheme"][content="dark"]) body { font-weight: 350; }

/* ---------- liquid glass ----------
 * Flat: a see-through tint, a blur and a lift in saturation, one thin rim, a soft shadow. No bevel, no
 * sheen. Chromium also bends what's behind its edges, like a lens (app.js builds the filter). */
.glass { --g-tint: light-dark(oklch(100% 0 0 / 0.5), oklch(34% 0.04 290 / 0.42)); --g-ink: var(--color-ink); --g-muted: var(--color-muted); --g-rim: light-dark(oklch(100% 0 0 / 0.75), oklch(100% 0 0 / 0.14)); --g-shade: light-dark(oklch(25% 0.08 290 / 0.14), oklch(0% 0 0 / 0.45)); --g-hover: light-dark(oklch(50% 0.1 290 / 0.1), oklch(100% 0 0 / 0.1)); }
/* with the dark screen behind it, the glass goes clear and its text light */
:root .nav .glass[data-over="dark"] { --g-tint: oklch(100% 0 0 / 0.13); --g-ink: oklch(99% 0 0); --g-muted: oklch(90% 0.01 290); --g-rim: oklch(100% 0 0 / 0.3); --g-shade: oklch(0% 0 0 / 0.3); --g-hover: oklch(100% 0 0 / 0.16); }
.glass { position: relative; isolation: isolate; color: var(--g-ink); background: var(--g-tint); backdrop-filter: blur(14px) saturate(1.8); -webkit-backdrop-filter: blur(14px) saturate(1.8); box-shadow: inset 0 0 0 1px var(--g-rim), 0 8px 24px var(--g-shade); transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out); }
.glass.is-lens { backdrop-filter: var(--lens) saturate(1.8); }

/* a liquid button: flat, tinted and a touch see-through; it squashes like a drop when pressed */
.liquid { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); border: 0; border-radius: var(--radius-pill); color: oklch(99% 0.005 300); text-decoration: none; font: 500 var(--text-md)/1 var(--font-display); white-space: nowrap; cursor: pointer; background: oklch(55% 0.24 291 / 0.88); backdrop-filter: blur(4px) saturate(1.5); -webkit-backdrop-filter: blur(4px) saturate(1.5); transition: transform 0.45s var(--ease-spring), background-color var(--dur-short) var(--ease-out); }
.liquid:hover { background: oklch(52% 0.25 291 / 0.95); transform: scale(1.03); }
.liquid:active { transform: scale(1.06, 0.92); transition-duration: 0.12s; }
.liquid:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.nav { position: fixed; inset: var(--space-md) 0 auto; z-index: var(--z-sticky-nav); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; padding-inline: var(--gutter); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__pill { grid-column: 2; display: flex; align-items: center; gap: var(--space-2xs); height: 60px; padding-inline: var(--space-sm) 8px; border-radius: var(--radius-pill); }
.nav__brand { display: flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding-right: var(--space-xs); color: inherit; text-decoration: none; font: 500 var(--text-lg)/1 var(--font-display); letter-spacing: var(--tracking-display); border-radius: var(--radius-pill); }
.nav__download { min-height: 44px; padding: 0 var(--space-md); }
.nav__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--space-xs); height: 60px; }
.nav__gh { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding-inline: 13px; border-radius: var(--radius-pill); text-decoration: none; font: 500 var(--text-sm)/1 var(--font-display); }
.nav__gh > svg { width: 20px; height: 20px; }
.nav__gh:hover { background: var(--g-hover); }
.nav__stars { display: inline-flex; align-items: center; gap: 3px; color: var(--g-muted); font-variant-numeric: tabular-nums; }
.nav__stars svg { width: 15px; height: 15px; color: oklch(84% 0.16 85); }
.nav__stars [data-stars]:empty { display: none; }
.nav__brand:focus-visible, .nav__gh:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* day/night: a glass switch on its own, with a drop for a knob; the free end shows the mode it switches to */
.mode { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-pill); }
.mode:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* sizes: the track, the knob and the gap round it; each icon sits where the knob's centre stops */
.mode__track { --tw: 76px; --th: 42px; --kn: 34px; --gp: 4px; position: relative; display: block; width: var(--tw); height: var(--th); border-radius: var(--radius-pill); }
.mode__track svg { position: absolute; top: calc(50% - 8px); z-index: 4; color: color-mix(in oklab, var(--color-accent) 60%, transparent); transition: color 0.3s var(--ease-out); width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.mode__moon { fill: currentColor; stroke: none; }
.mode__sun { left: calc(var(--gp) + var(--kn) / 2 - 8px); }
.mode__moon { right: calc(var(--gp) + var(--kn) / 2 - 8px); }
/* the mode you're in sits on the knob, in solid violet; the other stays lighter */
.mode[aria-checked="false"] .mode__sun, .mode[aria-checked="true"] .mode__moon { color: var(--color-accent); }
.mode[aria-checked="true"] .mode__sun { color: oklch(90% 0.05 300); }
:root .nav .glass[data-over="dark"] svg { color: oklch(88% 0.06 300); }
.mode[aria-checked="false"] .glass[data-over="dark"] .mode__sun, .mode[aria-checked="true"] .glass[data-over="dark"] .mode__moon { color: var(--color-accent); }
.mode__knob { position: absolute; left: var(--gp); top: calc((var(--th) - var(--kn)) / 2); z-index: 3; width: var(--kn); height: var(--kn); border-radius: 50%; background: oklch(100% 0 0 / 0.82); box-shadow: 0 2px 6px oklch(10% 0.03 290 / 0.22); transition: transform 0.5s var(--ease-spring), width 0.25s var(--ease-out); }
.mode[aria-checked="true"] .mode__knob { transform: translateX(calc(var(--tw) - var(--kn) - 2 * var(--gp))); }
/* pressed, the knob stretches toward the other side */
.mode:active .mode__knob { width: calc(var(--kn) + 6px); }
.mode[aria-checked="true"]:active .mode__knob { transform: translateX(calc(var(--tw) - var(--kn) - 2 * var(--gp) - 6px)); }
html:not(.js) .mode { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); font: 500 var(--text-md)/1 var(--font-display); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- the scene ---------- */
:root { --screen-ring: light-dark(oklch(30% 0.08 290 / 0.28), oklch(100% 0 0 / 0.12)); --screen-shadow: light-dark(oklch(35% 0.16 290 / 0.38), oklch(0% 0 0 / 0.6)); }
.scene { position: relative; container-type: inline-size; }
/* the screen's row is never taller than a 16:10 screen as wide as the page, so the words and the steps
 * stay right against it at any size; spare height goes above and below the three together */
.scene__pin { position: sticky; top: 0; height: 100svh; min-height: 28rem; display: grid; grid-template-rows: auto minmax(0, calc((100cqw - 2 * var(--gutter)) / 1.6)) auto; align-content: center; justify-items: center; gap: clamp(14px, 2.6vh, 28px); padding: calc(var(--nav-h) + var(--space-md) + clamp(10px, 3vh, 36px)) var(--gutter) clamp(14px, 3vh, 32px); overflow: hidden; }
html:not(.js) .scene__pin { position: relative; height: auto; }
.beats { pointer-events: none; }
.js .beats { margin-top: -100svh; padding-top: 70svh; }
.js .beats span { display: block; height: 90svh; }
.js .beats span:last-child { height: 110svh; }
html:not(.js) .beats { display: none; }

/* the words: the headline, then each step's title and line, all in the one spot */
.words { display: grid; justify-items: center; width: 100%; text-align: center; }
.words__item { grid-area: 1 / 1; display: grid; justify-items: center; align-content: end; gap: var(--space-xs); }
.words h1, .words h2 { max-width: 24ch; font-size: clamp(2rem, 2.4vw + 1.6vh + 0.3rem, 3.75rem); line-height: 1.02; }
.words p { max-width: 64ch; font-size: var(--text-lead); line-height: 1.4; color: var(--color-ink-2); text-wrap: balance; }
.js .words__item { opacity: 0; transform: translateY(0.7rem); visibility: hidden; transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s 0.35s; }
.js .words__item.is-past { transform: translateY(-0.7rem); }
.js .words__item.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity 0.55s 0.12s var(--ease-out), transform 0.7s 0.12s var(--ease-out), visibility 0s; }
html:not(.js) .words__item:not([data-for="intro"]) { display: none; }

/* the screen: as big as fits, always the same shape */
.viewport { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; container-type: size; }
.monitor { position: relative; width: min(100cqw, 100cqh * 1.6); aspect-ratio: 16 / 10; overflow: hidden; border-radius: clamp(10px, 1.1vw, 18px); box-shadow: 0 0 0 1px var(--screen-ring), 0 28px 70px -24px var(--screen-shadow); }
html:not(.js) .viewport { height: 70vh; }
.stage { position: absolute; inset: 0; }
.stage.is-snap, .stage.is-snap * { transition: none !important; }

/* the control: play, then a ring per step, each filling like a timer; a ring's name shows on hover */
.stepper { display: flex; align-items: center; gap: var(--space-2xs); padding: 4px; border-radius: var(--radius-pill); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-rule) 60%, transparent); }
html:not(.js) .stepper { display: none; }
.stepper ol { display: flex; gap: 2px; margin: 0; padding: 0 2px; list-style: none; }
.stepper li { position: relative; }
.stepper ol button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--color-muted); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.stepper ol button:hover { background: var(--color-paper-3); color: var(--color-ink); }
.stepper ol button:focus-visible, .stepper__play:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.ring { position: relative; display: grid; place-items: center; width: 36px; height: 36px; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--color-rule); stroke-width: 2.5; }
.ring .ring__fg { stroke: var(--color-accent); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.stepper li.is-done .ring__fg { stroke-dashoffset: 0; }
.stepper li.is-run .ring__fg { animation: ring-fill var(--dur, 6s) linear forwards; }
@keyframes ring-fill { to { stroke-dashoffset: 0; } }
.ring b { font: 500 var(--text-sm)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stepper li.is-on button { color: var(--color-accent); background: var(--color-paper); }
.stepper li.is-done button { color: var(--color-accent); }
.stepper__play { min-height: 44px; padding: 0 var(--space-md) 0 14px; font-size: var(--text-md); }
.stepper__icon { width: 16px; height: 16px; }
.stepper__label { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 30; padding: 7px 11px; border-radius: 9px; background: var(--color-ink); color: var(--color-paper); font: 500 var(--text-xs)/1 var(--font-display); white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
@media (hover: hover) { .stepper ol button:hover .stepper__label, .stepper ol button:focus-visible .stepper__label { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- the Linux screen: laid out at 1200x750, scaled to the monitor ---------- */
.screen { position: absolute; left: 0; top: 0; z-index: 1; width: var(--vw, 1200px); height: var(--vh, 750px); overflow: hidden; transform-origin: 0 0; transform: scale(var(--k, 0.5)); font: 400 13px/1.35 var(--font-ui-kde); color: var(--kde-ink); user-select: none; -webkit-user-select: none; background: var(--kde-wall-a); }
.screen svg { display: inline-block; }
.wall { position: absolute; inset: 0; background: radial-gradient(60% 80% at 78% 30%, var(--kde-wall-c), transparent 70%), linear-gradient(150deg, var(--kde-wall-a), var(--kde-wall-b)); }
.desk { position: absolute; inset: 0 0 4.1em 0; }
.gbar, .hbar, .gdash { display: none; }
.screen.ghost { z-index: 2; pointer-events: none; }
.brush { position: absolute; left: 0; top: 0; z-index: 3; width: var(--vw, 1200px); height: var(--vh, 750px); transform-origin: 0 0; transform: scale(var(--k, 0.5)); pointer-events: none; --paint: var(--kde-accent); background: repeating-linear-gradient(0deg, oklch(100% 0 0 / 0.16) 0 1px, transparent 1px 5px, oklch(0% 0 0 / 0.06) 5px 6px, transparent 6px 11px), color-mix(in oklab, var(--paint) 60%, transparent); filter: blur(0.6px); }
.brush--edge { z-index: 4; background: oklch(97% 0.03 300 / 0.92); }
.brush[data-to="gnome"] { --paint: var(--gnome-accent); }
.brush[data-to="hyprland"] { --paint: var(--hypr-accent-2); }
.brush[data-to="cinnamon"] { --paint: var(--cin-accent); }
/* CachyOS's Plasma: its own dark teal wallpaper */
[data-distro="cachyos"] .wall { background: radial-gradient(55% 75% at 72% 35%, var(--cachy-wall-c), transparent 70%), linear-gradient(150deg, var(--cachy-wall-a), var(--cachy-wall-b)); }
.cursor { position: absolute; left: 0; top: 0; z-index: 990; width: 28px; height: 28px; overflow: visible; fill: var(--mac-win); stroke: var(--mac-win-ink); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 3px oklch(0% 0 0 / 0.35)); }
.ripple { position: absolute; left: 0; top: 0; z-index: 989; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--color-logo-a); pointer-events: none; opacity: 0; }
.hud { position: absolute; top: 14px; right: 14px; z-index: 930; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: oklch(14% 0.02 260 / 0.78); color: oklch(95% 0.01 260); font: 500 14px/1 var(--font-ui-mono); box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.12); }
.hud i { width: 8px; height: 8px; border-radius: 50%; background: oklch(78% 0.18 150); box-shadow: 0 0 8px oklch(78% 0.18 150); }
.flavour { position: absolute; left: 50%; bottom: 76px; z-index: 970; padding: 11px 22px; border-radius: 999px; background: oklch(12% 0.02 280 / 0.8); color: oklch(97% 0.01 280); font: 500 22px/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.14), 0 20px 50px oklch(0% 0 0 / 0.35); }
.flavour small { margin-left: 12px; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px oklch(100% 0 0 / 0.4); font-size: 15px; vertical-align: middle; }

/* Dolphin, and things passing between the Mac and Linux */
.files { display: grid; grid-template-columns: 9em minmax(0, 1fr); }
.files__side { display: grid; align-content: start; gap: 0.15em; padding: 0.7em 0.5em; background: var(--kde-bar); }
.files__side span { padding: 0.35em 0.6em; border-radius: 0.35em; }
.files__side .is-on { background: color-mix(in oklab, var(--kde-accent) 30%, transparent); }
.files__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.4em, 1fr)); align-content: start; gap: 1em 0.5em; padding: 1.1em; transition: background-color 0.2s; }
.files__grid.is-over { background: color-mix(in oklab, var(--kde-accent) 14%, transparent); box-shadow: inset 0 0 0 2px var(--kde-accent); }
.fi { display: grid; justify-items: center; gap: 0.35em; font-size: 0.92em; text-align: center; }
.fi svg { width: 3.2em; height: 3.2em; }
.files .fi::before { content: none; }
.fi.is-in { animation: pop-in 0.45s var(--ease-spring); }
@keyframes pop-in { from { transform: scale(0.4); opacity: 0; } }
.d-a { fill: oklch(62% 0.13 230); } .d-b { fill: oklch(72% 0.13 230); }
.attach { display: inline-flex; align-items: center; gap: 0.6em; justify-self: start; padding: 0.5em 0.9em 0.5em 0.6em; border-radius: 0.6em; background: var(--mac-side); box-shadow: inset 0 0 0 1px var(--mac-rule); }
.attach svg { width: 1.7em; height: 2.1em; }
.attach span { display: grid; } .attach b { font-weight: 600; } .attach small { color: var(--mac-win-muted); }
.mread mark { padding: 0.1em 0; color: inherit; background: linear-gradient(oklch(83% 0.09 255), oklch(83% 0.09 255)) no-repeat 0 0 / 0% 100%; transition: background-size 0.5s var(--ease-in-out); }
.mread mark.is-sel { background-size: 100% 100%; }
.dragghost { position: absolute; left: 0; top: 0; z-index: 980; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.45em 0.8em 0.45em 0.5em; border-radius: 0.5em; background: oklch(99% 0 0 / 0.92); color: var(--mac-win-ink); font: 600 1em/1 var(--font-ui-mac); box-shadow: 0 10px 24px oklch(0% 0 0 / 0.3); pointer-events: none; }
.dragghost svg { width: 1.4em; height: 1.8em; }
.kbd { position: absolute; left: 0; top: 0; z-index: 985; padding: 6px 10px; border-radius: 7px; background: oklch(98% 0.005 260); color: oklch(20% 0.01 260); font: 600 14px/1 var(--font-ui-mac); box-shadow: 0 2px 0 oklch(70% 0.01 260), 0 8px 20px oklch(0% 0 0 / 0.3); pointer-events: none; }
.paste { color: var(--kde-accent); }
.paste.is-in { animation: flash 0.9s var(--ease-out); }
@keyframes flash { from { background: color-mix(in oklab, var(--kde-accent) 45%, transparent); } }
/* the speaker in the tray, sounding: what a Mac app plays comes out of Linux */
.vol { position: relative; display: inline-grid; place-items: center; }
.vol svg { width: 1.25em; height: 1.25em; }
.vol.is-live { color: var(--kde-accent); }
.vol.is-live::before, .vol.is-live::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.6em; height: 1.6em; margin: -0.8em 0 0 -0.8em; border-radius: 50%; box-shadow: 0 0 0 0.12em var(--kde-accent); opacity: 0; }
[data-skin="hyprland"] .vol.is-live { color: var(--hypr-accent); }
@media (prefers-reduced-motion: no-preference) {
  .vol.is-live svg { animation: vol 0.5s ease-in-out infinite alternate; }
  .vol.is-live::before, .vol.is-live::after { animation: vol-wave 1.4s var(--ease-out) infinite; }
  .vol.is-live::after { animation-delay: 0.7s; }
}
@keyframes vol { to { transform: scale(1.18); } }
@keyframes vol-wave { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
.msg--arrive { animation: arrive 0.5s var(--ease-out); }
@keyframes arrive { from { opacity: 0; transform: translateY(-1em); } }

/* icons, shared by every desktop */
.f-a { fill: var(--mac-blue); } .f-b { fill: var(--mac-sel-soft); } .f-line { stroke: var(--mac-win-ink); }
.m-a { fill: var(--mac-blue); } .m-b { fill: var(--mac-win); } .m-c { stroke: var(--mac-blue); }
.x-a { fill: var(--mac-blue); } .x-grid { stroke: var(--mac-sel-soft); opacity: 0.45; } .x-b { fill: var(--mac-win); }
.s-a { fill: var(--mac-gray); } .s-b { stroke: var(--mac-win); } .s-b2 { fill: var(--mac-win); }
.k-a { fill: var(--kde-bar); } .k-b { stroke: var(--kde-accent); } .k-c { stroke: var(--kde-accent); }
.l-a { fill: var(--kde-accent); } .l-b { stroke: var(--kde-accent-ink); } .l-c { fill: var(--kde-accent-ink); }
.c-a { fill: var(--cin-accent); } .c-b { stroke: oklch(99% 0 0); }

/* windows */
.w { position: absolute; left: 3%; top: 5%; width: 44%; height: 44%; min-width: 0; display: flex; flex-direction: column; overflow: hidden; container-type: inline-size; transform-origin: 50% 50%; }
.w[hidden] { display: none; }
.w__bar { position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 0.7em; }
.w__body { flex: 1; min-height: 0; overflow: hidden; }
.w__grip { position: absolute; right: 0; bottom: 0; z-index: 2; width: 1.6em; height: 1.6em; }
.w__grip::after { content: ""; position: absolute; right: 0.35em; bottom: 0.35em; width: 0.6em; height: 0.6em; border: solid currentColor; border-width: 0 2px 2px 0; opacity: 0.35; }

/* a Mac window: its own title bar and traffic lights, as Sweeflow shows it */
.w--mac { border-radius: 0.85em; background: var(--mac-win); color: var(--mac-win-ink); font-family: var(--font-ui-mac); box-shadow: var(--mac-shadow); }
.w--mac .w__bar { height: 2.7em; padding-inline: 0.95em; border-bottom: 1px solid var(--mac-rule); }
.w--mac .w__title { display: flex; align-items: baseline; gap: 0.6em; white-space: nowrap; overflow: hidden; }
.w--mac .w__title b { font-weight: 600; font-size: 1.08em; }
.w--mac .w__title small { color: var(--mac-win-muted); }
.lights { display: flex; gap: 0.62em; margin-inline-end: 0.6em; }
.light { display: block; width: 1em; height: 1em; border-radius: 50%; }
.light--close { background: var(--mac-red); } .light--min { background: var(--mac-yellow); } .light--zoom { background: var(--mac-green); }
.w--mac:not(.is-active) .light { background: var(--mac-rule); }

/* Mail */
.mail { display: grid; grid-template-columns: minmax(0, 17em) minmax(0, 1fr); }
.mside { display: grid; align-content: start; gap: 0.15em; padding: 0.8em 0.6em; background: var(--mac-side); border-right: 1px solid var(--mac-rule); }
.mside small, .fside small, .xnav small { padding: 0.4em 0.5em 0.2em; color: var(--mac-win-muted); font-weight: 600; font-size: 0.82em; }
.mside span, .fside span, .xnav span { display: flex; justify-content: space-between; padding: 0.35em 0.6em; border-radius: 0.45em; white-space: nowrap; overflow: hidden; }
.mside em { font-style: normal; color: var(--mac-win-muted); }
.is-sel { background: var(--mac-sel-soft); }
.mlist { display: grid; align-content: start; overflow: hidden; border-right: 1px solid var(--mac-rule); }
.msg { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.15em 0.7em; padding: 0.8em 0.9em 0.8em 1.3em; border-bottom: 1px solid var(--mac-rule); }
.msg .av { grid-row: span 2; }
.msg b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .msg time { color: var(--mac-win-muted); font-size: 0.85em; }
.msg > span { grid-column: 2 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.is-new::before { content: ""; position: absolute; left: 0.45em; top: 50%; width: 0.5em; height: 0.5em; margin-top: -0.25em; border-radius: 50%; background: var(--mac-blue); }
.av { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: linear-gradient(160deg, oklch(72% 0.13 var(--h)), oklch(55% 0.16 var(--h))); color: #fff; font: 600 0.95em/1 var(--font-ui-mac); font-style: normal; }
.cmd { justify-self: start; padding: 0.55em 0.8em; border-radius: 0.5em; background: var(--mac-side); box-shadow: inset 0 0 0 1px var(--mac-rule); font: 0.95em/1 var(--font-ui-mono); white-space: nowrap; }
.mread > p { margin: 0.4em 0 0; }
.msg.is-sel { background: var(--mac-sel); color: var(--mac-sel-ink); }
.msg.is-sel time, .msg.is-sel small { color: var(--mac-sel-ink); opacity: 0.85; }
.msg.is-sel::before { background: var(--mac-sel-ink); }
.mread { padding: 1.2em 1.5em; display: grid; align-content: start; gap: 0.7em; overflow: hidden; }
.mread header { display: flex; align-items: center; gap: 0.8em; padding-bottom: 0.9em; border-bottom: 1px solid var(--mac-rule); }
.mread header > span { display: grid; gap: 0.2em; }
.mread header .av { width: 2.9em; height: 2.9em; font-size: 1.05em; }
.mread header b { font-weight: 600; font-size: 1.25em; } .mread header small { color: var(--mac-win-muted); }
@container (max-width: 44em) { .mail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .mside { display: none; } }
@container (max-width: 26em) { .mail { grid-template-columns: minmax(0, 1fr); } .mread { display: none; } }

/* Xcode */
.w__bar--tool { height: 3.2em !important; }
.xrun { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 0.45em; }
.xrun svg { width: 1.3em; height: 1.3em; }
.xscheme { white-space: nowrap; color: var(--mac-win-muted); }
.xstatus { flex: 1; min-width: 0; margin-inline-start: 0.6em; padding: 0.35em 0.8em; border-radius: 0.45em; background: var(--mac-side); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mac-win-ink); }
.xc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); }
.xcanvas { display: grid; place-items: center; padding: 1.2em; background: radial-gradient(circle at 1px 1px, oklch(80% 0.005 250) 1px, transparent 1.5px) 0 0 / 1.1em 1.1em, var(--mac-side); border-left: 1px solid var(--mac-rule); }
.phone { display: grid; align-content: start; gap: 0.15em; width: min(13em, 100%); aspect-ratio: 9 / 19; padding: 2.2em 0.8em 0.8em; border-radius: 1.9em; background: oklch(98% 0.003 250); box-shadow: 0 0 0 0.45em oklch(18% 0.005 260), 0 1.2em 2em oklch(20% 0.02 260 / 0.25); color: var(--mac-win-ink); }
.phone b { margin-bottom: 0.4em; font: 700 1.7em/1.1 var(--font-ui-mac); }
.phone span { display: flex; align-items: center; gap: 0.6em; padding: 0.65em 0.2em; border-bottom: 1px solid var(--mac-rule); }
.phone i { width: 1.4em; height: 1.4em; border-radius: 0.4em; background: var(--mac-blue); }
.phone span:nth-of-type(2) i { background: var(--mac-orange); } .phone span:nth-of-type(3) i { background: var(--mac-green); }
@container (max-width: 40em) { .xc { grid-template-columns: minmax(0, 1fr); } .xcanvas { display: none; } }

/* Apple Music's mini player: the artwork fills it, the controls sit on glass below */
.w--music { color: #fff; }
.w--music .w__bar { position: absolute; inset: 0 0 auto; z-index: 2; border: 0; background: transparent; }
.music { position: relative; display: grid; height: 100%; }
.art { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, oklch(52% 0.2 330), oklch(70% 0.19 35) 58%, oklch(30% 0.08 300) 58.5%, oklch(22% 0.06 300)); }
.art::before { content: ""; position: absolute; left: 50%; top: 58%; width: 5.5em; height: 5.5em; margin: -3.6em 0 0 -2.75em; border-radius: 50%; background: oklch(90% 0.13 85); box-shadow: 0 0 3em oklch(85% 0.15 70 / 0.6); }
.art i { position: absolute; z-index: 1; left: 0; right: 0; top: 46%; height: 12.5%; background: linear-gradient(90deg, oklch(22% 0.06 300) 0 8%, transparent 8% 12%, oklch(22% 0.06 300) 12% 22%, transparent 22% 30%, oklch(22% 0.06 300) 30% 36%, transparent 36% 64%, oklch(22% 0.06 300) 64% 75%, transparent 75% 79%, oklch(22% 0.06 300) 79% 92%, transparent 92%); -webkit-mask-image: linear-gradient(transparent 0 35%, #000 35%); mask-image: linear-gradient(transparent 0 35%, #000 35%); }
.music__panel { position: relative; z-index: 2; align-self: end; display: grid; gap: 0.55em; margin: 0.6em; padding: 0.8em 1em; border-radius: 0.8em; background: oklch(20% 0.03 300 / 0.45); backdrop-filter: blur(12px) saturate(1.6); -webkit-backdrop-filter: blur(12px) saturate(1.6); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.2); }
.music__meta { display: grid; } .music__meta b { font-weight: 600; } .music__meta small { opacity: 0.75; }
.music__bar { height: 0.25em; border-radius: 1em; background: oklch(100% 0 0 / 0.3); overflow: hidden; }
.music__bar i { display: block; width: 18%; height: 100%; background: #fff; }
.w--music.is-playing .music__bar i { animation: progress 40s linear forwards; }
@keyframes progress { to { width: 100%; } }
.music__ctl { display: flex; align-items: center; justify-content: center; gap: 1.6em; }
.music__ctl svg { width: 1.3em; height: 1.3em; }
.music__pp { display: grid; place-items: center; }
.music__pp svg { width: 1.7em; height: 1.7em; }
.xnav { display: grid; align-content: start; gap: 0.1em; padding: 0.6em; background: var(--mac-side); border-right: 1px solid var(--mac-rule); font-size: 0.95em; }
.xcode { margin: 0; padding: 0.9em 0; background: var(--mac-code-bg); color: var(--mac-code-ink); font: 0.95em/1.6 var(--font-ui-mono); overflow: hidden; white-space: pre; }
.xcode code { padding: 0; border-radius: 0; background: none; color: inherit; font: inherit; white-space: inherit; }
.xcode i { display: inline-block; width: 3em; padding-right: 1em; text-align: right; font-style: normal; color: var(--mac-code-gutter); }
.xcode k { color: var(--mac-code-kw); } .xcode t { color: var(--mac-code-type); } .xcode s { color: var(--mac-code-str); text-decoration: none; }
@container (max-width: 34em) { .xscheme { display: none; } }

/* Finder */
.finder { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); }
.fside { display: grid; align-content: start; gap: 0.1em; padding: 0.8em 0.6em; background: var(--mac-side); border-right: 1px solid var(--mac-rule); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5em, 1fr)); align-content: start; gap: 1em 0.6em; padding: 1.2em; }
.fi { display: grid; justify-items: center; gap: 0.4em; text-align: center; font-size: 0.9em; word-break: break-word; }
.fi::before { content: ""; width: 3.4em; height: 2.7em; border-radius: 0.3em; background: var(--mac-blue); opacity: 0.85; }
.fi--doc::before { width: 2.5em; height: 3.2em; background: var(--mac-win); box-shadow: inset 0 0 0 1px var(--mac-rule), 0 0.1em 0.3em var(--mac-rule); opacity: 1; }
@container (max-width: 30em) { .finder { grid-template-columns: minmax(0, 1fr); } .fside { display: none; } }

/* a native Linux window, KDE Breeze by default */
.w--native { border-radius: 0.55em; background: var(--kde-win); color: var(--kde-ink); box-shadow: var(--kde-shadow), 0 0 0 1px var(--kde-rule); }
.w--native .w__bar { height: 2.35em; padding-inline: 0.6em 0.3em; background: var(--kde-bar); }
.w__icon { width: 1.35em; height: 1.35em; }
.w--native .w__title { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; }
.nbtns { display: flex; gap: 0.15em; }
.nbtn { position: relative; display: block; width: 1.9em; height: 1.9em; border-radius: 50%; }
.nbtn::before { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.05em/1 var(--font-ui-kde); color: var(--kde-ink); }
.nbtn--min::before { content: "−"; } .nbtn--max::before { content: "□"; font-size: 0.9em; } .nbtn--close::before { content: "×"; font-size: 1.25em; }
.w.is-active.w--native { box-shadow: var(--kde-shadow), 0 0 0 1px var(--kde-accent); }
.term { padding: 0.7em 0.9em; font: 0.95em/1.55 var(--font-ui-mono); }
.term p { margin: 0; min-height: 1.55em; white-space: nowrap; overflow: hidden; }
.term b { color: var(--kde-accent); font-weight: 400; }
.term .is-new { color: var(--kde-accent); }
.caret { display: inline-block; width: 0.55em; height: 1.05em; vertical-align: -0.2em; background: var(--kde-ink); }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }

/* Sweeflow's "Add a Mac" window */
.pair { padding: 1.7em 1.9em; }
.pair__page { display: none; }
.pair[data-page="1"] [data-p="1"], .pair[data-page="2"] [data-p="2"], .pair[data-page="4"] [data-p="4"] { display: grid; gap: 1.1em; align-content: start; }
.pair[data-page="2"] [data-p="2"] { justify-items: center; text-align: center; padding-top: 0.6em; }
.pair[data-page="4"] [data-p="4"] { justify-items: center; text-align: center; padding-top: 1.2em; }
/* the one Mac found on the network, to choose */
.macrow { display: flex; align-items: center; gap: 0.8em; padding: 0.7em 0.9em; border-radius: 0.5em; background: var(--kde-bar); box-shadow: inset 0 0 0 1px var(--kde-rule); transition: background-color 0.2s, box-shadow 0.2s; }
.macrow svg { width: 2.2em; height: 2.2em; }
.macrow > span { display: grid; } .macrow b { font-weight: 600; } .macrow small { color: var(--kde-muted); }
.macrow.is-on { background: color-mix(in oklab, var(--kde-accent) 22%, var(--kde-bar)); box-shadow: inset 0 0 0 1.5px var(--kde-accent); }
.pair h4 { margin: 0; font: 600 1.4em/1.2 var(--font-ui-kde); }
.pair p { color: var(--kde-muted); white-space: normal; }
.codebox { display: flex; align-items: center; gap: 0.6em; }
.codebox span { display: grid; place-items: center; width: 2.3em; height: 2.8em; border-radius: 0.4em; background: var(--kde-bar); box-shadow: inset 0 0 0 1px var(--kde-rule); font: 500 1.7em/1 var(--font-ui-mono); }
.codebox span.is-cur { box-shadow: inset 0 0 0 1.5px var(--kde-accent); }
.codebox span.is-in { animation: key-in 0.18s var(--ease-out); }
@keyframes key-in { from { transform: scale(0.8); } }
.pair__btns { display: flex; justify-content: space-between; margin-top: 0.3em; }
.kbtn { padding: 0.5em 1.2em; border-radius: 0.4em; background: var(--kde-bar); box-shadow: inset 0 0 0 1px var(--kde-rule); }
.kbtn--primary { background: var(--kde-accent); color: var(--kde-accent-ink); box-shadow: none; transition: opacity var(--dur-short); }
.kbtn--primary.is-off { opacity: 0.4; }
.spin { width: 2.8em; height: 2.8em; border-radius: 50%; border: 0.3em solid var(--kde-rule); border-top-color: var(--kde-accent); }
@media (prefers-reduced-motion: no-preference) { .spin { animation: spin 0.9s linear infinite; } }
@keyframes spin { to { transform: rotate(1turn); } }
.okmark { display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 50%; background: var(--kde-accent); color: var(--kde-accent-ink); }
.okmark svg { width: 1.9em; height: 1.9em; }

/* macOS in a VM */
.macdesk { position: relative; background: radial-gradient(80% 70% at 85% 95%, var(--mac-wall-c), transparent 70%), linear-gradient(140deg, var(--mac-wall-a), var(--mac-wall-b)); color: var(--mac-bar-ink); font-family: var(--font-ui-mac); }
.vmdesk { font-size: 0.92em; }

/* Plasma's floating panel */
.kpanel { position: absolute; left: 0.5em; right: 0.5em; bottom: 0.5em; height: 3.1em; z-index: 900; display: flex; align-items: center; gap: 0.3em; padding-inline: 0.3em 0.8em; border-radius: 0.7em; background: var(--kde-panel); box-shadow: 0 0 0 1px var(--kde-rule); }
.kpanel__launcher { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 0.45em; }
.kpanel__launcher svg { width: 1.85em; height: 1.85em; }
.kpanel__cin { display: none !important; }
.kpanel__launcher.is-on { background: var(--kde-hover); }
.tasks { display: flex; gap: 0.2em; flex: 1; min-width: 0; overflow: hidden; }
.task { position: relative; display: grid; place-items: center; width: 2.7em; height: 2.6em; border-radius: 0.45em; flex-shrink: 0; }
.task svg, .task img { width: 1.75em; height: 1.75em; }
.task.is-min svg { opacity: 0.5; }
.task::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0.12em; height: 0.18em; border-radius: 1em; background: var(--kde-muted); opacity: 0.6; }
.task.is-active { background: var(--kde-hover); }
.task.is-active::after { background: var(--kde-accent); opacity: 1; left: 15%; right: 15%; }
.task.is-min svg { opacity: 0.55; }
.task.is-new { animation: task-in 0.4s var(--ease-spring); }
@keyframes task-in { from { transform: scale(0.3); opacity: 0; } }
.kpanel__tray { display: flex; align-items: center; gap: 0.75em; }
.kpanel__tray > svg, .gbar__tray > svg, .hbar__tray > svg { width: 1.25em; height: 1.25em; }
.kpanel__clock { display: grid; justify-items: center; line-height: 1.15; }
.kpanel__clock b { font-weight: 400; } .kpanel__clock small { font-size: 0.78em; color: var(--kde-muted); }
.tray-btn { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 0.4em; }
.tray-btn img { width: 1.35em; height: 1.35em; }
.tray-btn.is-on { background: var(--kde-hover); }

/* the launcher */
.launch { position: absolute; left: 0.5em; bottom: 0.4em; z-index: 950; width: min(24em, 90%); display: grid; gap: 0.5em; padding: 0.7em; border-radius: 0.7em; background: var(--kde-win); box-shadow: var(--kde-pop-shadow), 0 0 0 1px var(--kde-rule); transform-origin: bottom left; }
.launch[hidden] { display: none; }
.launch__search { display: flex; align-items: center; gap: 0.5em; min-height: 2.4em; padding: 0.5em 0.7em; border-radius: 0.45em; background: var(--kde-bar); box-shadow: inset 0 0 0 1px var(--kde-accent); }
.launch__search svg { width: 1.1em; height: 1.1em; color: var(--kde-muted); }
.launch__q:not(:empty)::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: currentColor; }
.launch__ph { color: var(--kde-muted); }
.launch__list { display: grid; gap: 0.1em; }
.launch__list > span { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7em; padding: 0.45em 0.6em; border-radius: 0.45em; }
.launch__list > span[hidden] { display: none; }
.launch__list svg { width: 2em; height: 2em; }
.launch__list b { font-weight: 400; }
.launch__list small { color: var(--kde-muted); font-size: 0.85em; }
.launch__list > span.is-first { background: var(--kde-hover); }

/* Sweeflow's tray menu */
.traypop { position: absolute; right: 0.5em; bottom: 0.4em; z-index: 950; width: min(19em, 90%); display: grid; gap: 0.2em; padding: 0.8em; border-radius: 0.7em; background: var(--kde-win); box-shadow: var(--kde-pop-shadow), 0 0 0 1px var(--kde-rule); transform-origin: bottom right; }
.traypop[hidden] { display: none; }
.traypop header { display: flex; align-items: center; gap: 0.7em; padding-bottom: 0.6em; margin-bottom: 0.3em; border-bottom: 1px solid var(--kde-rule); }
.traypop header img { width: 2.3em; height: 2.3em; }
.traypop header span { display: grid; } .traypop header b { font-weight: 600; } .traypop header small { color: var(--kde-muted); }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 0.45em 0.3em; }
.tog i { position: relative; flex-shrink: 0; width: 2.4em; height: 1.35em; border-radius: 1em; background: var(--kde-rule); transition: background-color var(--dur-short) var(--ease-out); }
.tog i::after { content: ""; position: absolute; left: 0.15em; top: 0.15em; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--kde-ink); transition: transform var(--dur-short) var(--ease-out); }
.tog i.is-on { background: var(--kde-accent); }
.tog i.is-on::after { transform: translateX(1.05em); }

.flyer { position: fixed; left: 0; top: 0; z-index: var(--z-tooltip); width: 52px; height: 52px; opacity: 0; pointer-events: none; }

/* ---------- GNOME skin ---------- */
.screen[data-skin="gnome"] { font-family: var(--font-ui-gnome); }
[data-skin="gnome"] .wall { background: radial-gradient(70% 90% at 30% 100%, var(--gnome-wall-c), transparent 70%), linear-gradient(160deg, var(--gnome-wall-a), var(--gnome-wall-b)); }
[data-skin="gnome"] .kpanel { display: none; }
[data-skin="gnome"] .desk { inset: 2.1em 0 0 3.6em; }
[data-skin="gnome"] .gbar { position: absolute; inset: 0 0 auto 0; z-index: 900; height: 2.1em; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding-inline: 0.5em; background: var(--gnome-bar); color: var(--gnome-ink); font-weight: 700; }
.gbar__act { justify-self: start; display: flex; align-items: center; gap: 0.3em; height: 1.6em; padding: 0 0.6em; border-radius: 1em; }
.gbar__act span { width: 0.45em; height: 0.45em; border-radius: 1em; background: var(--gnome-ink); opacity: 0.6; }
.gbar__act span:first-child { width: 1.3em; opacity: 1; }
.gbar__act.is-on { background: var(--kde-hover); }
.gbar__tray { justify-self: end; display: flex; align-items: center; gap: 0.6em; }
.gbar__batt { width: 1.6em !important; height: 0.85em !important; }
[data-skin="gnome"] .w--native { border-radius: 0.9em; background: var(--gnome-win); }
[data-skin="gnome"] .w--native .w__bar { height: 2.9em; background: var(--gnome-head); padding-inline: 0.8em 0.5em; }
[data-skin="gnome"] .w--native .w__icon { display: none; }
[data-skin="gnome"] .w--native .w__title { font-weight: 700; }
[data-skin="gnome"] .nbtn--close { width: 1.6em; height: 1.6em; background: var(--kde-hover); }
[data-skin="gnome"] .w.is-active.w--native { box-shadow: var(--kde-shadow), 0 0 0 1px var(--kde-rule); }
[data-skin="gnome"] .launch { inset: 0; width: auto; bottom: 0; align-content: start; justify-items: center; gap: 1.6em; padding: 2em 1.5em 6em; border-radius: 0; background: var(--gnome-overlay); box-shadow: none; transform-origin: 50% 0; }
[data-skin="gnome"] .launch__search { width: min(22em, 100%); border-radius: 2em; background: var(--gnome-win); box-shadow: none; }
[data-skin="gnome"] .launch__list { grid-template-columns: repeat(auto-fill, minmax(6.5em, 1fr)); width: min(40em, 100%); gap: 0.8em; }
[data-skin="gnome"] .launch__list > span { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0.4em; padding: 0.9em 0.4em; border-radius: 1em; text-align: center; }
[data-skin="gnome"] .launch__list svg { width: 3.6em; height: 3.6em; }
[data-skin="gnome"] .launch__list small { display: none; }
[data-skin="gnome"] .traypop { top: 0.4em; bottom: auto; transform-origin: top right; }
/* Ubuntu's dock: always on, down the left edge, with Show Apps at the bottom */
[data-skin="gnome"] .gdash { position: absolute; left: 0; top: 2.1em; bottom: 0; z-index: 960; width: 3.6em; display: flex; flex-direction: column; align-items: center; gap: 0.3em; padding-block: 0.4em 3.2em; background: var(--gnome-dock); }
[data-skin="gnome"] .gdash::after { content: ""; position: absolute; bottom: 0.7em; left: 50%; width: 1.5em; height: 1.5em; transform: translateX(-50%); background: radial-gradient(circle, var(--gnome-ink) 0.13em, transparent 0.15em) 0 0 / 0.5em 0.5em; opacity: 0.85; }
[data-skin="gnome"] .gdash .task::after { left: 0.15em; right: auto; top: 40%; bottom: 40%; width: 0.22em; height: auto; background: var(--gnome-accent); }
[data-skin="gnome"] .term b, [data-skin="gnome"] .term .is-new, [data-skin="gnome"] .paste { color: var(--gnome-accent); }
.gdash .task::after { left: 45%; right: 45%; height: 0.25em; }

/* ---------- Hyprland / Omarchy skin ---------- */
.screen[data-skin="hyprland"] { font-family: var(--font-ui-mono); color: var(--hypr-ink); }
[data-skin="hyprland"] .wall { background: linear-gradient(160deg, var(--hypr-wall-a), var(--hypr-wall-b)); }
[data-skin="hyprland"] .kpanel { display: none; }
[data-skin="hyprland"] .desk { inset: 2.6em 0 0 0; }
[data-skin="hyprland"] .hbar { position: absolute; inset: 0.35em 0.6em auto; z-index: 900; height: 1.95em; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding-inline: 0.4em 0.8em; border-radius: 0.4em; background: var(--hypr-bar); font-size: 0.95em; }
.hbar__ws { display: flex; align-items: center; gap: 0.2em; }
.hbar__ws b, .hbar__ws > span:not(.hbar__menu) { min-width: 1.6em; text-align: center; color: var(--hypr-muted); font-weight: 400; }
.hbar__ws b { color: var(--hypr-accent); }
.hbar__menu { display: grid; place-items: center; width: 1.7em; height: 1.5em; border-radius: 0.3em; color: var(--hypr-accent-2); }
.hbar__menu svg { width: 1.05em; height: 1.05em; }
.hbar__menu.is-on { background: var(--kde-hover); }
.hbar__tray { justify-self: end; display: flex; align-items: center; gap: 0.7em; }
[data-skin="hyprland"] .w { border-radius: 0.5em; box-shadow: 0 0 0 2px var(--hypr-border); }
[data-skin="hyprland"] .w.is-active { box-shadow: 0 0 0 2px var(--hypr-accent); }
[data-skin="hyprland"] .w--native { background: var(--hypr-win); }
[data-skin="hyprland"] .w--native .w__bar { height: 0; overflow: hidden; padding: 0; }
[data-skin="hyprland"] .w__grip { display: none; }
[data-skin="hyprland"] .term b { color: var(--hypr-accent); }
[data-skin="hyprland"] .launch { left: 50%; top: 18%; bottom: auto; width: min(22em, 90%); border-radius: 0.5em; background: var(--hypr-win); box-shadow: 0 0 0 2px var(--hypr-accent); transform: translateX(-50%); transform-origin: 50% 0; }
[data-skin="hyprland"] .traypop { top: 0.4em; bottom: auto; border-radius: 0.5em; background: var(--hypr-win); box-shadow: 0 0 0 2px var(--hypr-accent); transform-origin: top right; }

/* ---------- Cinnamon / Linux Mint skin: Plasma's panel, made Cinnamon's (full width along the bottom) ---------- */
.screen[data-skin="cinnamon"] { font-family: var(--font-ui-kde); color: var(--cin-ink); }
[data-skin="cinnamon"] .wall { background: radial-gradient(70% 80% at 75% 20%, var(--cin-wall-c), transparent 70%), linear-gradient(200deg, var(--cin-wall-b), var(--cin-wall-a)); }
[data-skin="cinnamon"] .desk { inset: 0 0 2.8em 0; }
[data-skin="cinnamon"] .kpanel { inset: auto 0 0 0; height: 2.8em; border-radius: 0; padding-inline: 0.2em 0.8em; background: var(--cin-panel); box-shadow: 0 -1px 0 var(--cin-rule); }
[data-skin="cinnamon"] .kpanel__kde { display: none; }
[data-skin="cinnamon"] .kpanel__cin { display: inline-block !important; width: 1.7em; height: 1.7em; }
[data-skin="cinnamon"] .kpanel__launcher { width: 2.4em; height: 2.4em; border-radius: 0.3em; }
[data-skin="cinnamon"] .task { height: 2.4em; border-radius: 0.3em; }
[data-skin="cinnamon"] .task.is-active { background: var(--cin-hover); }
[data-skin="cinnamon"] .task::after { left: 0; right: 0; bottom: 0; height: 0.16em; border-radius: 0; background: var(--cin-muted); }
[data-skin="cinnamon"] .task.is-active::after { left: 0; right: 0; background: var(--cin-accent); }
[data-skin="cinnamon"] .kpanel__clock small { display: none; }
[data-skin="cinnamon"] .vol.is-live { color: var(--cin-accent); }
[data-skin="cinnamon"] .w--native { border-radius: 0.45em 0.45em 0 0; background: var(--cin-win); box-shadow: var(--kde-shadow), 0 0 0 1px var(--cin-rule); }
[data-skin="cinnamon"] .w--native .w__bar { height: 2.3em; background: var(--cin-head); padding-inline: 0.7em 0.4em; }
[data-skin="cinnamon"] .w--native .w__title { text-align: start; font-weight: 600; }
[data-skin="cinnamon"] .nbtn { width: 1.7em; height: 1.7em; }
[data-skin="cinnamon"] .w.is-active .nbtn--close { background: var(--cin-accent); }
[data-skin="cinnamon"] .w.is-active .nbtn--close::before { color: var(--cin-accent-ink); }
[data-skin="cinnamon"] .w.is-active.w--native { box-shadow: var(--kde-shadow), 0 0 0 1px var(--cin-rule); }
[data-skin="cinnamon"] .term b, [data-skin="cinnamon"] .term .is-new, [data-skin="cinnamon"] .paste { color: var(--cin-accent); }
[data-skin="cinnamon"] .files__side .is-on { background: color-mix(in oklab, var(--cin-accent) 30%, transparent); }

/* ---------- the Mac, beside the screen while it links ---------- */
/* linking (step 1): the MacBook sits in the lower right, its screen's edge just left of the tray it links to */
.mac { position: absolute; right: 10%; bottom: 9%; z-index: 5; width: min(24%, 380px); opacity: 0; transform: translate(10%, 6%) scale(0.92); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out); pointer-events: none; }
.mac.is-in { opacity: 1; transform: none; }
/* the three ways to reach a Mac (step 5): each is the main character, so each takes the middle */
.mini { position: absolute; right: 50%; top: 26%; z-index: 5; display: block; width: min(20%, 280px); height: auto; overflow: visible; opacity: 0; transform: translate(50%, -6%) scale(0.85); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out); pointer-events: none; filter: drop-shadow(0 12px 16px oklch(5% 0.03 290 / 0.4)); }
.mini.is-in { opacity: 1; transform: translateX(50%); }
.mac.is-center { right: 50%; top: 13%; bottom: auto; width: min(38%, 520px); transform: translate(50%, 6%) scale(0.92); }
.mac.is-center.is-in { transform: translateX(50%); }
/* while the Mac's whereabouts are shown, the other windows step back */
.desk .w { transition: filter 0.5s var(--ease-out); }
.desk.is-dim .w:not([data-app="vm"]) { filter: brightness(0.42) saturate(0.6); }
.mac__waves { position: absolute; left: 50%; top: 40%; }
.mac__waves i { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; box-shadow: 0 0 0 2px var(--color-logo-a); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mac.is-calling .mac__waves i { animation: wave 2.1s var(--ease-out) infinite; }
  .mac.is-calling .mac__waves i:nth-child(2) { animation-delay: 0.7s; }
  .mac.is-calling .mac__waves i:nth-child(3) { animation-delay: 1.4s; }
}
@keyframes wave { from { transform: scale(0.5); opacity: 0.8; } to { transform: scale(3.6); opacity: 0; } }
.laptop { position: relative; container-type: inline-size; filter: drop-shadow(0 22px 30px oklch(10% 0.04 290 / 0.3)); }
.laptop__lid { padding: 3.2% 3.2% 4.2%; border-radius: 4.5cqi 4.5cqi 1.2cqi 1.2cqi; background: var(--mac-bezel); }
.laptop__base { position: relative; width: 112%; height: 4.2cqi; margin-left: -6%; border-radius: 0.6cqi 0.6cqi 5cqi 5cqi; background: linear-gradient(var(--mac-body-a), var(--mac-body-b)); }
.laptop__base::before { content: ""; position: absolute; left: 41%; right: 41%; top: 0; height: 40%; border-radius: 0 0 2cqi 2cqi; background: var(--mac-body-b); }
.macdesk { position: relative; background: radial-gradient(80% 70% at 85% 95%, var(--mac-wall-c), transparent 70%), linear-gradient(140deg, var(--mac-wall-a), var(--mac-wall-b)); color: var(--mac-bar-ink); font-family: var(--font-ui-mac); }
.macscreen { aspect-ratio: 16 / 10.4; overflow: hidden; border-radius: 1.4cqi; font-size: 3.4cqi; line-height: 1.3; }
.macbar { display: flex; align-items: center; gap: 1em; height: 1.9em; padding-inline: 0.9em; background: var(--mac-bar); white-space: nowrap; }
.macbar b { font-weight: 600; }
.macbar__r { display: flex; align-items: center; gap: 0.7em; margin-inline-start: auto; }
.macbar__r svg { width: 1.1em; height: 1.1em; }
.macbar__sf { width: 1.6em; height: auto; }
.macdock { position: absolute; left: 50%; bottom: 0.45em; display: flex; align-items: center; gap: 0.35em; padding: 0.35em; border-radius: 1em; background: var(--mac-dock); box-shadow: inset 0 0 0 1px var(--mac-dock-ring); transform: translateX(-50%); }
.macdock > span { position: relative; display: block; width: 2.6em; height: 2.6em; }
.macdock svg { width: 100%; height: 100%; }
.macdock .is-running::after { content: ""; position: absolute; left: 50%; bottom: -0.3em; width: 0.26em; height: 0.26em; margin-left: -0.13em; border-radius: 50%; background: var(--mac-bar-ink); }
.mwin { position: absolute; left: 50%; top: 15%; width: 70%; border-radius: 0.8em; background: var(--mac-win); color: var(--mac-win-ink); box-shadow: var(--mac-shadow); transform: translateX(-50%); overflow: hidden; }
.mwin__bar { position: relative; display: flex; align-items: center; height: 1.9em; padding-inline: 0.6em; }
.mwin__bar > span:last-child { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: var(--mac-win-muted); }
.mwin__bar .light { width: 0.8em; height: 0.8em; }
.mwin__bar .lights { gap: 0.4em; }
.mwin__body { display: grid; justify-items: center; gap: 0.35em; padding: 0.1em 1em 0.9em; text-align: center; }
.mwin__body b { font-weight: 600; }
.mwin__code { font: 600 2.3em/1 var(--font-ui-mac); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.mwin__body small { min-height: 1.3em; color: var(--mac-win-muted); }
.mwin__body small.is-ok { color: var(--mac-green); font-weight: 600; }

/* the wireless link, from the Mac to Sweeflow in the Linux tray */
.link { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity 0.5s var(--ease-out); }
.link[data-mode="off"] { opacity: 0; }
.link path { fill: none; stroke-linecap: round; }
.link__path { stroke: var(--color-logo-a); stroke-width: 2.5; stroke-dasharray: 0.1 9; }
.link__glow { stroke: var(--color-logo-a); stroke-width: 10; opacity: 0; filter: blur(4px); transition: opacity 0.5s; }
.link[data-mode="on"] .link__path { stroke-dasharray: none; stroke-width: 2; }
.link[data-mode="on"] .link__glow { opacity: 0.35; }
.link circle { fill: var(--color-logo-a); opacity: 0; transition: opacity 0.4s; }
.link[data-mode="on"] circle { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .link[data-mode="search"] .link__path { animation: dash 0.8s linear infinite; } }
@keyframes dash { to { stroke-dashoffset: -9.1; } }
.linklabel { position: absolute; left: 0; top: 0; z-index: 6; padding: 6px 12px; border-radius: var(--radius-pill); background: oklch(14% 0.03 290 / 0.78); color: oklch(97% 0.01 290); font: 500 var(--text-sm)/1 var(--font-display); white-space: nowrap; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.16); pointer-events: none; }
.vmscreen { position: relative; overflow: hidden; font-size: 0.9em; }
.vmscreen .macdock { font-size: 1.4em; }
.flyer { position: fixed; left: 0; top: 0; z-index: var(--z-tooltip); width: 44px; height: 44px; opacity: 0; pointer-events: none; }

/* ---------- sections ---------- */

.install { padding-block: var(--section-gap) var(--section-gap-s); scroll-margin-top: calc(-1 * var(--space-2xl)); }
.install__col { width: 100%; max-width: 920px; margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: var(--space-2xl); }
.install__head { display: grid; gap: var(--space-sm); justify-items: center; text-align: center; }
.install__head h2 { font-size: clamp(2rem, 2.4vw + 1.6vh + 0.3rem, 3.75rem); }
.rows { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--color-rule); }
.rows li { display: grid; grid-template-columns: var(--space-2xl) minmax(0, 3fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: 1px solid var(--color-rule); counter-increment: step; }
.rows li::before { content: counter(step); font: 300 var(--text-3xl)/0.8 var(--font-display); color: var(--color-accent); font-variant-numeric: tabular-nums; }
.rows p { color: var(--color-ink-2); }
.rows h3 { font: 500 var(--text-title)/1.2 var(--font-display); }
.get { display: grid; gap: var(--space-sm); justify-items: start; min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-2); }
.tabs button { min-height: 40px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-muted); font: 500 var(--text-sm)/1 var(--font-display); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.tabs button:hover { color: var(--color-ink); }
.tabs button[aria-selected="true"] { background: var(--color-paper); color: var(--color-ink); box-shadow: 0 1px 3px oklch(20% 0.04 290 / 0.12); }
.tabs button:focus-visible, .copybtn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cmdline { display: flex; align-items: center; gap: var(--space-xs); width: 100%; min-width: 0; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md); border-radius: var(--space-sm); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); }
/* the tabs' panels share one grid cell and carry no box of their own (the box is the .cmdline inside):
 * a hidden one is "until-found", so find-in-page still reaches its command, and app.js then selects its tab */
.panels { display: grid; width: 100%; min-width: 0; }
.panels > [role="tabpanel"] { grid-area: 1 / 1; min-width: 0; }
.panels > [role="tabpanel"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--space-sm); }
.cmdline code { flex: 1; min-width: 0; padding: 0; background: none; overflow-x: auto; scrollbar-width: none; }
.copybtn { flex-shrink: 0; min-height: 40px; padding: 0 var(--space-md); border: 0; border-radius: var(--space-xs); background: var(--color-paper); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-display); cursor: pointer; box-shadow: inset 0 0 0 1px var(--color-rule); }
.copybtn:hover { background: var(--color-paper-3); }
.copybtn.is-done { color: var(--color-success); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn--quiet { min-height: 48px; background: var(--color-paper-2); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-3); }
.btn--mac { min-height: 48px; }

.footer { padding-block: var(--space-3xl) calc(var(--space-3xl) + var(--bottom-nav, 0px)); }
.footer .container { max-width: 920px; }
.footer__letter { display: grid; gap: var(--space-md); justify-items: start; }
.footer__letter > p { max-width: 60ch; }
.footer__brand { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-xs); font: 500 var(--text-xl)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.footer__letter > p { color: var(--color-ink-2); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-md) var(--space-xl); margin-top: var(--space-2xl); padding-top: var(--space-lg); background: linear-gradient(var(--color-rule), var(--color-rule)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.footer__legal p { flex: 1 1 40ch; max-width: 70ch; color: var(--color-muted); font-size: var(--text-sm); }
.footer a { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.footer a:hover { text-decoration-thickness: 2px; }
.footer a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--space-2xs); }

/* the note: everything personal (the ask, the two buttons, the thanks and the signature) is one card written
 * by hand and drawn in crayon. The #crayon filter (wobble + grain) runs over plain outlines; nothing is filled */
.crayon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.note { position: relative; display: grid; gap: var(--space-sm); justify-items: start; max-width: 60ch; margin-block: var(--space-md) var(--space-xs); padding: var(--space-lg) var(--space-xl) var(--space-lg) var(--space-lg); border-radius: 22px 14px 26px 12px / 14px 24px 12px 26px; font: 400 22px/1.35 "Patrick Hand", var(--font-body); color: var(--color-ink); }
.note p { margin: 0; }
.note::before, .note::after { content: ""; position: absolute; pointer-events: none; border-radius: inherit; filter: url(#crayon); }
.note::before { inset: -2px; border: 3px solid var(--color-accent); }
.note::after { inset: 1px -4px -3px 2px; border: 2px solid var(--color-accent); opacity: 0.45; transform: rotate(-0.6deg); }
.doodle { filter: url(#crayon); }
.doodle--spark { position: absolute; top: -18px; right: -14px; width: 36px; height: 36px; fill: none; stroke: oklch(80% 0.16 85); stroke-width: 3.2; stroke-linecap: round; transform: rotate(8deg); }
.note__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); margin-block: var(--space-2xs) var(--space-xs); }
.pill { position: relative; display: inline-flex; align-items: center; gap: 0.35em; padding: 4px 14px; font: inherit; line-height: 1.3; color: var(--color-ink) !important; white-space: nowrap; text-decoration: none !important; }
.pill::before { content: ""; position: absolute; inset: 0; border: 2.5px solid var(--pill); border-radius: 16px 10px 18px 9px / 12px 18px 10px 16px; filter: url(#crayon); pointer-events: none; }
.pill:hover::before { border-width: 3.5px; }
.pill--coffee { --pill: oklch(66% 0.15 50); }
.pill--sponsor { --pill: oklch(64% 0.17 350); }
.pill__icon { width: 1em; height: 1em; fill: currentColor; }
.pill__icon--cup { fill: none; stroke: var(--pill); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: url(#crayon); }
.note__thanks { margin-top: var(--space-sm) !important; }
.note__sign { display: flex; align-items: center; gap: var(--space-xs); }
.note__social { display: inline-flex; }
.note__social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-pill); color: var(--color-ink) !important; }
.note__social a:hover { background: var(--color-paper-2); }
.note__social svg { width: 20px; height: 20px; fill: currentColor; }
.install__slint { color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.install__slint img { display: inline-block; height: 32px; width: auto; margin-left: 0.15em; vertical-align: middle; }
.slint-ondark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .slint-onlight { display: none !important; } :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .slint-ondark { display: inline-block !important; } }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .slint-onlight { display: none !important; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .slint-ondark { display: inline-block !important; }
.install__slint:hover { opacity: 0.8; }

/* ---------- responsive ---------- */
/* phones, upright or on their side: the glass nav at the bottom, in reach of a thumb */
@media (max-width: 48rem), (max-height: 28rem) {
  :root { --bottom-nav: 88px; --gutter: 20px; }
  .nav { inset: auto 0 calc(var(--space-md) + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: var(--space-xs); padding-inline: var(--space-sm); }
  .nav__pill { height: 56px; padding-inline: 8px 6px; gap: 10px; }
  .nav__brand { padding-inline: 2px 0; font-size: var(--text-md); gap: 6px; }
  .nav__brand img { width: 30px; height: 30px; }
  .nav__download { padding: 0 var(--space-sm); font-size: var(--text-sm); }
  .nav__end { height: 56px; gap: 6px; }
  .nav__gh { height: 48px; }
  .nav__gh { padding-inline: 11px; }
  .mode__track { --tw: 82px; --th: 48px; --kn: 40px; }
}
/* phones held upright (narrow and taller than wide): the screen on top, edge to edge and a square at most;
 * then the words; then the play button and steps, down where a thumb reaches them without covering the
 * screen (the words box is as tall as the longest step's, so they don't jump). app.js matches this too. */
@media (max-width: 48rem) and (max-aspect-ratio: 1/1) {
  .scene__pin { grid-template-rows: auto auto auto; align-content: start; gap: 0; padding: 0 0 var(--bottom-nav); }
  .viewport { order: -2; display: block; height: auto; container-type: normal; }
  .monitor { width: 100%; height: min(100vw, calc(100svh - 340px)); aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .stepper { margin-top: var(--space-lg); }
  .stepper__play { width: 44px; padding: 0; }
  .stepper__playlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .words { align-self: start; padding: var(--space-lg) var(--gutter) 0; }
  .words__item { align-content: start; }
  .words h1, .words h2 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); max-width: 13ch; }
  .words h2 { max-width: 16ch; }
  .words p { font-size: var(--text-md); max-width: 34ch; }
  .mac { width: 44%; right: 27%; bottom: 10%; }
  .mac.is-center { width: 62%; top: 12%; bottom: auto; }
  .mini { width: 34%; top: 24%; }
}
/* phones on their side, and any narrow window wider than tall: the screen on the left as tall as fits,
 * the words and the steps on the right, the nav at the bottom */
@media (max-height: 28rem) and (min-aspect-ratio: 4/3), (max-width: 48rem) and (min-aspect-ratio: 1001/1000) {
  :root { --bottom-nav: 80px; }
  .scene__pin { min-height: 0; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-lg); row-gap: var(--space-sm); padding: var(--space-md) max(var(--gutter), env(safe-area-inset-right)) var(--bottom-nav) max(var(--gutter), env(safe-area-inset-left)); }
  .viewport { grid-column: 1; grid-row: 1 / 3; }
  .words { grid-column: 2; grid-row: 1; align-self: end; justify-items: start; text-align: start; }
  .words__item { justify-items: start; align-content: end; }
  .words h1, .words h2 { font-size: clamp(1.35rem, 3.2vw, 2rem); max-width: 18ch; }
  .words p { font-size: var(--text-sm); max-width: 40ch; text-wrap: pretty; }
  .stepper { grid-column: 2; grid-row: 2; justify-self: start; align-self: start; }
  .stepper ol button { width: 38px; height: 38px; }
  .stepper__play { width: 38px; min-height: 38px; padding: 0; }
  .stepper__playlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* side by side but narrow (a small window wider than tall): the steps don't fit beside the screen, so
 * they go across under the screen and the words */
@media (max-width: 48rem) and (min-aspect-ratio: 1001/1000) {
  .viewport { grid-row: 1; }
  .stepper { grid-column: 1 / -1; justify-self: center; }
}
/* the narrowest phones (under 400px): the logo without its name (the link keeps it for screen readers),
 * slightly smaller step buttons and theme switch, so the nav and the steps fit across */
@media (max-width: 25rem) {
  .nav__brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav__brand { padding-inline: 2px 4px; }
  .stepper ol button { width: 38px; height: 38px; }
  .stepper__play { width: 38px; min-height: 38px; }
  .mode__track { --tw: 72px; --th: 42px; --kn: 34px; }
}
@media (max-width: 60rem) {
  .install__col { gap: var(--space-xl); }
  .rows li { grid-template-columns: var(--space-xl) minmax(0, 1fr); }
  .rows li .get { grid-column: 2; }
}
@media (max-width: 40rem) {
  .rows li { grid-template-columns: var(--space-lg) minmax(0, 1fr); gap: var(--space-sm); }
  .tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs button { padding: 0 var(--space-sm); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .mode__knob, .mac, .js .words__item, .liquid { transition: none !important; }
}
