/* Tokens and their rules live in ../DESIGN.md. App replica values mirror Sources/Flightstrip/Theme.swift. */
:root {
  /* Daylight. The page is a bright room, so the app's light UI is at home in it. */
  --canvas: #FBFAF7;
  --tint: #F4F1EA;
  --sheet: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #55555C;
  --ink-3: #6E6E76;
  --rule: rgba(29, 29, 31, .1);
  --wallpaper: radial-gradient(70% 90% at 12% 8%, #FFE3CC 0%, transparent 62%), radial-gradient(70% 90% at 92% 12%, #CFE6F8 0%, transparent 60%), radial-gradient(90% 90% at 70% 100%, #FAD3C0 0%, transparent 60%), radial-gradient(80% 80% at 20% 100%, #DAECE1 0%, transparent 60%), #F6F0E8;
  --back-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 14px 36px rgba(60, 45, 35, .14);

  --needs: #F2A33A;
  --needs-light: #E8930C;
  --working: #6A9BF5;
  --working-light: #3A7CF0;
  --turn: #3DBE84;
  --turn-light: #1E9A62;
  --idle: #77777F;
  --idle-light: #A1A1AA;

  /* The app's light surfaces: it is light by default. */
  --app-surface: #FBFBFC;
  --app-fg: #1D1D1F;
  --app-fg2: #5E5E66;
  --app-fg3: #74747D;
  --app-line: rgba(0, 0, 0, .08);
  --app-hover: rgba(0, 0, 0, .04);
  --app-selected: rgba(0, 0, 0, .065);
  --app-field: rgba(0, 0, 0, .05);
  --app-needs-text: #9A5B00;
  --app-working: #3A7CF0;

  --window-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 30px 80px rgba(60, 45, 35, .26), 0 6px 18px rgba(60, 45, 35, .12);
  --bar: 34px;
  --gutter: clamp(20px, 5vw, 72px);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink-2); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; padding: 0; }
ol { list-style: none; }
h1, h2 { color: var(--ink); font-weight: 650; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.3vw, 60px); letter-spacing: -.028em; }
h3 { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.012em; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--working-light); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 7px; }
.skip:focus { top: 44px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* Menu bar: the site's nav, and the signature element. */
.menubar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar); display: flex; align-items: center; gap: 4px; padding: 0 12px;
  background: rgba(251, 250, 247, .72); -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px);
  border-bottom: .5px solid var(--rule); color: var(--ink); font-size: 13px;
}
.mb-app { display: flex; align-items: center; gap: 8px; padding: 3px 9px; font-weight: 700; text-decoration: none; border-radius: 5px; }
.mark { width: 16px; height: 16px; }
.mb-menus { display: flex; }
.mb-menus a { padding: 3px 9px; border-radius: 5px; text-decoration: none; font-weight: 500; }
.mb-app:hover, .mb-menus a:hover { background: rgba(0, 0, 0, .06); }
.mb-spacer { flex: 1; }
.mb-item { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mb-item:hover, .mb-item[aria-expanded="true"] { background: rgba(0, 0, 0, .07); }
.mb-glyph { width: 17px; height: 17px; fill: none; }
.mb-ring { stroke: rgba(0, 0, 0, .32); stroke-width: 1.9; }
.mb-arc { stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; }
.mb-core { fill: var(--ink); transition: fill .15s; }
.mb-item.has-needs .mb-core { fill: var(--needs-light); }
.mb-count { min-width: 7px; }
.mb-hint { position: absolute; top: calc(var(--bar) + 7px); right: 96px; padding: 4px 10px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.mb-hint::before { content: ""; position: absolute; top: -4px; right: 20px; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }
.mb-hint[hidden] { display: none; }
.mb-clock { padding: 0 8px; font-weight: 450; font-variant-numeric: tabular-nums; white-space: nowrap; }

.popover { position: fixed; z-index: 49; top: calc(var(--bar) + 6px); right: 10px; width: min(380px, calc(100vw - 20px)); max-height: min(600px, calc(100vh - var(--bar) - 20px)); }

/* App replica */
.app-window, .popover {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--app-surface); color: var(--app-fg);
  box-shadow: var(--window-shadow); font: 400 12px/1.32 var(--sans); text-align: left;
}
.popover[hidden] { display: none; }
/* Standard Mac title bars, from ChromeWindow.swift: 38 tall with normal traffic lights. */
.app-title { display: flex; align-items: center; gap: 8px; height: 38px; flex: none; padding: 0 12px 0 14px; background: var(--sheet); border-bottom: 1px solid var(--app-line); font-size: 13.5px; font-weight: 600; }
.lights { display: flex; gap: 8px; margin-right: 14px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.on-top { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--app-fg2); font-size: 12px; font-weight: 400; }
.on-top i { width: 13px; height: 13px; border-radius: 3px; background: var(--app-fg3); position: relative; }
.on-top i::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 3px; height: 7px; border: solid var(--app-surface); border-width: 0 1.5px 1.5px 0; transform: rotate(40deg); }
.app-head { display: flex; align-items: center; gap: 10px; flex: none; padding: 10px 12px 8px; }
.app-name { font-size: 13.5px; font-weight: 600; }
.summary { font-weight: 600; font-size: 12px; color: var(--app-needs-text); }
.summary.calm { color: var(--app-fg3); font-weight: 400; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--app-fg2); font-size: 12px; font-weight: 500; }
.head-tools b { color: var(--app-fg); font-weight: 500; }
.head-tools svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pills { display: flex; gap: 4px; flex: none; padding: 0 10px 10px; border-bottom: 1px solid var(--app-line); }
.pill { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 7px 0 5px; border-radius: 7px; background: var(--app-field); font-size: 11.5px; color: var(--app-fg2); }
.pill b { color: var(--app-fg); font-weight: 650; font-variant-numeric: tabular-nums; }
.pill.zero { opacity: .55; }
.popover .pill { flex: 0 1 auto; }
.app-window .pill { flex: 1; justify-content: center; }
.list { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 0 6px 18px; scrollbar-width: none; -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent); mask-image: linear-gradient(#000 calc(100% - 24px), transparent); }
.list h4 { margin: 0; padding: 10px 8px 4px; font-size: 11.5px; font-weight: 600; color: var(--app-fg3); }
.row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 0 10px; width: 100%; padding: 7px 8px; border-radius: 7px; text-align: left; }
.row:hover { background: var(--app-hover); }
.row.selected { background: var(--app-selected); }
.row-title { font-size: 13px; font-weight: 600; color: var(--app-fg); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row.idle .row-title { font-weight: 500; color: var(--app-fg2); }
.row-age { font-size: 11.5px; color: var(--app-fg3); font-variant-numeric: tabular-nums; }
.row.working .row-age { color: var(--app-working); }
.row-detail { grid-column: 2 / -1; font-size: 13px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row.needs .row-detail { color: var(--app-needs-text); }
.row.working .row-detail { color: var(--app-working); }
.row-meta { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; margin-top: 3px; color: var(--app-fg3); font-size: 12px; white-space: nowrap; min-width: 0; }
.tag { display: inline-block; flex: none; padding: 0 7px; line-height: 17px; border-radius: 9px; font-size: 11.5px; font-weight: 600; color: var(--hue); background: color-mix(in srgb, var(--hue) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 50%, transparent); }
.p-harbor { --hue: #461315; }
.p-tidepool { --hue: #234708; }
.p-lumen { --hue: #170A9D; }
.p-orchard { --hue: #5A6177; }
.p-kiln { --hue: #09762C; }
.p-quarry { --hue: #6F094A; }
.p-fernway { --hue: #B43B14; }
.p-signal { --hue: #6B0DA4; }
.p-atlas { --hue: #0E435D; }
.p-beacon { --hue: #7C620A; }
.glyph { width: 16px; height: 16px; display: block; margin-top: 1px; }
.pill .glyph { width: 13px; height: 13px; margin: 0; }
.spin { transform-origin: 8px 8px; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden-link { flex: none; padding: 8px 14px; border-top: 1px solid var(--app-line); color: var(--app-working); font-size: 12px; }
.pop-foot { display: flex; align-items: center; flex: none; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--app-line); color: var(--app-fg); font-size: 12px; font-weight: 500; }
.pop-foot span:last-child { margin-left: auto; color: var(--app-fg3); font-weight: 400; }

/* Hero: centered type, then the desktop as the focal moment. */
.hero { padding: calc(var(--bar) + clamp(48px, 6vw, 88px)) var(--gutter) clamp(56px, 7vw, 96px); text-align: center; }
h1 { font-size: clamp(46px, 6vw, 92px); font-weight: 700; line-height: 1.02; }
.beat { max-width: 780px; margin: clamp(14px, 1.6vw, 22px) auto 0; font-size: clamp(20px, 1.9vw, 27px); font-weight: 450; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.hero-brand { display: flex; align-items: center; justify-content: center; gap: .2em; }
.hero-icon { display: block; flex: none; width: 1.2em; height: 1.2em; filter: drop-shadow(0 8px 16px rgba(60, 45, 35, .18)); }
.hero-tag { font-size: clamp(25px, 3vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.hero-row { display: grid; justify-items: center; gap: 22px; margin-top: 14px; }
.lede { max-width: 640px; text-wrap: pretty; font-size: clamp(16.5px, 1.25vw, 19px); line-height: 1.5; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-cta .actions { justify-content: center; margin-top: 2px; }
.btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 10px; font-size: 14.5px; font-weight: 550; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-plane, .btn-ink { background: var(--ink); color: #fff; }
.btn-plane:hover, .btn-ink:hover { background: #3A3A40; }
.btn-line, .btn-line-ink { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.btn-line:hover, .btn-line-ink:hover { background: rgba(0, 0, 0, .04); }
.spec { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.spec i { width: 3px; height: 3px; border-radius: 50%; background: #B9B9C0; }
.rush-list { position: absolute; left: 30px; top: 70px; z-index: 21; zoom: .74; width: 312px; height: 520px; }
.rush-list[hidden] { display: none; }
.rush-prompt { position: absolute; left: 50%; top: 260px; z-index: 28; display: flex; flex-direction: column; align-items: center; width: 340px; margin-left: -170px; padding: 22px 20px 20px; border-radius: 22px; background: var(--sheet); box-shadow: var(--window-shadow); color: var(--app-fg); font: 400 13px/1.42 var(--sans); text-align: center; animation: pop .32s cubic-bezier(.2, 1.4, .4, 1); }
.rush-prompt[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.86); } }
.rush-prompt svg { width: 30px; height: 30px; fill: var(--needs-light); }
.rush-prompt strong { margin-top: 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.rush-prompt p { margin: 6px 0 16px; color: var(--app-fg2); }
.rush-prompt span { display: flex; gap: 8px; }
.rush-start { position: absolute; left: 50%; bottom: 20px; z-index: 28; height: 34px; margin-left: -56px; padding: 0 16px; border-radius: 9px; background: var(--app-fg); color: var(--sheet); font-size: 13px; font-weight: 600; box-shadow: 0 10px 28px rgba(60, 45, 35, .3); }
.rush-start[hidden] { display: none; }
.not-started .rush-panel, .not-started .upnext, .not-started .rush-list { display: none !important; }
/* The quick look at the buttons when Rush starts: a strip above the action buttons, as in the app. */
.rc-tour { flex: none; margin-top: auto; padding: 6px 9px 7px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.35; }
.rc-tour b { font-weight: 650; }
.rc-tour span { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.rc-tour small { margin-left: auto; font-size: 11.5px; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.rc-tour button { padding: 1px 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 11.5px; font-weight: 600; }
.rc-tour button:hover { background: rgba(255, 255, 255, .26); }
.rc-tour + .rc-actions { margin-top: 8px; }
.tour-on { position: relative; z-index: 1; box-shadow: 0 0 0 2px var(--needs-light); }
.demo-note { margin-top: 18px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }

/* A small Mac desktop, authored at 1:1 in virtual pixels and zoomed to fit. */
.desk { position: relative; overflow: hidden; max-width: 1320px; margin: clamp(36px, 4vw, 56px) auto 0; border-radius: 26px; background: var(--wallpaper); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 40px 90px -40px rgba(90, 70, 50, .3); text-align: left; }
.desk-rush { aspect-ratio: 1180 / 800; }
.desk-jump { aspect-ratio: 1180 / 720; }
.desk-in { position: absolute; left: 0; top: 0; width: 1180px; height: 100%; zoom: var(--z, 1); }
.desk-rush .desk-in { height: 800px; }
.desk-jump .desk-in { height: 720px; }
.desk-bar { position: absolute; inset: 0 0 auto; z-index: 0; display: flex; align-items: center; justify-content: flex-end; gap: 5px; height: 24px; padding: 0 14px; background: rgba(255, 255, 255, .34); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--ink); font-size: 12px; }
.desk-bar b { font-weight: 500; }
.desk-glyph { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid rgba(0, 0, 0, .5); background: radial-gradient(circle, var(--needs-light) 30%, transparent 34%); }
.jump-label { position: absolute; left: 50%; top: 34px; z-index: 30; display: flex; align-items: center; gap: 6px; max-width: 620px; padding: 7px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap; box-shadow: 0 10px 28px rgba(60, 45, 35, .3); opacity: 0; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s; pointer-events: none; }
.jump-label.on { opacity: 1; transform: translate(-50%, 0); }
.jump-label b { font-weight: 650; }
.jump-label span { margin-left: 6px; padding-left: 12px; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .78); }
@keyframes raise { from { transform: translateY(26px) scale(.965); } }
.mock.raising { animation: raise .34s cubic-bezier(.2, .8, .2, 1); }
.mock:not(.is-front), .other-app { box-shadow: var(--back-shadow); }
.mock:not(.is-front)::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .22); pointer-events: none; }
.row.clicked { animation: rowclick .34s ease-out; }
@keyframes rowclick { 0% { background: rgba(0, 0, 0, .16); } 100% { background: var(--app-selected); } }

/* Bands: canvas, a warm tint, and wallpaper for the two moments that stage the product. */
.band { padding: clamp(72px, 9vw, 136px) 0; }
.tint { background: var(--tint); }
.wall { background: var(--wallpaper); }
.fine { margin-top: 28px; max-width: 760px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.wall .fine { color: var(--ink-2); }
code { font-size: .92em; }

/* States */
.states-lede { margin-top: 18px; max-width: 760px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; }
/* Each state is printed like a paper flight strip: a colored end and ruled fields. */
.state-list { display: grid; gap: 10px; margin-top: clamp(36px, 5vw, 60px); }
.strip { display: grid; grid-template-columns: clamp(52px, 6.4vw, 92px) minmax(0, clamp(200px, 24vw, 320px)) minmax(0, 1fr) 200px; align-items: stretch; overflow: hidden; border-radius: 6px; background: var(--sheet); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 8px 24px rgba(60, 45, 35, .06); }
.strip > * { display: flex; align-items: center; min-width: 0; padding: clamp(14px, 1.8vw, 22px) clamp(14px, 1.8vw, 24px); border-left: 1px solid rgba(0, 0, 0, .1); }
.strip > .sg { justify-content: center; border-left: 0; }
.strip > strong { border-left: 1px dashed rgba(0, 0, 0, .2); }
.strip-needs > .sg { background-color: rgba(232, 147, 12, .14); }
.strip-working > .sg { background-color: rgba(58, 124, 240, .1); }
.strip-turn > .sg { background-color: rgba(30, 154, 98, .11); }
.strip-idle > .sg { background-color: rgba(0, 0, 0, .04); }
.strip strong { font-size: clamp(26px, 2.5vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.strip p { font-size: 15.5px; line-height: 1.42; }
.strip code { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.strip code b { font-weight: 650; color: var(--ink); }
.sg { position: relative; display: block; background-repeat: no-repeat; background-size: clamp(26px, 3.2vw, 44px); background-position: center; }
.sg-needs { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='%23E8930C'/%3E%3Crect x='7.2' y='4' width='1.6' height='5.2' rx='.8' fill='%23fff'/%3E%3Ccircle cx='8' cy='11.4' r='.95' fill='%23fff'/%3E%3C/svg%3E"); }
.sg-working { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.75' fill='none' stroke='%233A7CF0' stroke-opacity='.22' stroke-width='2'/%3E%3C/svg%3E"); }
.sg-working::after { content: ""; position: absolute; left: 50%; top: 50%; width: clamp(26px, 3.2vw, 44px); height: clamp(26px, 3.2vw, 44px); margin: calc(clamp(26px, 3.2vw, 44px) / -2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.25A5.75 5.75 0 0 1 13.75 8' fill='none' stroke='%233A7CF0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; animation: spin 1.1s linear infinite; }
.sg-turn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='%231E9A62'/%3E%3Cpath d='M5.1 8.2 7 10.1l3.9-4' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sg-idle { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.5' fill='none' stroke='%23A1A1AA' stroke-width='1.6'/%3E%3C/svg%3E"); }
.back-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 20px; margin-top: clamp(44px, 6vw, 72px); }
.back-row h3 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }

/* Surfaces */
.surfaces-head { max-width: 820px; margin: 0 auto; text-align: center; }
.surfaces-head p { margin-top: 18px; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.5; }
.preset-tabs { display: flex; width: fit-content; gap: 2px; margin: clamp(28px, 3.4vw, 44px) auto 0; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, .06); }
.preset-tabs button { padding: 6px 15px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.preset-tabs button:hover { color: var(--ink); }
.preset-tabs button[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.screen {
  container-type: inline-size; position: relative; margin-top: 22px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 26px;
  background: var(--wallpaper);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 40px 90px -40px rgba(90, 70, 50, .3);
}
.screen-bar { position: absolute; inset: 0 0 auto; height: 3cqw; background: rgba(255, 255, 255, .34); }
.screen-glyph { position: absolute; right: 21%; top: 50%; width: 1.4cqw; height: 1.4cqw; margin-top: -.7cqw; border-radius: 50%; border: .2cqw solid rgba(0, 0, 0, .5); background: radial-gradient(circle, var(--needs-light) 28%, transparent 32%); }
.screen-win {
  position: absolute; display: flex; flex-direction: column; overflow: hidden; background: var(--app-surface);
  border-radius: 1cqw; box-shadow: var(--window-shadow);
  transition: left .28s cubic-bezier(.2, .7, .2, 1), top .28s cubic-bezier(.2, .7, .2, 1), width .28s cubic-bezier(.2, .7, .2, 1), height .28s cubic-bezier(.2, .7, .2, 1);
}
.screen-win img { width: 100%; }
.screen-live { flex: 1; min-height: 0; zoom: var(--z, 1); border-radius: 0; box-shadow: none; }
.screen-live.is-menu .pill { flex: 0 1 auto; }
.screen-live .row { cursor: pointer; }
/* Wide and Fill screen: one column per state, full of a busy day's sessions. */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1; min-height: 0; }
.board-col { min-width: 0; overflow: hidden; padding: 0 6px 6px; }
.list-head h4 { margin: 0; padding: 10px 8px 4px; font-size: 11.5px; font-weight: 600; color: var(--app-fg3); }
.board-col + .board-col { border-left: 1px solid var(--app-line); }
.is-board .pill { flex: 0 1 auto; }
.screen[data-preset="wide"] ~ .preset-note, .screen[data-preset="fill"] ~ .preset-note { visibility: hidden; }
.preset-caption { margin-top: 18px; font-size: 15px; color: var(--ink); text-align: center; }
.preset-note { margin-top: 2px; font-size: 14px; color: var(--ink-3); text-align: center; }

/* Mock agent windows. Layouts only, modeled on the apps: no real app's name or mark, and only invented sessions. */
.screen-windows, #jump-windows, .rush-windows { position: absolute; inset: 0; }
.screen-windows { width: 1180px; height: 738px; zoom: var(--z, 1); }
.screen-windows, #jump-windows, .rush-windows { isolation: isolate; }
.screen-win { z-index: 5; }
.mock { position: absolute; display: grid; overflow: hidden; border-radius: 11px; background: var(--sheet); box-shadow: var(--window-shadow); color: var(--app-fg); font: 400 12.5px/1.45 var(--sans); }
.mock svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.mock button { color: inherit; }
/* Three windows stacked, so the others peek out behind the front one. */
.mock-a { left: 60px; top: 50px; width: 820px; height: 720px; }
.mock-b { left: 38px; top: 38px; width: 820px; height: 720px; }
.mock-c { left: 16px; top: 62px; width: 820px; height: 720px; }
.desk-jump .mock-a, .desk-jump .mock-b, .desk-jump .mock-c, .screen-windows .mock { height: 650px; }
.desk-jump .mock-a, .screen-windows .mock-a { left: 56px; top: 48px; }
.desk-jump .mock-b, .screen-windows .mock-b { left: 36px; top: 36px; }
.desk-jump .mock-c, .screen-windows .mock-c { left: 16px; top: 58px; }

.mock-a { grid-template-columns: 232px minmax(0, 1fr); }
.mock-b { grid-template-columns: 40px 214px minmax(0, 1fr); grid-template-rows: 34px minmax(0, 1fr); }
.mock-c { grid-template-columns: 240px minmax(0, 1fr); }
#rush-desk .mock { width: 930px; }
.m-side { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; padding: 0 8px; background: #F8F8F9; border-right: 1px solid var(--app-line); }
.m-top { display: flex; align-items: center; gap: 8px; flex: none; height: 38px; color: var(--app-fg3); }
.m-lights { display: flex; gap: 6px; padding: 0 8px 0 4px; }
.m-lights i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.m-lights i:nth-child(2) { background: #FEBC2E; }
.m-lights i:nth-child(3) { background: #28C840; }
.m-seg { display: flex; margin-left: auto; padding: 2px; border-radius: 7px; background: rgba(0, 0, 0, .05); }
.m-seg span { display: flex; padding: 2px 6px; border-radius: 5px; }
.m-seg .on { background: var(--sheet); color: var(--app-fg); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1); }
.m-nav > div { display: flex; align-items: center; gap: 9px; height: 25px; padding: 0 6px; }
.m-group { display: flex; align-items: center; gap: 4px; flex: none; padding: 12px 6px 3px; color: var(--app-fg3); font-size: 11.5px; }
.m-group svg { width: 10px; height: 10px; }
.m-row { display: flex; align-items: center; gap: 8px; flex: none; height: 25px; padding: 0 6px; border-radius: 6px; min-width: 0; }
.m-row > svg { color: var(--app-fg3); }
.m-row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.m-row.is-on { background: rgba(0, 0, 0, .09); font-weight: 500; }
.m-git { display: inline-flex !important; align-items: center; gap: 2px; flex: none; margin-left: auto; font-size: 11px; color: var(--app-fg3); }
.m-git svg { width: 12px; height: 12px; }
.m-git.merged { color: #7A5AD8; }
.m-git.open { color: #1E9A62; }
.m-dot { flex: none; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; }
.m-git + .m-dot { margin-left: 0; }
.m-dot.needs { background: var(--needs-light); }
.m-dot.working { background: var(--working-light); }
.m-foot { display: flex; align-items: center; gap: 6px; flex: none; margin-top: auto; padding: 8px 4px; background: #F8F8F9; }
.m-foot svg { width: 10px; height: 10px; }
.m-foot-end { margin-left: auto; color: var(--app-fg3); }
.m-foot-end svg { width: 14px; height: 14px; }
.m-avatar { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, .08); font-size: 10px; font-weight: 600; }
.m-strip { grid-column: 1 / 3; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: #F1F1F3; color: var(--app-fg3); }
.m-rail { display: flex; flex-direction: column; align-items: center; gap: 13px; padding-top: 10px; background: #F1F1F3; color: var(--app-fg3); }
.m-rail .on { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(0, 0, 0, .07); color: var(--app-fg); }
.m-rail-end { margin-top: auto; margin-bottom: 10px; }
.mock-b .m-side { grid-column: 2; border-left: 1px solid var(--app-line); }
.mock-b .m-main { grid-column: 3; grid-row: 1 / 3; }
.m-side-head { display: flex; align-items: center; gap: 4px; flex: none; height: 34px; padding: 0 6px; font-size: 13.5px; }
.m-side-head b { font-weight: 600; }
.m-side-head > svg { width: 10px; height: 10px; }
.m-side-head .m-tools { color: var(--app-fg3); }
.m-folder { display: flex; align-items: center; gap: 7px; flex: none; padding: 10px 6px 2px; color: var(--app-fg2); }
.m-indent .m-row { padding-left: 27px; }
.m-more { padding: 2px 0 2px 27px; color: var(--app-fg3); }
.m-search { display: flex; align-items: center; gap: 8px; flex: none; height: 28px; padding: 0 6px; color: var(--app-fg2); }
.m-threads { flex: 1; min-height: 0; overflow: hidden; }
.m-thread { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 6px; padding: 7px 8px; border-radius: 7px; }
.m-thread.is-on { background: rgba(0, 0, 0, .08); }
.m-thread-top { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--app-fg3); font-size: 11.5px; }
.m-badge { flex: none; padding: 0 3px; border-radius: 3px; font-size: 9px; font-weight: 700; line-height: 14px; color: var(--hue); background: color-mix(in srgb, var(--hue) 14%, transparent); }
.m-thread-age { font-size: 11px; color: var(--app-fg3); }
.m-input { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--app-needs-text); }
.m-input svg { width: 12px; height: 12px; }
.m-running .glyph { width: 12px; height: 12px; margin: 0; }
.m-thread-title { grid-column: 1 / -1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.m-thread.is-on .m-thread-title { font-weight: 500; }
.m-thread-branch { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--app-fg3); }
.m-thread-branch .m-git { margin-left: 0; }
.m-thread-agent { margin-left: auto; display: flex; }
.m-thread-agent svg { width: 12px; height: 12px; }
.m-settled { display: flex; justify-content: space-between; flex: none; padding: 8px 8px 6px; color: var(--app-fg2); font-size: 11.5px; }
.m-settled span:last-child { display: flex; align-items: center; gap: 4px; color: var(--app-fg3); }
.m-settled svg { width: 10px; height: 10px; }
.m-side-icons { display: flex; align-items: center; gap: 12px; flex: none; padding: 4px 8px 10px; color: var(--app-fg3); }
.m-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.m-title { display: flex; align-items: center; gap: 7px; flex: none; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--app-line); }
.m-title b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.m-title > svg { width: 12px; height: 12px; }
.m-crumb { color: var(--app-fg2); }
.m-crumb-sep { color: var(--app-fg3); }
.m-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; padding-left: 10px; color: var(--app-fg3); }
.m-scroll { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.m-conv { display: flex; flex-direction: column; flex: none; gap: 10px; width: 100%; max-width: 510px; margin: 0 auto; padding: 14px 18px; }
.m-conv p { margin: 0; }
.m-conv > p:not(.m-you) { color: var(--app-fg); }
.m-conv ol { margin: 0; padding-left: 18px; }
.m-conv li { margin-bottom: 3px; }
.m-conv b { font-weight: 600; }
.m-you { align-self: flex-end; max-width: 82%; padding: 7px 12px; border-radius: 13px; background: #F1F1F3; }
.m-activity { display: flex; align-items: center; gap: 4px; color: var(--app-fg3); }
.m-activity svg { width: 9px; height: 9px; }
.m-worked { display: flex; align-items: center; gap: 4px; padding-bottom: 7px; border-bottom: 1px solid var(--app-line); color: var(--app-fg3); }
.m-worked svg { width: 10px; height: 10px; }
.m-live { display: flex; align-items: center; gap: 7px; color: var(--app-working); }
.m-live .glyph { width: 13px; height: 13px; margin: 0; }
.m-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.m-table th, .m-table td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--app-line); text-align: left; font-weight: 400; vertical-align: top; }
.m-table th, .m-table td b { font-weight: 600; }
.m-edits { flex: none; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--app-line); }
.m-edits-head { display: flex; align-items: center; gap: 9px; padding: 7px 10px; }
.m-edits-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #F1F1F3; }
.m-edits-sum { line-height: 1.3; }
.m-edits-btns { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 11.5px; }
.m-edits-btns span { display: flex; align-items: center; gap: 4px; }
.m-edits-btns svg { width: 11px; height: 11px; }
.m-edits-btns .b { padding: 2px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--app-line); }
.m-edits-row { display: flex; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--app-line); font-size: 11.5px; }
.m-path { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--app-fg3); }
.m-path b { font-weight: 400; color: var(--app-fg); }
.m-edits em { margin-left: auto; font-style: normal; font-size: 11px; color: #1E9A62; white-space: nowrap; }
.m-edits-sum em { margin: 0; }
.m-edits em i { font-style: normal; color: #C9372C; }
.m-acts { display: flex; gap: 10px; color: var(--app-fg3); }
.m-acts svg { width: 13px; height: 13px; }
.m-ask { display: flex; align-items: center; gap: 6px; flex: none; padding: 8px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--app-line); }
.m-ask strong { margin-right: auto; font-weight: 600; }
.m-ask span { padding: 2px 9px; border-radius: 6px; background: var(--app-field); font-weight: 550; }
.m-ask .yes { background: var(--app-fg); color: var(--sheet); }
.m-composer { flex: none; width: calc(100% - 36px); max-width: 490px; margin: 0 auto; padding-bottom: 10px; }
.m-box { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 8px 0 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 4px rgba(0, 0, 0, .05); color: var(--app-fg3); }
.m-box.has-reply .m-box-text { color: var(--app-fg); }
.m-box-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.m-box.m-box-tall { display: block; padding: 10px 8px 7px 12px; border-radius: 16px; }
.m-box-tall .m-box-text { display: block; min-height: 22px; }
.m-box-row { display: flex; align-items: center; gap: 9px; margin-top: 6px; font-size: 11.5px; }
.m-approve { display: flex; align-items: center; gap: 4px; }
.m-approve svg { width: 12px; height: 12px; }
.m-end { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--app-fg2); }
.m-end .glyph { width: 12px; height: 12px; margin: 0; }
.m-end > svg { width: 12px; height: 12px; }
.m-dim { color: var(--app-fg3); }
.m-round { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--app-fg); color: var(--sheet) !important; }
.m-round svg { width: 13px; height: 13px; stroke-width: 1.8; }
.m-round:disabled { background: rgba(0, 0, 0, .14); }
button.m-round:not(:disabled):hover { background: #3A3A40; }
.m-under { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 6px 4px 0; font-size: 11px; color: var(--app-fg2); }
.m-under .glyph { width: 12px; height: 12px; margin: 0; }
.m-under-c { justify-content: flex-start; color: var(--app-fg3); }
.m-under-c span { display: flex; align-items: center; gap: 4px; }
.m-under-c svg { width: 11px; height: 11px; }

/* Click a session, land in that thread */
.jump-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px clamp(32px, 6vw, 96px); align-items: end; }
.jump-head p { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.5; }
.jump-list { position: absolute; left: 860px; top: 40px; z-index: 20; width: 304px; height: 660px; border-radius: 12px; }
.jump-cursor { position: absolute; left: 0; top: 0; z-index: 25; width: 18px; height: 24px; fill: #1D1D1F; stroke: #fff; stroke-width: 1.4; transform: translate(780px, 520px); transition: transform .55s cubic-bezier(.3, .7, .2, 1); pointer-events: none; }
.jump-cursor[hidden] { display: none; }
.jump-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 20px; }
.jump-apps { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.jump-apps { color: var(--ink-2); }
.jump-apps span { padding: 3px 11px; border-radius: 7px; background: rgba(0, 0, 0, .06); color: var(--ink-2); font-weight: 550; }
.jump-apps .on { background: var(--ink); color: var(--sheet); }
.jump-status { font-size: 14.5px; color: var(--ink); }

/* Rush */
.rush-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px clamp(32px, 6vw, 96px); align-items: end; }
.rush-head p { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.5; }
.rush-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); margin-top: clamp(40px, 5vw, 72px); }
.rush-loop { counter-reset: loop; }
.rush-loop li { counter-increment: loop; display: grid; grid-template-columns: 52px minmax(0, 1fr); padding: 20px 0; border-top: 1px solid var(--rule); }
.rush-loop li::before { content: counter(loop); grid-row: 1 / span 2; font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rush-loop h3 { font-size: 21px; letter-spacing: -.02em; }
.rush-loop p { margin-top: 4px; font-size: 15.5px; line-height: 1.5; }
.rush-keys > div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--rule); }
.rush-keys dt { color: var(--ink); font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.rush-keys dd { font-size: 15.5px; line-height: 1.45; }
kbd { margin-left: 4px; padding: 1px 5px; border-radius: 5px; background: var(--sheet); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .16), 0 1px 0 rgba(0, 0, 0, .08); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
/* The Rush window, from RushPanel.swift: 620 by 420 with a 220 History column. It floats over the agent apps. */
/* Shown at the scale of a full-size Mac screen, so it reads as the small window it is. */
.rush-panel { position: absolute; left: 690px; top: 58px; z-index: 20; zoom: .74; display: flex; flex-direction: column; width: 620px; height: 300px; overflow: hidden; border-radius: 11px; background: var(--sheet); color: var(--app-fg); box-shadow: var(--window-shadow); font: 400 12.5px/1.42 var(--sans); }
.rc-head { display: flex; align-items: center; gap: 10px; flex: none; height: 38px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--app-line); color: var(--app-fg3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rc-lights { display: flex; flex: none; gap: 8px; margin-right: 8px; }
.rc-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.rc-lights i:nth-child(2) { background: #FEBC2E; }
.rc-lights i:nth-child(3) { background: #28C840; }
.rc-head b { margin-right: auto; color: var(--app-fg); font-size: 12.5px; font-weight: 600; }
.rc-counts { display: flex; gap: 10px; white-space: nowrap; }
.rc-icons { display: flex; gap: 2px; }
.rc-icon { display: grid; place-items: center; width: 22px; height: 20px; border-radius: 5px; color: var(--app-fg2); }
.rc-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.rc-icon:hover { background: var(--app-field); }
.rc-icon.on { background: var(--app-fg); color: var(--sheet); }
.rc-main { display: flex; flex: 1; min-height: 0; }
.rc-current { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 8px 12px 10px; }
.rush-panel .rc-current { min-width: 0; }
.rc-current.fresh { animation: arrive .26s cubic-bezier(.2, .7, .2, 1); }
@keyframes arrive { from { transform: translateX(14px); } }
.rc-state { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--app-fg2); }
.rc-state span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rc-state.needs { font-size: 13px; font-weight: 500; color: var(--app-needs-text); }
.rc-title { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; text-align: left; }
.rc-title:hover, .fb-title:hover { text-decoration: underline; }
.rc-back { display: inline-flex; align-items: center; gap: 3px; padding-left: 8px; }
.rc-back svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rc-hold { display: inline-flex; align-items: center; gap: 4px; padding-left: 9px; }
.rc-hold svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.rc-hold.on, .rc-hold.on:hover { background: var(--app-fg); color: var(--sheet); }
.rc-btn:disabled { opacity: .45; cursor: default; }
.rc-meta { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--app-fg3); font-size: 12px; }
.rc-meta > span { margin-left: 5px; }
.rc-meta .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hue); }
.rc-meta .age { margin-left: auto; }
.rc-actions { display: flex; align-items: center; gap: 6px; flex: none; margin-top: auto; }
.rc-btn { height: 30px; padding: 0 12px; border-radius: 7px; background: var(--app-field); color: var(--app-fg); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rc-btn:hover { background: rgba(0, 0, 0, .1); }
.rc-btn.primary { background: var(--app-fg); color: var(--sheet); }
.rc-btn.primary:hover { background: #3A3A40; }
.rc-btn span { margin-left: 5px; color: var(--app-fg3); font-weight: 400; }
.rc-btn-label { margin-right: 2px; font-weight: 600; }
.rc-hist { flex: none; width: 220px; overflow: hidden; padding: 9px 12px; border-left: 1px solid var(--app-line); background: #F6F6F8; }
.rc-hist h5 { margin: 0 0 7px; color: var(--app-fg3); font-size: 11px; font-weight: 600; }
.rc-hist-empty { color: var(--app-fg3); font-size: 11.5px; }
.rc-hist li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 7px; margin-bottom: 9px; font-size: 12px; line-height: 1.3; }
.rc-hist li b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--app-fg); font-weight: 600; }
.rc-hist li span { color: var(--app-fg3); }
.rc-hist .glyph { width: 14px; height: 14px; }
.rc-foot { display: flex; align-items: center; gap: 12px; flex: none; height: 26px; padding: 0 12px; border-top: 1px solid var(--app-line); color: var(--app-fg3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rc-foot span:last-child { margin-left: auto; }
.rf { flex: 1; overflow: hidden; padding: 8px 14px; }
.rf h5 { margin: 8px 0 4px; color: var(--app-fg3); font-size: 11.5px; font-weight: 600; }
.rf-track { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--app-field); }
.rf-track span { flex: 1; padding: 3px 0; border-radius: 6px; text-align: center; font-size: 12px; color: var(--app-fg2); }
.rf-track .on { background: var(--app-fg); color: var(--sheet); font-weight: 600; }

/* Up Next, from RushUpNext.swift: flat frosted cards, 224 by 72 and 12 apart, right edges in one column. */
.upnext { position: absolute; right: 2px; bottom: 0; z-index: 19; zoom: .74; width: 250px; padding: 8px 14px 14px 12px; }
.upnext[hidden] { display: none; }
.un-plane { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.upnext h5, .un-card, .focus-bar { -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); background: linear-gradient(rgba(255, 255, 255, .84), rgba(255, 255, 255, .64)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 .5px rgba(255, 255, 255, .4), 0 8px 24px rgba(60, 45, 35, .2); }
.upnext h5 { display: flex; align-items: center; height: 18px; margin: 0; padding: 0 9px; border-radius: 9px; font-size: 9.5px; font-weight: 600; letter-spacing: .11em; color: var(--app-fg); }
.un-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; flex: none; width: 224px; height: 72px; padding: 0 13px; border-radius: 16px; color: var(--app-fg); text-align: left; transition: transform .16s ease-out; }
button.un-card:hover { transform: scale(1.04); }
.un-lines { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.un-card b, .un-card em, .un-card small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.2; }
.un-card b { font-size: 13px; font-weight: 600; }
.un-card em { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: 12px; font-weight: 500; color: var(--app-fg2); }
.un-card em i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--hue); }
.un-card small { font-size: 11.5px; color: var(--app-fg3); }
.un-card > .glyph { width: 16px; height: 16px; margin: 0; }

/* Focus mode: the other apps hide and the session's window centers, as in RushTunnel.swift. */
.focus-head { max-width: 860px; margin: 0 auto; text-align: center; }
.focus-head p { margin-top: 18px; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.5; color: var(--ink); }
.focus-toggle { display: inline-flex; align-items: center; gap: 10px; height: 42px; margin-top: 22px; padding: 0 16px 0 9px; border-radius: 21px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 6px 18px rgba(60, 45, 35, .12); color: var(--ink); font-size: 14.5px; font-weight: 550; white-space: nowrap; }
.focus-toggle:hover { background: rgba(255, 255, 255, .92); }
.focus-toggle i { position: relative; width: 38px; height: 24px; border-radius: 12px; background: rgba(0, 0, 0, .18); transition: background .18s; }
.focus-toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s; }
.focus-toggle[aria-pressed="true"] i { background: var(--ink); }
.focus-toggle[aria-pressed="true"] i::after { transform: translateX(14px); }
/* The band is the wallpaper here, so the windows sit directly on it. */
.desk-focus { overflow: visible; background: none; border-radius: 0; box-shadow: none; }
.desk-focus .desk-bar { display: none; }
.wall .fine { margin-left: auto; margin-right: auto; text-align: center; }
.desk-focus .mock-a { left: 16px; top: 62px; }
.desk-focus .mock-b { left: 150px; top: 36px; }
.desk-focus .mock-c { left: 84px; top: 48px; }
.focus-on .mock.raising { animation: none; }
.desk-focus .un-recent { display: none; }
.other-app { position: absolute; z-index: 0; overflow: hidden; border-radius: 11px; background: var(--sheet); box-shadow: var(--window-shadow); color: var(--app-fg); font: 400 12.5px/1.45 var(--sans); }
.oa-browser { left: 690px; top: 34px; width: 476px; height: 300px; }
.oa-notes { left: 880px; top: 400px; width: 286px; height: 280px; }
.oa-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-bottom: 1px solid var(--app-line); }
.oa-bar b { font-weight: 600; }
.oa-url { flex: 1; padding: 2px 10px; border-radius: 7px; background: var(--app-field); color: var(--app-fg2); font-size: 11.5px; text-align: center; }
.oa-body { padding: 12px 14px 12px 240px; }
.oa-notes .oa-body { padding-left: 14px; }
.oa-body h6 { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.oa-body p { margin: 0 0 10px; color: var(--app-fg2); }
.mock, .other-app { transition: opacity .3s, visibility .3s, left .3s, top .3s, width .3s, height .3s; }
/* While Focus is on, the app sits centered between a toolbar and an action strip, from RushFocusBars.swift. */
.focus-on .mock.is-front, #rush-desk.focus-on .mock.is-front { left: 190px; top: 72px; width: 800px; height: 648px; }
.focus-bar { display: none; position: absolute; left: 50%; z-index: 21; zoom: .8; align-items: center; gap: 10px; width: 640px; margin-left: -320px; padding: 0 12px; border-radius: 14px; color: var(--app-fg); font: 400 12px/1.3 var(--sans); }
.focus-on .focus-bar { display: flex; }
.fb-top { top: 41px; height: 40px; }
.fb-bottom { top: 908px; height: 48px; gap: 6px; padding: 0 10px; }
.focus-on:not(.show-window) .rush-panel { display: none; }
.focus-on .rush-panel { top: 120px; }
.not-started .focus-bar { display: none !important; }
.fb-bolt { flex: none; width: 13px; height: 13px; fill: var(--needs-light); }
.fb-title { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.fb-project { display: flex; flex: none; align-items: center; gap: 5px; color: var(--app-fg2); }
.fb-project i { width: 7px; height: 7px; border-radius: 50%; background: var(--hue); }
.fb-count { flex: none; margin-left: auto; color: var(--app-fg2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.fb-nums { margin-left: auto; color: var(--app-fg2); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fb-tour { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; white-space: nowrap; }
.fb-tour b { font-weight: 600; }
.fb-tour > span { overflow: hidden; color: var(--app-fg2); text-overflow: ellipsis; }
.fb-tour .rc-btn { height: 26px; padding: 0 9px; font-size: 12px; }
.fb-x { flex: none; width: 16px; color: var(--app-fg2); font-size: 15px; line-height: 1; }
.focus-on .mock:not(.is-front), .focus-on .other-app { opacity: 0; visibility: hidden; }
.focus-on .desk-bar::before { content: "Focus mode on"; margin-right: auto; font-weight: 600; }

.rush-more { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.rush-filters { padding: clamp(20px, 3vw, 40px); border-radius: 26px; background: var(--wallpaper); }
.rush-filters img { border-radius: 12px; box-shadow: var(--window-shadow); }
.rush-more-copy h3 { margin-top: 26px; font-size: 21px; letter-spacing: -.02em; }
.rush-more-copy h3:first-child { margin-top: 0; }
.rush-more-copy p { margin-top: 5px; font-size: 15.5px; line-height: 1.5; }

/* Activity */
.activity-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px clamp(32px, 6vw, 96px); align-items: end; }
.activity-head p { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.5; }
/* One Activity window with its three views, chosen from these or running on their own. */
.act-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(36px, 4vw, 56px); }
.act-tabs button { position: relative; padding: 14px 0 0; border-top: 2px solid var(--rule); text-align: left; color: var(--ink-3); transition: color .15s, border-color .15s; }
.act-tabs b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.act-tabs span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.45; }
.act-tabs button:hover { color: var(--ink-2); }
.act-tabs button[aria-selected="true"] { border-top-color: var(--ink); color: var(--ink-2); }
.act-tabs button[aria-selected="true"] b { color: var(--ink); }
.shot-window { margin-top: clamp(24px, 3vw, 36px); overflow: hidden; border-radius: 14px; background: var(--sheet); box-shadow: var(--window-shadow); }
.shot-stack { display: grid; }
.shot-stack img { grid-area: 1 / 1; width: 100%; opacity: 0; transition: opacity .25s; }
.shot-stack img.on { opacity: 1; }
.shot-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--app-line); color: var(--app-fg); font-size: 13.5px; }
.shot-bar b { font-weight: 600; }
.shot-seg { display: flex; gap: 2px; padding: 2px; border-radius: 7px; background: var(--app-field); font-size: 12px; font-weight: 500; color: var(--app-fg2); }
.shot-seg span { padding: 2px 10px; border-radius: 5px; }
.shot-seg .on { background: var(--sheet); color: var(--app-fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.privacy-side { position: sticky; top: calc(var(--bar) + 40px); }
.privacy-lede { margin-top: 18px; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.5; }
.paths { width: 100%; border-collapse: collapse; }
.paths tr { border-top: 1px solid var(--rule); }
.paths th { width: 160px; padding: 13px 16px 13px 0; text-align: left; vertical-align: top; color: var(--ink); font-size: 15px; font-weight: 600; }
.paths td { padding: 13px 0; font-size: 14px; color: var(--ink-2); }
.paths code { display: block; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.paths tr:last-child code { display: inline; }
.caveats { margin-top: clamp(32px, 4vw, 48px); }
.caveats > div { padding: 20px 0; border-top: 1px solid var(--rule); }
.caveats h3 { font-size: 21px; letter-spacing: -.02em; }
.caveats p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; }
.caveats code { font-size: .88em; color: var(--ink); overflow-wrap: anywhere; }

/* Install */
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.install-icon { width: 84px; height: 84px; margin-bottom: 20px; }
.install p { margin-top: 16px; color: var(--ink); }
.install-code { overflow: hidden; border-radius: 14px; background: var(--sheet); box-shadow: var(--window-shadow); }
.install-bar { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--app-line); color: var(--app-fg); font-size: 13.5px; font-weight: 600; }
.install-bar button { padding: 2px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--app-fg); background: var(--app-field); }
.install-bar button:hover { background: rgba(0, 0, 0, .1); }
.dl-facts { padding: 6px 20px 10px; }
.dl-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--app-line); font-size: 14.5px; }
.dl-facts div:first-child { border-top: 0; }
.dl-facts dt { color: var(--ink-3); }
.dl-facts dd { color: var(--ink); }
.dl-facts code { font-size: 12.5px; overflow-wrap: anywhere; }
.spec a { color: inherit; text-underline-offset: 2px; }

/* Footer */
.footer { padding: 44px 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }
.footer-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 56px); align-items: start; }
.dots { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dots b { color: var(--ink); font-weight: 650; }


@media (max-width: 1080px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: 64px minmax(0, 1fr); }
  .strip > .sg { grid-row: 1 / span 3; }
  .strip strong, .strip p, .strip code { grid-column: 2; }
  .strip p, .strip code { border-top: 1px solid rgba(0, 0, 0, .08); }
  .strip code { flex-direction: row; gap: 10px; flex-wrap: wrap; }
  .rush-head, .jump-head, .activity-head, .rush-body, .privacy-grid, .rush-more, .install-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .privacy-side { position: static; }
  .rush-more figure { order: 2; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .mb-menus, .mb-clock { display: none; }
  .preset-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  /* The virtual screen is unreadable on a phone: show the window itself. */
  .screen { aspect-ratio: auto; height: auto; background: none; box-shadow: none; overflow: visible; }
  .screen-bar, .mock { display: none; }
  .screen-live { zoom: 1; height: 500px; flex: none; }
  .screen-win { position: static; width: 100% !important; height: auto !important; max-width: 380px; border-radius: 12px; box-shadow: var(--window-shadow); transition: none; }
  .screen[data-preset="wide"] .screen-win, .screen[data-preset="fill"] .screen-win { max-width: none; overflow-x: auto; }
  .screen-live.is-board { min-width: 1000px; }
  /* Narrow: the same cards, full width. */
  .upnext { position: static; width: auto; margin-top: 18px; padding: 0; }
  .un-plane { align-items: stretch; gap: 10px; }
  .upnext h5 { align-self: flex-start; }
  .un-card, button.un-card:hover { width: 100%; background: var(--sheet); transform: none; }
  #focus-desk, .focus-toggle { display: none; }
  .mb-hint { right: 10px; }
  .rc-hist { display: none; }
  .act-tabs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .preset-tabs { width: auto; }
  .rush-filters { padding: 16px; border-radius: 18px; }
  .paths th { display: block; width: auto; padding-bottom: 2px; }
  .paths td { display: block; padding-top: 0; }
  .paths tr { display: block; }
  /* Phones: the windows themselves, without the desktop around them. */
  .desk { aspect-ratio: auto !important; overflow: visible; margin-top: 28px; background: none; box-shadow: none; }
  .desk-in { position: static; width: auto; height: auto !important; zoom: 1; }
  .desk-bar, .mock, .jump-label, .jump-cursor { display: none !important; }
  .rush-panel, .jump-list { position: static; width: 100%; zoom: 1; }
  .upnext { zoom: 1; }
  .rush-prompt, .rush-start, .rush-list, .rc-tour, .focus-bar { display: none !important; }
  .not-started .rush-panel { display: flex !important; }
  .not-started .upnext { display: block !important; }
  .not-started .upnext { display: block !important; }
  .rush-panel { display: flex !important; height: 300px; }
  .jump-list { height: 560px; }
  .rc-hist { display: none; }
  .screen-windows { display: none; }
  .rc-counts span:last-child { display: none; }
  /* Phones have no History column or session list window, so their buttons go too. */
  .rush-panel .rc-icon[data-rush="history"], .rush-panel .rc-icon[data-rush="list"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin, .sg-working::after { animation: none; }
  .rc-current.fresh { animation: none; }
  .rush-prompt { animation: none; }
  .screen-win, .un-card, .jump-label, .jump-cursor, .mock, .other-app, .shot-stack img, .focus-toggle i, .focus-toggle i::after { transition: none; }
}
