/* <ezra-home>: the prompt-first home on an empty chat.
 * Tokens only (ezra-tokens.css): one accent (--p), category hues (--s*) tint the icon tiles only.
 * Layout follows the home's own width (container queries), so the chat rail and the canvas drawer
 * never break it: >= 880px bento (featured 2x2 + compact cards), 560-879px two columns, below one column.
 * Controls, cards, sheets, menus, chips, inputs, empty states, skeletons, eyebrows and live dots are the
 * canonical components in css/ezra-ui.css (.ez-btn, .ez-iconbtn, .ez-toggle, .ez-seg, .ez-chip, .ez-input,
 * .ez-menu / .ez-mi, .ez-card, .ez-sheet, .ez-empty-state, .ez-skel, .ez-eyebrow, .ez-kbd, .ez-dot); this file
 * keeps layout, placement and the home's own pieces (tabs, strip, bento, featured charts, live card).
 * Focus is the one ring from ezra.css; only controls clipped by a scroller / overflow set an inset offset. */

ezra-home { display: block; width: 100%; container-type: inline-size; container-name: ezhome; }

.ez-home {
  --hr: var(--r);            /* card radius */
  --gap: var(--sp-3);        /* grid gap */
  width: 100%; max-width: var(--ez-col, 1120px); margin: 0 auto; padding: var(--sp-2) 0 var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-5); color: var(--text); font-family: var(--sans);
  text-align: left;   /* never inherit centring from the host page */
}
/* --cat (category hue) fallback for any tile rendered outside a card that sets it */
.ezra-root { --cat: var(--s1); }
.ez-home-h2 { --ez-ta: left; margin: 0; font-size: var(--fs-17); font-weight: 600; letter-spacing: -.01em; --ez-h: var(--bright); }
/* entrances use the shared ez-rise keyframe (css/ezra-ui.css) */

/* ── greeting + session pill (aligned with the hero composer) ─────────────── */
.ez-home-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4);
  width: 100%;
}
.ez-home-greet { margin: 0; font-size: var(--fs-20); font-weight: 600; letter-spacing: -.02em; --ez-h: var(--bright); }
.ez-home-status {
  display: inline-flex; align-items: center; gap: var(--sp-2); height: 26px; margin: 0; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--r-full); background: var(--card);
  font-size: var(--fs-caption); color: var(--muted); white-space: nowrap;
}
.ez-home-updated { color: var(--faint); }

/* ── mood line (lib/home-view.js homeMood): one sentence from real data; the accent is that result's own
 *    direction colour (a 2px top line + a faint wash), none for mixed; no data -> [hidden], never a made-up mood ── */
.ez-home-mood {
  --mtone: transparent; --mwash: transparent;
  position: relative; overflow: hidden; flex: 1 1 100%; display: flex; align-items: center; gap: var(--sp-3); min-width: 0;
  padding: var(--sp-3) var(--sp-4); background: var(--card); border: 1px solid var(--border); border-radius: var(--hr);
  min-height: calc(var(--sp-8) + 2 * var(--sp-3) + 2px);   /* the skeleton holds the loaded line's height: no jump */
}
.ez-home-mood[data-mood="on"] { --mtone: var(--bull); --mwash: var(--bull-wash); }
.ez-home-mood[data-mood="off"] { --mtone: var(--bear); --mwash: var(--bear-wash); }
.ez-home-mood::before {   /* the top line */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--mtone); transition: background-color var(--dur) var(--ease);
}
.ez-home-mood::after {    /* the wash: a soft glow in the top-right corner */
  content: ''; position: absolute; top: -60%; right: -10%; width: 50%; height: 160%; border-radius: var(--r-full);
  background: var(--mwash); filter: blur(var(--sp-8)); pointer-events: none;
}
.ez-home-mood-skel { width: 55%; }
.ez-home-mood-ic {
  position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: var(--sp-8); height: var(--sp-8);
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg3); color: var(--muted); font-size: var(--fs-13);
}
.ez-home-mood[data-mood="on"] .ez-home-mood-ic { background: var(--bull-wash); color: var(--bull-text); }
.ez-home-mood[data-mood="off"] .ez-home-mood-ic { background: var(--bear-wash); color: var(--bear-text); }
.ez-home-mood-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ez-home-mood-line { margin: 0; font-size: var(--fs-17); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -.01em; color: var(--bright); }
.ez-home-mood-sub { margin: 0; font-size: var(--fs-13); line-height: var(--lh-snug); color: var(--muted); }

/* ── hero slot: ezra-chat moves .ez-composer-wrap in here (styles: ezra.css .is-hero) ── */
.ez-home-hero { width: 100%; margin: calc(-1 * var(--sp-2)) 0 0; }
.ez-home-hero:empty { display: none; }

/* ── market strip + pulse ─────────────────────────────────────────────────── */
.ez-home-market { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* the frame keeps the border; the scroller inside fades a side that has more to see (ezra-home paintEdges) */
.ez-home-strip-frame { min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--hr); }
.ez-home-strip {
  --fade-l: var(--sp-8); --fade-r: var(--sp-8);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(124px, 1fr);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-inline: var(--sp-6);   /* a focused or snapped item clears the fade */
  -webkit-mask-image: linear-gradient(to right, transparent, black var(--fade-l), black calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(to right, transparent, black var(--fade-l), black calc(100% - var(--fade-r)), transparent);
}
.ez-home-strip[data-at-start] { --fade-l: 0px; }
.ez-home-strip[data-at-end] { --fade-r: 0px; }
.ez-home-strip::-webkit-scrollbar { display: none; }
.ez-home-strip-skel { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-2); height: 56px; padding: 0 var(--sp-3); }
.ez-home-strip-skel + .ez-home-strip-skel, .ez-strip-item + .ez-strip-item { box-shadow: inset 1px 0 0 var(--border); }
.ez-strip-item {
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-1); min-width: 0; height: 56px; padding: 0 var(--sp-3);
  border: 0; border-radius: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
  scroll-snap-align: start; transition: background var(--dur) var(--ease);
}
.ez-strip-item:hover { background: var(--bg3); }
.ez-strip-item.is-picked { background: var(--p1); }
.ez-strip-item:focus-visible { outline-offset: -2px; }   /* inside the scroller */
.ez-strip-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.ez-strip-sym { font: 700 var(--fs-13) var(--mono); letter-spacing: .01em; color: var(--bright); }
.ez-strip-px { font-size: var(--fs-13); font-weight: 600; color: var(--text); white-space: nowrap; }
.ez-strip-chg {
  padding: 1px var(--sp-1); border-radius: var(--r-xs); font-size: var(--fs-11); font-weight: 600; line-height: 16px; white-space: nowrap;
  background: var(--bg4); color: var(--muted);
}
.ez-strip-chg[data-tone="bull"] { background: var(--bull-wash); color: var(--bull-text); }
.ez-strip-chg[data-tone="bear"] { background: var(--bear-wash); color: var(--bear-text); }
.ez-strip-spark { display: block; flex: none; width: 44px; height: 18px; }
.ez-strip-spark:empty { display: none; }
.ez-strip-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Pulse: an .ez-eyebrow, then .ez-toggle chips with a tone dot */
.ez-home-pulse { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-width: 0; }
.ez-home-pulse > .ez-eyebrow { margin-right: var(--sp-1); }
.ez-home-pulse .ez-num { font-family: var(--sans); }
.ez-home-pulse .ez-dot { background: var(--closed); }
.ez-home-pulse [data-tone="bull"] .ez-dot { background: var(--bull); }
.ez-home-pulse [data-tone="bear"] .ez-dot { background: var(--bear); }

/* ── Playbooks: header (h2, underline tabs, search, See all) ──────────────── */
.ez-pb-gallery { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.ez-pb-gallery-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); border-bottom: 1px solid var(--border); }
.ez-pb-tabrow { display: flex; align-self: stretch; align-items: stretch; gap: var(--sp-1); min-width: 0; margin-bottom: -1px; }
.ez-pb-tabs { display: flex; align-self: stretch; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ez-pb-tabs::-webkit-scrollbar { display: none; }
.ez-pb-tab {
  position: relative; height: 40px; padding: 0 10px; border: 0; background: none; color: var(--muted);
  font: 600 var(--fs-13) var(--sans); white-space: nowrap; cursor: pointer; transition: color var(--dur) var(--ease);
}
.ez-pb-tab::after {
  content: ''; position: absolute; left: var(--sp-2); right: var(--sp-2); bottom: 0; height: 2px; border-radius: 2px 2px 0 0;
  background: transparent; transition: background var(--dur) var(--ease);
}
.ez-pb-tab:hover { color: var(--text); }
.ez-pb-tab[aria-selected="true"] { color: var(--bright); }
.ez-pb-tab[aria-selected="true"]::after { background: var(--p); }
.ez-pb-tab:focus-visible { outline-offset: -2px; }   /* inside the tab scroller */
.ez-pb-gallery.is-search .ez-pb-tab[aria-selected="true"]::after { background: var(--border2); }   /* search spans all tabs */
.ez-pb-tab-n { margin-left: var(--sp-1); vertical-align: 1px; }   /* .ez-count-badge */
.ez-pb-newbtn { align-self: center; margin-left: 2px; }           /* .ez-btn.is-dashed.is-sm */
.ez-pb-search { position: relative; display: flex; align-items: center; margin-left: auto; }
.ez-pb-search-ico { position: absolute; left: var(--sp-2); display: grid; color: var(--faint); pointer-events: none; }
.ez-pb-search-in { width: 200px; padding-left: var(--sp-8); }    /* .ez-input + room for the icon */
.ez-pb-note-line { margin: calc(-1 * var(--sp-1)) 0 0; font-size: var(--fs-caption); color: var(--faint); }

/* ── bento grid ───────────────────────────────────────────────────────────── */
.ez-pb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); outline: none; }
.ez-pb-grid .ez-pb-none { grid-column: 1 / -1; }
.ez-pb-grid:not(.is-all) > ezra-playbook-card.is-extra { display: none; }
.ez-pb-grid.is-all > ezra-playbook-card.is-extra { animation: ez-rise var(--dur) var(--ease) both; }
/* loading: .ez-card.is-flat placeholders holding .ez-skel / .ez-skel-line */
.ez-pb-skel { gap: var(--sp-2); min-height: 150px; padding: 14px; }
.ez-pb-skel .ez-pb-skel-ico { --h: 32px; width: 32px; }

@container ezhome (min-width: 560px) {
  .ez-pb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ez-pb-grid > ezra-playbook-card[data-variant="featured"], .ez-pb-grid > .ez-pb-skel.is-featured { grid-column: 1 / -1; }
}
@container ezhome (min-width: 880px) {
  .ez-pb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(156px, auto); }
  .ez-pb-grid > ezra-playbook-card[data-variant="featured"], .ez-pb-grid > .ez-pb-skel.is-featured { grid-column: span 2; grid-row: span 2; }
}

/* ── card (shared): .ez-card.is-flat + .ez-pb-card (lift, spotlight) ──────── */
ezra-playbook-card { position: relative; display: block; min-width: 0; --cat: var(--s1); }
ezra-playbook-card[data-mode="day"], .ez-pb-sheet[data-mode="day"] { --cat: var(--s6); }
ezra-playbook-card[data-mode="swing"], .ez-pb-sheet[data-mode="swing"] { --cat: var(--s5); }
ezra-playbook-card[data-mode="invest"], .ez-pb-sheet[data-mode="invest"] { --cat: var(--s4); }

.ez-pb-card {
  isolation: isolate; gap: 6px; width: 100%; height: 100%; padding: 14px; overflow: hidden;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* pointer spotlight (--mx / --my set by the card on pointermove) */
.ez-pb-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity var(--dur) var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), var(--p2), transparent 70%);
}
@media (hover: hover) {   /* the lift follows the host, so the "⋯" (a sibling of the card) rises with it */
  ezra-playbook-card:hover .ez-pb-card { transform: translateY(-2px); border-color: var(--border2); box-shadow: var(--shadow); }
  ezra-playbook-card:hover .ez-pb-glow { opacity: 1; }
}
.ez-pb-card:focus-visible .ez-pb-glow { opacity: 1; }
ezra-playbook-card.is-open .ez-pb-card { border-color: var(--p3); }

.ez-pb-top { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
/* 32px icon tile (ezra-playbook-card.js); not the inline .ez-pb-ico badge icon in ezra-interact.css */
.ez-pb-tile {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--r-sm);
  background: var(--bg3); color: var(--p-text);
  background: color-mix(in oklab, var(--cat) 14%, transparent);
  color: color-mix(in oklab, var(--cat) 68%, var(--bright));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cat) 22%, transparent);
}
.ez-pb-modetag { display: none; font-size: var(--fs-caption); font-weight: 600; color: var(--muted); }
ezra-playbook-card[data-show-mode] .ez-pb-modetag { display: inline; }
.ez-pb-flags { display: inline-flex; gap: var(--sp-1); flex: none; }
.ez-pb-flag { height: 18px; padding: 0 var(--sp-2); border-radius: var(--r-full); font-size: var(--fs-11); font-weight: 700; line-height: 18px; letter-spacing: .03em; text-transform: uppercase; }
.ez-pb-flag.is-new { background: var(--p2); color: var(--p-text); }
.ez-pb-flag.is-popular { background: var(--amber-wash); color: var(--text); }
.ez-pb-est { margin-left: auto; font-size: var(--fs-caption); color: var(--faint); white-space: nowrap; transition: opacity var(--dur-fast) var(--ease); }
.ez-pb-title { margin-top: var(--sp-1); font-size: var(--fs-15); font-weight: 600; line-height: var(--lh-snug); letter-spacing: -.005em; color: var(--bright); }
.ez-pb-outcome {
  font-size: var(--fs-13); line-height: var(--lh-snug); color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ez-pb-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) 6px; margin-top: auto; padding-top: 6px; min-width: 0;
  font-size: var(--fs-caption); color: var(--faint);
}
.ez-pb-srcs { display: inline-flex; flex-wrap: wrap; gap: var(--sp-1); min-width: 0; }   /* .ez-chip.is-neutral */
.ez-pb-runs { white-space: nowrap; }
.ez-pb-go {
  display: inline-flex; align-items: center; gap: var(--sp-1); margin-left: auto; color: var(--p-text);
  font: 600 var(--fs-12) var(--sans); white-space: nowrap; opacity: 0; transform: translateX(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ez-pb-card:hover .ez-pb-go, .ez-pb-card:focus-visible .ez-pb-go, ezra-playbook-card.is-open .ez-pb-go { opacity: 1; transform: none; }
@media (hover: none) { .ez-pb-go { opacity: 1; transform: none; } }

/* ── featured card ────────────────────────────────────────────────────────── */
.ez-pb-card.is-featured { gap: 12px; padding: 16px; }
.ez-pbf-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.is-featured .ez-pb-tile { width: 36px; height: 36px; border-radius: var(--r-sm); }
.is-featured .ez-pb-title { font-size: var(--fs-17); }
.ez-pbf-preview {
  position: relative; flex: 1; min-height: 150px; display: flex; flex-direction: column; gap: 8px; padding: 12px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden;
}
.ez-pbf-head { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-caption); color: var(--muted); }
ezra-playbook-card:not(.has-live) .ez-pbf-head { display: none; }
.ez-pbf-head-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ez-pbf-asof { margin-left: auto; color: var(--faint); white-space: nowrap; }
.ez-pbf-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ez-pbf-cap { position: absolute; left: 12px; bottom: 10px; font-size: var(--fs-caption); color: var(--muted); }
.ez-pbf-cap:empty { display: none; }
/* new data: a still inner ring that fades out */
ezra-playbook-card.is-fresh .ez-pbf-preview::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--p3); pointer-events: none;
  animation: ez-pb-fresh 1.2s var(--ease) both;
}
@keyframes ez-pb-fresh { to { opacity: 0; } }

/* decorative art (no preview data): category-hue mesh + icon glyphs; nothing that reads as data */
.ez-pbf-art { position: relative; flex: 1; min-height: 120px; display: grid; place-items: center; overflow: hidden; margin: -12px; }
.ez-pbf-art-mesh {
  position: absolute; inset: -10%;
  background:
    radial-gradient(45% 60% at 18% 28%, color-mix(in oklab, var(--cat) 24%, transparent), transparent 70%),
    radial-gradient(50% 60% at 82% 72%, var(--p2), transparent 70%),
    radial-gradient(35% 45% at 62% 18%, color-mix(in oklab, var(--cat) 12%, transparent), transparent 70%);
}
.ez-pbf-art-glyphs {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; place-items: center;
  color: var(--p-text); color: color-mix(in oklab, var(--cat) 60%, var(--bright)); opacity: .16;
  -webkit-mask-image: radial-gradient(closest-side, black 25%, transparent);
  mask-image: radial-gradient(closest-side, black 25%, transparent);
}
.ez-pbf-art-glyphs svg:nth-child(even) { transform: rotate(-10deg) scale(.82); }
.ez-pbf-art-tile {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--r-lg);
  background: var(--card); color: var(--p-text); color: color-mix(in oklab, var(--cat) 70%, var(--bright));
  border: 1px solid var(--border2); border-color: color-mix(in oklab, var(--cat) 30%, transparent); box-shadow: var(--shadow);
}

/* featured charts (HTML marks: 4px rounded data end, square at the baseline, thin bars) */
.ez-pbf-viz { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.ez-pbf-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-caption); color: var(--muted); }
.ez-pbf-key { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ez-pbf-key b { color: var(--text); font-weight: 600; }
.ez-pbf-key-t { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.ez-pbf-sw { display: inline-block; width: 10px; height: 8px; border-radius: 2px; }
.ez-pbf-sw.is-line { width: 14px; height: 0; border-radius: 0; }
.ez-pbf-track { position: relative; display: block; height: 10px; }
.ez-pbf-bar { position: absolute; top: 0; bottom: 0; }
.ez-pbf-bar.is-r { border-radius: 0 4px 4px 0; }
.ez-pbf-bar.is-l { border-radius: 4px 0 0 4px; }

.ez-pbf-ladder { position: relative; flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(var(--n, 6), minmax(16px, 1fr)); }
.ez-pbf-ladder::before {   /* zero axis, centred in the bar column */
  content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--axis);
  left: calc(60px + (100% - 136px) / 2);
}
.ez-pbf-lrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 68px; align-items: center; gap: 8px; }
.ez-pbf-k { font-size: var(--fs-caption); color: var(--muted); text-align: right; }
.ez-pbf-wall { font-size: var(--fs-caption); font-weight: 600; color: var(--text); white-space: nowrap; }
.ez-pbf-lrow:hover .ez-pbf-k { color: var(--bright); }
.ez-pbf-spot { position: absolute; left: 60px; right: 76px; height: 0; pointer-events: none; }

.ez-pbf-viz.is-rows { justify-content: center; gap: 0; }
.ez-pbf-row { display: grid; align-items: center; gap: 10px; min-height: 34px; font-size: var(--fs-13); border-top: 1px solid var(--border); }
.ez-pbf-row:first-child { border-top: 0; }
.is-flow .ez-pbf-row { grid-template-columns: 56px 44px minmax(0, 1fr) auto; }
.is-regime .ez-pbf-row { grid-template-columns: 56px minmax(0, 1fr) 40px auto; }
.is-movers .ez-pbf-row { grid-template-columns: 56px minmax(0, 1fr) 64px; }
.is-movers .ez-pbf-track::before { content: ''; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 1px; background: var(--axis); }
.ez-pbf-track.is-score { background: var(--bg4); border-radius: 4px; }
.ez-pbf-sym { font-family: var(--mono); font-weight: 700; color: var(--bright); }
.ez-pbf-side { justify-self: start; padding: 1px 6px; border-radius: var(--r-xs); font-size: var(--fs-11); font-weight: 700; }
.ez-pbf-side.is-call { background: var(--bull-wash); color: var(--bull-text); }
.ez-pbf-side.is-put { background: var(--bear-wash); color: var(--bear-text); }
.ez-pbf-val { font-weight: 600; text-align: right; color: var(--text); }
.ez-pbf-val.is-call, .ez-pbf-val.is-bull { color: var(--bull-text); }
.ez-pbf-val.is-put, .ez-pbf-val.is-bear { color: var(--bear-text); }
.ez-pbf-time { font-size: var(--fs-caption); color: var(--faint); text-align: right; }
/* regime label in a featured row: an .ez-chip, clipped to its column */
.ez-pbf-row > .ez-chip { display: block; max-width: 90px; overflow: hidden; text-overflow: ellipsis; line-height: 22px; }

.ez-pbf-big { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-label); color: var(--muted); }
.ez-pbf-big b { font-size: var(--fs-28); font-weight: 700; letter-spacing: -.02em; color: var(--bright); }
.ez-pbf-big b.ez-num { font-family: var(--sans); font-variant-numeric: normal; }   /* proportional figures for a hero number */
.ez-pbf-big b.is-bull { color: var(--bull-text); }
.ez-pbf-big b.is-bear { color: var(--bear-text); }
.ez-pbf-area { display: block; flex: 1; min-height: 60px; }
.ez-pbf-area svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ez-pbf-viz.is-zones { justify-content: center; gap: 10px; }
.ez-pbf-segbar { display: flex; gap: 2px; height: 14px; }
.ez-pbf-seg { display: block; min-width: 4px; }
.ez-pbf-seg:first-child { border-radius: 4px 0 0 4px; }
.ez-pbf-seg:last-child { border-radius: 0 4px 4px 0; }
.ez-pbf-seg:only-child { border-radius: 4px; }

/* ── Market now (compact 3-up): .ez-card shells ──────────────────────────── */
.ez-home-now { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.ez-home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@container ezhome (min-width: 560px) {
  .ez-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ez-home-card.is-movers { grid-column: 1 / -1; }
}
@container ezhome (min-width: 880px) {
  .ez-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ez-home-card.is-movers { grid-column: auto; }
}
.ez-home-card { gap: 6px; padding: var(--sp-3) var(--sp-3) var(--sp-2); }
.ez-home-card > .ez-empty-state { padding: var(--sp-3) var(--sp-1); }   /* compact, so the row doesn't jump when data arrives */
.ez-home-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); padding: 0 var(--sp-1); }
.ez-home-card-sub { font-size: var(--fs-caption); color: var(--faint); }
.ez-home-card > .ez-skel-lines { padding: var(--sp-1); }
.ez-home-list { display: flex; flex-direction: column; }
.ez-home-row {
  display: grid; align-items: center; gap: var(--sp-2); width: 100%; min-height: 34px; padding: 6px var(--sp-1);
  background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; color: var(--text);
  font: inherit; font-size: var(--fs-label); text-align: left; cursor: pointer; transition: background var(--dur) var(--ease);
}
.ez-home-row:first-child { border-top: 0; }
.ez-home-row:hover { background: var(--bg3); }
.is-flow .ez-home-row { grid-template-columns: 52px 18px minmax(0, 1fr) auto; }
/* Gamma map: one grid (rows and the label header share its columns through subgrid), labels never wrap */
.is-gex .ez-home-list { display: grid; grid-template-columns: max-content max-content repeat(3, minmax(0, 1fr)); column-gap: var(--sp-2); }
.is-gex .ez-home-row, .ez-home-thead { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: var(--sp-2); }
.ez-home-thead { align-items: end; padding: 0 var(--sp-1) var(--sp-1); font-size: var(--fs-caption); font-weight: 600; color: var(--faint); }
.ez-home-thead > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ez-home-thead > .is-num { text-align: right; }
.is-movers .ez-home-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
.ez-home-sym { font-family: var(--mono); font-weight: 700; font-size: var(--fs-13); color: var(--bright); letter-spacing: .01em; }
.ez-home-side {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--r-xs);
  font-family: var(--mono); font-size: var(--fs-caption); font-weight: 700;
}
.ez-home-side.is-call { background: var(--bull-wash); color: var(--bull-text); }
.ez-home-side.is-put { background: var(--bear-wash); color: var(--bear-text); }
.ez-home-contract { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ez-home-prem { font-weight: 600; text-align: right; }
.ez-home-prem.is-call, .ez-home-chg.is-bull { color: var(--bull-text); }
.ez-home-prem.is-put, .ez-home-chg.is-bear { color: var(--bear-text); }
.ez-home-chg.is-flat { color: var(--muted); }
.is-movers .ez-home-chg { font-weight: 600; text-align: right; }
.ez-home-note { color: var(--faint); font-size: var(--fs-caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ez-home-regime { font-size: var(--fs-caption); font-weight: 600; padding: 2px 6px; border-radius: var(--r-xs); white-space: nowrap; }
.ez-home-regime.is-positive { background: var(--bull-wash); color: var(--bull-text); }
.ez-home-regime.is-negative { background: var(--bear-wash); color: var(--bear-text); }
.ez-home-regime.is-flat { background: var(--bg4); color: var(--muted); }
.ez-home-lvl { min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ez-home-lvl.is-missing { color: var(--faint); }   /* "—": the reason is on hover */

/* fallback prompt pills (.ez-toggle; no playbooks) */
.ez-home-prompts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* narrow home: title + See all, then search, then the tabs on the hairline */
@container ezhome (max-width: 639px) {
  .ez-pb-gallery-head { gap: var(--sp-2) var(--sp-3); }
  .ez-pb-browse { order: 1; margin-left: auto; }
  .ez-pb-search { order: 2; flex: 1 1 100%; margin-left: 0; }
  .ez-pb-search-in { width: 100%; }
  .ez-pb-tabrow { order: 3; flex: 1 1 100%; }
  .ez-pb-tabs { flex: 1 1 auto; }
  .ez-pb-tab { flex: 1 0 auto; }
  .ez-pbf-preview { min-height: 140px; }
}
@media (max-width: 720px) {
  .ez-home { gap: var(--sp-4); padding-top: var(--sp-1); }
  .ez-home-strip-frame { margin: 0 calc(-1 * var(--sp-3)); border-radius: 0; border-left: 0; border-right: 0; }
  .ez-home-mood { padding: var(--sp-3); }
  .ez-home-mood-line { font-size: var(--fs-15); }
  .ez-home-list > .ez-home-row:nth-child(n+5) { display: none; }
}

/* ── run sheet (lib/playbooks.js openPlaybookSheet) ───────────────────────── */
/* inline below the card's row = .ez-card.is-inline (with a caret); modal / phone = .ez-sheet.is-modal */
.ez-pb-sheet {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); min-width: 0;
  color: var(--text); font-family: var(--sans); outline: none;
}
.ez-pb-sheet.is-inline { grid-column: 1 / -1; margin-top: 2px; animation: ez-rise var(--dur) var(--ease); }
.ez-pb-sheet.is-inline::before {
  content: ''; position: absolute; top: -7px; left: calc(var(--ez-pb-caret, 48px) - 6px); width: 12px; height: 12px;
  background: var(--card); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg);
}
.ez-pb-sheet.is-modal {
  position: fixed; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); overflow: auto;
  opacity: 0; transform: translate(-50%, -47%); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ez-pb-sheet.is-modal.is-in { opacity: 1; transform: translate(-50%, -50%); }
.ez-pb-sheet > .ez-sheet-grab { margin: calc(-1 * var(--sp-2)) auto 0; }
.ez-pb-scrim { position: fixed; inset: 0; z-index: calc(var(--z-modal) - 10); background: var(--overlay); opacity: 0; transition: opacity var(--dur) var(--ease); }
.ez-pb-scrim.is-in { opacity: 1; }

.ez-pb-sheet-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: start; gap: var(--sp-3); }
.ez-pb-sheet-head .ez-pb-learn { margin-right: calc(-1 * var(--sp-2)); }   /* "Learn more" (lib/help.js learnLink) */
.ez-pb-sheet-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--p2); color: var(--p-text);
  background: color-mix(in oklab, var(--cat, var(--p)) 14%, transparent);
  color: color-mix(in oklab, var(--cat, var(--p)) 68%, var(--bright));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cat, var(--p)) 22%, transparent);
}
.ez-pb-sheet-title { margin: 0; font-size: var(--fs-17); font-weight: 600; --ez-h: var(--bright); }
.ez-pb-sheet-sub { margin: var(--sp-1) 0 0; font-size: var(--fs-13); line-height: var(--lh-snug); color: var(--muted); }
.ez-pb-sheet-mode { align-self: center; }   /* .ez-chip.is-neutral */

.ez-pb-fields { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }
.ez-pb-field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ez-pb-tkwrap { position: relative; display: flex; align-items: center; }
.ez-pb-dollar, .ez-pbx-dollar { position: absolute; left: var(--sp-3); font: 600 var(--fs-label) var(--mono); color: var(--faint); pointer-events: none; }
/* ticker fields: .ez-input + room for the "$" and ticker type */
.ez-pb-input { width: 150px; }
.ez-pb-input, .ez-pbx-in.is-ticker {
  padding-left: var(--sp-6); color: var(--bright); font-family: var(--mono); font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.ez-pb-input::placeholder, .ez-pbx-in.is-ticker::placeholder { font-weight: 500; }
.ez-pb-hint { font-size: var(--fs-caption); color: var(--faint); }
.ez-pb-choices { display: flex; flex-wrap: wrap; gap: var(--sp-2); }   /* .ez-toggle radios */

.ez-pb-prompt-wrap { display: flex; flex-direction: column; gap: var(--sp-2); }
.ez-pb-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.ez-pb-prompt, .ez-pbx-prompt, .ez-pbx-in { width: 100%; }   /* .ez-input(.is-multiline) */
.ez-pb-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
.ez-pb-note { flex: 1 1 160px; font-size: var(--fs-caption); color: var(--faint); }

/* phone: bottom sheet (.ez-sheet sets the top radius) */
@media (max-width: 720px) {
  .ez-pb-sheet.is-modal {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 88vh; max-height: 88dvh;
    padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom));
    opacity: 1; transform: translateY(100%); transition: transform var(--dur-slow) var(--ease);
  }
  .ez-pb-sheet.is-modal.is-in { transform: none; }
  .ez-pb-sheet-head { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .ez-pb-sheet-mode { display: none; }
  .ez-pb-input { width: 100%; }
  .ez-pb-field.is-ticker { flex: 1 1 100%; }
  .ez-pb-actions .ez-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ez-strip-item, .ez-home-row, .ez-pb-tab, .ez-pb-tab::after,
  .ez-pb-card, .ez-pb-glow, .ez-pb-go { transition: none; }
  .ez-pb-glow { display: none; }   /* no pointer-following light */
  .ez-pb-go { transform: none; }
  .ez-pb-grid.is-all > ezra-playbook-card.is-extra, .ez-pb-sheet.is-inline { animation: none; }
  ezra-playbook-card.is-fresh .ez-pbf-preview::after { display: none; }
  .ez-pb-sheet.is-modal, .ez-pb-scrim { transition: none; }
  .ez-home-mood::before { transition: none; }
}

/* ═══ Member playbooks: Mine tab, cards, ⋯ menu, Undo, empty state, "Describe it" creator ═══════════════ */
/* card host: the "⋯" (.ez-iconbtn.is-sm) sits on the card's top-right corner */
.ez-pbm-more {
  position: absolute; top: 10px; right: 10px; z-index: var(--z-local-3);
  transition: opacity var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
@media (hover: hover) {
  ezra-playbook-card .ez-pbm-more { opacity: 0; }
  ezra-playbook-card:is(:hover, :focus-within, .has-menu) .ez-pbm-more { opacity: 1; }
  ezra-playbook-card:not([data-mine]):is(:hover, :focus-within, .has-menu) .ez-pb-est { opacity: 0; }
  ezra-playbook-card .ez-pbm-more { transition: opacity var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur) var(--ease); }
  ezra-playbook-card:hover .ez-pbm-more { transform: translateY(-2px); }
}
@media (hover: none) { ezra-playbook-card:not([data-mine]) .ez-pb-top { padding-right: 30px; } }
/* the ⋯ menu is .ez-menu[role=menu] > .ez-mi (+ .ez-menu-sep, .ez-kbd), placed by floatTo */
.ez-pbm-menu .ez-kbd { margin-left: auto; }

/* a member's own card (compact, tinted from its icon via --cat) */
.ez-pb-card.is-mine {
  background: var(--card);
  background: linear-gradient(180deg, color-mix(in oklab, var(--cat) 7%, var(--card)), var(--card) 62%);
}
.ez-pb-card.is-mine .ez-pb-top { padding-right: 30px; }
.ez-pb-card.is-mine:focus-within .ez-pb-glow { opacity: 1; }
.ez-pb-flag.is-mine { background: var(--p2); color: var(--p-text);
  background: color-mix(in oklab, var(--cat) 16%, transparent); color: color-mix(in oklab, var(--cat) 70%, var(--bright)); }
.ez-pbm-pin { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--muted); }
.ez-pbm-pin svg { width: 13px; height: 13px; }
.ez-pbm-titlewrap { min-width: 0; }
.ez-pbm-open {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.ez-pbm-open::after { content: ''; position: absolute; inset: 0; z-index: var(--z-local-1); border-radius: var(--hr, var(--r)); }   /* the whole card opens it */
.ez-pbm-open:focus-visible { outline: none; }
.ez-pbm-open:focus-visible::after { outline: 2px solid var(--ring); outline-offset: -2px; }   /* inset: the card clips overflow */
.ez-pbm-tname {
  position: relative; z-index: var(--z-local-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* inline rename: .ez-input at the title's size */
.ez-pbm-rename { position: relative; z-index: var(--z-local-3); width: 100%; margin-top: 2px; font-size: var(--fs-15); font-weight: 600; color: var(--bright); }
.ez-pbm-dock {
  position: relative; z-index: var(--z-local-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-2); margin-top: auto; padding-top: var(--sp-2);
  min-width: 0; pointer-events: none;   /* gaps still open the card; the ticker field takes clicks */
}
.ez-pbm-run {
  pointer-events: auto; display: inline-flex; align-items: center; height: 28px; overflow: hidden;
  border: 1px solid var(--border2); border-radius: var(--r-sm); background: var(--card-2);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.ez-pbm-run:hover { border-color: var(--p3); }
.ez-pbm-run:focus-within { border-color: var(--ring); box-shadow: var(--focus-halo); }
.ez-pbm-dollar { padding-left: var(--sp-2); font: 600 var(--fs-12) var(--mono); color: var(--faint); }
.ez-pbm-tk {
  width: 62px; height: 26px; padding: 0 2px 0 var(--sp-1); border: 0; background: none; color: var(--bright);
  font: 700 var(--fs-13) var(--mono); letter-spacing: .02em; text-transform: uppercase; outline: none;
}
.ez-pbm-tk::placeholder { color: var(--faint); font-weight: 500; }
/* .ez-iconbtn set into the run field */
.ezra-root .ez-pbm-go { width: 26px; height: 26px; min-width: 0; min-height: 0; border: 0; border-left: 1px solid var(--border); border-radius: 0; }
.ezra-root .ez-pbm-go:hover { background: var(--p1); color: var(--p-text); }
.ez-pbm-go:focus-visible { outline-offset: -2px; }   /* the run field clips overflow */
.ez-pbm-stats { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: var(--fs-caption); color: var(--faint); white-space: nowrap; }
.ez-pbm-dots { display: inline-flex; gap: var(--sp-1); }
.ez-pbm-dots i { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--bg4); }
.ez-pbm-dots i.is-on { background: var(--p); background: var(--cat); }
.ez-pbm-err { position: relative; z-index: var(--z-local-2); margin-top: 2px; }

/* inline run: a brief "Running…" sweep (the skeleton's ez-sweep keyframe, tinted with --cat) */
.ez-pbm-shimmer {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transform: translateX(-100%);
  transition: opacity var(--dur) var(--ease);
  background: linear-gradient(90deg, transparent, var(--p1), transparent);
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--cat) 20%, transparent), transparent);
}
.ez-pb-card.is-running { border-color: var(--p3); border-color: color-mix(in oklab, var(--cat) 50%, var(--border)); }
.ez-pb-card.is-running .ez-pbm-shimmer { opacity: 1; animation: ez-sweep 1.1s linear infinite; }
.ez-pb-card.is-running .ez-pbm-stat-t { color: var(--p-text); }

/* a new / restored / duplicated card settles into the grid */
ezra-playbook-card.is-settle { animation: ez-rise var(--dur-slow) var(--ease) both; }
/* on the host: the card clips overflow */
ezra-playbook-card.is-settle::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--hr, var(--r)); box-shadow: 0 0 0 4px var(--p2); pointer-events: none;
  animation: ez-pbm-ring var(--dur-slow) var(--ease) var(--dur-fast) both;
}
@keyframes ez-pbm-ring { from { opacity: 1; } to { opacity: 0; } }

/* "+ New" card (first in Mine) */
/* .ez-btn grown into a dashed, card-sized tile */
.ezra-root .ez-pbm-new {
  display: flex; flex-direction: column; gap: 6px; height: auto; min-height: 150px; padding: 14px;
  border: 1px dashed var(--border2); border-radius: var(--hr, var(--r)); background: none; color: var(--muted);
  font: inherit; text-align: center; white-space: normal;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ez-pbm-new-ico {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); background: var(--p2); color: var(--p-text);
  transition: transform var(--dur) var(--ease);
}
.ez-pbm-new-t { font-size: var(--fs-15); font-weight: 600; color: var(--bright); }
.ez-pbm-new-s { font-size: var(--fs-caption); color: var(--faint); }
.ezra-root .ez-pbm-new:hover { border-color: var(--p3); background: var(--p1); color: var(--text); }
.ez-pbm-new:hover .ez-pbm-new-ico { transform: rotate(90deg); }

/* Undo tile (in the deleted card's place): .ez-card.is-flat + .ez-btn.is-sm + the toast countdown bar
 * (.ez-toast-count, keyframe ez-count, --ez-count-ms). Held = the bar hides; it restarts with the timer. */
.ez-pbm-undo {
  overflow: hidden; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 96px; padding: 14px; font-size: var(--fs-13); color: var(--text); text-align: center;
  animation: ez-rise var(--dur) var(--ease) both;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ez-pbm-undo.is-out { opacity: 0; transform: scale(.97); }
.ez-pbm-undo-ico { display: grid; color: var(--muted); }
.ez-pbm-undo-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.ez-pbm-undo.is-held .ez-toast-count { animation: none; opacity: 0; }

/* empty Mine: .ez-empty-state in a dashed, lightly lit box */
.ez-pbm-empty {
  grid-column: 1 / -1; border: 1px dashed var(--border2); border-radius: var(--hr, var(--r)); background: var(--card);
  background: radial-gradient(60% 90% at 50% 0%, var(--p1), transparent 70%), var(--card);
  animation: ez-rise var(--dur) var(--ease) both;
}
.ez-pbm-art svg { display: block; }
.ez-art-c1 { fill: var(--card-2); stroke: var(--border2); }
.ez-art-c2 { fill: var(--card-2); stroke: var(--border); fill: color-mix(in oklab, var(--s6) 14%, var(--card)); stroke: color-mix(in oklab, var(--s6) 35%, transparent); }
.ez-art-c3 { fill: var(--card-2); stroke: var(--border); fill: color-mix(in oklab, var(--s5) 12%, var(--card)); stroke: color-mix(in oklab, var(--s5) 32%, transparent); }
.ez-art-tile { fill: var(--p2); }
.ez-art-glyph { fill: none; stroke: var(--p-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ez-art-ln { stroke: var(--border2); stroke-width: 5; stroke-linecap: round; }
.ez-art-ln.is-faint { stroke: var(--bg4); }
.ez-art-pill { fill: var(--p2); fill: color-mix(in oklab, var(--s3) 35%, transparent); }
.ez-art-spark { fill: var(--p); }
.ez-pbm-empty-h { margin: 0; font-size: var(--fs-17); font-weight: 600; letter-spacing: -.01em; --ez-h: var(--bright); }
.ez-pbm-empty-p { font-size: var(--fs-14); line-height: var(--lh-normal); }
.ez-pbm-empty > .ez-pbm-empty-k { margin-top: var(--sp-2); }   /* .ez-eyebrow */
.ez-pbm-starters { display: flex; flex-direction: column; gap: 6px; width: min(480px, 100%); }
.ez-pbm-starter {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--card); color: var(--text); font: 500 var(--fs-14)/var(--lh-snug) var(--sans); text-align: left; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.ez-pbm-starter:hover { border-color: var(--p3); background: var(--bg3); }
.ez-pbm-starter-ico {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: var(--r-sm); background: var(--p2); color: var(--p-text);
  background: color-mix(in oklab, var(--cat) 14%, transparent); color: color-mix(in oklab, var(--cat) 68%, var(--bright));
}
.ez-pbm-starter-t { flex: 1; min-width: 0; }
.ez-pbm-starter-go { color: var(--faint); transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.ez-pbm-starter:hover .ez-pbm-starter-go { color: var(--p-text); transform: translateX(3px); }

/* ── "Describe it" creator: .ez-sheet (dialog on desktop, bottom sheet on a phone) ── */
.ez-pbx {
  position: fixed; left: 50%; top: 50%; width: min(880px, calc(100vw - 32px));
  font-family: var(--sans); outline: none;
  opacity: 0; transform: translate(-50%, -48%) scale(.985); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ez-pbx.is-in { opacity: 1; transform: translate(-50%, -50%); }
.ez-pbx-head { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5) 0; }
.ez-pbx-titles { flex: 1; min-width: 0; }
.ez-pbx-h { margin: 0; font-size: var(--fs-17); font-weight: 600; letter-spacing: -.01em; --ez-h: var(--bright); }
.ez-pbx-subh { margin: var(--sp-1) 0 0; font-size: var(--fs-13); color: var(--muted); }
.ez-pbx-body { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--sp-5); padding: var(--sp-4) var(--sp-5); }
.ez-pbx-main { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ez-pbx-qlabel { font-size: var(--fs-15); font-weight: 600; color: var(--bright); }
.ez-pbx-qwrap { position: relative; }
/* the one big field: .ez-input.is-multiline at the hero size; the rotating example sits on its first line */
.ez-input.ez-pbx-q { width: 100%; min-height: 104px; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-17); color: var(--bright); }
.ez-pbx-example {
  position: absolute; left: calc(var(--sp-4) + 1px); right: var(--sp-4); top: calc(var(--sp-3) + 1px); pointer-events: none; color: var(--faint);
  font: 400 var(--fs-17)/var(--lh-snug) var(--sans); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ez-pbx-example.is-out { opacity: 0; transform: translateY(-4px); }
.ez-pbx-hint { margin: 0; font-size: var(--fs-caption); line-height: var(--lh-snug); color: var(--faint); }
.ez-pbx-hint.is-warn {   /* "No ticker found": a calm warning, same size as the hint */
  padding: 6px 10px; border-left: 2px solid var(--amber); border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: var(--amber-wash); color: var(--amber-text);
}
.ez-pbx-restored { margin: 0; font-size: var(--fs-13); color: var(--muted); }
.ez-pbx-advbtn { align-self: flex-start; margin: var(--sp-1) 0 0 calc(-1 * var(--sp-3)); }   /* .ez-btn.is-ghost, text on the field's edge */
.ez-pbx-chev { display: grid; transition: transform var(--dur) var(--ease); }
.ez-pbx-advbtn[aria-expanded="true"] .ez-pbx-chev { transform: rotate(180deg); }
.ez-pbx-adv {
  display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r);
  background: var(--card-2); animation: ez-rise var(--dur) var(--ease);
}
.ez-pbx-row { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: var(--sp-3); }
.ez-pbx-field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ez-pbx-fhead { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.ez-pbx-sub { font-size: var(--fs-caption); color: var(--faint); }
.ez-pbx-tkwrap { position: relative; display: flex; align-items: center; }
.ez-pbx-seg { align-self: flex-start; }   /* .ez-seg radios */
.ez-pbx-icons { display: grid; grid-template-columns: repeat(6, 40px); gap: 6px; }
/* .ez-iconbtn, boxed so the picker reads as a set of options */
.ezra-root .ez-pbx-iconb { width: var(--ctl-h-lg); height: var(--ctl-h-lg); border-color: var(--border); border-radius: var(--r-sm); background: var(--card); }
.ezra-root .ez-pbx-iconb:hover { background: var(--card); color: var(--bright); border-color: var(--border2); }
.ezra-root .ez-pbx-iconb[aria-checked="true"] {
  background: var(--p2); border-color: var(--p3); color: var(--p-text);
  background: color-mix(in oklab, var(--cat) 16%, transparent); border-color: color-mix(in oklab, var(--cat) 50%, transparent);
  color: color-mix(in oklab, var(--cat) 70%, var(--bright));
}
.ez-pbx-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }   /* .ez-btn.is-dashed.is-sm "Insert {x}" */
.ez-pbx-chip-k { font-weight: 500; color: var(--faint); }

/* the live card (.ez-card, tinted from the chosen icon) */
.ez-pbx-live { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ez-pbx-live-k { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; }   /* .ez-eyebrow + .ez-dot */
.ez-pbx-card {
  --cat: var(--s1);
  gap: var(--sp-2); min-height: 210px; padding: var(--sp-4);
  border-color: var(--border2); border-color: color-mix(in oklab, var(--cat) 34%, var(--border));
  background: var(--card); background: radial-gradient(120% 80% at 0% 0%, color-mix(in oklab, var(--cat) 14%, transparent), transparent 62%), var(--card);
  transition: border-color var(--dur) var(--ease);
}
.ez-pbx-ltop { display: flex; align-items: center; gap: var(--sp-2); }
.ez-pbx-ico {
  position: relative; width: 38px; height: 38px; flex: none; border-radius: var(--r); background: var(--p2); color: var(--p-text);
  background: color-mix(in oklab, var(--cat) 15%, transparent); color: color-mix(in oklab, var(--cat) 68%, var(--bright));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cat) 24%, transparent); transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ez-pbx-ico-l { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.7) rotate(-10deg); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.ez-pbx-ico-l.is-front { opacity: 1; transform: none; }
.ez-pbx-ltitlewrap { min-height: 42px; }
.ez-pbx-ltitle { font-size: var(--fs-17); font-weight: 600; line-height: var(--lh-snug); letter-spacing: -.005em; color: var(--bright); overflow-wrap: anywhere; }
.ez-pbx-ltitle.is-empty { color: var(--faint); }
.ez-pbx-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--p); opacity: 0; transition: opacity var(--dur-fast); }
.ez-pbx-card.is-typing .ez-pbx-caret { opacity: 1; }
.ez-pbx-lmodes { display: flex; gap: var(--sp-1); }
.ez-pbx-lmode {
  height: 22px; padding: 0 var(--sp-2); border: 1px solid var(--border); border-radius: var(--r-full); font-size: var(--fs-11); font-weight: 600; line-height: 20px; color: var(--faint);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ez-pbx-lmode.is-on {
  background: var(--p2); border-color: var(--p3); color: var(--bright);
  background: color-mix(in oklab, var(--cat) 16%, transparent); border-color: color-mix(in oklab, var(--cat) 45%, transparent);
}
.ez-pbx-tkpill { align-self: flex-start; max-width: 100%; animation: ez-rise var(--dur) var(--ease) both; }   /* .ez-chip.is-neutral */
.ez-pbx-tkpill code { font: 600 var(--fs-12) var(--mono); color: var(--p-text); }
.ez-pbx-tkpill b { font: 700 var(--fs-12) var(--mono); color: var(--bright); overflow: hidden; text-overflow: ellipsis; }
.ez-pbx-lout { margin: 0; font-size: var(--fs-13); line-height: var(--lh-snug); color: var(--muted); }
.ez-pbx-ltpl {
  margin: auto 0 0; padding: var(--sp-2) 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card-2);
  font-size: var(--fs-13); line-height: var(--lh-normal); color: var(--muted); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ez-pbx-ph { padding: 0 var(--sp-1); border-radius: var(--r-xs); background: var(--p1); color: var(--p-text); font: 600 var(--fs-12) var(--mono); }

.ez-pbx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5) var(--sp-4); border-top: 1px solid var(--border); }
.ez-pbx-err { flex: 1 1 200px; }

@media (max-width: 1100px) { .ez-pbx-body { grid-template-columns: minmax(0, 1fr) 236px; } }
@container ezhome (max-width: 559px) {
  .ezra-root .ez-pbm-new { flex-direction: row; justify-content: flex-start; min-height: 64px; gap: var(--sp-3); text-align: left; }
  .ez-pbm-new-s { margin-left: auto; }
  .ez-pbm-undo { flex-direction: row; min-height: 56px; justify-content: flex-start; text-align: left; }
  .ez-pbm-undo-t { flex: 1; }
}

/* phone: bottom sheet (.ez-sheet: top radius, grabber, safe-area padding), live card on top (compact),
 * 16px fields (no iOS zoom; .ez-input already does this, the sized fields below say it again) */
@media (max-width: 720px) {
  .ez-pbx {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 92vh; max-height: 92dvh;
    opacity: 1; transform: translateY(100%); transition: transform var(--dur-slow) var(--ease);
  }
  .ez-pbx.is-in { transform: none; }
  .ez-pbx-head { padding: var(--sp-2) var(--sp-4) 0; }
  .ez-pbx-body { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
  .ez-pbx-live { position: static; order: -1; }
  .ez-pbx-live-k { display: none; }
  .ez-pbx-card { min-height: 0; padding: var(--sp-3); gap: var(--sp-2); }
  .ez-pbx-ltitlewrap { min-height: 0; }
  .ez-pbx-ltpl, .ez-pbx-lout { display: none; }
  .ez-input.ez-pbx-q, .ez-pbx-example { font-size: 16px; }
  .ez-input.ez-pbx-q { min-height: 88px; }
  .ez-pbx-row { grid-template-columns: minmax(0, 1fr); }
  .ez-pbx-icons { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ezra-root .ez-pbx-iconb { width: 100%; }
  .ez-pbx-foot { padding: var(--sp-2) var(--sp-4) var(--sp-3); }
  .ez-pbx-foot .ez-btn { flex: 1 1 auto; }
  .ez-pbm-tk { width: 72px; font-size: 16px; }
  .ez-pbm-rename { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ez-pbm-more, .ez-pb-est, .ez-pbm-run, .ez-pbm-go, .ez-pbm-shimmer, .ez-pbm-new, .ez-pbm-new-ico,
  .ez-pbm-undo, .ez-pbm-starter, .ez-pbm-starter-go, .ez-pbx, .ez-pbx-example, .ez-pbx-chev,
  .ez-pbx-iconb, .ez-pbx-card, .ez-pbx-ico, .ez-pbx-ico-l, .ez-pbx-caret, .ez-pbx-lmode { transition: none; }
  .ez-pb-card.is-running .ez-pbm-shimmer { animation: none; opacity: .6; transform: none; }
  ezra-playbook-card.is-settle, .ez-pbm-undo, .ez-pbm-empty, .ez-pbx-adv, .ez-pbx-tkpill { animation: none; }
  ezra-playbook-card.is-settle::after { display: none; }
  .ez-pbx-ico-l { transform: none; }
  .ez-pbx-ico-l:not(.is-front) { opacity: 0; }
  .ez-pbm-new:hover .ez-pbm-new-ico, .ez-pbm-starter:hover .ez-pbm-starter-go { transform: none; }
  .ez-pbx, .ez-pbx.is-in { transform: translate(-50%, -50%); }
  ezra-playbook-card:hover .ez-pb-card, ezra-playbook-card:hover .ez-pbm-more { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 720px) { .ez-pbx, .ez-pbx.is-in { transform: none; } }

/* ── "Get started" checklist (lib/help.js startCard): a small dismissible card under the hero ── */
.ez-start { padding: var(--sp-3) 14px; gap: var(--sp-2); }
.ez-start-head { display: flex; align-items: center; gap: var(--sp-2); }
.ez-start-head .ez-card-title { flex: 1; min-width: 0; }
.ez-start-count { font-size: var(--fs-12); color: var(--muted); font-variant-numeric: tabular-nums; }
.ez-start-list { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: 0; padding: 0; list-style: none; }
.ez-start-item { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 24px; font-size: var(--fs-13); color: var(--text); }
.ez-start-mark {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 18px; height: 18px; border-radius: var(--r-full);
  border: 1px solid var(--border2); color: var(--on-p);
}
.ez-start-mark svg { width: 12px; height: 12px; }
.ez-start-item[data-done="1"] .ez-start-mark { background: var(--p); border-color: var(--p); }
.ez-start-item[data-done="1"] .ez-start-label { color: var(--muted); text-decoration: line-through; }
@media (max-width: 720px) {
  .ez-start-list { flex-direction: column; }
}
