/* Spetz Workshop UI (every Workshop page: spetz.ai/, /apps/*, /guides/, /community/*, /my/* …). Plain CSS, no Tailwind:
 * the pages load nothing that compiles in the browser. Visual language = the
 * Workshop mock-ups (Spetz Workshop Plan artifact) on the Spetz design system:
 * cream paper + blueprint grid, ink, teal accents, sand as the warm note,
 * drafted (asymmetric) corners, Host Grotesk / Inter / Martian Mono.
 * Spacing only from the 4px scale (CLAUDE.md). See docs/agents/workshop.md.
 *
 * Icons: Workshop pages load a SUBSET of Material Symbols Rounded (only the
 * icons they use, ~30 KB instead of 1.4 MB) instead of /css/icons.css; the
 * .mdi rules are repeated below. After adding an icon anywhere in the
 * Workshop, run `python3 scripts/workshop_icons.py` to refresh every page's
 * subset link.
 */

/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  --paper: #faf6ec; --ink: #0b1426; --ink-2: #1c2638; --teal: #14b8a6; --teal-d: #0a766c;   /* small teal text, icons, links: 5.1:1 on paper (was #0d9488, 3.5:1) */
  --teal-hi: #2dd4bf; --on-teal: var(--ink);   /* text and icons on a teal surface: ink 7.4:1 (white was 2.5:1, review 2026-11-17) */ --teal-tint: #e0f2ee; --sand: #d4a574; --sand-d: #9a6a3a; --sand-tint: #f4e8d8;
  --muted: #6b6860;   /* readable grey: 5.2:1 on paper (was #75726a, 4.45:1) */
  --muted-2: #a29e94; --line: #e8e5dc; --line-2: #dcd8cc;
  --alert: #b42318;   /* "new" counts (HandyMate's bubble): white on it 6.5:1, the danger button's red */
  --surface: #fdfaf3; --field: #fffdf8; --on-ink-muted: #9aa3b4;
  --space-xs: 4px; --space-sm: 8px; --space-tight: 12px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px;
  --r-card: 16px 4px 16px 4px; --r-btn: 10px 3px 10px 3px; --r-tile: 12px 4px 12px 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-title: "Host Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, monospace;
  --bar-h: 56px; --tab-h: 64px; --wrap: 1120px;
}

/* smooth page-to-page navigation (Chrome, Safari 18+); header + tab bar stay put */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; animation-timing-function: ease-out; }
.ws-bar, .ws-desk { view-transition-name: ws-header; }
.ws-tabbar { view-transition-name: ws-tabbar; }

/* ── base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ws-page {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font: 400 16px/1.5 var(--font-sans); color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(11, 20, 38, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 20, 38, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
/* zero-specificity resets (:where) so every component class below wins */
:where(.ws-page) a { color: inherit; text-decoration: none; }
:where(.ws-page) button { font: inherit; color: inherit; }
:where(.ws-page) :is(h1, h2, h3, p) { margin: 0; }
.ws-page :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ws-page ::selection { background: var(--teal-tint); }
[hidden] { display: none !important; }
.ws-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mdi {
  font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 24px;
  line-height: 1; display: inline-block; vertical-align: middle; letter-spacing: normal; text-transform: none;
  white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none; flex-shrink: 0;
  /* a 1em box from the first paint: while the icon font loads, the icon's name ("chevron_right")
     would otherwise take its text width, wrap lines and then snap back */
  width: 1em; height: 1em; overflow: hidden;
}
.mdi--fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.mdi--18 { font-size: 18px; } .mdi--20 { font-size: 20px; } .mdi--22 { font-size: 22px; }
.mdi--28 { font-size: 28px; } .mdi--32 { font-size: 32px; }

/* ── layout ─────────────────────────────────────────────────────────── */
.ws-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-md); }
@media (min-width: 640px) { .ws-wrap { padding: 0 var(--space-lg); } }
.ws-wrap--narrow { max-width: 760px; }
.ws-main { padding-top: var(--space-md); padding-bottom: var(--space-2xl); }
@media (min-width: 900px) { .ws-main { padding-top: var(--space-xl); } }
.ws-stack > * + * { margin-top: var(--space-md); }
.ws-stack-lg > * + * { margin-top: var(--space-lg); }
.ws-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-tight); }
.ws-section { margin-top: var(--space-lg); }
.ws-section > .ws-eyebrow { display: block; margin-bottom: var(--space-tight); }
@media (min-width: 900px) {
  .ws-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--space-2xl); align-items: start; }
  .ws-split > .ws-side { position: sticky; top: calc(64px + var(--space-lg)); }
}

/* ── type ───────────────────────────────────────────────────────────── */
.ws-h1 { font: 700 40px/1.02 var(--font-title); letter-spacing: -0.04em; text-wrap: balance; }
@media (min-width: 900px) { .ws-h1 { font-size: 56px; } }
.ws-h1--sm { font-size: 34px; }
@media (min-width: 900px) { .ws-h1--sm { font-size: 44px; } }
.ws-h2 { font: 700 24px/1.1 var(--font-title); letter-spacing: -0.03em; }
.ws-sub { color: var(--muted); font-size: 17px; line-height: 1.45; margin-top: var(--space-tight); text-wrap: pretty; }
.ws-eyebrow {
  font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.ws-eyebrow--teal { color: var(--teal-d); }
.ws-muted { color: var(--muted); }
.ws-note { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ws-note a, .ws-link { color: var(--teal-d); font-weight: 600; }
.ws-mono { font-family: var(--font-mono); }

/* ── mobile app bar + desktop header ────────────────────────────────── */
.ws-bar {
  position: sticky; top: 0; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 0 var(--space-sm) 0 var(--space-md);
  background: rgba(250, 246, 236, 0.96); border-bottom: 1px solid transparent;
  transition: border-color 200ms ease-out;
}
.ws-bar.is-scrolled { border-bottom-color: var(--line); }
.ws-bar--flow { padding-left: var(--space-xs); }
/* a tool page reached from outside the site: the Spetz mark + "Workshop" instead of a bare ← (shell headerHtml) */
.ws-bar--lander { padding-left: var(--space-md); }
.ws-bar__home { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.ws-bar__home .ws-brand__logo { width: 61px; height: 21px; }
.ws-bar__home span:last-child { font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-d);
  padding: var(--space-xs) var(--space-sm); background: var(--teal-tint); border-radius: var(--r-btn); }
.ws-bar--lander.is-scrolled .ws-bar__home span:last-child { display: none; }   /* room for the page title */
.ws-brand { display: inline-flex; align-items: center; min-height: 44px; }
/* the wordmark (/images/Black.svg, 534x184) drawn in currentColor through a mask: paper on the ink hero, ink elsewhere */
.ws-brand__logo { display: block; width: 70px; height: 24px; flex-shrink: 0; background-color: currentColor;
  -webkit-mask: url(/images/Black.svg) center / contain no-repeat; mask: url(/images/Black.svg) center / contain no-repeat; }
.ws-bar__title { flex: 1; min-width: 0; font: 600 16px/1.2 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(4px); transition: opacity 200ms ease-out, transform 200ms ease-out; }
.ws-bar.is-scrolled .ws-bar__title { opacity: 1; transform: none; }
.ws-bar__spacer { flex: 1; }
.ws-icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: var(--r-btn); cursor: pointer; color: var(--ink);
  transition: background 150ms ease-out;
}
.ws-icon-btn:hover { background: rgba(11, 20, 38, 0.09); }
.ws-icon-btn:active { background: rgba(11, 20, 38, 0.1); }
.ws-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--sand); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font: 700 15px/1 var(--font-sans);
  border: 0; cursor: pointer; flex-shrink: 0;
}
.ws-avatar--lg { width: 64px; height: 64px; font-size: 26px; }
.ws-signin { font: 600 16px/1 var(--font-sans); padding: var(--space-tight); border: 0; background: none; cursor: pointer; }
.ws-acct-slot { min-width: 44px; display: flex; justify-content: flex-end; }

/* the header's spot before shell.mount() fills it, so the page doesn't drop by a bar's height on load */
#ws-header { height: var(--bar-h); }
.ws-desk { display: none; }
@media (min-width: 900px) {
  #ws-header { height: 64px; }
  .ws-bar { display: none; }
  .ws-desk {
    display: block; position: sticky; top: 0; z-index: 40; height: 64px;
    background: rgba(250, 246, 236, 0.96); border-bottom: 1px solid var(--line);
  }
  .ws-desk__in { height: 100%; display: flex; align-items: center; gap: var(--space-lg); }
  .ws-desk nav { display: flex; gap: var(--space-xs); margin-left: var(--space-md); }
  .ws-desk nav a, .ws-desk nav button {
    position: relative; font: 500 15px/1 var(--font-sans); color: var(--muted); padding: var(--space-tight);
    border: 0; background: none; cursor: pointer; border-radius: var(--r-btn); transition: color 150ms ease-out;
  }
  .ws-desk nav a:hover, .ws-desk nav button:hover { color: var(--ink); }
  .ws-desk nav :is(a, button)[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .ws-desk nav :is(a, button)[aria-current="page"]::after {
    content: ""; position: absolute; left: var(--space-tight); right: var(--space-tight); bottom: -12px; height: 2px; background: var(--teal);
  }
  .ws-desk .ws-acct { position: relative; }
}
.ws-menu {
  position: absolute; right: 0; top: calc(100% + var(--space-sm)); width: 240px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--space-sm);
  animation: ws-pop 160ms var(--ease);
}
.ws-menu a, .ws-menu button {
  display: flex; align-items: center; gap: var(--space-sm); width: 100%; text-align: left; font: 500 15px/1.2 var(--font-sans);
  padding: var(--space-sm) var(--space-sm); border: 0; background: none; cursor: pointer; border-radius: var(--r-btn);
}
.ws-menu a:hover, .ws-menu button:hover { background: var(--teal-tint); }
.ws-menu__who { padding: var(--space-sm); border-bottom: 1px solid var(--line); margin-bottom: var(--space-xs); }
.ws-menu__who b { display: block; font-weight: 600; }
.ws-menu__who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: block; }

/* ── phone tab bar ──────────────────────────────────────────────────── */
.ws-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: var(--paper); border-top: 1px solid var(--line);
}
.ws-tab {
  height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xs);
  font: 600 11px/1 var(--font-sans); color: var(--muted); border: 0; background: none; cursor: pointer; padding: 0;
}
.ws-tab .mdi { font-size: 26px; transition: transform 150ms ease-out; }
.ws-tab:active .mdi { transform: scale(0.9); }
.ws-tab[aria-current="page"] { color: var(--teal-d); }
.ws-tab[aria-current="page"] .mdi { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.ws-tab--start { color: var(--ink); justify-content: flex-end; padding-bottom: var(--space-sm); gap: var(--space-xs); }
.ws-tab--start .ws-tab__plus {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin-top: -22px;
  background: var(--teal); color: var(--on-teal); border-radius: 14px 4px 14px 4px;
  transition: transform 150ms ease-out, background 150ms ease-out;
}
.ws-tab--start .ws-tab__plus .mdi { font-size: 32px; }
.ws-tab--start:active .ws-tab__plus { transform: scale(0.94); background: var(--teal-hi); }
body.has-tabbar { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .ws-tabbar { display: none; }
  body.has-tabbar { padding-bottom: 0; }
}

/* ── buttons ────────────────────────────────────────────────────────── */
.ws-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  min-height: 44px; padding: 0 var(--space-md); border-radius: var(--r-btn); border: 1.5px solid transparent;
  font: 600 15px/1 var(--font-sans); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, transform 120ms ease-out;
}
.ws-btn:active { transform: scale(0.97); }
.ws-btn--lg { min-height: 56px; font-size: 17px; padding: 0 var(--space-lg); }
.ws-btn--block { display: flex; width: 100%; }
.ws-btn--teal { background: var(--teal); color: var(--on-teal); }
.ws-btn--teal:hover { background: var(--teal-hi); }
.ws-btn--ink { background: var(--ink); color: var(--paper); }
.ws-btn--ink:hover { background: var(--ink-2); }
.ws-btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.ws-btn--line:hover { background: rgba(11, 20, 38, 0.05); }
.ws-btn--soft { background: var(--teal-tint); color: var(--teal-d); }
.ws-btn--soft:hover { background: #cdeae4; }
.ws-btn--quiet { background: transparent; color: var(--muted); }
.ws-btn--quiet:hover { color: var(--ink); }
.ws-btn--danger { background: #b42318; color: #fff; }
.ws-btn--danger:hover { background: #912018; }
.ws-btn[disabled] { opacity: 0.45; pointer-events: none; }
/* Hover for everything clickable, on mouse / trackpad only (@media hover) so a tap on a
   phone never leaves a control looking pressed. Page-specific controls add their own. */
@media (hover: hover) {
  .ws-btn--quiet:hover { color: var(--ink); background: rgba(11, 20, 38, 0.05); }
  .ws-btn--line:hover { background: rgba(11, 20, 38, 0.06); }
  .ws-seg button:hover { border-color: var(--teal); background: var(--teal-tint); }
  .ws-seg button[aria-pressed="true"]:hover { background: var(--ink-2); border-color: var(--ink-2); }
  .ws-row:hover { background: rgba(11, 20, 38, 0.045); }
  /* an underlined link must stay inline (not inline-flex): a flex link underlines each
     item on its own, so the icon and the words get two broken lines. Space its icon with a margin. */
  .ws-toast a:hover, .ws-toast button:hover, .ws-note a:hover, .ws-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .cm-part:hover, .cm-piece:hover { box-shadow: inset 0 0 0 2px var(--ink); }
}

/* ── ask box ────────────────────────────────────────────────────────── */
.ws-ask {
  display: flex; align-items: center; gap: var(--space-sm); height: 60px; padding: 0 var(--space-sm) 0 var(--space-md);
  background: var(--field); border: 1.5px solid var(--ink); border-radius: var(--r-tile);
  transition: box-shadow 150ms ease-out;
}
.ws-ask:focus-within { box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.22); }
.ws-ask input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  font: 400 17px/1 var(--font-sans); color: var(--ink);
}
.ws-ask input::placeholder { color: var(--muted); }
.ws-ask__go {
  width: 44px; height: 44px; border: 0; border-radius: var(--r-btn); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--line); color: var(--muted); transition: background 150ms ease-out, color 150ms ease-out;
}
.ws-ask.has-text .ws-ask__go { background: var(--teal); color: var(--on-teal); }

/* ── cards ──────────────────────────────────────────────────────────── */
.ws-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--space-md); }
@media (min-width: 900px) { .ws-card { padding: var(--space-lg); } }
/* :where() keeps this at single-class weight, so a card component's own layout
   (.sk-hub grid, .ch-hub flex, .tf-card, …) wins over the plain block default */
:where(a, button).ws-card { display: block; width: 100%; text-align: left; cursor: pointer; transition: border-color 150ms ease-out, transform 120ms ease-out; }
:where(a, button).ws-card:hover { border-color: var(--line-2); }
:where(a, button).ws-card:active { transform: scale(0.985); }
.ws-card__title { font: 600 18px/1.25 var(--font-title); letter-spacing: -0.015em; }
/* a project card: the whole card opens it, the ⋯ in its corner opens Rename / Delete */
.ws-pcard { position: relative; padding: 0; transition: border-color 150ms ease-out; }
.ws-pcard__link { display: block; padding: var(--space-md); padding-right: 56px; color: inherit; text-decoration: none; border-radius: inherit; }
.ws-pcard__link:active { transform: scale(0.99); }
.ws-pcard__more { position: absolute; top: var(--space-xs); right: var(--space-xs); color: var(--muted); }
@media (hover: hover) {
  .ws-pcard:hover { border-color: var(--line-2); }
  .ws-pcard__more:hover { color: var(--ink); }
}
.ws-card__meta { color: var(--muted); font-size: 14px; margin-top: var(--space-xs); }

/* the dark "your project" card */
.ws-hero {
  background: var(--ink); color: var(--paper); border-radius: var(--r-card); padding: var(--space-md) var(--space-md) var(--space-md);
}
@media (min-width: 900px) { .ws-hero { padding: var(--space-lg); } }
.ws-hero .ws-eyebrow { color: var(--on-ink-muted); }
.ws-hero__title { font: 700 24px/1.15 var(--font-title); letter-spacing: -0.025em; margin-top: var(--space-sm); }
.ws-hero__meta { color: #c9cfda; font-size: 15px; margin-top: var(--space-xs); }
.ws-hero .ws-btn { margin-top: var(--space-md); }
.ws-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }
/* Pills are an approved Workshop exception to the style guide's corners (Tom 2026-11-17): option pills (.ws-seg)
   are 40px everywhere, link chips (.ws-chip, .sk-chip) 32px with a hit area reaching 44px */
.ws-chip {
  display: inline-flex; align-items: center; gap: var(--space-xs); height: 32px; padding: 0 var(--space-tight);
  border-radius: 999px; font: 500 13px/1 var(--font-sans); background: var(--line); color: var(--ink);
  position: relative;
}
button.ws-chip { border: 0; cursor: pointer; }   /* Price my list's example chips had the browser's button border */
.ws-chip::before, .sk-chip::before { content: ""; position: absolute; inset: -6px 0; }
.ws-hero .ws-chip { background: #1e2a3f; color: var(--teal-hi); }
.ws-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-sm); border-radius: 4px;
  font: 600 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; background: var(--line); color: var(--muted);
}
.ws-tag--teal { background: var(--teal-tint); color: var(--teal-d); }
/* the 3D-guide mark after a tool's name in every list (tools.js mark(), format '3d') */
.ws-3d { display: inline-flex; align-items: center; gap: var(--space-xs); height: 20px; padding: 0 var(--space-xs); margin-left: var(--space-sm); vertical-align: 2px;
  border-radius: 4px; background: var(--ink); color: var(--paper); font: 700 11px/1 var(--font-mono); letter-spacing: 0.06em; white-space: nowrap; }
.ws-3d .mdi, a .ws-3d .mdi, .ws-mega__col li a .ws-3d .mdi { font-size: 14px; color: var(--teal-hi); }

/* door cards (2x2) */
.ws-door {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); min-height: 136px;
  padding: var(--space-md); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  text-align: left; cursor: pointer; transition: border-color 150ms ease-out, transform 120ms ease-out, background 150ms ease-out;
}
.ws-door:hover { border-color: var(--teal); }
.ws-door:active { transform: scale(0.97); }
.ws-door .mdi { color: var(--teal-d); font-size: 30px; margin-bottom: var(--space-xs); }
.ws-door b { font: 600 19px/1.15 var(--font-title); letter-spacing: -0.02em; margin-top: var(--space-xs); }
.ws-door span.ws-door__sub { color: var(--muted); font-size: 14px; line-height: 1.35; }

/* row lists (project sections, start doors, settings) */
.ws-rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.ws-row {
  display: flex; align-items: center; gap: var(--space-tight); width: 100%; padding: var(--space-tight) var(--space-md);
  border: 0; background: none; text-align: left; cursor: pointer; color: inherit; transition: background 150ms ease-out;
}
.ws-rows > * + * { border-top: 1px solid var(--line); }
.ws-row:hover { background: rgba(11, 20, 38, 0.025); }
.ws-row:active { background: rgba(11, 20, 38, 0.05); }
.ws-row--static { cursor: default; }
.ws-row--static:hover, .ws-row--static:active { background: none; }
.ws-row__text { flex: 1; min-width: 0; }
.ws-row__title { font: 600 16px/1.25 var(--font-sans); display: block; }
.ws-row__sub { color: var(--muted); font-size: 14px; line-height: 1.35; display: block; margin-top: 0; }
.ws-row__end { color: var(--muted-2); display: inline-flex; align-items: center; gap: var(--space-sm); }
.ws-row.is-soon { cursor: default; }
.ws-row.is-soon .ws-row__title { color: var(--muted); }
.ws-row.is-soon:hover { background: none; }
.ws-tile {
  width: 44px; height: 44px; border-radius: var(--r-tile); display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-tint); color: var(--teal-d); flex-shrink: 0;
}
.ws-tile--sand { background: var(--sand-tint); color: var(--sand-d); }
.ws-tile--ink { background: var(--ink); color: var(--paper); }
.ws-tile--muted { background: var(--line); color: var(--muted); }
.ws-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 var(--space-tight); border-radius: 999px;
  background: var(--teal-tint); color: var(--teal-d); font: 600 14px/1 var(--font-sans); }

/* progress */
.ws-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: var(--space-tight); }
.ws-progress > i { display: block; height: 100%; background: var(--teal); border-radius: 3px; transition: width 400ms var(--ease); }
.ws-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }

/* stage stepper */
.ws-stepper { display: flex; justify-content: space-between; gap: var(--space-xs); margin-top: var(--space-md); }
/* the project's next step under its stepper (shell.nextStep) */
.ws-nextstep { margin-top: var(--space-tight); font-size: 15px; color: var(--muted); }
.ws-nextstep .ws-link { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.ws-step {
  display: inline-flex; align-items: center; gap: var(--space-xs); border: 0; background: none; padding: var(--space-sm) 0; cursor: pointer;
  font: 600 10px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); min-width: 0;
}
@media (min-width: 420px) { .ws-step { font-size: 11px; letter-spacing: 0.1em; } }
.ws-step__dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--line); display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 200ms ease-out, box-shadow 200ms ease-out;
}
.ws-step__dot .mdi { font-size: 16px; color: #fff; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; -webkit-text-stroke: 0.6px currentColor; }
.ws-step.is-done { color: var(--ink); }
.ws-step.is-done .ws-step__dot { background: var(--teal); }
.ws-step.is-now { color: var(--teal-d); }
.ws-step.is-now .ws-step__dot { background: var(--field); box-shadow: inset 0 0 0 2px var(--teal); }

/* fields */
.ws-fields { display: grid; gap: var(--space-sm); grid-template-columns: 1fr 1fr; }
.ws-fields > .is-wide { grid-column: 1 / -1; }
.ws-field {
  display: block; position: relative; padding: var(--space-sm) var(--space-tight); background: var(--field); border: 1px solid var(--line);
  border-radius: var(--r-tile); cursor: text; transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.ws-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); }
.ws-field__label { display: block; font-size: 13px; color: var(--muted); line-height: 1.2; }
.ws-field input, .ws-field select, .ws-field textarea {
  display: block; width: 100%; border: 0; outline: none; background: transparent; padding: 0; margin-top: 0;
  font: 600 17px/1.35 var(--font-sans); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.ws-field textarea { font-weight: 400; font-size: 16px; resize: vertical; min-height: 96px; }
.ws-field select { cursor: pointer; padding-right: var(--space-lg); }
.ws-field--select::after {
  content: "expand_more"; font-family: 'Material Symbols Rounded'; position: absolute; right: 12px; bottom: 12px;
  font-size: 20px; color: var(--muted); pointer-events: none; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
}
.ws-field__unit { position: absolute; right: var(--space-tight); bottom: var(--space-tight); color: var(--muted); font-size: 15px; pointer-events: none; }
.ws-field input::placeholder, .ws-field textarea::placeholder { color: var(--muted-2); font-weight: 400; }
.ws-seg { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.ws-seg button {
  height: 40px; padding: 0 var(--space-md); border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--field);
  font: 600 14px/1 var(--font-sans); cursor: pointer; transition: all 150ms ease-out;
}
.ws-seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* the dark result card (calculators) */
.ws-result { background: var(--ink); color: var(--paper); border-radius: var(--r-card); padding: var(--space-md) var(--space-lg) var(--space-lg); }
.ws-result .ws-eyebrow { color: var(--on-ink-muted); }
.ws-result__big { display: flex; align-items: baseline; gap: var(--space-tight); margin-top: var(--space-sm); flex-wrap: wrap; }
.ws-result__big b { font: 700 60px/1 var(--font-title); letter-spacing: -0.04em; color: var(--teal-hi); font-variant-numeric: tabular-nums; max-width: 100%; overflow-wrap: anywhere; }
.ws-result__big span { font-size: 18px; }
.ws-result ul { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; gap: var(--space-sm); }
.ws-result li { display: flex; gap: var(--space-tight); font-size: 16px; }
.ws-result li b { color: var(--teal-hi); min-width: 2ch; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.ws-result--empty b { color: #4b5568; }

/* the action bar (flow pages): fixed to the bottom on phones (always in reach,
   like the mock-ups); on desktop it sits at the end of its column and sticks */
.ws-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: var(--space-tight) var(--space-md) calc(var(--space-tight) + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
}
body.has-cta .ws-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
/* a tool page with the footer under it (shell mount): the room for the fixed bar moves below the footer */
/* the footer fades in with `both` fill, so it is its own stacking context: lift main over it, or the footer
   paints over the fixed bar */
body.has-cta .ws-main { position: relative; z-index: 2; }
@media (max-width: 899px) {
  body.has-cta .ws-main:has(+ .sf) { padding-bottom: var(--space-2xl); }
  body.has-cta .ws-main + .sf { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* a page whose calculator sits lower down (under a troubleshooter or a forecast): the bar stays with its result */
@media (max-width: 899px) { .ws-cta.ws-cta--inline { position: static; padding: 0; border: 0; background: none; margin-top: var(--space-tight); } }
.ws-cta__in { display: flex; gap: var(--space-sm); align-items: center; max-width: 760px; margin: 0 auto; }
.ws-cta__in > .ws-btn--teal, .ws-cta__in > .ws-save { flex: 1; }
/* a long "what's being saved" line must ellipsize, never widen the bar past the screen (validation 2026-11-21) */
.ws-cta__in > * { min-width: 0; }
@media (min-width: 900px) {
  .ws-cta { position: sticky; left: auto; right: auto; bottom: var(--space-md); margin-top: var(--space-lg);
    border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: var(--space-tight); }
  body.has-cta .ws-main { padding-bottom: var(--space-2xl); }
}

/* ── list (list.js) ─────────────────────────────────────────────────── */
.ws-list { margin: 0; padding: 0; list-style: none; }
.ws-list__cat { font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-d);
  padding: var(--space-md) 0 var(--space-xs); }
.ws-list__cat:first-child { padding-top: 0; }
.ws-list__item { display: flex; gap: var(--space-tight); align-items: baseline; padding: var(--space-tight) 0; border-bottom: 1px solid var(--line); }
.ws-list__qty { font: 500 14px/1.3 var(--font-mono); color: var(--muted); min-width: 4.5ch; font-variant-numeric: tabular-nums; }
.ws-list__name { flex: 1; min-width: 0; font-size: 16px; line-height: 1.3; }
.ws-list__spec { display: block; color: var(--muted); font-size: 13px; margin-top: 0; }
.ws-list__price { font: 600 15px/1.3 var(--font-sans); color: var(--muted); white-space: nowrap; }
.ws-list__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-top: var(--space-tight); flex-wrap: wrap; }

/* ── sheets ─────────────────────────────────────────────────────────── */
.ws-scrim {
  position: fixed; inset: 0; z-index: 100; background: rgba(11, 20, 38, 0.5);
  display: flex; align-items: flex-end; justify-content: center; animation: ws-fade 200ms ease-out;
}
.ws-scrim.is-closing { animation: ws-fade-out 180ms ease-in forwards; }
.ws-sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 20px 6px 0 0; padding: var(--space-sm) var(--space-md) calc(var(--space-lg) + env(safe-area-inset-bottom));
  animation: ws-sheet-up 320ms var(--ease);
}
.ws-scrim.is-closing .ws-sheet { animation: ws-sheet-down 180ms ease-in forwards; }
.ws-sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto var(--space-sm); }
.ws-sheet__head { display: flex; align-items: center; gap: var(--space-xs); min-height: 44px; margin: 0 calc(-1 * var(--space-sm)) var(--space-xs); }
.ws-sheet__head .ws-bar__spacer { flex: 1; }
.ws-sheet--bare .ws-sheet__head { min-height: 0; margin-bottom: var(--space-sm); }
.ws-sheet .ws-h2 { margin-bottom: var(--space-md); }
@media (min-width: 900px) {
  .ws-scrim { align-items: center; padding: var(--space-lg); }
  .ws-sheet { border-radius: 20px 6px 20px 6px; padding: var(--space-md) var(--space-lg) var(--space-lg); animation: ws-pop 240ms var(--ease); }
  .ws-scrim.is-closing .ws-sheet { animation: ws-fade-out 160ms ease-in forwards; }
  .ws-sheet__grab { display: none; }
}
.ws-sheet__foot { position: sticky; bottom: calc(-1 * var(--space-lg) - env(safe-area-inset-bottom)); margin-top: var(--space-lg);
  padding: var(--space-tight) 0 0; background: var(--paper); }
/* the desktop share sheet (shell.share) */
.ws-share .ws-h2 { margin-bottom: var(--space-xs); }
/* shell.confirm(): the in-page "are you sure?" sheet */
.ws-confirm .ws-h2 { margin-bottom: var(--space-sm); text-wrap: balance; }
.ws-confirm__text { color: var(--muted); margin-bottom: var(--space-md); max-width: 60ch; }
.ws-confirm__b { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.ws-share__lead { font-size: 15px; color: var(--muted); }
.ws-share__row { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.ws-share__url { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--field);
  padding: 0 var(--space-tight); font: 400 14px/1 var(--font-sans); color: var(--muted); text-overflow: ellipsis; }
.ws-share__url:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); color: var(--ink); }
.ws-adminchip { position: fixed; z-index: 60; left: max(var(--space-sm), env(safe-area-inset-left, 0px)); bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
  padding: var(--space-xs) var(--space-sm); border-radius: var(--r-btn); background: var(--ink); color: var(--teal-hi); font: 600 12px/1.2 var(--font-sans); text-decoration: none; opacity: 0.85; }
body.has-tabbar .ws-adminchip { bottom: calc(var(--tab-h) + var(--space-sm) + env(safe-area-inset-bottom, 0px)); }
.ws-pagebar { display: flex; justify-content: flex-end; margin-bottom: var(--space-xs); }
/* "You saved this in <project> · Open it" on a tool they already saved from (save.js savedInLine) */
.ws-savedin { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs) var(--space-sm); margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-tight); background: var(--teal-tint); border-radius: var(--r-tile); font-size: 14px; line-height: 1.35; }
.ws-savedin > .mdi { color: var(--teal-d); font-size: 20px; }
.ws-savedin > span:nth-child(2) { flex: 1; min-width: 0; }
.ws-savedin a:not(.ws-link) { color: var(--ink); font-weight: 600; }
.ws-savedin .ws-link { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.ws-sharebtn { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.ws-share__nets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); margin-top: var(--space-lg); }
.ws-share__net { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); padding: var(--space-tight) var(--space-xs);
  border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--field); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.ws-share__net .mdi { color: var(--teal-d); }
@media (hover: hover) { .ws-share__net:hover { border-color: var(--teal); background: var(--teal-tint); } }
.ws-share__nets + .ws-sr + .ws-share__row { margin-top: var(--space-md); }
.ws-lock { display: flex; align-items: center; gap: var(--space-sm); color: var(--muted); font-size: 14px; margin-top: var(--space-md); }

/* ── toast ──────────────────────────────────────────────────────────── */
.ws-toast {
  border: 1px solid #22304a;
  position: fixed; left: 50%; z-index: 120; bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
  transform: translate(-50%, 0); width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: var(--space-tight); padding: var(--space-tight) var(--space-md);
  background: var(--ink); color: var(--paper); border-radius: var(--r-tile); font-size: 15px;
  animation: ws-toast-in 320ms var(--ease);
}
.ws-toast.is-out { animation: ws-fade-out 200ms ease-in forwards; }
.ws-toast .mdi { color: var(--teal-hi); }
.ws-toast a, .ws-toast button { color: var(--teal-hi); font-weight: 600; border: 0; background: none; cursor: pointer; padding: 0; font: inherit; font-weight: 600; }
/* the save button: "Save to my projects" over what's being saved (save.js refresh) */
.ws-save { min-width: 0; max-width: 100%; }
.ws-save > .ws-btn { min-width: 0; max-width: 100%; }
.ws-save [data-ws-save-label] { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.15; min-width: 0; max-width: 100%; }
.ws-save__sub { font: 500 12px/1.2 var(--font-sans); opacity: 0.85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.has-tabbar .ws-toast { bottom: calc(var(--tab-h) + var(--space-md) + env(safe-area-inset-bottom)); }
body.has-cta .ws-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-tabbar .ws-toast { bottom: var(--space-lg); } }

/* ── banner + footer ────────────────────────────────────────────────── */
.ws-banner { display: flex; align-items: center; gap: var(--space-md); background: var(--ink); color: var(--paper);
  border-radius: var(--r-card); padding: var(--space-md) var(--space-lg); font-size: 15px; line-height: 1.45; }
.ws-banner b { color: var(--teal-hi); font-weight: 600; }
.ws-banner svg { flex-shrink: 0; }
/* the footer is the site's one footer (/css/site-footer.css, js/site-footer.js); here only its gap above */
body.ws-page .sf { margin-top: var(--space-2xl); }

/* empty state */
.ws-empty { text-align: center; padding: var(--space-xl) var(--space-md); }
.ws-empty .ws-btn { margin-top: var(--space-md); }

/* project hero band */
.ws-band { position: relative; height: 112px; border-radius: var(--r-card); overflow: hidden; background: var(--teal-tint); }
.ws-band svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ws-band__chip { position: absolute; left: var(--space-tight); bottom: var(--space-tight); height: 30px; padding: 0 var(--space-tight);
  display: inline-flex; align-items: center; gap: var(--space-xs); border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 14px/1 var(--font-sans); }
.ws-expand { padding: 0 var(--space-md) var(--space-md); }

/* reveal */
.ws-in { animation: ws-rise 480ms var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }

/* The page's own script builds most of the main column. It stays invisible until that
   script has run (shell.js adds .ws-ready on DOMContentLoaded), then fades in, so nothing
   paints half-built and jumps into place. A fallback shows it after 1.5 s even if a script failed.
   An app page (data-page="tool-…") shows the top of its column at once: the eyebrow, the H1, the
   lede and the answer under it (fix-it and chart pages) are in the HTML, so the first and largest
   paints don't wait for the scripts (Lighthouse 2026-11-21: 4.5 s to the first paint on a phone
   before). The header's and the desktop back row's heights are held (#ws-header,
   #ws-flowhead:empty), so that top never moves. Its other children fade in on .ws-ready with no
   fill: a finished animation with fill makes each one a stacking context, and a later section
   would paint over the fixed save bar. */
body.ws-page:not([data-page^="tool-"]) .ws-main, body.ws-page .sf { animation: ws-fade 1ms 1.5s both; }
/* the build-log editor fills #editor after a fetch: hold the screen so the footer doesn't paint under the empty
   main and jump away (validation 2026-11-21: CLS 0.71 on phones, reached from another Workshop page) */
body[data-page="ws-log-editor"] #editor:empty, body[data-page="ws-log-editor"] #editor:has(> .lg-loading:only-child) { min-height: 100vh; }
body.ws-page.ws-ready:not([data-page^="tool-"]) .ws-main, body.ws-page.ws-ready .sf { animation: ws-fade 160ms var(--ease) both; }
body.ws-page[data-page^="tool-"]:not(.ws-ready) .ws-main > :not(#ws-flowhead, .ws-eyebrow, .ws-h1, .ws-sub, .ws-answer:not(.ws-answer--tool)) { animation: ws-fade 1ms 1.5s both; }
body.ws-page[data-page^="tool-"].ws-ready .ws-main > :not(#ws-flowhead, .ws-eyebrow, .ws-h1, .ws-sub, .ws-answer:not(.ws-answer--tool)) { animation: ws-fade 160ms var(--ease); }
/* repainted with the same content: no second reveal (shell.paint / shell.reserve) */
.ws-painted .ws-in, .ws-painted.ws-in { animation: none; }
/* a late card's spot, held at its last height (shell.reserve) */
.ws-skel { min-height: 88px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface);
  background-image: linear-gradient(90deg, transparent 0, rgba(11, 20, 38, 0.04) 50%, transparent 100%); background-size: 200% 100%;
  animation: ws-skel 1.4s ease-in-out infinite; }
.ws-rows .ws-skel { min-height: 64px; border: 0; border-radius: 0; }
.ws-row > .ws-skel { flex: 1; min-height: 40px; }
@keyframes ws-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes ws-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ws-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ws-fade-out { to { opacity: 0; } }
@keyframes ws-pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes ws-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ws-sheet-down { to { transform: translateY(100%); } }
@keyframes ws-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  @view-transition { navigation: none; }
}

/* desktop back + actions row on flow pages (the phone app bar holds them there) */
.ws-flowhead { display: none; }
@media (min-width: 900px) {
  .ws-flowhead { display: flex; align-items: center; gap: var(--space-xs); margin: 0 0 var(--space-md) calc(-1 * var(--space-md)); }
  /* the row's height before shell.js fills it, so an app page's H1 (shown at once) doesn't move down */
  #ws-flowhead:empty { display: block; height: 44px; margin-bottom: var(--space-md); }
  .ws-flowhead__act { color: var(--ink); }
}

/* inputs show focus on their container (ask box / field card), not a second ring */
.ws-ask input:focus-visible, .ws-field :is(input, select, textarea):focus-visible { outline: none; }
/* desktop: in a side column the action bar sits under the result, not floating over the list */
@media (min-width: 900px) { .ws-side .ws-cta { position: static; } }
@media (min-width: 900px) { .ws-side .ws-cta { margin-top: var(--space-tight); padding: 0; border: 0; background: none; } }

/* ── cut map (js/workshop/cut-map.js) ───────────────────────────────── */
/* A sheet / board drawn to scale with %-positioned boxes; labels adapt with
   container queries so a part only shows what fits. */
/* overflow stays visible: a cut number on an edge cut sits half outside the sheet */
.cm-sheet { position: relative; width: 100%; background: #ecdcbc; border: 1.5px solid #b89a6a; border-radius: 3px;
  background-image: repeating-linear-gradient(to bottom, rgba(154, 106, 58, 0.06) 0 2px, transparent 2px 9px); }
.cm-part, .cm-piece {
  position: absolute; background: var(--c, #9fe3d6); box-shadow: inset 0 0 0 1px rgba(11, 20, 38, 0.55);
  display: flex; align-items: center; justify-content: center; overflow: hidden; container-type: size;
  transition: opacity 200ms ease-out, filter 200ms ease-out, box-shadow 200ms ease-out; cursor: pointer;
}
.cm-part__in { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 2px; text-align: center; line-height: 1.1; min-width: 0; }
.cm-part__in b { font: 700 14px/1 var(--font-title); color: var(--ink); }
.cm-part__dims { font: 500 10px/1.2 var(--font-mono); color: rgba(11, 20, 38, 0.78); white-space: nowrap; margin-top: 2px; }
.cm-part__name { font: 500 11px/1.15 var(--font-sans); color: rgba(11, 20, 38, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-top: 2px; }
@container (max-height: 56px) { .cm-part__name { display: none; } }
@container (max-width: 64px) { .cm-part__name { display: none; } }
@container (max-height: 34px) { .cm-part__dims { display: none; } }
@container (max-width: 50px) { .cm-part__dims { display: none; } }
@container (max-width: 14px) { .cm-part__in b { display: none; } }
@container (max-height: 14px) { .cm-part__in b { display: none; } }
@container (min-width: 110px) and (min-height: 64px) { .cm-part__in b { font-size: 18px; } .cm-part__dims { font-size: 11px; } }
/* wide, short parts: one line */
@container (min-width: 150px) and (max-height: 34px) {
  .cm-part__in { flex-direction: row; gap: var(--space-sm); align-items: baseline; }
  .cm-part__dims { display: inline; margin-top: 0; }
}
/* tall, narrow parts: the label runs up the part, like on a drawing */
@container (max-aspect-ratio: 1/2) and (min-height: 90px) and (min-width: 22px) {
  .cm-part__in { writing-mode: vertical-rl; transform: rotate(180deg); }
  .cm-part__in b { margin-bottom: 4px; }
  .cm-part__dims { display: block; margin-top: 0; }
  .cm-part__name { display: none; }
}
.cm-off { position: absolute; background-image: repeating-linear-gradient(-45deg, rgba(154, 106, 58, 0.22) 0 1px, transparent 1px 6px);
  display: flex; align-items: center; justify-content: center; overflow: hidden; container-type: size; }
.cm-off.is-keep { background-color: rgba(250, 246, 236, 0.55); box-shadow: inset 0 0 0 1px rgba(154, 106, 58, 0.45); }
.cm-off span { font: 500 10px/1.1 var(--font-mono); color: var(--sand-d); text-align: center; padding: 2px; }
@container (max-width: 64px) { .cm-off span { display: none; } }
@container (max-height: 16px) { .cm-off span { display: none; } }

.cm-cut { position: absolute; pointer-events: none; z-index: 2; }
.cm-cut--rip { height: 0; border-top: 1.5px dashed rgba(11, 20, 38, 0.0); }
.cm-cut--cross { width: 0; border-left: 1.5px dashed rgba(11, 20, 38, 0.0); }
.cm-cut i {
  position: absolute; font: 700 10px/16px var(--font-sans); font-style: normal; color: var(--paper); background: var(--ink);
  min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; text-align: center; opacity: 0.82;
  transition: transform 200ms var(--ease), background 200ms ease-out, opacity 200ms ease-out;
}
.cm-cut--rip i { left: 3px; top: -8px; }
.cm-cut--cross i { top: 3px; left: -8px; }
.cm-cut.is-done i { background: var(--muted-2); opacity: 0.6; }
.cm-cut.is-now { z-index: 3; }
.cm-cut--rip.is-now { border-top: 3px solid var(--teal); margin-top: -1px; }
.cm-cut--cross.is-now { border-left: 3px solid var(--teal); margin-left: -1px; }
.cm-cut.is-now i { background: var(--teal); opacity: 1; transform: scale(1.25); }
.cm-board .cm-cut--cross i { top: -20px; }

/* highlighting: a page sets .is-focus on the map + .is-hl on the parts it means */
.cm-focus .cm-part, .cm-focus .cm-piece { opacity: 0.35; filter: saturate(0.4); }
.cm-focus .cm-part.is-hl, .cm-focus .cm-piece.is-hl { opacity: 1; filter: none; box-shadow: inset 0 0 0 2px var(--ink); }

.cm-boardwrap { min-width: 40%; }
.cm-board { position: relative; height: 40px; margin-top: 22px; background: #ecdcbc; border: 1.5px solid #b89a6a; border-radius: 3px;
  background-image: repeating-linear-gradient(to right, rgba(154, 106, 58, 0.07) 0 2px, transparent 2px 11px); }
.cm-piece { top: 0; bottom: 0; }
.cm-piece .cm-part__in { flex-direction: row; gap: var(--space-xs); align-items: baseline; }
.cm-piece .cm-part__dims { margin-top: 0; }
.ws-list__price.is-priced { color: var(--ink); display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
a.ws-list__price.is-priced .mdi { color: var(--teal-d); }
a.ws-list__price.is-priced:hover { color: var(--teal-d); }
.ws-list__total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--space-tight) 0 0; font-weight: 600; }
.ws-list__total small { display: block; font: 400 13px/1.3 var(--font-sans); color: var(--muted); margin-top: 2px; }
.ws-list__price.is-na { font: 500 13px/1.3 var(--font-sans); color: var(--muted); }
.ws-list__price.is-range { font: 600 14px/1.3 var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-list__plus { padding-top: var(--space-xs); }
.ws-list__plus b { font-size: 17px; }
.ws-list__total b { font: 700 20px/1 var(--font-title); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ── calculators (js/workshop/calc-kit.js) ──────────────────────────── */
/* The drawing follows the inputs; the inputs are groups of field cards; the side
   column holds the result card, the compare tile, DIY vs hiring, Save and the list. */
/* phones: one column in reading order (drawing, sizes, the answer, then the options and
   the list); desktop: sizes + options on the left, the answer sticky on the right */
@media (max-width: 899px) {
  .cc-split { display: flex; flex-direction: column; }
  .cc-split > div { display: contents; }
  .cc-split #draw { order: 1; } .cc-split #inputs { order: 2; } .cc-split #result { order: 3; margin-top: var(--space-lg); }
  .cc-split #extra { order: 4; } .cc-split #hire { order: 5; } .cc-split .ws-cta { order: 6; }
  .cc-split #options { order: 7; margin-top: var(--space-xl); } .cc-split .cc-listcard { order: 8; } .cc-split .cc-skillslot { order: 9; }
  .cc-split #remind, .cc-split #pro { order: 6; }   /* the "remind me" and quote cards follow Save, not the page top */
}
.cc-options { margin-top: var(--space-lg); }
.cc-draw { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: var(--space-sm) 0 var(--space-md); }
.cc-draw svg { width: 100%; max-width: 460px; height: auto; max-height: 280px; overflow: visible; }
.cc-draw text { font-family: var(--font-mono); }
.cc-inputs { display: grid; gap: var(--space-lg); }
.cc-group { display: grid; gap: var(--space-tight); }
.cc-group__title { font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.cc-area { display: grid; gap: var(--space-tight); padding: var(--space-md); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.cc-area__head { display: flex; align-items: center; gap: var(--space-sm); min-height: 32px; margin: calc(-1 * var(--space-xs)) calc(-1 * var(--space-sm)) 0 0; }
.cc-area__title { flex: 1; min-width: 0; font: 600 16px/1.25 var(--font-title); letter-spacing: -0.01em; }
.cc-area__title small { display: block; font: 400 13px/1.3 var(--font-sans); color: var(--muted); letter-spacing: 0; }
.cc-area__del { width: 36px; height: 36px; color: var(--muted); }
.cc-seg button { display: inline-flex; align-items: center; gap: var(--space-xs); height: 40px; padding: 0 var(--space-tight); font-size: 14px; }
.cc-seg button .mdi { margin-left: calc(-1 * var(--space-xs)); }
.cc-hint { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.cc-hint .mdi { color: var(--teal-d); margin-top: 0; }
.cc-hint b { color: var(--ink); font-weight: 600; }
.cc-add { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); width: 100%; min-height: 48px; padding: 0 var(--space-md);
  border: 1.5px dashed var(--line-2); border-radius: var(--r-card); background: transparent; color: var(--teal-d); font: 600 15px/1 var(--font-sans);
  cursor: pointer; transition: border-color 150ms ease-out, background 150ms ease-out; }
.cc-add:active { transform: scale(0.99); }
/* a − n + stepper inside a field card (doors, windows) */
.cc-step { cursor: default; }
.cc-step__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-top: 2px; }
.cc-step__in b { font: 600 17px/1.35 var(--font-sans); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center; }
.cc-step__btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-2);
  border-radius: 50%; background: var(--field); color: var(--ink); cursor: pointer; transition: border-color 150ms ease-out, background 150ms ease-out; }
.cc-step__btn:active { transform: scale(0.94); }
/* tap targets reach 44px without changing the look (review 2026-11-17: steppers were 32 × 32, price links 20 tall) */
.cc-step__btn { position: relative; }
.cc-step__btn::before { content: ""; position: absolute; inset: -6px; }
a.ws-list__price { position: relative; }
a.ws-list__price::before { content: ""; position: absolute; inset: -12px -4px; }
.cc-reset { justify-self: start; margin-left: calc(-1 * var(--space-md)); }
.cc-opts .ws-row { min-height: 56px; }
.cc-toggle { cursor: pointer; }
.cc-field.is-bad { border-color: #b42318; }
/* the up / down arrows on a number box */
.cc-field.has-spin { padding-right: 48px; }
.cc-field.has-spin .ws-field__unit { right: 48px; }
.cc-spin { position: absolute; top: var(--space-xs); bottom: var(--space-xs); right: var(--space-xs); width: 36px; display: flex; flex-direction: column;
  border-left: 1px solid var(--line); padding-left: var(--space-xs); }
.cc-spin button { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--muted);
  border-radius: 6px; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: background 120ms ease-out, color 120ms ease-out; }
.cc-spin button:active { background: var(--teal-tint); color: var(--teal-d); }
.cc-field.is-bad:focus-within { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14); }
.cc-row2 { display: flex; align-items: center; justify-content: space-between; gap: var(--space-tight); flex-wrap: wrap; }
.cc-row2 > span { font: 600 15px/1.3 var(--font-sans); }

/* a switch (checkbox) */
.ws-switch { -webkit-appearance: none; appearance: none; flex-shrink: 0; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 13px;
  background: var(--line-2); cursor: pointer; transition: background 160ms ease-out; }
.ws-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(11, 20, 38, 0.2); transition: transform 200ms var(--ease); }
.ws-switch:checked { background: var(--teal); }
.ws-switch:checked::after { transform: translateX(18px); }
.ws-switch:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* the result card's extras */
.ws-result li span small { color: var(--on-ink-muted); font-size: 13px; }
.cc-res__price { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-tight); margin-top: var(--space-md);
  padding-top: var(--space-md); border-top: 1px solid #22304a; color: var(--on-ink-muted); font-size: 14px; }
.cc-res__price b { font: 700 24px/1 var(--font-title); letter-spacing: -0.02em; color: var(--paper); font-variant-numeric: tabular-nums; }

/* bags vs truck / bags vs bulk */
.cc-compare { margin-top: var(--space-tight); }
.cc-compare__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.cc-tile { position: relative; padding: var(--space-tight) var(--space-md) var(--space-md); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile); }
.cc-tile.is-pick { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.cc-tile__tag { position: absolute; top: calc(-1 * var(--space-sm)); right: var(--space-tight); height: 18px; padding: 0 var(--space-xs); border-radius: 4px;
  background: var(--teal); color: var(--on-teal); font: 600 10px/18px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.cc-tile__what { display: flex; align-items: center; gap: var(--space-xs); font: 600 14px/1.2 var(--font-sans); }
.cc-tile__what .mdi { color: var(--teal-d); }
.cc-tile { min-width: 0; }
.cc-tile__cost { overflow-wrap: anywhere; display: block; margin-top: var(--space-sm); font: 700 22px/1 var(--font-title); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cc-tile__sub { display: block; margin-top: var(--space-xs); font-size: 13px; line-height: 1.35; color: var(--muted); }
.cc-compare__say { margin-top: var(--space-sm); font-size: 14px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
/* the deck joist span chart: cells that span it shaded, the answer outlined */
.js-chart { overflow-x: auto; }
.js-chart .pl-table td small { font-weight: 400; }
.js-chart td.js-ok { background: var(--teal-tint); }
.js-chart td.js-pick { box-shadow: inset 0 0 0 2px var(--teal-d); font-weight: 700; }
.cc-compare__say a { color: var(--teal-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* DIY vs hiring */
.cc-hire { display: flex; gap: var(--space-tight); align-items: flex-start; margin-top: var(--space-md); }
.cc-hire .mdi { color: var(--sand-d); }
.cc-hire p { font-size: 17px; line-height: 1.35; }
.cc-hire b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cc-nw { white-space: nowrap; }
.cc-hire small { display: block; margin-top: var(--space-xs); font-size: 13px; line-height: 1.4; color: var(--muted); }
/* the honest line under DIY vs a pro / a kit (calc-kit compare()), and the tools you keep */
.cc-hire .cc-verdict { display: block; margin-top: var(--space-xs); font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.cc-hire .cc-tools { display: flex; gap: var(--space-xs); align-items: flex-start; margin-top: var(--space-xs); font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.cc-hire .cc-tools .mdi { color: var(--muted); margin-top: 2px; }

/* "How we work it out": the formula, the numbers we use, the questions people ask */
.cc-learn { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--line); }
.cc-learn__grid { display: grid; gap: var(--space-xl); }
@media (min-width: 900px) { .cc-learn__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--space-2xl); } }
.cc-learn h2 { font: 700 28px/1.1 var(--font-title); letter-spacing: -0.03em; }
.cc-learn h3 { font: 600 18px/1.25 var(--font-title); letter-spacing: -0.015em; margin-top: var(--space-lg); }
.cc-learn p, .cc-learn li { font-size: 16px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.cc-learn p + p { margin-top: var(--space-tight); }
.cc-learn ol { margin: var(--space-tight) 0 0; padding-left: var(--space-lg); display: grid; gap: var(--space-sm); }
.cc-formula { margin-top: var(--space-tight); padding: var(--space-tight) var(--space-md); background: var(--field); border: 1px solid var(--line);
  border-radius: var(--r-tile); font: 500 13px/1.7 var(--font-mono); color: var(--ink); overflow-x: auto; white-space: pre-wrap; }
.cc-facts { margin: var(--space-tight) 0 0; display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); overflow: hidden; }
.cc-facts dt, .cc-facts dd { margin: 0; padding: var(--space-sm) var(--space-md); font-size: 14px; line-height: 1.4; border-top: 1px solid var(--line); }
.cc-facts dt:first-of-type, .cc-facts dt:first-of-type + dd { border-top: 0; }
.cc-facts dt { color: var(--muted); }
.cc-facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-faq { margin-top: var(--space-tight); border-top: 1px solid var(--line); }
.cc-faq details { border-bottom: 1px solid var(--line); }
.cc-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-tight); min-height: 52px; padding: var(--space-tight) 0;
  font: 600 16px/1.35 var(--font-sans); cursor: pointer; list-style: none; }
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after { content: "expand_more"; font-family: 'Material Symbols Rounded'; font-size: 22px; color: var(--muted); transition: transform 200ms var(--ease);
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; }
.cc-faq details[open] summary::after { transform: rotate(180deg); }
.cc-faq details > div { padding: 0 0 var(--space-md); }
.cc-faq details p { font-size: 15px; color: var(--ink); }
.cc-more { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }

@media (hover: hover) {
  .cc-add:hover { border-color: var(--teal); background: var(--teal-tint); }
  .cc-step__btn:hover { border-color: var(--teal); background: var(--teal-tint); }
  .cc-spin button:hover { background: var(--teal-tint); color: var(--teal-d); }
  .cc-area__del:hover { color: var(--ink); }
  .cc-faq summary:hover { color: var(--teal-d); }
  .cc-toggle:hover { background: rgba(11, 20, 38, 0.025); }
}
@media print {
  .ws-bar, .ws-desk, .ws-flowhead, .ws-cta, .cc-add, .cc-reset, .cc-area__del, .cc-learn, [data-ws-list="copy"] { display: none !important; }
  /* screen-only parts that printed on every sheet (review 2026-11-17): the HandyMate bubble (fixed: on every
     page), toasts, the Community corner, guides, offers and ways on; on a plan, its option cards */
  .hmate-fab, .hmate-panel, .hmate-scrim, .hmate-peek, .ws-toast, .ws-adminchip, .ws-tabbar, .sf, .ws-savedin, [data-ws-room], .cq-room,
  .gd, .pc-offer, .gm-start, .ws-nextstep, .cc-skills, [data-ws-guides], [data-ws-videos] { display: none !important; }
  body:has(.pl-sections) #inputs, body:has(.pl-sections) #options { display: none !important; }
  body.ws-page { background: #fff; }
  .ws-result { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* compare tiles you pick between (bags or a truck) */
.cc-tile--pick { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color 150ms ease-out, background 150ms ease-out; }
.cc-tile--pick:active { transform: scale(0.99); }
.cc-tile--pick.is-on { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #f2fbf8; }
.cc-tile__check { margin-left: auto; color: var(--muted-2); display: inline-flex; }
.cc-tile--pick.is-on .cc-tile__check { color: var(--teal-d); }
.cc-tile--pick .cc-tile__tag { background: var(--sand-d); color: #fff; }   /* white on sand-d 4.8:1 (ink was 3.9:1) */
@media (hover: hover) { .cc-tile--pick:hover { border-color: var(--teal); } }
/* a quiet "more" row inside a card (Door and window sizes) */
.cc-more-btn { display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 44px; padding: 0 var(--space-xs); border: 0; background: none;
  color: var(--teal-d); font: 600 14px/1.3 var(--font-sans); text-align: left; cursor: pointer; border-radius: var(--r-btn); }
.cc-more-btn > span:not(.mdi) { flex: 1; min-width: 0; }
.cc-more-btn small { display: block; font: 400 13px/1.35 var(--font-sans); color: var(--muted); }
.cc-sizes { display: grid; gap: var(--space-tight); }
@media (hover: hover) { .cc-more-btn:hover { background: var(--teal-tint); } }
/* ── plans (js/workshop/plan-kit.js) ────────────────────────────────── */
/* the square footage calculator: walk the walls (a turn, then the wall's length, per row) */
.sq-shapes { margin-bottom: var(--space-sm); }
.sq-use { margin-top: var(--space-sm); }
.sq-walls { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.sq-wall { display: flex; align-items: flex-end; gap: var(--space-sm); }
.sq-wall .ws-field { flex: 1; min-width: 0; }
.sq-turn { flex: none; flex-wrap: nowrap; gap: var(--space-xs); }
.sq-turn button { width: 40px; padding: 0; justify-content: center; }
.sq-turn button .mdi { margin-left: 0; }
.sq-start { flex: none; display: inline-flex; align-items: center; gap: var(--space-xs); width: calc(4 * 40px + 3 * var(--space-xs)); height: 40px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sq-wallbtns { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.sq-wallbtns .cc-add { flex: 1; }
.sq-rules { margin: 0; padding-left: var(--space-md); display: grid; gap: var(--space-sm); }
@media (max-width: 380px) { .sq-turn button { width: 34px; } .sq-start { width: calc(4 * 34px + 3 * var(--space-xs)); } }

/* the pocket tools: the bubble level and the online ruler (frontend/apps/bubble-level/, online-ruler/) */
.pk-inst { max-width: 420px; margin: 0 auto; }
.pk-inst svg { display: block; width: 100%; height: auto; }
.ws-result.pk-ok .ws-result__big b { color: var(--teal); }
.pk-btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.pk-cal { margin-top: var(--space-md); display: grid; gap: var(--space-sm); justify-items: start; }
.pk-cal p { margin: 0; }
.pk-note { margin-top: var(--space-sm); }
.pk-target-pick { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); }
.ws-result li.pk-target b { display: inline-flex; }
.ws-result li.pk-target.is-ok b { color: var(--teal); }
.ws-result li.pk-target.is-low b { color: #f3b4a6; }
.pk-set p { margin: var(--space-md) 0 var(--space-sm); }
.pk-card { border: 2px solid var(--ink); border-radius: 12px; background: repeating-linear-gradient(45deg, var(--teal-tint), var(--teal-tint) 8px, transparent 8px, transparent 16px);
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-2); max-width: none; }
.pk-coin { border: 2px solid var(--ink); border-radius: 50%; background: var(--teal-tint); }
.pk-adj { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); max-width: 420px; }
.pk-adj input[type=range] { flex: 1; accent-color: var(--teal-d); }
.pk-ruler { overflow-x: auto; scroll-margin-top: calc(var(--space-2xl) + var(--space-lg)); }   /* below the sticky header */
.pk-ruler__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.pk-ruler__read { flex: 1 1 100%; font-size: 18px; min-height: 28px; }
.pk-ruler__svg { display: block; touch-action: none; cursor: crosshair; border: 1px solid var(--line-2); }
.pk-tabs { margin-top: var(--space-lg); }
.pk-stage { max-width: 640px; margin: 0 auto; }
.pk-photo { display: block; width: 100%; height: auto; max-height: 70vh; touch-action: none; border: 1px solid var(--line-2); border-radius: var(--r-card); background: #fbf6e6; }
.pk-dial { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.pk-meter { display: grid; gap: var(--space-md); }
.pk-meter__big { font: 700 72px/1 var(--font-title); }
.pk-band { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #14b8a6 0 58.3%, #f2c14e 58.3% 70.8%, #d4462b 70.8%); position: relative; }   /* 70 and 85 dBA on a 0–120 scale */
.ws-result.pk-loud .ws-result__big b { color: #f3b4a6; }
.pk-band i { position: absolute; top: -5px; width: 4px; height: 24px; background: var(--ink); border-radius: 2px; transform: translateX(-2px); }
.pk-graph { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.pk-print { display: none; }
@media print {
  /* the sheet's size and turn are set in the ruler's and the floor plan's own pages (an @page here turned every page's printout) */
  /* only on the ruler page (the rule once hid every Workshop page's content in print, the plans' printouts too) */
  body.ws-page:has(.pk-print) > *:not(main), body.ws-page:has(.pk-print) main > *:not(.pk-print) { display: none !important; }
  .pk-print { display: block !important; color: #000; font: 12pt/1.4 sans-serif; }
  .pk-print svg { display: block; margin: 0.15in 0; }
  .pk-print__sq { display: inline-block; width: 1in; height: 1in; border: 1px solid #000; vertical-align: middle; margin-left: 0.1in; }
}

/* the roofing calculator: the pitch field + its phone meter */
.rf-pitch { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-sm); margin-top: var(--space-sm); }
.rf-pitch .ws-field { flex: 1 1 10em; }
.rf-meter { display: grid; gap: var(--space-md); }
.rf-meter__how { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
.rf-meter__read { display: flex; align-items: baseline; gap: var(--space-sm); min-height: 56px; font-size: 16px; }
.rf-meter__read b { font: 700 44px/1 var(--font-title); }

/* the floor plan creator: floors, a toolbar, the canvas (an SVG in feet) beside the panel */
.fp-floors { margin-bottom: var(--space-sm); }
.fp-tools { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.fp-tools .ws-btn.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 599px) { .fp-tools .ws-btn { min-height: 40px; padding: 0 var(--space-tight); font-size: 14px; } }   /* phones: the toolbar in two short rows */
.fp-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-md); align-items: start; }
@media (max-width: 899px) { .fp-split { grid-template-columns: minmax(0, 1fr); } }
.fp-canvas { position: relative; height: min(68vh, 640px); min-height: 360px; border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; background: #fbf8f0; touch-action: none; }
.fp-svg { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
.fp-svg.is-placing { cursor: crosshair; }
.fp-room, .fp-item { cursor: grab; }
.fp-zoom { position: absolute; right: var(--space-sm); bottom: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-xs); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--space-xs); }
.fp-hint { position: absolute; left: var(--space-sm); right: var(--space-sm); top: var(--space-sm); display: flex; align-items: center; gap: var(--space-sm); background: var(--ink); color: var(--paper); border-radius: var(--r-card); padding: var(--space-xs) var(--space-md); font-weight: 600; }
.fp-hint .ws-btn { margin-left: auto; color: var(--paper); }
.fp-panel { display: grid; gap: var(--space-sm); align-content: start; max-height: min(78vh, 760px); overflow: auto; }
.fp-ph { display: flex; align-items: center; justify-content: space-between; }
.fp-h3 { font: 700 16px/1.3 var(--font-title); margin: var(--space-md) 0 0; }
.fp-area { margin: var(--space-sm) 0 0; }
.fp-open { display: grid; gap: var(--space-sm); padding: var(--space-tight); }
.fp-open select { font: inherit; border: 0; background: transparent; width: 100%; }
.fp-kinds { margin-top: var(--space-sm); }
.fp-furn { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.fp-furn small { opacity: .7; }
.fp-sum { margin-top: var(--space-sm); }
.fp-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.fp-print { display: none; }
@media print {
  body.ws-page:has(.fp-print:not(:empty)) > *:not(main), body.ws-page:has(.fp-print:not(:empty)) main > *:not(.fp-print) { display: none !important; }
  body.ws-page:has(.fp-print:not(:empty)) .fp-print { display: block !important; }
  .fp-sheet { page-break-after: always; break-after: page; color: #000; font: 10pt/1.4 sans-serif; }
  .fp-sheet:last-child { page-break-after: auto; break-after: auto; }
}

/* the bathroom remodel estimator: a part = its name, its choice, who does it; the part-by-part table */
.rm-part { display: grid; gap: var(--space-sm); }
.rm-part__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-sm); }
.rm-part__head span { font-size: 14px; color: var(--muted); }
.rm-table th small { display: block; font-weight: 400; color: var(--muted); }
.rm-table td.rm-src { white-space: normal; min-width: 14em; font-size: 13px; color: var(--muted); }
.rm-table tr.rm-total th, .rm-table tr.rm-total td { border-top: 2px solid var(--ink); }
.rm-bench { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.rm-bench li { display: flex; gap: var(--space-sm); align-items: baseline; }
.rm-bench small { display: block; color: var(--muted); }

/* the paint visualizer: the photo (before / after with a slider), the colors tried, the panel */
.pv-stage { position: relative; }
.pv-drop { display: grid; justify-items: center; gap: var(--space-sm); padding: var(--space-2xl) var(--space-lg); border: 2px dashed var(--line-2); border-radius: var(--r-card); background: var(--surface); text-align: center; cursor: pointer; }
.pv-drop span { color: var(--muted); font-size: 14px; }
.pv-pic { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.pv-pic img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.pv-cmp .pv-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; clip-path: inset(0 0 0 var(--cut, 50%)); }   /* the model may answer at another size: stretched to the photo's box so the halves line up */
.pv-tag { position: absolute; top: var(--space-sm); padding: var(--space-xs) var(--space-sm); border-radius: var(--r-btn); background: rgba(11, 20, 38, .72); color: #fff; font-size: 13px; font-weight: 600; }
.pv-tag--b { left: var(--space-sm); } .pv-tag--a { right: var(--space-sm); }
.pv-slider { width: 100%; margin-top: var(--space-sm); accent-color: var(--teal-d); }
.pv-busy { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-sm); font-weight: 600; color: var(--teal-d); }
.pv-panel { display: grid; gap: var(--space-xs); align-content: start; }
.pv-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-xs); margin: var(--space-xs) 0 var(--space-sm); }
.pv-swatches button { aspect-ratio: 1; padding: var(--space-xs); border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; }
.pv-swatches button[aria-pressed="true"] { border-color: var(--ink); }
.pv-swatches i { display: block; width: 100%; height: 100%; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(11, 20, 38, .15); }
.pv-any input[type=color] { width: 100%; height: 36px; border: 0; padding: 0; background: none; }
.pv-next { margin-top: var(--space-md); display: grid; gap: var(--space-xs); }
.pv-home { margin-top: var(--space-sm); }
.pv-home select { font: inherit; border: 0; background: transparent; width: 100%; }
.pv-tried { margin-top: var(--space-md); }
.pv-thumbs { display: flex; gap: var(--space-sm); overflow-x: auto; margin-top: var(--space-xs); padding-bottom: var(--space-xs); }
.pv-thumbs button { flex: none; width: 120px; border: 2px solid transparent; border-radius: var(--r-card); background: var(--surface); padding: var(--space-xs); cursor: pointer; text-align: left; }
.pv-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.pv-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.pv-thumbs span { display: flex; align-items: center; gap: var(--space-xs); font-size: 12px; margin-top: var(--space-xs); }
.pv-thumbs i { width: 12px; height: 12px; border-radius: 3px; flex: none; }

/* The plan pages: the calculators' layout, a bigger 3D drawing with its overall sizes,
   then full-width cards: Cut list (parts + boards to buy with cut maps), Steps (a small
   picture of the build so far each), Tools. Pointing at a part lights it up everywhere. */
.pl-draw { flex-direction: column; align-items: stretch; min-height: 260px; padding-top: 0; }
.pl-drawing { display: grid; gap: var(--space-tight); }
.pl-view { display: inline-flex; justify-self: end; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); }
.pl-view button { min-height: 32px; padding: 0 var(--space-tight); border: 0; border-radius: 8px 3px 8px 3px; background: none; color: var(--muted);
  font: 600 13px/1 var(--font-sans); cursor: pointer; transition: background 150ms ease-out, color 150ms ease-out; }
.pl-view button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pl-svg { display: flex; justify-content: center; }
.pl-svg svg { width: 100%; max-width: 620px; height: auto; max-height: 360px; overflow: visible; }
.pl-svg polygon, .pl-step__pic polygon { transition: opacity 180ms ease-out; }
.pl-focus .pl-svg polygon:not(.is-hl), .pl-focus .pl-step__pic polygon:not(.is-hl) { opacity: 0.22; }
.pl-focus .sk-badge:not(.is-hl) { opacity: 0.3; }
.pl-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; }
.pl-chip { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 32px; padding: 0 var(--space-sm) 0 var(--space-xs);
  border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--field); font: 500 13px/1 var(--font-sans); color: var(--ink); cursor: pointer;
  transition: border-color 150ms ease-out, background 150ms ease-out; }
.pl-chip b, .pl-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 var(--space-xs);
  border-radius: 6px 2px 6px 2px; background: var(--c, var(--teal-tint)); box-shadow: inset 0 0 0 1px rgba(11, 20, 38, 0.35); font: 700 12px/1 var(--font-title); color: var(--ink); }
.pl-chip small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pl-chip.is-hl { border-color: var(--teal); background: var(--teal-tint); }
.pl-letter { vertical-align: 1px; margin: 0 1px; cursor: pointer; }
.pl-focus .pl-letter.is-hl, .pl-focus .pl-table tr.is-hl .pl-letter { box-shadow: 0 0 0 2px var(--teal); }

.pl-sections { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
.pl-sec { padding: var(--space-lg); }
/* the plan: one tab at a time (Shopping list, Cut list, Cut maps, Steps, Tools) under a tab bar that stays
   under the header while you read a long tab */
.pl-plan { display: grid; gap: var(--space-md); min-width: 0; scroll-margin-top: var(--bar-h); }
.pl-tabs { position: sticky; top: var(--bar-h); z-index: 20; display: flex; gap: var(--space-lg); overflow-x: auto; scrollbar-width: none;
  background: var(--paper); border-bottom: 1px solid var(--line-2); }
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tabs button { position: relative; display: inline-flex; align-items: baseline; gap: var(--space-xs); flex-shrink: 0; min-height: 48px; padding: var(--space-tight) 0;
  border: 0; background: none; font: 600 16px/1.2 var(--font-title); letter-spacing: -0.01em; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color 150ms ease-out; }
.pl-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px 2px 0 0; background: transparent; transition: background 150ms ease-out; }
.pl-tabs button[aria-selected="true"] { color: var(--ink); }
.pl-tabs button[aria-selected="true"]::after { background: var(--teal); }
.pl-tabs button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: var(--r-btn); }
.pl-tabs__n { font: 500 12px/1 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-tabs__n:empty { display: none; }
.pl-panel .pl-sec__head { justify-content: flex-start; }
.pl-panel .pl-sec__head .ws-btn { margin-left: auto; }
.pl-panel__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the tab says it; printed */
/* the full list: two columns on a wide screen */
.ws-list__grp + .ws-list__grp { margin-top: var(--space-md); }   /* dropped at the top of a column */
@media (min-width: 900px) {
  .pl-panel .ws-list__grps { columns: 2; column-gap: var(--space-2xl); }
  .pl-panel .ws-list__grp { break-inside: avoid; }
}
@media (min-width: 900px) { .pl-plan, .pl-tabs { scroll-margin-top: 64px; } .pl-tabs { top: 64px; } }
/* the summary beside the drawing */
.ws-list--sum .ws-list__group .ws-list__name { font-weight: 600; }
.ws-list--sum .ws-list__group small { font: 400 13px/1.3 var(--font-sans); color: var(--muted); margin-left: var(--space-xs); }
.pl-tabs__s { display: none; }
.ws-list--sum + .ws-list__foot [data-ws-list="full"] { order: -1; }
.pl-table td small.pl-mat { display: none; }
.cc-skillslot { margin-top: var(--space-lg); }
.pl-sec__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-tight); flex-wrap: wrap; margin-bottom: var(--space-md); }
.pl-sec__head h2 { font: 700 24px/1.15 var(--font-title); letter-spacing: -0.025em; }
.pl-sec__head .ws-btn { margin-right: calc(-1 * var(--space-sm)); }
.pl-sub { font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: var(--space-lg) 0 var(--space-tight); }
.pl-warn { display: grid; gap: var(--space-sm); margin-bottom: var(--space-md); padding: var(--space-tight) var(--space-md); background: var(--sand-tint);
  border: 1px solid #ecd6b8; border-radius: var(--r-tile); }
.pl-warn p { display: flex; gap: var(--space-sm); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.pl-warn .mdi { color: var(--sand-d); }
/* the cut list */
.pl-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pl-table th { text-align: left; padding: 0 var(--space-sm) var(--space-sm); font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line-2); }
.pl-table td { padding: var(--space-sm); border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.35; }
.pl-table th:first-child, .pl-table td:first-child { padding-left: 0; }
.pl-table td:first-child { font-weight: 600; }
.pl-table td:first-child .pl-letter { margin-right: var(--space-sm); }
/* the part: its letter beside the name, and a wrapped name stays a block next to the letter */
.pl-part { display: flex; align-items: flex-start; gap: var(--space-sm); min-width: 0; }
.pl-table td:first-child .pl-part .pl-letter { margin-right: 0; flex-shrink: 0; }
.pl-part > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.pl-nb { white-space: nowrap; }
.pl-table td small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.pl-table td:nth-child(2), .pl-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-table td:nth-child(2) { font-weight: 600; }
.pl-table tr { transition: background 150ms ease-out; cursor: pointer; }
.pl-table tr.is-hl td { background: var(--teal-tint); }
@media (max-width: 599px) {
  /* three columns on a phone: the wood goes under the size */
  .pl-table th:last-child, .pl-table td:last-child { display: none; }
  .pl-table td small.pl-mat { display: block; }
  .pl-tabs { gap: var(--space-tight); }
  .pl-tabs button { font-size: 15px; }
  .pl-tabs__n, .pl-tabs__l { display: none; }
  .pl-tabs__s { display: inline; }
  .pl-table { font-size: 14px; }
  .pl-table td.pl-num { white-space: normal; }
  .pl-table th:first-child { width: 58%; }   /* the part's name and note get the room */
  .pl-sec { padding: var(--space-md); min-width: 0; }
}
.pl-boards { display: grid; gap: var(--space-md); }
@media (min-width: 900px) { .pl-boards { grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-lg); } }
.pl-board__head { display: flex; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-sm); }
.pl-board__head b { font: 600 15px/1.2 var(--font-title); }
.pl-board__head span { font-size: 13px; color: var(--muted); }
.pl-board__cuts { margin-top: var(--space-xs); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-boards .cm-piece.is-hl { box-shadow: inset 0 0 0 2px var(--ink); filter: saturate(1.2); }
.pl-focus .pl-boards .cm-piece:not(.is-hl) { opacity: 0.35; }
.pl-wait { display: flex; align-items: center; gap: var(--space-sm); }
.pl-wait .mdi { animation: pl-spin 900ms linear infinite; color: var(--teal-d); }
@keyframes pl-spin { to { transform: rotate(360deg); } }
/* the steps */
.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); counter-reset: none; }
@media (min-width: 700px) { .pl-steps { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); } }
.pl-step { display: grid; align-content: start; gap: var(--space-tight); padding: var(--space-md); background: var(--field); border: 1px solid var(--line); border-radius: var(--r-card); }
.pl-step__pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: var(--space-sm);
  background: var(--paper); border-radius: var(--r-tile); background-image: radial-gradient(rgba(11, 20, 38, 0.07) 1px, transparent 1px); background-size: 14px 14px; }
.pl-step__pic svg { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.pl-step__body { display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs) var(--space-sm); align-items: baseline; }
.pl-step__n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font: 600 12px/1 var(--font-mono); }
.pl-step h3 { font: 600 17px/1.3 var(--font-title); letter-spacing: -0.015em; }
.pl-step p { grid-column: 1 / -1; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.pl-step--nopic { align-content: start; }
/* the tools */
.pl-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-sm) var(--space-lg); }
.pl-tools li { display: flex; align-items: center; gap: var(--space-tight); min-height: 40px; font-size: 15px; }
.pl-tools .mdi { color: var(--teal-d); }
.pl-soil { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--line); }
@media (hover: hover) {
  .pl-view button:not([aria-pressed="true"]):hover { color: var(--ink); background: var(--teal-tint); }
  .pl-chip:hover { border-color: var(--teal); }
  .pl-table tr:hover td { background: rgba(20, 184, 166, 0.06); }
}
@media (prefers-reduced-motion: reduce) { .pl-wait .mdi { animation: none; } }
@media print {
  .pl-view, .pl-sec__head .ws-btn, .pl-soil, .pl-chips, .pl-tabs, .ws-list--sum + .ws-list__foot [data-ws-list="full"] { display: none !important; }
  /* every tab prints, under its own heading */
  .pl-panel[hidden] { display: block !important; }
  .pl-panel__h { position: static; width: auto; height: auto; overflow: visible; clip: auto; font: 700 22px/1.15 var(--font-title); }
  .pl-sections { margin-top: var(--space-lg); }
  .pl-sec, .pl-step { break-inside: avoid; }
  .pl-steps { grid-template-columns: 1fr 1fr; }
  .cm-board, .cm-piece, .pl-letter { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* the plans index (/apps/plans/) */
.pl-index { display: grid; gap: var(--space-md); }
@media (min-width: 760px) { .pl-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); } }
.pl-fam { position: relative; display: grid; align-content: start; gap: var(--space-md); padding: var(--space-md); color: var(--ink); text-decoration: none;
  transition: border-color 150ms ease-out, transform 200ms var(--ease); }
.pl-fam__pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: var(--space-md); background: var(--paper); border-radius: var(--r-tile);
  background-image: radial-gradient(rgba(11, 20, 38, 0.07) 1px, transparent 1px); background-size: 14px 14px; }
.pl-fam__pic svg { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.pl-fam__body h2 { font: 700 21px/1.2 var(--font-title); letter-spacing: -0.02em; }
.pl-fam__body p { margin-top: var(--space-xs); font-size: 15px; line-height: 1.45; color: var(--muted); }
.pl-fam__size { display: inline-block; margin-top: var(--space-sm); padding-right: var(--space-lg); font: 500 12px/1.3 var(--font-mono); color: var(--teal-d); }
.pl-fam__go { position: absolute; right: var(--space-md); bottom: var(--space-md); color: var(--teal-d); }
.pl-soon { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }
.pl-soon__item { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 40px; padding: 0 var(--space-tight); border: 1px dashed var(--line-2);
  border-radius: var(--r-btn); color: var(--muted); font-size: 14px; }
@media (hover: hover) { .pl-fam:hover { border-color: var(--teal); transform: translateY(-2px); } }
.pl-warn--side { margin: var(--space-md) 0 0; }
.pl-hire-note { font-size: 14px; color: var(--muted); }
.pl-maps { display: grid; gap: var(--space-lg); }
.pl-boards--sheets { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pl-chipsbox { justify-self: center; text-align: center; }
.pl-chipsbox summary { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 36px; padding: 0 var(--space-tight); border: 1px solid var(--line);
  border-radius: var(--r-btn); background: var(--field); font: 600 13px/1 var(--font-sans); color: var(--teal-d); cursor: pointer; list-style: none; }
.pl-chipsbox summary::-webkit-details-marker { display: none; }
.pl-chipsbox[open] summary { margin-bottom: var(--space-sm); }
@media (hover: hover) { .pl-chipsbox summary:hover { border-color: var(--teal); } }

/* ── closet designer (js/workshop/closet-editor.js) ──────────────────── */
/* The front view: an elevation you edit. Tap a section (a light outline), drag a divider's
   grip; the selected section is tinted teal. The section card below the drawing changes it. */
.pl-drawing--front { gap: var(--space-sm); }
.cl-front { display: flex; justify-content: center; touch-action: pan-y; }
.cc-draw .cl-svg { width: 100%; max-width: 640px; height: auto; max-height: 520px; overflow: visible; user-select: none; -webkit-user-select: none; }
.cl-sec { cursor: pointer; stroke: transparent; stroke-width: 2; transition: fill 150ms ease-out, stroke 150ms ease-out; }
.cl-sec.is-sel { fill: #e3f3ef; stroke: var(--teal-d); stroke-width: 2.5; }
.cl-sec:focus-visible { outline: none; stroke: var(--teal); stroke-width: 3; }
.cl-handle { cursor: ew-resize; color: var(--teal-d); touch-action: none; outline: none; }
.cl-grip { fill: var(--field); stroke: var(--teal-d); stroke-width: 1.5; transition: fill 150ms ease-out; }
.cl-handle:focus-visible .cl-grip, .is-dragging .cl-grip { fill: var(--teal-tint); stroke-width: 2.5; }
.is-dragging { cursor: ew-resize; }
.cl-nosel, .cl-nosel * { user-select: none !important; -webkit-user-select: none !important; }
.cl-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-md); flex-wrap: wrap; }
.cl-tip { display: flex; align-items: center; gap: var(--space-xs); font-size: 13px; color: var(--muted); }
.cl-tip .mdi { color: var(--teal-d); }
.cl-bar__btns { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
/* the section card */
.cl-card { display: grid; gap: var(--space-md); }
.cl-card__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-sm); text-align: center; }
.cl-card__head b { display: block; font: 600 17px/1.25 var(--font-title); letter-spacing: -0.015em; }
.cl-card__head span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cl-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
.cl-type { display: grid; justify-items: center; gap: var(--space-xs); min-height: 88px; padding: var(--space-sm) var(--space-xs); border: 1px solid var(--line-2);
  border-radius: var(--r-tile); background: var(--field); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; text-align: center;
  transition: border-color 150ms ease-out, background 150ms ease-out; }
.cl-type[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.cl-tpic { width: 28px; height: 36px; }
.cl-count { display: inline-flex; align-items: center; gap: var(--space-sm); }
.cl-count b { min-width: 24px; text-align: center; font: 600 17px/1 var(--font-title); font-variant-numeric: tabular-nums; }
.cl-count .ws-icon-btn { border: 1px solid var(--line-2); }
.cl-card__foot { display: flex; align-items: flex-end; gap: var(--space-sm); flex-wrap: wrap; }
.cl-wfield { flex: 1 1 140px; max-width: 200px; }
.cl-card .ws-icon-btn[disabled], .cl-card .ws-btn[disabled], .cl-bar .ws-btn[disabled] { opacity: 0.4; cursor: default; }
@media (min-width: 600px) { .cl-types { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (hover: hover) {
  .cl-sec:not(.is-sel):hover { fill: #eef6f3; }
  .cl-type:not([aria-pressed="true"]):hover { border-color: var(--teal); background: var(--teal-tint); }
  .cl-handle:hover .cl-grip { fill: var(--teal-tint); }
}
@media print { .cl-bar, .cl-handle { display: none !important; } .cl-sec.is-sel { fill: transparent; stroke: transparent; } }

/* ── deck planner's framing plan (js/workshop/deck-view.js) ─────────── */
.dv-plan { display: flex; justify-content: center; }
.cc-draw .dv-svg { width: 100%; max-width: 640px; height: auto; max-height: 520px; overflow: visible; }
/* two drawings: the wide one with callouts on the right, the phone one (drawn at its own width so the
   labels stay readable) with the callouts listed under it */
.cc-draw .dv-svg--narrow, .dv-legend { display: none; }
.dv-legend { list-style: none; margin: 0 0 var(--space-md); padding: 0; gap: var(--space-xs); font: 400 13px/1.4 var(--font-mono); color: var(--ink); }
.dv-legend li { color: var(--muted); }
.dv-legend b { font-weight: 700; color: var(--ink); margin-right: var(--space-xs); }
@media (max-width: 599px) {
  .cc-draw .dv-svg--wide { display: none; }
  .cc-draw .dv-svg--narrow { display: block; max-height: none; }
  .dv-legend { display: grid; }
}
@media print { .cc-draw .dv-svg--wide { display: block; } .cc-draw .dv-svg--narrow, .dv-legend { display: none; } }

/* ── shop reference pages (/apps/drill-bit-size-chart/ …; js/workshop/ref-data.js, ref-poster.js) ── */
.rf-top { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
@media (min-width: 900px) { .rf-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); align-items: start; } }
.rf-find .ws-field input { font-size: 20px; }
.rf-answer { margin-top: var(--space-md); display: grid; gap: var(--space-sm); min-height: 56px; }
.rf-answer__big { font: 700 28px/1.15 var(--font-display, var(--font-sans)); letter-spacing: -0.02em; }
.rf-answer__big small { display: block; font: 400 14px/1.4 var(--font-sans); color: var(--muted); letter-spacing: 0; margin-top: var(--space-xs); }
.rf-answer dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs) var(--space-md); margin: 0; font-size: 15px; }
.rf-answer dt { color: var(--muted); }
.rf-answer dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.rf-answer .rf-none { color: var(--muted); font-size: 15px; }
.rf-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.rf-chips button { border: 1px solid var(--line-2); background: var(--field); border-radius: var(--r-btn); padding: var(--space-xs) var(--space-sm); font: 500 13px/1.3 var(--font-mono); color: var(--ink); cursor: pointer; }
.rf-chips button:hover { border-color: var(--teal-d); }
.rf-draw { display: flex; justify-content: center; }
.rf-draw svg { width: 100%; max-width: 560px; height: auto; }
.rf-tables { margin-top: var(--space-lg); }
.rf-tabs { margin-bottom: var(--space-md); }
.rf-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.rf-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.rf-table th { position: sticky; top: 0; z-index: 1; background: var(--surface); text-align: left; padding: var(--space-sm) var(--space-md); font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.rf-table td { padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--line); white-space: nowrap; }
.rf-table td:first-child { font-weight: 700; }
.rf-table tr:last-child td { border-bottom: 0; }
.rf-table tr.is-hl td { background: var(--teal-tint); }
.rf-table tr.is-hl td:first-child { box-shadow: inset 3px 0 0 var(--teal-d); }
.rf-table td small { color: var(--muted); font-weight: 400; }
.rf-poster { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
@media (min-width: 700px) { .rf-poster { grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-lg); align-items: center; } }
.rf-poster__thumb { display: flex; justify-content: center; }
.rf-poster__thumb svg { width: 100%; max-width: 180px; height: auto; border: 1px solid var(--line-2); }
.rf-poster__title { font: 700 22px/1.2 var(--font-display, var(--font-sans)); letter-spacing: -0.02em; margin: var(--space-xs) 0; }
.rf-poster__sub { color: var(--muted); margin: 0 0 var(--space-md); }
.rf-poster__form { display: grid; gap: var(--space-sm); }
@media (min-width: 700px) { .rf-poster__form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.rf-poster__fine { font-size: 13px; color: var(--muted); margin: var(--space-sm) 0 0; }
.rf-poster__status { display: flex; align-items: center; gap: var(--space-xs); margin: var(--space-sm) 0 0; font-size: 15px; min-height: 1px; }
.rf-poster__status.is-ok { color: var(--teal-d); }
.rf-poster__status.is-bad { color: #b4412f; }
.rf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media print {
  .rf-find, .rf-poster, .rf-tabs, .cc-learn, #ws-header, #ws-flowhead, .ws-tabbar { display: none !important; }
  .rf-scroll { max-height: none; overflow: visible; border: 0; }
  .rf-table th { position: static; }
  .rf-tables [data-panel][hidden] { display: block !important; }
}

/* ── fix & upkeep (js/workshop/fix-kit.js, fix-math.js) ─────────────── */
/* the hard stop: the page stops helping and says who to call (always this red card) */
.fx-stop { padding: var(--space-md); background: #fdf1ef; border: 1.5px solid #b42318; border-radius: var(--r-card); color: var(--ink); }
@media (min-width: 900px) { .fx-stop { padding: var(--space-lg); } }
.fx-stop__head { display: flex; gap: var(--space-tight); align-items: flex-start; }
.fx-stop__head > .mdi { color: #b42318; }
.fx-stop__eyebrow { font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: #b42318; }
.fx-stop__title { font: 700 22px/1.2 var(--font-title); letter-spacing: -0.02em; margin-top: var(--space-xs); text-wrap: balance; }
.fx-stop__why { margin-top: var(--space-tight); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.fx-stop__do { margin: var(--space-tight) 0 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); font-size: 16px; line-height: 1.45; }
.fx-stop__do li::marker { font-weight: 700; color: #b42318; }
.fx-stop__call { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); padding: var(--space-tight) var(--space-md);
  background: #b42318; color: #fff; border-radius: var(--r-btn); font-size: 16px; }
.fx-stop__small { margin-top: var(--space-tight); font-size: 13px; color: var(--muted); line-height: 1.45; }

/* the troubleshooter: the answers so far, one question, its choices, then the answer */
.fx-tree { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
.fx-trail { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.fx-trail button { display: flex; align-items: baseline; gap: var(--space-sm); width: 100%; padding: var(--space-sm) var(--space-tight); text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); cursor: pointer; font-size: 14px; }
.fx-trail button span:not(.mdi) { flex: 1; min-width: 0; color: var(--muted); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }   /* two lines: one line cut questions to "It's" */
.fx-trail button b { font-weight: 600; text-align: right; max-width: 50%; overflow-wrap: anywhere; }
.fx-trail button .mdi { color: var(--muted-2); align-self: center; }
.fx-q { display: grid; gap: var(--space-tight); }
.fx-q__title, .fx-fix__title { font: 700 24px/1.2 var(--font-title); letter-spacing: -0.025em; text-wrap: balance; outline: none; }
.fx-q__help { color: var(--muted); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.fx-choices { display: grid; gap: var(--space-sm); }
.fx-choice { display: flex; align-items: center; gap: var(--space-tight); width: 100%; min-height: 56px; padding: var(--space-tight) var(--space-md); text-align: left;
  background: var(--field); border: 1.5px solid var(--line-2); border-radius: var(--r-card); cursor: pointer; transition: border-color 150ms ease-out, background 150ms ease-out, transform 120ms ease-out; }
.fx-choice > span:not(.mdi) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fx-choice b { font: 600 16px/1.3 var(--font-sans); }
.fx-choice small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.fx-choice > .mdi:first-child { color: var(--teal-d); }
.fx-choice > .mdi:last-child { color: var(--muted-2); }
.fx-choice.is-danger { border-color: #e7b5ae; }
.fx-choice.is-danger > .mdi:first-child { color: #b42318; }
.fx-choice:active { transform: scale(0.99); }
@media (hover: hover) {
  .fx-choice:hover { border-color: var(--teal); background: var(--teal-tint); }
  .fx-choice.is-danger:hover { border-color: #b42318; background: #fdf1ef; }
  .fx-trail button:hover { border-color: var(--line-2); }
}
.fx-fix { display: grid; gap: var(--space-tight); padding: var(--space-md); background: var(--surface); border: 1.5px solid var(--teal); border-radius: var(--r-card); }
@media (min-width: 900px) { .fx-fix { padding: var(--space-lg); } }
.fx-fix .ws-eyebrow { display: inline-flex; align-items: center; gap: var(--space-xs); }
.fx-fix__cause { font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.fx-fix__steps { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-sm); font-size: 16px; line-height: 1.5; }
.fx-fix__steps li::marker { font: 600 14px var(--font-mono); color: var(--teal-d); }
.fx-fix__more:empty { display: none; }
.fx-fix__buy:empty { display: none; }
/* v2: "Try this first" (the dye test), the safety tick, the parts list and the pro line */
.fx-try { display: grid; gap: var(--space-sm); padding: var(--space-tight) var(--space-md); background: var(--sand-tint); border-radius: var(--r-tile); }
.fx-try__eyebrow { display: inline-flex; align-items: center; gap: var(--space-xs); font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand-d); }
.fx-try__steps { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); font-size: 16px; line-height: 1.45; }
.fx-try__steps li::marker { font: 600 14px var(--font-mono); color: var(--sand-d); }
.fx-gate { display: flex; align-items: flex-start; gap: var(--space-tight); padding: var(--space-tight) var(--space-md); border: 1.5px solid #b42318; border-radius: var(--r-tile); background: #fdf1ef; cursor: pointer; }
.fx-gate input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal-d); flex-shrink: 0; }
.fx-gate span { display: grid; gap: 2px; }
.fx-gate b { font: 600 16px/1.35 var(--font-sans); }
.fx-gate small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.fx-gate:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }
.fx-fix__steps.is-locked { opacity: 0.35; filter: blur(1.5px); user-select: none; }
.fx-gate__hint { display: flex; align-items: center; gap: var(--space-xs); font-size: 14px; color: var(--muted); }
.fx-buy { display: grid; gap: var(--space-sm); margin-top: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid var(--line); }
.fx-buy__save .ws-btn { width: 100%; }
.fx-pro { margin-top: var(--space-sm); }
.fx-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-left: calc(-1 * var(--space-md)); }
.fx-reviewed { display: inline-flex; align-items: center; gap: var(--space-xs); margin-left: auto; font-size: 13px; color: var(--muted); }

/* a result that is a pick (the anchor, the filter): a row per option, the pick outlined */
.fx-picks { display: grid; gap: var(--space-sm); }
.fx-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-tight); align-items: center; padding: var(--space-tight) var(--space-md);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile); }
.fx-pick.is-pick { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.fx-pick.is-no { opacity: 0.6; }
.fx-pick > .mdi { color: var(--teal-d); }
.fx-pick.is-no > .mdi { color: var(--muted); }
.fx-pick b { font: 600 15px/1.3 var(--font-sans); }
.fx-pick small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.fx-pick__n { font: 600 13px/1.2 var(--font-mono); color: var(--muted); text-align: right; white-space: nowrap; }
.fx-pick.is-pick .fx-pick__n { color: var(--teal-d); }
/* the wire gauge chart: an NM-B jacket color chip */
.wg-sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--ink); vertical-align: -1px; margin-right: var(--space-xs); }

/* "remind me" (js/workshop/remind.js) */
.fx-remind { display: grid; gap: var(--space-md); margin-top: var(--space-md); }
.fx-remind__head { display: flex; gap: var(--space-tight); align-items: flex-start; }
.fx-remind__head > .mdi { color: var(--teal-d); }
.fx-remind__title { font: 700 20px/1.2 var(--font-title); letter-spacing: -0.02em; margin-top: var(--space-xs); text-wrap: balance; }
.fx-remind__when { color: var(--muted); font-size: 15px; margin-top: var(--space-xs); text-wrap: pretty; }
.fx-remind__form { display: grid; gap: var(--space-sm); }
@media (min-width: 700px) { .fx-remind__form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.fx-remind__fine { font-size: 13px; color: var(--muted); margin: 0; }
.fx-remind .rf-poster__status { margin: 0; }

/* the frozen-pipes forecast: one tile per night, colored by risk */
.fx-zip { display: grid; gap: var(--space-sm); }
@media (min-width: 640px) { .fx-zip { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.fx-nights { display: grid; grid-template-columns: repeat(7, minmax(64px, 1fr)); gap: var(--space-xs); overflow-x: auto; padding-bottom: var(--space-xs); }
.fx-night { display: grid; gap: 2px; justify-items: center; padding: var(--space-sm) var(--space-xs); border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--line); text-align: center; min-width: 0; }
.fx-night b { font: 700 22px/1 var(--font-title); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fx-night span { font: 600 10px/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fx-night small { font-size: 11px; line-height: 1.2; color: var(--muted); }
.fx-night.is-outside { background: #e6f1f7; border-color: #9cc6dc; }
.fx-night.is-pipes { background: #dcebf5; border-color: #3b82b6; box-shadow: inset 0 0 0 1px #3b82b6; }
.fx-night.is-pipes b, .fx-night.is-outside b { color: #1d5f8f; }
.fx-forecast__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-sm); }
.fx-forecast__say { font-size: 16px; line-height: 1.45; margin-top: var(--space-sm); text-wrap: pretty; }
.fx-forecast__say b { font-weight: 650; }
.fx-legend { display: flex; flex-wrap: wrap; gap: var(--space-md); font-size: 12px; color: var(--muted); margin-top: var(--space-sm); }
.fx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: var(--space-xs); vertical-align: -1px; }
/* the toilet part finders (js/workshop/toilet-parts.js): what's at the bottom of the tank */
.tp-valves { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--space-sm); }
.tp-valve { display: flex; align-items: center; gap: var(--space-tight); padding: var(--space-sm) var(--space-tight); }
.tp-valve svg { flex-shrink: 0; }
.tp-valve span { display: grid; gap: 2px; min-width: 0; }
.tp-valve b { font: 600 15px/1.3 var(--font-sans); }
.tp-valve small { color: var(--muted); font-size: 13px; line-height: 1.35; }
/* the toilet fixer's "find the part" cards */
.tf-cards { display: grid; gap: var(--space-sm); }
@media (min-width: 700px) { .tf-cards { grid-template-columns: 1fr 1fr; } }
a.tf-card { display: flex; align-items: center; gap: var(--space-tight); padding: var(--space-md); color: inherit; text-decoration: none; transition: border-color 150ms ease-out; }
.tf-card > .mdi:first-child { color: var(--teal-d); }
.tf-card > .mdi:last-child { color: var(--muted-2); }
.tf-card > span:not(.mdi) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tf-card b { font: 600 17px/1.3 var(--font-sans); }
.tf-card small { color: var(--muted); font-size: 14px; line-height: 1.4; }
@media (hover: hover) { .tf-card:hover { border-color: var(--teal); } }
/* the outlet page: a 3-light tester's lights in the reading table */
.el-dots { display: inline-flex; gap: var(--space-xs); vertical-align: middle; }
.el-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--muted-2); }
.el-dots i.on { background: #e8a33d; border-color: #b9781c; }
.el-dots i.on.red { background: #d9483b; border-color: #a5281e; }
.rf-table td.el-wrap { white-space: normal; min-width: 200px; }
/* a wide table in the learn columns scrolls inside its box instead of widening the page */
.cc-learn__grid > * { min-width: 0; }

/* ── the water heater center (heater-kit.js) ─────────────────────────────── */
.wh-card { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-tight); padding: var(--space-md); margin-top: var(--space-md); }
.wh-card > .mdi { color: var(--teal-d); }
.wh-card__text { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.wh-card__text b { font: 600 17px/1.3 var(--font-sans); }
.wh-card__text small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.wh-card__forget { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-d); text-decoration: underline; cursor: pointer; }
.wh-card__nav { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.wh-card__nav .ws-chip { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; }
.wh-pick { display: grid; gap: var(--space-sm); }
.wh-money p { line-height: 1.6; }
.rf-table.wh-fmt th, .rf-table.wh-fmt td { white-space: normal; }
.rf-table.wh-fmt code { white-space: nowrap; }
.fx-remind__pick { margin-top: calc(-1 * var(--space-xs)); }
.wh-steps { display: grid; gap: var(--space-tight); margin: 0; padding-left: 1.4em; }
.wh-steps li { padding-left: var(--space-xs); line-height: 1.5; }
.wh-steps li > b { display: block; font-weight: 600; }
.wh-steps li > span { color: var(--ink-2); }
.wh-pro { display: grid; gap: var(--space-md); margin-top: var(--space-md); }
.wh-pro__form { grid-template-columns: 7rem minmax(0, 1fr); }
.wh-pro__form .ws-btn { grid-column: 1 / -1; }

/* ── the upkeep calendar (upkeep-kit.js): the checklist page and My home ───── */
.up-setup { display: grid; gap: var(--space-md); }
.up-clim { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); margin: calc(-1 * var(--space-sm)) 0 0; text-wrap: pretty; }
.up-clim .mdi { color: var(--teal-d); flex-shrink: 0; }
.up-clim b { color: var(--ink); font-weight: 600; }
.up-hasgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: var(--space-sm); }
.up-has {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 18px; align-items: center; gap: var(--space-sm); text-align: left; cursor: pointer; width: 100%;
  padding: var(--space-sm) var(--space-tight); min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-btn);
  background: var(--field); font-size: 14px; line-height: 1.25; transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.up-has > .mdi:first-child { color: var(--muted); }
.up-has > .mdi:last-child { color: var(--teal-d); opacity: 0; }
.up-has:hover { border-color: var(--teal); }
.up-has[aria-pressed="true"] { border-color: var(--teal-d); background: var(--teal-tint); }
.up-has[aria-pressed="true"] > .mdi { color: var(--teal-d); opacity: 1; }
.up-sum__big { font: 700 22px/1.2 var(--font-title); letter-spacing: -0.02em; margin-top: var(--space-xs); }
.up-sum__big b { font-size: 48px; color: var(--teal-hi); letter-spacing: -0.04em; margin-right: var(--space-xs); font-variant-numeric: tabular-nums; }
.up-tabs { margin-top: var(--space-lg); }
.up-months { display: grid; gap: var(--space-lg); margin-top: var(--space-lg); }
.up-month__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-sm); font: 700 20px/1.2 var(--font-title); letter-spacing: -0.02em; margin-bottom: var(--space-tight); }
.up-month__h small { font: 500 13px/1.3 var(--font-sans); letter-spacing: 0; color: var(--muted); }
.up-month--every .up-task summary { background: var(--surface); }
.up-tasks { display: grid; gap: var(--space-sm); }
.up-task { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--field); overflow: hidden; }
.up-task summary { display: flex; align-items: center; gap: var(--space-tight); padding: var(--space-tight) var(--space-md) var(--space-tight) var(--space-tight); cursor: pointer; list-style: none; }
.up-task summary::-webkit-details-marker { display: none; }
.up-task summary > .mdi { margin-left: auto; color: var(--muted); transition: transform 200ms var(--ease); flex-shrink: 0; }
.up-task[open] summary > .mdi { transform: rotate(180deg); }
.up-task summary:hover { background: var(--surface); }
.up-date { display: grid; place-items: center; width: 48px; flex-shrink: 0; padding: var(--space-xs) 0; border-radius: var(--r-tile); background: var(--teal-tint); color: var(--teal-d); }
.up-date b { font: 700 20px/1 var(--font-title); }
.up-date small { font: 600 10px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.up-date.is-now { background: var(--sand-tint); color: var(--sand-d); }
.up-date.is-now b { font-size: 15px; }
.up-month--every .up-date, .up-task:not(:has(.up-date)) summary { min-height: 56px; }
.up-task__t { display: grid; gap: 2px; min-width: 0; }
.up-task__t b { font: 600 16px/1.3 var(--font-sans); text-wrap: balance; }
.up-task__t small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.up-task__body { display: grid; gap: var(--space-tight); padding: 0 var(--space-md) var(--space-md); }
.up-task__body > p { font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.up-task__body ol { margin: 0; padding-left: 1.4em; display: grid; gap: var(--space-sm); font-size: 15px; line-height: 1.5; }
.up-task__pro { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 14px; color: var(--sand-d); background: var(--sand-tint); padding: var(--space-sm) var(--space-tight); border-radius: var(--r-tile); }
.up-task__pro .mdi { flex-shrink: 0; }
.up-task__buy ul { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.up-task__buy li { display: flex; gap: var(--space-sm); justify-content: space-between; font-size: 14px; }
.up-task__buy li a { color: var(--teal-d); font-weight: 600; }
.up-task__buy li small { color: var(--muted); font-weight: 400; }
.up-task__buy li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.up-task__link { display: inline-flex; align-items: center; gap: var(--space-xs); justify-self: start; }
.up-task__act { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.up-task__src { margin: 0; }
.up-notes { display: grid; gap: var(--space-sm); }
.up-notes__h { font: 700 20px/1.2 var(--font-title); letter-spacing: -0.02em; }
.up-notes ul { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: var(--space-tight); }
.up-notes li { display: grid; gap: 2px; font-size: 15px; line-height: 1.5; }
.up-notes li a { color: var(--teal-d); font-weight: 600; }
.up-cal { display: grid; gap: var(--space-md); }
.up-homecard { display: flex; align-items: center; gap: var(--space-tight); padding: var(--space-md); }
.up-homecard > .mdi { color: var(--teal-d); flex-shrink: 0; }
.up-homecard__t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.up-homecard__t b { font: 600 17px/1.3 var(--font-sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* five jobs made a five-line heading */
.up-homecard__t small { color: var(--muted); font-size: 14px; line-height: 1.4; }
a.up-homecard--link { display: flex; }
.up-homecard--link:hover { border-color: var(--teal); }
.up-skipped { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.up-skipped .ws-chip { display: inline-flex; align-items: center; gap: var(--space-xs); cursor: pointer; border: 0; }
.up-side { display: grid; gap: var(--space-md); align-content: start; }
@media (min-width: 900px) {
  .up-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-xl); align-items: start; }
  .up-side { position: sticky; top: calc(var(--bar-h) + var(--space-lg)); }
}
@media (min-width: 900px) {
  .up-split { grid-template-areas: "setup side" "plan side"; }
  .up-setupbox { grid-area: setup; }
  .up-planbox { grid-area: plan; }
  .up-side { grid-area: side; }
}
.up-setupbox { padding: var(--space-md); }
.up-cal__subs { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.up-cal__subs .ws-btn { flex: 1 1 200px; justify-content: center; }
.up-cal .ws-btn--quiet, .up-mail .ws-btn--quiet { justify-self: start; padding-left: 0; }
.up-mail { display: grid; gap: var(--space-md); }
.up-pair { display: grid; gap: var(--space-md); }
.up-note { font-size: 15px; }

/* ── the lawn planner (lawn-planner page: "Your lawn year") ───── */
.cc-yearh { font: 700 18px/1.2 var(--font-title); letter-spacing: -0.02em; margin: 0 0 var(--space-sm); }
/* the wiring helper (/apps/wiring-diagrams/, wiring-draw.js) */
.cc-draw.wr-draw { display: block; min-height: 0; }
.wr-draw svg, .cc-draw.wr-draw svg { display: block; width: 100%; max-width: 560px; height: auto; max-height: none; margin: 0 auto; overflow: visible; }
.wr-draw text { font-family: var(--font-mono, ui-monospace, monospace); }
.wr-chainwrap { margin-bottom: var(--space-sm); }
.wr-boxh { font: 700 13px/1.2 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: var(--space-md) 0 var(--space-xs); }
.wr-more { margin-top: var(--space-md); }
.wr-more summary { cursor: pointer; font-weight: 600; color: var(--teal-ink, #0d9488); }
.wr-steps { padding-left: var(--space-lg); margin: 0 0 var(--space-md); }
.wr-steps li { margin-bottom: var(--space-sm); }
.wr-stop { border: 2px solid #d4462b; background: #fdf0ec; border-radius: var(--r-card); padding: var(--space-md); margin: var(--space-md) 0; }
.wr-stop h3 { display: flex; align-items: center; gap: var(--space-xs); color: #a3321e; margin: 0 0 var(--space-sm); font: 700 17px/1.25 var(--font-title); }
.wr-stop ul { margin: 0; padding-left: var(--space-lg); }
.wr-stop li { margin-bottom: var(--space-xs); }

.cc-year { list-style: none; margin: 0 0 var(--space-tight); padding: 0; display: grid; gap: var(--space-sm); }
.cc-year li { display: grid; grid-template-columns: minmax(0, 7.5em) 1fr; gap: var(--space-sm); font-size: 15px; line-height: 1.4; }
.cc-year li b { font-weight: 600; color: var(--teal-d); }
.cc-year li small { display: block; color: var(--muted); font-size: 13px; }

/* ── the garden planting calendar (garden-kit.js; reuses the upkeep calendar's up-* layout) ───── */
.gd-pick { border-top: 1px solid var(--line); padding-top: var(--space-tight); }
.gd-pick summary { display: flex; align-items: center; gap: var(--space-sm); cursor: pointer; list-style: none; min-height: 44px; }
.gd-pick summary::-webkit-details-marker { display: none; }
.gd-pick summary b { font: 700 18px/1.2 var(--font-title); letter-spacing: -0.02em; }
.gd-pick summary small { color: var(--muted); font-size: 14px; }
.gd-pick summary > .mdi { margin-left: auto; color: var(--muted); transition: transform 200ms var(--ease); }
.gd-pick[open] summary > .mdi { transform: rotate(180deg); }
.gd-pick__body { display: grid; gap: var(--space-md); margin-top: var(--space-sm); }
.gd-pick__act { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.gd-pick__act .ws-btn--quiet { padding-left: 0; padding-right: 0; }
.gd-nowcard { display: grid; gap: var(--space-tight); }
.gd-now { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-tight); }
.gd-now li { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 15px; line-height: 1.45; }
.gd-now li > .mdi { color: var(--teal-d); flex-shrink: 0; margin-top: 1px; }
.gd-now li b { display: block; font-weight: 600; }
.gd-now small { color: var(--muted); font-size: 13px; }
.gd-build { display: grid; gap: var(--space-xs); padding: var(--space-md); }
.gd-build .up-homecard { padding: var(--space-sm) 0; border: 0; background: none; }
.gd-build .up-homecard > .mdi:last-child { color: var(--muted); }
.gd-crop__t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.gd-crop__t b { font: 600 16px/1.3 var(--font-sans); }
.gd-crop__t small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.gd-crop summary { padding-left: var(--space-md); }
.gd-strip { margin-top: var(--space-sm); }
.gd-strip__bars { position: relative; height: 12px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.gd-strip__m { display: grid; grid-template-columns: repeat(12, 1fr); font: 600 10px/1.6 var(--font-mono); color: var(--muted); text-align: center; }
.gd-bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.gd-bar--indoor { background: var(--sand); }
.gd-bar--transplant, .gd-bar--sow, .gd-bar--plant { background: var(--teal-d); }
.gd-bar--fall { background: var(--teal-hi); }
.gd-bar--harvest { background: #9db8a9; }
.gd-frost { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.gd-legend { display: flex; flex-wrap: wrap; gap: var(--space-tight); margin: var(--space-lg) 0 var(--space-sm); font-size: 13px; color: var(--muted); }
.gd-legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.gd-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.gd-frostkey { display: inline-block; width: 2px; height: 14px; background: var(--ink); }
.gd-wins { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); font-size: 15px; }
.gd-wins li { display: grid; grid-template-columns: 12px minmax(0, 9em) 1fr; gap: var(--space-sm); align-items: center; }
.gd-wins li b { font-weight: 600; }
.gd-task--harvest .up-date { background: #e6efe9; color: #3f6b55; }
.gd-task--indoor .up-date:not(.is-now) { background: var(--sand-tint); color: var(--sand-d); }
.gd-mild { margin-top: var(--space-md); }
.gd-bedbox { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
.gd-bed { display: grid; gap: 2px; padding: 6px; background: #8a6a4a; border-radius: 6px; }
.gd-cell { aspect-ratio: 1; min-width: 0; border: 0; border-radius: 3px; cursor: pointer; display: grid; place-content: center; padding: 0; color: var(--ink); line-height: 1.1; }
.gd-cell b { font: 700 12px/1.1 var(--font-sans); }
.gd-cell small { font: 600 10px/1.1 var(--font-mono); color: var(--muted); }
.gd-cell:hover { outline: 2px solid var(--teal); outline-offset: -2px; }
.gd-bedkey { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); font-size: 14px; }
.gd-bedkey li { display: flex; gap: var(--space-sm); align-items: center; }
.gd-bedkey i { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.gd-bedkey b { font-weight: 600; }
.gd-bedkey b small { font-weight: 400; color: var(--muted); }
.gd-bedkey span { color: var(--muted); margin-left: auto; white-space: nowrap; }
.gd-bedact .ws-btn--quiet { padding-left: 0; }
.gd-bedbuild { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--field); padding: var(--space-md); }
.gd-mild a { color: var(--teal-d); }

/* ── the inspection report reader (inspect-kit.js) ───────────────────────── */
.ir-up { display: grid; gap: var(--space-md); }
.ir-drop { display: grid; justify-items: center; gap: var(--space-xs); padding: var(--space-xl) var(--space-md); text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-card); background: var(--field); transition: border-color 160ms var(--ease), background 160ms var(--ease); }
.ir-drop:hover, .ir-drop.is-over { border-color: var(--teal-d); background: var(--teal-tint); }
.ir-drop > .mdi { color: var(--teal-d); }
.ir-drop b { font: 600 16px/1.3 var(--font-sans); word-break: break-word; }
.ir-drop small { color: var(--muted); font-size: 13px; }
.ir-status { margin: 0; display: flex; gap: var(--space-sm); align-items: center; font-size: 14px; color: var(--muted); min-height: 1px; }
.ir-status.is-bad { color: #b42318; }
.ir-up .fx-remind__fine { display: flex; gap: var(--space-xs); align-items: flex-start; }
.ir-facts { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.ir-facts p { font-size: 15px; }
.ir-facts .ws-btn { justify-self: start; }
.ir-group { margin-top: var(--space-lg); }
.ir-group.is-now .up-month__h { color: #b42318; }
.ir-sys { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-tile); background: var(--surface); color: var(--muted); }
.is-now .ir-sys { background: #fbeae7; color: #b42318; }
.ir-chip { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; font: 600 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .06em;
  padding: var(--space-xs) var(--space-sm); border-radius: var(--r-btn); max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ir-chip.is-pro { background: var(--sand-tint); color: var(--sand-d); }
.ir-chip.is-diy { background: var(--teal-tint); color: var(--teal-d); }
.ir-f summary > .mdi:last-child { margin-left: 0; }
.ir-f summary .up-task__t { flex: 1; }
.ir-diy { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 14px; color: var(--teal-d); }
.ir-diy .mdi { flex-shrink: 0; }
.ir-pick { display: flex; gap: var(--space-sm); align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.ir-pick input { width: 18px; height: 18px; accent-color: var(--teal-d); }
.ir-know { margin: var(--space-tight) 0 0; padding-left: var(--space-lg); display: grid; gap: var(--space-sm); }
.ir-sum { margin-top: 0; }
@media (max-width: 480px) { .ir-chip { max-width: 6.5rem; } }

/* ── Price hunter (/apps/price-hunter/, hunt-kit.js) ─────────────────── */
.ph-where { display: grid; gap: var(--space-tight); }
.ph-zip { display: flex; gap: var(--space-sm); align-items: stretch; flex-wrap: wrap; }
.ph-zip .ws-field { flex: 1 1 180px; max-width: 260px; }
.ph-stores { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.ph-store { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 13px; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--field); color: var(--muted); }
.ph-store b { color: var(--ink); font-weight: 600; }
.ph-note { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: 13px; color: var(--muted); margin: var(--space-tight) 0 0; }
.ph-note .mdi { flex: none; margin-top: 1px; }
.ph-credit a { color: inherit; text-decoration: underline; }
.ph-note--warn { color: #b42318; }
.ph-pick { margin-top: var(--space-lg); }
.ph-paste { display: grid; gap: var(--space-tight); margin-top: var(--space-md); max-width: 640px; }
.ph-paste .ws-btn { justify-self: start; }
.ph-paste .ws-btn[disabled] .mdi { animation: ws-spin 1s linear infinite; }
.ph-pick .ws-sub { margin-top: var(--space-tight); }
.ph-listhead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-lg); }
.ph-busy { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); color: var(--muted); }
.ph-busy .mdi { animation: ws-spin 1s linear infinite; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
.ph-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-tight); margin-top: var(--space-md); }
.ph-answer { padding: var(--space-md); border-radius: var(--r-card); text-align: left; font: inherit; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); transition: border-color .2s var(--ease), background .2s var(--ease); }
.ph-answer.is-picked { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ph-answer.is-picked .ws-eyebrow { color: var(--teal-hi); }
@media (hover: hover) { .ph-answer:not(.is-picked):hover { border-color: var(--ink); } }
.ph-answer:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ph-status { display: flex; align-items: center; gap: var(--space-xs); margin: var(--space-md) 0 0; font-size: 14px; color: var(--muted); }
.ph-status .mdi { animation: ws-spin 1s linear infinite; }
.ph-status.is-done { color: var(--teal-d); }
.ph-status.is-done .mdi { animation: none; }
.ph-cell.is-checking { border-style: dashed; }
.ph-cell.is-checking b { opacity: .55; }
.ph-cell.is-live small:last-child { color: var(--teal-d); }
.ph-cell.is-out b { text-decoration: line-through; opacity: .6; }
@media (prefers-reduced-motion: reduce) { .ph-status .mdi, .ph-busy .mdi { animation: none; } }
.ph-answer__big { font: 700 22px/1.2 var(--font-title); letter-spacing: -0.02em; margin: var(--space-xs) 0; }
.ph-answer__sub { font-size: 14px; opacity: .85; margin: 0; }
.ph-answer > span { display: block; }
.ph-table { margin-top: var(--space-md); display: grid; gap: var(--space-sm); }
.ph-cols, .ph-line { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--space-sm); align-items: stretch; }
.ph-cols { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); z-index: 2; background: var(--paper); padding: var(--space-sm) 0; border-bottom: 1px solid var(--line); }
.ph-col { display: flex; flex-direction: column; font-size: 13px; }
.ph-col small { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.ph-line { padding: var(--space-sm) 0; border-bottom: 1px solid var(--line); }
.ph-line__what { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ph-line__what b { font-weight: 600; }
.ph-line__what small { color: var(--muted); font-size: 13px; }
.ph-cell { display: flex; flex-direction: column; justify-content: center; padding: var(--space-sm); border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
.ph-cell b { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.ph-cell small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.ph-cell small:first-child { display: none; }
.ph-cell.is-best { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--teal-tint); }
.ph-cell.is-none { color: var(--muted); font-size: 13px; background: transparent; border-style: dashed; }
@media (hover: hover) { a.ph-cell:hover { border-color: var(--ink); } }
@media (max-width: 720px) {
  .ph-cols { display: none; }
  .ph-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-table[style*="--n:1"] .ph-line { grid-template-columns: minmax(0, 1fr); }
  .ph-line__what { grid-column: 1 / -1; }
  .ph-cell small:first-child { display: block; font-weight: 600; color: var(--ink); }
}

/* ── Fix my build (fix-agent-kit.js) ─────────────────────────────────────── */
.fa { margin-top: var(--space-lg); display: grid; gap: var(--space-md); }
.fa-start { display: grid; gap: var(--space-md); }
.fa-photos { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.fa-thumb { position: relative; margin: 0; width: 104px; height: 104px; border-radius: var(--r-tile); overflow: hidden; background: var(--line); }
.fa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fa-thumb__x { position: absolute; top: var(--space-xs); right: var(--space-xs); display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(11, 20, 38, 0.72); color: #fff; cursor: pointer; }
.fa-photos--small .fa-thumb { width: 64px; height: 64px; }
.fa-add { flex: 1 1 200px; min-height: 104px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: var(--space-md); text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-card); background: var(--field); transition: border-color 160ms var(--ease), background 160ms var(--ease); }
.fa-add > .mdi { color: var(--teal-d); }
.fa-add b { font: 600 16px/1.3 var(--font-sans); }
.fa-add small { color: var(--muted); font-size: 13px; }
.fa-say textarea { min-height: 80px; }
.fa-examples { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.fa-examples .ws-chip { border: 0; cursor: pointer; }
.fa-known { display: grid; gap: var(--space-sm); padding: var(--space-tight); border-radius: var(--r-tile); background: var(--teal-tint); }
.fa-known__h { display: inline-flex; align-items: center; gap: var(--space-xs); font: 600 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-d); }
.fa-known__chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.fa-known small { color: var(--muted); font-size: 12px; }
.fa-kchip { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--teal); border-radius: var(--r-btn);
  background: var(--field); font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; }
.fa-kchip .mdi { color: var(--teal-d); }
.fa-kchip.is-off { border-color: var(--line-2); color: var(--muted); text-decoration: line-through; background: transparent; }
.fa-kchip.is-off .mdi { color: var(--muted-2); }
.fa-known--none { display: flex; align-items: flex-start; gap: var(--space-sm); font-size: 14px; background: var(--surface); border: 1px solid var(--line); }
.fa-known--none > .mdi { color: var(--teal-d); }
.fa-fine { display: flex; gap: var(--space-xs); align-items: flex-start; }
.fa-say { font-size: 15px; color: var(--muted); }
p.fa-say { margin: 0; }
.fa-think { padding: var(--space-tight) var(--space-md); border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--line); }
.fa-think ul { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.fa-think li { display: grid; grid-template-columns: minmax(0, 1fr) 72px 40px; align-items: center; gap: var(--space-sm); font-size: 14px; }
.fa-think li > span { min-width: 0; }
.fa-think i { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--teal) var(--p), var(--line) var(--p)); }
.fa-think b { font: 600 12px/1 var(--font-mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.fa-trail__row { display: flex; align-items: baseline; gap: var(--space-sm); padding: var(--space-sm) var(--space-tight); border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--field); font-size: 14px; }
.fa-trail__row span { flex: 1; min-width: 0; color: var(--muted); }
.fa-trail__row b { font-weight: 600; text-align: right; }
.fa-own { display: flex; gap: var(--space-sm); align-items: stretch; }
.fa-own .ws-field { flex: 1; min-width: 0; }
.fa-own .ws-btn { padding-inline: var(--space-md); }
.fa-morephoto { justify-self: start; cursor: pointer; max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; padding-block: var(--space-sm); }
.fa-ask, .fa-ask > * { min-width: 0; }
.fa-unsure b { font-weight: 500; color: var(--muted); }
.fa-busy { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-lg) var(--space-md); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.fa-busy__spin { color: var(--teal-d); animation: fa-spin 1.2s linear infinite; display: inline-grid; }
.fa-busy b { display: block; font: 600 16px/1.3 var(--font-sans); }
.fa-busy small { color: var(--muted); font: 500 12px/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
@keyframes fa-spin { to { transform: rotate(360deg); } }
.fa-err { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); padding: var(--space-md); border-radius: var(--r-card); background: #fdf1ef; color: #b42318; }
.fa-err span { flex: 1 1 200px; color: var(--ink); }
.fa-route { display: grid; gap: var(--space-md); }
.fa-route__card { display: flex; gap: var(--space-tight); align-items: flex-start; padding: var(--space-md); border: 1.5px solid var(--teal); border-radius: var(--r-card); background: var(--surface); }
.fa-route__card > .mdi { color: var(--teal-d); flex-shrink: 0; }
.fa-route__card h3 { font: 700 22px/1.2 var(--font-title); letter-spacing: -0.02em; margin-top: var(--space-xs); }
.fa-route__card p { margin-top: var(--space-xs); color: var(--muted); font-size: 15px; }
.fa-else { justify-self: center; }
.fa-diag h2 { font: 700 28px/1.15 var(--font-title); letter-spacing: -0.02em; margin: var(--space-sm) 0; color: var(--paper); }
.fa-diag > p { color: #d9dde6; font-size: 15px; }
.fa-conf { display: inline-flex; align-items: center; gap: 3px; margin-bottom: var(--space-sm); }
.fa-conf i { width: 18px; height: 6px; border-radius: 3px; background: #33415a; }
.fa-conf i.on { background: var(--teal-hi); }
.fa-conf.is-low i.on { background: var(--sand); }
.fa-conf b { margin-left: var(--space-sm); font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--teal-hi); }
.fa-conf.is-low b { color: var(--sand); }
.fa-facts { list-style: none; margin: var(--space-tight) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); font-size: 14px; }
.fa-facts li { display: inline-flex; align-items: center; gap: var(--space-xs); text-transform: none; }
.fa-facts .mdi { color: var(--teal-hi); }
.fa-diag__grid { display: grid; gap: var(--space-md); }
@media (min-width: 900px) { .fa-diag__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .fa-diag__photo { position: sticky; top: calc(var(--bar-h) + var(--space-md)); } }
.fa-photo { margin: 0; display: grid; gap: var(--space-sm); }
.fa-photo__in { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--line); line-height: 0; }
.fa-photo__in img { width: 100%; height: auto; display: block; }
.fa-pin { position: absolute; transform: translate(-50%, -50%); line-height: 1; }
.fa-pin b, .fa-box b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--on-teal); font: 700 14px/1 var(--font-sans);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }
.fa-pin.is-on b, .fa-box.is-on b { background: var(--ink); box-shadow: 0 0 0 3px var(--teal-hi); }
.fa-box { position: absolute; border: 2.5px solid var(--teal-hi); border-radius: 6px; box-shadow: 0 0 0 1px rgba(11, 20, 38, 0.35); line-height: 1; }
.fa-box.is-on { border-color: #fff; box-shadow: 0 0 0 2px var(--teal), 0 0 0 9999px rgba(11, 20, 38, 0.28); }
.fa-box b { position: absolute; top: -14px; left: -14px; }
.fa-pin em, .fa-box em { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font: 600 12px/1.2 var(--font-sans); font-style: normal;
  padding: var(--space-xs) var(--space-sm); border-radius: var(--r-btn); background: var(--ink); color: var(--paper); z-index: 1; }
.fa-box em { top: auto; bottom: calc(100% + 6px); left: 0; transform: none; }
.fa-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.fa-legend button { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-xs); border: 1px solid var(--line-2);
  border-radius: var(--r-btn); background: var(--field); font-size: 13px; cursor: pointer; text-align: left; }
.fa-legend b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--on-teal); font-size: 12px; }
.fa-legend .is-on button { border-color: var(--ink); }
.fa-legend .is-on b { background: var(--ink); }
.fa-photo__strip { display: flex; gap: var(--space-xs); }
.fa-photo__strip img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; opacity: .55; }
.fa-photo__strip img.is-on { opacity: 1; outline: 2px solid var(--teal); }
.fa-evidence { display: flex; gap: var(--space-sm); align-items: flex-start; margin-top: var(--space-sm); font-size: 14px; color: var(--muted); }
.fa-evidence .mdi { color: var(--teal-d); }
.fa-alt { margin-top: var(--space-sm); border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); }
.fa-alt summary { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-tight); cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; }
.fa-alt summary::-webkit-details-marker { display: none; }
.fa-alt summary .mdi:last-child { margin-left: auto; color: var(--muted-2); }
.fa-alt[open] summary .mdi:last-child { transform: rotate(180deg); }
.fa-alt ul { margin: 0; padding: 0 var(--space-tight) var(--space-tight) var(--space-xl); display: grid; gap: var(--space-xs); font-size: 14px; }
.fa-alt li span { display: block; color: var(--muted); }
.fa-steps { display: grid; gap: var(--space-tight); padding: var(--space-md); background: var(--surface); border: 1.5px solid var(--teal); border-radius: var(--r-card); }
.fa-steps, .fa-photo { scroll-margin-top: calc(var(--bar-h) + var(--space-sm)); }
.fa-steps__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; }
.fa-dots { display: inline-flex; gap: var(--space-xs); }
.fa-dots i { width: 18px; height: 6px; border-radius: 3px; background: var(--line-2); }
.fa-dots i.done { background: var(--teal); }
.fa-dots i.on { background: var(--ink); }
.fa-step { display: flex; gap: var(--space-tight); align-items: flex-start; }
.fa-step__icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-tile); background: var(--teal-tint); color: var(--teal-d); }
.fa-step__body { flex: 1; min-width: 0; display: grid; gap: var(--space-sm); }
.fa-step__n { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fa-step h3 { font: 700 22px/1.2 var(--font-title); letter-spacing: -0.02em; }
.fa-step p { font-size: 16px; line-height: 1.55; }
.fa-step__mark { justify-self: start; max-width: 100%; display: inline-flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-xs);
  border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--field); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; }
.fa-step__mark b { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; }
.fa-step__mark span { min-width: 0; }
.fa-step__mark small { display: inline-flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; color: var(--teal-d); font-size: 12px; font-weight: 600; }
.fa-pin.is-pulse b, .fa-box.is-pulse b { animation: fa-pulse .5s ease-out 3; }
.fa-box.is-pulse { animation: fa-pulse-box .5s ease-out 3; }
@keyframes fa-pulse { 50% { transform: scale(1.35); } }
@keyframes fa-pulse-box { 50% { border-color: var(--teal-hi); } }
.fa-step__n em { margin-left: var(--space-sm); padding: 2px var(--space-xs); border-radius: 4px; background: var(--teal-tint); color: var(--teal-d); font-style: normal; letter-spacing: .06em; }
.fa-dots i.new { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--teal-hi); }
.fa-changed { display: flex; gap: var(--space-sm); align-items: flex-start; padding: var(--space-sm) var(--space-tight); border-radius: var(--r-tile); background: var(--teal-tint); font-size: 14px; }
.fa-changed > .mdi { color: var(--teal-d); margin-top: 1px; }
.fa-changed > div { min-width: 0; display: grid; gap: var(--space-xs); }
.fa-changed b { font-size: 15px; }
.fa-changed.is-small { padding: var(--space-xs) var(--space-sm); color: var(--teal-d); font-weight: 500; }
.fa-was summary { display: inline-flex; align-items: center; gap: var(--space-xs); cursor: pointer; list-style: none; color: var(--teal-d); font-weight: 600; }
.fa-was summary::-webkit-details-marker { display: none; }
.fa-was[open] summary .mdi { transform: rotate(180deg); }
.fa-was b { display: block; margin-top: var(--space-xs); font-size: 14px; }
.fa-was p { color: var(--muted); }
.fa-mini--busy { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; font-size: 15px; color: var(--muted); }
.fa-mini--busy .mdi { color: var(--teal-d); animation: fa-spin 1.2s linear infinite; }
.fa-mini--busy small { font: 500 12px/1 var(--font-mono); }
.fa-mini--err > span { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: 14px; }
.fa-mini--err .mdi { color: #b42318; }
.fa-mini--ask .fa-ask { display: grid; gap: var(--space-sm); }
.fa-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.fa-tool { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: var(--r-btn); background: var(--field); border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; }
.fa-tool small { color: var(--muted); font-size: 12px; font-weight: 400; }
.fa-tool .mdi { color: var(--muted); }
.fa-tool.is-have { border-color: var(--teal); background: var(--teal-tint); }
.fa-tool.is-have .mdi, .fa-tool.is-have small { color: var(--teal-d); }
.fa-safety { display: flex; gap: var(--space-sm); align-items: flex-start; padding: var(--space-sm) var(--space-tight); border-radius: var(--r-tile); background: var(--sand-tint); font-size: 14px; }
.fa-safety .mdi { color: var(--sand-d); }
.fa-check { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 15px; }
.fa-check .mdi { color: var(--teal-d); }
.fa-steps__nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); border-top: 1px solid var(--line); padding-top: var(--space-tight); }
.fa-steps__done { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 600; color: var(--teal-d); }
.fa-ai { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: 12px; color: var(--muted); }
.fa-buy:empty { display: none; }
.fa-saved { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-tight); }
.fa-saved li span { display: block; color: var(--muted); font-size: 15px; }
.fa-again { display: flex; justify-content: center; }
@media (hover: hover) {
  .fa-add:hover { border-color: var(--teal-d); background: var(--teal-tint); }
  .fa-kchip:hover { background: var(--teal-tint); }
  .fa-legend button:hover { border-color: var(--teal); }
  .fa-step__mark:hover { border-color: var(--teal); background: var(--teal-tint); }
}
/* PR B: stuck, did it work, show me fixed, My home, the ways in */
.fa-stuck-btn { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-xs); padding: 0; border: 0; background: none;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.fa-stuck-btn .mdi { color: var(--teal-d); }
.fa-mini { display: grid; gap: var(--space-sm); padding: var(--space-tight); border-radius: var(--r-tile); background: var(--field); border: 1px solid var(--line-2); }
.fa-mini__h { font-weight: 600; font-size: 15px; }
.fa-mini__chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.fa-mini__chips .ws-chip { border: 0; cursor: pointer; }
.fa-mini__fine { font-size: 12px; color: var(--muted); }
.fa-mini__x { justify-self: start; }
.fa-outcome { display: grid; gap: var(--space-sm); padding-top: var(--space-tight); border-top: 1px solid var(--line); }
.fa-outcome > b { font: 700 18px/1.3 var(--font-title); }
.fa-outcome__btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.fa-outcome.is-worked, .fa-outcome.is-pro { display: flex; gap: var(--space-tight); align-items: flex-start; padding: var(--space-tight); border: 0; border-radius: var(--r-tile); }
.fa-outcome.is-worked { background: var(--teal-tint); }
.fa-outcome.is-worked .mdi { color: var(--teal-d); }
.fa-outcome.is-pro { background: var(--sand-tint); }
.fa-outcome.is-pro .mdi { color: var(--sand-d); }
.fa-outcome.is-worked b, .fa-outcome.is-pro b { display: block; font: 700 17px/1.3 var(--font-title); }
.fa-outcome.is-worked span, .fa-outcome.is-pro span { font-size: 14px; color: var(--muted); }
.fa-pic { margin-top: var(--space-sm); }
.fa-pic:empty { display: none; }
.fa-pic-busy { display: flex; align-items: center; gap: var(--space-sm); font-size: 14px; color: var(--muted); }
.fa-pic-busy .mdi { color: var(--teal-d); animation: fa-spin 1.2s linear infinite; }
.fa-ba { margin: 0; display: grid; gap: var(--space-sm); }
.fa-ba__in { position: relative; border-radius: var(--r-card); overflow: hidden; line-height: 0; background: var(--line); }
.fa-ba__in img { width: 100%; height: auto; display: block; }
.fa-ba__after { position: absolute; inset: 0; height: 100% !important; object-fit: cover; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.fa-ba__line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 20, 38, 0.3); }
.fa-ba__tag { position: absolute; top: var(--space-sm); right: var(--space-sm); padding: var(--space-xs) var(--space-sm); border-radius: var(--r-btn);
  background: rgba(11, 20, 38, 0.72); color: #fff; font: 600 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  opacity: clamp(0, calc((88 - var(--v)) / 8), 1); transition: opacity .15s; }
.fa-ba__tag.is-after { right: auto; left: var(--space-sm); background: var(--teal-d); opacity: clamp(0, calc((var(--v) - 12) / 8), 1); }
.fa-ba__ctl { display: flex; align-items: center; gap: var(--space-sm); font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fa-ba__ctl span:last-child { color: var(--teal-d); }
.fa-ba__range { flex: 1; min-width: 0; accent-color: var(--teal-d); }
.fa-ba figcaption { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: 12px; color: var(--muted); }
.fa-note { display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-sm) var(--space-tight); border-radius: var(--r-tile); background: var(--teal-tint); font-size: 15px; font-weight: 500; }
.fa-note .mdi { color: var(--teal-d); }
.fa-home { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-tight); padding: var(--space-tight) 0; font-size: 15px; }
.fa-home > .mdi { color: var(--teal-d); }
.ws-ask__cam { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-btn); color: var(--ink-2); cursor: pointer; }
.fx-notfixed { display: flex; gap: var(--space-sm); align-items: flex-start; margin-top: var(--space-sm); font-size: 14px; color: var(--muted); }
.fx-notfixed .mdi { color: var(--teal-d); }
.fx-send-top { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-tight); border: 1px solid var(--line); border-radius: 999px; background: transparent; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--teal-d); cursor: pointer; }
.fx-send-top:hover { border-color: var(--teal); }
.fx-send { display: grid; gap: var(--space-tight); margin-top: var(--space-sm); padding: var(--space-md); border: 1px dashed var(--line); border-radius: var(--r-card); }
.fx-send__head { display: flex; gap: var(--space-sm); align-items: flex-start; }
.fx-send__head .mdi { color: var(--teal-d); }
.fx-send__head b { display: block; }
.fx-send__head small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.fx-send__form { display: grid; gap: var(--space-sm); }
.fx-send .ws-btn { justify-self: start; }
.fa-send-top { display: inline-flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-tight); padding: var(--space-xs) var(--space-tight); border: 1px solid currentColor; border-radius: 999px; background: transparent; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; color: inherit; cursor: pointer; opacity: 0.9; }
.fa-send-top:hover { opacity: 1; }
.fa-send { margin: var(--space-md) 0; }
.fa-send__photo { display: flex; gap: var(--space-sm); align-items: flex-start; cursor: pointer; }
.fa-send__photo input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal-d); }
.fa-send__photo small { display: block; font-size: 13px; color: var(--muted); }
.fa-send__err { margin: 0; font-size: 14px; color: #b42318; }
.fx-sent { display: flex; gap: var(--space-sm); align-items: flex-start; margin-bottom: var(--space-md); padding: var(--space-md); background: var(--surface); border: 1.5px solid var(--teal); border-radius: var(--r-card); }
.fx-sent .mdi { color: var(--teal-d); }
.fx-sent b { display: block; }
.fx-sent p { margin: var(--space-xs) 0 0; font-size: 16px; }
.fx-sent small { display: block; margin-top: var(--space-xs); font-size: 14px; color: var(--muted); }
@media (hover: hover) {
  .fa-stuck-btn:hover { color: var(--ink); }
  .ws-ask__cam:hover { background: var(--teal-tint); color: var(--teal-d); }
}
@media (prefers-reduced-motion: reduce) { .fa-busy__spin, .fa-pic-busy .mdi, .fa-mini--busy .mdi, .fa-pin.is-pulse b, .fa-box.is-pulse b, .fa-box.is-pulse { animation: none; } }

/* ── Pro on call (pro-call.js): the offer on other pages + /apps/pro-on-call/ ── */
.pc-offer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-tight); align-items: start; margin-top: var(--space-md);
  padding: var(--space-md); border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface); }
.pc-offer__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-tile); background: var(--ink); color: var(--teal-hi); }
.pc-offer__body { min-width: 0; display: grid; gap: var(--space-xs); }
.pc-offer__t { font: 700 18px/1.2 var(--font-title); letter-spacing: -0.02em; text-wrap: balance; }
.pc-offer__body p { margin: 0; color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.pc-offer__body .pc-offer__fine { font: 600 12px/1.3 var(--font-mono); letter-spacing: 0.02em; color: var(--sand-d); }
.pc-offer__go { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) { .pc-offer { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; } .pc-offer__go { grid-column: auto; } }
.pc-line, .pc-quiet { display: flex; gap: var(--space-sm); align-items: flex-start; margin: var(--space-tight) 0 0; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.pc-line > .mdi, .pc-quiet > .mdi { color: var(--teal-d); flex: none; margin-top: 1px; }
.pc-quiet { font-size: 14px; color: var(--muted); }
.pc-facts { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; gap: var(--space-sm); }
@media (min-width: 640px) { .pc-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pc-facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-sm); align-items: center; padding: var(--space-tight); border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); }
.pc-facts .mdi { grid-row: span 2; color: var(--teal-d); }
.pc-facts b { font: 700 15px/1.2 var(--font-title); }
.pc-facts small { color: var(--muted); font-size: 13px; }
.pc { margin-top: var(--space-lg); display: grid; gap: var(--space-md); }
/* the form is drawn once the price and trades load (/config): its height is held until then, or the page under it
   jumps (layout shift 0.12 on a computer, 2026-11-21). A little under the real height at each width. */
.ws-js .pc:empty { min-height: 960px; }
@media (min-width: 600px) { .ws-js .pc:empty { min-height: 780px; } }
@media (min-width: 900px) { .ws-js .pc:empty { min-height: 690px; } }
.pc-form { display: grid; gap: var(--space-md); }
.pc-from { display: flex; gap: var(--space-sm); align-items: flex-start; margin: 0; padding: var(--space-sm) var(--space-tight); border-radius: var(--r-tile); background: var(--teal-tint); font-size: 14px; }
.pc-from .mdi { color: var(--teal-d); }
.pc-group { display: grid; gap: var(--space-sm); }
.pc-group .ws-field__label small, .pc-form .ws-field__label small { color: var(--muted); }
.pc-seg button { height: 40px; padding: 0 var(--space-tight); font-size: 14px; }
.pc-row { display: grid; gap: var(--space-md); }
@media (min-width: 560px) { .pc-row { grid-template-columns: 8rem minmax(0, 1fr); } }
.pc-share { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: start; padding: var(--space-tight); border: 1px solid var(--line); border-radius: var(--r-tile); cursor: pointer; }
.pc-share input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal-d); }
.pc-share span { display: grid; gap: 2px; min-width: 0; }
.pc-share b { font-weight: 600; font-size: 15px; }
.pc-share small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.pc-fine { display: flex; gap: var(--space-xs); align-items: flex-start; }
.pc-sent, .pc-status { display: grid; gap: var(--space-tight); outline: none; }
.pc-sent > .mdi { color: var(--teal-d); }
.pc-sent h2, .pc-status h2 { font: 700 22px/1.2 var(--font-title); letter-spacing: -0.02em; text-wrap: balance; }
.pc-sent p, .pc-status p { margin: 0; }
.pc-next { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-sm); }
.pc-next li span { display: block; color: var(--muted); font-size: 14px; }
.pc-sent > .ws-btn { justify-self: start; }
.pc-status__head { display: flex; gap: var(--space-tight); align-items: center; }
.pc-status__head > .mdi { color: var(--teal-d); }
.pc-status.is-no_match .pc-status__head > .mdi, .pc-status.is-cancelled .pc-status__head > .mdi { color: var(--muted); }
.pc-when { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs) var(--space-tight); margin: 0; font-size: 15px; }
.pc-when dt { color: var(--muted); }
.pc-when dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pc-pre { white-space: pre-line; }
.pc-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.pc-tip { display: flex; gap: var(--space-sm); align-items: flex-start; color: var(--muted); font-size: 14px; }
.pc-req { border-top: 1px solid var(--line); padding-top: var(--space-tight); }
.pc-req summary { display: flex; gap: var(--space-sm); align-items: center; cursor: pointer; font-weight: 600; list-style: none; }
.pc-req summary::-webkit-details-marker { display: none; }
.pc-req summary .mdi:last-child { margin-left: auto; transition: transform 200ms var(--ease); }
.pc-req[open] summary .mdi:last-child { transform: rotate(180deg); }
.pc-req .pc-when { margin-top: var(--space-tight); }
.pc-newreq { margin: 0; }
.pc-fb { display: grid; gap: var(--space-sm); padding-top: var(--space-tight); border-top: 1px solid var(--line); }
.pc-fb > .ws-btn { justify-self: start; }
.pc-stars { display: flex; gap: var(--space-xs); }
.pc-stars button { width: 44px; height: 44px; border-radius: var(--r-btn); border: 1.5px solid var(--line-2); background: var(--field); font-size: 22px; line-height: 1; color: var(--muted-2); cursor: pointer; }
.pc-stars button[aria-pressed="true"] { color: var(--sand-d); border-color: var(--sand); background: var(--sand-tint); }
.pc-thanks { display: flex; gap: var(--space-xs); align-items: center; color: var(--teal-d); font-weight: 600; }
.pc-mine { display: grid; gap: var(--space-sm); }
.pc-mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.pc-mine li { display: flex; gap: var(--space-sm); align-items: baseline; justify-content: space-between; padding: var(--space-sm) 0; border-bottom: 1px solid var(--line); }
.pc-mine li .ws-link { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pc-mine small { color: var(--muted); flex: none; }
@media (hover: hover) { .pc-stars button:hover { border-color: var(--sand); } }

/* ── Garage mode (js/workshop/garage.js): the dark full-screen build checklist ── */
html.gm-open { overflow: hidden; }
/* a toast over Garage mode sits above its buttons */
html.gm-open .ws-toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
@media (max-width: 639px) { html.gm-open .ws-toast { bottom: calc(156px + env(safe-area-inset-bottom)); } }
.gm { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--ink); color: var(--paper);
  animation: ws-fade 180ms ease-out; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.gm--page { animation: none; }
.gm-bar { display: flex; align-items: center; gap: var(--space-sm); padding: calc(var(--space-sm) + env(safe-area-inset-top)) var(--space-sm) var(--space-sm); max-width: 1120px; width: 100%; margin: 0 auto; }
.gm-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.gm-icon:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 2px; }
.gm-bar__t { flex: 1; min-width: 0; text-align: center; }
.gm-bar__t span { display: block; font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-hi); }
.gm-bar__t small { display: block; margin-top: var(--space-xs); font: 500 13px/1.3 var(--font-sans); color: var(--on-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-prog { display: flex; gap: var(--space-xs); padding: 0 var(--space-md); max-width: 1120px; width: 100%; margin: 0 auto; }
.gm-prog i { flex: 1; height: 5px; border-radius: 3px; background: #24324c; transition: background 300ms var(--ease); }
.gm-prog i.is-done { background: var(--teal); }
.gm-prog i.is-now { background: var(--teal-hi); }
.gm-prog--line { display: block; }
.gm-prog--line { height: 5px; border-radius: 3px; background: #24324c; padding: 0; width: calc(100% - 2 * var(--space-md)); max-width: calc(1120px - 2 * var(--space-md)); }
.gm-prog--line b { display: block; height: 100%; border-radius: 3px; background: var(--teal); transition: width 400ms var(--ease); }
.gm-pills { display: flex; flex-wrap: wrap; gap: var(--space-sm); padding: 0 var(--space-md); max-width: 1120px; width: 100%; margin: 0 auto; }
.gm-pills:not(:empty) { padding-top: var(--space-sm); }
.gm-pill { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 36px; padding: 0 var(--space-tight); border: 1px solid #33445f; border-radius: 18px;
  background: #16213a; color: var(--paper); font: 500 14px/1 var(--font-sans); cursor: pointer; }
.gm-pill .mdi { color: var(--sand); }
.gm-pill b { font: 600 14px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.gm-pill.is-ready { border-color: var(--sand); }
.gm-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.gm-step { max-width: 1120px; margin: 0 auto; padding: var(--space-lg) var(--space-md) var(--space-xl); display: grid; gap: var(--space-lg); }
@media (min-width: 1000px) {
  .gm-step:has(.gm-fig) { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: start; padding-top: var(--space-xl); }
  .gm-step:has(.gm-fig) .gm-fig { grid-column: 2; grid-row: 1 / span 2; }
  .gm-step:has(.gm-fig) .gm-next { grid-column: 1; grid-row: 2; }
}
.gm-step > .gm-next { max-width: 680px; }
.gm-main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-md); max-width: 680px; }
.gm-eyebrow { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); font: 600 13px/1.2 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-ink-muted); }
.gm-eyebrow span { color: var(--teal-hi); }
.gm-title { font: 800 34px/1.06 var(--font-title); letter-spacing: -0.03em; text-wrap: balance; }
@media (min-width: 640px) { .gm-title { font-size: 44px; } }
.gm-title em { font-style: normal; color: var(--teal-hi); }
.gm-step--big .gm-title { font-size: 40px; }
@media (min-width: 640px) { .gm-step--big .gm-title { font-size: 52px; } }
.gm-subline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); color: #c9cfda; font-size: 17px; line-height: 1.45; }
.gm-subline .cp-same { color: var(--teal-hi); font-weight: 600; margin-left: var(--space-xs); }
.gm-mini { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 var(--space-xs); border-radius: 6px 2px 6px 2px; background: var(--c, var(--teal)); color: var(--ink); font: 700 14px/1 var(--font-sans); }
.gm-text { font-size: 18px; line-height: 1.55; color: #e3e7ee; }
.gm-text p + p { margin-top: var(--space-sm); }
.gm-dos { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.gm-dos.is-locked { opacity: 0.45; pointer-events: none; }
.gm-do, .gm-gate { display: flex; align-items: flex-start; gap: var(--space-tight); width: 100%; min-height: 56px; padding: var(--space-tight) var(--space-sm); border: 0; border-radius: var(--r-tile);
  background: transparent; color: inherit; text-align: left; font: 400 19px/1.45 var(--font-sans); cursor: pointer; }
.gm-do:hover, .gm-gate:hover { background: rgba(255, 255, 255, 0.04); }
.gm-do:focus-visible, .gm-gate:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 2px; }
.gm-box { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--teal-hi); display: grid; place-items: center; color: transparent; transition: background 150ms ease-out, color 150ms ease-out; }
.gm-do.is-on .gm-box, .gm-gate.is-on .gm-box { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.gm-do.is-on .gm-do__t { color: var(--on-ink-muted); }
.gm-do__t .pl-letter { vertical-align: 2px; }
.gm-gate { border: 1.5px solid var(--sand); background: rgba(212, 165, 116, 0.08); }
.gm-gate b { display: block; font-weight: 600; }
.gm-gate small { display: block; font-size: 15px; color: #c9cfda; }
.gm-gate .gm-box { border-color: var(--sand); }
.gm-gate.is-nudge { animation: gm-nudge 360ms ease-in-out 2; }
@keyframes gm-nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.gm-safety { display: flex; gap: var(--space-sm); padding: var(--space-tight) var(--space-md); border-radius: var(--r-tile); background: rgba(212, 165, 116, 0.12); color: #f1dcc0; font-size: 16px; line-height: 1.45; }
.gm-safety .mdi { color: var(--sand); flex: none; }
.gm-note { color: var(--on-ink-muted); font-size: 15px; line-height: 1.5; }
.gm-note b { color: var(--paper); }
.gm-timer { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); border: 1px solid #33445f; border-radius: var(--r-card); background: #16213a; color: inherit; text-align: left; width: 100%; font: inherit; }
.gm-timer > .mdi:first-child { color: var(--sand); }
.gm-timer > div { flex: 1; min-width: 0; }
.gm-timer__what { display: block; font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-ink-muted); }
.gm-timer__left { display: block; margin-top: var(--space-xs); font: 700 40px/1 var(--font-title); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gm-timer__left--sm { font: 600 18px/1.3 var(--font-sans); letter-spacing: 0; }
.gm-timer__btns { display: flex; gap: var(--space-xs); }
.gm-timer--idle { cursor: pointer; border-style: dashed; }
.gm-timer--idle:hover { border-color: var(--teal-hi); }
.gm-timer--idle > .mdi:last-child { color: var(--teal-hi); }
.gm-timer.is-ready { border-color: var(--sand); background: rgba(212, 165, 116, 0.14); }
.gm-timer.is-ready > .mdi:first-child { animation: gm-ring 900ms ease-in-out 3; }
@keyframes gm-ring { 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(14deg); } }
.gm-chip { min-height: 40px; padding: 0 var(--space-tight); border: 0; border-radius: 20px; background: #24324c; color: var(--paper); font: 600 14px/1 var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; }
.gm-chip:hover { background: #2e3e5c; }
.gm-chip--quiet { background: transparent; padding: 0 var(--space-sm); }
.gm-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.gm-tools li { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 32px; padding: 0 var(--space-tight); border: 1px solid #33445f; border-radius: 16px; font-size: 14px; color: #c9cfda; }
.gm-tools .mdi { color: var(--teal-hi); }
.gm-next { display: flex; align-items: baseline; gap: var(--space-sm); color: var(--on-ink-muted); font-size: 15px; line-height: 1.4; padding-top: var(--space-sm); border-top: 1px solid #22304a; }
.gm-next b { flex: none; font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.gm-next em { font-style: normal; color: var(--paper); }
.gm-fig { min-width: 0; border-radius: var(--r-card); background: var(--paper); padding: var(--space-md); color: var(--ink); }
.gm-fig svg { display: block; width: 100%; height: auto; max-height: 52vh; }
.gm-fig .cm-sheet, .gm-fig .cm-board { border-color: #8c7650; }
.gm-fig img { display: block; width: 100%; height: auto; border-radius: var(--r-tile); }
.gm-foot { display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm); padding: var(--space-tight) var(--space-md) calc(var(--space-tight) + env(safe-area-inset-bottom)); border-top: 1px solid #22304a;
  max-width: 1120px; width: 100%; margin: 0 auto; }
.gm-foot__row { display: flex; gap: var(--space-sm); }
.gm-foot .ws-btn--ghost { background: transparent; color: var(--paper); border-color: #3a4760; min-height: 64px; }
.gm-foot .ws-btn--ghost:hover { border-color: var(--teal-hi); color: var(--teal-hi); }
.gm-back { width: 64px; padding: 0; justify-content: center; }
.gm-back[disabled] { opacity: 0.35; }
.gm-stuck { border-color: var(--sand) !important; color: #f1dcc0 !important; }
.gm-stuck .mdi { color: var(--sand); }
.gm-go { min-height: 64px; font-size: 19px; justify-content: center; }
.gm-go[aria-disabled="true"] { opacity: 0.5; }
@media (max-width: 639px) {
  .gm-foot { grid-template-columns: 1fr; }
  .gm-foot .ws-btn--ghost { min-height: 52px; }
  .gm-foot__row > * { flex: 1; }
  .gm-back { flex: 0 0 64px !important; }
}
.gm-finish { text-align: left; }
.gm-finish__mark .mdi { color: var(--teal-hi); }
.gm-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-xl); }
.gm-stats b { display: block; font: 700 32px/1 var(--font-title); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gm-stats span { font-size: 14px; color: var(--on-ink-muted); }
.gm-noteq { display: grid; gap: var(--space-sm); font-size: 15px; color: #c9cfda; }
.gm-noteq textarea { width: 100%; padding: var(--space-tight); border: 1px solid #33445f; border-radius: var(--r-tile); background: #16213a; color: var(--paper); font: 400 17px/1.5 var(--font-sans); resize: vertical; }
.gm-noteq textarea:focus { outline: none; border-color: var(--teal-hi); }
/* the sheets Garage mode opens (light, over the dark screen) */
.gm-list { display: grid; gap: var(--space-xs); max-height: 60vh; overflow-y: auto; }
.gm-list__sec { margin: var(--space-md) 0 var(--space-xs); font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.gm-list__sec:first-child { margin-top: 0; }
.gm-list__row { display: flex; align-items: center; gap: var(--space-tight); min-height: 48px; padding: var(--space-xs) var(--space-sm); border: 0; border-radius: var(--r-tile); background: none; text-align: left; font: 500 16px/1.35 var(--font-sans); color: var(--ink); cursor: pointer; }
.gm-list__row:hover { background: rgba(11, 20, 38, 0.04); }
.gm-list__row.is-now { background: var(--teal-tint); }
.gm-list__row em { font-style: normal; font-weight: 700; }
.gm-list__row small { color: var(--muted); font-size: 13px; }
.gm-list__n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); font: 600 13px/1 var(--font-mono); color: var(--muted); }
.gm-list__row.is-done .gm-list__n { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.gm-tchips { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.gm-tchip { min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--field); font: 600 16px/1 var(--font-sans); color: var(--ink); cursor: pointer; }
.gm-tchip:hover { border-color: var(--teal); }
.gm-confirm { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.gm-confirm .ws-btn { flex: 1; min-width: 160px; }
@media (prefers-reduced-motion: reduce) { .gm, .gm-gate.is-nudge, .gm-timer.is-ready > .mdi:first-child { animation: none; } }
/* "Start building" next to a tool's steps */
.gm-start { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); padding: var(--space-md); margin-top: var(--space-md); border-radius: var(--r-card); background: var(--ink); color: var(--paper); }
.gm-start__t { flex: 1; min-width: 200px; }
.gm-start__t b { display: block; font: 700 18px/1.25 var(--font-title); letter-spacing: -0.01em; }
.gm-start__t small { display: block; margin-top: var(--space-xs); color: var(--on-ink-muted); font-size: 14px; line-height: 1.4; }
.gm-start .ws-btn { flex: none; }
/* the garage page before Garage mode opens (loading, pick a project, no steps yet) */
.gm-host { background: var(--ink); }
.gm-picks { display: grid; gap: var(--space-sm); }
.gm-pick { display: flex; align-items: center; gap: var(--space-tight); min-height: 64px; padding: var(--space-tight) var(--space-md); border: 1px solid #33445f; border-radius: var(--r-tile);
  background: #16213a; color: var(--paper); text-decoration: none; font: 600 17px/1.3 var(--font-sans); text-align: left; cursor: pointer; width: 100%; }
.gm-pick:hover { border-color: var(--teal-hi); }
.gm-pick > span:not(.mdi) { flex: 1; min-width: 0; }
.gm-pick small { display: block; margin-top: var(--space-xs); font-weight: 400; font-size: 14px; color: var(--on-ink-muted); }
.gm-pick > .mdi:first-child { color: var(--teal-hi); }
/* the project page's "Add from a tool" next to "Start building": an icon on phones */
@media (max-width: 639px) { .gm-add--short { flex: 0 0 auto !important; padding: 0 var(--space-md); } .gm-add--short [data-l] { display: none; } .gm-hide-sm { display: none !important; } }
/* Garage mode, PR B: hands-free, a question's answer, the wait email */
.gm-voice { display: flex; align-items: center; gap: var(--space-tight); width: 100%; min-height: 52px; padding: var(--space-sm) var(--space-md); border: 1px dashed #33445f; border-radius: var(--r-tile);
  background: transparent; color: #c9cfda; font: 500 15px/1.35 var(--font-sans); text-align: left; cursor: pointer; }
.gm-voice .mdi { color: var(--teal-hi); flex: none; }
.gm-voice:hover { border-color: var(--teal-hi); }
.gm-voice.is-on { border-style: solid; border-color: var(--teal-hi); background: rgba(45, 212, 191, 0.08); color: var(--paper); }
.gm-voice.is-on .mdi { animation: gm-pulse 1.6s ease-in-out infinite; }
.gm-voice small { display: block; margin-top: var(--space-xs); color: var(--on-ink-muted); font-size: 13px; }
@keyframes gm-pulse { 50% { opacity: 0.45; } }
.gm-answer { position: relative; display: grid; gap: var(--space-xs); padding: var(--space-tight) var(--space-xl) var(--space-tight) var(--space-md); border-radius: var(--r-tile);
  background: #16213a; border-left: 3px solid var(--teal-hi); }
.gm-answer.is-stop { border-left-color: var(--sand); background: rgba(212, 165, 116, 0.12); }
.gm-answer__q { display: flex; align-items: center; gap: var(--space-xs); color: var(--on-ink-muted); font-size: 14px; }
.gm-answer__a { font-size: 18px; line-height: 1.5; color: var(--paper); display: flex; align-items: center; gap: var(--space-sm); }
.gm-answer__a.is-busy .mdi { animation: ws-spin 900ms linear infinite; }
.gm-answer [data-answer-x] { position: absolute; top: var(--space-xs); right: var(--space-xs); }
.gm-mail { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 48px; padding: var(--space-sm) var(--space-md); text-align: left; line-height: 1.3; border: 1px solid var(--sand); border-radius: var(--r-btn);
  background: transparent; color: #f1dcc0; font: 600 15px/1 var(--font-sans); cursor: pointer; }
.gm-mail .mdi { color: var(--sand); }
.gm-mail:hover { background: rgba(212, 165, 116, 0.1); }
.gm-mailed { display: flex; align-items: center; gap: var(--space-sm); color: #c9cfda; font-size: 15px; }
.gm-mailed .mdi { color: var(--teal-hi); }
.gm-mailerr { margin-top: var(--space-sm); color: #b42318; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .gm-voice.is-on .mdi, .gm-answer__a.is-busy .mdi { animation: none; } }
/* the garage page: AI writing the steps, and a stop card */
.gm-write { display: grid; gap: var(--space-md); }
.gm-stopcard { display: grid; gap: var(--space-sm); padding: var(--space-md); border: 1.5px solid #e5484d; border-radius: var(--r-card); background: rgba(229, 72, 77, 0.1); }
.gm-stopcard b { font: 700 20px/1.25 var(--font-title); }
.gm-stopcard ul { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); color: #e3e7ee; }
/* Garage mode, PR C: progress photos */
.gm-photos { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.gm-photo { width: 72px; height: 72px; padding: 0; border: 1px solid #33445f; border-radius: var(--r-tile); overflow: hidden; background: #16213a; cursor: pointer; }
.gm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-photo:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 2px; }
.gm-photos--all .gm-photo { width: 88px; height: 88px; }
.gm-photobtn .mdi { color: var(--teal-hi); }
.gm-photobig img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--r-tile); background: var(--surface); }
.gm-photobig .ws-sub { margin-top: var(--space-sm); }
@media (max-width: 639px) { .gm-foot__row .gm-photobtn, .gm-foot__row .gm-stuck { flex: 1; } }
/* the project page's Photos row */
.wsp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--space-sm); }
.wsp-photos button { aspect-ratio: 1; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-tile); overflow: hidden; background: var(--surface); cursor: pointer; }
.wsp-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* stalled-project nudges: the "What's in the way?" card on the project page (js/workshop/nudge.js) */
.ws-nudge { border-color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); display: flex; flex-direction: column; gap: var(--space-sm); }
.ws-nudge .ws-eyebrow { margin: 0; }
.ws-nudge__t { margin: 0; font: 700 22px/1.2 var(--font-title); letter-spacing: -0.02em; text-wrap: balance; }
.ws-nudge__s { margin: 0; color: var(--muted); max-width: 60ch; }
.ws-nudge__rows { margin-top: var(--space-xs); }
.ws-nudge__btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.ws-nudge__wk { margin-top: var(--space-xs); }
.ws-nudge__wk button { height: auto; min-height: 48px; padding: var(--space-sm) var(--space-md); border-radius: var(--r-btn); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ws-nudge__wk button small { font: 500 12px/1.2 var(--font-mono); color: var(--muted); }
.ws-nudge__wk button[aria-pressed="true"] small { color: var(--on-ink-muted); }
.ws-nudge__wk button:disabled { opacity: .6; cursor: progress; }
.ws-nudge__done { display: flex; gap: var(--space-sm); align-items: flex-start; margin: var(--space-xs) 0 0; }
.ws-nudge__done .mdi { color: var(--teal-d); }
.ws-nudge__err { margin: 0; color: #b42318; font-size: 14px; }
.ws-nudge__else { align-self: flex-start; background: none; border: 0; padding: var(--space-xs) 0; margin-top: var(--space-xs); color: var(--teal-d); font: 600 14px/1.3 var(--font-sans); cursor: pointer; }
@media (hover: hover) { .ws-nudge__else:hover { text-decoration: underline; text-underline-offset: 3px; } }
@media (max-width: 639px) { .ws-nudge__wk { display: grid; grid-template-columns: 1fr 1fr; } .ws-nudge__btns .ws-btn { flex: 1 1 auto; justify-content: center; } }
/* the Workshop home: a project quiet for a week says so */
.ws-hero__quiet { display: flex; gap: var(--space-xs); align-items: center; color: var(--sand); font-size: 15px; font-weight: 600; margin: var(--space-sm) 0 0; }
.ws-quiet { display: flex; gap: var(--space-xs); align-items: center; color: var(--sand-d); font-weight: 600; margin-top: var(--space-xs); }

/* ── My home record (home-kit.js): the Rooms and Things tabs of /my/home/ ───── */
.hm-tabs { margin: var(--space-md) 0 var(--space-lg); flex-wrap: nowrap; }
.hm-tabs button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); padding: 0 var(--space-sm); }
.hm-tabs button small { font: 600 12px/1 var(--font-mono); color: var(--muted); }
.hm-tabs button[aria-pressed="true"] small { color: var(--teal-hi); }
.hm-tabs button small:empty { display: none; }
@media (max-width: 380px) { .hm-tabs button .mdi { display: none; } }
.hm-empty { display: flex; gap: var(--space-tight); align-items: flex-start; padding: var(--space-md); }
.hm-empty > .mdi { color: var(--teal-d); flex-shrink: 0; }
.hm-empty b { font: 600 18px/1.25 var(--font-title); letter-spacing: -0.01em; }
.hm-empty p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: var(--space-xs); text-wrap: pretty; }
.hm-paint { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-xs); font-size: 14px; color: var(--ink-2); min-width: 0; }
.hm-paint > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-swatch { width: 18px; height: 18px; border-radius: 5px 2px 5px 2px; border: 1px solid rgba(11, 20, 38, 0.18); flex-shrink: 0; display: inline-block; }
.hm-swatch[data-none] { background: repeating-linear-gradient(135deg, var(--line) 0 3px, var(--field) 3px 6px); }
.hm-form { display: grid; gap: var(--space-lg); margin-top: var(--space-md); }
.hm-form > div > .ws-eyebrow { display: block; margin-bottom: var(--space-sm); }
.hm-kinds button { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-tight); }
.hm-size { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .hm-size { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hm-area { margin-top: var(--space-sm); }
.hm-area:empty { display: none; }
.hm-spots { display: grid; gap: var(--space-sm); }
.hm-spot { border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--field); }
.hm-spot > summary { display: grid; grid-template-columns: 18px auto minmax(0, 1fr) 22px; align-items: center; gap: var(--space-sm); padding: var(--space-tight); cursor: pointer; list-style: none; }
.hm-spot > summary::-webkit-details-marker { display: none; }
.hm-spot > summary b { font-weight: 600; font-size: 15px; }
.hm-spot > summary small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-spot > summary .mdi { color: var(--muted); transition: transform 200ms var(--ease); }
.hm-spot[open] > summary .mdi { transform: rotate(180deg); }
.hm-spot > .ws-fields, .hm-spot > .ws-note { padding: 0 var(--space-tight); }
.hm-spot > .ws-note { padding-bottom: var(--space-tight); margin-top: var(--space-sm); }
.hm-color { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-xs); }
.hm-color input[type="color"] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px 2px 6px 2px; cursor: pointer; flex-shrink: 0; }
.hm-color input[type="color"][data-unset] { opacity: 0.55; }
.hm-color span { font-size: 15px; color: var(--muted); }
.hm-actions { display: grid; gap: var(--space-sm); justify-items: center; }
.ws-btn.is-danger, .wh-card__forget.is-danger { color: #b42318; }
.hm-thinghead { display: flex; align-items: center; gap: var(--space-tight); }
.hm-label { display: flex; gap: var(--space-sm); align-items: flex-start; margin-top: var(--space-md); padding: var(--space-tight); border-radius: var(--r-tile);
  background: var(--sand-tint); color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.hm-label .mdi { color: var(--sand-d); flex-shrink: 0; }
.hm-label b { font-weight: 600; color: var(--ink); }
.hm-kindgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--space-sm); margin-top: var(--space-md); }
.hm-kindbtn > .mdi:first-child { color: var(--teal-d); }
.hm-kindbtn > .mdi:last-child { opacity: 1; color: var(--muted-2); }
.hm-filter { display: grid; gap: var(--space-xs); justify-items: start; padding-bottom: var(--space-sm); }
.hm-filter + .hm-filter { border-top: 1px dashed var(--line-2); padding-top: var(--space-sm); }
.hm-filter > .ws-fields { width: 100%; }
.hm-fsize { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-part { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: var(--space-xs); align-items: center; margin-bottom: var(--space-sm); }
/* the home's own parts on a job, and "Price <month>'s parts" (upkeep-kit.js partsFor) */
.up-task__buy li i { font-style: normal; font-weight: 600; color: var(--teal-d); }
.up-task__buy li b .mdi { vertical-align: -4px; margin-right: 2px; }
.up-parts { margin-top: var(--space-md); }
.up-parts small { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: var(--space-xs); }
/* a calculator row linked to a room in My home (calc-kit homeRooms) */
.cc-hr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); padding-top: var(--space-sm); border-top: 1px dashed var(--line-2); }
.cc-hr__name { display: inline-flex; align-items: center; gap: var(--space-xs); margin-right: auto; font-size: 14px; min-width: 0; }
.cc-hr__name .mdi { color: var(--teal-d); }
.cc-hr__name small { color: var(--muted); }
.cc-hr__btn { display: inline-flex; align-items: center; gap: var(--space-xs); height: 34px; padding: 0 var(--space-tight); border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--field); color: var(--ink); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.cc-hr__btn .mdi { color: var(--teal-d); }
.cc-hr__btn:hover { border-color: var(--teal); }
/* Snap the label (home-kit.js): one photo fills the sheet's fields, marked until saved */
.hm-snaprow { display: grid; gap: var(--space-xs); margin-top: var(--space-tight); }
.hm-spot .hm-snaprow { padding: 0 var(--space-tight); }
.hm-snap { cursor: pointer; justify-self: start; }
.hm-snap__status { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--muted); }
.hm-snap__status:empty { display: none; }
.hm-snap__status .mdi { flex-shrink: 0; }
.hm-snap__status.is-ok .mdi { color: var(--teal-d); }
.hm-snap__status.is-bad { color: #b42318; }
.ws-field.is-read { background: var(--teal-tint); border-color: var(--teal); }
.ws-field.is-unsure { background: var(--sand-tint); border-color: var(--sand); }

/* ── My DIY year: the calendar (js/workshop/year-kit.js, /my/year/) ── */
.yr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-md); }
.yr-head > div:first-child { min-width: 0; }
.yr-month { margin-top: var(--space-xs); }
.yr-month span { color: var(--muted); font-weight: 600; }
.yr-nav { display: flex; align-items: center; gap: var(--space-xs); flex: none; }
/* a phone, away from this month (‹ Today › + "December 2027"): Today drops its side padding */
@media (max-width: 420px) { .yr-nav .ws-btn--quiet { padding-left: var(--space-xs); padding-right: var(--space-xs); } .yr-month { font-size: clamp(28px, 8vw, 34px); } }
.yr-nav .ws-icon-btn[disabled] { opacity: .35; cursor: default; }
.yr-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-sm); margin-top: var(--space-lg); }
.yr-strip--wait { height: 104px; border-radius: var(--r-tile); background: var(--line); opacity: .5; }
.yr-day { display: grid; justify-items: center; gap: 2px; padding: var(--space-sm) var(--space-xs); border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--field); min-width: 0; }
.yr-day__n { font: 500 14px/1.2 var(--font-sans); }
.yr-day .mdi { color: var(--sand-d); }
.yr-day--wet .mdi { color: var(--ink-2); }
.yr-day b { font: 600 15px/1.2 var(--font-mono); }
.yr-day small { font: 500 11px/1.2 var(--font-mono); color: var(--muted); }
.yr-day--wk { border: 1.5px solid var(--teal); background: var(--teal-tint); }
.yr-day--wk .yr-day__n { font-weight: 700; }
.yr-src { margin-top: var(--space-sm); }
button.ws-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
.yr-zip { display: grid; grid-template-columns: 1fr auto; gap: var(--space-tight); align-items: end; margin-top: var(--space-lg); padding: var(--space-md); }
.yr-zip > div { grid-column: 1 / -1; display: grid; gap: 2px; }
.yr-zip > div small { color: var(--muted); font-size: 14px; }
.yr-list { padding: 0 var(--space-md); }
.yr-item { display: flex; align-items: center; gap: var(--space-tight); padding: var(--space-md) 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.yr-item:first-child { border-top: 0; }
.yr-item__a { display: flex; align-items: center; gap: var(--space-tight); flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.yr-item__t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.yr-item__t b { font: 600 17px/1.3 var(--font-sans); }
.yr-item__t small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.yr-item--done .yr-item__t b { color: var(--muted); }
.yr-badge { display: inline-flex; align-items: center; min-height: 28px; padding: var(--space-xs) var(--space-tight); border-radius: 999px; font: 600 13px/1.25 var(--font-sans);
  background: var(--line); color: var(--muted); white-space: nowrap; }
.ws-row__sub .yr-badge { white-space: normal; }
.yr-badge--fits { background: var(--teal-tint); color: var(--teal-d); }
.yr-badge--warn { background: var(--sand-tint); color: var(--sand-d); }
.yr-badge--bad { background: var(--sand-tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--sand); }
.yr-badge--pick { border: 1.5px dashed var(--teal); background: none; color: var(--teal-d); cursor: pointer; }
.yr-badge-btn { background: none; border: 0; padding: 0; cursor: pointer; flex-shrink: 0; max-width: 46%; text-align: right; }
.yr-badge-btn .yr-badge { white-space: normal; }
.yr-empty { padding: var(--space-lg) var(--space-md); display: grid; gap: var(--space-sm); justify-items: start; }
.yr-h { font: 600 12px/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.yr-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }
.yr-chip { min-height: 36px; padding: var(--space-sm) var(--space-md); border-radius: 999px; border: 0; background: var(--line); color: var(--ink);
  font: 500 15px/1.25 var(--font-sans); cursor: pointer; text-align: left;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* a long name wrapped into a 3-line blob */
.yr-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.yr-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xs); margin-top: var(--space-md); }
.yr-months__m { display: grid; gap: var(--space-xs); justify-items: center; }
.yr-months__m i { display: block; width: 100%; height: 34px; border-radius: 6px 2px 6px 2px; background: var(--line-2); }
.yr-months__m--1 i { background: #9fe3d7; }
.yr-months__m--2 i { background: var(--teal); }
.yr-months__m.is-now i { box-shadow: inset 0 0 0 2px var(--ink); }
.yr-months__m b { font: 500 11px/1 var(--font-mono); color: var(--muted); }
.yr-sdnote { margin-top: var(--space-tight); }
.yr-sdbtns { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }
.yr-ctl { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.yr-wks { margin-top: var(--space-md); }
/* the month grid (Month | List); drag a project or a job to another day (drag.js) */
.yr-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-md); }
.yr-cal .ws-h2 { margin-top: var(--space-xs); }
.yr-cal__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-md); }
.yr-cal__subs { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.yr-mode button { display: inline-flex; align-items: center; gap: var(--space-xs); }
.yr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.yr-grid__dow i { font-style: normal; }
.yr-grid__dow { padding: var(--space-sm) var(--space-xs); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.yr-cell { position: relative; min-width: 0; min-height: 104px; padding: var(--space-xs); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-xs); transition: background 120ms ease-out; }
.yr-grid > :nth-child(7n) { border-right: 0; }
.yr-grid > :nth-last-child(-n+7) { border-bottom: 0; }
.yr-cell--pad { background: var(--paper); }
.yr-cell.is-wkend { background: rgba(212, 165, 116, 0.07); }
.yr-cell.is-past .yr-cell__d { color: var(--muted-2); }
.yr-cell.is-sel { box-shadow: inset 0 0 0 2px var(--teal); }
.yr-cell.is-over { background: var(--teal-tint); box-shadow: inset 0 0 0 2px var(--teal); }
/* dragging: resting on ‹ › turns the month (drag.js flip) */
.dg-dragging .yr-nav [data-drag-flip]:not(:disabled) { outline: 1px dashed var(--teal-d); outline-offset: 2px; }
.yr-nav [data-drag-flip].is-over { background: var(--teal-tint); outline: 2px solid var(--teal); outline-offset: 0; }
.yr-cell__d { align-self: flex-start; min-width: 26px; height: 26px; padding: 0 var(--space-xs); border: 0; border-radius: 13px; background: none; font: 600 13px/26px var(--font-mono); color: var(--ink); cursor: pointer; }
.yr-cell.is-today .yr-cell__d { background: var(--ink); color: var(--paper); }
.yr-cell__evs { display: grid; gap: 2px; min-width: 0; }
.yr-ev { display: flex; align-items: center; gap: 2px; min-width: 0; height: 22px; padding: 0 var(--space-xs); border-radius: 6px 2px 6px 2px; font: 600 12px/22px var(--font-sans); text-decoration: none; color: var(--ink); background: var(--line); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.yr-ev span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-ev .mdi { flex-shrink: 0; }
.yr-ev[data-drag] { cursor: grab; touch-action: manipulation; }
.yr-ev--proj { background: var(--teal-tint); color: var(--teal-d); }
.yr-ev--cont { border-top-left-radius: 0; border-bottom-left-radius: 0; opacity: .75; }
.yr-ev--warn { background: var(--sand-tint); color: var(--sand-d); }
.yr-ev--up { background: var(--ink); color: var(--paper); }
.yr-ev--done { background: none; color: var(--muted); text-decoration: line-through; }
.yr-ev--ret { background: var(--sand-tint); color: var(--sand-d); }
.yr-ev--more { background: none; color: var(--muted); }
.yr-daypanel { margin-top: var(--space-md); }
.yr-daypanel__h { padding-top: var(--space-md); font: 600 12px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.yr-daypanel__none { padding: var(--space-sm) 0 var(--space-md); }
.yr-item--drag { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.yr-tray .yr-chip--drag { display: inline-flex; align-items: center; gap: var(--space-xs); cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.yr-chip--drag .mdi { color: var(--muted); }
@media (max-width: 560px) {
  .yr-cell { min-height: 56px; padding: 2px; gap: 2px; align-items: center; cursor: pointer; }
  .yr-cell__d { align-self: center; }
  .yr-grid__dow i { display: none; }
  .yr-cell__evs { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
  .yr-ev { width: 8px; height: 8px; padding: 0; border-radius: 50%; pointer-events: none; }
  .yr-ev span, .yr-ev .mdi { display: none; }
  .yr-ev--done { background: var(--line-2); }
  .yr-ev--proj { background: var(--teal); }
  .yr-ev--warn { background: var(--sand); }
  .yr-ev--ret { background: var(--sand-d); }
  .yr-ev--more { width: auto; height: auto; font-size: 10px; line-height: 1; border-radius: 0; }
}
/* drag.js */
.dg-dragging, .dg-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.dg-dragging .ws-toast { pointer-events: none; }   /* a toast never hides the day you drop on */
.dg-ghost { z-index: 80; pointer-events: none; opacity: .92; transform: rotate(-2deg) scale(1.03); outline: 2px solid var(--teal); outline-offset: 1px; }
.is-lifted { opacity: .35; }
.is-press { transform: scale(0.97); transition: transform 280ms ease-out; }
.yr-wk.is-on { box-shadow: inset 0 0 0 1.5px var(--teal); }
.yr-date { flex-direction: column; gap: 0; line-height: 1; }
.yr-date b { font: 600 17px/1 var(--font-mono); }
.yr-date small { font: 500 10px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.yr-alt { display: inline-flex; align-items: center; gap: var(--space-xs); margin: 0 var(--space-md) var(--space-tight) calc(44px + var(--space-tight) + var(--space-md));
  padding: var(--space-xs) var(--space-tight); border: 1.5px solid var(--teal); border-radius: 999px; background: var(--field); color: var(--teal-d);
  font: 600 14px/1.25 var(--font-sans); cursor: pointer; }
.yr-foot { display: flex; gap: var(--space-sm); align-items: center; }
.yr-foot [data-save] { flex: 1; }
.yr-card .yr-badge { flex-shrink: 0; }
@media (hover: hover) {
  .yr-chip:hover { background: var(--line-2); }
  .yr-chip[aria-pressed="true"]:hover { background: var(--ink-2); }
  .yr-item__a:hover b, a.yr-item:hover b { color: var(--teal-d); }
  .yr-badge--pick:hover { background: var(--teal-tint); }
}
@media (max-width: 420px) {
  .yr-strip { gap: var(--space-xs); }
  .yr-day { padding: var(--space-sm) var(--space-xs); }
  .yr-day b { font-size: 13px; }
}

/* ── My DIY year: the budget (js/workshop/year-money.js; the project's Money row, /my/year/?tab=budget) ── */
.yr-tabs { margin-bottom: var(--space-lg); }
.yr-tabs button { display: inline-flex; align-items: center; gap: var(--space-xs); }
@media (max-width: 420px) { .yr-tabs { gap: var(--space-xs); flex-wrap: nowrap; } .yr-tabs button { padding: 0 var(--space-tight); font-size: 13.5px; } .yr-tabs button .mdi { font-size: 16px; } }
.ym-facts { font-size: 15px; line-height: 1.5; color: var(--muted); }
.ym-facts b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }
.ym-costs { display: grid; margin-top: var(--space-tight); border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--field); overflow: hidden; }
.ym-cost { display: flex; align-items: flex-start; gap: var(--space-tight); padding: var(--space-tight) var(--space-md); border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.ym-cost:first-child { border-top: 0; }
.ym-cost__t { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.ym-cost__t b { font: 600 15px/1.3 var(--font-sans); }
.ym-cost__t small { color: var(--muted); font-size: 13px; }
.ym-cost__n { font: 600 15px/1.3 var(--font-mono); white-space: nowrap; }
.ym-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--space-sm); border-radius: 999px; background: var(--line); color: var(--muted); font: 500 12px/1.3 var(--font-sans); vertical-align: middle; }
.ym-chip--sand { background: var(--sand-tint); color: var(--sand-d); }
.ym-chip--done { background: var(--teal-tint); color: var(--teal-d); }
.ym-btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }
.ym-lines { display: grid; margin-top: var(--space-md); border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--field); }
.ym-line { display: flex; align-items: center; gap: var(--space-tight); padding: var(--space-tight) var(--space-md); border-top: 1px solid var(--line); }
.ym-line:first-child { border-top: 0; }
.ym-line input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--teal-d); flex-shrink: 0; }
.ym-line__t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ym-line__t b { font: 600 15px/1.3 var(--font-sans); }
.ym-line__t small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.ym-line.is-past { opacity: .55; }
.ym-price { width: 112px; flex-shrink: 0; position: relative; }
.ym-price::before { content: "$"; position: absolute; left: var(--space-tight); top: 50%; transform: translateY(-50%); color: var(--muted); font: 500 15px/1 var(--font-mono); pointer-events: none; }
.ym-price input { text-align: right; font-family: var(--font-mono); }
[data-yb] [data-total], [data-yw] [data-sum] { margin-top: var(--space-sm); }
.ym-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-top: var(--space-md); }
.ym-form { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.ym-foot { display: flex; gap: var(--space-sm); }
.ym-foot [data-save] { flex: 1; }
.ym-step { display: inline-flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; }
.ym-step button { width: 36px; height: 36px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ym-step b { min-width: 24px; text-align: center; font: 600 16px/1 var(--font-mono); }
.ym-wrap { display: flex; gap: var(--space-tight); align-items: flex-start; padding: var(--space-md); border-color: var(--sand); background: var(--sand-tint); }
.ym-wrap__t { flex: 1; min-width: 0; display: grid; gap: var(--space-xs); }
.ym-wrap__t b { font: 600 17px/1.3 var(--font-sans); }
.ym-wrap__t small { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.ym-total { margin-top: var(--space-xs); font-size: clamp(40px, 9vw, 56px); }
.ym-total span { font: 500 20px/1 var(--font-sans); color: var(--muted); letter-spacing: 0; }
.ym-bar { height: 12px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-top: var(--space-md); }
.ym-bar i { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.ym-bar.is-over i { background: var(--sand-d); }
.ym-target { margin-top: var(--space-sm); font-size: 14px; }
.ym-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-tight); margin: var(--space-lg) 0; }
.ym-tile { display: grid; gap: var(--space-xs); align-content: start; text-align: left; padding: var(--space-md); border-radius: var(--r-card); border: 1px solid var(--line); background: var(--field); color: var(--ink); cursor: pointer; font: inherit; min-width: 0; }
.ym-tile__l { font: 600 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ym-tile b { font: 800 30px/1.05 var(--font-title); letter-spacing: -.02em; }
.ym-tile b span { font: 600 16px/1 var(--font-sans); color: var(--muted); }
.ym-tile small { font-size: 13px; color: var(--muted); }
.ym-tile--teal { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.ym-tile--teal .ym-tile__l, .ym-tile--teal small { color: rgba(11, 20, 38, .78); }
.ym-list { margin-top: var(--space-lg); padding: 0 var(--space-md); }
.ym-yrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 16px; }
.ym-yrow:first-child { border-top: 0; }
.ym-yrow span { min-width: 0; display: grid; gap: 2px; }
.ym-yrow span small { color: var(--muted); font-size: 13px; }
.ym-yrow b { font: 600 17px/1.2 var(--font-mono); white-space: nowrap; }
.ym-yrow--plan { color: var(--muted); }
.ym-yrow--plan b { color: var(--muted); }
.ym-ret { display: flex; gap: var(--space-tight); align-items: flex-start; margin-top: var(--space-md); padding: var(--space-md); border: 1px solid var(--sand); border-radius: var(--r-card); background: var(--sand-tint); }
.ym-ret > .mdi { color: var(--sand-d); flex-shrink: 0; }
.ym-ret > div { flex: 1; min-width: 0; }
.ym-ret b { font: 600 17px/1.3 var(--font-sans); }
.ym-ret p { margin-top: var(--space-xs); font-size: 15px; line-height: 1.45; }
.ym-ret.is-soon { border-width: 1.5px; border-color: var(--sand-d); }
@media (hover: hover) {
  .ym-cost:hover, .ym-tile:hover { background: rgba(11, 20, 38, 0.025); }
  .ym-tile--teal:hover { background: var(--teal-hi); }
  a.ym-yrow:hover span { color: var(--teal-d); }
}
@media (max-width: 420px) {
  .ym-row2 { grid-template-columns: 1fr; }
  .ym-tile b { font-size: 26px; }
}

/* ── Napkin to plan (js/workshop/napkin-kit.js, /apps/napkin-to-plan/) ── */
.nk { display: grid; gap: var(--space-md); margin-top: var(--space-lg); scroll-margin-top: calc(var(--bar-h) + var(--space-md)); }
.nk-start { display: grid; gap: var(--space-md); }
.nk-say textarea { font-size: 17px; line-height: 1.45; }
.nk-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.nk-snap { display: inline-flex; align-items: center; gap: var(--space-tight); min-height: 64px; padding: var(--space-sm) var(--space-md); border: 1.5px dashed var(--teal);
  border-radius: var(--r-tile); background: var(--teal-tint); color: var(--ink); cursor: pointer; }
.nk-snap > .mdi { color: var(--teal-d); }
.nk-snap span { display: grid; gap: 2px; }
.nk-snap b { font: 600 15px/1.2 var(--font-sans); }
.nk-snap small { color: var(--muted); font-size: 13px; }
.nk-snap:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.nk-busy { min-height: 96px; }
/* "Here's what I heard": the napkin redraw beside the words, then the questions */
.nk-heard { display: grid; gap: var(--space-lg); }
.nk-heard__top { display: grid; gap: var(--space-md); align-items: center; }
@media (min-width: 760px) { .nk-heard__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.nk-napkin { position: relative; border-radius: var(--r-tile); overflow: hidden; background: #fbf7ec; border: 1px solid var(--line); min-height: 160px; display: grid; place-items: center; }
.nk-napkin svg { display: block; width: 100%; height: auto; max-height: 360px; }
.nk-napkin__size { position: absolute; left: var(--space-sm); bottom: var(--space-sm); font: 600 12px/1 var(--font-mono); color: #3b3a36; background: rgba(251, 247, 236, .9); padding: var(--space-xs) var(--space-sm); border-radius: 6px; }
.nk-heard__words { display: grid; gap: var(--space-sm); min-width: 0; }
.nk-heard__words p { font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.nk-sketch { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; font-size: 13px; }
.nk-sketch > span { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--teal-d); font: 600 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-right: var(--space-xs); }
.nk-sketch b { font-weight: 600; background: var(--teal-tint); padding: 2px var(--space-sm); border-radius: 999px; }
.nk-qs { display: grid; gap: var(--space-lg); }
.nk-q { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-tight); min-width: 0; }
.nk-q legend { font: 700 18px/1.25 var(--font-title); letter-spacing: -0.01em; padding: 0; margin-bottom: var(--space-tight); }
.nk-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-sm); }
.nk-choice { display: grid; grid-template-rows: auto 1fr; gap: var(--space-sm); padding: var(--space-sm); text-align: left; border: 1.5px solid var(--line); border-radius: var(--r-tile);
  background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.nk-choice:hover { border-color: var(--teal); }
.nk-choice:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nk-choice[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); background: var(--teal-tint); }
.nk-choice__pic { display: grid; place-items: center; background: #fbf7ec; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.nk-choice__pic svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.nk-choice__t { display: grid; gap: 2px; }
.nk-choice b { font: 600 15px/1.25 var(--font-sans); }
.nk-choice small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.nk-over { justify-self: center; }
.nk-own { margin: 0; }
/* hand-offs, stops, can't */
.nk-card { display: grid; gap: var(--space-tight); }
.nk-card .ws-h2 { display: flex; align-items: center; gap: var(--space-sm); }
.nk-card--route .ws-h2 .mdi { color: var(--teal-d); }
.nk-card--cant .ws-h2 .mdi { color: var(--sand-d); }
.nk-card ul { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
.nk-card p { text-wrap: pretty; }
.nk-card .ws-btn { white-space: normal; text-align: center; height: auto; min-height: 48px; }
.nk-said { font-size: 14px; color: var(--muted); }
.nk-said summary { display: inline-flex; align-items: center; gap: var(--space-xs); cursor: pointer; font-weight: 600; color: var(--ink); }
.nk-said p { margin: var(--space-sm) 0; }
/* above the plan */
.nk-head { scroll-margin-top: calc(var(--bar-h) + var(--space-md)); display: grid; gap: var(--space-md); padding: var(--space-md); margin-top: var(--space-lg); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
@media (min-width: 900px) { .nk-head { padding: var(--space-lg); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-xl); }
  .nk-head__title, .nk-changed, .nk-head .nk-left, .nk-change, .nk-head__more, .nk-head .ir-status { grid-column: 1 / -1; } }
.nk-head__title { display: grid; gap: var(--space-xs); }
.nk-badge { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-tight); border-radius: 999px;
  background: var(--teal); color: var(--on-teal); font: 600 12px/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.nk-badge--warn { background: var(--sand-tint); color: var(--sand-d); }
.nk-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); align-content: start; }
.nk-checks li { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.nk-checks li.is-ok .mdi { color: var(--teal-d); }
.nk-checks li.is-no .mdi { color: var(--sand-d); }
.nk-fit { display: flex; gap: var(--space-sm); align-items: flex-start; align-self: start; padding: var(--space-tight) var(--space-md); border-radius: var(--r-tile); background: var(--teal-tint); font-size: 14px; line-height: 1.45; }
.nk-fit > .mdi { color: var(--teal-d); }
.nk-fit div { display: grid; gap: var(--space-xs); }
.nk-changed { display: flex; gap: var(--space-sm); align-items: flex-start; padding: var(--space-sm) var(--space-tight); border-radius: var(--r-tile); background: var(--sand-tint); font-size: 14px; }
.nk-changed > .mdi { color: var(--sand-d); }
/* what their sketch or words show that the plan doesn't build (napkin_agent left_out) */
.nk-left { display: flex; gap: var(--space-sm); align-items: flex-start; padding: var(--space-tight) var(--space-md); border-radius: var(--r-tile); background: var(--sand-tint); font-size: 14px; line-height: 1.45; }
.nk-left > .mdi { color: var(--sand-d); }
.nk-left div { display: grid; gap: var(--space-xs); min-width: 0; }
.nk-left ul { margin: 0; padding-left: var(--space-md); display: grid; gap: var(--space-xs); }
.nk-change { display: flex; gap: var(--space-sm); align-items: flex-end; margin: 0; }
.nk-change .ws-field { flex: 1; min-width: 0; }
.nk-head__more { font-size: 14px; }
.nk-head__more .ws-link { display: inline; }
.nk-head__more .ws-link .mdi { margin-right: var(--space-xs); }
.pl-tools li small { display: block; color: var(--muted); font-size: 12.5px; }
.pl-tools li.is-have .mdi { color: var(--teal-d); }
.pl-tools li.is-have small { color: var(--teal-d); font-weight: 600; }
.nk-fronts { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: flex-end; justify-content: center; padding: var(--space-md) 0; }
.nk-fronts figure { margin: 0; display: grid; gap: var(--space-xs); justify-items: center; min-width: 0; max-width: 100%; }
.nk-fronts svg { max-width: 100%; height: auto; }
/* phones: the plan views shrink to the screen, and their 11-unit labels came out ~6px (review 2026-11-17).
   SVG text takes a CSS size in the drawing's own units, so these land at ~10px on a 390px phone */
@media (max-width: 599px) {
  .nk-fronts svg text { font-size: 14px; }
}
.nk-fronts figcaption { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 420px) { .nk-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nk-change { flex-wrap: wrap; } .nk-change .ws-btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .nk-choice { transition: none; } }
/* Napkin to plan: pictures and guide plans */
.nk-see { display: grid; gap: var(--space-sm); }
@media (min-width: 900px) { .nk-see { grid-column: 1 / -1; } }
.nk-see__btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.nk-see__space { cursor: pointer; }
.nk-see__space:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.nk-pics { display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.nk-pics:empty { display: none; }
.nk-pic { margin: 0; display: grid; gap: var(--space-xs); }
.nk-pic img { width: 100%; height: auto; border-radius: var(--r-tile); border: 1px solid var(--line); display: block; }
.nk-pic figcaption { display: inline-flex; align-items: center; gap: var(--space-xs); font: 500 12px/1.3 var(--font-mono); color: var(--muted); }
.nk-pic--busy > div { display: flex; align-items: center; gap: var(--space-sm); min-height: 120px; justify-content: center; border: 1.5px dashed var(--line); border-radius: var(--r-tile); color: var(--muted); font-size: 14px; }
.nk-pic--busy .mdi { animation: fa-spin 1.2s linear infinite; color: var(--teal-d); }
.nk-guide { display: grid; gap: var(--space-md); }
.nk-badge--guide { background: var(--sand-tint); color: var(--sand-d); text-transform: none; letter-spacing: 0; font: 600 13px/1.3 var(--font-sans); }
.nk-guide__why { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: 14px; color: var(--muted); }
.nk-guide__top { display: grid; gap: var(--space-lg); align-items: start; }
@media (min-width: 760px) { .nk-guide__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.nk-gsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.nk-gstep { display: flex; gap: var(--space-tight); align-items: flex-start; }
.nk-gstep h3 { font: 600 16px/1.3 var(--font-sans); margin: 0 0 var(--space-xs); }
.nk-gstep p { font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.nk-gstep__tools, .nk-gstep__safe { display: flex; gap: var(--space-xs); align-items: flex-start; margin-top: var(--space-xs); font-size: 13.5px !important; color: var(--muted); }
.nk-gstep__safe { color: var(--sand-d); }
.nk-guide__check { display: flex; gap: var(--space-sm); align-items: flex-start; padding: var(--space-tight) var(--space-md); border-radius: var(--r-tile); background: var(--teal-tint); font-size: 14.5px; }
.nk-guide__check .mdi { color: var(--teal-d); }
@media (prefers-reduced-motion: reduce) { .nk-pic--busy .mdi { animation: none; } }

/* ── My skills (skills-kit.js; /my/skills/) ──────────────────────── */
.sk-dots { display: inline-flex; gap: var(--space-xs); align-items: center; }
.sk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.sk-dot.is-on { background: var(--teal); }
.sk-dot.is-said { background: transparent; box-shadow: inset 0 0 0 2px var(--teal); }
.sk-dot.is-new { animation: sk-pop 700ms var(--ease) both; animation-delay: 350ms; }
@keyframes sk-pop { 0% { transform: scale(0.2); background: var(--line-2); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }
/* badge art: the brand shapes with an icon inside */
.sk-badge { --sk-b: 56px; width: var(--sk-b); height: var(--sk-b); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sk-badge .mdi { font-size: calc(var(--sk-b) * 0.48); }
.sk-badge--circle { border-radius: 50%; background: var(--teal); color: var(--on-teal); }
.sk-badge--square { border-radius: 8px 3px 8px 3px; background: var(--ink); color: var(--paper); transform: rotate(-4deg); }
.sk-badge--triangle { background: var(--sand); color: var(--ink); clip-path: polygon(50% 2%, 100% 92%, 0 92%); }
.sk-badge--triangle .mdi { margin-top: calc(var(--sk-b) * 0.22); font-size: calc(var(--sk-b) * 0.36); }
.sk-badge--dots { border-radius: 50%; border: 2.5px dotted var(--ink); background: var(--teal-tint); color: var(--teal-d); }
/* "Skills you'll use" under a result */
.sk-ready { margin-top: var(--space-md); padding: var(--space-tight) var(--space-md) var(--space-md); border: 1.5px dashed var(--line-2); border-radius: var(--r-card); background: var(--surface); }
.sk-ready__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.sk-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }
.sk-chip { position: relative; display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 32px; padding: var(--space-xs) var(--space-tight); border-radius: 999px;
  background: var(--field); border: 1px solid var(--line); font: 500 13px/1.2 var(--font-sans); color: var(--ink); transition: border-color 150ms ease-out; }
.sk-chip .sk-dot { width: 8px; height: 8px; }
.sk-verdict { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-sm); border-radius: 4px; font: 600 12px/1 var(--font-sans); }
.sk-verdict--right { background: var(--teal-tint); color: var(--teal-d); }
.sk-verdict--stretch, .sk-verdict--big { background: var(--sand-tint); color: var(--sand-d); }
.sk-ready__new { margin-top: var(--space-tight); font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (hover: hover) { .sk-chip:hover { border-color: var(--teal); } }
/* the page */
.sk-stage { margin-top: var(--space-xs); }
.sk-next, .sk-sugg, .sk-claimrow, .sk-keep { margin-top: var(--space-md); }
.sk-next .ws-card__head span { font-size: 15px; }
.sk-need { list-style: none; margin: var(--space-tight) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: var(--space-xs) var(--space-md); }
.sk-need li { display: flex; align-items: center; gap: var(--space-xs); font-size: 13.5px; color: var(--muted); }
.sk-need li.is-met { color: var(--teal-d); }
.sk-sugg .ws-hero__title { font-size: 20px; }
.sk-claimrow { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.sk-row .ws-row__end { gap: var(--space-sm); }
.sk-fams { display: grid; gap: var(--space-sm); }
.sk-fam { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.sk-fam > summary { display: flex; align-items: center; gap: var(--space-tight); padding: var(--space-tight) var(--space-md); cursor: pointer; list-style: none; }
.sk-fam > summary::-webkit-details-marker { display: none; }
.sk-fam > summary b { flex: 1; font: 600 16px/1.25 var(--font-sans); }
.sk-fam > summary small { color: var(--muted); font-size: 13px; }
.sk-fam > summary .sk-fam__chev { color: var(--muted-2); transition: transform 200ms var(--ease); }
.sk-fam[open] > summary .sk-fam__chev { transform: rotate(180deg); }
.sk-fam .ws-rows { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
@media (hover: hover) { .sk-fam > summary:hover { background: rgba(11, 20, 38, 0.025); } }
.sk-badges__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-md) var(--space-sm); }
.sk-badges__b { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); border: 0; background: none; padding: var(--space-xs); cursor: pointer; text-align: center; }
.sk-badges__b > span:last-child { font: 600 13px/1.25 var(--font-sans); }
.sk-badges__more { display: flex; gap: var(--space-xs); align-items: center; margin-top: var(--space-md); font-size: 14px; color: var(--muted); }
.sk-keep { display: grid; gap: var(--space-sm); justify-items: start; }
.sk-how { margin-top: var(--space-lg); }
.sk-badgeview { display: grid; justify-items: center; gap: var(--space-tight); text-align: center; padding: var(--space-md) 0 var(--space-sm); }
.sk-badgeview__at { font-size: 12px; color: var(--muted); }
.sk-claims { display: grid; gap: var(--space-tight); }
.sk-claim { display: grid; gap: var(--space-sm); }
.sk-claim > span:first-child { font: 600 15px/1.3 var(--font-sans); }
.sk-claim__seg button { height: 34px; padding: 0 var(--space-tight); font-size: 13px; }
/* one skill */
.sk-back { display: inline-block; font-size: 14px; }
.sk-back .mdi { margin-right: var(--space-xs); }
.sk-head { display: flex; gap: var(--space-md); align-items: center; margin-top: var(--space-md); }
.sk-head__tile { width: 64px; height: 64px; }
.sk-level { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); }
.sk-level .sk-dot { width: 14px; height: 14px; }
.sk-blurb { margin-top: var(--space-tight); font-size: 17px; line-height: 1.5; max-width: 62ch; }
.sk-gate { display: flex; gap: var(--space-sm); align-items: flex-start; margin-top: var(--space-md); padding: var(--space-tight) var(--space-md);
  border-radius: var(--r-tile); background: var(--sand-tint); color: var(--sand-d); font-size: 14.5px; line-height: 1.45; }
.sk-mistakes { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-sm); font-size: 15.5px; line-height: 1.5; }
.sk-safety { display: flex; gap: var(--space-sm); align-items: flex-start; margin-top: var(--space-lg); padding: var(--space-tight) var(--space-md);
  border-radius: var(--r-tile); background: var(--teal-tint); font-size: 14.5px; line-height: 1.45; }
.sk-safety .mdi { color: var(--teal-d); }
.ws-chip.sk-have { background: var(--teal-tint); color: var(--teal-d); }
/* the "What you practiced" sheet */
.sk-done { display: grid; gap: var(--space-md); }
.sk-done__t span { display: block; font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: var(--space-xs); }
.sk-stageup { display: flex; gap: var(--space-tight); align-items: center; padding: var(--space-tight) var(--space-md); border-radius: var(--r-tile); background: var(--ink); color: var(--paper); }
.sk-stageup .mdi { color: var(--teal-hi); }
.sk-stageup small, .sk-earned__b small { display: block; font-size: 13.5px; line-height: 1.4; }
.sk-stageup small { color: var(--on-ink-muted); }
.sk-earned { display: grid; gap: var(--space-tight); }
.sk-earned__b { display: flex; gap: var(--space-md); align-items: center; animation: sk-rise 500ms var(--ease) both; }
.sk-earned__b b { font: 700 18px/1.2 var(--font-title); }
.sk-earned__b small { color: var(--muted); }
@keyframes sk-rise { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
.sk-done__row.is-up .ws-row__title { color: var(--ink); }
.sk-done__row { flex-wrap: wrap; }
.sk-feel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); flex: 1 0 100%; padding-left: calc(44px + var(--space-tight)); }
.sk-done__undo { justify-self: center; font-size: 14px; }
.sk-feel small { font-size: 12.5px; color: var(--muted); margin-right: var(--space-xs); }
.sk-feel button { height: 28px; padding: 0 var(--space-tight); border-radius: 999px; border: 1px solid var(--line-2); background: var(--field); font: 600 12.5px/1 var(--font-sans); cursor: pointer; }
.sk-feel button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sk-done__next { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.sk-done__btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.sk-done__btns .ws-btn { flex: 1 1 140px; justify-content: center; }
/* the hub card */
.sk-hub { display: grid; gap: var(--space-xs); padding: var(--space-md); color: inherit; }
.sk-hub__top { display: flex; justify-content: space-between; align-items: center; }
.sk-hub__badges { display: inline-flex; gap: var(--space-xs); }
.sk-hub__stage { font: 700 22px/1.15 var(--font-title); letter-spacing: -0.02em; }
.sk-hub__next { display: flex; gap: var(--space-xs); align-items: flex-start; margin-top: var(--space-sm); font-size: 14px; line-height: 1.4; color: var(--teal-d); font-weight: 600; }
@media (hover: hover) { .sk-hub:hover { border-color: var(--teal); } .sk-badges__b:hover .sk-badge { transform: scale(1.04); } }
/* share card preview */
.sk-sharecard { display: grid; gap: var(--space-md); }
.sk-sharecard img { width: 100%; max-width: 360px; justify-self: center; height: auto; border-radius: var(--r-tile); border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .sk-dot.is-new, .sk-earned__b { animation: none; } }

/* ── the DIY year in review (year-review.js; My DIY year's review tab) ───── */
.yr-rv { display: grid; gap: 0; }
.yr-rv__hero { padding: var(--space-lg); display: grid; gap: var(--space-sm); }
.yr-rv__big { font: 800 clamp(32px, 7vw, 52px)/1.02 var(--font-title); letter-spacing: -0.035em; color: var(--paper); text-wrap: balance; }
.yr-rv__sub { color: #c9cfda; font-size: 15px; line-height: 1.45; max-width: 52ch; }
.yr-rv__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-lg); margin-top: var(--space-md); }
@media (min-width: 640px) { .yr-rv__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.yr-rv__stats div { display: grid; gap: var(--space-xs); }
.yr-rv__stats b { font: 800 32px/1 var(--font-title); letter-spacing: -0.03em; color: var(--teal-hi); }
.yr-rv__stats span { font-size: 13px; color: var(--on-ink-muted); }
.yr-rv__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xs); align-items: end; height: 132px; padding: var(--space-md); }
.yr-rv__m { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: var(--space-xs); height: 100%; }
.yr-rv__m i { display: block; width: 100%; max-width: 28px; border-radius: 6px 2px 6px 2px; background: var(--teal); }
.yr-rv__m i.is-zero { background: var(--line); }
.yr-rv__m b { font: 600 11px/1 var(--font-mono); color: var(--ink); min-height: 11px; }
.yr-rv__m span { font: 600 10px/1 var(--font-mono); color: var(--muted); }
.yr-rv__busy { margin-top: var(--space-sm); }
.yr-rv__money { display: grid; gap: var(--space-sm); justify-items: start; }
.yr-rv__money b { font: 700 20px/1.2 var(--font-title); }
.yr-rv__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
.yr-rv__photos button { padding: 0; border: 2px solid transparent; border-radius: var(--r-tile); overflow: hidden; background: var(--line); cursor: pointer; aspect-ratio: 1; }
.yr-rv__photos button[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-tint); }
.yr-rv__photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yr-rv__share { display: grid; gap: var(--space-sm); }
.yr-rv__btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.yr-rv__btns .ws-btn { flex: 1 1 200px; justify-content: center; }
.yr-rv__empty { display: grid; gap: var(--space-sm); justify-items: start; }
.yr-rv__card { display: grid; gap: var(--space-xs); color: var(--paper); }
.yr-rv__card .ws-hero__title { margin-top: 0; }
/* My skills: practice drills (skills-kit.js mountDrill) */
.sk-drillrow { display: flex; align-items: center; gap: var(--space-md); color: inherit; }
.sk-drillrow > span { flex: 1; display: grid; gap: var(--space-xs); min-width: 0; }
.sk-drillrow b { font: 600 16px/1.3 var(--font-sans); }
.sk-drillrow small { color: var(--muted); font-size: 13.5px; }
.sk-drillrow > .mdi:first-child { color: var(--teal-d); }
.sk-needbox { display: grid; gap: var(--space-md); justify-items: start; min-width: 0; }
.sk-needbox > div { width: 100%; min-width: 0; }
.sk-needbox .ws-btn { max-width: 100%; }
.sk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.sk-steps button { display: flex; gap: var(--space-tight); align-items: flex-start; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-tile); padding: var(--space-tight) var(--space-md); cursor: pointer; font-size: 15px; line-height: 1.5; }
.sk-steps button .mdi { color: var(--muted-2); margin-top: 1px; }
.sk-steps button[aria-pressed="true"] { background: var(--teal-tint); border-color: var(--teal-tint); }
.sk-steps button[aria-pressed="true"] .mdi { color: var(--teal-d); }
.sk-ticks { display: grid; gap: var(--space-sm); }
.sk-ticks label { display: flex; gap: var(--space-sm); align-items: center; font-size: 15px; cursor: pointer; }
.sk-ticks input { width: 20px; height: 20px; accent-color: var(--teal-d); }
.sk-snap { display: grid; gap: var(--space-md); justify-items: start; }
.sk-snap > p:first-child { font-size: 15px; line-height: 1.5; }
.sk-snap__img { width: 100%; max-width: 420px; height: auto; border-radius: var(--r-tile); border: 1px solid var(--line); }
.sk-snap__lvl { margin-top: 0; }
.sk-lookfor { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-sm); font-size: 15px; line-height: 1.5; }
.sk-res { display: flex; gap: var(--space-tight); align-items: flex-start; width: 100%; padding: var(--space-md); border-radius: var(--r-tile); }
.sk-res > div { display: grid; gap: var(--space-sm); min-width: 0; flex: 1; }
.sk-res b { font: 700 18px/1.25 var(--font-title); }
.sk-res--pass { background: var(--teal-tint); } .sk-res--pass > .mdi { color: var(--teal-d); }
.sk-res--almost { background: var(--sand-tint); } .sk-res--almost > .mdi { color: var(--sand-d); }
.sk-res--retake { background: var(--line); }
.sk-res--busy { background: var(--surface); border: 1px dashed var(--line-2); align-items: center; color: var(--muted); }
.sk-res--busy .mdi { animation: fa-spin 1.2s linear infinite; color: var(--teal-d); }
.sk-res__tip { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.sk-res__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.sk-res__checks li { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 14.5px; }
.sk-res__checks li b { font: 600 14.5px/1.35 var(--font-sans); display: block; }
.sk-res__checks small { color: var(--muted); font-size: 13px; display: block; }
.sk-res__checks li.is-ok .mdi { color: var(--teal-d); } .sk-res__checks li.is-no .mdi { color: var(--sand-d); }
.sk-res__btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (prefers-reduced-motion: reduce) { .sk-res--busy .mdi { animation: none; } }
/* Garage mode: a risky first time (My skills, garage.js skillGate) */
.gm-skillgate { display: flex; gap: var(--space-tight); align-items: flex-start; margin: var(--space-md) 0; padding: var(--space-md); border-radius: var(--r-tile);
  background: var(--sand-tint); color: var(--ink); }
.gm-skillgate > .mdi { color: var(--sand-d); }
.gm-skillgate > div { display: grid; gap: var(--space-xs); min-width: 0; }
.gm-skillgate b { font: 700 17px/1.3 var(--font-title); }
.gm-skillgate small { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.gm-skillgate__btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); }

/* ── Build logs, remix, Community (log-kit.js; docs/agents/workshop.md › Build logs) ── */
.lg-title { margin-top: var(--space-sm); }
.lg-by { margin-top: var(--space-xs); font-size: 16px; }
.lg-own { background: var(--ink); color: var(--paper); border-radius: var(--r-card); padding: var(--space-tight) var(--space-md); margin-bottom: var(--space-lg); }
.lg-own__t { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 14px; line-height: 1.45; color: #d5dae3; }
.lg-own__t .mdi { color: var(--teal-hi); margin-top: 1px; }
.lg-own__t b { color: var(--paper); font-weight: 600; }
.lg-own__b { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }
.lg-own .ws-btn--line { color: var(--paper); border-color: #3a4558; }
.lg-own .ws-btn--quiet { color: var(--on-ink-muted); }
.lg-own .ws-btn--soft { background: #16343a; color: var(--teal-hi); }
.lg-hero { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); }
.lg-hero--two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.lg-ph { position: relative; display: block; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--r-card); overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.lg-hero--two .lg-ph { aspect-ratio: auto; height: 100%; min-height: 180px; }
.lg-hero--two .lg-ph--before { border-radius: 4px 16px 4px 16px; }
.lg-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-ph__tag { position: absolute; top: var(--space-sm); left: var(--space-sm); z-index: 1; padding: var(--space-xs) var(--space-sm); border-radius: 4px;
  background: var(--ink); color: var(--paper); font: 600 10px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.lg-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-sm); margin-top: var(--space-sm); }
.lg-step { display: flex; flex-direction: column; gap: var(--space-xs); padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; min-width: 0; }
.lg-step img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-tile); display: block; background: var(--line); }
.lg-step span { font-size: 12px; color: var(--muted); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--space-sm); margin-top: var(--space-md); }
.lg-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 4px 14px 4px; padding: var(--space-tight); min-width: 0; }
.lg-stat b { display: block; font: 600 22px/1.15 var(--font-mono); letter-spacing: -0.02em; margin-top: var(--space-xs); }
.lg-stat small { display: block; font-size: 12px; color: var(--muted); margin-top: var(--space-xs); }
.lg-stat--saved b { color: var(--teal-d); }
.lg-credit { display: flex; gap: var(--space-sm); align-items: flex-start; margin-top: var(--space-md); padding: var(--space-tight) var(--space-md); background: var(--teal-tint); border-radius: var(--r-card); color: var(--ink); font-size: 15px; }
.lg-credit .mdi { color: var(--teal-d); }
.lg-credit a { color: var(--teal-d); font-weight: 600; }
.lg-credit q { display: block; margin-top: var(--space-xs); font-style: italic; color: var(--ink-2); }
.lg-note { margin-top: var(--space-md); font-size: 16px; line-height: 1.55; }
.lg-note--tip { background: var(--sand-tint); border-color: transparent; }
.lg-fix { margin-top: var(--space-md); }
.lg-fix p { margin-top: var(--space-xs); line-height: 1.5; }
.lg-fix ol { margin: var(--space-sm) 0 0; padding-left: var(--space-lg); display: grid; gap: var(--space-sm); line-height: 1.45; }
.lg-fix .ws-eyebrow + p, .lg-fix p + .ws-eyebrow, .lg-fix ol + .ws-note { display: block; margin-top: var(--space-tight); }
.lg-plan { margin-top: var(--space-md); }
.lg-plan__h { display: flex; gap: var(--space-tight); align-items: center; }
.lg-plan__h b { display: block; font: 600 18px/1.25 var(--font-title); letter-spacing: -0.015em; margin-top: var(--space-xs); }
.lg-plan__h small { display: block; color: var(--muted); font-size: 14px; margin-top: var(--space-xs); }
.lg-plan__r { display: flex; gap: var(--space-sm); align-items: flex-start; margin-top: var(--space-tight); color: var(--teal-d); font-size: 14px; }
.lg-items { margin-top: var(--space-tight); border-top: 1px solid var(--line); padding-top: var(--space-tight); }
.lg-items summary { cursor: pointer; display: flex; gap: var(--space-sm); align-items: center; font-weight: 600; font-size: 15px; list-style: none; }
.lg-items summary::-webkit-details-marker { display: none; }
.lg-items ul { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: grid; gap: var(--space-xs); font-size: 14px; }
.lg-items li span { display: inline-block; min-width: 72px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lg-items li small { color: var(--muted); }
.lg-skills { margin-top: var(--space-md); }
.lg-social { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.lg-pill { display: inline-flex; align-items: center; gap: var(--space-xs); height: 36px; padding: 0 var(--space-tight); border-radius: 999px; background: var(--line); color: var(--ink); font: 500 14px/1 var(--font-sans); border: 0; }
.lg-pill--teal { background: var(--teal-tint); color: var(--teal-d); }
.lg-pill--btn { cursor: pointer; }
.lg-pill--btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lg-built { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; margin-top: var(--space-tight); }
.lg-built .ws-eyebrow { width: 100%; }
.lg-also { display: flex; gap: var(--space-sm); align-items: flex-start; margin-top: var(--space-md); color: var(--muted); font-size: 14px; }
.lg-qs { margin-top: var(--space-xl); }
.lg-qs > .ws-note { margin-top: var(--space-sm); }
.lg-q { border-top: 1px solid var(--line); padding: var(--space-tight) 0; }
.lg-qs > h2 + .lg-q { margin-top: var(--space-tight); }
.lg-q.is-hidden { opacity: 0.6; }
.lg-q__who { font: 600 13px/1.2 var(--font-sans); color: var(--muted); }
.lg-q__t { margin-top: var(--space-xs); line-height: 1.5; }
.lg-q__a { margin-top: var(--space-sm); padding: var(--space-sm) var(--space-tight); border-left: 3px solid var(--teal); background: var(--surface); border-radius: 0 8px 8px 0; }
.lg-q__a b { font-size: 13px; }
.lg-q__a p { margin-top: var(--space-xs); line-height: 1.5; }
.lg-q__x { display: flex; gap: var(--space-md); margin-top: var(--space-xs); }
.lg-q__x .ws-link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }
.lg-ans, .lg-ask { display: grid; gap: var(--space-sm); margin-top: var(--space-sm); }
.lg-ask { margin-top: var(--space-md); }
.lg-ans .ws-btn, .lg-ask .ws-btn { justify-self: start; }
.lg-qs > .ws-btn { margin-top: var(--space-md); }
.lg-qs > .lg-ask + .ws-note { margin-top: var(--space-sm); }
.lg-fine { margin-top: var(--space-lg); }
.lg-report { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13px; }
.lg-big { margin: 0; }
.lg-big img { width: 100%; max-height: 70vh; object-fit: contain; display: block; border-radius: var(--r-tile); background: var(--line); }
.lg-big figcaption { margin-top: var(--space-sm); color: var(--muted); font-size: 14px; }
.lg-signin { display: flex; gap: var(--space-md); align-items: flex-start; }
.lg-signin .ws-btn { margin-top: var(--space-md); }
.lg-loading { display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-xl) 0; }
.lg-hint { display: flex; gap: var(--space-xs); align-items: flex-start; margin-top: var(--space-sm); }
.lg-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-sm); margin-top: var(--space-tight); }
.lg-pick { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: var(--r-tile); overflow: hidden; background: var(--line); cursor: pointer; }
.lg-pick img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.55; transition: opacity 150ms ease-out; }
.lg-pick.is-on { border-color: var(--teal); }
.lg-pick.is-on img { opacity: 1; }
.lg-pick__tag { position: absolute; left: var(--space-xs); bottom: var(--space-xs); display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 var(--space-sm);
  border-radius: 4px; background: var(--teal); color: var(--on-teal); font: 600 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.lg-pick__tag--after { background: var(--ink); }
.lg-pick__tag--before { background: var(--sand-d); }
.lg-pick__tag--step { padding: 0; }
.lg-pick--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xs); border: 1.5px dashed var(--line-2); background: var(--surface); color: var(--teal-d); font-size: 13px; font-weight: 600; text-align: center; }
.lg-pick--add.is-busy { opacity: 0.5; pointer-events: none; }
.lg-nums .ws-field input { padding-right: 56px; }
.lg-carry { display: flex; gap: var(--space-tight); align-items: flex-start; }
.lg-carry .mdi { color: var(--teal-d); }
.lg-carry b { display: block; font-weight: 600; line-height: 1.35; }
.lg-carry small { display: block; color: var(--muted); font-size: 14px; margin-top: var(--space-xs); line-height: 1.4; }
.lg-opts { display: grid; gap: var(--space-tight); }
.lg-check { display: flex; gap: var(--space-tight); align-items: flex-start; cursor: pointer; }
.lg-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal-d); flex-shrink: 0; }
.lg-check b { display: block; font-weight: 600; }
.lg-check small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: var(--space-xs); }
.lg-done { text-align: center; padding: var(--space-xl) 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.lg-done .ws-sub { max-width: 48ch; margin-top: 0; }
.lg-done__b { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.lg-roles { margin-top: var(--space-md); }
.lg-tabs { margin-top: var(--space-lg); }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-md); margin-top: var(--space-md); }
.lg-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; color: inherit; transition: border-color 150ms ease-out, transform 120ms ease-out; min-width: 0; }
.lg-card:active { transform: scale(0.985); }
.lg-card__img { display: block; aspect-ratio: 4 / 3; background: var(--line); }
.lg-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-card__img--none { display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.lg-card__b { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-tight) var(--space-md) var(--space-md); min-width: 0; }
.lg-card__b b { font: 600 18px/1.25 var(--font-title); letter-spacing: -0.015em; }
.lg-card__b small { color: var(--muted); font-size: 14px; }
.lg-card__s { display: flex; flex-wrap: wrap; gap: var(--space-tight); margin-top: var(--space-xs); font: 600 13px/1.2 var(--font-mono); }
.lg-card__s i { font: 400 12px/1 var(--font-sans); color: var(--muted); font-style: normal; }
.lg-card__rx { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--teal-d); margin-left: auto; }
.lg-mine { display: flex; gap: var(--space-md); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lg-mine b { display: block; font-weight: 600; }
.lg-mine small { display: block; color: var(--muted); font-size: 14px; margin-top: var(--space-xs); }
.lg-minebox > .ws-eyebrow { display: block; margin-bottom: var(--space-sm); }
.lg-empty { grid-column: 1 / -1; }
.lg-more { display: flex; justify-content: center; margin-top: var(--space-lg); }
.fa-sharefix { margin-top: var(--space-tight); }
@media (hover: hover) {
  .lg-card:hover { border-color: var(--teal); }
  .lg-pick:hover { border-color: var(--teal-hi); }
  .lg-pill--btn:hover { background: var(--line-2); }
  .lg-report:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
}

/* ── Seasonal challenge: Winter fix-up (challenge-kit.js; docs/agents/workshop.md › Winter fix-up) ── */
.ch-hero { display: flex; flex-direction: column; gap: var(--space-tight); }
.ch-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); }
.ch-hero__icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px 4px 14px 4px; background: #1e2a3f; color: var(--teal-hi); flex-shrink: 0; }
.ch-hero__t { color: var(--paper); }
.ch-hero__p { color: #c9cfda; font-size: 16px; line-height: 1.5; max-width: 56ch; }
.ch-hero__when { display: flex; gap: var(--space-sm); align-items: center; color: var(--teal-hi); font-size: 14px; font-weight: 600; }
.ch-hero__count { font: 600 12px/1.3 var(--font-mono); letter-spacing: 0.08em; color: var(--on-ink-muted); }
.ch-hero .ch-join { align-self: flex-start; margin-top: var(--space-xs); }
.ch-prog b { font: 700 20px/1.2 var(--font-title); color: var(--paper); }
.ch-prog small { margin-left: var(--space-sm); color: var(--on-ink-muted); font-size: 13px; }
.ch-prog__bar { margin-top: var(--space-sm); background: #24324c; }
.ch-won { display: flex; gap: var(--space-md); align-items: center; margin-top: var(--space-md); }
.ch-won > div > b { display: block; font: 700 18px/1.2 var(--font-title); }
.ch-won > div > span { display: block; color: var(--muted); font-size: 14px; margin-top: var(--space-xs); }
.ch-won .ws-btn { margin-top: var(--space-tight); }
.ch-job .ws-row__sub { line-height: 1.4; }
.ch-job.is-done .ws-row__sub { color: var(--teal-d); }
.ch-job { align-items: flex-start; }
.ch-job__go { display: inline-block; margin-top: var(--space-xs); color: var(--teal-d); font-weight: 600; font-size: 14px; }
.ch-job__go .mdi { margin-left: var(--space-xs); }
@media (hover: hover) { .ch-job__go:hover { text-decoration: underline; text-underline-offset: 3px; } }
.ch-gallery { margin-top: var(--space-tight); }
.ch-rules ul { margin: var(--space-sm) 0 0; padding-left: var(--space-lg); display: grid; gap: var(--space-sm); font-size: 15px; line-height: 1.5; }
.ch-hub { display: flex; gap: var(--space-tight); align-items: center; color: inherit; }
.ch-hub > .mdi { color: var(--muted-2); }
.ch-hub__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.ch-hub__t b { font: 600 18px/1.25 var(--font-title); letter-spacing: -0.015em; }
.ch-hub__t small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.ch-hub__t .ws-progress { margin-top: var(--space-xs); }
.sk-done__ch { color: var(--teal-d); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .ch-hub:hover { border-color: var(--teal); } }

/* ── Local circles (circle-kit.js; docs/agents/workshop.md › Local circles) ── */
.cl-in { display: flex; gap: var(--space-md); align-items: flex-start; margin-top: var(--space-lg); }
.cl-in .ws-btn { margin-top: var(--space-md); }
.cl-two { display: grid; gap: var(--space-md); }
@media (min-width: 760px) { .cl-two { grid-template-columns: 3fr 2fr; align-items: start; } }
.cl-start, .cl-code { display: grid; gap: var(--space-tight); }
.cl-start .ws-btn, .cl-code .ws-btn { justify-self: start; }
.cl-hint { color: var(--muted); font-size: 14px; line-height: 1.45; }
.cl-give { margin-top: var(--space-lg); background: var(--sand-tint); border-color: transparent; }
.cl-give b { display: block; font-weight: 600; }
.cl-give small { display: block; color: var(--muted); font-size: 14px; margin-top: var(--space-xs); }
.cl-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 var(--space-xs); border-radius: 11px;
  background: var(--teal); color: var(--on-teal); font: 600 12px/1 var(--font-sans); }
.cl-what { margin-top: var(--space-md); font-size: 16px; line-height: 1.55; max-width: 60ch; }
.cl-rules { margin: var(--space-sm) 0 var(--space-tight); padding-left: var(--space-lg); display: grid; gap: var(--space-sm); font-size: 15px; line-height: 1.5; }
.cl-joinf { display: grid; gap: var(--space-tight); }
.cl-joinf .ws-btn { justify-self: start; }
.cl-grow { display: flex; gap: var(--space-md); align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: var(--space-lg); }
.cl-grow > div { flex: 1 1 220px; min-width: 0; }
.cl-grow b { display: block; font: 600 17px/1.3 var(--font-title); }
.cl-grow small { display: block; color: var(--muted); font-size: 14px; margin-top: var(--space-xs); }
.cl-reqs { display: grid; gap: var(--space-sm); }
.cl-req p { line-height: 1.45; }
.cl-req q { display: block; margin-top: var(--space-sm); color: var(--ink-2); font-style: italic; }
.cl-req__b { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }
.cl-req small { display: block; color: var(--muted); font-size: 13px; margin-top: var(--space-sm); }
.cl-tabsrow { display: flex; gap: var(--space-sm); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cl-items { display: grid; gap: var(--space-sm); margin-top: var(--space-tight); }
.cl-item { display: flex; gap: var(--space-tight); align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--space-tight) var(--space-md); }
.cl-item__b { flex: 1 1 200px; min-width: 0; }
.cl-item__b b { display: block; font: 600 17px/1.3 var(--font-title); letter-spacing: -0.01em; }
.cl-item__b p { margin-top: var(--space-xs); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.cl-item__b small { display: block; margin-top: var(--space-xs); color: var(--muted); font-size: 13px; }
.cl-item__a { display: flex; gap: var(--space-xs); align-items: center; }
.cl-st { display: inline-flex; gap: var(--space-xs); align-items: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.cl-st--yes { color: var(--teal-d); }
.cl-more { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--muted-2); cursor: pointer; border-radius: 8px; }
.cl-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); text-align: center; padding: var(--space-lg) var(--space-md);
  border: 1.5px dashed var(--line-2); border-radius: var(--r-card); color: var(--muted); }
.cl-empty p { max-width: 40ch; font-size: 15px; line-height: 1.45; }
.cl-members summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.cl-members summary::-webkit-details-marker { display: none; }
.cl-members ul { list-style: none; margin: var(--space-tight) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.cl-members li { display: flex; justify-content: space-between; gap: var(--space-sm); align-items: center; flex-wrap: wrap; font-size: 15px; }
.cl-members small { color: var(--muted); font-size: 12px; margin-left: var(--space-xs); }
.cl-members__a { display: flex; gap: var(--space-tight); }
.cl-members__a .ws-link, .cl-members__a button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }
.cl-foot { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.cl-rulesbox summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; }
.cl-add { display: grid; gap: var(--space-tight); }
.cl-sugg { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.cl-sugg small { width: 100%; color: var(--muted); font-size: 13px; }
.cl-sugg .ws-chip { border: 0; cursor: pointer; }
.cl-codebig { margin-top: var(--space-md); padding: var(--space-md); border: 1.5px dashed var(--teal); border-radius: var(--r-card); text-align: center; }
.cl-codebig b { display: block; margin-top: var(--space-xs); font: 600 32px/1.2 var(--font-mono); letter-spacing: 0.08em; }
.cl-inv { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-md) 0 var(--space-sm); }
.ym-give { color: var(--teal-d); font-weight: 600; font-size: 13px; margin-left: var(--space-sm); }
.cl-kind { display: inline-block; margin-left: var(--space-xs); padding: 0 var(--space-xs); border-radius: 4px; background: var(--sand-tint); color: var(--ink-2);
  font: 600 11px/1.3 var(--font-mono); letter-spacing: 0.04em; vertical-align: 2px; }
.cl-kinds { margin-bottom: var(--space-sm); }
.cl-kinds button { display: inline-flex; align-items: center; gap: var(--space-xs); }

/* ── Friends circles (friends-kit.js; docs/agents/workshop.md › Community: friends circles) ── */
.fc-root { display: block; }
.fc-about { margin-top: var(--space-sm); font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 60ch; }
.fc-head { display: flex; gap: var(--space-sm) var(--space-md); align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: var(--space-xs); }
.fc-head__b { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.fc-welcome { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); background: var(--teal-tint); border-color: transparent; }
.fc-welcome p { font-size: 15px; line-height: 1.5; }
.fc-welcome__b { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.fc-newbie ul { list-style: none; margin: var(--space-sm) 0 var(--space-tight); padding: 0; display: grid; gap: var(--space-tight); }
.fc-newbie li { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 15px; line-height: 1.45; }
.fc-newbie li .mdi { color: var(--teal-d); flex-shrink: 0; }
.fc-comp { display: grid; gap: var(--space-sm); }
.fc-comp__top { display: flex; gap: var(--space-tight); align-items: flex-start; }
.fc-comp__f { flex: 1; min-width: 0; }
.fc-comp__f textarea { width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--line-2); border-radius: 4px; background: var(--field);
  padding: var(--space-sm) var(--space-tight); font: 400 16px/1.45 var(--font-sans); color: var(--ink); }
.fc-comp__f textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.fc-comp__bar { display: flex; gap: var(--space-sm); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fc-comp__kinds { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.fc-pick { cursor: pointer; }
.fc-thumbs { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.fc-thumbs:empty { display: none; }
.fc-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--line); }
.fc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-thumb button { position: absolute; top: var(--space-xs); right: var(--space-xs); width: 24px; height: 24px; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fc-feed { display: grid; gap: var(--space-md); }
.fc-post { display: grid; gap: var(--space-tight); min-width: 0; }
.fc-pin { display: inline-flex; align-items: center; gap: var(--space-xs); font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-d); }
.fc-post__h { display: flex; gap: var(--space-tight); align-items: center; }
.fc-post__h p { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; }
.fc-post__h b, .fc-post__h a { font-weight: 600; color: var(--ink); text-decoration: none; }
.fc-post__h small { display: block; color: var(--muted); font-size: 13px; }
.fc-av { width: 40px; height: 40px; font-size: 16px; flex-shrink: 0; }
.fc-av--sm { width: 28px; height: 28px; font-size: 12px; }
.fc-text { font-size: 16px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.fc-photos { display: grid; gap: var(--space-xs); grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 8px; overflow: hidden; }
.fc-photos--1 { grid-template-columns: 1fr; }
.fc-photo { display: block; padding: 0; border: 0; background: var(--line); cursor: zoom-in; aspect-ratio: 4 / 3; max-width: 100%; }
.fc-photos--1 .fc-photo { aspect-ratio: auto; max-height: 360px; }
.fc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-zoom { display: block; width: 100%; height: auto; border-radius: 8px; }
.fc-att { display: flex; gap: var(--space-tight); align-items: flex-start; padding: var(--space-tight); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.fc-att__t { flex: 1; min-width: 0; display: grid; gap: var(--space-xs); }
.fc-att__t b { font: 600 17px/1.3 var(--font-title); letter-spacing: -0.01em; }
.fc-att__t small { color: var(--muted); font-size: 13px; }
.fc-att__t p { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.fc-att__b { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.fc-log { display: flex; gap: var(--space-tight); align-items: center; padding: var(--space-sm); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink); text-decoration: none; background: var(--paper); }
.fc-log img, .fc-log__no { width: 88px; height: 66px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.fc-log__t { flex: 1; min-width: 0; display: grid; gap: var(--space-xs); }
.fc-log__t b { font: 600 16px/1.3 var(--font-title); }
.fc-log__t small { color: var(--muted); font-size: 13px; }
@media (hover: hover) { .fc-log:hover { border-color: var(--teal); } }
.fc-cms { display: grid; gap: var(--space-sm); padding-top: var(--space-tight); border-top: 1px solid var(--line); }
.fc-cms ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-tight); }
.fc-cms ul:empty { display: none; }
.fc-cms__more { justify-self: start; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; color: var(--teal-d); font-weight: 600; }
.fc-cm { display: flex; gap: var(--space-sm); align-items: flex-start; }
.fc-cm__b { flex: 1; min-width: 0; display: grid; gap: 0; }
.fc-cm__b p { font-size: 15px; line-height: 1.45; }
.fc-cm__b small { color: var(--muted); font-size: 12px; }
.fc-cm--ai .fc-cm__b { padding: var(--space-sm); border-radius: 8px; background: var(--teal-tint); }
.fc-ai { font: 600 11px/1.3 var(--font-mono); letter-spacing: 0.04em; color: var(--teal-d); }
.fc-src { color: var(--muted); font-size: 12px; }
.fc-cform { display: flex; gap: var(--space-xs); align-items: center; }
.fc-cform input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--field); padding: 0 var(--space-tight); font: 400 16px var(--font-sans); color: var(--ink); }
.fc-cform input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.fc-moreposts { justify-self: center; }
.fc-pickph { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--space-xs); margin-top: var(--space-xs); }
.fc-pickph__i { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--line); cursor: pointer; }
.fc-pickph__i img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.6; }
.fc-pickph__i[aria-pressed="true"] { border-color: var(--teal-d); }
.fc-pickph__i[aria-pressed="true"] img { opacity: 1; }
.fc-list { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: var(--space-xs); font-size: 14px; }
.fc-list li { display: flex; justify-content: space-between; gap: var(--space-sm); padding: var(--space-xs) 0; border-bottom: 1px solid var(--line); }
.fc-list small { color: var(--muted); }
.fc-own { display: grid; gap: var(--space-tight); margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--line); }
.fc-confirm { display: grid; gap: var(--space-sm); background: var(--sand-tint); border-color: transparent; }
.fc-confirm p { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.fc-post--q { border-color: var(--teal); }
.fc-q { display: flex; gap: var(--space-sm); align-items: flex-start; font: 600 18px/1.4 var(--font-title); letter-spacing: -0.01em; }
.fc-q .mdi { color: var(--teal-d); flex-shrink: 0; }
.fc-cm--wait .fc-text { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: var(--space-xs); }
.fc-cm--wait .mdi { animation: ws-spin 1s linear infinite; }
/* the flyer: one page, printed */
.cl-flyer { max-width: 640px; margin: 0 auto; padding: var(--space-xl) var(--space-md); border: 2px solid var(--ink); border-radius: var(--r-card); background: #fff; text-align: center; }
.cl-flyer__eye { font: 600 13px/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-d); }
.cl-flyer h1 { margin-top: var(--space-md); font: 800 clamp(32px, 9vw, 44px)/1.02 var(--font-title); letter-spacing: -0.035em; text-wrap: balance; }
.cl-flyer__lead { margin: var(--space-md) auto 0; max-width: 46ch; font-size: 18px; line-height: 1.5; }
.cl-flyer__how { margin-top: var(--space-xl); padding: var(--space-lg); background: var(--teal-tint); border-radius: var(--r-card); }
.cl-flyer__how p { color: var(--muted); font-size: 15px; }
.cl-flyer__how b { display: block; margin: var(--space-xs) 0 var(--space-sm); font: 700 22px/1.2 var(--font-title); }
.cl-flyer__how .cl-flyer__code { font: 600 clamp(26px, 8vw, 40px)/1.1 var(--font-mono); letter-spacing: 0.08em; color: var(--ink); white-space: nowrap; }
.cl-flyer__fine { margin-top: var(--space-lg); color: var(--muted); font-size: 14px; }
.cl-flyer__btn { display: flex; justify-content: center; margin-top: var(--space-lg); }
@media print {
  body.cl-print .ws-bar, body.cl-print .ws-desk, body.cl-print .ws-tabbar, body.cl-print .sf, body.cl-print .cl-flyer__btn { display: none !important; }
  body.cl-print { background: #fff !important; padding: 0 !important; }
  body.cl-print .cl-flyer { border-width: 3px; }
}
@media (hover: hover) { .cl-more:hover { color: var(--ink); background: rgba(11, 20, 38, 0.05); } .ym-give:hover { text-decoration: underline; } }

/* ── Community: profiles + the inbox (community-kit.js) ─────────────── */
.cm-av {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font: 700 14px/1 var(--font-sans); overflow: hidden; flex-shrink: 0; vertical-align: middle;
}
.cm-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-av--sm { width: 24px; height: 24px; font-size: 11px; }
.cm-av--lg { width: 64px; height: 64px; font-size: 26px; }
.cm-av--xl { width: 72px; height: 72px; font-size: 30px; }
@media (min-width: 700px) { .cm-av--xl { width: 96px; height: 96px; font-size: 38px; } }
.cm-av--crew { outline: 2px dashed var(--teal-d); outline-offset: 2px; }
.cm-av--teal { background: var(--teal-tint); color: var(--teal-d); }
.cm-av--ember { background: #fbe3d6; color: #a84b26; }
.cm-av--forest { background: #dcebdf; color: #2f6b45; }
.cm-av--blue { background: #dde7f5; color: #2f5d9a; }
.cm-av--plum { background: #ece0ef; color: #6e3f7a; }
.cm-av--sand { background: var(--sand-tint); color: var(--sand-d); }
.cm-av--slate { background: #e3e6ec; color: #3b4658; }
.cm-av--rose { background: #f6dfe3; color: #a3404f; }
.cm-head { display: flex; gap: var(--space-md); align-items: center; }
.cm-head__t { min-width: 0; }
.cm-head__t .ws-sub { margin-top: var(--space-xs); }
.cm-pills { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.cm-pill { display: inline-flex; align-items: center; gap: var(--space-xs); height: 28px; padding: 0 var(--space-tight); border-radius: 999px;
  font: 600 13px/1 var(--font-sans); background: var(--sand-tint); color: var(--sand-d); white-space: nowrap; }
.cm-pill--crew { background: var(--ink); color: var(--teal-hi); }
.cm-crew { display: flex; gap: var(--space-sm); align-items: flex-start; margin-top: var(--space-md); font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.cm-crew .mdi { color: var(--teal-d); }
.cm-bio { margin-top: var(--space-md); font-size: 16px; line-height: 1.55; max-width: 60ch; }
.cm-nums { display: flex; gap: var(--space-xl); margin-top: var(--space-lg); padding: var(--space-md) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cm-nums span { display: flex; flex-direction: column; gap: var(--space-xs); font-size: 13px; color: var(--muted); }
.cm-nums b { font: 700 24px/1 var(--font-title); color: var(--ink); font-variant-numeric: tabular-nums; }
.cm-stage { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-tight); color: var(--muted); }
.cm-stage b { color: var(--ink); }
.cm-stage .mdi { color: var(--teal-d); }
.cm-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }
.cm-skill { gap: var(--space-sm); }
.cm-dots { display: inline-flex; gap: 3px; font-style: normal; }
.cm-dots b { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.cm-dots b.on { background: var(--teal-d); }
.cm-badges { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.cm-badge { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-tight); border: 1px solid var(--line);
  border-radius: var(--r-btn); background: var(--surface); font-size: 14px; font-weight: 600; }
.cm-badge .mdi { color: var(--sand-d); }
.cm-logs { margin-top: var(--space-tight); }
.cm-spin { display: inline-block; width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: ws-spin 0.9s linear infinite; }
.cm-edit { display: grid; gap: var(--space-md); }
.cm-edit__av { display: flex; gap: var(--space-md); align-items: center; }
.cm-edit__avb { display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
.cm-colors { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.cm-sw { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.cm-sw::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.cm-sw[aria-checked="true"] { border-color: var(--ink); }
.cm-inbox__h { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-md); flex-wrap: wrap; }
.cm-n.is-new { background: var(--surface); }
.cm-n__t { white-space: normal; line-height: 1.4; font-weight: 500; }
.cm-n.is-new .cm-n__t { font-weight: 600; }
.cm-n__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.ws-bell { position: relative; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.ws-bell:hover { background: var(--line); }
.ws-bell__n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 var(--space-xs); border-radius: 999px;
  background: var(--teal-d); color: #fff; font: 700 11px/18px var(--font-sans); text-align: center; font-variant-numeric: tabular-nums; }
.ws-acct-slot, .ws-acct { gap: var(--space-xs); align-items: center; }
.ws-acct { display: inline-flex; }
.ws-tab.has-dot, .ws-desk nav .has-dot { position: relative; }
.ws-tab.has-dot::before { content: ""; position: absolute; top: 10px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.ws-desk nav .has-dot::before { content: ""; position: absolute; top: 6px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.lg-who { display: inline; color: inherit; font-weight: 600; text-decoration: none; }
.lg-who > .cm-av { margin-right: var(--space-xs); }
.lg-who:hover { text-decoration: underline; }
.lg-q__who .lg-who { color: var(--ink); }
.lg-by .cm-pill { margin-left: var(--space-xs); vertical-align: middle; }

/* ── Community questions (question-kit.js) ─────────────────────────── */
.cq-askbox { display: flex; align-items: center; gap: var(--space-tight); width: 100%; margin-top: var(--space-lg); padding: var(--space-md);
  border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--field); color: var(--muted); font: 500 16px/1.3 var(--font-sans);
  cursor: pointer; text-align: left; }
.cq-askbox > span:not(.mdi) { flex: 1; }
.cq-askbox .mdi:first-child { color: var(--teal-d); }
.cq-askbox:hover { border-color: var(--teal); color: var(--ink); }
.cm-tabs { flex-wrap: wrap; }
.cq-list { display: grid; gap: var(--space-sm); margin-top: var(--space-tight); }
@media (min-width: 900px) { .cq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cq-card { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); color: var(--ink); text-decoration: none; min-width: 0; }
.cq-card:hover { border-color: var(--line-2); }
.cq-card__a { display: flex; align-items: center; gap: var(--space-xs); font: 600 12px/1.3 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-d);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the line itself ends in … (in the flex row the text was cut mid-letter: "GARAGE CABINET · S") */
/* the Community page holds the feed's room while it loads: the footer and tabs used to jump 150–400px (CLS 0.1–0.36) */
.cm-loading { min-height: 70vh; }
.cm-chskel { height: 153px; }   /* the challenge card's height before it draws (log-kit mountFeed) */
@media (min-width: 600px) { .cm-chskel { height: 113px; } }
.cq-card__line { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cq-card__t { font: 600 16px/1.4 var(--font-sans); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cq-card__m { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); font-size: 13px; color: var(--muted); }
.cq-pill { display: inline-flex; align-items: center; gap: var(--space-xs); height: 24px; padding: 0 var(--space-sm); border-radius: 999px; background: var(--line); color: var(--ink-2);
  font: 600 12px/1 var(--font-sans); white-space: nowrap; }
.cq-pill--ok { background: var(--teal-tint); color: var(--teal-d); }
.cq-about { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); font-size: 14px; color: var(--muted); }
.cq-about .mdi { color: var(--teal-d); flex-shrink: 0; }
.cq-about--link { margin-top: 0; color: var(--teal-d); font-weight: 600; text-decoration: none; }
.cq-about--link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cq-q { margin-top: var(--space-tight); overflow-wrap: anywhere; }
.cq-by { margin-top: var(--space-sm); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.cq-qphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-sm); margin-top: var(--space-md); }
.cq-qphotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-tile); display: block; }
.cq-a { margin-top: var(--space-tight); padding: var(--space-md); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.cq-a.is-worked { border-color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); }
.cq-a.is-hidden { opacity: 0.55; }
.cq-a--ai { background: var(--paper); border-style: dashed; }
.cq-a--wait { display: flex; align-items: center; gap: var(--space-tight); color: var(--muted); font-size: 14px; }
.cq-a--wait .cm-spin { width: 20px; height: 20px; border-width: 2px; }
.cq-a__worked { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-sm); font: 600 13px/1.3 var(--font-sans); color: var(--teal-d); }
.cq-a__h { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.cq-a__at { margin-left: auto; font-size: 13px; color: var(--muted); }
.cq-a__t { margin-top: var(--space-sm); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.cq-a__ph img { display: block; max-width: min(100%, 320px); margin-top: var(--space-sm); border-radius: var(--r-tile); }
.cq-a__src { margin-top: var(--space-sm); }
.cq-a__x { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-tight); }
.cq-ai-av { background: var(--ink); color: var(--teal-hi); }
.cq-btn { display: inline-flex; align-items: center; gap: var(--space-xs); height: 36px; padding: 0 var(--space-tight); border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--field); color: var(--ink-2); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.cq-btn.is-on { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-d); }
.cq-btn.is-static { cursor: default; border-color: transparent; background: none; color: var(--muted); }
.cq-ansf { display: grid; gap: var(--space-tight); }
.cq-ansf__b { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: space-between; }
.cq-askf { display: grid; gap: var(--space-md); }
.cq-askf .ws-note .mdi { vertical-align: -3px; color: var(--teal-d); }
.cq-photos { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.cq-ph { position: relative; width: 72px; height: 72px; }
.cq-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-tile); display: block; }
.cq-ph button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cq-room { padding: var(--space-md); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.cq-room__h { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); }
.cq-room__h > div { min-width: 0; }
.cq-room__h .ws-h2 { margin-top: var(--space-xs); }
.cq-room__h .ws-note { margin-top: var(--space-xs); }
.cq-room__logs { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-tight); }
.cq-room > .ws-link { display: inline-block; margin-top: var(--space-tight); }
.cq-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-tight); font-size: 14px; color: var(--muted); }
.cq-seg { margin-top: var(--space-tight); margin-bottom: var(--space-sm); }
.lg-q__more { margin-top: var(--space-sm); font-size: 14px; }
.fa-askfix { margin-top: var(--space-sm); }
.cq-src { margin-top: var(--space-sm); }

/* ── Build clubs (club-kit.js) ─────────────────────────────────────── */
.cb-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-tight); margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cb-line > span { flex: 1; min-width: 180px; }
.cb-line > .mdi { color: var(--teal-d); }
.cb-members { display: grid; gap: var(--space-sm); margin-top: var(--space-tight); }
.cb-m { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); padding: var(--space-tight) var(--space-md); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.cb-m.is-me { border-color: var(--teal); }
.cb-m__p { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; min-width: 0; }
.cb-bar { display: inline-block; width: 120px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.cb-bar i { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.cb-step { font: 600 13px/1 var(--font-sans); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-quiet { font-size: 13px; color: var(--muted); }
.cb-me { display: grid; gap: var(--space-md); margin-top: var(--space-tight); justify-items: start; }


/* ══ Signed-in / signed-out halves (shell markAuth → html.ws-auth) ═══════ */
html:not(.ws-auth) .ws-only-in, html.ws-auth .ws-only-out { display: none !important; }

/* ── header additions: Tools ▾, Search, Log in · Sign up ────────────── */
.ws-btn--sm { min-height: 36px; padding: 0 var(--space-tight); font-size: 14px; }
.ws-bar__out { display: inline-flex; align-items: center; gap: var(--space-xs); }
.ws-desk__out { display: inline-flex; align-items: center; gap: var(--space-xs); }
.ws-desk nav { align-items: center; }
.ws-desk nav > :is(a, button) { display: inline-flex; align-items: center; }
.ws-desk nav button .mdi { margin-left: 2px; transition: transform 150ms ease-out; }
.ws-desk nav button[aria-expanded="true"] { color: var(--ink); }
.ws-desk nav button[aria-expanded="true"] .mdi { transform: rotate(180deg); }
.sr-esc__k {
  font: 600 11px/1 var(--font-mono); padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); background: var(--paper);
}
@media (min-width: 900px) and (max-width: 1099px) {
  .ws-desk .ws-wide { display: none; }
}
/* the Tools menu hangs from the header (.ws-desk is sticky, so it is the menu's containing block; a
   `position: relative` here used to override the sticky header on every desktop page) */
.ws-mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 45; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line);
  animation: ws-pop 180ms var(--ease);
}
.ws-mega__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.1fr); gap: var(--space-lg); padding-top: var(--space-lg); padding-bottom: var(--space-xl); }
.ws-mega__col ul { list-style: none; margin: var(--space-tight) 0 0; padding: 0; display: grid; gap: 2px; }
.ws-mega__col li a { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm); margin-left: calc(-1 * var(--space-sm));
  border-radius: var(--r-btn); font: 500 15px/1.25 var(--font-sans); transition: background 150ms ease-out; }
.ws-mega__col li a .mdi { color: var(--teal-d); }
.ws-mega__col li a:hover { background: var(--teal-tint); }
.ws-mega__all { display: inline-flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-sm); font: 600 14px/1 var(--font-sans); color: var(--teal-d); }
.ws-mega__all:hover { color: var(--ink); }
.ws-mega__side { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.ws-mega__big { font: 700 28px/1.05 var(--font-title); letter-spacing: -0.03em; }
.ws-mega__side .ws-muted { font-size: 14px; line-height: 1.45; margin-bottom: var(--space-sm); }
.ws-mega__side .ws-btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.ws-mega__in--creators { grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr); }
.ws-mega__rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-lg); }
.ws-mega__rows li a { align-items: flex-start; }
.ws-mega__rows b { display: block; font-weight: 600; }
.ws-mega__rows small { display: block; margin-top: var(--space-xs); font-size: 13px; line-height: 1.35; color: var(--muted); }
.ws-more__auth { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-top: var(--space-lg); }

/* ══ Search (js/workshop/search.js) ═══════════════════════════════════ */
.sr-scrim {
  position: fixed; inset: 0; z-index: 110; background: rgba(11, 20, 38, 0.5); display: flex; justify-content: center; align-items: flex-start;
  animation: ws-fade 160ms ease-out;
}
.sr-scrim.is-closing { animation: ws-fade-out 150ms ease-in forwards; }
.sr-pal {
  width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--paper);
  padding-top: env(safe-area-inset-top, 0px);
}
.sr-field { display: flex; align-items: center; gap: var(--space-sm); height: 64px; padding: 0 var(--space-sm) 0 var(--space-md); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sr-field > .mdi { color: var(--muted); }
.sr-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: 400 18px/1 var(--font-sans); color: var(--ink); }
.sr-field input::-webkit-search-cancel-button, .ti-filter input::-webkit-search-cancel-button { display: none; }
.sr-field input:focus-visible, .hm-search input:focus-visible, .ti-filter input:focus-visible { outline: none; }   /* the box shows focus, not the bare input */
.sr-esc { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.sr-esc__k { display: none; }
.sr-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-sm) var(--space-sm) calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); }
.sr-label { font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: var(--space-tight) var(--space-sm) var(--space-sm); }
.sr-row {
  display: flex; align-items: center; gap: var(--space-tight); width: 100%; padding: var(--space-sm); border: 0; background: none; text-align: left;
  border-radius: var(--r-tile); cursor: pointer; color: inherit; font: inherit;
}
.sr-row.is-active { background: var(--teal-tint); }
.sr-row__text { flex: 1; min-width: 0; }
.sr-row__title { display: block; font: 600 15px/1.3 var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-row__sub { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-row__go { color: var(--teal-d); opacity: 0; transition: opacity 120ms ease-out; }
.sr-row.is-active .sr-row__go { opacity: 1; }
.sr-img { width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; border-radius: var(--r-tile); background: var(--line); }
.sr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-img--round { border-radius: 50%; }
.sr-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); padding: 0 var(--space-sm) var(--space-sm); }
.sr-chip { display: inline-flex; align-items: center; gap: var(--space-xs); height: 36px; padding: 0 var(--space-tight); border: 1px solid var(--line-2);
  border-radius: var(--r-btn); font: 500 14px/1 var(--font-sans); background: var(--surface); transition: border-color 150ms ease-out, background 150ms ease-out; }
.sr-chip .mdi { color: var(--teal-d); }
.sr-chip:hover { border-color: var(--teal); background: var(--teal-tint); }
@media (min-width: 640px) {
  .sr-scrim { padding: 12vh var(--space-lg) var(--space-lg); }
  .sr-pal { height: auto; max-height: 72vh; max-width: 640px; border-radius: var(--r-card); border: 1px solid var(--line); padding-top: 0; overflow: hidden; animation: ws-pop 200ms var(--ease); }
  .sr-esc__k { display: inline-block; }
  .sr-esc__x { display: none; }
}
/* the dropdown under a search field (the home's hero) */
.sr-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--space-sm)); z-index: 30; max-height: min(460px, 60vh); overflow-y: auto;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--space-sm);
  text-align: left; animation: ws-pop 160ms var(--ease);
}

/* ══ Sign-up popup (js/workshop/join-modal.js) ═════════════════════════ */
.jm-scrim {
  position: fixed; inset: 0; z-index: 120; background: rgba(11, 20, 38, 0.72); overflow-y: auto; overscroll-behavior: contain;
  display: flex; align-items: flex-start; justify-content: center; padding: var(--space-md) max(var(--space-md), env(safe-area-inset-right, 0px)) var(--space-xl) max(var(--space-md), env(safe-area-inset-left, 0px));
  animation: ws-fade 200ms ease-out;
}
.jm-scrim.is-closing { animation: ws-fade-out 170ms ease-in forwards; }
.jm-box { position: relative; width: 100%; margin: auto 0; outline: none; animation: ws-pop 260ms var(--ease); }
.jm-x {
  position: absolute; top: var(--space-md); right: var(--space-md); z-index: 3; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-btn); background: rgba(11, 20, 38, 0.55); color: var(--paper); cursor: pointer; transition: background 150ms ease-out;
}
.jm-x:hover { background: var(--ink); }
.jm-box--panels { max-width: 1120px; }
.jm-panels { display: grid; gap: var(--space-sm); }
.jm-panel {
  position: relative; display: block; width: 100%; min-height: 168px; padding: 0; border: 0; overflow: hidden; cursor: pointer; text-align: left;
  border-radius: var(--r-card); background: var(--ink); color: var(--paper); font: inherit;
  animation: ws-rise 420ms var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.jm-panel img, .jm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.jm-panel__shade { position: absolute; inset: 0; background: rgba(11, 20, 38, 0.52); transition: background 300ms ease-out; }
.jm-panel:hover img { transform: scale(1.03); }
.jm-panel:hover .jm-panel__shade { background: rgba(11, 20, 38, 0.4); }
.jm-panel__text {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs);
  height: 100%; justify-content: flex-end; padding: var(--space-md);
}
.jm-panel__name { font: 700 30px/1 var(--font-title); letter-spacing: -0.035em; }
.jm-panel__line { font-size: 15px; line-height: 1.4; color: #e6e9ef; max-width: 26ch; }
.jm-panel__cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); margin-top: var(--space-sm);
  border: 1.5px solid var(--paper); border-radius: var(--r-btn); font: 600 13px/1 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 150ms ease-out, color 150ms ease-out;
}
.jm-panel:hover .jm-panel__cta, .jm-panel:focus-visible .jm-panel__cta { background: var(--paper); color: var(--ink); }
.jm-box--panels { background: var(--ink); border-radius: var(--r-card); padding: var(--space-sm); }
.jm-foot { padding: var(--space-md) var(--space-sm) var(--space-sm); text-align: center; color: #c9cfda; font-size: 15px; }
.jm-foot button, .jm-alt button, .jm-alt a { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) {
  .jm-scrim { align-items: center; padding: var(--space-xl); }
  .jm-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; border-radius: 12px 3px 12px 3px; overflow: hidden; }
  .jm-box--panels { padding: var(--space-tight) var(--space-tight) 0; }
  .jm-foot { padding: var(--space-md) 0; }
  .jm-panel { min-height: min(560px, 68vh); border-radius: 0; }
  .jm-panel__text { align-items: center; justify-content: center; text-align: center; padding: var(--space-xl) var(--space-lg); }
  .jm-panel__name { font-size: 44px; }
  .jm-panel__line { text-align: center; }
  .jm-panel__cta { margin-top: var(--space-lg); }
}

/* one visitor's step: photo left, the step right */
.jm-box--step { max-width: 920px; background: var(--paper); border-radius: var(--r-card); overflow: hidden; }
.jm-step { display: grid; }
.jm-photo { position: relative; min-height: 120px; overflow: hidden; background: var(--ink); color: var(--paper); }
.jm-body { padding: var(--space-md) var(--space-md) var(--space-lg); min-width: 0; }
.jm-back { display: inline-flex; align-items: center; gap: var(--space-xs); margin: 0 0 var(--space-md) calc(-1 * var(--space-sm)); padding: var(--space-sm);
  border: 0; background: none; cursor: pointer; color: var(--muted); font: 500 14px/1 var(--font-sans); border-radius: var(--r-btn); }
.jm-back:hover { color: var(--ink); background: rgba(11, 20, 38, 0.05); }
.jm-title { font: 700 30px/1.05 var(--font-title); letter-spacing: -0.035em; margin-top: var(--space-sm); text-wrap: balance; }
.jm-sub { color: var(--muted); font-size: 15px; line-height: 1.55; margin: var(--space-tight) 0 var(--space-lg); text-wrap: pretty; }
.jm-sub b { color: var(--ink); font-weight: 600; }
.jm-legal { font-size: 12px; color: var(--muted); margin-top: var(--space-md); line-height: 1.45; }
.jm-legal a { text-decoration: underline; text-underline-offset: 2px; }
.jm-alt { margin-top: var(--space-md); font-size: 14px; color: var(--muted); }
.jm-alt button, .jm-alt a { color: var(--ink); }
.jm-brand { display: grid; gap: var(--space-sm); }
.jm-two { display: grid; gap: var(--space-sm); }
.jm-brand .ws-field__label i { font-style: normal; color: var(--muted); }
.jm-brand .ws-btn { margin-top: var(--space-sm); }
.jm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.jm-err { color: #b42318; font-size: 14px; }
.jm-done { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); padding: var(--space-lg) 0; }
.jm-done .ws-btn { margin-top: var(--space-md); }
@media (min-width: 760px) {
  .jm-step { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); min-height: min(600px, 80vh); }
  .jm-photo { min-height: 0; }
  .jm-body { padding: var(--space-lg) var(--space-xl) var(--space-xl); display: flex; flex-direction: column; }
  .jm-body > .jm-back { align-self: flex-start; margin-bottom: auto; }
  .jm-body > .jm-back + * { margin-top: var(--space-lg); }
  .jm-two { grid-template-columns: 1fr 1fr; }
  .jm-box--step .jm-x { background: transparent; color: var(--muted); }
  .jm-box--step .jm-x:hover { background: rgba(11, 20, 38, 0.06); color: var(--ink); }
}

/* ══ Home (frontend/index.html + js/workshop/home-page.js) ══════ */
/* the header over the ink hero: ink too, until the hero scrolls away (body.hm-past) */
html:not(.ws-auth) .hm-page #ws-header { background: var(--ink); }
html:not(.ws-auth) .hm-page:not(.hm-past) :is(.ws-bar, .ws-desk) { background: var(--ink); color: var(--paper); border-bottom-color: rgba(250, 246, 236, 0.08); }
html:not(.ws-auth) .hm-page:not(.hm-past) .ws-desk nav :is(a, button) { color: #b9c0cd; }
html:not(.ws-auth) .hm-page:not(.hm-past) .ws-desk nav :is(a, button):hover,
html:not(.ws-auth) .hm-page:not(.hm-past) .ws-desk nav button[aria-expanded="true"] { color: var(--paper); }
html:not(.ws-auth) .hm-page:not(.hm-past) :is(.ws-bar, .ws-desk) :is(.ws-signin, .ws-icon-btn) { color: var(--paper); }
html:not(.ws-auth) .hm-page:not(.hm-past) :is(.ws-bar, .ws-desk) .ws-icon-btn:hover { background: rgba(250, 246, 236, 0.1); }
.hm-page :is(.ws-bar, .ws-desk) { transition: background 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out; }

/* ── the hero ── */
/* clips sideways only (the shapes fly past the edge), so the search dropdown can hang below the hero */
.hm-hero {
  position: relative; z-index: 2;
  background-color: var(--ink); color: var(--paper); overflow-x: clip; overflow-y: visible;
  background-image:
    linear-gradient(to right, rgba(250, 246, 236, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 246, 236, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  padding-bottom: var(--hm-drop-room, 0px);   /* search.js fit(): room for the open search list inside the hero */
}
/* minmax(0, 1fr): the column never grows past the screen. With an auto column, one wide child (a phone that
 * measures the search input wider) stretched the whole text column past the right edge on a 360 px phone. */
.hm-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-top: var(--space-xl); padding-bottom: var(--space-lg); }
.hm-h1 { font: 700 48px/0.98 var(--font-title); letter-spacing: -0.045em; text-wrap: balance; }
.hm-h1 span { color: var(--teal-hi); }
.hm-lede { margin-top: var(--space-md); font-size: 17px; line-height: 1.5; color: #c9cfda; max-width: 46ch; text-wrap: pretty; }
.hm-search {
  position: relative; display: flex; align-items: center; gap: var(--space-sm); height: 60px; margin-top: var(--space-lg);
  padding: 0 var(--space-sm) 0 var(--space-md); background: var(--paper); color: var(--ink); border-radius: var(--r-tile);
  border: 1.5px solid var(--paper); transition: box-shadow 150ms ease-out;
}
.hm-search > .mdi { color: var(--muted); }
.hm-search:focus-within, .hm-search.is-open { box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.35); }
.hm-search input { flex: 1; min-width: 0; width: 0; height: 100%; border: 0; outline: none; background: transparent; font: 400 17px/1 var(--font-sans); color: var(--ink); }
.hm-search input::placeholder { color: var(--muted); }
.hm-search input::-webkit-search-cancel-button { display: none; }
.hm-search__go { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: var(--r-btn); background: var(--teal); color: var(--on-teal); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background 150ms ease-out; }
.hm-search__go:hover { background: var(--teal-hi); }
.hm-search--paper { margin-top: 0; border-color: var(--ink); background: var(--field); }
.hm-intents { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.hm-intents:not(:has(> :not([hidden]))) { display: none; }
/* HandyMate on the home: the search asks it too, and its card opens under the field (home-page.js, handymate.js mount()) */
.hm-continue { display: inline-flex; align-items: center; gap: var(--space-xs); height: 36px; padding: 0 var(--space-tight); cursor: pointer;
  border: 1px solid var(--teal-hi); border-radius: var(--r-btn); background: rgba(45, 212, 191, 0.1); font: 600 14px/1 var(--font-sans); color: var(--paper); }
.hm-continue .mdi { color: var(--teal-hi); }
.hm-continue--paper { margin-top: var(--space-sm); border-color: var(--teal-d); background: var(--teal-tint); color: var(--ink); }
.hm-continue--paper .mdi { color: var(--teal-d); }
.hm-ask { display: flex; flex-direction: column; margin-top: var(--space-md); max-height: min(560px, 62vh); overflow: hidden; text-align: left;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-card); animation: ws-pop 240ms var(--ease); }
.hm-ask .hmate-log { flex: 1; min-height: 120px; }
.hm-ask--paper { margin-top: var(--space-tight); }
/* scrolled into view above the phone's tab bar, so its reply box never sits under it (home-page.js openChat) */
.hm-ask { scroll-margin-top: calc(64px + var(--space-md)); }
body.has-tabbar .hm-ask { scroll-margin-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + var(--space-md)); }
@media (min-width: 900px) { body.has-tabbar .hm-ask { scroll-margin-bottom: var(--space-md); } }
.hm-search.is-asking .hm-search__go { opacity: 0.6; }
.sr-hm { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sr-hm .hmate-badge { width: 36px; height: 36px; overflow: visible; }
@media (prefers-reduced-motion: reduce) { .hm-ask { animation: none; } }

/* ── the shape kit, building three things (offsets per part in the markup) ── */
.hm-anim {
  --amber: #e8a858; --teal-deep: #0a7d72; --teal-light: #5eead4;
  position: relative; margin: 0; height: 320px;
}
.sb { width: 100%; height: 100%; display: block; overflow: visible; }
.sb-part {
  transform-box: fill-box; transform-origin: center;
  /* at rest (no motion): the house, the last thing it builds */
  transform: translate(var(--hx, 0px), var(--hy, 0px)) rotate(var(--hr, 0deg)) scale(var(--hs, 1));
}
@media (prefers-reduced-motion: no-preference) {
  .hm-anim .sb-part { animation: sb-cycle 16s var(--ease) infinite both; animation-play-state: paused; }
  .hm-anim.is-on:not(.is-paused) .sb-part { animation-play-state: running; }
}
@keyframes sb-cycle {
  0%, 4%    { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(1); }
  15%, 27%  { transform: translate(0px, 0px) rotate(0deg) scale(1); }
  35%, 37%  { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(1); }
  48%, 60%  { transform: translate(var(--gx, 0px), var(--gy, 0px)) rotate(var(--gr, 0deg)) scale(1); }
  68%, 70%  { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(1); }
  81%, 94%  { transform: translate(var(--hx, 0px), var(--hy, 0px)) rotate(var(--hr, 0deg)) scale(var(--hs, 1)); }
  100%      { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(1); }
}
.sb-toggle {
  position: absolute; right: 0; bottom: 0; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(250, 246, 236, 0.2); border-radius: var(--r-btn); background: transparent; color: #b9c0cd; cursor: pointer;
  opacity: 0; transition: opacity 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
/* the pause button shows while the pointer is over the shapes, it has keyboard focus, or the shapes are paused */
.hm-anim:hover .sb-toggle, .hm-anim.is-paused .sb-toggle, .sb-toggle:focus-visible { opacity: 1; }
/* a click anywhere on the shapes pauses / plays them, like the /deck cover (Tom 2026-11-22) */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .hm-anim { cursor: pointer; } }
.sb-toggle:hover { color: var(--paper); border-color: var(--paper); }
@media (hover: none) { .sb-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { .sb-toggle { display: none; } }
/* phone / tablet: no shapes at all, the hero is just the words and the search (Yuval 2026-11-25; until then they
   sat dimmed behind the text, holding still on the house) */
@media (max-width: 899px) {
  .hm-anim { display: none; }
}
@media (min-width: 900px) {
  .hm-hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: var(--space-2xl);
    padding-top: var(--space-xl); padding-bottom: var(--space-3xl); min-height: min(680px, calc(100vh - 64px)); }
  .hm-h1 { font-size: 68px; }
  .hm-lede { font-size: 19px; }
  .hm-search { height: 68px; }
  .hm-search input { font-size: 18px; }
  .hm-anim { height: min(540px, calc(100vh - 160px)); }
}
/* "Your home for / home improvement / DIY." stays on three lines: a wider text column below 1200px, 80px above */
@media (min-width: 900px) and (max-width: 1199px) { .hm-hero__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }
@media (min-width: 1200px) { .hm-h1 { font-size: 72px; } }

/* signed out with projects here */
.hm-resume { background: var(--surface); border-bottom: 1px solid var(--line); }
.hm-resume__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); padding-top: var(--space-tight); padding-bottom: var(--space-tight); }
.hm-resume__go { display: inline-flex; align-items: center; gap: var(--space-tight); min-width: 0; }
.hm-resume__go b { display: block; font: 600 16px/1.25 var(--font-sans); }
.hm-resume__go > .mdi { color: var(--teal-d); }
.hm-resume__keep { font-size: 14px; color: var(--muted); }
.hm-resume__keep button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--teal-d); cursor: pointer; }
.hm-resume__keep button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── sections ── */
.hm-main { padding-top: 0; }
.hm-sec { margin-top: var(--space-2xl); }
.hm-sec--first { margin-top: var(--space-xl); }
.hm-main > .hm-sec:first-child, .hm-main > .hm-dash + .hm-sec { margin-top: var(--space-2xl); }
html:not(.ws-auth) .hm-main > #tools { margin-top: var(--space-2xl); }
@media (min-width: 900px) { html:not(.ws-auth) .hm-main > #tools { margin-top: var(--space-3xl); } }
.hm-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); }
.hm-sec__head .ws-eyebrow { display: block; margin-bottom: var(--space-sm); }
.hm-sec__head .ws-link { display: inline; white-space: nowrap; font-size: 15px; }
.hm-h2 { font: 700 30px/1.05 var(--font-title); letter-spacing: -0.035em; text-wrap: balance; }
@media (min-width: 900px) { .hm-h2 { font-size: 36px; } }

/* tabs + the tool grid */
.hp-tabs { display: flex; gap: var(--space-xs); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-md)) var(--space-md); padding: 0 var(--space-md); border-bottom: 1px solid var(--line); }
.hp-tabs::-webkit-scrollbar { display: none; }
.hp-tabs [role="tab"] {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-sm); flex: 0 0 auto; height: 48px; padding: 0 var(--space-tight);
  border: 0; background: none; cursor: pointer; font: 600 15px/1 var(--font-sans); color: var(--muted); transition: color 150ms ease-out;
}
.hp-tabs [role="tab"]:hover { color: var(--ink); }
.hp-tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.hp-tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: var(--space-tight); right: var(--space-tight); bottom: -1px; height: 2px; background: var(--teal); }
.hp-tabs [role="tab"] .mdi { color: var(--teal-d); }
.hm-tab__long { display: none; }
@media (min-width: 640px) {
  .hp-tabs { margin-left: 0; margin-right: 0; padding: 0; }
  .hm-tab__long { display: inline; } .hm-tab__short { display: none; }
}
.hm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.hm-tool {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-tight); min-height: 140px; padding: var(--space-md);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color 150ms ease-out, transform 120ms ease-out;
}
.hm-tool:active { transform: scale(0.98); }
.hm-tool__t b { display: block; font: 600 16px/1.25 var(--font-title); letter-spacing: -0.01em; }
.hm-tool__t > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: var(--space-xs); font-size: 13px; line-height: 1.4; color: var(--muted); }
.hm-tool__go { position: absolute; top: var(--space-md); right: var(--space-md); color: var(--teal-d); opacity: 0; transform: translateX(-4px); transition: opacity 150ms ease-out, transform 150ms ease-out; }
@media (hover: hover) {
  .hm-tool:hover { border-color: var(--teal); }
  .hm-tool:hover .hm-tool__go { opacity: 1; transform: none; }
}
@media (min-width: 640px) { .hm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-tight); } }
@media (min-width: 900px) { .hm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hm-tool { min-height: 156px; padding: var(--space-lg) var(--space-md) var(--space-md); } }

/* rails (guides, your projects) */
.hm-rail {
  display: grid; grid-auto-flow: column; gap: var(--space-tight); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin: 0 calc(-1 * var(--space-md)); padding: 0 var(--space-md) var(--space-xs); scroll-padding: 0 var(--space-md);
}
.hm-rail::-webkit-scrollbar { display: none; }
.hm-rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .hm-rail { margin: 0 calc(-1 * var(--space-lg)); padding: 0 var(--space-lg) var(--space-xs); scroll-padding: 0 var(--space-lg); } }
.hm-guide { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.hm-guide__img { display: block; aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden; background: var(--line); }
.hm-guide__img.ws-skel { min-height: 0; }
.hm-guide__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms var(--ease); }
.hm-guide:hover .hm-guide__img img { transform: scale(1.03); }
.hm-guide__by { display: flex; align-items: center; gap: var(--space-sm); font: 600 13px/1.2 var(--font-sans); color: var(--muted); min-width: 0; }
.hm-guide__by img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--line); flex-shrink: 0; }
.hm-guide__by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-guide__t { font: 600 16px/1.3 var(--font-title); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* ── the catalog four ways: DIY by task, creator, space, skill (after shopmy.us/home, Tom 2026-11-19; calmed 2026-11-24) ──
   One pattern for every section, so the page reads in one order: label → heading → pictures.
   .hp-by       a section: a small "DIY by …" label, one line as the heading, a "See all …" link on the right
   .hp-row      4 tiles (2×2 on a phone); --spot: the creator spotlight across the top, then 4
   .hp-strip    the spaces: small square tiles in one line (a row you swipe on a phone)
   .hp-t        a picture with its words UNDER it (nothing written over a picture); --draw = an app's drawing on a
                plain card (no grid inside, 2026-11-24: the page's own grid is enough), --spot = the creator spotlight (the cover + a panel with the creator)
   Buttons are for doing (filled ink / teal); "See all" goes somewhere, so it's a link (.hp-by__all); labels on a
   picture (Specs, 3D) are tags: one 24 px light style, never filled ink. */
.hp-by { margin-top: var(--space-3xl); scroll-margin-top: 64px; }
/* no rule between sections: the space does the separating (2026-11-24). More air since 2026-11-25 (Yuval: the
   scroll was overwhelming): 64 px on a phone, 64 + 24 px on a computer. */
@media (min-width: 900px) { .hp-by { margin-top: var(--space-3xl); padding-top: var(--space-lg); } }
.hm-main > .hp-by:first-child, .hm-dash + .hp-by { margin-top: var(--space-xl); }
/* What Spetz is isn't one more catalog section: twice the space above it sets it apart (Yuval 2026-11-25) */
.hp-by.hm-who { padding-top: var(--space-2xl); }
@media (min-width: 900px) { .hp-by.hm-who { padding-top: var(--space-3xl); } }
.hp-by__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-sm) var(--space-xl); margin-bottom: var(--space-lg); }
.hp-by__head > div { flex: 1 1 420px; min-width: 0; max-width: 680px; }
/* the title leads: three big words that say what's in the section ("DIY by task"), after shopmy.us/home (Tom
   2026-11-19; kept when the rest was calmed down, 2026-11-24), then the line that says it in a sentence */
.hp-by__h { font: 700 44px/0.95 var(--font-title); letter-spacing: -0.05em; text-wrap: balance; }
.hp-by__h span { display: block; margin-bottom: var(--space-sm); font: 500 20px/1.2 var(--font-title); letter-spacing: -0.01em; color: var(--muted); }
.hp-by__lede { margin-top: var(--space-md); max-width: 52ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 900px) { .hp-by__head { margin-bottom: var(--space-xl); } .hp-by__h { font-size: 80px; } .hp-by__h span { font-size: 22px; } .hp-by__lede { font-size: 18px; } }
.hp-by__all {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 15px/1 var(--font-sans); color: var(--ink); white-space: nowrap; text-decoration: none; transition: color 150ms ease-out;
}
.hp-by__all .mdi { color: var(--teal-d); transition: transform 200ms var(--ease); }
@media (hover: hover) { .hp-by__all:hover { color: var(--teal-d); } .hp-by__all:hover .mdi { transform: translateX(2px); } }
/* the section's "See all …" (in the head): a button, not a link (Yuval 2026-11-24: the plain links didn't catch the
   eye), outlined ink since 2026-11-25 so teal is kept for the hero search and the Circles band's Sign up (one bright
   thing per screen). The "What Spetz is" columns keep the plain link. */
.hp-by__head > .hp-by__all {
  min-height: 48px; padding: 0 var(--space-md) 0 var(--space-lg); gap: var(--space-sm);
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r-btn); font-size: 16px;
  transition: background 150ms ease-out, color 150ms ease-out, transform 120ms ease-out;
}
.hp-by__head > .hp-by__all .mdi { color: currentColor; }
.hp-by__head > .hp-by__all:active { transform: scale(0.97); }
.hp-by__head > .hp-by__all:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (hover: hover) {
  .hp-by__head > .hp-by__all:hover { background: var(--ink); color: var(--paper); }
  .hp-by__head > .hp-by__all:hover .mdi { transform: translateX(3px); }
}

/* ── the Circles band (between DIY by Creator and DIY by Space; Yuval 2026-11-25) ──
   Full bleed out of .ws-wrap (body.hm-page clips sideways), the hero's ink, the task cards' tape ticks along both
   edges, one line and two buttons: teal Sign up (signed out only) and an outlined Create a circle. */
.hm-page { overflow-x: clip; }
.hm-band {
  position: relative; display: grid; justify-items: center; gap: var(--space-lg); margin: var(--space-3xl) calc(50% - 50vw) 0;
  padding: var(--space-3xl) var(--space-md); text-align: center; background: var(--ink); color: var(--paper);
}
.hm-band::before, .hm-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px; color: rgba(250, 246, 236, 0.35);
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 6px) bottom / 100% 4px no-repeat,
              repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 30px) bottom / 100% 8px no-repeat;
}
.hm-band::before { top: 0; transform: scaleY(-1); }
.hm-band::after { bottom: 0; }
.hm-band__k { font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-hi); }
.hm-band__h { max-width: 16ch; font: 700 36px/1.05 var(--font-title); letter-spacing: -0.035em; text-wrap: balance; }
.hm-band__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-tight); }
.hm-band__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); cursor: pointer;
  font: 600 16px/1 var(--font-sans); color: var(--paper); background: transparent; border: 1.5px solid rgba(250, 246, 236, 0.7); border-radius: var(--r-btn);
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, transform 120ms ease-out;
}
.hm-band__btn--teal { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.hm-band__btn:active { transform: scale(0.97); }
.hm-band__btn:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 2px; }
@media (hover: hover) {
  .hm-band__btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
  .hm-band__btn--teal:hover { background: var(--teal-hi); border-color: var(--teal-hi); color: var(--on-teal); }
}
@media (min-width: 900px) { .hm-band { margin-top: calc(var(--space-3xl) + var(--space-lg)); padding-block: calc(var(--space-3xl) + var(--space-lg)); } .hm-band__h { font-size: 56px; } }
/* the band's Create a circle sheet */
.hm-cf { display: grid; gap: var(--space-lg); }
.hm-cf__head { display: grid; gap: var(--space-xs); }
.hm-cf__head .ws-h2, .hm-cf__head .ws-sub { margin: 0; }
.hm-cf__kinds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.hm-cf__kinds button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); height: 44px; }
.hm-cf__err { margin-top: calc(-1 * var(--space-md)); font-size: 14px; color: #b42318; }
.hm-cf__err[hidden] { display: none; }
.hp-by__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-lg); }
.hp-by__foot--line { color: var(--muted); font-size: 15px; gap: var(--space-xs); }
.hp-by__foot .ws-link { font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; }

/* ── Shop drawings (2026-11-25): DIY by task and Put them to work draw their apps as shop drawings ──
   A ruled frame like a sheet in a workshop manual: a 2 px ink edge and a tape-measure strip of ticks. The
   drawings (.shop-art, inline SVG from js/workshop/shop-art.js, made by scripts/workshop_shop_art.py): Tone
   fills (light top, sand sides), a heavier outer outline (the .halo copy under the drawing, 1 px wider than the
   lines inside), a cast shadow on the ground, dashed construction lines and dimensions with architectural ticks
   in Martian Mono. The shadows are part of the drawing, not the card (cards never have shadows). */
.shop-art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.shop-art .s { stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; fill: var(--field); }
.shop-art .nf { fill: none; }
.shop-art .th { stroke-width: 0.7; }
.shop-art .hd { stroke-width: 2.4; }
.shop-art .t { fill: #fbf5ea; } .shop-art .r { fill: #efe0c8; } .shop-art .l { fill: #dfc6a0; }
.shop-art .acc { fill: var(--teal); } .shop-art .acc2 { fill: var(--teal-tint); } .shop-art .soil { fill: #b88a5a; }
.shop-art .halo .s { stroke: var(--ink); stroke-width: 3.4; fill: var(--ink); }
.shop-art .sh { fill: var(--ink); opacity: 0.13; stroke: none; }
.shop-art .c { stroke: var(--muted-2); stroke-width: 0.7; stroke-dasharray: 4 3; fill: none; }
.shop-art .cl { stroke: var(--muted-2); stroke-width: 0.7; stroke-dasharray: 14 3 2 3; fill: none; }
.shop-art .dm { stroke: var(--ink); stroke-width: 0.9; fill: none; }
.shop-art .tk { stroke-width: 1.3; }
.shop-art .lb { fill: var(--field); }
.shop-art .dt { font: 600 7.5px var(--font-mono); letter-spacing: 0.06em; fill: var(--ink); }
.shop-art .dt.big { font-size: 9px; }
.shop-art .dn { font: 500 5.5px var(--font-mono); fill: var(--muted); }
/* the tape-measure strip: fine ticks every 6 px, a long one every 30 */
.hp-shop, .hp-any__c, .hp-work {
  --tape: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 6px) bottom / 100% 4px no-repeat,
          repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 30px) bottom / 100% 8px no-repeat;
}
.hp-shop {
  position: relative; display: block; overflow: hidden; background: var(--field);
  border: 1.5px solid var(--ink); border-radius: var(--r-tile); transition: border-color 150ms ease-out;
}
.hp-shop::after { content: ""; position: absolute; left: var(--space-tight); right: var(--space-tight);   /* inset by the 12 px corner, so no tick runs into the curve */
   bottom: 0; height: 8px; background: var(--tape); pointer-events: none; }
.hp-shop img { aspect-ratio: 4 / 3; padding: var(--space-sm); border-radius: 0; background: var(--field); }
@media (hover: hover) { a.hp-t--shop:hover .hp-shop { border-color: var(--teal-d); } a.hp-t--shop:hover img { opacity: 1; } }

/* DIY by task's two apps for any job (Napkin to plan, Fix my build), above the single-job tiles (Tom 2026-11-20):
   two wide cards in the same shop-drawing hand, the tape strip along the top. A phone: side by side, the drawing on
   top; 640 px up: the drawing on the left, the name and a square ink arrow on the right. */
.hp-any { --amber: #e8a858; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-tight); margin-bottom: var(--space-xl); }
.hp-any__c {
  position: relative; display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; padding: var(--space-md) var(--space-sm) var(--space-sm);
  color: var(--ink); text-decoration: none; background: var(--field); border: 1.5px solid var(--ink); border-radius: var(--r-card); overflow: hidden;
  transition: border-color 150ms ease-out;
}
.hp-any__c::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; border-bottom: 1px solid var(--ink); background: var(--tape); background-color: var(--sand-tint); }
.hp-any__c:hover { border-color: var(--teal-d); }
.hp-any__c:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hp-any__pic { display: block; min-width: 0; }
.hp-any__pic svg { display: block; width: 100%; height: auto; max-width: 100%; transition: transform 400ms var(--ease); }
@media (hover: hover) { .hp-any__c:hover .hp-any__pic svg { transform: scale(1.02); } }
.hp-any__cap { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; padding: 0 var(--space-xs) var(--space-xs); }
.hp-any__k { font: 600 10px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand-d); }
.hp-any__cap b { font: 600 16px/1.25 var(--font-title); letter-spacing: -0.01em; }
.hp-any__go { display: none; }
@media (min-width: 640px) {
  .hp-any__c { flex-direction: row; align-items: center; gap: var(--space-lg); padding: var(--space-lg) var(--space-lg) var(--space-md) var(--space-md); }
  .hp-any__pic { flex: 0 1 240px; }
  .hp-any__cap { flex: 1; padding: 0; }
  .hp-any__cap b { font-size: 20px; letter-spacing: -0.02em; }
  .hp-any__go {
    display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-btn);
    background: var(--ink); color: var(--paper); transition: background 150ms ease-out, color 150ms ease-out;
  }
  .hp-any__c:hover .hp-any__go { background: var(--teal); color: var(--on-teal); }
}

/* Put them to work (L1, Yuval 2026-11-25): a card that leads with the skills, every part on the same row in all
   four cards: the name across the top (one line on a computer); "N skills" and the meter (N teal squares of 6) on
   the left with the shop drawing beside them on the right; one tag pinned to the bottom (the most specific skill)
   with "+N", which never wraps. */
.hp-work {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px; grid-template-rows: auto auto auto 1fr;
  column-gap: var(--space-sm); row-gap: var(--space-sm); min-width: 0; padding: var(--space-tight) var(--space-tight) var(--space-lg);
  color: var(--ink); text-decoration: none; background: var(--field); border: 1.5px solid var(--ink); border-radius: var(--r-tile);
  transition: border-color 150ms ease-out;
}
.hp-work::after { content: ""; position: absolute; left: var(--space-tight); right: var(--space-tight);   /* inset by the 12 px corner, so no tick runs into the curve */
   bottom: 0; height: 6px; background: var(--tape); background-size: 100% 3px, 100% 6px; }
.hp-work:hover { border-color: var(--teal-d); }
.hp-work:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hp-work__n { grid-column: 1 / -1; font: 600 15px/1.2 var(--font-title); letter-spacing: -0.01em; }
.hp-work__pic { grid-column: 2; grid-row: 2 / 4; align-self: center; display: block; min-width: 0; }
.hp-work__pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hp-work__k { grid-column: 1; grid-row: 2; align-self: end; font: 600 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-d); white-space: nowrap; }
.hp-work__bar { grid-column: 1; grid-row: 3; align-self: start; display: flex; gap: 2px; }
.hp-work__bar i { width: 8px; height: 8px; border: 1.5px solid var(--ink); background: var(--field); }
.hp-work__bar i.on { background: var(--teal); }
.hp-work__tags { grid-column: 1 / -1; grid-row: 4; align-self: end; display: flex; gap: var(--space-xs); min-width: 0; overflow: hidden; }
.hp-work__tags > span { font-size: 11px; line-height: 1.2; padding: var(--space-xs) var(--space-sm); background: var(--sand-tint); color: var(--ink-2); border-radius: 6px 2px 6px 2px; white-space: nowrap; }
.hp-work__tags > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hp-work__tags > .hp-work__more { flex-shrink: 0; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-weight: 600; }
@media (min-width: 640px) {
  .hp-work { grid-template-columns: minmax(0, 1fr) 88px; column-gap: var(--space-tight); }
  .hp-work__n { font-size: 16px; }
  .hp-work__bar { gap: var(--space-xs); } .hp-work__bar i { width: 10px; height: 10px; }
}
/* a computer: a bigger drawing, the name on one line */
@media (min-width: 900px) {
  .hp-work { grid-template-columns: minmax(0, 1fr) 104px; }
  .hp-work__n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* the closet's drawing is a full front view that already fills its box, so it's drawn smaller inside the same box
   (the box stays the same size in every card, so the rows line up; Yuval 2026-11-25) */
.hp-work__pic { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.hp-work[data-ws-tool="closet-designer"] .hp-work__pic > * { width: 85%; }

.hp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-tight); }
.hp-row--spot > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .hp-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); } }
.hp-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 36%; gap: var(--space-tight); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--space-md)); padding: 0 var(--space-md); scroll-padding: 0 var(--space-md);
}
.hp-strip::-webkit-scrollbar { display: none; }
.hp-strip > * { scroll-snap-align: start; }
@media (min-width: 640px) {
  .hp-strip { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 900px) { .hp-strip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); } }
.hp-skel { aspect-ratio: 4 / 3; min-height: 0; border: 0; border-radius: var(--r-tile); }
.hp-skel--spot { grid-column: 1 / -1; aspect-ratio: auto; height: 300px; }
@media (min-width: 640px) { .hp-skel--spot { height: 224px; } }

.hp-t { position: relative; display: flex; flex-direction: column; gap: var(--space-tight); min-width: 0; color: var(--ink); text-decoration: none; }
.hp-t img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-tile); background: var(--line); transition: opacity 200ms ease-out;
}
.hp-strip .hp-t img { aspect-ratio: 1; }
.hp-t__cap { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.hp-t__cap b { font: 600 16px/1.3 var(--font-title); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 150ms ease-out; }
.hp-t__k { font-size: 13px; line-height: 1.35; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-strip .hp-t { gap: var(--space-sm); }
.hp-strip .hp-t__cap b { font-size: 15px; }
@media (hover: hover) { a.hp-t:hover img { opacity: 0.9; } a.hp-t:hover .hp-t__cap b { color: var(--teal-d); } }
a.hp-t:focus-visible, .hp-t a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* the creator cards that don't turn over (no Specs drawings, and the spotlight) get a teal edge on hover, like
   the turned-over booklet page (Yuval 2026-11-25) */
@media (hover: hover) {
  #creator-tiles > a.hp-t img, #creator-tiles > .ws-sp:not(.has-back) > a.hp-t img { outline: 2px solid transparent; outline-offset: -2px; transition: opacity 200ms ease-out, outline-color 150ms ease-out; }
  #creator-tiles > a.hp-t:hover img, #creator-tiles > .ws-sp:not(.has-back) > a.hp-t:hover img { outline-color: var(--teal); }
  .hp-t--spot { transition: border-color 150ms ease-out; }
  .hp-t--spot:hover { border-color: var(--teal); }
}

/* the creator spotlight (S2, Yuval 2026-11-26): the creator on the left, three of their guides as small pictures on
   the right; a fixed, small height (about 225 px on a computer) whatever the photos are. Stacked on a phone. */
.hp-t--spot { display: grid; gap: var(--space-md); padding: var(--space-md); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.hp-who { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-sm); min-width: 0; color: var(--ink); }
.hp-who a { color: inherit; text-decoration: none; }
.hp-who .hp-t__k { margin-bottom: var(--space-xs); font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-d); white-space: normal; }
.hp-who__me { display: flex; align-items: center; gap: var(--space-md); min-width: 0; max-width: 100%; }
.hp-t .hp-who__me img { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--line); flex-shrink: 0; }
.hp-who__me > span { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.hp-who__me b { font: 700 22px/1.15 var(--font-title); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-who__h { font-size: 14px; color: var(--muted); }
.hp-who__reach { display: inline-flex; align-items: center; gap: var(--space-xs); font: 500 14px/1.3 var(--font-sans); color: var(--muted); }
.hp-who__reach .mdi { color: var(--teal-d); }
.hp-who__go { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; font: 600 15px/1 var(--font-sans); }
.hp-who__go .mdi { color: var(--teal-d); transition: transform 200ms var(--ease); }
.hp-spot__builds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); min-width: 0; }
.hp-spot__b { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; color: var(--ink); text-decoration: none; }
.hp-t .hp-spot__b img { aspect-ratio: 4 / 3; }
.hp-spot__b > span:not(.ws-sr) { font: 500 12px/1.3 var(--font-sans); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 150ms ease-out; }
@media (hover: hover) {
  .hp-who__reach:hover { color: var(--ink); }
  .hp-who__go:hover { color: var(--teal-d); }
  .hp-who__go:hover .mdi { transform: translateX(2px); }
  .hp-spot__b:hover img { opacity: 0.9; }
  .hp-spot__b:hover > span:not(.ws-sr) { color: var(--teal-d); }
}
@media (min-width: 640px) {
  .hp-t--spot { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); align-items: center; gap: var(--space-xl); padding: var(--space-lg); }
  .hp-spot__builds { gap: var(--space-tight); }
}
@media (min-width: 900px) { .hp-t .hp-who__me img { width: 72px; height: 72px; } .hp-who__me b { font-size: 24px; } }

/* ── Spetz Specs on the creator cards (js/workshop/specs-card.js; Tom 2026-11-23) ──
   .ws-sp          a card with Specs: the card itself, the chip and (.has-back) the booklet page over its photo
   .ws-sp__chip    "Specs", on every device
   .ws-sp__turn    (.has-back) the one piece that turns: .ws-sp__front (the card + its chip) and .ws-sp__back, the
                   booklet page; a desktop hover (after 250ms, so a sweep across the grid turns nothing) turns the
                   whole card over to it. Phones never turn.
   .ws-bk          the booklet page: stacked page edges, the SPECS mark, the drawings as numbered steps
   .ws-bkc         the home's Specs row card (the same page, with the title) */
.ws-sp { position: relative; min-width: 0; }
.ws-sp__chip {
  position: absolute; z-index: 3; top: var(--space-sm); left: var(--space-sm);
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 28px; padding: var(--space-xs) var(--space-sm);
  background: var(--ink); color: var(--paper); border-radius: var(--r-btn); text-decoration: none;
  font: 600 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 150ms ease-out, color 150ms ease-out, opacity 200ms ease-out;
}
.ws-sp__chip .mdi { color: var(--teal-hi); transition: color 150ms ease-out; }
.ws-sp__chip:hover { background: var(--teal); color: var(--on-teal); }
.ws-sp__chip:hover .mdi { color: inherit; }
.ws-sp__chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 639px) {   /* a phone's small cards: the chip in the corner */
  .hp-row > .ws-sp:not(.hp-row--spot > :first-child) .ws-sp__chip, .ws-sp--guide .ws-sp__chip { top: var(--space-xs); left: var(--space-xs); }
}
/* on the home the chip is a tag, not a button: light, 24 px like every tag there (2026-11-24: filled ink chips read
   as buttons next to the real ones) */
.hm-page .ws-sp__chip { min-height: 24px; height: 24px; padding: 0 var(--space-sm); background: rgba(250, 246, 236, 0.94); color: var(--ink); border-radius: 4px; }
.hm-page .ws-sp__chip .mdi { font-size: 14px; color: var(--teal-d); }
.hm-page .ws-sp__chip:hover { background: var(--paper); color: var(--teal-d); }
.hm-page .ws-3d { height: 24px; padding: 0 var(--space-sm); background: var(--teal-tint); color: var(--teal-d); font: 600 10px/1 var(--font-mono); letter-spacing: 0.12em; vertical-align: 1px; }
.hm-page .ws-3d .mdi { color: var(--teal-d); }
.hm-page .ws-tag { height: 24px; }
.hm-page .ws-bk__cell--more { background: var(--teal-tint); border-color: var(--teal-tint); color: var(--teal-d); }
.hm-page .ws-bk__cell--more .mdi { color: var(--teal-d); }

/* a card that turns (Yuval 2026-11-25): ONE piece rotates, .ws-sp__turn, with the card + its Specs tag as the
   front face and the booklet page as the back face, under one perspective (on .ws-sp), so the photo, the tag and
   the page turn together as a single card. The back covers the whole card. */
.ws-sp__turn { position: relative; }
.ws-sp__front { position: relative; }
.ws-sp__back { position: absolute; z-index: 2; inset: 0; display: block; color: var(--ink); text-decoration: none; visibility: hidden; }
.ws-sp__back .ws-bk { width: calc(100% - var(--space-sm)); height: calc(100% - var(--space-sm)); }
/* the turned page's stacked edges are drawn ON the page (hard-edged layers, no blur), not as ::before/::after behind
   it: the pseudo pages sat in a layer of their own and stayed flat while the card turned (Yuval 2026-11-25) */
.ws-sp__back .ws-bk::before, .ws-sp__back .ws-bk::after { display: none; }
.ws-sp__back .ws-bk { box-shadow: 4px 4px 0 -1px var(--surface), 4px 4px 0 0 var(--line-2), 8px 8px 0 -1px var(--line), 8px 8px 0 0 var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .ws-sp.has-back { perspective: 1400px; }
  .ws-sp__turn { transform-style: preserve-3d; transition: transform 560ms cubic-bezier(0.45, 0.05, 0.25, 1); }
  .ws-sp.has-back:hover .ws-sp__turn { transform: rotateY(180deg); transition-delay: 250ms; }
  .ws-sp__front, .ws-sp__back { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  .ws-sp__back { transform: rotateY(180deg); visibility: visible; }
  .ws-sp.has-back:not(:hover) .ws-sp__back { pointer-events: none; }
  .ws-sp__back:hover .ws-bk { border-color: var(--teal); }
  .ws-sp__back:hover .ws-bk__go { text-decoration: underline; text-underline-offset: 3px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {   /* a fade, never a turn */
  .ws-sp__turn, .ws-sp.has-back:hover .ws-sp__turn { transform: none; transition: none; }
  .ws-sp__back { transform: none; opacity: 0; transition: opacity 200ms linear; }
  .ws-sp.has-back:hover .ws-sp__back { opacity: 1; transition: opacity 200ms linear 250ms; }
  .ws-sp__front { transition: opacity 200ms linear; }
  .ws-sp.has-back:hover .ws-sp__front { opacity: 0; transition: opacity 200ms linear 250ms; }
}

.ws-bk {
  position: relative; display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-tight);
  background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-tile); transition: border-color 150ms ease-out;
}
/* the pages under it: a booklet, not a picture */
.ws-bk::before, .ws-bk::after { content: ""; position: absolute; inset: -1px; z-index: -1; border: 1px solid var(--line-2); border-radius: inherit; background: var(--surface); }
.ws-bk::before { transform: translate(4px, 4px); }
.ws-bk::after { transform: translate(8px, 8px); background: var(--line); }
.ws-bk__top { display: flex; align-items: baseline; gap: var(--space-sm); }
.ws-bk__mark { font: 700 11px/1 var(--font-mono); letter-spacing: 0.24em; color: var(--ink); }
.ws-bk__no { font: 500 10px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }
.ws-bk__kind { font: 600 14px/1.2 var(--font-title); letter-spacing: -0.01em; color: var(--ink); }
.ws-bk__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); row-gap: var(--space-xs); align-items: stretch; }
.ws-bk__grid--one { grid-auto-rows: auto; align-content: center; }
.ws-bk__grid--one .ws-bk__cell { aspect-ratio: 4 / 3; height: auto; }
.ws-bk__cell { position: relative; min-width: 0; min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--field); border: 1px solid var(--line); border-radius: 4px; }
.ws-bk__cell img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.ws-bk__cell b {
  position: absolute; top: var(--space-xs); left: var(--space-xs); min-width: 18px; height: 18px; padding: 0 var(--space-xs);
  display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper);
  font: 700 10px/1 var(--font-mono); border-radius: 3px;
}
.ws-bk__cell--more { flex-direction: column; gap: var(--space-xs); padding: var(--space-sm); background: var(--ink); border-color: var(--ink); color: var(--paper); font: 600 12px/1.25 var(--font-sans); text-align: center; }
.ws-bk__cell--more .mdi { color: var(--teal-hi); }
.ws-bk__arr { display: flex; align-items: center; justify-content: center; color: var(--teal-d); }
.ws-bk__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.04em; color: var(--muted); min-width: 0; }
.ws-bk__foot > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-bk__go { display: inline-flex; align-items: center; gap: var(--space-xs); font: 600 13px/1 var(--font-sans); letter-spacing: 0; color: var(--teal-d); white-space: nowrap; }

/* the home's Spetz Specs row: booklet cards you scroll sideways */
/* every card the same height, each line on its own row: the bottom lines align (Tom 2026-11-23) */
.hm-rail--specs { grid-auto-columns: 72%; padding-bottom: var(--space-sm); }
@media (min-width: 640px) { .hm-rail--specs { grid-auto-columns: 264px; } }
.ws-bkc { display: flex; min-width: 0; padding: 0 var(--space-sm) var(--space-sm) 0; color: var(--ink); text-decoration: none; }
.ws-bk--card { flex: 1; min-width: 0; gap: var(--space-xs); padding-bottom: var(--space-md); }   /* room under the byline (Yuval 2026-11-25) */
.ws-bk--card .ws-bk__kind { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-bk--card .ws-bk__grid { flex: none; aspect-ratio: 16 / 10; margin-top: var(--space-xs); }
.ws-bk--card .ws-bk__grid--one { aspect-ratio: auto; }
.ws-bkc__t { margin-top: var(--space-sm); font: 600 15px/1.3 var(--font-title); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.ws-bkc__by { margin-top: auto; padding-top: var(--space-sm); font: 500 10px/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-bkc:hover .ws-bk { border-color: var(--teal); }
.ws-bkc:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--r-tile); }
/* a phone: the same width as the project tiles above (two to a screen), so the row stays small (Tom 2026-11-24).
   One page edge instead of two, no number or kind line (the row's title says what they are), smaller type. */
@media (max-width: 639px) {
  .hm-rail--specs { grid-auto-columns: calc((100% - var(--space-xs)) / 2 + var(--space-xs)); padding-bottom: var(--space-xs); }
  .ws-bkc { padding: 0 var(--space-xs) var(--space-xs) 0; }
  .ws-bk--card { padding: var(--space-sm); }
  .ws-bk--card::after { display: none; }
  .ws-bk--card .ws-bk__no, .ws-bk--card .ws-bk__kind { display: none; }
  .ws-bk--card .ws-bk__mark { font-size: 10px; letter-spacing: 0.18em; }
  .ws-bk--card .ws-bk__grid { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); aspect-ratio: 16 / 10; margin-top: 0; }
  .ws-bk--card .ws-bk__arr .mdi { font-size: 14px; }
  .ws-bk--card .ws-bk__cell b { min-width: 14px; height: 14px; font-size: 9px; top: var(--space-xs); left: var(--space-xs); }
  .ws-bk--card .ws-bk__cell--more { padding: var(--space-xs); font-size: 10px; gap: 0; }
  .ws-bk--card .ws-bk__cell--more .mdi { display: none; }
  .ws-bkc__t { font-size: 13px; line-height: 1.25; min-height: 2.5em; }
  .ws-bkc__by { font-size: 9px; letter-spacing: 0.02em; }
}

/* the guides page (/guides/): every creator guide by space, then that space's apps */
.gp-sec { margin-top: var(--space-lg); }
.gp-sec .ws-h2 { margin-bottom: var(--space-md); }
.gp-sec + .gp-sec { margin-top: var(--space-2xl); }
.gp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-tight); }
@media (min-width: 640px) { .gp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .gp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--space-md); } }
.gp-grid.is-loading { min-height: 100vh; align-content: start; }
/* "See more guides" under each list (Spetz membership → the waiting list sheet; Tom 2026-11-22) */
.gp-more { margin-top: var(--space-lg); }
.gp-wait .ws-h2 { margin-top: var(--space-xs); }
.gp-wait .ws-sub { margin-top: var(--space-sm); }
.gp-wait__form { display: flex; flex-direction: column; gap: var(--space-tight); margin-top: var(--space-md); }

/* DIY by skill: the project apps that use them */
.hp-use { margin-top: var(--space-lg); }
.hp-use__h { font: 600 18px/1.2 var(--font-title); letter-spacing: -0.01em; margin-bottom: var(--space-tight); }

/* what Spetz is: three audiences, words only, each under a 2 px ink rule with one way in (2026-11-24) */
.hm-who__grid { display: grid; gap: var(--space-xl); }
.hm-aud { display: flex; flex-direction: column; gap: var(--space-sm); padding-top: var(--space-md); border-top: 2px solid var(--ink); }
.hm-aud__k { font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-d); }
.hm-aud__num { margin-top: var(--space-xs); font: 700 22px/1.2 var(--font-title); letter-spacing: -0.02em; }
.hm-aud__p { max-width: 40ch; color: var(--muted); line-height: 1.55; font-size: 15px; }
.hm-aud__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg); margin-top: auto; }
.hm-aud__more { flex-basis: 100%; font: 500 15px/1 var(--font-sans); color: var(--muted); }   /* under Apply, on its own line */
@media (hover: hover) { .hm-aud__more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
/* side by side, "See how it works" hangs below Apply so the three arrow links sit at one height (Yuval 2026-11-25) */
@media (min-width: 900px) { .hm-aud__cta { position: relative; } .hm-aud__more { position: absolute; top: 100%; left: 0; margin-top: var(--space-tight); } }
@media (min-width: 900px) { .hm-who__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); } }

/* real builds */
.hm-builds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-tight); }
@media (min-width: 900px) { .hm-builds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-build { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); min-width: 0; }
.hm-build__img { width: 100%; aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden; background: var(--line); margin-bottom: var(--space-xs); }
.hm-build__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-build b { font: 600 15px/1.3 var(--font-sans); }
.hm-build__by { font-size: 13px; color: var(--muted); }

/* ── signed in: the dashboard ── */
.hm-dash { padding-top: var(--space-lg); }
.hm-dash__head { display: grid; gap: var(--space-md); align-items: end; }
@media (min-width: 900px) { .hm-dash { padding-top: var(--space-md); } .hm-dash__head { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: var(--space-2xl); } }
.hm-rail--projects { grid-auto-columns: 78%; }
@media (min-width: 640px) { .hm-rail--projects { grid-auto-columns: 280px; } }
.hm-pcard {
  display: flex; flex-direction: column; gap: var(--space-sm); min-height: 168px; padding: var(--space-md); text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color 150ms ease-out, transform 120ms ease-out;
}
.hm-pcard:hover { border-color: var(--line-2); }
.hm-pcard:active { transform: scale(0.985); }
.hm-pcard__top { display: flex; justify-content: space-between; gap: var(--space-sm); }
.hm-pcard__t { font: 600 18px/1.25 var(--font-title); letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-pcard__next { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 14px; color: var(--muted); }
.hm-pcard .ws-progress { margin-top: auto; }
.hm-pcard--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hm-pcard--ink:hover { border-color: var(--ink-2); }
.hm-pcard--ink .ws-eyebrow, .hm-pcard--ink .hm-pcard__next { color: var(--on-ink-muted); }
.hm-pcard--ink .ws-progress { background: #1e2a3f; }
.hm-pcard--new { border-style: dashed; border-color: var(--line-2); background: transparent; justify-content: center; }
.hm-pcard--new:hover { border-color: var(--teal); background: var(--teal-tint); }
/* No projects yet (#first, Tom 2026-11-25): one wide card in the shop-drawing hand of DIY by task's two cards (2 px
   ink edge, the tape strip along the top): the ask box + real starters on the left, the five stages on the right.
   A phone: stacked, the stages as a numbered strip of names. */
.hm-first {
  --tape: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 6px) bottom / 100% 4px no-repeat,
          repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 30px) bottom / 100% 8px no-repeat;
  position: relative; display: grid; gap: var(--space-lg); padding: var(--space-xl) var(--space-md) var(--space-md);
  background: var(--field); border: 2px solid var(--ink); border-radius: var(--r-card); overflow: hidden;
}
.hm-first::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; border-bottom: 1px solid var(--ink); background: var(--tape); background-color: var(--sand-tint); }
.hm-first__go { display: flex; flex-direction: column; min-width: 0; }
.hm-first__k { font: 600 10px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand-d); }
.hm-first__h { margin-top: var(--space-sm); font: 700 28px/1.1 var(--font-title); letter-spacing: -0.025em; text-wrap: balance; }
.hm-first__lede { margin-top: var(--space-sm); max-width: 52ch; font-size: 15px; line-height: 1.5; color: var(--muted); }
.hm-first__ask { margin-top: var(--space-lg); }
.hm-first__try { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-tight); }
.hm-first__try span { font: 600 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: var(--space-xs); }
.hm-first__try button {
  padding: var(--space-sm) var(--space-tight); font: 500 14px/1.2 var(--font-sans); color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-btn); transition: border-color 150ms ease-out, background 150ms ease-out;
}
.hm-first__try button:hover { border-color: var(--teal-d); background: var(--teal-tint); }
.hm-first__try button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hm-first__steps { list-style: none; margin: 0; padding: var(--space-md) 0 0; border-top: 1px dashed var(--line-2); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-xs); }
.hm-first__steps li { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); min-width: 0; text-align: center; }
.hm-first__n { display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--ink); border-radius: var(--r-btn); background: var(--surface); color: var(--ink); }
.hm-first__steps .is-now .hm-first__n { background: var(--teal); border-color: var(--teal-d); color: var(--on-teal); }
.hm-first__st { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.hm-first__st b { font: 600 13px/1.2 var(--font-sans); }
.hm-first__st b i { display: none; }
.hm-first__st small { display: none; }
@media (min-width: 900px) {
  .hm-first { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-2xl); padding: var(--space-2xl) var(--space-xl) var(--space-xl); align-items: center; }
  .hm-first__h { font-size: 40px; }
  .hm-first__steps { display: flex; flex-direction: column; gap: 0; padding: 0 0 0 var(--space-xl); border-top: 0; border-left: 1px dashed var(--line-2); }
  .hm-first__steps li { position: relative; flex-direction: row; align-items: flex-start; gap: var(--space-tight); text-align: left; padding-bottom: var(--space-md); }
  .hm-first__steps li:last-child { padding-bottom: 0; }
  /* the dotted line that joins the stage boxes */
  .hm-first__steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: var(--space-xs); border-left: 1.5px dotted var(--ink); }
  .hm-first__st { padding-top: var(--space-xs); }
  .hm-first__st b { font-size: 15px; display: flex; align-items: baseline; gap: var(--space-sm); }
  .hm-first__st b i { display: inline; font: 600 10px/1 var(--font-mono); font-style: normal; letter-spacing: 0.1em; color: var(--sand-d); }
  .hm-first__st small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
}
.hm-bento { display: grid; gap: var(--space-tight); }
@media (min-width: 760px) { .hm-bento { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.hm-cell { min-width: 0; display: flex; }
.hm-cell > * { flex: 1; min-width: 0; margin: 0; }
.hm-cell--wide { grid-column: 1 / -1; }
.hp-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.hp-empty .ws-link { display: inline; margin-top: auto; padding-top: var(--space-xs); }

/* ── creator guide cards (js/workshop/guides.js): "See how a creator built it" on tool pages, the project
   room, Napkin to plan, Fix my build, build logs, questions and the new-project sheet ── */
.gd__head { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-md); }
.gd__h { font: 700 20px/1.15 var(--font-title); letter-spacing: -0.02em; }
.gd__sub { font: 400 14px/1.4 var(--font-sans); color: var(--muted); }
.gd__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--space-tight); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--space-md)); padding: 0 var(--space-md) var(--space-xs); scroll-padding: 0 var(--space-md);
}
.gd__row::-webkit-scrollbar { display: none; }
.gd__row > * { scroll-snap-align: start; }
@media (min-width: 640px) {
  .gd__row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
}
.gd-card {
  display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color 150ms ease-out;
}
.gd-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.gd-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms var(--ease); }
.gd-card__body { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-tight) var(--space-md) var(--space-md); flex: 1; min-width: 0; }
.gd-card__t { font: 600 16px/1.3 var(--font-title); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gd-card__by { display: flex; align-items: center; gap: var(--space-sm); font: 600 13px/1.2 var(--font-sans); color: var(--muted); min-width: 0; }
.gd-card__by img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--line); flex-shrink: 0; }
.gd-card__by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-card__go { display: inline-flex; align-items: center; gap: var(--space-xs); margin-top: auto; font: 600 14px/1.2 var(--font-sans); color: var(--teal-d); }
.gd-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (hover: hover) {
  .gd-card:hover { border-color: var(--teal); }
  .gd-card:hover .gd-card__img img { transform: scale(1.03); }
}
/* "Tutorials we like and recommend" (js/workshop/tutorials.js): YouTube videos in the guide cards' frame; a click
   plays one in place (privacy-mode player) */
.tut .gd-card__img { aspect-ratio: 16 / 9; position: relative; }
.tut-play { padding: 0; border: 0; cursor: pointer; width: 100%; font: inherit; color: inherit; }
.tut-play:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.tut-mark {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: var(--r-tile);
  display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); transition: background 150ms ease-out;
}
.tut-dur {
  position: absolute; right: var(--space-sm); bottom: var(--space-sm); padding: 0 var(--space-xs); border-radius: 4px;
  background: var(--ink); color: var(--paper); font: 500 11px/1.8 var(--font-mono);
}
.tut-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.tut-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-sm); font: 600 13px/1.3 var(--font-sans); color: var(--muted); min-width: 0; }
.tut-ch { color: var(--teal-d); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tut-ch:hover { text-decoration: underline; }
.tut-ch:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tut-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-md); font: 400 14px/1.4 var(--font-sans); color: var(--muted); }
@media (hover: hover) {
  .tut-card:hover .tut-mark { background: var(--teal-d); }
}
/* compact: small rows (sheets, side panels) */
.gd--compact { margin-top: var(--space-lg); }
.gd--compact .gd__head { margin-bottom: var(--space-tight); }
.gd--compact .gd__h { font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.gd--compact .gd__row { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: var(--space-sm); }
.gd--compact .gd-card { flex-direction: row; align-items: stretch; }
.gd--compact .gd-card__img { width: 88px; flex-shrink: 0; aspect-ratio: 1; }
.gd--compact .gd-card__body { padding: var(--space-sm) var(--space-tight); gap: var(--space-xs); }
.gd--compact .gd-card__t { font-size: 15px; }
.gd--compact .gd-card__go { display: none; }

/* ── the smallest phones (320–359px: iPhone SE 1st gen, small Androids): long button labels wrap and
   text columns shrink instead of pushing the page sideways (deck planner, the checklist, 2026-11-17 review) */
@media (max-width: 359px) {
  .ws-btn { white-space: normal; text-align: center; line-height: 1.2; padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
  .ws-btn .mdi { flex-shrink: 0; }
  .fx-remind__head > *, .ws-result > *, .ws-card > * { min-width: 0; }
  .ws-result, .ws-card { min-width: 0; overflow-wrap: anywhere; }
}

/* ── HandyMate (handymate.js; docs/agents/workshop.md › HandyMate) ──────────
   The project page's floating teal bubble, bottom right on every Workshop page; it sits above the
   phone action bar and tab bar (z 30 / 40) and under sheets, search and the sign-up popup (z 100+). */
.hmate-fab {
  position: fixed; z-index: 95; right: max(var(--space-md), env(safe-area-inset-right, 0px));
  bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: var(--space-sm); height: 56px; padding: 0; border: 0; background: none; cursor: pointer;
  flex-direction: row-reverse; transition: transform 200ms var(--ease); animation: ws-fade 300ms ease-out;
}
.hmate-fab .hmate-badge { width: 56px; height: 56px; overflow: visible; flex-shrink: 0;
  /* no drop shadows (style guide): a hairline edge keeps it clear over any page */
  filter: drop-shadow(0 0 0.75px rgba(11, 20, 38, 0.55)); }
.hmate-fab__label { max-width: 0; overflow: hidden; white-space: nowrap; font: 600 14px/1 var(--font-sans); color: var(--paper);
  background: var(--ink); border-radius: var(--r-btn); padding: var(--space-sm) 0; opacity: 0;
  transition: max-width 600ms var(--ease), padding 600ms var(--ease), opacity 300ms ease-out; }
@media (hover: hover) { .hmate-fab:hover { transform: translateY(-2px); } }
@media (min-width: 900px) {
  .hmate-fab:hover .hmate-fab__label { max-width: 160px; padding: var(--space-sm) var(--space-tight); opacity: 1; }
}
.hmate-fab.is-open .hmate-fab__label { display: none; }
body.has-tabbar .hmate-fab { bottom: calc(var(--tab-h) + var(--space-tight) + env(safe-area-inset-bottom, 0px)); }
body.has-cta .hmate-fab { bottom: calc(80px + var(--space-tight) + env(safe-area-inset-bottom, 0px)); }
/* phones (review 2026-11-17: above the action bar it sat on a control on 22 of 51 tool pages): the bubble docks in
   the fixed action bar, which makes room for it; it steps aside while the keyboard is up or a toast shows */
@media (max-width: 899px) {
  body.has-cta:not(:has(.ws-cta--inline)) .hmate-fab { bottom: calc(var(--space-tight) + env(safe-area-inset-bottom, 0px)); }
  body.has-hmate .ws-cta:not(.ws-cta--inline) .ws-cta__in { padding-right: 64px; }
  body.hmate-typing .hmate-fab:not(.is-open), body:has(.ws-toast) .hmate-fab:not(.is-open) { opacity: 0; pointer-events: none; transform: translateY(8px); }
  .hmate-fab { transition: transform 200ms var(--ease), opacity 200ms ease-out; }
}
/* the home: the bubble waits while the search field (which asks HandyMate there) is on screen (home-page.js) */
.hmate-fab { transition: transform 200ms var(--ease), opacity 200ms ease-out, visibility 200ms; }
.hm-search-on .hmate-fab:not(.is-open) { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); }
/* a computer: the bubble and its chat line up with the page's content edge (.ws-wrap, --wrap wide), not the
   screen's (Tom 2026-11-22); on a narrow window that is the usual 24 px from the edge */
@media (min-width: 900px) {
  .hmate-fab, body.has-tabbar .hmate-fab { right: max(var(--space-lg), calc((100% - var(--wrap)) / 2 + var(--space-lg))); bottom: var(--space-lg); }
  /* the desktop action bar sticks to the bottom of its column: until the column clears the button, sit above it */
  body.has-cta .hmate-fab { bottom: var(--space-lg); }
}
@media (min-width: 900px) and (max-width: 1279px) { body.has-cta .hmate-fab { bottom: 104px; } }
@media (prefers-reduced-motion: reduce) { .hmate-fab, .hmate-fab__label { transition: none; animation: none; } }

/* HandyMate's notes (hm-notes.js): a red count on the bubble, a short preview above it (a computer, once a tab),
   and the notes as messages at the bottom of the chat */
.hmate-fab__n { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 var(--space-xs); border-radius: 999px;
  background: var(--alert); color: #fff; outline: 2px solid var(--paper); font: 700 12px/22px var(--font-sans); text-align: center;
  font-variant-numeric: tabular-nums; pointer-events: none; animation: hmate-pop 300ms var(--ease); }
@keyframes hmate-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hmate-peek { position: fixed; z-index: 95; right: max(var(--space-lg), calc((100% - var(--wrap)) / 2 + var(--space-lg)));
  bottom: calc(var(--space-lg) + 56px + var(--space-tight)); width: 320px; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: var(--space-xs) 0 var(--space-sm);
  animation: ws-pop 240ms var(--ease); }
@media (min-width: 900px) and (max-width: 1279px) { body.has-cta .hmate-peek { bottom: calc(104px + 56px + var(--space-tight)); } }
@media (max-width: 899px) { .hmate-peek { display: none; } }
.hm-search-on .hmate-peek, body.hmate-typing .hmate-peek { display: none; }
.hmate-peek__head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md); }
.hmate-peek__head .hmate-badge { width: 24px; height: 24px; flex-shrink: 0; overflow: visible; }
.hmate-peek__head b { flex: 1; font: 700 15px/1.2 var(--font-title); }
.hmate-peek__row { display: flex; align-items: center; gap: var(--space-tight); width: 100%; padding: var(--space-sm) var(--space-md); border: 0;
  background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.hmate-peek__ic { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-btn);
  background: var(--teal-tint); color: var(--teal-d); }
.hmate-peek__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hmate-peek__t b { font: 600 14px/1.3 var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmate-peek__t span { font-size: 13px; line-height: 1.35; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmate-peek__dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--teal-d); }
.hmate-peek__all { margin: var(--space-xs) var(--space-md) 0; padding: var(--space-xs) 0; border: 0; background: none; text-align: left;
  font: 600 14px/1.3 var(--font-sans); color: var(--teal-d); cursor: pointer; }
@media (hover: hover) {
  .hmate-peek__row:hover { background: var(--surface); }
  .hmate-peek__all:hover { text-decoration: underline; }
}
.hmate-note { border-left: 2px solid var(--teal); padding-left: var(--space-tight); }
.hmate-note__k { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-xs); font: 600 10px/1.2 var(--font-mono);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-d); }
.hmate-note .hmate-chips { margin-top: var(--space-sm); }
@media (prefers-reduced-motion: reduce) { .hmate-fab__n, .hmate-peek { animation: none; } }

.hmate-scrim { position: fixed; inset: 0; z-index: 96; background: rgba(11, 20, 38, 0.5); animation: ws-fade 200ms ease-out; }
html.hmate-lock { overflow: hidden; }
.hmate-panel {
  position: fixed; z-index: 97; left: 0; right: 0; bottom: 0; height: 85vh; height: 85dvh;
  display: flex; flex-direction: column; background: var(--paper); border-radius: 20px 6px 0 0; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); animation: ws-sheet-up 320ms var(--ease);
}
@media (min-width: 900px) {
  .hmate-panel { left: auto; right: max(var(--space-lg), calc((100% - var(--wrap)) / 2 + var(--space-lg))); bottom: calc(var(--space-lg) + 56px + var(--space-tight)); width: 400px;
    height: min(620px, calc(100vh - 140px)); border: 1px solid var(--line-2); border-radius: var(--r-card); padding-bottom: 0; animation: ws-pop 240ms var(--ease); }
}
@media (min-width: 900px) and (max-width: 1279px) { body.has-cta .hmate-panel { bottom: calc(104px + 56px + var(--space-tight)); height: min(620px, calc(100vh - 220px)); } }
@media (prefers-reduced-motion: reduce) { .hmate-panel, .hmate-scrim { animation: none; } }

.hmate-head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-tight) var(--space-sm) var(--space-tight) var(--space-md); border-bottom: 1px solid var(--line); }
.hmate-head .hmate-badge { width: 32px; height: 32px; flex-shrink: 0; overflow: visible; }
.hmate-head__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hmate-head__t b { font: 700 17px/1.2 var(--font-title); letter-spacing: -0.01em; }
.hmate-head__t span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmate-ib { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: var(--r-btn); color: var(--muted); cursor: pointer; }
@media (hover: hover) { .hmate-ib:hover { background: var(--teal-tint); color: var(--ink); } }

.hmate-knows { display: flex; align-items: center; gap: var(--space-xs); width: 100%; padding: var(--space-sm) var(--space-md); border: 0; border-bottom: 1px solid var(--line);
  background: var(--surface); font: 500 13px/1.3 var(--font-sans); color: var(--muted); text-align: left; cursor: pointer; }
.hmate-knows span:not(.mdi) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmate-knows .mdi:first-child { color: var(--teal-d); }
.hmate-knows[aria-expanded="true"] .mdi:last-child { transform: rotate(180deg); }
.hmate-knowsbox { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-sm) var(--space-md) var(--space-tight); border-bottom: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.hmate-knowsbox p { color: var(--muted); font-size: 13px; }
.hmate-tick { display: flex; align-items: center; gap: var(--space-sm); min-height: 32px; cursor: pointer; }
.hmate-tick input { width: 18px; height: 18px; accent-color: var(--teal-d); margin: 0; }

.hmate-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-md); }
.hmate-log > :first-child { margin-top: auto; }
.hmate-msg { max-width: 100%; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; animation: ws-rise 300ms var(--ease); }
.hmate-msg--me { align-self: flex-end; max-width: 85%; background: var(--ink); color: var(--paper); padding: var(--space-sm) var(--space-tight);
  border-radius: 16px 16px 4px 16px; white-space: pre-wrap; }
.hmate-msg--hm { align-self: stretch; }
.hmate-text { display: flex; flex-direction: column; gap: var(--space-sm); }
.hmate-text ul { margin: 0; padding-left: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xs); }
.hmate-text b { font-weight: 650; }
.hmate-msg--err .hmate-text { color: var(--muted); }
.hmate-msg--stop { border: 1px solid var(--sand); background: var(--sand-tint); border-radius: var(--r-tile); padding: var(--space-tight); }
.hmate-stop { display: flex; align-items: center; gap: var(--space-xs); font: 700 14px/1.3 var(--font-sans); color: var(--sand-d); margin-bottom: var(--space-sm) !important; }
.hmate-go { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-tight); }
.hmate-go__a { display: flex; align-items: center; gap: var(--space-tight); width: 100%; padding: var(--space-sm) var(--space-tight); text-align: left;
  border: 1px solid var(--line-2); border-radius: var(--r-tile); background: var(--field); color: var(--ink); cursor: pointer; font: inherit; }
.hmate-go__a > .mdi { color: var(--teal-d); }
.hmate-go__ic { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-btn); background: var(--teal-tint); color: var(--teal-d); }
.hmate-go__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hmate-go__t b { font: 600 15px/1.3 var(--font-sans); }
.hmate-go__t span { font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (hover: hover) { .hmate-go__a:hover { border-color: var(--teal); background: var(--teal-tint); } }
.hmate-guides.gd--compact { margin-top: var(--space-tight); }
.hmate-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hmate-fu { margin-top: var(--space-tight); }
.hmate-chip { padding: var(--space-sm) var(--space-tight); border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--field);
  font: 500 14px/1.3 var(--font-sans); color: var(--ink); text-align: left; cursor: pointer; }
@media (hover: hover) { .hmate-chip:hover { border-color: var(--teal); background: var(--teal-tint); } }
.hmate-hello { display: flex; flex-direction: column; gap: var(--space-tight); }
.hmate-hello__h { font: 700 20px/1.2 var(--font-title); letter-spacing: -0.02em; }
.hmate-hello__sub { font-size: 15px; color: var(--muted); }
.hmate-signin { display: inline-flex; align-items: center; gap: var(--space-xs); align-self: flex-start; padding: var(--space-xs) 0; border: 0; background: none;
  font: 600 14px/1.3 var(--font-sans); color: var(--teal-d); cursor: pointer; }
.hmate-dots { display: flex; gap: 5px; padding: var(--space-xs) 0; }
.hmate-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: hmate-dot 1.4s infinite ease-in-out both; }
.hmate-dots i:nth-child(2) { animation-delay: 0.16s; } .hmate-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes hmate-dot { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

.hmate-form { display: flex; align-items: flex-end; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--line); }
.hmate-form textarea { flex: 1; min-width: 0; resize: none; max-height: 120px; padding: var(--space-sm) var(--space-tight); border: 1px solid var(--line-2); border-radius: var(--r-btn);
  background: var(--field); font: 400 16px/1.4 var(--font-sans); color: var(--ink); }
.hmate-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); }
.hmate-send { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-btn);
  background: var(--teal-d); color: var(--paper); cursor: pointer; }
.hmate-send:disabled { background: var(--line-2); color: var(--muted); cursor: default; }
.hmate-fine { padding: 0 var(--space-md) var(--space-sm); font-size: 11px; color: var(--muted); }

/* ── Search and AI answers: the static blocks scripts/workshop_seo.js writes into each tool page ── */
.ws-answer { margin-top: var(--space-md); max-width: 760px; }
.ws-answer--tool { margin-top: var(--space-xl); }
.ws-answer__text { font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.ws-answer__meta { margin-top: var(--space-sm); font-size: 13px; line-height: 1.4; color: var(--muted); }
.ws-static { margin-top: var(--space-xl); }
.ws-static .ws-h2 { margin-bottom: var(--space-tight); text-wrap: balance; }
.ws-static p, .ws-static li { font-size: 16px; line-height: 1.6; max-width: 760px; text-wrap: pretty; }
.ws-static p + p, .ws-static p + .ws-stable, .ws-static ol + .ws-stable, .ws-static .ws-stable + p { margin-top: var(--space-tight); }
.ws-static ol, .ws-static ul { padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
.ws-static ol { list-style: decimal; } .ws-static ul { list-style: disc; }
.ws-stable { max-height: none; }
.ws-stable__note { margin-top: var(--space-sm); }
.rf-table caption { caption-side: top; text-align: left; padding: var(--space-sm) var(--space-md); font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.rf-table caption.ws-sr { padding: 0; border: 0; }
.rf-table tbody th { position: static; background: none; text-align: left; padding: var(--space-sm) var(--space-md); font: 700 15px/1.4 var(--font-sans);
  letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.rf-table tbody tr:last-child th { border-bottom: 0; }
/* a fix-it page's whole tree, for crawlers and for browsers without JS; fix-kit draws the interactive one */
.ws-js .fx-static { display: none; }
.fx-static { display: grid; gap: var(--space-md); }
.fx-static h3 { font: 600 18px/1.25 var(--font-title); }
.fx-static p, .fx-static li { font-size: 15px; line-height: 1.55; }
.fx-static ol, .fx-static ul { padding-left: var(--space-lg); margin-top: var(--space-xs); }
.fx-static ol { list-style: decimal; } .fx-static ul { list-style: disc; }
/* /apps/: the apps' own page (tools/index.html): a filter, the shelf tabs, then each shelf's tiles */
.ti-bar { margin-top: var(--space-lg); }
.ti-filter { display: flex; align-items: center; gap: var(--space-sm); height: 48px; padding: 0 var(--space-tight); margin-bottom: var(--space-md);
  background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-tile); color: var(--muted); }
.ti-filter:focus-within { border-color: var(--teal); }
.ti-filter input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: 400 16px/1 var(--font-sans); color: var(--ink); }
.ti-groups { display: grid; gap: var(--space-xl); }
.ti-group h2 { margin-bottom: var(--space-tight); }
/* "Related apps" at the foot of an app page (scripts/workshop_seo/related.js): the same tiles */
.ws-related h2 { margin-bottom: var(--space-tight); }
.ti-none { margin-top: var(--space-md); }
@media (min-width: 640px) { .ti-filter { max-width: 420px; } }
/* a page whose result My home keeps (the water heater's age): My home + Save side by side, stacked on a phone */
.ws-cta__in:has(.cc-homefirst) { flex-wrap: wrap; }
.ws-cta__in > .cc-homefirst { flex: 1 1 220px; min-width: 0; }
.ws-cta__in > .cc-save--second { flex: 1 1 220px !important; min-width: 0; }   /* beats #save's inline flex: 1 */

/* ══ App pages as a light booklet (js/workshop/booklet.js) ═════════════
   numbered chapter heads, "Read the rest", and the contents strip under the header while reading */
.bk-n { display: inline-block; margin-right: var(--space-sm); font: 600 0.55em/1 var(--font-mono); letter-spacing: 0.08em; color: var(--teal-d); vertical-align: 0.3em; }
.bk-n--block { display: block; margin: 0 0 var(--space-sm); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; vertical-align: 0; }
.bk-rest { display: none !important; }
.bk-more { display: inline-flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-md); min-height: 40px; padding: 0 var(--space-tight);
  border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--field); font: 600 14px/1 var(--font-sans); color: var(--ink); cursor: pointer; }
.bk-more .mdi { color: var(--teal-d); }
@media (hover: hover) { .bk-more:hover { border-color: var(--teal); background: var(--teal-tint); } }
.bk-bar {
  position: fixed; left: 0; right: 0; top: var(--bar-h); z-index: 35; background: var(--paper); border-bottom: 1px solid var(--line);
  transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform 200ms var(--ease), opacity 160ms ease-out;
}
.bk-bar.is-on { transform: none; opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { .bk-bar { top: 64px; } }
.bk-bar__in { display: flex; align-items: center; gap: var(--space-xs); height: 48px; }
.bk-step { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-btn);
  background: none; color: var(--ink); cursor: pointer; }
.bk-step:disabled { color: var(--muted-2); cursor: default; }
@media (hover: hover) { .bk-step:not(:disabled):hover { background: var(--teal-tint); } }
.bk-chips { display: none; }
.bk-toc { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-sm); height: 40px; padding: 0 var(--space-sm); border: 0; background: none;
  font: 600 14px/1 var(--font-sans); color: var(--ink); cursor: pointer; text-align: left; }
.bk-toc .mdi:first-child { color: var(--teal-d); }
.bk-toc__t { font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.bk-toc__n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-toc[aria-expanded="true"] .mdi:last-child { transform: rotate(180deg); }
.bk-seg { display: flex; gap: var(--space-xs); height: 3px; padding: 0 var(--space-md); }
.bk-seg i { flex: 1; background: var(--line); border-radius: 2px; }
.bk-seg i.is-done { background: var(--teal-d); }
.bk-seg i.is-cur { background: var(--teal); }
.bk-menu { display: flex; flex-direction: column; padding-top: var(--space-sm); padding-bottom: var(--space-md); }
.bk-menu a { display: flex; align-items: center; gap: var(--space-tight); min-height: 44px; font: 500 16px/1.2 var(--font-sans); color: var(--ink); text-decoration: none; }
.bk-menu a.is-cur { font-weight: 700; }
.bk-chip__n { font: 600 12px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--teal-d); }
@media (min-width: 900px) {
  .bk-toc { display: none; }
  .bk-menu { display: none !important; }
  .bk-chips { flex: 1; min-width: 0; display: flex; gap: var(--space-xs); overflow-x: auto; scrollbar-width: none; }
  .bk-chips::-webkit-scrollbar { display: none; }
  .bk-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: var(--space-sm); height: 36px; padding: 0 var(--space-tight); border-radius: var(--r-btn);
    font: 500 14px/1 var(--font-sans); color: var(--muted); text-decoration: none; white-space: nowrap; transition: background 150ms ease-out, color 150ms ease-out; }
  .bk-chip:hover { color: var(--ink); background: var(--teal-tint); }
  .bk-chip.is-cur { color: var(--ink); background: var(--teal-tint); font-weight: 600; }
  .bk-seg { padding: 0; max-width: var(--wrap); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .bk-bar { transition: none; } }
@media print { .bk-bar, .bk-more { display: none !important; } .bk-rest { display: revert !important; } }

/* ── How we work it out (/how-we-work/; docs/agents/workshop.md › How we work it out page) ── */
.hw-toc { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.hw-toc a { border: 1px solid var(--line-2); border-radius: var(--r-btn); padding: var(--space-xs) var(--space-tight); font-size: 14px; color: var(--ink); text-decoration: none; }
.hw-toc a:hover { border-color: var(--teal-d); color: var(--teal-d); }
.hw .ws-static { scroll-margin-top: calc(var(--bar-h) + var(--space-md)); }
.hw .ws-static .ws-h2 { display: flex; align-items: center; gap: var(--space-sm); }
.hw .ws-static .ws-h2 .mdi { color: var(--teal-d); }
.hw .ws-static ul + p { margin-top: var(--space-tight); }
.hw .ws-static a { color: var(--teal-d); }

/* ── Embeds: an app on someone else's site (shell.js EMBED; docs/agents/workshop.md › Embeds) ──
   Only the app: no header, footer, save bar, prices, "hire a pro" row or reading sections. */
html[data-ws-embed] body.ws-page { background: var(--paper); min-height: 0; }
html[data-ws-embed] #ws-header, html[data-ws-embed] #ws-flowhead, html[data-ws-embed] .ws-flowhead,
html[data-ws-embed] [data-site-footer], html[data-ws-embed] .sf, html[data-ws-embed] .ws-tabbar,
html[data-ws-embed] .ws-answer, html[data-ws-embed] .ws-static, html[data-ws-embed] .cc-learn,
html[data-ws-embed] .ws-cta, html[data-ws-embed] #hire, html[data-ws-embed] .ws-sub,
html[data-ws-embed] .ws-eyebrow--teal, html[data-ws-embed] .ws-embed__offer, html[data-ws-embed] .ws-pagebar,
html[data-ws-embed] .cc-res__price, html[data-ws-embed] .ws-list__price, html[data-ws-embed] .ws-list__foot .ws-note,
html[data-ws-embed] .ws-list__foot a.ws-btn, html[data-ws-embed] .cc-skillslot, html[data-ws-embed] .ws-related, html[data-ws-embed] .pl-warn--side { display: none !important; }
html[data-ws-embed] .ws-main, html[data-ws-embed] body.has-cta .ws-main { padding-top: var(--space-md); padding-bottom: var(--space-md); }
html[data-ws-embed] .ws-main > h1 { margin-top: 0 !important; }
.ws-embed__brand { display: block; color: var(--ink-2); margin: 0; }
.ws-embed__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm);
  margin: var(--space-lg) 0 0; padding-top: var(--space-tight); border-top: 1px solid var(--line); font-size: 14px; }
.ws-embed__foot a { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 600; color: inherit; }
.ws-embed__foot span { color: var(--muted); font-size: 13px; }
.ws-embed__offer { display: flex; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-md); }
.ws-embed__offer .mdi { flex: none; margin-top: 2px; }
/* the Embed page (/apps/embed/) */
.em-form .ws-field { display: block; }
.ws-field textarea.em-code { font-family: var(--font-mono); font-size: 12px; min-height: 0; }
.em-row { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.em-plain { margin-top: var(--space-md); }
.em-plain summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.em-facts ul { margin: var(--space-sm) 0 0; padding-left: var(--space-md); display: grid; gap: var(--space-sm); font-size: 14px; }
.em-preview { min-height: 240px; }

/* ── the cut planner's printouts (js/workshop/cut-print.js): part labels, the store ticket, the leftovers listing ── */
#cpr-print { display: none; }
.cpr-left { display: grid; gap: var(--space-tight); }
.cpr-left .ws-field { display: block; }
.cpr-left textarea { width: 100%; }
.cpr-left__go { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@page cpr { size: 8.5in 11in; margin: 0; }
@media print {
  body.cpr-printing > *:not(#cpr-print) { display: none !important; }
  body.cpr-printing #cpr-print { display: block; }
  .cpr-page { page: cpr; width: 8.5in; height: 11in; position: relative; overflow: hidden; break-after: page; box-sizing: border-box; background: #fff; color: #0b1426; font-family: Inter, Helvetica, Arial, sans-serif; }
  .cpr-page:last-child { break-after: auto; }
  .cpr-ticket { height: auto; min-height: 11in; overflow: visible; padding: 0.5in; }
  .cpr-ticket__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.3in; border-bottom: 1.5px solid #0b1426; padding-bottom: 0.12in; margin-bottom: 0.15in; }
  .cpr-ticket__head p { margin: 4px 0 0; font-size: 12px; color: #4b4a45; }
  .cpr-ticket__q { width: 1in; text-align: center; }
  .cpr-ticket__q svg { width: 100%; height: auto; display: block; }
  .cpr-ticket__q small { display: block; font-size: 7px; line-height: 1.2; color: #4b4a45; margin-top: 3px; }
  .cpr-k { font: 600 11px/1.2 "Martian Mono", monospace; letter-spacing: 0.16em; text-transform: uppercase; color: #0a766c; }
  .cpl { position: absolute; display: flex; align-items: center; gap: 0.08in; padding: 0.06in 0.1in; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cpl.is-cut { outline: 1px dashed #9a958a; }
  .cpl__l { flex: none; width: 0.52in; height: 0.52in; border-radius: 50%; background: var(--c); display: grid; place-items: center; font: 800 20px/1 "Host Grotesk", Inter, sans-serif; color: #0b1426; }
  .cpl__t { display: flex; flex-direction: column; min-width: 0; }
  .cpl__t b { font-size: 11px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cpl__t span { font-size: 10px; font-weight: 600; line-height: 1.3; }
  .cpl__t small { font-size: 7.5px; line-height: 1.3; color: #4b4a45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cpl__s { position: absolute; right: 0.08in; bottom: 0.04in; font: 600 6.5px/1 "Martian Mono", monospace; font-style: normal; color: #0a766c; }
}
