@font-face {
  font-family: "Host Grotesk";
  src: url(fonts/host-grotesk.woff2) format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url(fonts/atkinson-hyperlegible-next.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #15110d;
  --text: #efe6da;
  --text-2: #b8ac9d;
  --text-3: #a09484;
  --line: #efe6da2e;
  --line-2: #efe6da66;
  --backdrop: url(images/setup-amber-light.webp);
  --backdrop-2: url(images/setup-amber-dark.webp);
  --dim: linear-gradient(color-mix(in srgb, var(--ground) 40%, transparent) 0 0);
  --win-bg: #1e1d1c;
  --win-fg: #f5f5f7;
  --win-ring: #000;
  --win-edge: #ffffff17;
  --card-bg: #2a2928;
  --card-edge: #ffffff12;
  --card-hover: #ffffff40;
  --sys-blue: #0a84ff;
  --shadow-1: #000;
  --shadow-2: #000c;
  --code-bg: #100e0c;
  --code-fg: #d9cfc2;
  --code-dim: #a09484;
  --amber: #f5821f;
  --amber-ink: #1b1007;
  --ring: #f5821f;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 20px;
  --bar-h: 38px;
  --desk-r: 0px;
  --display: "Host Grotesk", "Helvetica Neue", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Helvetica Neue", sans-serif;
  --mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
:root[data-mode="light"] {
  color-scheme: light;
  --ground: #f5f0e8;
  --text: #1d1813;
  --text-2: #4f463d;
  --text-3: #60564b;
  --line: #1d181329;
  --line-2: #1d18137a;
  --win-bg: #f4f2ef;
  --win-fg: #1d1d1f;
  --win-ring: #00000026;
  --win-edge: #ffffff99;
  --card-bg: #ffffff;
  --card-edge: #0000001a;
  --card-hover: #00000033;
  --sys-blue: #0068da;
  --shadow-1: #4a2d1240;
  --shadow-2: #4a2d1229;
  --code-bg: #fffaf2;
  --code-fg: #3b3229;
  --code-dim: #6f6559;
  --ring: #a3470a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--ground); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body { font: 400 16px/1.55 var(--body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
:where(.brand, .nav a, .more-link, footer a, .skip):focus-visible { border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--amber) 40%, transparent); }
.skip {
  position: absolute; top: 10px; left: var(--gutter); z-index: 100; padding: 10px 14px; border-radius: 8px;
  background: var(--text); color: var(--ground); font: 600 14px/1 var(--display);
  translate: 0 calc(-100% - 20px);
}
.skip:focus-visible { translate: none; }
.page { max-width: calc(1800px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

/* ---------- Top ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 16px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 18px; font-size: 14px; color: var(--text-2); }
.nav a { padding: 10px 0; }
.nav a:hover { color: var(--text); }
.nav .gh { display: none; }
.nav { align-items: center; }
.mode { display: grid; place-items: center; width: 36px; height: 36px; margin: -8px -10px -8px -4px; border-radius: 50%; color: var(--text-2); }
.mode:hover { color: var(--text); background: var(--line); }
.mode svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mode .sun, [data-mode="light"] .mode .moon { display: none; }
[data-mode="light"] .mode .sun { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 34px; }
h1 {
  font: 600 clamp(38px, 10.4vw, 62px)/1.02 var(--display); letter-spacing: -.035em;
  max-width: 12ch;
}
h1 .wide { display: none; }
.lede { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 36ch; }
.get { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 16px;
  background: var(--amber); color: var(--amber-ink); border-radius: 9px;
  font: 600 15.5px/1 var(--display); letter-spacing: -.005em;
  transition: background .15s;
}
.cta:hover { background: #ff9233; }
.cta svg { width: 15px; height: 18px; fill: currentColor; }
.req { font-size: 13.5px; line-height: 1.45; color: var(--text-3); }

/* ---------- The desk: the product, at real scale ---------- */
.desk {
  position: relative; margin: 34px calc(var(--gutter) * -1) 0; height: 260px;
  isolation: isolate; z-index: 10;
}
.wall {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: var(--desk-r); background: #f08a24;
  -webkit-mask-image: radial-gradient(64% 84% at 78% 0%, #0000009e 0%, #00000075 40%, #0000001f 74%, transparent 100%), linear-gradient(#000 55%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(64% 84% at 78% 0%, #0000009e 0%, #00000075 40%, #0000001f 74%, transparent 100%), linear-gradient(#000 55%, transparent);
  mask-composite: intersect;
}
.wall::before, .wall::after { content: ""; position: absolute; inset: -60% -10%; background: var(--backdrop) center / cover; scale: 1.4; }
.wall::after { background-image: var(--backdrop-2); opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .wall::before { animation: grow 44s ease-in-out infinite alternate, turn 69s ease-in-out infinite alternate, wander 57s ease-in-out infinite alternate; }
  .wall::after { animation: grow 44s ease-in-out -22s infinite alternate, turn 69s ease-in-out -35s infinite alternate, wander 57s ease-in-out -28s infinite alternate, fade 25s ease-in-out infinite alternate; }
}
@keyframes grow { from { scale: 1.32; } to { scale: 1.48; } }
@keyframes turn { from { rotate: -12deg; } to { rotate: 12deg; } }
@keyframes wander { from { translate: -6% -6%; } to { translate: 6% 6%; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Theme tokens, from each theme's config.json in Resources/themes */
[data-theme] { --strip-bg: transparent; --strip-edge: none; --strip-radius: 0px; --strip-m: 0px; --w-bg: #242629ee; --w-border: #ffffff1f; --w-shadow: #00000040; --w-glow: none; --w-radius: 9px; --fg: #f5f5f7; --muted: #a1a1a6; --accent: #0a84ff; --accent-text: #ffffff; --ws-off: #a1a1a6; --ws-ind: #0a84ff; --ws-on: #ffffff; --ws-r: 6px; --pop-bg: #242629f5; --pop-border: #ffffff1f; --pop-radius: 9px; --raised: #36383c; --track: #f5f5f726; --bar-font: 500 13px/1 var(--mac); --pop-font: 400 13px/1.3 var(--mac); }
[data-theme] { --tray-tint: color-mix(in srgb, var(--fg) 7%, transparent); --tray-line: color-mix(in srgb, var(--fg) 12%, transparent); --tray-backing: transparent; }
[data-theme="built-in"], [data-theme="rose-pine"] { --tray-backing: #2b2b2b; }
[data-mode="light"] :is([data-theme="built-in"], [data-theme="rose-pine"]) { --tray-backing: #f7f7f7; }
[data-mode="light"] [data-theme] { --w-bg: #f8f8faed; --w-border: #ffffffb3; --w-shadow: #00000014; --fg: #1d1d1f; --muted: #6e6e73; --accent: #007aff; --ws-off: #6e6e73; --ws-ind: #007aff; --pop-bg: #f8f8faf5; --pop-border: #1d1d1f1f; --raised: #ffffff; --track: #1d1d1f26; }
[data-theme="blueprint"] { --strip-bg: #0d2a5eee; --strip-edge: inset 0 0 0 1px #e8f0ff40; --strip-radius: 2px; --w-bg: transparent; --w-border: #e8f0ff40; --w-shadow: transparent; --w-radius: 2px; --fg: #e8f0ff; --muted: #a9bde6; --accent: #ffd23f; --accent-text: #0d2a5e; --ws-off: #a9bde6; --ws-ind: #ffd23f; --ws-on: #e8f0ff; --ws-r: 0px; --pop-bg: #0d2a5eee; --pop-border: #e8f0ff40; --pop-radius: 2px; --raised: #18397a; --track: #e8f0ff33; --bar-font: 400 11px/1 "Menlo", var(--mono); --pop-font: 400 11px/1.3 "Menlo", var(--mono); }
[data-mode="light"] [data-theme="blueprint"] { --strip-bg: #eef2faee; --strip-edge: inset 0 0 0 1px #0b2a5b33; --w-bg: transparent; --w-border: #0b2a5b33; --w-shadow: transparent; --fg: #0b2a5b; --muted: #4a6290; --accent: #1f4fd1; --accent-text: #ffffff; --ws-off: #4a6290; --ws-ind: #1f4fd1; --ws-on: #0b2a5b; --pop-bg: #eef2faee; --pop-border: #0b2a5b33; --raised: #dbe4f5; --track: #0b2a5b26; }
[data-theme="broadsheet"] { --strip-bg: #1b1918ee; --strip-edge: inset 0 -2px 0 #f2e9df; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-radius: 2px; --fg: #f2e9df; --muted: #a69c92; --accent: #ff8fab; --accent-text: #1b1918; --ws-off: #a69c92; --ws-ind: #ff8fab; --ws-on: #ff8fab; --ws-r: 0px; --pop-bg: #1b1918ee; --pop-border: #f2e9df; --pop-radius: 2px; --raised: #2d2a27; --track: #f2e9df26; --bar-font: 400 13px/1 "Georgia", var(--mac); --pop-font: 400 13px/1.3 "Georgia", var(--mac); }
[data-mode="light"] [data-theme="broadsheet"] { --strip-bg: #fff1e5ee; --strip-edge: inset 0 -2px 0 #33302e; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --fg: #33302e; --muted: #6b635c; --accent: #990f3d; --accent-text: #fff1e5; --ws-off: #6b635c; --ws-ind: #990f3d; --ws-on: #990f3d; --pop-bg: #fff1e5ee; --pop-border: #33302e; --raised: #f2dfce; --track: #33302e26; }
[data-theme="brutalist"] { --strip-bg: #000000; --strip-edge: inset 0 -2px 0 #ffffff; --w-bg: #141414; --w-border: #ffffff; --w-shadow: transparent; --w-radius: 0px; --fg: #ffffff; --muted: #a6a6a6; --accent: #ffe600; --accent-text: #000000; --ws-off: #ffffff; --ws-ind: #ffe600; --ws-on: #000000; --ws-r: 0px; --pop-bg: #141414; --pop-border: #ffffff; --pop-radius: 0px; --raised: #2a2a2a; --track: #ffffff33; --bar-font: 700 14px/1 "DIN Alternate", var(--mac); --pop-font: 400 13px/1.3 "DIN Alternate", var(--mac); }
[data-mode="light"] [data-theme="brutalist"] { --strip-bg: #d4d3cd; --strip-edge: inset 0 -2px 0 #000000; --w-bg: #ffffff; --w-border: #000000; --w-shadow: transparent; --fg: #000000; --muted: #4d4d4d; --accent: #002fa7; --accent-text: #ffffff; --ws-off: #000000; --ws-ind: #002fa7; --ws-on: #ffffff; --pop-bg: #ffffff; --pop-border: #000000; --raised: #ebeae4; --track: #00000026; }
[data-theme="catppuccin"] { --strip-bg: #11111bee; --w-bg: #313244; --w-border: transparent; --w-shadow: transparent; --w-radius: 14px; --fg: #cdd6f4; --muted: #a6adc8; --accent: #cba6f7; --accent-text: #1e1e2e; --ws-off: #a6adc8; --ws-ind: #cba6f7; --ws-on: #1e1e2e; --ws-r: 11px; --pop-bg: #1e1e2eee; --pop-border: #cdd6f41f; --pop-radius: 14px; --raised: #45475a; --track: #585b70; }
[data-mode="light"] [data-theme="catppuccin"] { --strip-bg: #dce0e8ee; --w-bg: #eff1f5; --w-border: transparent; --w-shadow: transparent; --fg: #4c4f69; --muted: #6c6f85; --accent: #8839ef; --accent-text: #eff1f5; --ws-off: #6c6f85; --ws-ind: #8839ef; --ws-on: #eff1f5; --pop-bg: #eff1f5ee; --pop-border: #4c4f691f; --raised: #ccd0da; --track: #bcc0cc; }
[data-theme="everforest"] { --strip-bg: #2d353bee; --strip-edge: inset 0 -1px 0 #d3c6aa1f; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-radius: 6px; --fg: #d3c6aa; --muted: #9da9a0; --accent: #a7c080; --accent-text: #2d353b; --ws-off: #9da9a0; --ws-ind: #a7c080; --ws-on: #d3c6aa; --ws-r: 0px; --pop-bg: #2d353bee; --pop-border: #d3c6aa1f; --pop-radius: 6px; --raised: #3d484d; --track: #475258; --bar-font: 400 13px/1 var(--mac); }
[data-mode="light"] [data-theme="everforest"] { --strip-bg: #fdf6e3ee; --strip-edge: inset 0 -1px 0 #5c6a721f; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --fg: #5c6a72; --muted: #667466; --accent: #758501; --accent-text: #fdf6e3; --ws-off: #667466; --ws-ind: #758501; --ws-on: #5c6a72; --pop-bg: #fdf6e3ee; --pop-border: #5c6a721f; --raised: #efebd4; --track: #e6e2cc; }
[data-theme="gruvbox"] { --strip-bg: linear-gradient(180deg, #282828ee 0%, #282828ee 79%, #cc241d 79%, #cc241d 86%, #d65d0e 86%, #d65d0e 93%, #d79921 93%, #d79921 100%); --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-radius: 3px; --fg: #ebdbb2; --muted: #a89984; --accent: #fe8019; --accent-text: #282828; --ws-off: #a89984; --ws-ind: transparent; --ws-on: #fe8019; --ws-r: 0px; --pop-bg: #282828ee; --pop-border: #ebdbb21f; --pop-radius: 3px; --raised: #3c3836; --track: #504945; --bar-font: 400 13px/1 "Rockwell", var(--mac); --pop-font: 400 13px/1.3 "Rockwell", var(--mac); }
[data-mode="light"] [data-theme="gruvbox"] { --strip-bg: linear-gradient(180deg, #fbf1c7ee 0%, #fbf1c7ee 79%, #cc241d 79%, #cc241d 86%, #d65d0e 86%, #d65d0e 93%, #d79921 93%, #d79921 100%); --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --fg: #3c3836; --muted: #7c6f64; --accent: #af3a03; --accent-text: #fbf1c7; --ws-off: #7c6f64; --ws-ind: transparent; --ws-on: #af3a03; --pop-bg: #fbf1c7ee; --pop-border: #3c38361f; --raised: #ebdbb2; --track: #d5c4a1; }
[data-theme="handheld"] { --strip-bg: #0f380f; --strip-edge: inset 0 0 0 2px #306230; --strip-radius: 4px; --strip-m: 4px; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-radius: 0px; --fg: #9bbc0f; --muted: #7a9a12; --accent: #9bbc0f; --accent-text: #0f380f; --ws-off: #7a9a12; --ws-ind: #9bbc0f; --ws-on: #0f380f; --ws-r: 0px; --pop-bg: #0f380f; --pop-border: #9bbc0f; --pop-radius: 0px; --raised: #306230; --track: #306230; --bar-font: 400 11px/1 "Silom", var(--mac); --pop-font: 400 11px/1.3 "Silom", var(--mac); }
[data-mode="light"] [data-theme="handheld"] { --strip-bg: #c4cfa1; --strip-edge: inset 0 0 0 2px #4d533c; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --fg: #1f2716; --muted: #4d533c; --accent: #1f2716; --accent-text: #c4cfa1; --ws-off: #4d533c; --ws-ind: #1f2716; --ws-on: #c4cfa1; --pop-bg: #c4cfa1; --pop-border: #1f2716; --raised: #aeb98c; --track: #8b956d; }
[data-theme="kanagawa"] { --strip-bg: #1f1f28ee; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-radius: 4px; --fg: #dcd7ba; --muted: #938f84; --accent: #c34043; --accent-text: #f2ecbc; --ws-off: #938f84; --ws-ind: #c34043; --ws-on: #f2ecbc; --ws-r: 2px; --pop-bg: #1f1f28ee; --pop-border: #dcd7ba1f; --pop-radius: 4px; --raised: #2a2a37; --track: #363646; --bar-font: 400 13px/1 "Hiragino Mincho ProN", var(--mac); --pop-font: 400 13px/1.3 "Hiragino Mincho ProN", var(--mac); }
[data-mode="light"] [data-theme="kanagawa"] { --strip-bg: #f2ecbcee; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --fg: #545464; --muted: #716e61; --accent: #c84053; --ws-off: #716e61; --ws-ind: #c84053; --pop-bg: #f2ecbcee; --pop-border: #5454641f; --raised: #e5ddb0; --track: #dcd5ac; }
[data-theme="leman"] { --strip-bg: #0f1d21ee; --strip-edge: inset 0 0 0 1px #dcebe81f; --strip-radius: 14px; --strip-m: 6px; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-radius: 10px; --fg: #dcebe8; --muted: #8fb0ad; --accent: #5cc5b8; --accent-text: #0f1d21; --ws-off: #8fb0ad; --ws-ind: #5cc5b829; --ws-on: #5cc5b8; --ws-r: 7px; --pop-bg: #0f1d21ee; --pop-border: #dcebe81f; --pop-radius: 10px; --raised: #1d3238; --track: #dcebe826; --bar-font: 400 13px/1 var(--mac); }
[data-mode="light"] [data-theme="leman"] { --strip-bg: #edf3f2ee; --strip-edge: inset 0 0 0 1px #12343b1f; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --fg: #12343b; --muted: #4d6b70; --accent: #0e7c7b; --accent-text: #ffffff; --ws-off: #4d6b70; --ws-ind: #0e7c7b1f; --ws-on: #0e7c7b; --pop-bg: #edf3f2ee; --pop-border: #12343b1f; --track: #12343b26; }
[data-theme="nord"] { --strip-bg: #2e3440ee; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-radius: 5px; --fg: #eceff4; --muted: #a3acbd; --accent: #88c0d0; --accent-text: #2e3440; --ws-off: #a3acbd; --ws-ind: #88c0d0; --ws-on: #eceff4; --ws-r: 1.5px; --pop-bg: #2e3440ee; --pop-border: #eceff41f; --pop-radius: 8px; --raised: #3b4252; --track: #4c566a; --bar-font: 500 12px/1 "Avenir Next", var(--mac); --pop-font: 400 12px/1.3 "Avenir Next", var(--mac); }
[data-mode="light"] [data-theme="nord"] { --strip-bg: #eceff4ee; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --fg: #2e3440; --muted: #4c566a; --accent: #5e81ac; --accent-text: #eceff4; --ws-off: #4c566a; --ws-ind: #5e81ac; --ws-on: #2e3440; --pop-bg: #eceff4ee; --pop-border: #2e34401f; --raised: #d8dee9; --track: #d8dee9; }
[data-theme="notch"] { --strip-bg: #000000; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-radius: 6px; --muted: #8e8e93; --accent: #64d2ff; --accent-text: #000000; --ws-off: #8e8e93; --ws-ind: transparent; --ws-on: #f5f5f7; --ws-r: 0px; --pop-bg: #000000; --pop-border: #ffffff1a; --pop-radius: 6px; --raised: #1c1c1e; --track: #ffffff26; }
[data-mode="light"] [data-theme="notch"] { --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --fg: #f5f5f7; --muted: #8e8e93; --accent: #64d2ff; --ws-off: #8e8e93; --ws-ind: transparent; --pop-bg: #000000; --pop-border: #ffffff1a; --raised: #1c1c1e; --track: #ffffff26; }
[data-theme="phosphor"] { --strip-bg: #110d06ee; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-glow: 0 0 4px #ffb00080; --w-radius: 0px; --fg: #ffb000; --muted: #b8800c; --accent: #ffcc5c; --accent-text: #110d06; --ws-off: #b8800c; --ws-ind: #ffb000; --ws-on: #110d06; --ws-r: 0px; --pop-bg: #110d06ee; --pop-border: #ffb00059; --pop-radius: 0px; --raised: #2b2009; --track: #ffb00033; --bar-font: 400 12px/1 "Monaco", var(--mono); --pop-font: 400 12px/1.3 "Monaco", var(--mono); }
[data-mode="light"] [data-theme="phosphor"] { --strip-bg: #f6f1e6ee; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-glow: 0 0 4px #00000000; --fg: #5c3a00; --muted: #87683b; --accent: #a86400; --accent-text: #f6f1e6; --ws-off: #87683b; --ws-ind: #5c3a00; --ws-on: #f6f1e6; --pop-bg: #f6f1e6ee; --pop-border: #5c3a0040; --raised: #ebe2cf; --track: #5c3a0026; }
[data-theme="platinum"] { --strip-bg: linear-gradient(180deg, #5e5e5e, #404040); --strip-edge: inset 0 -1px 0 #1a1a1a; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-radius: 0px; --fg: #f2f2f2; --muted: #b8b8b8; --accent: #5b5bd6; --ws-off: #f2f2f2; --ws-ind: linear-gradient(180deg, #2b2b2b, #3f3f3f); --ws-r: 2px; --pop-bg: #4a4a4a; --pop-border: #1a1a1a; --pop-radius: 0px; --raised: #5c5c5c; --track: #2e2e2e; --bar-font: 400 12px/1 "Geneva", var(--mac); --pop-font: 400 12px/1.3 "Geneva", var(--mac); }
[data-mode="light"] [data-theme="platinum"] { --strip-bg: linear-gradient(180deg, #f0f0f0, #d4d4d4); --strip-edge: inset 0 -1px 0 #808080; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --fg: #000000; --muted: #555555; --accent: #3333cc; --ws-off: #000000; --ws-ind: linear-gradient(180deg, #a8a8a8, #cccccc); --pop-bg: #dddddd; --pop-border: #000000; --raised: #eeeeee; --track: #aaaaaa; }
[data-theme="rose-pine"] { --w-bg: #191724ee; --w-border: #e0def41f; --w-shadow: #00000066; --w-radius: 13px; --fg: #e0def4; --muted: #908caa; --accent: #c4a7e7; --accent-text: #191724; --ws-off: #908caa; --ws-ind: #c4a7e7; --ws-on: #191724; --ws-r: 10px; --pop-bg: #191724ee; --pop-border: #e0def41f; --pop-radius: 13px; --raised: #26233a; --track: #403d52; }
[data-mode="light"] [data-theme="rose-pine"] { --w-bg: #faf4edee; --w-border: #5752791f; --w-shadow: #5752791f; --fg: #575279; --muted: #716d8c; --accent: #8a72a4; --accent-text: #faf4ed; --ws-off: #716d8c; --ws-ind: #8a72a4; --ws-on: #faf4ed; --pop-bg: #faf4edee; --pop-border: #5752791f; --raised: #f2e9e1; --track: #dfdad9; }
[data-theme="synthwave"] { --strip-bg: linear-gradient(90deg, #1d0f45, #3f1260, #7a1957); --strip-edge: inset 0 -1px 0 #ff71ce; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-glow: 0 0 5px #ff2a8acc; --w-radius: 6px; --fg: #fff0fc; --muted: #d4a8e8; --accent: #2de2e6; --accent-text: #1d0f45; --ws-off: #d4a8e8; --ws-ind: linear-gradient(90deg, #ff2a8a, #2de2e6); --ws-on: #fff0fc; --ws-r: 0px; --pop-bg: #241040ee; --pop-border: #ff71ce4d; --pop-radius: 10px; --raised: #ffffff1f; --track: #fff0fc33; --bar-font: 500 12px/1 "Futura", var(--mac); --pop-font: 400 12px/1.3 "Futura", var(--mac); }
[data-mode="light"] [data-theme="synthwave"] { --strip-bg: linear-gradient(90deg, #ffd3ec, #e7d7ff, #c9f2ff); --strip-edge: inset 0 -1px 0 #e0218a66; --w-bg: transparent; --w-border: transparent; --w-shadow: transparent; --w-glow: 0 0 5px #ff71ce4d; --fg: #3b1d5e; --muted: #73548f; --accent: #e0218a; --accent-text: #ffffff; --ws-off: #73548f; --ws-ind: linear-gradient(90deg, #e0218a, #00a3c4); --ws-on: #3b1d5e; --pop-bg: #fbe9ffee; --pop-border: #e0218a33; --raised: #ffffffa6; --track: #3b1d5e26; }

/* The dock holds the bar and its popups. It sits at the top of the desk,
   stays at the top of the window once the desk reaches it, and becomes
   the page's header once the desk has scrolled away. */
.dock { position: absolute; top: 0; left: 0; right: 0; height: var(--bar-h); z-index: 30; }
.dock.docked { position: fixed; z-index: 50; --desk-r: 0px; }
.dock::before {
  content: ""; position: absolute; inset: 0 0 calc(var(--strip-m) * -1); z-index: -1;
  background: var(--ground); box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .3s;
}
.dock.header::before { inset: 0 -100vw calc(var(--strip-m) * -1); opacity: 1; }

.bar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--bar-h);
  margin: 0 var(--strip-m); padding: 0 12px; margin-top: calc(var(--strip-m) * .5);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--fg); font: var(--bar-font);
  background: var(--strip-bg); box-shadow: var(--strip-edge);
  border-radius: max(var(--strip-radius), var(--desk-r)) max(var(--strip-radius), var(--desk-r)) var(--strip-radius) var(--strip-radius);
  transition: background .25s, border-radius .25s, margin .25s var(--ease), height .25s var(--ease);
}
.bar .g { display: flex; align-items: center; gap: 6px; min-width: 0; }
.w {
  flex: none; height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 10px; white-space: nowrap;
  background: var(--w-bg); box-shadow: inset 0 0 0 1px var(--w-border), 0 1px 3px var(--w-shadow); border-radius: var(--w-radius);
  text-shadow: var(--w-glow); cursor: default; user-select: none; transition: background .15s, border-radius .25s;
}
.w[data-pop], .w.app, .w.more { cursor: pointer; }
.w[data-pop]:hover, .w.more:hover, .w.open { background: color-mix(in srgb, var(--raised) 92%, transparent); }
.w.over, .w[hidden] { display: none !important; }
.w svg { width: 15px; height: 15px; flex: none; }
.w.apple { padding: 0 9px; font-size: 15px; }
.w.ws { position: relative; padding: 0 3px; gap: 1px; }
.wsi { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: var(--ws-r); color: var(--ws-off); position: relative; cursor: pointer; transition: background .15s, color .25s; }
.wsi.on { color: var(--ws-on); }
.ws-fill .wsi.on { background: var(--ws-ind); }
.ws-under .wsi.on::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: -3px; height: 2px; border-radius: var(--ws-r); background: var(--ws-ind); }
/* On the live bar one highlight slides between workspaces */
.ind { position: absolute; left: 0; top: 3px; width: var(--w); height: 22px; translate: var(--x) 0; border-radius: var(--ws-r); background: var(--ws-ind); transition: translate .3s var(--ease), width .3s var(--ease); }
.ws-under .ind { top: auto; bottom: 0; height: 2px; width: calc(var(--w) - 14px); translate: calc(var(--x) + 7px) 0; }
.ws-text .ind { display: none; }
#bar .wsi.on { background: none; }
#bar .wsi.on::after { content: none; }
/* Workspace app icons, drawn at 14 points with their padding as on the real bar */
.ai { width: 14px; height: 14px; flex: none; pointer-events: none; }
.app .name { font-weight: 700; }
.menus { display: grid; grid-template-columns: 0fr; transition: grid-template-columns .3s var(--ease); }
.menus > span { overflow: hidden; display: flex; gap: 14px; }
.menus > span > :first-child { margin-left: 6px; }
.app.expand .menus { grid-template-columns: 1fr; }
.w.more { padding: 0 9px; letter-spacing: .08em; }
/* Sound: hovering it opens a volume slider before the icon, as on the right of the real bar */
.snd .slide { display: grid; grid-template-columns: 0fr; margin-right: -7px; transition: grid-template-columns .3s var(--ease), margin .3s var(--ease); }
.snd .slide > span { overflow: hidden; display: flex; align-items: center; gap: 7px; }
.snd.expand .slide { grid-template-columns: 1fr; margin-right: 0; }
.snd input {
  appearance: none; width: 72px; height: 4px; margin: 0 2px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(var(--accent) 0 0) 0 / var(--v, 64%) 100% no-repeat, var(--track);
}
.snd input::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px #0000004d, 0 1px 2px #00000059; }
.snd input::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px #0000004d, 0 1px 2px #00000059; }
.snd .pct { min-width: 4ch; text-align: right; }

/* Now playing: artwork, the track and an equalizer, as on the real bar */
.art { width: 16px; height: 16px; flex: none; border-radius: 3px; background: linear-gradient(150deg, #241a5c 0%, #6b2a8c 42%, #e0566a 72%, #f6a04d 100%); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { width: 2px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; scale: 1 .22; transition: scale .35s ease-out; }
@keyframes eq { 0% { scale: 1 .25; } 25% { scale: 1 .85; } 50% { scale: 1 .45; } 75% { scale: 1 1; } 100% { scale: 1 .3; } }
@media (prefers-reduced-motion: no-preference) {
  .eq i { animation: eq 1.56s ease-in-out infinite alternate; }
  .eq i:nth-child(2) { animation-duration: 2.1s; animation-delay: -1.1s; }
  .eq i:nth-child(3) { animation-duration: 1.32s; animation-delay: -.4s; }
  .eq i:nth-child(4) { animation-duration: 1.84s; animation-delay: -1.5s; }
  .paused .eq i { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .eq i { scale: 1 .55; } .eq i:nth-child(2) { scale: 1 1; } .eq i:nth-child(3) { scale: 1 .4; } .eq i:nth-child(4) { scale: 1 .75; }
  .paused .eq i { scale: 1 .22; }
}

/* Header state: the frontmost app becomes StableBar, its menus are the site's
   links, and a download widget joins the right end, as the update widget does. */
.w.site { display: none; }
.header .w.finder, .header .w.ws { display: none; }
.header .w.site { display: flex; }
.site .menus a { color: var(--fg); }
.site .menus a:hover { color: var(--accent); }
.header .site .menus { grid-template-columns: 1fr; transition-delay: .1s; }
@starting-style { .header .site .menus { grid-template-columns: 0fr; } }
.w.dl {
  padding: 0; display: grid; grid-template-columns: 0fr; margin-left: -6px; opacity: 0; visibility: hidden;
  background: var(--amber); box-shadow: none; color: var(--amber-ink); font-weight: 600;
  transition: grid-template-columns .4s var(--ease), margin .4s var(--ease), opacity .3s, visibility 0s .4s;
}
.w.dl > span { overflow: hidden; display: flex; align-items: center; gap: 6px; padding: 0; transition: padding .4s var(--ease); }
.w.dl svg { width: 16px; height: 16px; }
.w.dl:hover { background: #ff9233; }
.header .w.dl { grid-template-columns: 1fr; margin-left: 0; opacity: 1; visibility: visible; transition-delay: 0s; }
.header .w.dl > span { padding: 0 11px 0 8px; }

/* The center position shows only when a widget sits there */
.dock:not(.editing) #gc:not(:has(> .w:not([hidden]))) { display: none; }

/* Edit Bar in Place, drawn as the app draws it: a tray per position, a − badge on each
   widget, + where a widget can be added, and position names while dragging */
.dock.editing { --bar-h: 50px; }
.editing .bar { padding: 0 6px; gap: 8px; }
.editing .bar .g { position: relative; flex: 0 1 auto; min-width: 48px; border-radius: 9px; background: linear-gradient(var(--tray-tint) 0 0) var(--tray-backing); box-shadow: inset 0 0 0 .5px var(--tray-line); transition: background-color .15s, box-shadow .15s; }
.editing .bar .g > .w { display: none; }
.editing .bar .g.target { background-color: color-mix(in srgb, var(--sys-blue) 16%, var(--tray-backing)); box-shadow: inset 0 0 0 2px var(--sys-blue); }
.lane { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 7px; overflow-x: auto; scrollbar-width: none; }
.lane::-webkit-scrollbar { display: none; }
.lane.fl { mask-image: linear-gradient(90deg, transparent, #000 18px); }
.lane.fr { mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); }
.lane.fl.fr { mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.tile { position: relative; flex: none; display: flex; isolation: isolate; border-radius: 5px; cursor: grab; touch-action: none; user-select: none; }
.tile::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 5px; background: var(--fg); opacity: 0; transition: opacity .1s; }
.tile:hover::before { opacity: .08; }
.tile:focus-visible { outline-offset: 2px; }
.tile[hidden] { display: none; }
.tile.lifted { opacity: 0; }
.tile .w { cursor: grab; }
.minus { position: absolute; left: -5px; top: -5px; z-index: 2; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #6e6e73; transition: opacity .15s; }
.minus::before { content: ""; width: 7px; height: 1.8px; border-radius: 1px; background: #fff; }
.add { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; color: var(--fg); border: 1.5px dashed color-mix(in srgb, var(--fg) 55%, transparent); transition: opacity .15s; }
.add svg { width: 12px; height: 12px; }
.add.on { background: var(--sys-blue); border-color: var(--sys-blue); color: #fff; }
.chip { position: absolute; left: 5px; top: -5px; z-index: 3; padding: 1px 4px; border-radius: 99px; font: 700 9px/1.25 var(--mac); color: var(--fg); background: linear-gradient(var(--tray-tint) 0 0) var(--pop-bg); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--fg) 15%, transparent); opacity: 0; transition: opacity .15s; pointer-events: none; }
.g.target .chip { background: var(--sys-blue); color: #fff; }
.dragging .chip { opacity: 1; }
.dragging .minus { opacity: 0; pointer-events: none; }
.dragging .g.target .add { opacity: 0; }
.spacer { width: 16px; padding: 0; background: none; box-shadow: none; }
.tile .spacer { width: auto; padding: 0 5px; color: var(--muted); font: 400 11px/1 var(--mac); }
.tile .spacer::before { content: "Spacer"; }
.ghost { position: fixed; z-index: 200; pointer-events: none; color: var(--fg); font: var(--bar-font); opacity: .9; scale: 1.04; filter: drop-shadow(0 10px 18px #00000059); }
#bar .ws.copy .wsi.on { background: var(--ws-ind); }
.gauge { display: grid; gap: 2px; width: 20px; }
.gauge i { height: 5px; border-radius: 3px; background: linear-gradient(currentColor 0 0) 0 / var(--p) 100% no-repeat, var(--track); }
.gauge i + i { height: 3px; }

/* The panel below the bar: Edit Bar in Place, then a hint, Undo and Done while editing */
.edit-ctl {
  position: absolute; top: calc(100% + 12px); left: calc(var(--strip-m) + 6px); z-index: 5;
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; white-space: nowrap;
  color: var(--win-fg); font: 400 13px/1 var(--mac);
  background: color-mix(in srgb, var(--win-bg) 84%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 0 0 .5px var(--win-ring), inset 0 0 0 1px var(--win-edge), 0 14px 34px -14px var(--shadow-2);
}
.edit-ctl button { height: 22px; padding: 0 8px; border-radius: 5px; background: color-mix(in srgb, var(--win-fg) 12%, transparent); }
[data-mode="light"] .edit-ctl button { background: color-mix(in srgb, var(--win-fg) 7%, transparent); }
.edit-ctl button:hover { background: color-mix(in srgb, var(--win-fg) 18%, transparent); }
.edit-ctl .done, [data-mode="light"] .edit-ctl .done { background: var(--sys-blue); color: #fff; }
.edit-ctl button:disabled { opacity: .45; cursor: default; background: color-mix(in srgb, var(--win-fg) 12%, transparent); }
.edit-ctl .hint { font-size: 11.5px; color: color-mix(in srgb, var(--win-fg) 62%, transparent); }
.editing .edit-ctl { left: 50%; translate: -50% 0; }
.edit-ctl .editing-hint, .edit-ctl .b, .editing .edit-ctl :is(.start, .idle) { display: none; }
.editing .edit-ctl :is(.editing-hint, .b) { display: inline-block; }
.header .edit-ctl, .adding .edit-ctl, .docked:not(.editing) .edit-ctl { display: none; }

/* Add here: built-in widgets and the Store's packages, then a package's review */
.addpop {
  position: absolute; z-index: 7; width: 340px; padding: 14px; border-radius: 12px;
  color: var(--win-fg); font: 400 12px/1.3 var(--mac); background: var(--win-bg);
  box-shadow: 0 0 0 .5px var(--win-ring), inset 0 0 0 1px var(--win-edge), 0 30px 70px -24px var(--shadow-1);
}
.addpop.review { width: 400px; }
.addpop::before { content: ""; position: absolute; top: -6px; left: var(--ax, 24px); width: 12px; height: 12px; rotate: 45deg; background: var(--win-bg); border-radius: 2px 0 0; box-shadow: -1px -1px 0 -.5px var(--win-edge); }
.addpop .t { margin-bottom: 10px; font: 700 10px/1 var(--mac); color: color-mix(in srgb, var(--win-fg) 55%, transparent); letter-spacing: .02em; }
.addpop .find { width: 100%; height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--win-fg) 8%, transparent); color: inherit; font: 400 13px/1 var(--mac); }
.addpop .find:focus-visible { outline: 3px solid color-mix(in srgb, var(--sys-blue) 55%, transparent); outline-offset: 0; }
.addpop .find::placeholder { color: color-mix(in srgb, var(--win-fg) 50%, transparent); }
.addpop .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 296px; margin-top: 10px; overflow-y: auto; overscroll-behavior: contain; }
.addpop .ch { display: flex; align-items: center; gap: 7px; height: 44px; min-width: 0; padding: 0 8px; border-radius: 6px; text-align: left; }
.addpop .ch:hover, .addpop .ch:focus-visible { background: color-mix(in srgb, var(--sys-blue) 18%, transparent); outline: none; }
.addpop .ch .ic { width: 15px; height: 15px; flex: none; margin: 0 1.5px; }
.addpop .ch span { min-width: 0; }
.addpop .ch b { display: block; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addpop .ch small { display: block; margin-top: 1px; font-size: 10px; color: color-mix(in srgb, var(--win-fg) 55%, transparent); }
.addpop .ch .from-store { width: 11px; height: 11px; flex: none; margin-left: auto; }
.addpop .none { padding: 10px 2px 2px; color: color-mix(in srgb, var(--win-fg) 55%, transparent); }
.addpop .back { height: 22px; padding: 0 8px; border-radius: 5px; background: color-mix(in srgb, var(--win-fg) 12%, transparent); }
.addpop h4 { margin-top: 12px; font: 600 15px/1.25 var(--mac); }
.addpop .d { margin-top: 4px; color: color-mix(in srgb, var(--win-fg) 78%, transparent); }
.addpop .m { margin-top: 4px; color: color-mix(in srgb, var(--win-fg) 55%, transparent); }
.addpop .can { list-style: none; margin-top: 12px; padding: 2px 10px; border-radius: 8px; background: color-mix(in srgb, var(--win-fg) 5%, transparent); }
.addpop .can li { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.addpop .can li + li { border-top: 1px solid color-mix(in srgb, var(--win-fg) 8%, transparent); }
.addpop .can svg { width: 14px; height: 14px; flex: none; color: color-mix(in srgb, var(--win-fg) 60%, transparent); }
.addpop .foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: color-mix(in srgb, var(--win-fg) 55%, transparent); font-size: 11px; }
.addpop .go { flex: none; margin-left: auto; height: 26px; padding: 0 12px; border-radius: 6px; background: var(--sys-blue); color: #fff; font-size: 13px; }

/* The bar's context menu, in the system's style */
.ctx {
  position: absolute; z-index: 8; min-width: 190px; padding: 5px; border-radius: 9px;
  color: var(--win-fg); font: 400 13px/1 var(--mac);
  background: color-mix(in srgb, var(--win-bg) 88%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 0 0 .5px var(--win-ring), inset 0 0 0 1px var(--win-edge), 0 12px 30px -10px var(--shadow-2);
}
.ctx button { display: block; width: 100%; padding: 5px 10px; border-radius: 5px; text-align: left; }
.ctx button:hover, .ctx button:focus-visible { background: var(--sys-blue); color: #fff; outline: none; }
.ctx hr { height: 1px; margin: 5px 10px; border: 0; background: color-mix(in srgb, var(--win-fg) 14%, transparent); }

/* Popups and the More widgets menu */
.pop {
  position: absolute; z-index: 6; width: 300px; padding: 12px 14px 11px;
  background: var(--pop-bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--pop-border), 0 24px 60px -24px var(--shadow-2);
  border-radius: var(--pop-radius); font: var(--pop-font);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s, transform .22s var(--ease), visibility 0s .22s;
}
.pop.open { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .22s var(--ease); }
/* The bar's popup is one frame: switching widgets moves and resizes it while the contents cross-fade */
#pop { padding: 0; overflow: hidden; }
#pop.morph { transition: opacity .16s, transform .22s var(--ease), left .28s var(--ease), top .28s var(--ease), width .28s var(--ease), height .28s var(--ease); }
.pane { position: absolute; top: 0; left: 0; width: 300px; padding: 12px 14px 11px; opacity: 0; visibility: hidden; transition: opacity .14s, visibility 0s .14s; }
.pane.on { opacity: 1; visibility: visible; transition: opacity .2s .08s; }
.pop .hd { font-weight: 600; font-size: 13px; margin-bottom: 7px; }
.pop .row { display: grid; grid-template-columns: 58px 1fr; padding: 4px 0; font-variant-numeric: tabular-nums; }
.pop .sep { height: 1px; margin: 8px 0; background: var(--pop-border); }
.pop .kv { display: flex; justify-content: space-between; margin-top: 8px; font-variant-numeric: tabular-nums; }
.pop .meter { height: 4px; border-radius: 2px; margin-top: 6px; background: var(--track); overflow: hidden; }
.pop .meter i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.pop .graph { display: block; width: 100%; height: 44px; margin: 2px 0 4px; }
.pop .graph polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ctl { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; padding: 5px 0; }
.ctl input[type=range] { width: 100%; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.check input { accent-color: var(--accent); width: 14px; height: 14px; }
.seg { display: flex; background: var(--track); border-radius: 7px; padding: 2px; }
.seg button { flex: 1; padding: 4px 0; border-radius: 5px; font: inherit; }
.seg button.on { background: var(--raised); }
.search { width: 100%; margin-top: 8px; padding: 6px 9px; border-radius: 7px; border: 0; background: var(--track); color: var(--fg); font: inherit; }
.search::placeholder { color: var(--muted); }
.apps div { padding: 4px 0; }
.menu { width: 250px; padding: 6px; }
.menu p { color: var(--muted); padding: 6px 8px 4px; font: 500 11.5px/1 var(--mac); }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; text-align: left; font: inherit; }
.menu button:hover, .menu a:hover { background: var(--accent); color: var(--accent-text); }
.pane[data-id="site"] { width: 200px; }
.np-pop .src { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.np-pop .src svg { width: 13px; height: 13px; }
.np-pop .src .go { margin-left: auto; }
.np-pop .now { display: flex; align-items: center; gap: 12px; }
.np-pop .now .art { width: 64px; height: 64px; border-radius: 6px; }
.np-pop .now div { display: grid; gap: 2px; }
.np-pop .now b { font-weight: 600; }
.np-pop .now span { color: var(--muted); }
.np-pop .meter { margin-top: 14px; }
.np-pop .meter i { background: var(--fg); }
.np-pop .times { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: 11px; }
.np-pop .ctrl { display: flex; align-items: center; justify-content: space-between; margin: 6px 6px 8px; }
.np-pop .ctrl button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.np-pop .ctrl svg { width: 15px; height: 15px; }
.np-pop .ctrl .play { width: 40px; height: 40px; background: var(--fg); color: var(--pop-bg); }
.np-pop .play .resume, .paused .np-pop .play .pause { display: none; }
.paused .np-pop .play .resume { display: block; }
.np-pop .vol { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.np-pop .vol input { flex: 1; accent-color: var(--fg); }
.np-pop .vol svg { width: 13px; height: 13px; }
.menu button svg { width: 15px; height: 15px; flex: none; }
.menu button.over-off { display: none; }

/* Windows. On the desk, drag them by the title bar. */
.layer {
  position: absolute; z-index: 4;
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(var(--tilt, 0deg));
}
.win {
  border-radius: 12px; background: var(--win-bg); color: var(--win-fg); font: 400 13px/1.3 var(--mac);
  box-shadow: 0 0 0 .5px var(--win-ring), inset 0 0 0 1px var(--win-edge), 0 40px 90px -30px var(--shadow-1), 0 12px 30px -16px var(--shadow-2);
  transition: box-shadow .2s;
}
.win .tb { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px 10px; }
.win .tb .title { position: absolute; left: 0; right: 0; text-align: center; color: var(--text-3); font-size: 12px; pointer-events: none; }
.layer .tb { cursor: grab; touch-action: none; user-select: none; }
.layer.dragging .tb { cursor: grabbing; }
.layer.dragging .win { box-shadow: 0 0 0 .5px var(--win-ring), inset 0 0 0 1px var(--win-edge), 0 60px 120px -30px var(--shadow-1), 0 20px 44px -16px var(--shadow-2); }
.tl { display: flex; gap: 8px; }
.tl i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.tl i:nth-child(2) { background: #febc2e; } .tl i:nth-child(3) { background: #28c840; }
.theme-layer { left: 16px; bottom: 16px; width: min(358px, calc(100% - 32px)); }
.theme-win .tb b { font-weight: 600; }
.theme-win .tb .save { margin-left: auto; color: var(--sys-blue); font-size: 12.5px; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 206px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 14px 14px; }
.card { min-width: 0; overflow: hidden; padding: 5px 5px 7px; border-radius: 9px; background: var(--card-bg); box-shadow: inset 0 0 0 1px var(--card-edge); text-align: left; transition: box-shadow .15s; }
.card:hover { box-shadow: inset 0 0 0 1px var(--card-hover); }
.card.on { box-shadow: inset 0 0 0 2px var(--sys-blue); }
.card .shot { position: relative; height: 40px; border-radius: 5px; overflow: hidden; background: var(--dim), var(--backdrop) center / cover; }
.card .nm { display: flex; justify-content: space-between; align-items: center; margin: 6px 3px 0; font-size: 12px; font-weight: 600; }
.card .nm svg { width: 12px; height: 12px; stroke: var(--sys-blue); fill: none; stroke-width: 2.2; opacity: 0; }
.card.on .nm svg { opacity: 1; }
.term-layer { display: none; }
.win.term { --win-bg: #100e0c; --win-fg: #d9cfc2; --win-edge: #ffffff17; --text-3: #a09484; }
.term pre { padding: 2px 8px 14px; font: 400 12.5px/1.5 var(--mono); }
.term button { display: block; width: 100%; text-align: left; padding: 3px 8px; border-radius: 5px; font: inherit; white-space: pre; position: relative; }
.term button::after { content: "Run ↵"; content: "Run ↵" / ""; position: absolute; right: 8px; color: var(--amber); font-family: var(--body); font-size: 11.5px; opacity: 0; transition: opacity .15s; }
.term button:hover { background: #f5821f14; }
.term button:hover::after, .term button.ran::after { opacity: 1; }
.term button.ran::after { content: "✓"; content: "✓" / ""; }
.term .p, .term .out { color: var(--text-3); }
.term .out { padding: 0 8px 4px; }

/* Small sample bars in the theme cards and the theme list */
.mini {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 100%;
  font: var(--bar-font); color: var(--fg); text-shadow: var(--w-glow); padding: 0 calc(5px + var(--strip-m) * .5);
}
.mini .strip { position: absolute; inset: 3px calc(3px + var(--strip-m) * .4); background: var(--strip-bg); border-radius: var(--strip-radius); box-shadow: var(--strip-edge); }
.mini .g { display: flex; gap: 4px; position: relative; }
.mini .t { position: relative; background: var(--w-bg); box-shadow: inset 0 0 0 1px var(--w-border), 0 1px 3px var(--w-shadow); border-radius: var(--w-radius); padding: 0 7px; height: 22px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.mini .wsi { height: 16px; padding: 0 6px; cursor: default; }
.card .mini { transform: scale(.52); transform-origin: left center; width: 192%; }

/* ---------- Sections ---------- */
.stop { position: relative; padding: 72px 0 20px; }
.stop.first { padding-top: 96px; }
.stop h2 { margin-bottom: 26px; font: 600 clamp(30px, 7.6vw, 48px)/1.04 var(--display); letter-spacing: -.03em; }
.body p { max-width: 52ch; color: var(--text-2); }
.body p + p { margin-top: 12px; }
.body p strong { color: var(--text); font-weight: 500; }
.more-link { display: inline-block; margin-top: 16px; font-size: 14.5px; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.more-link:hover { border-color: var(--text); }
.more-link.try { margin: 14px 0 6px; }
.try + p { margin-top: 16px; }
.fig { margin-top: 40px; position: relative; }

/* Configure all of it: two groups of specs */
.specs h3 { margin-bottom: 4px; font: 500 13.5px/1.3 var(--body); color: var(--text-3); }
.specs h3 + ul { margin-bottom: 32px; }
.specs ul { list-style: none; border-bottom: 1px solid var(--line); }
.specs li { padding: 11px 0; border-top: 1px solid var(--line); }
.specs b { display: block; font: 600 15px/1.3 var(--display); }
.specs span { font-size: 13.5px; line-height: 1.4; color: var(--text-3); }

/* Popups */
.pops { position: relative; display: grid; gap: 14px; }
.pops .pop { position: relative; opacity: 1; visibility: visible; transform: none; width: auto; max-width: 320px; }

/* Themes: every included theme as a card that restyles the bar */
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.board .card { padding: 6px 6px 9px; background: none; box-shadow: inset 0 0 0 1px var(--line); }
.board .card:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.board .card.on { box-shadow: inset 0 0 0 2px var(--ring); }
.board .card .nm { margin: 8px 3px 0; font: 600 14px/1.3 var(--display); }
.board .card .nm svg { stroke: var(--ring); }
.board .store { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px; color: var(--text-2); font-size: 14px; }
.board .store:hover { color: var(--text); }
.board .store svg { width: 14px; height: 14px; }
.board:not(.all) > :nth-child(n+9) { display: none; }
.show-all { display: block; margin: 18px auto 0; padding: 10px 18px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14.5px; }
.show-all:hover { background: var(--line); }

/* Scripts */
.code { border-radius: 12px; background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.code .fn { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 12px/1.2 var(--mono); color: var(--text-3); }
.code pre { padding: 12px 14px 14px; font: 400 12.5px/1.6 var(--mono); color: var(--code-fg); overflow-x: auto; }
.code pre:focus-visible { outline-offset: -2px; border-radius: 0 0 12px 12px; }
.code .c { color: var(--code-dim); }
.code + .code { margin-top: 12px; }
.result { position: relative; margin: -18px 0 0 auto; width: max-content; z-index: 2; display: flex; gap: 6px; padding: 6px; border-radius: 12px; background: var(--dim), var(--backdrop) center / cover; box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -20px var(--shadow-1); }
.result .w { font: 500 13px/1 var(--mac); color: var(--fg); }
.result .w.new { box-shadow: inset 0 0 0 1px var(--w-border), 0 0 0 2px var(--amber); }

/* The Store: Settings → Packages, as the app draws it */
.body code { font: 400 .92em/1 var(--mono); color: var(--text); }
.store-win .tb { gap: 16px; padding: 12px 14px; border-bottom: 1px solid color-mix(in srgb, var(--win-fg) 9%, transparent); }
.tabs, .kinds { display: flex; padding: 2px; border-radius: 7px; background: color-mix(in srgb, var(--win-fg) 8%, transparent); font-size: 12.5px; }
.tabs span, .kinds span { padding: 4px 10px; border-radius: 5px; color: color-mix(in srgb, var(--win-fg) 80%, transparent); }
.tabs .on, .kinds .on { background: color-mix(in srgb, var(--win-fg) 16%, transparent); color: var(--win-fg); }
.store-win .find { flex: 1; min-width: 0; max-width: 220px; padding: 5px 10px; border-radius: 7px; background: color-mix(in srgb, var(--win-fg) 6%, transparent); color: color-mix(in srgb, var(--win-fg) 50%, transparent); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.kinds { width: max-content; margin: 14px 14px 0; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 14px; }
.pkg { display: flex; flex-direction: column; min-width: 0; padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--win-fg) 4%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--win-fg) 8%, transparent); }
.pkg .pv { display: grid; place-items: center; height: 58px; border-radius: 7px; background: var(--dim), var(--backdrop) center / cover; font: var(--bar-font); color: var(--fg); overflow: hidden; }
.pkg .pv .w { height: 26px; }
.pkg b { margin-top: 10px; font-weight: 600; font-size: 13.5px; }
.pkg p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 12px; line-height: 1.35; color: color-mix(in srgb, var(--win-fg) 62%, transparent); }
.pkg .by { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 11.5px; color: color-mix(in srgb, var(--win-fg) 55%, transparent); }
.pkg .by > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg .pkg-get { height: 24px; padding: 0 12px; border-radius: 6px; background: color-mix(in srgb, var(--win-fg) 12%, transparent); color: var(--win-fg); font-size: 12.5px; }
.pkg .pkg-get:hover { background: color-mix(in srgb, var(--win-fg) 18%, transparent); }
.pkg .state { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.pkg .state svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.store-win { position: relative; }
.store-win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #00000059; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.store-win.sheet::after { opacity: 1; visibility: visible; transition: opacity .2s; }
.pkg-review { z-index: 3; top: 56px; left: 50%; translate: -50% 0; width: min(400px, calc(100% - 24px)); }
.pkg-review::before { content: none; }

/* Displays: two screens, each with its own bar */
.setup { display: grid; gap: 16px; margin: 40px calc(var(--gutter) * -1) 0; }
.cap {
  position: relative; overflow: hidden; height: 300px; border-radius: 12px;
  background: linear-gradient(transparent 45%, #000000a6), var(--dim), var(--backdrop) 50% 40% / cover;
  box-shadow: 0 0 0 .5px var(--win-ring), inset 0 0 0 1px var(--win-edge), 0 40px 90px -30px var(--shadow-1);
}
.cap .bar { transition: none; }
.cap .w { cursor: default; }
.cap .pop { right: 150px; top: 46px; width: 250px; }
.cap figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; font-size: 13.5px; line-height: 1.4; color: #fff; }
.cap figcaption b { font-weight: 600; font-family: var(--display); }
.cap.monitor figcaption { text-align: right; }
.cap.monitor .gl { display: none; }
.cap.monitor .bar { justify-content: flex-end; }
.cap.laptop { height: 220px; border-radius: 14px 14px 6px 6px; background-image: linear-gradient(transparent 45%, #000000a6), var(--dim), var(--backdrop-2); }
.cap.laptop .bar { padding: 0 10px; }
.notch { position: absolute; top: 0; left: 50%; width: 96px; height: 34px; translate: -50% 0; background: #000; border-radius: 0 0 11px 11px; z-index: 1; }

/* ---------- Install ---------- */
.install { position: relative; margin-top: 40px; padding: 88px 0 96px; isolation: isolate; }
.install h2 { font: 600 clamp(40px, 11vw, 88px)/.98 var(--display); letter-spacing: -.04em; max-width: 11ch; }
.install .lede { max-width: 40ch; }
.install .cta { height: 54px; padding: 0 24px 0 20px; font-size: 17px; border-radius: 11px; }
.install .cta svg { width: 17px; height: 20px; }

/* The disk image window, on setup's backdrop: drag StableBar onto Applications */
.desktop { position: relative; isolation: isolate; display: grid; place-items: center; margin: 48px calc(var(--gutter) * -1) 0; padding: 40px 20px; }
.desktop .wall { -webkit-mask-image: linear-gradient(#0009 0 0); mask-image: linear-gradient(#0009 0 0); }
.dmg { width: 100%; max-width: 520px; }
.dmg .stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 24px 18px 18px; }
.slot { justify-self: center; display: grid; justify-items: center; gap: 8px; font-size: 12.5px; }
.slot .ico { width: 84px; height: 84px; display: grid; place-items: center; }
.app-ico { width: 84px; height: 84px; touch-action: none; cursor: grab; user-select: none; -webkit-user-drag: none; position: relative; z-index: 2; transition: transform .45s var(--ease), opacity .3s; }
.app-ico.dragging { cursor: grabbing; transition: none; }
.app-ico.in { opacity: 0; }
.dmg .arrow { display: grid; justify-items: center; gap: 8px; color: var(--text-3); font: 400 12px/1 var(--mono); }
.dmg .arrow svg { width: 72px; height: 14px; stroke: var(--amber); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.folder { width: 80px; height: 64px; transition: transform .25s var(--ease); }
.folder.over { transform: scale(1.08); }
.dmg .foot { padding: 0 18px 16px; text-align: center; color: var(--text-3); font-size: 12.5px; }

footer { padding: 22px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--text-3); }
footer span { flex-basis: 100%; }
footer a:hover { color: var(--text); }

/* Arrival, then sections easing in as they scroll into view */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1, .js .hero .lede, .js .hero .get { opacity: 0; translate: 0 12px; }
  .js .wall { opacity: 0; }
  .js #bar .g > .w:not(.dl) { opacity: 0; translate: 0 -6px; }
  .js .layer { opacity: 0; translate: 0 28px; }
  .arrived .hero h1, .arrived .hero .lede, .arrived .hero .get { opacity: 1; translate: none; transition: opacity .8s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s); }
  .arrived .hero .lede { --d: .08s; }
  .arrived .hero .get { --d: .16s; }
  .arrived .wall { opacity: 1; transition: opacity 1.4s var(--ease) .2s; }
  .arrived #bar .g > .w:not(.dl) { opacity: 1; translate: none; transition: background .15s, border-radius .25s, opacity .5s var(--ease) calc(.4s + var(--i) * 35ms), translate .7s var(--ease) calc(.4s + var(--i) * 35ms); }
  .arrived .layer { opacity: 1; translate: none; transition: opacity .8s var(--ease) var(--d), translate 1.1s var(--ease) var(--d); }
  .arrived .theme-layer { --d: .75s; }
  .arrived .term-layer { --d: .9s; }
  .js .edit-ctl { opacity: 0; }
  .arrived .edit-ctl { opacity: 1; transition: opacity .6s var(--ease) 1s; }

  .js .reveal { opacity: 0; translate: 0 8px; transition: opacity .6s var(--ease), translate .8s var(--ease); }
  .js .reveal.in { opacity: 1; translate: none; }
}

/* Phones: keep the header bar to the essentials */
@media (max-width: 719px) {
  .pops .pop { width: calc(100% - 48px); }
  .pops .p2 { margin-left: 24px; }
  .pops .p3 { margin-left: 48px; }
  .code pre { font-size: 11.5px; }
  #bar .ws .ai, #bar [data-key="app"], #bar [data-key="meeting"], #bar [data-key="system"], #bar [data-key="sound"], #bar [data-key="battery"], #bar .np .track, #bar .clock .day,
  .header [data-key="clock"], .site .menus, .cap.laptop .app, .cap .meeting { display: none; }
  .cap .pop { right: 12px; }
  .edit-ctl, .try { display: none !important; }
  .store-win .find, .pkg:nth-child(n+5) { display: none; }
  .try + p { margin-top: 12px; }
  .theme-layer { width: min(296px, calc(100% - 32px)); }
  .theme-win .tb { gap: 10px; padding: 11px 12px 8px; }
  .theme-win .tl { gap: 6px; }
  .theme-win .tl i { width: 10px; height: 10px; }
  .cards { gap: 6px; max-height: 100px; padding: 2px 10px 10px; }
  .cards .card { padding: 4px 4px 5px; border-radius: 7px; }
  .cards .shot { height: 30px; }
  .cards .mini { transform: scale(.42); width: 238%; }
  .cards .nm { margin-top: 4px; font-size: 11px; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .nav .gh { display: inline; }
  .desk { height: 640px; margin-left: 0; margin-right: 0; --desk-r: 16px; }
  .desktop { margin-left: 0; margin-right: 0; padding: 64px 40px; --desk-r: 16px; }
  .term-layer { display: block; right: 3%; top: 120px; width: 390px; }
  .theme-layer { left: 3%; width: 470px; bottom: 24px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pops { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .setup { margin-left: 0; margin-right: 0; }
  .cap.laptop { height: 260px; }
  .notch { width: 132px; }
  .install { padding-top: 120px; padding-bottom: 128px; }
}
@media (min-width: 1080px) {
  :root { --gutter: 48px; }
  h1 .wide { display: inline; }
  h1 { max-width: none; font-size: clamp(62px, 5.6vw, 84px); }
  .header .w.ws { display: flex; }
  .hero { padding: 64px 0 0; }
  .lede { font-size: 19px; }
  .hero .lede { max-width: none; }
  .desk { height: 680px; margin-top: 56px; }
  .theme-layer { left: 5%; width: 520px; bottom: 40px; }
  .term-layer { right: 4%; top: 300px; width: 410px; }
  .stop { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; padding-top: 160px; }
  .stop.first { padding-top: 120px; }
  .stop h2 { grid-column: 1 / -1; margin-bottom: 36px; }
  .body { grid-column: 1 / 5; }
  .fig { grid-column: 6 / -1; margin-top: 0; }
  .specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .specs h3 + ul { margin-bottom: 0; }
  .pops { display: block; max-width: 715px; height: 470px; margin-left: auto; }
  .pops .pop { position: absolute; width: 290px; }
  .pops .p1 { left: 0; top: 0; z-index: 0; box-shadow: inset 0 0 0 1px var(--pop-border), 0 10px 30px -18px var(--shadow-2); }
  .pops .p2 { left: min(26%, 190px); top: 150px; z-index: 1; }
  .pops .p3 { left: min(58%, 425px); top: 40px; z-index: 2; box-shadow: inset 0 0 0 1px var(--pop-border), 0 40px 90px -30px var(--shadow-1), 0 16px 40px -20px var(--shadow-2); }
  .flip .body { grid-column: 9 / -1; grid-row: 2; }
  .flip .fig { grid-column: 1 / 8; grid-row: 2; }
  .wide .fig { grid-column: 1 / -1; margin-top: 56px; }
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .board .card .shot { height: 50px; }
  .board .card .mini { transform: scale(.75); width: 133.33%; }
  .scripts .code:first-child { margin-right: 16%; }
  .scripts .code + .code { position: relative; margin: -12px 0 0 16%; }
  .result { margin: -22px 8% 0 auto; }
  .setup { grid-column: 1 / -1; justify-self: end; display: block; position: relative; width: min(100%, 1280px); height: 600px; margin-top: 64px; }
  .cap { position: absolute; }
  .cap.monitor { right: 0; top: 0; width: min(940px, 72%); height: 500px; }
  .cap.laptop { left: 0; bottom: 0; width: min(620px, 46%); height: 340px; z-index: 2; }
  .cap.monitor .gl { display: flex; }
  .cap.monitor .bar { justify-content: space-between; }
  .install { padding: 160px 0 150px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; align-items: end; }
  .install .copy { grid-column: 1 / 7; }
  .desktop { grid-column: 7 / -1; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}
