/* Dolly on the web, signed in: /workspace, /account (+ /login, /signup) and /join look like the Dolly Mac app's Home
   window. Everything here is measured from ~/dolly-app/app/src (ui/base.css tokens, home/shell.css the shell,
   home/links.css + workspace.css the pages, home/settings.css the rows) and kept in the app's own class names, so the
   two read as one product. dolly.css (the marketing site) is NOT loaded on these pages.
   Theme: follows the system; the site's switch (localStorage "dolly-theme" = light | dark, set as <html data-theme>)
   overrides it. The dark tokens are written twice (system dark, and data-theme="dark"): keep the two blocks equal. */

/* ------------------------------------------------------------------ tokens: constants */
:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-15: 15px; --fs-17: 17px; --fs-20: 20px; --fs-24: 24px; --fs-30: 30px;
  --fs-sm: var(--fs-12); --fs-md: var(--fs-13);
  --fw-reg: 400; --fw-med: 500; --fw-bold: 600; --fw-display: 650;
  --ls-display: -.04em;
  --r-sheet: 24px; --r-card: 16px; --r-media: 12px; --r-ctl: 10px; --r-ctl-sm: 8px; --r-key: 6px; --r-pill: 999px; --r-sm: 6px;
  --h-sm: 28px; --h-md: 36px; --h-lg: 40px; --h-xl: 44px;
  --t-hover: 120ms; --t-state: 200ms; --t-layout: 320ms;
  --dur-1: var(--t-hover); --dur-2: var(--t-state); --dur-3: var(--t-layout);
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.3, 1.3, .5, 1);
  --accent: #0071e3; --accent-hover: #0062c4; --on-accent: #fff;
  --cream: #f6f1e7;
  /* the shell (home/shell.css) */
  --top: 12px; --side-w: 204px; --rail-w: 68px; --row-x: 14px; --brand-y: 22px;   /* the web has no title bar: a thin band, not the app's 40px */
  --col: 920px; --pad-x: 48px; --pad-t: 36px; --t-move: 260ms;
  --h-ctl: var(--h-lg); --h-tool: var(--h-md); --h-row: 40px;
  --fs-nav: 16px; --fs-tab: 16px; --fs-btn: var(--fs-15); --fs-body: var(--fs-15); --fs-small: var(--fs-13); --fs-title: var(--fs-30);
  --ic: 20px; --ic-stroke: 1.9;
}

/* ------------------------------------------------------------------ tokens: light (warm, airy) */
:root {
  color-scheme: light;
  --canvas: #f3f1ec; --sheet: #fdfdfb; --card: #fdfdfb; --soft: #f5f4f0; --soft-2: #eeece6; --raised: #ffffff;
  --ink: #0d0d0d; --on-ink: #ffffff; --ink-hover: #2b2b2b;
  --card-line: rgba(60, 45, 25, .09); --side-on: rgba(60, 45, 25, .075); --side-hover: rgba(60, 45, 25, .045);
  --bg-sunk: #ebe8e1; --surface-2: #ffffff; --surface-hover: rgba(60, 45, 25, .05); --surface-press: rgba(60, 45, 25, .09);
  --fill: rgba(120, 110, 95, .16); --fill-strong: rgba(120, 110, 95, .3);
  --line: rgba(60, 45, 25, .09); --line-2: rgba(60, 45, 25, .14); --line-3: rgba(60, 45, 25, .22);
  --text: #0d0d0d; --text-2: rgba(13, 13, 13, .68); --text-3: rgba(13, 13, 13, .56); --text-4: rgba(13, 13, 13, .24);
  --accent-text: var(--ink); --accent-soft: rgba(60, 45, 25, .07);
  --ok: #248a3d; --warn: #b25000; --danger: #e0352b; --danger-text: #d70015; --danger-solid: #d70015;
  --btn: #ffffff; --btn-hover: #faf9f6; --btn-press: #f2f0eb; --btn-edge: inset 0 0 0 1px var(--card-line);
  --seg-bed: rgba(120, 110, 95, .12); --seg-on: #fff; --seg-on-edge: 0 1px 2px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .06);
  --thumb: #fff; --thumb-edge: 0 0 0 .5px rgba(0, 0, 0, .14), 0 2px 5px rgba(0, 0, 0, .18);
  --sh-2: 0 4px 14px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .08);
  --sh-3: 0 18px 50px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .1);
  --scrim: rgba(0, 0, 0, .22);
  --tooltip: #0d0d0d; --tooltip-text: #fff;
  --focus: 0 0 0 2px var(--sheet), 0 0 0 4px var(--ink);
  --panel-edge: 0 0 0 1px rgba(80, 60, 30, .045), 0 1px 3px rgba(80, 60, 30, .04), 0 8px 30px -10px rgba(80, 60, 30, .09);
  --mk3: #DCEBFF; --mk2: #8FC0FF;
  --av-l: 38%; --av-a: .13;
  --lk-card: #fff; --lk-card-edge: 0 0 0 .5px rgba(0, 0, 0, .09), 0 1px 2px rgba(0, 0, 0, .04); --lk-well: #f3f3f5;
  /* a macOS menu (NSMenu on Tahoe): frosted, a hairline, a soft drop */
  --menu-bg: rgba(248, 247, 245, .82);
  --menu-edge: 0 0 0 .5px rgba(0, 0, 0, .14), inset 0 .5px 0 rgba(255, 255, 255, .7);
  --menu-drop: 0 12px 32px -8px rgba(0, 0, 0, .22), 0 3px 10px rgba(0, 0, 0, .08);
  --menu-sep: rgba(0, 0, 0, .1);
  /* Dolly Cloud (research/brand/dolly-cloud.md): more of the blue, no colour of its own */
  --cloud-blue: #0071e3; --cloud-tint: #e8f1fd; --cloud-tint-hover: #dbe9fc;
}
/* dark (warm, deep): the system says dark and the site's switch didn't say light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #121110; --sheet: #1b1a18; --card: #201f1d; --soft: #232220; --soft-2: #2a2926; --raised: #262522;
    --ink: #f5f5f7; --on-ink: #0d0d0d; --ink-hover: #ffffff;
    --card-line: rgba(255, 245, 230, .08); --side-on: rgba(255, 245, 230, .075); --side-hover: rgba(255, 245, 230, .045);
    --bg-sunk: #0e0d0c; --surface-2: #262522; --surface-hover: rgba(255, 245, 230, .06); --surface-press: rgba(255, 245, 230, .1);
    --fill: rgba(128, 124, 116, .24); --fill-strong: rgba(128, 124, 116, .38);
    --line: rgba(255, 245, 230, .08); --line-2: rgba(255, 245, 230, .13); --line-3: rgba(255, 245, 230, .2);
    --text: #f5f5f7; --text-2: rgba(240, 238, 235, .68); --text-3: rgba(240, 238, 235, .52); --text-4: rgba(240, 238, 235, .22);
    --accent-soft: rgba(255, 245, 230, .1);
    --ok: #30d158; --warn: #ffb340; --danger: #ff453a; --danger-text: #ff6961; --danger-solid: #d42a21;
    --btn: #2a2926; --btn-hover: #312f2c; --btn-press: #383633; --btn-edge: inset 0 0 0 1px var(--card-line);
    --seg-bed: rgba(128, 124, 116, .2); --seg-on: #3d3b37; --seg-on-edge: 0 1px 2px rgba(0, 0, 0, .3), inset 0 .5px 0 rgba(255, 255, 255, .08);
    --thumb-edge: 0 0 0 .5px rgba(0, 0, 0, .25), 0 2px 5px rgba(0, 0, 0, .35);
    --sh-2: 0 4px 14px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .5);
    --sh-3: 0 18px 50px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(0, 0, 0, .6);
    --scrim: rgba(0, 0, 0, .5);
    --tooltip: #f5f5f7; --tooltip-text: #0d0d0d;
    --panel-edge: 0 0 0 1px rgba(255, 245, 230, .055), 0 1px 0 rgba(255, 245, 230, .03) inset, 0 10px 34px -12px rgba(0, 0, 0, .7);
    --mk3: #16365f; --mk2: #2a64b0;
    --av-l: 74%; --av-a: .2;
    --lk-card: rgba(255, 255, 255, .045); --lk-card-edge: inset 0 0 0 1px var(--line); --lk-well: rgba(0, 0, 0, .22);
    --menu-bg: rgba(44, 43, 41, .84);
    --menu-edge: 0 0 0 .5px rgba(0, 0, 0, .7), inset 0 0 0 .5px rgba(255, 255, 255, .13);
    --menu-drop: 0 14px 36px -8px rgba(0, 0, 0, .6), 0 3px 10px rgba(0, 0, 0, .3);
    --menu-sep: rgba(255, 255, 255, .1);
    --cloud-blue: #5aa8ff; --cloud-tint: rgba(90, 168, 255, .16); --cloud-tint-hover: rgba(90, 168, 255, .24);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #121110; --sheet: #1b1a18; --card: #201f1d; --soft: #232220; --soft-2: #2a2926; --raised: #262522;
  --ink: #f5f5f7; --on-ink: #0d0d0d; --ink-hover: #ffffff;
  --card-line: rgba(255, 245, 230, .08); --side-on: rgba(255, 245, 230, .075); --side-hover: rgba(255, 245, 230, .045);
  --bg-sunk: #0e0d0c; --surface-2: #262522; --surface-hover: rgba(255, 245, 230, .06); --surface-press: rgba(255, 245, 230, .1);
  --fill: rgba(128, 124, 116, .24); --fill-strong: rgba(128, 124, 116, .38);
  --line: rgba(255, 245, 230, .08); --line-2: rgba(255, 245, 230, .13); --line-3: rgba(255, 245, 230, .2);
  --text: #f5f5f7; --text-2: rgba(240, 238, 235, .68); --text-3: rgba(240, 238, 235, .52); --text-4: rgba(240, 238, 235, .22);
  --accent-soft: rgba(255, 245, 230, .1);
  --ok: #30d158; --warn: #ffb340; --danger: #ff453a; --danger-text: #ff6961; --danger-solid: #d42a21;
  --btn: #2a2926; --btn-hover: #312f2c; --btn-press: #383633; --btn-edge: inset 0 0 0 1px var(--card-line);
  --seg-bed: rgba(128, 124, 116, .2); --seg-on: #3d3b37; --seg-on-edge: 0 1px 2px rgba(0, 0, 0, .3), inset 0 .5px 0 rgba(255, 255, 255, .08);
  --thumb-edge: 0 0 0 .5px rgba(0, 0, 0, .25), 0 2px 5px rgba(0, 0, 0, .35);
  --sh-2: 0 4px 14px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .5);
  --sh-3: 0 18px 50px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(0, 0, 0, .6);
  --scrim: rgba(0, 0, 0, .5);
  --tooltip: #f5f5f7; --tooltip-text: #0d0d0d;
  --panel-edge: 0 0 0 1px rgba(255, 245, 230, .055), 0 1px 0 rgba(255, 245, 230, .03) inset, 0 10px 34px -12px rgba(0, 0, 0, .7);
  --mk3: #16365f; --mk2: #2a64b0;
  --av-l: 74%; --av-a: .2;
  --lk-card: rgba(255, 255, 255, .045); --lk-card-edge: inset 0 0 0 1px var(--line); --lk-well: rgba(0, 0, 0, .22);
  --menu-bg: rgba(44, 43, 41, .84);
  --menu-edge: 0 0 0 .5px rgba(0, 0, 0, .7), inset 0 0 0 .5px rgba(255, 255, 255, .13);
  --menu-drop: 0 14px 36px -8px rgba(0, 0, 0, .6), 0 3px 10px rgba(0, 0, 0, .3);
  --menu-sep: rgba(255, 255, 255, .1);
  --cloud-blue: #5aa8ff; --cloud-tint: rgba(90, 168, 255, .16); --cloud-tint-hover: rgba(90, 168, 255, .24);
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--canvas); color: var(--text); font: var(--fs-md)/1.4 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss03"; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; flex: none; }
img, video { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.grow { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* line icons: one optical weight at every size (ui/base.css) */
svg[stroke="currentColor"] { stroke-width: var(--icon-stroke, 1.5); }
svg[stroke="currentColor"] *, svg [stroke="currentColor"] { vector-effect: non-scaling-stroke; }
::-webkit-scrollbar { width: 11px; height: 11px; background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
:hover::-webkit-scrollbar-thumb { background-color: var(--fill-strong); }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }

/* ------------------------------------------------------------------ the shell: the canvas, the sidebar on it, one sheet */
.top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; height: var(--top); pointer-events: none; }
.top > * { pointer-events: auto; }
.sidetog { position: absolute; z-index: 6; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2);
  left: calc(var(--side-w) - var(--row-x) - 34px); top: calc(var(--brand-y) + 6px);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease), transform 160ms var(--ease-out); }
.sidetog:hover { background: var(--side-hover); color: var(--text); }
.sidetog:active { transform: scale(.92); transition-duration: 90ms; }
.sidetog svg { width: 20px; height: 20px; }
.sidetog .stg-pane { opacity: .16; transform-origin: 3.5px 10px; transition: opacity var(--t-move) var(--ease-out), transform var(--t-move) var(--ease-out); }
.sidetog .stg-div { transition: transform var(--t-move) var(--ease-out); }
.sidetog:hover .stg-pane { opacity: .24; }
body.folded .sidetog { display: none; }
.mbrand { display: none; }

.app { position: fixed; inset: 0; display: flex; overflow: clip; }
@property --sw { syntax: "<length>"; inherits: true; initial-value: 204px; }
.side { --sw: var(--side-w); position: relative; z-index: 4; flex: none; width: var(--sw); height: 100%; display: flex; flex-direction: column; padding: var(--brand-y) 0 6px; overflow: clip; background: var(--canvas);
  transition: --sw var(--t-move) var(--ease-out); }
.side > * { margin-left: var(--row-x); width: calc(var(--sw) - 2 * var(--row-x)); flex: none; }
.side > .promo { width: calc(var(--side-w) - 2 * var(--row-x)); }
.side > .grow { flex: 1; }
.brand { display: flex; align-items: center; gap: 10px; height: var(--h-row); padding-left: 8px; margin-bottom: 8px; overflow: hidden; line-height: 0; border-radius: var(--r-ctl); position: relative; }
.brand .mark { flex: none; width: 24px; height: auto; display: block; }
.brand .mk3 { fill: var(--mk3); } .brand .mk2 { fill: var(--mk2); }
.brand .bn { font: 650 20px/1 var(--font-display); letter-spacing: -.03em; color: var(--text); transition: opacity var(--t-move) var(--ease); }
.nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.ni { position: relative; overflow: hidden; height: var(--h-row); display: flex; align-items: center; gap: 12px; padding: 0 10px; border-radius: var(--r-ctl); color: var(--ink); font-size: var(--fs-nav); font-weight: var(--fw-med); letter-spacing: -.011em; white-space: nowrap; text-align: left; cursor: default;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.ni .ic { flex: none; width: 20px; height: 20px; display: grid; place-items: center; color: var(--ink); }
.ni .ic svg { width: var(--ic); height: var(--ic); --icon-stroke: var(--ic-stroke); }
.ni .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: opacity var(--t-move) var(--ease); }
.ni:hover { background: var(--side-hover); }
.ni.on, .ni.on:hover { background: var(--side-on); }
.ni .n { color: var(--text-3); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; transition: opacity var(--t-move) var(--ease); }
.ni .n:empty { display: none; }
.ni:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.nav.foot { margin-top: 14px; }

/* the small promo card (the launch gift): a sticker, a line */
.promo { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 12px 12px 16px; border-radius: var(--r-card); background: var(--soft-2); overflow: hidden;
  transition: opacity var(--t-move) var(--ease), visibility var(--t-move), background var(--dur-2) var(--ease); }
.promo:hover { background: var(--soft); }
.promo .pt { flex: 1; min-width: 0; }
.promo b { display: block; font: var(--fw-med) 14px/1.25 var(--font); letter-spacing: -.006em; }
.promo small { display: block; margin-top: 2px; color: var(--text-3); font-size: 13px; }
.promo .stk { flex: none; margin: -6px -2px -10px 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)) drop-shadow(0 6px 10px rgba(0, 0, 0, .14)); }

/* you: a row like the others (avatar in the icon's place), the plan on the right */
.me { position: relative; display: flex; align-items: center; margin-top: 2px; }
.acct { flex: 1; min-width: 0; overflow: hidden; height: var(--h-row); display: flex; align-items: center; gap: 10px; padding: 0 8px; border-radius: var(--r-ctl); text-align: left; transition: background var(--dur-2) var(--ease); }
.acct:hover, .acct[aria-expanded="true"] { background: var(--side-hover); }
.acct .av0 { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 650 12px/1 var(--font-display); }
.acct .who { min-width: 0; display: flex; flex-direction: column; transition: opacity var(--t-move) var(--ease); }
.acct b { font-size: var(--fs-nav); font-weight: var(--fw-med); color: var(--ink); letter-spacing: -.008em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planpill { position: relative; margin: 0 6px 0 0; flex: none; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 11px; font-weight: var(--fw-med); letter-spacing: .005em; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), opacity var(--t-move) var(--ease); }
.planpill:hover { color: var(--text); background: var(--side-hover); }
.planpill.paid { background: var(--side-on); box-shadow: none; }

/* rail: icons only */
body.folded .side { --sw: var(--rail-w); }
body.folded :is(.ni .t, .ni .n, .brand .bn, .acct .who, .planpill) { opacity: 0; pointer-events: none; }
body.folded .planpill { position: absolute; right: 0; }
body.folded .promo { opacity: 0; visibility: hidden; pointer-events: none; }
body.folded .brand::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; opacity: 0; background: currentColor; color: var(--text); transition: opacity var(--dur-2) var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M9 4v16'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M9 4v16'/%3E%3C/svg%3E") center / contain no-repeat; }
body.folded .brand:is(:hover, :focus-visible) { background: var(--side-hover); }
body.folded .brand:is(:hover, :focus-visible) .mark { opacity: 0; }
body.folded .brand:is(:hover, :focus-visible)::after { opacity: 1; }

/* the sheet: from the canvas strip to the right and bottom edges, one rounded corner */
.panel { flex: 1; min-width: 0; display: flex; margin: var(--top) -24px -24px 0; padding: 0 24px 24px 0; border-radius: var(--r-sheet); background: var(--sheet); box-shadow: var(--panel-edge); overflow: clip; }
.stage { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.page { grid-area: 1 / 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: var(--pad-t) var(--pad-x) 64px; outline: none; scrollbar-gutter: stable; }
.page > * { max-width: var(--col); margin-left: auto; margin-right: auto; }
.page:focus, .page:focus-visible { box-shadow: none; }
.pg-in { animation: pg-in var(--t-state) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pg-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes lk-pane-in { from { opacity: 0; transform: translateY(3px); } }

/* narrow windows: the rail by itself; the toggle opens the sidebar over the sheet */
@media (max-width: 980px) and (min-width: 761px) {
  :root { --pad-x: 32px; }
  body:not(.side-open) .side { --sw: var(--rail-w); }
  body:not(.side-open) :is(.ni .t, .ni .n, .brand .bn, .acct .who, .planpill) { opacity: 0; pointer-events: none; }
  body:not(.side-open) .planpill { position: absolute; right: 0; }
  body:not(.side-open) .promo { opacity: 0; visibility: hidden; pointer-events: none; }
  body:not(.side-open) .sidetog { display: none; }
  .side { position: absolute; inset: 0 auto 0 0; }
  .panel { margin-left: var(--rail-w); }
  body.side-open .side { box-shadow: 1px 0 0 var(--line), 24px 0 60px -30px rgba(0, 0, 0, .35); }
}

/* phones: the sidebar slides over; a slim bar holds the menu button and the logo; the page scrolls as a document */
@media (max-width: 760px) {
  :root { --pad-x: 16px; --pad-t: 22px; }
  html, body { height: auto; }
  .top { position: sticky; height: 56px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--canvas); pointer-events: auto; }
  .sidetog { position: static; width: 40px; height: 40px; border-radius: var(--r-ctl); }
  .sidetog svg { width: 22px; height: 22px; }
  body.folded .sidetog { display: grid; }
  .mbrand { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 6px; font: 650 19px/1 var(--font-display); letter-spacing: -.03em; color: var(--text); }
  .mbrand svg { width: 23px; height: auto; }
  .mbrand .mk3 { fill: var(--mk3); } .mbrand .mk2 { fill: var(--mk2); }
  .app { position: static; display: block; overflow: visible; }
  .side { position: fixed; z-index: 70; inset: 0 auto 0 0; --sw: 272px; width: 272px; padding-top: 20px; transform: translateX(-104%); transition: transform var(--t-layout) var(--ease-out);
    box-shadow: 0 0 0 1px var(--line), 30px 0 80px -30px rgba(0, 0, 0, .45); }
  .side > .promo { width: calc(var(--sw) - 2 * var(--row-x)); }
  body.side-open .side { transform: none; }
  body.folded .side { --sw: 272px; }
  body.folded :is(.ni .t, .ni .n, .brand .bn, .acct .who, .planpill) { opacity: 1; pointer-events: auto; }
  body.folded .planpill { position: relative; }
  body.folded .promo { opacity: 1; visibility: visible; pointer-events: auto; }
  body.folded .brand::after { display: none; }
  body.folded .brand:hover .mark { opacity: 1; }
  .side-scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--t-state) var(--ease); }
  body.side-open .side-scrim { opacity: 1; pointer-events: auto; }
  .panel { display: block; margin: 0; padding: 0; min-height: calc(100vh - 56px); border-radius: 20px 20px 0 0; overflow: visible; }
  .stage { display: block; }
  .page { overflow: visible; padding-bottom: 48px; scrollbar-gutter: auto; }
}
@media (min-width: 761px) { .side-scrim { display: none; } }
@media (prefers-reduced-motion: reduce) { .side, .side *, .pg-in { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------ the page pattern */
.phead { display: flex; align-items: flex-start; gap: 16px; min-height: 40px; margin: 0 0 40px; }
.phead > div:first-child { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.phead h1 { margin: 0; font: var(--fw-display) var(--fs-title)/40px var(--font-display); letter-spacing: var(--ls-display); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phead .ph-acts { display: flex; align-items: center; gap: 14px; flex: none; height: 40px; }
.phead p.sub { margin: 0; color: var(--text-3); font-size: var(--fs-small); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* the black primary (Home's 40/15/500) and its soft sister */
.pill { height: var(--h-ctl); padding: 0 18px; border-radius: var(--r-ctl); display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--on-ink); font: var(--fw-med) var(--fs-btn)/1 var(--font); letter-spacing: -.008em; white-space: nowrap;
  transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease); }
.pill:hover { background: var(--ink-hover); }
.pill:active { transform: scale(.98); }
.pill svg { width: 16px; height: 16px; }
.pill.soft, .pill--soft { background: var(--soft); color: var(--text); }
.pill.soft:hover, .pill--soft:hover { background: var(--soft-2); }
.pill--ghost { background: transparent; color: var(--text-2); }
.pill--ghost:hover { background: var(--surface-hover); color: var(--text); }
.pill:disabled, .btn:disabled { opacity: .4; pointer-events: none; }

/* ONE button system (ui/base.css): .btn secondary, .primary, .ghost, .danger; 28 / 36 / 40 / 44 */
.btn { height: var(--h-md); padding: 0 14px; border-radius: var(--r-ctl); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: var(--fw-med); font-size: 13px; white-space: nowrap; background: var(--btn); color: var(--text); box-shadow: var(--btn-edge);
  transition: background var(--t-hover) var(--ease), transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--btn-hover); }
.btn:active { background: var(--btn-press); transform: scale(.985); }
.btn:focus-visible { box-shadow: var(--btn-edge), var(--focus); }
.btn.primary { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.btn.primary:hover { background: var(--ink-hover); }
.btn.primary:focus-visible, .btn.ghost:focus-visible { box-shadow: var(--focus); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn.danger { color: var(--danger-text); }
.btn.danger.solid { background: var(--danger); color: #fff; box-shadow: none; }
.btn.sm { height: var(--h-sm); padding: 0 10px; border-radius: var(--r-ctl-sm); font-size: var(--fs-13); }
.btn.sm svg { width: 15px; height: 15px; }
.btn.lg { height: var(--h-lg); padding: 0 18px; font-size: var(--fs-15); }
.btn.xl { height: var(--h-xl); padding: 0 20px; font-size: var(--fs-15); }
.btn.block { width: 100%; }
.btn.done { color: var(--ok); }
.iconbtn { width: var(--h-md); height: var(--h-md); display: inline-grid; place-items: center; border-radius: var(--r-ctl); color: var(--text-2); transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn:hover, .iconbtn[aria-expanded="true"] { background: var(--surface-hover); color: var(--text); }
.iconbtn.sm { width: var(--h-sm); height: var(--h-sm); border-radius: var(--r-ctl-sm); }
.iconbtn.sm svg { width: 16px; height: 16px; }

/* underline tabs, tools on the right */
.tabs { position: relative; display: flex; align-items: center; gap: 4px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.tabs .tl { display: flex; gap: 28px; min-width: 0; }
.tabs .tl > * { position: relative; height: 46px; display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); font-size: var(--fs-tab); font-weight: var(--fw-reg); letter-spacing: -.01em; white-space: nowrap; transition: color var(--dur-2) var(--ease); }
.tabs .tl > *:hover { color: var(--text-2); }
.tabs .tl > .on, .tabs .tl > [aria-current="page"], .tabs .tl > [aria-selected="true"] { color: var(--text); }
.tabs .tl > .on::after, .tabs .tl > [aria-current="page"]::after, .tabs .tl > [aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); animation: fade var(--t-state) var(--ease) both; }
.tabs .tl .c { color: var(--text-3); font-weight: var(--fw-reg); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.tabs .tl .c:empty { display: none; }
.tabs .tl > :focus-visible { box-shadow: none; outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
/* search: an icon until you need it, then a field */
.search { position: relative; display: flex; align-items: center; gap: 7px; height: var(--h-tool); width: var(--h-tool); padding: 0 9px; border-radius: var(--r-ctl); color: var(--text-2); overflow: hidden; cursor: default; flex: none;
  transition: width var(--dur-3) var(--ease-out), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.search:hover { background: var(--side-hover); color: var(--text); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0; color: var(--text); outline: none; font-size: 14px; opacity: 0; transition: opacity var(--dur-2) var(--ease); -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input::placeholder { color: var(--text-3); }
.search input:focus-visible { box-shadow: none; }
.search:focus-within, .search.has { width: 240px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--card-line); color: var(--text-3); }
.search:focus-within input, .search.has input { opacity: 1; }

/* ------------------------------------------------------------------ the menu: a macOS menu, drawn (the app uses NSMenu) */
.mn { position: fixed; z-index: 90; min-width: 168px; max-width: min(340px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; padding: 5px; border-radius: 12px; background: var(--menu-bg);
  -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8); box-shadow: var(--menu-edge), var(--menu-drop);
  font: 400 13px/1 var(--font); letter-spacing: -.003em; color: var(--text); user-select: none; animation: mn-in 110ms var(--ease) both; }
.mn.out { animation: mn-out 160ms var(--ease) both; pointer-events: none; }
@keyframes mn-in { from { opacity: 0; } }
@keyframes mn-out { to { opacity: 0; } }
.mn:focus-visible { box-shadow: var(--menu-edge), var(--menu-drop); }
.mi { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; height: 24px; padding: 0 12px 0 24px; border-radius: 6px; color: var(--text); white-space: nowrap; text-align: left; cursor: default; }
.mi > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mi .ck { position: absolute; left: 8px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; }
.mi .mic { width: 15px; height: 15px; margin-left: -4px; color: var(--text-2); }
.mi small { flex: none; margin-left: 18px; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.mi.act { background: var(--accent); color: #fff; }
.mi.act small, .mi.act .mic { color: rgba(255, 255, 255, .78); }
.mi.danger { color: var(--danger-text); }
.mi.danger.act { color: #fff; }
.mi[aria-disabled="true"] { color: var(--text-4); }
.mh { height: 24px; display: flex; align-items: center; padding: 0 12px 0 24px; color: var(--text-3); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh.plain { font-weight: 400; font-size: 13px; }
.mn .sep { height: 1px; margin: 5px 10px; background: var(--menu-sep); }
@media (pointer: coarse) { .mi, .mh { height: 36px; font-size: 15px; } .mn { min-width: 200px; } }

/* the pop-up button (Expires in, the library's filters): Home's quiet 28 px button with ⌃⌄ */
.lk-pop { height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 0 6px 0 10px; border-radius: 7px; background: var(--btn); box-shadow: var(--btn-edge); color: var(--text);
  font: 500 var(--fs-sm)/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background var(--dur-1) var(--ease); max-width: 100%; }
.lk-pop span { overflow: hidden; text-overflow: ellipsis; }
.lk-pop:hover, .lk-pop[aria-expanded="true"] { background: var(--btn-hover); }
.lk-pop svg { color: var(--text-3); flex: none; }
.lk-pop.wide { height: var(--h-md); padding: 0 10px 0 12px; border-radius: var(--r-ctl); font-size: 13px; justify-content: space-between; width: 100%; }

/* ------------------------------------------------------------------ sheets and the toast (home.css) */
.scrim { position: fixed; inset: 0; z-index: 85; background: var(--scrim); display: flex; justify-content: center; align-items: flex-start; padding: 18vh 16px 16px; animation: fade var(--t-state) var(--ease) both; overflow-y: auto; }
.scrim.out { animation: fade var(--t-hover) var(--ease) reverse both; }
.sheet { width: 340px; max-width: 100%; padding: 24px; border-radius: var(--r-card); background: var(--raised); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); text-align: center; animation: pop var(--t-state) var(--spring) both; }
.sheet > b { display: block; font: 600 var(--fs-15)/1.35 var(--font-display); overflow-wrap: anywhere; }
.sheet > p { margin: 6px 0 18px; color: var(--text-3); line-height: 1.45; }
.sheet .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet .field { width: 100%; height: 32px; margin: 14px 0 16px; padding: 0 10px; border-radius: 8px; text-align: left; }
.sheet > b + .field { margin-top: 14px; }
.sheet .field:focus { box-shadow: var(--focus); }
.sheet .err { margin: -6px 0 12px; color: var(--danger-text); font-size: 13px; }
.sheet.wide { width: 520px; text-align: left; padding: 22px 22px 20px; }
.sheet.wide > p { margin-bottom: 14px; }
.sheet.wide .row { display: flex; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; translate: -50% 0; height: 36px; padding: 0 16px; display: flex; align-items: center; border-radius: var(--r-pill); max-width: calc(100vw - 32px);
  font: var(--fw-med) var(--fs-13)/1 var(--font); color: var(--on-ink); background: var(--ink); box-shadow: var(--sh-3);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity var(--t-state) var(--ease), transform var(--t-layout) var(--ease-out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: var(--danger-solid); color: #fff; }

/* fields, switch, segmented (ui/base.css) */
.field { height: var(--h-md); border-radius: var(--r-ctl); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 10px; border: 0; color: var(--text); font-size: 13px; transition: box-shadow var(--dur-1) var(--ease); }
.field::placeholder { color: var(--text-3); }
.field:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
textarea.field { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.switch { position: relative; width: 36px; height: 22px; border-radius: 11px; background: var(--fill-strong); flex: none; transition: background var(--t-state) var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--thumb); box-shadow: var(--thumb-edge); transition: transform var(--t-layout) var(--spring); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(14px); }
.switch:disabled { opacity: .4; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; border-radius: var(--r-ctl); background: var(--seg-bed); }
.seg button { height: var(--h-sm); border-radius: var(--r-ctl-sm); color: var(--text-2); font-weight: 500; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; padding: 0 12px; transition: color var(--dur-1) var(--ease), background var(--dur-2) var(--ease); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--text); box-shadow: var(--seg-on-edge); }

/* people: initials on a calm tint, the same hue for the same name */
.av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--font); letter-spacing: .01em;
  color: hsl(var(--h, 220) 65% var(--av-l)); background: hsl(var(--h, 220) 75% 55% / var(--av-a)); }
.av.me { color: #fff; background: var(--accent); }
.av.s { width: 22px; height: 22px; font-size: 9px; }
.av.ai { color: var(--text-2); background: var(--fill); }
.av svg { width: 14px; height: 14px; }

/* stickers (the site's, cloned from <template id="acStk">) */
.stk { display: inline-block; transform: rotate(var(--r, 0deg)); line-height: 0; }
.stk svg { overflow: visible; display: block; max-width: 100%; height: auto; }
.stk-cut, .stk-cut * { fill: #fff !important; stroke: #fff !important; stroke-width: 16px !important; stroke-linejoin: round !important; stroke-dasharray: none !important; }

/* ------------------------------------------------------------------ Shared links' parts (links.css), the workspace builds on them */
.lk { padding: 0 0 56px; }
.lk.in-detail { max-width: 880px; }
.lk-quiet { margin: 10px 0 2px; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.lk-quiet.center { text-align: center; padding: 40px 0; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 20px; }
.lk-tile { position: relative; display: block; min-width: 0; outline: none; cursor: default; animation: rise var(--t-layout) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms + 40ms); }
.lk-th { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg-sunk); isolation: isolate;
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-3) var(--ease-out); }
.lk-th .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-4); }
.lk-th .ph svg { width: 22px; height: 22px; }
.lk-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lk-th::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; z-index: 3; }
.lk-tile:hover .lk-th { box-shadow: 0 0 0 1px var(--line-2), 0 18px 34px -16px rgba(0, 0, 0, .45); transform: translateY(-4px); }
.lk-tile:focus-visible .lk-th { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 4px var(--accent); }
.lk-dur, .ws-fd { position: absolute; bottom: 8px; z-index: 2; height: 20px; padding: 0 6px; border-radius: 6px; font: 600 11px/20px var(--font); font-variant-numeric: tabular-nums; color: #fff; background: rgba(0, 0, 0, .52); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap; }
.lk-dur { right: 8px; }
.ws-fd { left: 8px; max-width: calc(100% - 70px); padding: 0 7px; overflow: hidden; text-overflow: ellipsis; }
.lk-tag { position: absolute; left: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font: 600 11px/1 var(--font); color: #fff; background: rgba(0, 0, 0, .52); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lk-tag svg { width: 12px; height: 12px; }
.lk-copy { position: absolute; top: 8px; right: 8px; z-index: 4; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(0, 0, 0, .46); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: scale(.9);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out), background var(--dur-1); }
.lk-copy svg { width: 15px; height: 15px; }
.lk-copy:hover { background: rgba(0, 0, 0, .66); }
.lk-tile:hover .lk-copy, .lk-tile:focus-within .lk-copy, .lk-copy:focus-visible { opacity: 1; transform: none; }
.lk-info { padding: 11px 2px 0; min-width: 0; }
.lk-name { display: block; font-weight: 500; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.003em; }
.lk-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--text-3); font-size: var(--fs-13); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.lk-sub i, .lk-meta i { font-style: normal; color: var(--text-4); }
.lk-flag { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; font: 600 11px/1 var(--font); color: var(--text-3); }
.lk-flag svg { width: 13px; height: 13px; color: var(--text-3); }
.lk-tile.off { opacity: .55; }
.lk-empty { text-align: center; padding: 64px 24px; color: var(--text-2); border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.lk-empty .lk-ic { display: block; color: var(--text-3); margin-bottom: 14px; line-height: 0; }
.lk-empty .lk-ic svg { display: block; margin: 0 auto; width: 34px; height: 34px; }
.lk-empty .stk { margin: -20px auto 10px; display: block; width: max-content; }
.lk-empty > b { display: block; color: var(--text); font: 650 17px/1.3 var(--font-display); letter-spacing: -.015em; }
.lk-empty p { margin: 8px auto 0; max-width: 420px; font-size: 14px; line-height: 1.55; color: var(--text-3); }
.lk-empty .pill, .lk-empty .btn { margin-top: 20px; }
.lk-none { padding: 26px 4px 10px; color: var(--text-3); }
.lk-none b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.lk-none p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; max-width: 460px; }
.lk-more { display: flex; justify-content: center; margin-top: 28px; }

/* an opened video: the video on top, then the panes */
.lk-detail { animation: lk-pane-in var(--t-layout) var(--ease-out) both; }
.lk-dbar { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; }
.lk-back { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 10px 0 4px; margin-left: -4px; border-radius: 7px; color: var(--text-2); font: 500 13px var(--font); transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.lk-back svg { width: 16px; height: 16px; }
.lk-back:hover { background: var(--surface-hover); color: var(--text); }
.lk-stage { position: relative; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -30px rgba(0, 0, 0, .6); width: min(100%, calc(min(58vh, 620px) * var(--ar, 1.6))); margin-inline: auto; }
.lk-video { display: block; width: 100%; aspect-ratio: var(--ar, 1.6); object-fit: contain; background: #000; outline: none; }
.lk-novid { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 30px 16px 14px; text-align: center; color: rgba(255, 255, 255, .8); font-size: 13px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.lk-dhead { padding: 16px 2px 2px; }
.lk-title { margin: 0; font: 600 20px/1.2 var(--font-display); letter-spacing: -.022em; color: var(--text); overflow-wrap: anywhere; }
.lk-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: 6px; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.lk-meta .av { align-self: center; margin-right: 2px; }
.lk-more-in { margin-top: 16px; }
.lk-tools { display: flex; align-items: center; gap: 4px; padding: 0 0 6px; }
.lk-tabs { flex: 1; margin-bottom: 0; }
.lk-tabs .tl .c { margin-left: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: inline-grid; place-items: center; font: 600 11px/1 var(--font); color: var(--text-2); background: var(--fill); }
.lk-pane { animation: lk-pane-in var(--t-state) var(--ease-out) both; }
.ws-desc { margin: 10px 0 0; max-width: 680px; font-size: 13px; line-height: 1.5; color: var(--text-2); white-space: pre-wrap; user-select: text; }

/* comments */
.lk-cm, .lk-cm ol { list-style: none; margin: 0; padding: 0; }
.lk-cm > li.th { padding: 14px 0 12px; }
.lk-cm > li.th + li.th { border-top: 1px solid var(--line); }
.lk-cm li[data-cid] { position: relative; display: flex; align-items: flex-start; gap: 11px; }
.lk-cm .lk-rp { margin: 10px 0 0 39px; display: flex; flex-direction: column; gap: 10px; }
.lk-cm .cb { flex: 1; min-width: 0; }
.lk-cm .ch { display: flex; align-items: baseline; gap: 7px; }
.lk-cm .ch b { font-size: 13px; font-weight: 600; color: var(--text); }
.lk-cm .cr { align-self: center; font: 600 11px/1 var(--font); color: var(--accent-text); background: var(--accent-soft); padding: 3px 6px; border-radius: 9px; }
.lk-cm .tm { color: var(--text-3); font-size: var(--fs-13); }
.lk-cm p { margin: 3px 0 0; color: var(--text); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.lk-cm .at { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; color: var(--accent-text); font: 600 13px/1 var(--font); font-variant-numeric: tabular-nums; }
.lk-cm .at svg { width: 9px; height: 9px; }
.lk-cm .at:hover { text-decoration: underline; }
.lk-cm .vr { color: var(--text-3); }
.lk-rf { display: flex; gap: 10px; margin: 12px 0 0; animation: lk-pane-in var(--t-state) var(--ease-out) both; }
.lk-rf .box { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lk-rf textarea { width: 100%; min-height: 56px; font-size: 13px; background: var(--lk-well); user-select: text; }
.lk-rf textarea:focus { background: var(--surface-2); }
.lk-rf .row { display: flex; align-items: center; gap: 6px; }
.lk-rf .err { color: var(--danger-text); font-size: var(--fs-13); }
.lk-rf .when { height: 24px; padding: 0 8px; border-radius: 12px; font: 600 12px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--text-2); background: var(--fill); }
.lk-rf .when:hover { color: var(--text); }

/* settings rows: grouped like System Settings */
.lk-set { display: flex; flex-direction: column; padding: 2px 0 4px; }
.lk-set h4 { margin: 14px 0 7px 2px; font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.lk-set > h4:first-child { margin-top: 6px; }
.lk-set h4 small { margin-left: 4px; font-weight: 500; color: var(--text-3); font-size: inherit; }
.lk-card { border-radius: 12px; background: var(--lk-card); box-shadow: var(--lk-card-edge); }
.lk-r { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 9px 14px; }
.lk-r + .lk-r { box-shadow: inset 0 1px 0 var(--line); }
.lk-r .ri { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--text-2); background: var(--fill); }
.lk-r .ri svg { width: 15px; height: 15px; }
.lk-r .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lk-r .tx b { font-size: 13px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-r .tx b em { font-style: normal; font-weight: 400; color: var(--text-3); }
.lk-r .tx > span { font-size: var(--fs-13); color: var(--text-3); line-height: 1.4; }
.lk-r .ctl { flex: none; display: flex; align-items: center; gap: 6px; }
.lk-r.off .tx b { color: var(--text-3); }
.lk-r.col { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; }
.lk-r .inl { display: flex; align-items: center; gap: 6px; }
.lk-r .inl .field { flex: 1; min-width: 0; height: 28px; border-radius: 7px; }
.lk-r small { display: block; margin-top: 6px; font-size: var(--fs-13); color: var(--text-3); line-height: 1.4; }
.lk-r small.err { color: var(--danger-text); }
.lk-r small:empty { display: none; }
.lk-set .field, .ws .field { background: var(--lk-well); }
.lk-set .field:focus, .ws .field:focus { background: var(--surface-2); }
.lk-q { font-size: var(--fs-13); color: var(--text-3); }
.lk-hint { margin: 8px 2px 0; font-size: var(--fs-13); color: var(--text-3); line-height: 1.45; }
.lk-hint a, .ws-lead a, .st a.u { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-3); }
.lk-hint a:hover, .ws-lead a:hover, .st a.u:hover { color: var(--text); }
.lk-feed { list-style: none; margin: 0; padding: 4px; border-radius: 12px; background: var(--lk-card); box-shadow: var(--lk-card-edge); }
.lk-feed li { display: flex; align-items: flex-start; gap: 11px; padding: 10px; border-radius: 9px; cursor: default; transition: background var(--dur-1) var(--ease); }
.lk-feed li + li { box-shadow: inset 0 1px 0 var(--line); }
.lk-feed li.go:hover { background: var(--surface-hover); box-shadow: none; }
.lk-feed li > div { flex: 1; min-width: 0; }
.lk-feed p { margin: 0; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 28px; }
.lk-feed p b { color: var(--text); font-weight: 600; }
.lk-feed p span { color: var(--text-2); }
.lk-feed q { display: block; margin-top: -3px; font-size: 13px; color: var(--text); quotes: none; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lk-feed time { flex: none; font-size: var(--fs-13); color: var(--text-3); line-height: 28px; }
.ai-tag { display: inline-block; margin: 0 4px 0 6px; padding: 2px 5px; border-radius: 5px; font: 600 10px/1 var(--font); letter-spacing: .04em; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2); vertical-align: 1px; }

/* the list layout of the library (a table like Insights') */
.lk-table { border-radius: 12px; background: var(--lk-card); box-shadow: var(--lk-card-edge); padding: 4px; }
.lk-table .lk-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 130px 150px 60px 70px; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 6px 12px 6px 6px;
  border-radius: 9px; color: var(--text); text-align: left; font: 13px var(--font); transition: background var(--dur-1) var(--ease); }
.lk-table .lk-row + .lk-row { box-shadow: inset 0 1px 0 var(--line); }
.lk-table a.lk-row:hover { background: var(--surface-hover); box-shadow: none; }
.lk-table a.lk-row:hover + .lk-row { box-shadow: none; }
.lk-table .lk-row.hd { min-height: 30px; color: var(--text-3); font-size: var(--fs-13); }
.lk-table .t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lk-table .t b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-table .t small { color: var(--text-3); font-size: var(--fs-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-table .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.lk-table .p { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-table .f { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-mini { position: relative; display: block; width: 64px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--bg-sunk); box-shadow: 0 0 0 .5px var(--line-2); }
.lk-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lk-mini i { position: absolute; right: 3px; bottom: 3px; height: 14px; padding: 0 4px; border-radius: 4px; font: 600 9px/14px var(--font); font-style: normal; color: #fff; background: rgba(0, 0, 0, .55); }

/* ------------------------------------------------------------------ the workspace (workspace.css) */
.ws-switch { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 0 -6px; padding: 0 6px; border-radius: var(--r-ctl); color: inherit; font: inherit; letter-spacing: inherit; cursor: default; max-width: 100%;
  transition: background var(--dur-1) var(--ease); }
.ws-switch svg { width: 18px; height: 18px; color: var(--text-3); margin-top: 3px; transition: color var(--dur-1) var(--ease); }
.ws-switch:hover, .ws-switch[aria-expanded="true"] { background: var(--surface-hover); }
.ws-switch:hover svg { color: var(--text-2); }
.ws-filters { display: flex; align-items: center; gap: 6px; margin: -10px 0 22px; }
.ws-filters .lk-pop { color: var(--text-2); }
.ws-filters .lk-pop.on { color: var(--text); }
.ws-filters .lk-pop > svg:first-child { width: 14px; height: 14px; margin-right: 2px; color: var(--text-3); }
.ws-none { padding-top: 6px; }
.ws-feed { max-width: 760px; }
.ws-set { max-width: 760px; }
.ws-lead { margin: 0 0 6px 2px; max-width: 560px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.ws-hint { margin: 8px 2px 0; }
.ws-m { min-height: 56px; }
.ws-m .av { width: 30px; height: 30px; font-size: 11px; }
.ws-url { font-variant-numeric: tabular-nums; }
.ws-pfx { margin-left: 4px; font: 500 11px var(--font-mono); color: var(--text-3); }
.ws-fresh { margin: 14px 0 4px; box-shadow: var(--lk-card-edge), 0 0 0 1px var(--accent) inset; }
.ws-code { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ws-code .k { font-size: var(--fs-13); color: var(--text-2); }
.ws-code code { display: block; padding: 7px 10px; border-radius: 7px; background: var(--lk-well); font: 500 12px/1.45 var(--font-mono); color: var(--text); overflow-wrap: anywhere; user-select: text; }
.ws-fresh .foot { display: flex; align-items: center; gap: 6px; }
.ws-fresh .foot small { margin: 0; }
.ws-start { max-width: 600px; }
.ws-start .lk-card { margin-top: 14px; }
.ws-start .inl .field { height: 30px; }
.ws-gate { max-width: 560px; }
/* Add videos: your own links, a check on each */
.ws-pick { display: flex; flex-direction: column; max-height: 46vh; overflow-y: auto; margin: 0 -6px 14px; padding: 2px 6px; }
.ws-pick label { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 9px; cursor: default; transition: background var(--dur-1) var(--ease); }
.ws-pick label:hover { background: var(--surface-hover); }
.ws-pick label.in { opacity: .5; }
.ws-pick .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ws-pick .t b { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-pick .t small { color: var(--text-3); font-size: 12px; }
.ck { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border-radius: 5px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-3); display: grid; place-items: center; transition: background var(--dur-1) var(--ease); }
.ck:checked { background: var(--accent); box-shadow: none; }
.ck:checked::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 1.8px 1.8px; transform: translate(0, -1px) rotate(-45deg); }
.ck:disabled { opacity: .5; }
.ws-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ws-opts label, .ws-opts > div { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-3); }

/* ------------------------------------------------------------------ the account pages (Settings in Home, settings.css) */
.st { padding: 0 0 40px; }
.st-sec + .st-sec { margin-top: 36px; }
.st-sec > h2 { margin: 0 0 12px 2px; font: var(--fw-bold) 17px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--text); }
.st-card { background: var(--card); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--card-line); }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; min-height: 64px; }
.crow + .crow { border-top: 1px solid var(--line); }
.crow .t { flex: 1; min-width: 0; }
.crow b { font-weight: var(--fw-med); font-size: var(--fs-body); display: block; overflow-wrap: anywhere; }
.crow .t > span { display: block; margin-top: 2px; color: var(--text-3); font-size: var(--fs-small); line-height: 1.45; }
.crow .t > span.err { color: var(--danger-text); }
.crow .ctl { flex: none; display: flex; align-items: center; gap: 8px; }
.crow .ri { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); background: var(--fill); }
.crow .ri svg { width: 17px; height: 17px; }
.crow.free b { color: var(--text-3); font-weight: 400; }
.crow.form { flex-direction: column; align-items: stretch; gap: 12px; }
.st .btn { height: var(--h-tool); padding: 0 14px; font-size: 14px; }
.st .btn.sm { height: var(--h-sm); padding: 0 10px; font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lbl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.lbl em { font-style: normal; font-weight: 400; color: var(--text-3); }
.lbl .field { height: var(--h-ctl); font-size: 14px; }
.st .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 0 2px; color: var(--text-3); font-size: 13px; line-height: 1.45; }
/* Your plan (license/planview.js): name, one status line, one line of what it is, ONE action on the right */
.yourplan { display: flex; align-items: center; gap: 24px; padding: 22px 24px; border-radius: var(--r-card); background: var(--soft); }
.yourplan .yp-t { flex: 1; min-width: 0; }
.yourplan .k { font-size: var(--fs-small); color: var(--text-3); }
.yourplan .pname { margin: 2px 0 6px; font: var(--fw-bold) 22px/1.2 var(--font-display); letter-spacing: -.025em; color: var(--text); }
.yourplan .yp-st { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-2); }
.yourplan .yp-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.yourplan:not(.paid) .yp-st::before { background: var(--text-4); }
.yourplan p { margin: 8px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.45; max-width: 46ch; }
.yourplan .yp-go { flex: none; display: flex; gap: 8px; }
/* the numbers under it: three quiet cells parted by hairlines (Home's stat card) */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--card-line); background: var(--card); }
.kpis > * { display: flex; flex-direction: column; gap: 3px; padding: 15px 18px 14px; min-width: 0; }
.kpis > * + * { box-shadow: inset 1px 0 0 var(--line); }
.kpis b { font: 650 24px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.kpis b small { font: 500 13px var(--font); color: var(--text-3); letter-spacing: 0; margin-left: 3px; }
.kpis span { font-size: var(--fs-13); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.meter { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
/* Appearance: three small windows */
.appearance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px 20px 16px; }
.appearance button { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.appearance .pv { width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; position: relative; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--dur-1) var(--ease), transform var(--t-layout) var(--spring); }
.appearance .pv i { position: absolute; display: block; }
.appearance .pv .c { inset: 0; }
.appearance .pv .s { left: 22%; top: 16%; right: 0; bottom: 0; border-radius: 6px 0 0 0; }
.appearance .pv .l1, .appearance .pv .l2, .appearance .pv .l3 { left: 6%; height: 5%; border-radius: 2px; width: 10%; }
.appearance .pv .l1 { top: 18%; } .appearance .pv .l2 { top: 28%; } .appearance .pv .l3 { top: 38%; }
.appearance .pv .t { left: 30%; top: 26%; width: 30%; height: 7%; border-radius: 2px; }
.appearance .pv .b { left: 30%; top: 44%; width: 18%; height: 22%; border-radius: 3px; }
.appearance .pv .b2 { left: 52%; top: 44%; width: 18%; height: 22%; border-radius: 3px; }
.pv.light .c { background: #f3f1ec; } .pv.light .s { background: #fdfdfb; } .pv.light :is(.l1, .l2, .l3) { background: rgba(13, 13, 13, .22); } .pv.light .t { background: #0d0d0d; } .pv.light :is(.b, .b2) { background: #e9e6df; }
.pv.dark .c { background: #121110; } .pv.dark .s { background: #1b1a18; } .pv.dark :is(.l1, .l2, .l3) { background: rgba(245, 245, 247, .3); } .pv.dark .t { background: #f5f5f7; } .pv.dark :is(.b, .b2) { background: #2a2926; }
.pv.auto .c { background: linear-gradient(90deg, #f3f1ec 50%, #121110 50%); } .pv.auto .s { background: linear-gradient(90deg, #fdfdfb calc(50% / .78 - 28%), #1b1a18 0); }
.pv.auto :is(.l1, .l2, .l3) { background: rgba(13, 13, 13, .22); } .pv.auto .t { background: #0d0d0d; } .pv.auto .b { background: #e9e6df; } .pv.auto .b2 { background: #2a2926; }
.appearance button:hover .pv { box-shadow: inset 0 0 0 1px var(--line-3); transform: translateY(-2px); }
.appearance button[aria-pressed="true"] { color: var(--text); }
.appearance button[aria-pressed="true"] .pv { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 4px var(--accent); }
.appearance button:focus-visible { box-shadow: none; } .appearance button:focus-visible .pv { box-shadow: var(--focus); }
.acc-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: var(--soft); color: var(--text-2); font-size: 13px; line-height: 1.45; }
.acc-note.err { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger-text); }
.skel { border-radius: var(--r-card); background: linear-gradient(90deg, var(--soft) 0%, var(--soft-2) 50%, var(--soft) 100%) 0 0 / 200% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ signed out: one sheet on the canvas (sign in, the code, join) */
.solo-top, .solo-foot { display: none; }
body.solo .side, body.solo .top, body.solo .side-scrim { display: none; }
body.solo .app { position: static; display: block; overflow: visible; }
body.solo { height: auto; min-height: 100%; }
body.solo .panel { display: flex; flex-direction: column; min-height: 100vh; margin: 0; padding: 0; border-radius: 0; background: var(--canvas); box-shadow: none; overflow: visible; }
body.solo .stage { display: block; flex: 1; }
body.solo .page { overflow: visible; padding: 6vh 16px 48px; scrollbar-gutter: auto; }
body.solo .solo-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; padding: 0 28px; }
body.solo .solo-top .brand { margin: 0; padding-left: 0; }
body.solo .solo-top .brand:hover { background: none; }
body.solo .solo-top p { color: var(--text-3); font-size: 14px; }
body.solo .solo-top p a { color: var(--text); font-weight: 500; }
body.solo .solo-top p a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.solo .solo-foot { display: flex; justify-content: space-between; gap: 16px; padding: 20px 28px 24px; color: var(--text-3); font-size: 13px; }
body.solo .solo-foot a:hover { color: var(--text); }
.card1 { max-width: 420px !important; padding: 36px 32px 30px; border-radius: var(--r-sheet); background: var(--sheet); box-shadow: var(--panel-edge); animation: rise var(--t-layout) var(--ease-out) both; }
.card1 h1 { font: var(--fw-display) var(--fs-30)/1.1 var(--font-display); letter-spacing: var(--ls-display); color: var(--text); overflow-wrap: anywhere; }
.card1 .auth__lead { margin-top: 10px; color: var(--text-3); font-size: 15px; line-height: 1.5; }
.card1 .auth__lead b { color: var(--text-2); font-weight: 500; }
.auth__form { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.auth__form .f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.auth__form .f input { height: var(--h-xl); padding: 0 14px; border: 0; border-radius: var(--r-ctl); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: 400 15px var(--font); transition: box-shadow var(--dur-1) var(--ease); }
.auth__form .f input::placeholder { color: var(--text-3); }
.auth__form .f input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
#acCode { font: 500 20px var(--font-mono) !important; letter-spacing: .3em; }
.auth__btn { height: var(--h-xl); width: 100%; }
.auth__fine { color: var(--text-3); font-size: 13px; line-height: 1.5; }
.auth__fine a, .auth__fine b { color: var(--text-2); font-weight: 500; }
.auth__fine a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-3); }
.auth__note { padding: 10px 12px; border-radius: 10px; background: var(--soft); color: var(--text-2); font-size: 13px; line-height: 1.45; }
.auth__note[role="alert"] { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger-text); }
.ws-join-ic { width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: 650 22px/1 var(--font-display); }

/* ------------------------------------------------------------------ narrow */
@media (max-width: 860px) {
  .ws-code { grid-template-columns: 1fr auto; } .ws-code .k { grid-column: 1 / -1; }
  .lk-table .lk-row { grid-template-columns: 56px minmax(0, 1fr) 54px; }
  .lk-table .lk-row > :nth-child(3), .lk-table .lk-row > :nth-child(4), .lk-table .lk-row > :nth-child(6) { display: none; }
}
@media (max-width: 760px) {
  .phead { flex-wrap: wrap; gap: 12px 16px; margin-bottom: 26px; }
  .phead > div:first-child { flex-direction: column; gap: 2px; width: 100%; }
  .phead .grow { display: none; }
  .phead .ph-acts { gap: 8px; }
  .phead .ph-acts .pill { height: var(--h-md); padding: 0 14px; font-size: 14px; }
  .tabs .tl { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .tabs .tl::-webkit-scrollbar { display: none; }
  .search:focus-within, .search.has { width: 170px; }
  .lk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .lk-name { font-size: 13px; }
  .lk-sub { font-size: 12px; }
  .ws-filters { flex-wrap: wrap; }
  .lk-r { flex-wrap: wrap; }
  .lk-r .ctl { margin-left: auto; }
  .yourplan { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > :nth-child(3) { grid-column: 1 / -1; box-shadow: inset 0 1px 0 var(--line); }
  .crow { padding: 14px 16px; flex-wrap: wrap; }
  .two, .ws-opts { grid-template-columns: 1fr; }
  .appearance { gap: 10px; padding: 16px; }
  .card1 { padding: 28px 22px 24px; }
  body.solo .solo-top { padding: 0 18px; }
  body.solo .solo-top p { display: none; }
  .sheet.wide { padding: 18px 16px 16px; }
}
@media (max-width: 420px) { .lk-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }

/* ------------------------------------------------------------------ Dolly's player (the watch page's, share/src/page.js PLAYER_CSS), as .dp-*
   a big play button, a scrubber with the comments at their moments, time, speed, captions, full screen */
.dp { position: relative; isolation: isolate; -webkit-user-select: none; user-select: none; }
.dp video { display: block; width: 100%; aspect-ratio: var(--ar, 1.6); object-fit: contain; background: #000; }
.dp.cx video { cursor: pointer; }
.dp.idle, .dp.idle video { cursor: none; }
.dp video::cue { font: 500 clamp(14px, 2.2vw, 20px)/1.4 var(--font); background: rgba(0, 0, 0, .72); color: #fff; }
.dp:fullscreen { border-radius: 0; width: 100%; height: 100%; background: #000; display: grid; place-items: center; }
.dp:fullscreen video { height: 100%; aspect-ratio: auto; }
.dp-ctl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 56px 12px 6px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2) 55%, transparent);
  transition: opacity .3s var(--ease), transform .3s var(--ease); }
.dp.idle .dp-ctl { opacity: 0; transform: translateY(6px); pointer-events: none; }
.dp:not(.started) .dp-ctl { opacity: 0; pointer-events: none; }
.dp:not(.started):hover .dp-ctl, .dp:not(.started):focus-within .dp-ctl { opacity: 1; pointer-events: auto; }
.dp-scrub { position: relative; height: 18px; margin: 0 6px; cursor: pointer; touch-action: none; outline: none; --p: 0%; --b: 0%; }
.dp-track { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .24); overflow: hidden; transition: transform .2s var(--ease); }
.dp-scrub:hover .dp-track, .dp-scrub.drag .dp-track, .dp-scrub:focus-visible .dp-track { transform: scaleY(1.5); }
.dp-track i { position: absolute; inset: 0 auto 0 0; }
.dp-track .buf { width: var(--b); background: rgba(255, 255, 255, .26); }
.dp-track .fill { width: var(--p); background: #fff; }
.dp-thumb { position: absolute; top: 2px; left: var(--p); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); transform: scale(0); transition: transform .2s var(--spring); }
.dp-scrub:hover .dp-thumb, .dp-scrub.drag .dp-thumb, .dp-scrub:focus-visible .dp-thumb { transform: scale(1); }
.dp-scrub:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); border-radius: 6px; }
.dp-tip { position: absolute; bottom: 26px; left: 0; transform: translateX(-50%); padding: 5px 10px; border-radius: 9px; background: rgba(18, 18, 20, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font: 600 12px/1.2 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 6px 20px rgba(0, 0, 0, .35); z-index: 2; }
.dp-scrub:hover .dp-tip, .dp-scrub.drag .dp-tip { opacity: 1; }
.dp-marks { position: absolute; left: 0; right: 0; bottom: 17px; height: 40px; pointer-events: none; }
.dp.ccon .dp-marks { display: none; }
.dp-mk { position: absolute; bottom: 0; width: 20px; height: 20px; transform: translateX(-50%); border-radius: 50%; pointer-events: auto; background: hsl(var(--h, 220) 55% 46%); color: #fff; font: 600 8.5px/20px var(--font); letter-spacing: .02em; text-align: center;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3); transition: transform .2s var(--spring); }
.dp-mk.me { background: var(--accent); }
.dp-mk:hover { transform: translateX(-50%) translateY(-2px) scale(1.2); z-index: 2; }
.dp-bar { display: flex; align-items: center; gap: 2px; height: 42px; margin-top: 2px; }
.dp-cb { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; flex: none; transition: background .15s, transform .2s var(--spring); }
.dp-cb:hover { background: rgba(255, 255, 255, .14); }
.dp-cb:active { transform: scale(.92); }
.dp-cb:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.dp-cb svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.dp-cb.txt { width: auto; min-width: 44px; padding: 0 8px; font: 600 13.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.dp-cb[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px; background: #fff; }
.dp .i-pause, .dp.playing .i-play, .dp .i-muted, .dp.muted .i-vol, .dp .i-fsx, .dp:fullscreen .i-fs { display: none; }
.dp.playing .i-pause, .dp.muted .i-muted, .dp:fullscreen .i-fsx { display: block; }
.dp-time { margin-left: 6px; font: 500 13px/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.dp-time i { font-style: normal; opacity: .5; margin: 0 4px; }
.dp-time span:last-child { opacity: .7; }
.dp-big { position: absolute; left: 50%; top: 50%; z-index: 4; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; color: #0a0a0b; background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35); transition: transform .35s var(--spring), background .2s, opacity .3s; }
.dp-big:hover { transform: scale(1.06); background: #fff; }
.dp-big svg { width: 30px; height: 30px; margin-left: 2px; }
.dp.started .dp-big { opacity: 0; transform: scale(.7); pointer-events: none; }
.dp-spin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .22); border-top-color: #fff; animation: dp-spin .9s linear infinite; opacity: 0; transition: opacity .2s; pointer-events: none; }
.dp.wait .dp-spin { opacity: 1; transition-delay: .35s; }
@keyframes dp-spin { to { transform: rotate(360deg); } }
@media (hover: none) { .dp-thumb { transform: scale(1); } }
@media (max-width: 760px) { .dp-ctl { padding: 40px 4px 2px; } .dp-cb { width: 34px; height: 34px; } .dp-cb svg { width: 20px; height: 20px; } .dp-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .dp-big svg { width: 24px; height: 24px; } .dp-mk { width: 17px; height: 17px; line-height: 17px; font-size: 7.5px; } }

/* long names (an email as a name) truncate everywhere */
.lk-cm .ch { min-width: 0; }
.lk-cm .ch b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-cm .ch .tm, .lk-cm .ch .cr, .lk-cm .ch .ai-tag { flex: none; }
.lk-sub > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lk-sub > span.by { flex: 0 1 auto; }
.lk-meta > span { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the plan badge; ".cloud-chip" is the hook for the Dolly Cloud badge (styled elsewhere later) */
.cloud-chip { white-space: nowrap; }
.mn.plain .mi, .mn.plain .mh { padding-left: 12px; }
.mn .mi:has(.mic) { padding-left: 12px; }
.mn:not(.plain) .mi:has(.mic) { padding-left: 24px; }

.lk-pop svg { width: 13px; height: 13px; }
.lk-pop.wide svg { width: 14px; height: 14px; }
.lk-pop.wide > svg:first-child { color: var(--text-3); margin-right: 2px; }
.lk-pop.wide span { flex: 1; text-align: left; }
.ws-switch > span { white-space: nowrap; }
.phead h1 .ws-switch > span { overflow: visible; }
.lk-back svg, .iconbtn svg { flex: none; }
.lk-tabs .tl > button { cursor: default; }
.appearance button { max-width: 210px; justify-self: center; width: 100%; }
@media (max-width: 760px) {
  .tabs .tl { gap: 18px; }
  .tabs .tl > * { font-size: 15px; height: 44px; }
  .ws-switch svg { margin-top: 1px; }
}

/* ------------------------------------------------------------------ Dolly Cloud (assets/cloud.js; the app's ui/base.css .cloud-chip, the site's .dc-chip)
   the chip: the cloud outline and a name on a soft blue pill. span only: the plan pill in the sidebar carries the class as a hook */
span.cloud-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px 0 6px; border-radius: 999px; flex: none; background: var(--cloud-tint); color: var(--cloud-blue);
  font: 600 12px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; vertical-align: middle; }
span.cloud-chip svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
span.cloud-chip.lg { height: 24px; padding: 0 10px 0 8px; gap: 5px; font-size: 13px; }
span.cloud-chip.lg svg { width: 16px; height: 16px; }

/* the workspace title is the switcher: the h1 clips overflow, so a focus ring showed as a stray ")" */
.phead h1 .ws-switch:focus-visible { box-shadow: none; outline: none; background: var(--side-hover, var(--soft)); border-radius: 10px; }

/* ------------------------------------------------------------------ Plan and Dolly Cloud (account.js, cloud.js): an open page on the sheet, no cards.
   The status as one big sentence, a line, one action; then headed paragraphs between hairlines (System Settings' About,
   Linear's plan page), the live numbers inline in the words, the action on the right */
.op-top { padding: 4px 0 4px; }
.op-top h1 { margin: 0; max-width: 20ch; font: var(--fw-display) 44px/1.06 var(--font-display); letter-spacing: -.045em; color: var(--text); text-wrap: balance; }
.op-top > p { margin: 14px 0 0; max-width: 58ch; color: var(--text-2); font-size: 17px; line-height: 1.5; letter-spacing: -.006em; text-wrap: pretty; }
.op-acts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.op-top p.op-meta, .op-offer p.op-meta { margin: 18px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.45; }
.op-price { margin: 28px 0 0; color: var(--text-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.op-price b { font: var(--fw-display) 36px/1 var(--font-display); letter-spacing: -.035em; color: var(--text); }
.op-price s { margin-right: 10px; font: 500 20px var(--font-display); color: var(--text-3); }
.op-offer .op-acts { margin-top: 18px; gap: 14px; }
.op-sec { margin-top: 56px; }
.op-sec > h2 { margin: 0 0 14px; font: var(--fw-bold) 20px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.op-lead { margin: -4px 0 14px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.op-lead b, .op-row p b { font-weight: var(--fw-bold); color: var(--text); }
.op-row { display: grid; grid-template-columns: 196px minmax(0, 1fr) auto; align-items: baseline; gap: 6px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.op-row:last-child { border-bottom: 1px solid var(--line); }
.op-row h3 { margin: 0; font: var(--fw-bold) 15px/1.5 var(--font); letter-spacing: -.008em; color: var(--text); overflow-wrap: anywhere; }
.op-row p { margin: 0; max-width: 60ch; color: var(--text-2); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.op-row.quiet h3 { color: var(--text-3); font-weight: var(--fw-med); }
.op-act { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.op-act .btn { align-self: center; }
.op a.u, .op .op-link { color: var(--text); font: var(--fw-med) 15px/1.5 var(--font); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color var(--dur-1) var(--ease); }
.op a.u:hover, .op .op-link:hover { text-decoration-color: currentColor; }
.op .op-link { padding: 0; background: none; cursor: pointer; }
.op .op-link:disabled { opacity: .5; }
.op .op-meta a.u { font-size: inherit; font-weight: var(--fw-reg); color: var(--text-2); }
.op-hint { display: block; margin-top: 6px; color: var(--text-3); font-size: 13px; }
.op-acts > .op-hint { display: inline; margin: 0; font-size: 15px; }
@media (max-width: 760px) {
  .op-top h1 { font-size: 34px; letter-spacing: -.04em; }
  .op-top > p { font-size: 16px; }
  .op-price b { font-size: 30px; }
  .op-sec { margin-top: 44px; }
  .op-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .op-act { justify-content: flex-start; margin-top: 8px; flex-wrap: wrap; }
}
