/* Moredac Explore, on shadcn/ui's design language (new-york, neutral dark + blue primary), written as plain CSS:
 * the app has no build step, so the component recipes (Button, Badge, Card, Tabs, Toggle, Sheet, Dialog, Input)
 * are translated from their Tailwind classes into the rules below. Dark by default, light when the visitor picks it
 * (:root[data-theme="light"], at the end). One fixed hue per purpose (--h). One peach accent per view. */
/* ---------- Seed to Bloom: five flowers. The visitor picks one (flowers.js, saved as moredac.flower); every Moredac color
   below reads these. Grounds are the dark soil the flower grows in; --flower-l is its accent on the light theme. ---------- */
:root, :root[data-flower="rose"] {
  --loam: #14110E; --loam-2: #1A1612; --loam-3: #231E19; --soil: #0D0B09; --moss: #2E3B2C; --moss-2: #3E4F3B;
  --petal: #E9B7A6; --petal-2: #F2C9BA; --petal-deep: #C4806C; --petal-light: #F6DACE; --center: #8B5A43; --flower-l: #B4583F; --glow: 255 222 190;
}
:root[data-flower="marigold"] {
  --loam: #15110A; --loam-2: #1C170E; --loam-3: #262013; --soil: #0D0A06; --moss: #3A3A22; --moss-2: #4C4C2D;
  --petal: #F2B657; --petal-2: #F7C979; --petal-deep: #C9772A; --petal-light: #FBE2AE; --center: #6E3E14; --flower-l: #A9650F; --glow: 255 214 150;
}
:root[data-flower="lavender"] {
  --loam: #120F17; --loam-2: #18141F; --loam-3: #211B2A; --soil: #0A080D; --moss: #2C2B3D; --moss-2: #3D3B52;
  --petal: #BFA8EC; --petal-2: #D0BEF3; --petal-deep: #8467C2; --petal-light: #E7DDFB; --center: #4E3A7A; --flower-l: #7656B8; --glow: 225 210 255;
}
:root[data-flower="bluebell"] {
  --loam: #0E1218; --loam-2: #131820; --loam-3: #1A212C; --soil: #080B0F; --moss: #223441; --moss-2: #2F4757;
  --petal: #94BDEB; --petal-2: #B0CFF2; --petal-deep: #4F7FC0; --petal-light: #DCEAFB; --center: #2E4C7A; --flower-l: #3D6DAE; --glow: 205 225 255;
}
:root[data-flower="moonflower"] {
  --loam: #0F1311; --loam-2: #141A17; --loam-3: #1B231F; --soil: #080B09; --moss: #26382E; --moss-2: #34493D;
  --petal: #ECE6D3; --petal-2: #F6F1E2; --petal-deep: #B9B092; --petal-light: #FFFDF4; --center: #B59A4A; --flower-l: #7D6A2A; --glow: 240 238 220;
}
:root { --cream: #F1EADF; --leaf: #86A374; }
:root {
  color-scheme: dark;
  /* Seed to Bloom: the flower's soil for grounds, cream ink, the petal for acting and for where you are */
  --background: var(--loam);
  --foreground: var(--cream);
  --card: var(--loam-2);
  --card-foreground: var(--cream);
  --popover: var(--loam-2);
  --muted: var(--loam-3);
  --muted-foreground: color-mix(in oklch, var(--cream) 70%, var(--loam));
  --secondary: var(--loam-3);
  --accent: var(--loam-3);
  --border: color-mix(in oklch, var(--cream) 13%, var(--loam));
  --input: color-mix(in oklch, var(--foreground) 15%, transparent);
  --ring: var(--petal-2);
  --primary: var(--petal);
  --primary-hover: var(--petal-2);
  --primary-foreground: var(--loam);
  --primary-soft: color-mix(in oklch, var(--primary) 14%, transparent);
  --primary-ring: color-mix(in oklch, var(--primary-hover) 55%, transparent);
  /* one tone everywhere; glass is that same tone, translucent, where content scrolls under it */
  --glass: color-mix(in oklch, var(--loam) 80%, transparent);
  --glass-strong: color-mix(in oklch, var(--loam) 94%, transparent);
  --hover: var(--loam-2);
  --blur: saturate(1.3) blur(16px);
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 4px);
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font-sans: "Mulish", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  /* names symbols.js reads */
  --bg: var(--background); --surface: var(--card); --line: var(--border); --text: var(--foreground); --text2: var(--muted-foreground);

  --sidebar: var(--background); --sidebar-foreground: color-mix(in oklch, var(--cream) 86%, var(--loam)); --sidebar-accent: var(--loam-3);
  --top: 64px; --gut: 24px; --max: 1440px; --sb-w: 256px; --sb-w-icon: 64px;
  /* one fixed stacking scale: a card is isolated, so its pill (2) never rises over the sticky bars */
  --z-link: 1; --z-pill: 2; --z-bar: 15; --z-pop: 16; --z-top: 20; --z-scrim: 40; --z-side: 41; --z-skip: 60; --z-tour: 90; --z-intro: 100;
}
* { box-sizing: border-box; border-color: var(--border); }
html { scroll-padding-top: calc(var(--top) + 64px); overflow-x: clip; background: var(--background); }
body { margin: 0; font: 400 14px/1.5 var(--font-sans); color: var(--foreground); background: var(--background); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--primary); color: var(--primary-foreground); }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; overflow-wrap: break-word; min-width: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* focus-visible:ring-[3px] ring-ring/50 */
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); border-radius: var(--radius-md); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -72px; z-index: var(--z-skip); padding: 8px 16px; border-radius: var(--radius-md); background: var(--primary); color: var(--primary-foreground); font-weight: 500; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- sidebar (shadcn Sidebar, collapsible="icon") ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; z-index: var(--z-side); flex: none; width: var(--sb-w); height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--border);
  transition: width .2s var(--ease); overflow: hidden; }
:root[data-sb="collapsed"] { --sb-w: var(--sb-w-icon); }
.sb-head { flex: none; height: var(--top); display: flex; align-items: center; padding: 0 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; border-radius: var(--radius-md); font-size: 18px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.brand::before { content: ""; width: 24px; height: 24px; border-radius: 7px; flex: none;
  /* The mark: two circles overlapping, the part they share filled in. */
  background: var(--petal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%231a1511' stroke-width='1.8'%3E%3Ccircle cx='9.5' cy='12' r='5.5'/%3E%3Ccircle cx='14.5' cy='12' r='5.5'/%3E%3C/g%3E%3Cpath d='M12 7.1a5.5 5.5 0 0 1 0 9.8a5.5 5.5 0 0 1 0-9.8z' fill='%231a1511'/%3E%3C/svg%3E") center / 20px no-repeat; }
.side { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 12px; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
/* SidebarGroupLabel */
.side .h { height: 32px; display: flex; align-items: flex-end; padding: 0 8px 6px; margin-top: 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); white-space: nowrap; transition: opacity .2s; }
/* SidebarMenuButton */
.side a, .sb-foot .add, .acct { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 8px; border-radius: 10px; color: var(--sidebar-foreground); font-size: 14px; white-space: nowrap; transition: background-color .15s, color .15s; }
.side a > span:last-child, .sb-foot .add > span, .acct .who { overflow: hidden; text-overflow: ellipsis; transition: opacity .2s; }
.side a:hover, .sb-foot .add:hover, .acct:hover { background: var(--sidebar-accent); color: var(--foreground); }
.side a[aria-current], .sb-foot .add[aria-current], .acct[aria-current] { background: var(--sidebar-accent); color: var(--foreground); font-weight: 500; }
.side a[aria-current] svg { color: var(--primary); }
.side svg, .sb-foot svg { width: 18px; height: 18px; flex: none; }
.side .ic { width: 18px; height: 18px; flex: none; display: grid; place-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted-foreground); }
.dot[style] { background: hsl(var(--h) 70% 68%); }
.side a[aria-current] .dot { box-shadow: 0 0 0 3px hsl(var(--h, 0) 70% 68% / .25); }
/* SidebarFooter: Add yours (outline button) + the account (NavUser) */
.sb-foot { flex: none; display: grid; gap: 2px; padding: 12px; }
.sb-foot .add { color: var(--sidebar-foreground); }
.sb-foot .add svg { color: var(--primary); }
.sb-foot button.add { border: 0; background: none; font: inherit; cursor: pointer; width: 100%; text-align: left; }
.sb-foot .add[aria-pressed="true"] { background: var(--sidebar-accent); color: var(--foreground); font-weight: 500; }
#me:empty { display: none; }
.acct { height: 48px; }
.acct .av { width: 32px; height: 32px; border-radius: var(--radius-md); font-size: 12px; }
.acct .who { display: grid; line-height: 1.25; min-width: 0; }
.acct b { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.acct small { font-size: 12px; color: var(--muted-foreground); }
/* collapsed: icons only, labels fade out */
:root[data-sb="collapsed"] .side .h { opacity: 0; height: 12px; margin: 0; }
:root[data-sb="collapsed"] .side a > span:last-child, :root[data-sb="collapsed"] .sb-foot .add > span, :root[data-sb="collapsed"] .acct .who, :root[data-sb="collapsed"] .brand { font-size: 0; }
:root[data-sb="collapsed"] .side a > span:last-child, :root[data-sb="collapsed"] .sb-foot .add > span, :root[data-sb="collapsed"] .acct .who { opacity: 0; width: 0; }
/* Collapsed, every icon sits on one line down the middle of the strip: 12px of edge, then padding that puts the
   icon's centre at 32px whatever its size (18px icons, the 24px mark, the 32px account picture). */
:root[data-sb="collapsed"] .side a, :root[data-sb="collapsed"] .sb-foot .add { padding: 0 11px; gap: 0; }
:root[data-sb="collapsed"] .brand { padding: 0 8px; gap: 0; }
:root[data-sb="collapsed"] .acct { padding: 0 4px; gap: 0; }
.scrim { display: none; }

/* ---------- main area ---------- */
.inset { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: var(--z-top); height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 var(--gut) 0 12px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--border); }
/* SidebarTrigger: ghost icon button */
.trigger, .icon-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-md); color: var(--muted-foreground); transition: background-color .15s, color .15s; }
.trigger:hover, .icon-btn:hover { background: var(--accent); color: var(--foreground); }
.trigger svg, .icon-btn svg { width: 18px; height: 18px; }
/* Help: in the same place on every page */
.help { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--tint-2); color: var(--foreground); font-size: 14px; font-weight: 500; transition: background-color .15s; }
.help:hover { background: var(--primary-soft); }
.help svg { width: 18px; height: 18px; }
/* search: left of the bar, the rest of the row pushed to the right */
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; max-width: 560px; height: 42px; margin: 0 auto 0 0; padding: 0 8px 0 14px; border-radius: 12px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted-foreground);
   transition: box-shadow .15s, background-color .15s; }
.search:hover { background: var(--tint-2); }
.search:focus-within { background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--border), 0 0 0 3px var(--primary-ring); color: var(--foreground); }
/* the pill's own glow shows the box is in use; no ring is drawn around the typing area inside it */
.search input:focus, .search input:focus-visible { outline: none; box-shadow: none; }
.side .surprise { margin-top: 20px; }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; color: var(--foreground); }
.search input::placeholder { color: var(--muted-foreground); opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; cursor: pointer; background: var(--muted-foreground);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.av { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--muted); object-fit: cover; display: inline-grid; place-items: center; font-size: 8px; font-weight: 600; letter-spacing: 0; color: var(--foreground); }
main { min-width: 0; width: 100%; max-width: var(--max); margin: 0 auto; flex: 1; padding: 0 var(--gut) 96px; }

/* bar under the top: kinds (tabs) + topics (tags), sticky */
.bar { position: sticky; top: var(--top); z-index: var(--z-bar); display: flex; align-items: center; gap: 12px; margin: 0 calc(-1 * var(--gut)); padding: 12px var(--gut);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.tags { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-right: 32px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.tags::-webkit-scrollbar { display: none; }
/* Badge outline as a toggle */
.tag { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted-foreground); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .15s, background-color .15s, border-color .15s; }
.tag:hover { color: var(--foreground); background: var(--accent); }
.tag[aria-current] { color: var(--primary-foreground); background: var(--primary); }

/* TabsList (bg-muted, p-[3px], h-9) + TabsTrigger */
.chips { flex: none; display: flex; align-items: center; gap: 2px; padding-right: 8px; }
.tabs { display: inline-flex; align-items: center; gap: 2px; height: 30px; }
.chip { display: inline-flex; align-items: center; justify-content: center; height: 100%; padding: 0 12px; border-radius: 999px; border: 1px solid transparent;
  color: var(--muted-foreground); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .15s, background-color .15s; }
.chip:hover { color: var(--foreground); }
.chip[aria-current] { color: var(--primary-foreground); background: var(--primary); }
/* Button variant=ghost size=icon-sm */
.what { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 0; background: color-mix(in oklch, var(--foreground) 6%, transparent); font-size: 12px !important; margin-left: 4px; color: var(--muted-foreground); font-size: 13px; font-weight: 600; transition: color .15s, background-color .15s; }
.what:hover, .what[aria-expanded="true"] { color: var(--foreground); background: var(--accent); }
/* Popover */
.pop { position: absolute; left: var(--gut); top: calc(100% - 4px); z-index: var(--z-pop); width: min(400px, calc(100% - 2 * var(--gut))); padding: 16px; border-radius: var(--radius-lg); background: var(--popover); box-shadow: inset 0 0 0 1px var(--border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-lg); }
.pop dl { display: grid; gap: 12px; } .pop dt { font-weight: 600; font-size: 14px; } .pop dd { color: var(--muted-foreground); font-size: 13px; margin-top: 2px; }

/* page heading */
.head { padding: 24px 0 16px; }
.head h1 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.head p { margin-top: 4px; color: var(--muted-foreground); font-size: 14px; max-width: 64ch; }

/* ---------- picture tiles (fixed boxes: no layout shift) ---------- */
.ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); display: grid; place-items: center; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s var(--ease); }
.ph .cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph.logo { background: hsl(var(--h, 220) 30% 14%); }
.ph.logo::before { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: hsl(var(--h, 220) 35% 21%); }
.ph.logo img { position: relative; inset: auto; width: 80px; height: 80px; padding: 12px; border-radius: 18px; background: oklch(0.97 0.008 85); object-fit: contain; transition: none; }

/* ---------- buttons ---------- */
/* Button default size=lg */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: var(--radius-md); width: max-content; max-width: 100%;
  background: var(--primary); color: var(--primary-foreground); font-size: 15px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-xs); transition: background-color .15s, transform .15s; }
.btn > svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { cursor: default; }
.btn.off { opacity: .5; }
/* Button default size=sm, floating on the picture */
.pill { position: absolute; z-index: var(--z-pill); right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 15px; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground); font-size: 13px; font-weight: 500; white-space: nowrap; font-weight: 600; box-shadow: 0 2px 10px rgb(0 0 0 / 0.5); transition: background-color .15s, transform .15s; }
.pill::before { content: ""; position: absolute; inset: -7px -4px; }   /* 44px hit target */
.pill:hover { background: var(--primary-hover); }
.pill:active { transform: scale(.96); }
.lbl { display: inline-flex; align-items: center; gap: 4px; transition: opacity 150ms linear; } .lbl.fade { opacity: .15; }
.tick { width: 14px; height: 14px; stroke-width: 3; }
.link { font-size: inherit; color: var(--foreground); text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--foreground) 30%, transparent); text-underline-offset: 4px; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: var(--foreground); }

/* ---------- card (Card: rounded-xl border bg-card shadow-sm) ---------- */
/* three large cards a row; fewer only when the main area itself gets narrow */
#view { container-type: inline-size; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@container (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 680px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.card { position: relative; isolation: isolate; min-width: 0; display: flex; flex-direction: column; }
.card .ph { border-radius: 15px; }
.card:hover .ph img:not(.logo img) { transform: scale(1.03); }

.card .body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 2px 4px; }
.t { font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.t a::after { content: ""; position: absolute; inset: 0; z-index: var(--z-link); border-radius: 22px; }
.t a:focus-visible { box-shadow: none; }
.t a:focus-visible::after { box-shadow: inset 0 0 0 2px var(--ring); }
.s { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 13px; color: var(--muted-foreground); min-width: 0; }
.s > span:first-child { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.s .st { flex: none; font-variant-numeric: tabular-nums; }
.more { height: 1px; }
.note { padding-bottom: 16px; font-size: 13px; color: var(--muted-foreground); }
.empty { padding-top: 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.tries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tries a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--input); background: color-mix(in oklch, var(--foreground) 4.5%, transparent); font-weight: 500; transition: background-color .15s; }
.tries a:hover { background: color-mix(in oklch, var(--foreground) 9%, transparent); }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--foreground); background: var(--background); box-shadow: var(--shadow-lg); overscroll-behavior: contain; }
dialog::backdrop { background: rgb(0 0 0 / 0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open]::backdrop { animation: fade .2s linear; }
  .sheet[open] { animation: slide-in .2s var(--ease); }
  .ask[open], .sim[open] { animation: zoom .18s var(--ease); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-up { from { transform: translateY(100%); } }
@keyframes zoom { from { opacity: 0; transform: scale(.98); } }

/* Sheet side=right */
.sheet { background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); position: fixed; inset: 0 0 0 auto; width: min(520px, 100%); max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
/* close: ghost icon button */
.x { position: sticky; top: 12px; float: right; margin: 12px 12px -48px 0; z-index: var(--z-pill); width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--foreground); transition: background-color .15s; }
.x:hover { background: var(--accent); }
.x svg { width: 16px; height: 16px; }
.in { padding: 24px; display: flex; flex-direction: column; }
.in > .ph { border-radius: var(--radius-xl); aspect-ratio: 16 / 9; }
/* Badge secondary / outline */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid transparent; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--secondary); color: var(--foreground); }
.badge[style] { background: hsl(var(--h) 45% 50% / .15); color: hsl(var(--h) 75% 80%); }
.badge .dot { width: 6px; height: 6px; }
.badge.outline { background: var(--hover); color: var(--muted-foreground); }
.sheet h2 { margin-top: 12px; font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance; }
.lead { font-size: 15px; line-height: 1.6; color: var(--muted-foreground); margin-top: 8px; max-width: 60ch; }
.go { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 20px; }
.go .btn { width: 100%; border-radius: 999px; }
.go p { font-size: 12px; color: var(--muted-foreground); text-align: center; }
.go p .link { display: inline-flex; align-items: center; min-height: 32px; vertical-align: middle; }
.go p code { display: block; margin: 6px 0 2px; padding: 8px 10px; border-radius: 8px; background: oklch(0.5 0 0 / 0.08); color: var(--foreground); font-size: 12px; text-align: left; overflow-wrap: anywhere; user-select: all; }
/* the first request, in a muted box */
.starts { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-lg); background: none; padding: 0; font-size: 15px; }
.starts .k { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); }
.starts q { quotes: "“" "”"; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 20px; padding-top: 16px; font-size: 13px; color: var(--muted-foreground); }
.facts .av { width: 20px; height: 20px; font-size: 8px; }
.facts > span:first-of-type { display: inline-flex; align-items: center; }
.facts .link { display: inline-flex; align-items: center; min-height: 24px; margin-left: auto; }
.in > h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 8px; }
.rows { display: grid; gap: 2px; margin: 0 -8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-lg); transition: background-color .15s; }
.row:hover { background: var(--hover); }
.row .ph { flex: none; width: 88px; border-radius: var(--radius-md); }
.row .ph.logo::before { width: 52px; height: 52px; } .row .ph.logo img { width: 32px; height: 32px; padding: 5px; border-radius: 8px; }
.row .rt { display: grid; gap: 2px; min-width: 0; }
.row .rn { font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .rm { font-size: 12px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Dialog: "Which AI do you use?" */
.ask { background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); width: calc(100% - 32px); max-width: 400px; margin: auto; border-radius: var(--radius-xl); padding: 24px; text-align: center; }
.ask h2 { font-size: 18px; line-height: 1.3; margin-bottom: 16px; }
.opt { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--input); background: color-mix(in oklch, var(--foreground) 4.5%, transparent); font-size: 15px; font-weight: 500; margin-top: 8px; transition: background-color .15s; }
.opt:hover { background: color-mix(in oklch, var(--foreground) 9%, transparent); }
.opt.p { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.opt.p:hover { background: var(--primary-hover); }
.ask .link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; font-size: 13px; color: var(--muted-foreground); }

/* ---------- your page ---------- */
.you { width: 14px; height: 14px; background: currentColor; color: var(--muted-foreground);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.2'/%3E%3Cpath d='M3.5 21a8.5 8.5 0 0 1 17 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.2'/%3E%3Cpath d='M3.5 21a8.5 8.5 0 0 1 17 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.me { max-width: 920px; margin: 0 auto; padding-top: 32px; }
.who-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 8px 0 12px; }
.av.big { width: 56px; height: 56px; border-radius: 16px; font-size: 20px; background: var(--primary); color: var(--primary-foreground); }
.av.big .you { width: 26px; height: 26px; color: var(--primary-foreground); }
.who-card .who { flex: 1 1 240px; min-width: 0; }
.who-card h1 { font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; }
.who-card .who p { margin-top: 2px; color: var(--muted-foreground); }
.who-card .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin-top: 32px; }
.panel { min-width: 0; padding: 4px 0 8px; }
.ph-head { margin-bottom: 12px; }
.panel h2 { font-size: 15px; letter-spacing: -0.01em; }
.ph-head p { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.panel .quiet { margin-top: 0; }
.panel .rows { margin: 0 -8px; }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--hover); }
.app-name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.likes { display: flex; flex-wrap: wrap; gap: 8px; }
.likes .badge { height: 30px; padding: 0 12px; font-size: 13px; }
.forget { text-align: center; margin-top: 24px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.outline { background: color-mix(in oklch, var(--foreground) 4.5%, transparent); color: var(--foreground); border: 1px solid var(--input); box-shadow: var(--shadow-xs); }
.btn.outline:hover { background: color-mix(in oklch, var(--foreground) 10%, transparent); }
.btn.ghost { background: transparent; color: var(--muted-foreground); box-shadow: none; }
.btn.ghost:hover { background: var(--accent); color: var(--foreground); }
@media (max-width: 699px) { .panels { grid-template-columns: minmax(0, 1fr); } .me { padding-top: 16px; } }

/* ---------- add yours ---------- */
.share { max-width: 640px; margin: 0 auto; padding-top: 48px; }
.share h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.share .sub { font-size: 16px; line-height: 1.55; color: var(--muted-foreground); margin-top: 12px; max-width: 52ch; }
.share > .btn, .login { margin-top: 28px; }
.login { display: flex; flex-wrap: wrap; gap: 8px; }
.field { height: 44px; min-width: 0; flex: 1 1 220px; max-width: 320px; border: 1px solid var(--input); border-radius: var(--radius-md); background: color-mix(in oklch, var(--foreground) 4.5%, transparent); padding: 0 12px; font-size: 15px; box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s; }
.field:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary-hover) 55%, transparent); }
.field::placeholder { color: var(--muted-foreground); opacity: 1; }
.repos { margin-top: 28px; }
.repo { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; transition: background-color .15s; }

.repo:hover { background: var(--hover); }
/* Checkbox */
.box { appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 4px; border: 1px solid var(--input); background: color-mix(in oklch, var(--foreground) 4.5%, transparent); cursor: pointer; display: grid; place-items: center; }
.box:checked { border-color: var(--primary); background: var(--primary); }
.box:checked::after { content: ""; width: 8px; height: 4px; border: solid var(--primary-foreground); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.repo .m { flex: 1; min-width: 0; }
.repo .n { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.repo .d, .res { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.res:empty { display: none; }
.res.ok { color: var(--primary); font-weight: 500; } .res.bad { color: var(--foreground); font-weight: 500; }
.pic { flex: none; width: 104px; aspect-ratio: 16 / 10; border-radius: var(--radius-md); background: var(--muted); border: 1px dashed color-mix(in oklch, var(--foreground) 25%, transparent); display: grid; place-items: center; font-size: 11px; color: var(--muted-foreground); overflow: hidden; }
.pic:has(img) { border: 0; } .pic img { width: 100%; height: 100%; object-fit: cover; }
.share > .btn.add { margin-top: 20px; }
.after, .quiet { margin-top: 20px; font-size: 14px; color: var(--muted-foreground); }
.upload { margin-top: 16px; display: grid; gap: 12px; justify-items: start; }

/* ---------- sizes ---------- */
@media (max-width: 899px) {
  :root { --gut: 16px; --top: 56px; }
  /* Sidebar on mobile: a drawer over the page (labels always shown) */
  :root, :root[data-sb="collapsed"] { --sb-w: min(288px, 85vw); }
  .sidebar { position: fixed; inset: 0 auto 0 0; height: 100dvh; transform: translateX(-100%); transition: transform .2s var(--ease); box-shadow: var(--shadow-lg); }
  :root[data-sb-open] .sidebar { transform: none; }
  .sidebar { background: var(--background); }
  .scrim { display: block; position: fixed; inset: 0; z-index: var(--z-scrim); background: rgb(0 0 0 / 0.45); }
  :root[data-sb="collapsed"] .side .h { opacity: 1; height: 32px; margin-top: 12px; }
  :root[data-sb="collapsed"] .side a > span:last-child, :root[data-sb="collapsed"] .sb-foot .add > span, :root[data-sb="collapsed"] .acct .who { opacity: 1; width: auto; font-size: inherit; }
  :root[data-sb="collapsed"] .brand { font-size: 18px; }
  :root[data-sb="collapsed"] .side a, :root[data-sb="collapsed"] .sb-foot .add, :root[data-sb="collapsed"] .acct, :root[data-sb="collapsed"] .brand { padding: 0 8px; gap: 10px; }
  .top { gap: 6px; padding-left: 8px; }
  .bar { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .tags { margin-right: calc(-1 * var(--gut)); }
  .chips { overflow-x: auto; scrollbar-width: none; padding-right: 0; border-right: 0; }
  .chips::-webkit-scrollbar { display: none; }
  .head { padding-top: 12px; }
  .head h1 { font-size: 22px; }
}
@media (max-width: 559px) {
  .tabs { flex: 1; } .chip { flex: 1; padding: 0 6px; font-size: 12px; }
  /* Sheet side=bottom */
  .sheet { inset: auto 0 0 0; width: 100%; height: auto; max-height: 92dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  @media (prefers-reduced-motion: no-preference) { .sheet[open] { animation-name: slide-up; } }
  .in { padding: 16px 16px 28px; }
  .sheet h2 { font-size: 21px; }
  .pic { width: 80px; }
}
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition: none !important; animation: none !important; } }

/* Level tag under a card's title, and in the sheet */
.lvl { margin: 2px 0 0; font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.lvl-ready, .lvl-official { color: var(--ok); }
.card .lvl-ready::before, .card .lvl-official::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 4px -2px 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.lvl-soon, .lvl-code { color: var(--muted-foreground); }
.badge.lvl-b { background: var(--hover); }
.pill:disabled { background: var(--hover); color: var(--muted-foreground); cursor: default; transform: none; }
.pill:disabled:hover { background: var(--hover); }
.btn:disabled { opacity: .6; }

/* ---------- add panel (same glass dialog as the chooser) ---------- */
dialog.add { text-align: left; max-width: 440px; }
dialog.add h2 { margin-right: 36px; }
dialog.add .sub { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); margin-bottom: 16px; }
dialog.add p { font-size: 14px; line-height: 1.5; margin-top: 12px; }
dialog.add .x { position: absolute; float: none; top: 12px; right: 12px; margin: 0; }
dialog.add ol { margin: 14px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
dialog.add .btn { width: 100%; border-radius: 999px; margin-top: 16px; }
.cf { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.cf input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: var(--radius-md); border: 1px solid var(--input); background: color-mix(in oklch, var(--foreground) 4.5%, transparent); color: inherit; font: inherit; font-size: 13px; }
.cf .btn { width: auto; margin-top: 0; flex: none; border-radius: var(--radius-md); }
.signin .cf { margin-top: 0; }

/* The numbered steps in the project sheet: what to press, in order, to add this one and start using it. */
.go .steps { list-style: none; counter-reset: step; display: grid; gap: 20px; margin: 0; padding: 0; text-align: left; }
.go .steps > li { counter-increment: step; position: relative; display: grid; gap: 8px; padding-left: 36px; }
.go .steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--sidebar-accent); color: var(--foreground); font-size: 12px; font-weight: 600; }
.go .steps h3 { margin: 0; font-size: 15px; line-height: 24px; }
.go .steps p { text-align: left; font-size: 13px; line-height: 1.5; }
.go .steps .first q { quotes: "\201C" "\201D"; color: var(--foreground); font-size: 15px; }
.go .steps a.btn { text-decoration: none; }
.go .steps .paste code { display: block; margin: 6px 0 2px; padding: 8px 10px; border-radius: 8px; background: oklch(0.5 0 0 / 0.08); color: var(--foreground); font-size: 12px; overflow-wrap: anywhere; user-select: all; }

/* ---------- accounts: the round save button, likes, comments, sign-in, posts (all on the existing tokens) ---------- */
button.acct { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.acct img.av { object-fit: cover; }
/* Sits to the left of the close button: both are pinned to the sheet's top right, so it is pushed over by that button's width and a gap. */
.x.round { border-radius: 999px; margin-right: 56px; }
.x.save svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.x.save[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); }
.x.save[aria-pressed="true"] svg { fill: currentColor; }
.x.save.wide { width: auto; padding: 0 14px 0 11px; display: inline-flex; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }   /* "Add to Claude": the same list the AI reads */
.x.save.wide svg { width: 16px; height: 16px; }
.social { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--input); display: grid; gap: 12px; }
.social-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.social-head h3 { margin: 0; font-size: 15px; letter-spacing: -0.01em; order: -1; }
.likebtn { width: auto; border-radius: 999px; gap: 6px; }
.likebtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.likebtn[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); }
.likebtn[aria-pressed="true"] svg { fill: currentColor; }
.comments { display: grid; gap: 14px; max-height: 280px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.comments:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--radius-md); }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment .av { width: 28px; height: 28px; font-size: 10px; margin-top: 2px; }
.cbody { min-width: 0; display: grid; gap: 2px; }
.cmeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
.cmeta b { font-weight: 500; }
.cmeta span, .cmeta button.link { font-size: 12px; color: var(--muted-foreground); }
.ctext { font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.field.area { height: auto; min-height: 44px; max-width: none; padding: 10px 12px; resize: vertical; font: inherit; font-size: 14px; color: inherit; line-height: 1.4; }
.commentform { margin-top: 0; align-items: flex-end; }
.commentform .btn { width: auto; border-radius: var(--radius-md); }
.quiet { font-size: 13px; color: var(--muted-foreground); }
.quiet:empty { display: none; }
.facts .link.contact { margin-left: 0; }
dialog.signin { display: grid; gap: 8px; }
dialog.signin:not([open]) { display: none; }
dialog.signin h2 { margin: 0 32px 8px 0; }
dialog.signin .x { position: absolute; float: none; top: 12px; right: 12px; margin: 0; }
dialog.signin .sub { margin-top: 8px; font-size: 12px; color: var(--muted-foreground); }
a.opt { text-decoration: none; }
.opt:disabled { opacity: .55; cursor: default; }
.postform { display: grid; gap: 8px; margin-top: 12px; }
.postform .field { max-width: none; flex: none; width: 100%; }
.postform[hidden] { display: none; }
.addpost { margin-top: 12px; display: flex; }
.postrow { display: flex; align-items: center; gap: 8px; }
.postrow .row { flex: 1; min-width: 0; }
.postrow .link { font-size: 12px; color: var(--muted-foreground); flex: none; margin-right: 8px; }
img.av.big { object-fit: cover; padding: 0; }
.who-card .badge { vertical-align: middle; }
@media (max-width: 700px) { .panels { grid-template-columns: minmax(0, 1fr); } }

/* The dialog is the glass itself, so the usual dimmed backdrop behind a dialog is switched off. */

/* The words sit in a readable column in the middle of the screen; its height is steady so the buttons do not jump between steps. */

/* 1: what the guide covers */

/* 2: the flow, and the kinds of card */

/* 3 and 4: one connector, press by press */

/* 5: what is connected */

/* Back on the left; Skip and Next on the right */

/* ---------- sidebar: setup levels ---------- */
.side .bars path { stroke-width: 3; }
.side .bars .off { opacity: .25; }
.side a[aria-current] .bars { color: var(--primary); }
.sb-foot a.add { text-decoration: none; }

/* ---------- about ---------- */
.about { max-width: 640px; margin: 0 auto; padding: 40px 0 64px; }
.about h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.about .lead { font-size: 18px; line-height: 1.5; margin-top: 14px; text-wrap: pretty; }
.about section { margin-top: 36px; }
.about h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.about section p { font-size: 15px; line-height: 1.6; color: var(--muted-foreground); margin-top: 8px; max-width: 62ch; }
.about .levels { list-style: none; display: grid; gap: 8px; margin: 12px 0 0; padding: 0; }
.about .levels li { padding: 14px 16px; border: 1px solid var(--input); border-radius: var(--radius-lg); background: color-mix(in oklch, var(--foreground) 4.5%, transparent); }
.about .levels a { font-size: 15px; font-weight: 600; }
.about .levels p { font-size: 14px; margin-top: 4px; }
.about .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.about .acts a.btn { text-decoration: none; }
@media (max-width: 699px) { .about { padding-top: 20px; } }

/* A picture of the real thing inside a guide step */

/* The short walk-through video (guide and About) */
.clip { margin: 8px 0 14px; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 800 / 652; border-radius: var(--radius-lg); border: 1px solid var(--input); background: #141210; }
.clip figcaption { margin-top: 6px; font-size: 12px; color: var(--muted-foreground); }
.about .clip { margin: 28px 0 0; }

/* ---------- for teams: the About column, wider, with a form and a picture of a shelf ---------- */
.teams { max-width: 760px; }
.teams h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.05; max-width: 16ch; }
.teams .lead { max-width: 46ch; }
.join { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.join .field { max-width: 340px; }
.join .btn:disabled { opacity: .6; }
.join-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.join-note.bad { color: oklch(0.8 0.12 25); }
.joined { margin-top: 28px; font-size: 16px; font-weight: 600; }
.shelf { margin: 44px 0 0; padding: 20px; border: 1px solid var(--input); border-radius: calc(var(--radius-xl) + 8px); background: color-mix(in oklch, var(--foreground) 3%, transparent); }
.shelf .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shelf figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--input); font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.gets { margin: 12px 0 0; }
.gets dt { padding-top: 14px; border-top: 1px solid var(--input); font-size: 15px; font-weight: 600; }
.gets dd { margin: 4px 0 14px; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); max-width: 58ch; }
@media (max-width: 699px) {
  .shelf { padding: 14px; }
  .shelf .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shelf .card:nth-child(3) { display: none; }
}

/* ---------- the update splash: liquid glass over the site on every load, white type ---------- */
.intro { position: fixed; inset: 0; z-index: var(--z-intro); display: grid; place-content: center; justify-items: center; gap: 22px; padding: 32px 24px; text-align: center; cursor: pointer; color: #fff; overflow: hidden;
  background: radial-gradient(120% 70% at 50% -10%, rgb(255 255 255 / 0.16), transparent 60%), radial-gradient(80% 60% at 50% 120%, rgb(255 200 170 / 0.10), transparent 60%), rgb(18 14 11 / 0.30);
  backdrop-filter: blur(32px) saturate(1.9) brightness(0.8); -webkit-backdrop-filter: blur(32px) saturate(1.9) brightness(0.8); transition: opacity .5s var(--ease), transform .5s var(--ease); }
/* the pane's lit edge and inner glow, like a sheet of glass laid over the page */
.intro::before { content: ""; position: absolute; inset: 14px; border-radius: 32px; pointer-events: none; border: 1px solid rgb(255 255 255 / 0.18);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), inset 0 -1px 0 rgb(255 255 255 / 0.10), inset 0 0 80px rgb(255 255 255 / 0.06); }
/* a slow sheen moving across the glass */
.intro::after { content: ""; position: absolute; inset: -40%; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / 0.07) 50%, transparent 60%); }
@media (prefers-reduced-motion: no-preference) { .intro::after { animation: sheen 9s ease-in-out infinite; } }
@keyframes sheen { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
.intro.out { opacity: 0; transform: scale(1.02); pointer-events: none; }
.no-intro .intro { display: none; }
.intro > * { position: relative; z-index: 1; }
.intro .view { display: grid; justify-items: center; gap: 22px; }
@media (prefers-reduced-motion: no-preference) { .intro .view { animation: rise .2s var(--ease); } }
.intro .next { display: inline-flex; align-items: center; margin-top: 10px; height: 50px; padding: 0 34px; border-radius: 999px; font-size: 17px; font-weight: 600; color: #fff;
  background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.3); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 8px 30px rgb(0 0 0 / 0.2); transition: background-color .15s; }
.intro .next:hover { background: rgb(255 255 255 / 0.22); }
.intro .next:focus-visible { box-shadow: 0 0 0 4px rgb(255 255 255 / 0.45); }
/* the film of Moredac at work in Claude, in a pane of the same glass */
.intro .reel { margin: 0; width: min(980px, 88vw, calc(58vh * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: rgb(0 0 0 / 0.3);
  border: 1px solid rgb(255 255 255 / 0.25); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 24px 60px rgb(0 0 0 / 0.35); }
.intro .reel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro .eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 8px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.22); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3); }
.intro .eyebrow img { border-radius: 5px; }
.intro h1 { max-width: 16ch; font-size: clamp(32px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 700; text-wrap: balance; color: #fff;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.25); }
.intro .sub { font-size: clamp(17px, 2vw, 22px); line-height: 1.4; font-weight: 500; color: rgb(255 255 255 / 0.82); letter-spacing: -0.01em; }
.intro .more { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 600; color: #fff;
  background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.3); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 8px 30px rgb(0 0 0 / 0.2); transition: background-color .15s; }
.intro .hint { margin-top: 2px; padding: 6px 10px; font-size: 14px; font-weight: 500; color: rgb(255 255 255 / 0.6); transition: color .15s; }
.intro:hover .hint { color: rgb(255 255 255 / 0.85); }
.intro .hint:focus, .intro .hint:focus-visible { outline: none; box-shadow: none; }
.intro .more:hover { background: rgb(255 255 255 / 0.22); }

/* ---------- the number of cards, right of the search bar ---------- */
.tally { justify-self: end; margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--foreground); opacity: 0.7; }
.tally[hidden] { display: none; }
@media (max-width: 899px) {
  /* narrow screens keep the number and drop the word, so the search box keeps its room */
  .tally { font-size: 12px; }
  .tally .w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- the opened card: one button, one line, the rest folded away ---------- */
.go > .btn { height: 48px; font-size: 16px; text-decoration: none; }
.go > .line { font-size: 13px; line-height: 1.5; color: var(--muted-foreground); text-align: center; }
.more-go, .social .cm { font-size: 13px; color: var(--muted-foreground); }
.more-go > summary, .social .cm > summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklch, var(--foreground) 30%, transparent); }
.more-go > summary::-webkit-details-marker, .social .cm > summary::-webkit-details-marker { display: none; }
.more-go { text-align: center; }
.more-go[open] { display: grid; gap: 8px; justify-items: start; text-align: left; }
.more-go[open] > summary { justify-self: center; }
.more-go p { text-align: left; font-size: 13px; line-height: 1.5; }
.more-go q { quotes: "\201C" "\201D"; color: var(--foreground); }
.more-go .link { font-size: 13px; }
.social .cm[open] > summary { margin-bottom: 8px; }

/* the guide: detail folded under a quiet label */

/* the plain summary a card's address carries before the site starts (what crawlers and slow connections see) */
.pre { max-width: 640px; padding: 8px 0 40px; color: var(--muted-foreground); font-size: 15px; line-height: 1.6; }
.pre h1 { color: var(--foreground); font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.pre h2 { color: var(--foreground); font-size: 16px; margin: 24px 0 8px; }
.pre p { margin: 0 0 8px; }
.pre ul { margin: 0; padding-left: 18px; }
.pre a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklch, var(--foreground) 30%, transparent); }

/* how often a card was tried; the Most tried page */
.social .tried { font-size: 13px; color: var(--muted-foreground); }
.ranked-item { display: grid; gap: 8px; align-content: start; min-width: 0; }
.rank { font-size: 12px; font-weight: 500; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }

/* ---------- the tour: a ring round one thing and a sentence beside it ---------- */
.tour { position: fixed; inset: 0; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; pointer-events: none; z-index: var(--z-tour); color: inherit; }
.tour .ring { position: fixed; border-radius: 14px; box-shadow: 0 0 0 2px var(--primary), 0 0 0 9999px oklch(0.13 0.012 58 / 0.55); transition: left .25s var(--ease), top .25s var(--ease), width .25s var(--ease), height .25s var(--ease); }
.coach { display: grid; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--popover, var(--background)); border: 1px solid var(--input); box-shadow: var(--shadow-lg); text-align: left; }
.coach.float { position: fixed; pointer-events: auto; transition: left .25s var(--ease), top .25s var(--ease); }
.coach.inline { margin-top: 14px; border-color: var(--primary); box-shadow: none; }
.coach .say { margin: 0; font-size: 14px; line-height: 1.5; color: var(--foreground); }
.coach .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.coach .count { font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.coach .acts { display: flex; align-items: center; gap: 14px; }
.coach .link { font-size: 13px; color: var(--muted-foreground); }
.go > .btn.tour-on { box-shadow: 0 0 0 3px var(--primary-ring); }
/* on the closing screen the tour is a quiet second line under the first */


/* ---------- connection status: green connected, yellow needs attention, red not connected ---------- */
/* Until Moredac is connected, the sidebar's link to the setup is boxed and tinted; once connected it is just a dot and words. */
:root { --ok: oklch(0.76 0.15 150); --warn: oklch(0.84 0.14 85); --bad: oklch(0.69 0.18 25); }
.status { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--input); background: color-mix(in oklch, var(--foreground) 4.5%, transparent);
  font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--foreground); transition: background-color .15s, border-color .15s; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--warn)); box-shadow: 0 0 0 3px color-mix(in oklch, var(--c, var(--warn)) 25%, transparent); }
.status[data-level="green"] { --c: var(--ok); } .status[data-level="yellow"] { --c: var(--warn); } .status[data-level="red"] { --c: var(--bad); }
.status.big { height: 40px; padding: 0 16px; font-size: 15px; width: max-content; border-color: color-mix(in oklch, var(--c, var(--warn)) 40%, transparent); background: color-mix(in oklch, var(--c, var(--warn)) 10%, transparent); }
.status.big .dot { width: 10px; height: 10px; }

/* ---------- shared bits ---------- */
.fold { margin-top: 12px; font-size: 14px; color: var(--muted-foreground); }
.fold > summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; list-style: none; color: var(--foreground); font-weight: 500; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; margin-left: 8px; color: var(--muted-foreground); }
.fold[open] > summary::after { content: "\2212"; }
.fold > p { margin-top: 6px; line-height: 1.6; max-width: 62ch; }
.fold .paste code { font-size: 12px; word-break: break-all; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acts a.btn { text-decoration: none; }
.sub { font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }

/* the two parts of Moredac, joined by the connector */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0; }
.duo .node { padding: 18px; border: 1px solid var(--input); border-radius: var(--radius-xl); background: color-mix(in oklch, var(--foreground) 4.5%, transparent); min-width: 0; }
.duo .node.claude { background: var(--primary-soft); border-color: color-mix(in oklch, var(--primary) 35%, transparent); }
.duo .nm { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.duo .nm img { border-radius: 5px; }
.duo .sb { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.duo ul { display: grid; gap: 8px; margin-top: 14px; font-size: 13px; }
.duo li { display: flex; align-items: center; gap: 8px; }
.duo li svg { width: 16px; height: 16px; flex: none; color: var(--primary); }
.duo .wire { position: relative; width: 96px; display: grid; place-items: center; }
.duo .wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed color-mix(in oklch, var(--primary) 60%, transparent); }
.duo .wire span { position: relative; padding: 4px 8px; border-radius: 999px; background: var(--background); border: 1px solid color-mix(in oklch, var(--primary) 50%, transparent); font-size: 11px; font-weight: 600; color: var(--primary); text-align: center; line-height: 1.2; }
@media (prefers-reduced-motion: no-preference) { .duo .wire::before { animation: flow 1.2s linear infinite; border-image: repeating-linear-gradient(90deg, color-mix(in oklch, var(--primary) 70%, transparent) 0 6px, transparent 6px 12px) 1; } }
@keyframes flow { to { border-image-source: repeating-linear-gradient(90deg, transparent 0 6px, color-mix(in oklch, var(--primary) 70%, transparent) 6px 12px); } }
@media (max-width: 699px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo .wire { width: auto; height: 48px; }
  .duo .wire::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed color-mix(in oklch, var(--primary) 60%, transparent); animation: none; border-image: none; }
}

/* ---------- home: the opening band, the three steps, and the tasks ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px 0 8px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .copy > p { margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--muted-foreground); max-width: 44ch; text-wrap: pretty; }
.hero .acts { margin-top: 24px; gap: 14px; }
.hero .acts small { font-size: 13px; color: var(--muted-foreground); }
@container (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 699px) { .hero { padding-top: 20px; } .hero .duo { display: none; } .hero .acts .btn { flex: 1 1 100%; width: 100%; } }
/* Demo, Add, Remove: what happens in Claude, in three short lines */
.how3 { list-style: none; margin: 0; display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); }
.how3 > p { padding: 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.how3 li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px; }
.how3 li + li { border-top: 1px dashed var(--border); padding-top: 16px; }
.how3 .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.how3 .n svg { width: 20px; height: 20px; }
.how3 h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.how3 li p { font-size: 14px; color: var(--muted-foreground); margin-top: 2px; text-wrap: pretty; }
.state { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--primary); color: var(--primary-foreground); }
.state.ok { background: color-mix(in oklch, var(--ok) 14%, transparent); color: var(--ok); }
.state.off { background: var(--tint-2); color: var(--muted-foreground); }
.sec { display: grid; gap: 16px; padding-top: 40px; }
.sec > h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@container (max-width: 1000px) { .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.task { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 18px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); transition: background-color .15s; }
.task:hover { background: var(--tint-2); }
.task svg { width: 22px; height: 22px; color: var(--primary); }
.task b { margin-top: 4px; font-size: 15px; font-weight: 600; }
.task span { font-size: 13px; color: var(--muted-foreground); text-wrap: pretty; }
.sec + .head { padding-top: 40px; }
@media (max-width: 559px) { .task { padding: 14px; } }

/* ---------- Help: short questions in a panel, opened from the top bar on every page ---------- */
.help-sheet .in > h2 { margin: 4px 48px 0 0; }
.help-sheet .in > .sub { margin-top: 2px; font-size: 14px; }
.qa { display: grid; gap: 10px; margin-top: 20px; }
.qa details { border-radius: 16px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); }
.qa summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px; font-weight: 500; font-size: 15px; cursor: pointer; border-radius: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; margin-left: auto; padding-left: 8px; font-size: 20px; color: var(--muted-foreground); }
.qa details[open] summary::after { content: "\2013"; }
.qa summary svg { width: 18px; height: 18px; flex: none; color: var(--primary); }
.qa details p { padding: 0 18px 18px 48px; font-size: 14px; line-height: 1.55; color: var(--muted-foreground); text-wrap: pretty; }
.unsure { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; padding: 18px; border-radius: 18px; background: var(--primary-soft); }
.unsure p { flex: 1 1 200px; font-size: 14px; color: var(--muted-foreground); }
.unsure b { color: var(--foreground); }

/* ---------- a Claude chat, drawn ---------- */
.claude-mock { margin: 0; border-radius: var(--radius-xl); border: 1px solid var(--input); background: oklch(0.2 0.006 70); overflow: hidden; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .6); }
.claude-mock .cm-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); border-bottom: 1px solid var(--input); }
.cm-dots { display: flex; gap: 5px; } .cm-dots i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in oklch, var(--foreground) 18%, transparent); }
.cm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px; }
.cm-chat { display: grid; gap: 8px; align-content: start; font-size: 12px; line-height: 1.45; }
.cm-you { justify-self: end; max-width: 92%; padding: 8px 10px; border-radius: 12px; background: color-mix(in oklch, var(--foreground) 9%, transparent); }
.cm-tool { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--input); font-size: 11px; color: var(--muted-foreground); }
.cm-tool img { border-radius: 3px; }
.cm-claude { color: var(--foreground); }
.cm-art { display: grid; gap: 8px; padding: 8px; border-radius: 10px; background: oklch(0.13 0.01 60); border: 1px solid var(--input); align-content: start; }
.cm-btns { display: flex; flex-wrap: wrap; gap: 4px; } .cm-btns span { padding: 2px 7px; border-radius: 5px; border: 1px solid var(--input); font-size: 10px; } .cm-btns .on { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.claude-mock figcaption { padding: 0 14px 12px; font-size: 11px; color: var(--muted-foreground); }

/* ---------- the guided setup (/connect) ---------- */
.setup { max-width: 880px; margin: 0 auto; padding: 28px 0 64px; }
.setup-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.stage { display: grid; gap: 18px; margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) { .setup:not(.still) .stage { animation: rise .18s var(--ease); } }   /* a step the person moved to; not a status redraw */
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.stage h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.04em; text-wrap: balance; outline: none; }
.stage h1:focus-visible { box-shadow: none; }
.stage .lead { font-size: 17px; line-height: 1.5; color: var(--muted-foreground); max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: color-mix(in oklch, var(--foreground) 6%, transparent); font-size: 13px; }
.chips svg { width: 14px; height: 14px; color: var(--ok); }
.annot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.how-page .shot { margin: 0; }
.annot .shotbox { position: relative; }
.annot .shotbox img, .how-page .shot img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--input); }
.annot .mark { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-size: 13px; font-weight: 700; box-shadow: 0 0 0 4px color-mix(in oklch, var(--primary) 35%, transparent); }
.how-page figcaption { margin-top: 8px; font-size: 12px; color: var(--muted-foreground); }
.annot .notes { list-style: none; padding: 0; display: grid; gap: 14px; }
.annot .notes li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.annot .num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; }
.annot .notes b { font-size: 15px; } .annot .notes p { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); margin-top: 2px; }
.spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid color-mix(in oklch, var(--foreground) 12%, transparent); border-top-color: var(--warn); }
@media (prefers-reduced-motion: no-preference) { .spin { animation: spin 0.9s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.big-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in oklch, var(--ok) 18%, transparent); color: var(--ok); }
.big-check svg { width: 32px; height: 32px; stroke-width: 2.5; }
@media (prefers-reduced-motion: no-preference) { .setup:not(.still) .big-check { animation: pop .2s var(--ease); } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.option { display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--input); border-radius: var(--radius-xl); background: color-mix(in oklch, var(--foreground) 4.5%, transparent); }
.option h2 { font-size: 20px; letter-spacing: -0.03em; }
.option > p { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }
.option .acts { margin-top: 8px; }
.stage .sub .link { margin-left: 4px; }
@media (max-width: 799px) {
  .annot, .options { grid-template-columns: minmax(0, 1fr); }
  .stage .acts .btn { flex: 1 1 auto; }
  .cm-body { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- How it works ---------- */
.how-page { max-width: 920px; margin: 0 auto; padding: 36px 0 64px; display: grid; gap: 36px; }
.how-page h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.04em; }
.how-page .lead { font-size: 17px; line-height: 1.5; color: var(--muted-foreground); margin-top: 10px; }
.how-page h2 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 14px; }
.tablist { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: color-mix(in oklch, var(--foreground) 5%, transparent); width: max-content; max-width: 100%; }
.tablist [role="tab"] { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 6px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.tablist [role="tab"] .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in oklch, var(--foreground) 8%, transparent); font-size: 12px; font-weight: 700; }
.tablist [aria-selected="true"] { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm); }
.tablist [aria-selected="true"] .n { background: var(--primary); color: var(--primary-foreground); }
.steps3 .panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: center; margin-top: 16px; padding: 20px; border: 1px solid var(--input); border-radius: var(--radius-xl); background: color-mix(in oklch, var(--foreground) 3%, transparent); }
@media (prefers-reduced-motion: no-preference) { .steps3 .panel > * { animation: rise .18s var(--ease); } }
.steps3 .say { display: grid; gap: 16px; justify-items: start; }
.steps3 .say p { font-size: 17px; line-height: 1.45; }
.steps3 .shot img { max-height: 320px; width: auto; max-width: 100%; margin: 0 auto; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-grid .card .body .s { display: none; }
.faq .fold { border-top: 1px solid var(--input); margin: 0; padding: 6px 0; }
@media (max-width: 799px) { .steps3 .panel { grid-template-columns: minmax(0, 1fr); } .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mini-grid .card:nth-child(3) { display: none; } }

/* ---------- About ---------- */
.about { max-width: 760px; }
.about .scatter { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; margin-top: 14px; }
.about .scatter ul { display: flex; flex-wrap: wrap; gap: 8px; }
.about .scatter li { padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--input); font-size: 13px; color: var(--muted-foreground); }
.about .scatter li:nth-child(odd) { transform: rotate(-2deg); } .about .scatter li:nth-child(3n) { transform: translateY(4px) rotate(1.5deg); }
.about .scatter .arrow { width: 40px; border-top: 2px solid var(--primary); position: relative; }
.about .scatter .arrow::after { content: ""; position: absolute; right: -1px; top: -6px; border: 5px solid transparent; border-left: 8px solid var(--primary); }
.about .scatter .to { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--primary-soft); font-weight: 600; }
.about .scatter .to img { border-radius: 5px; }
.about .duo { margin-top: 16px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.acard { padding: 16px; border: 1px solid var(--input); border-radius: var(--radius-lg); background: color-mix(in oklch, var(--foreground) 4.5%, transparent); }
.acard b { font-size: 15px; } .about .acard p { font-size: 14px; margin-top: 6px; }
.about .fold { margin-top: 4px; }
@media (max-width: 699px) { .cards3 { grid-template-columns: minmax(0, 1fr); } .about .scatter { grid-template-columns: minmax(0, 1fr); } .about .scatter .arrow { display: none; } }

.sb-foot .status-side { margin-top: 6px; border: 1px solid var(--input); }
.sb-foot .status-side .dot { width: 8px; height: 8px; margin: 0 5px; border-radius: 50%; flex: none; background: var(--c, var(--warn)); }
.sb-foot .status-side[data-level="green"] { --c: var(--ok); border-color: transparent; background: none; margin-top: 0; } .sb-foot .status-side[data-level="yellow"] { --c: var(--warn); }
.sb-foot .status-side[data-level="red"] { --c: var(--bad); }
.sb-foot .status-side:not([data-level="green"]) { background: var(--primary-soft); border-color: color-mix(in oklch, var(--primary) 40%, transparent); color: var(--foreground); font-weight: 500; }
:root[data-sb="collapsed"] .sb-foot .status-side > span { opacity: 0; width: 0; font-size: 0; }
:root[data-sb="collapsed"] .sb-foot .status-side { padding: 0 11px; gap: 0; }
.stage .safe { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg); background: color-mix(in oklch, var(--foreground) 4.5%, transparent); border: 1px solid var(--input); font-size: 14px; line-height: 1.5; color: var(--muted-foreground); max-width: 640px; }
.stage .safe svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 1px; }
.stage > .claude-mock { max-width: 560px; }
.annot .shotbox { width: max-content; max-width: 100%; justify-self: center; }
.annot .shotbox img { width: auto; max-width: 100%; max-height: min(400px, 48vh); }

.cm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cm-tiles i { display: grid; place-items: end; aspect-ratio: 16 / 10; padding: 4px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--primary-foreground);
  background: linear-gradient(135deg, oklch(0.42 0.06 40), oklch(0.28 0.04 60)); }
.cm-tiles i:nth-child(2) { background: linear-gradient(135deg, oklch(0.62 0.12 35), oklch(0.4 0.09 50)); outline: 2px solid var(--primary); }
.cm-tiles i:nth-child(3) { background: linear-gradient(135deg, oklch(0.4 0.07 250), oklch(0.27 0.04 260)); }
.cm-tiles i:nth-child(4) { background: linear-gradient(135deg, oklch(0.45 0.08 150), oklch(0.28 0.04 160)); }

/* the setup walkthrough film */
.film { margin: 0; }
.how-page #setup-video .sub { margin: -8px 0 12px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); border: 1px solid var(--input); background: #000; }
.film figcaption { margin-top: 8px; font-size: 12px; color: var(--muted-foreground); }

/* ---------- Glass (Apple-style translucent materials) ----------
   One layer over every look (Moredac's own, ChatGPT's, Claude's; light and dark). Panes are frosted: see-through,
   blurred and colour-boosted, with a hairline edge and a lit top line, floating over a soft "wallpaper" so the frosting
   has colour to show. Colours come from the look's own tokens; the two wallpaper hues are fixed and faint. */
:root {
  --glass-fill: color-mix(in srgb, var(--card) 72%, transparent);
  --glass-fill-strong: color-mix(in srgb, var(--card) 88%, transparent);
  --tint: color-mix(in oklch, var(--foreground) 6%, transparent);
  --tint-2: color-mix(in oklch, var(--foreground) 10%, transparent);
  --glass-edge: color-mix(in srgb, var(--foreground) 11%, transparent);
  --glass-lit: color-mix(in srgb, #fff 18%, transparent);
  --glass-blur: blur(36px) saturate(1.9);
  --glass-shadow: 0 1px 0 0 var(--glass-lit) inset, 0 0 0 1px var(--glass-edge) inset, 0 12px 40px -16px rgb(0 0 0 / 0.4);
  --glass-sheen: linear-gradient(180deg, color-mix(in srgb, #fff 18%, transparent), transparent 60%);
}
/* cards are frosted tiles: a hairline edge, no glow */
.card { padding: 8px 8px 12px; border-radius: 22px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); transition: background-color .2s, transform .2s ease-out; }
.card:hover { background: var(--tint-2); transform: translateY(-2px); }
.card .body { padding: 10px 4px 0; gap: 3px; }
@media (max-width: 559px) { .card { padding: 6px 6px 10px; border-radius: 18px; } .card .t { font-size: 14px; } .card .s { font-size: 12px; } .pill { height: 30px; padding: 0 12px; right: 8px; bottom: 8px; } }
.pill { box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.7); }
.btn:not(.outline):not(.ghost):not(.link) { box-shadow: 0 10px 28px -14px var(--primary); }
.btn.outline, .tabs button, .chips button { background-color: var(--glass-fill); box-shadow: var(--glass-shadow); border-color: transparent; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.sheet { background: var(--glass-fill-strong); backdrop-filter: blur(44px) saturate(2); -webkit-backdrop-filter: blur(44px) saturate(2); box-shadow: 1px 0 0 0 var(--glass-lit) inset, -20px 0 60px -20px rgb(0 0 0 / 0.45); }
.side a[aria-current], .sb-foot .add[aria-current], .sb-foot .add[aria-pressed="true"] { background: var(--glass-fill-strong); box-shadow: var(--glass-shadow); }
#mdc-tray { background: var(--glass-fill-strong) !important; backdrop-filter: blur(36px) saturate(1.9) !important; -webkit-backdrop-filter: blur(36px) saturate(1.9) !important; box-shadow: 0 1px 0 0 var(--glass-lit) inset, 0 -10px 30px -18px rgb(0 0 0 / 0.5); border-top-color: var(--glass-edge) !important; }
.mdc-chip { background: var(--glass-fill) !important; box-shadow: var(--glass-shadow); }
@media (prefers-reduced-transparency: reduce) {
  .top, .sheet, .btn.outline, #mdc-tray { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .top, .sheet, .card, .task, .how3, .qa details, #mdc-tray { background: var(--card) !important; }
}

/* ---------- Claude or ChatGPT ---------- */
/* The splash's question: two big frosted choices. */
.intro .which { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; color: #fff; }
.intro .pick { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.intro .pick .more { min-width: 160px; justify-content: center; }
/* The ChatGPT setup: the address to paste, and the Plugins menu picture. */
.setup .address { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--glass-fill); box-shadow: var(--glass-shadow); }
.setup .address p { margin: 0; }
.setup .address code { font-size: 14px; overflow-wrap: anywhere; }
.setup .step-shot { margin: 4px 0 0; }
.setup .step-shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--glass-edge); }
.setup .step-shot figcaption { margin-top: 8px; color: var(--muted-foreground); font-size: 13px; }

/* ---------- Inside a chat: the host's own design rules, no glass ----------
   (Claude's MCP Apps guidelines and ChatGPT's UI guidelines: host colours and fonts, no gradients, no custom
   backgrounds, hairline borders. host-theme.js marks the page with data-view and data-host.) */
:root[data-view] body { background: var(--background); background-attachment: scroll; }
:root[data-view][data-host="claude"], :root[data-view][data-host="claude"] body { background: transparent; }
:root[data-view] .sidebar, :root[data-view] .top, :root[data-view] .search, :root[data-view] .card,
:root[data-view] .sheet, :root[data-view] .btn, :root[data-view] .pill, :root[data-view] .tabs button, :root[data-view] .chips button,
:root[data-view] #mdc-tray, :root[data-view] .mdc-chip, :root[data-view] .side a, :root[data-view] .sb-foot .add {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; background-image: none !important; }
:root[data-view] .sidebar { margin: 0; border-radius: 0; top: 0; height: 100vh; background: transparent; border-right: 0.5px solid var(--border); }
:root[data-view] .top { background: var(--background); }
/* the sticky header and filter row cover what scrolls under them: Claude's own background, not see-through */
:root[data-view] .bar { background: var(--background); backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-view] .search { background: var(--secondary); border: 0.5px solid var(--border); }
:root[data-view] .card { padding: 0; border-radius: 0; background: transparent; transform: none; }
:root[data-view] .card .body { padding: 12px 2px 4px; }
:root[data-view] .card .ph { box-shadow: 0 0 0 0.5px var(--border) inset !important; }
:root[data-view] .btn.outline, :root[data-view] .tabs button, :root[data-view] .chips button { background: transparent; border: 0.5px solid var(--border); }
:root[data-view] .side a[aria-current], :root[data-view] .sb-foot .add[aria-current] { background: var(--secondary); }
:root[data-view] #mdc-tray { background: var(--background) !important; border-top: 0.5px solid var(--border) !important; }
:root[data-view] .mdc-chip { background: var(--secondary) !important; }
:root[data-view][data-host="claude"] .btn, :root[data-view][data-host="claude"] .pill, :root[data-view][data-host="claude"] #mdc-go { border-radius: 8px; }
:root[data-view] .brand::before { display: none; }   /* the host shows Moredac's name and icon itself */
/* The ChatGPT version's "in progress" note, above every page. */
.wip { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--foreground);
  background: color-mix(in srgb, var(--warn) 14%, var(--glass-fill)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); }
.wip b { font-weight: 600; }
.wip[hidden] { display: none; }

/* ---------- Light: a warm paper ground, the same peach made deeper so it reads on white ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --background: oklch(0.975 0.008 80);
  --foreground: oklch(0.2 0.015 60);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.015 60);
  --popover: oklch(1 0 0);
  --muted: oklch(0.93 0.01 75);
  --muted-foreground: oklch(0.45 0.015 60);
  --secondary: oklch(0.93 0.01 75);
  --accent: oklch(0.93 0.01 75);
  --border: oklch(0.88 0.012 70);
  --line: oklch(0.88 0.012 70);
  --ring: var(--flower-l);
  --primary: var(--flower-l);
  --primary-hover: color-mix(in oklch, var(--flower-l) 86%, black);
  --primary-foreground: #fff;
  --glass: oklch(0.975 0.008 80 / 0.85);
  --glass-strong: oklch(0.975 0.008 80 / 0.95);
  --hover: oklch(0.95 0.008 75);
  --sidebar-foreground: oklch(0.32 0.015 60);
  --sidebar-accent: oklch(0.92 0.012 70);
  --glass-shadow: 0 1px 0 0 var(--glass-lit) inset, 0 0 0 1px var(--glass-edge) inset, 0 12px 40px -16px rgb(0 0 0 / 0.15);
  --ok: oklch(0.48 0.13 150); --warn: oklch(0.62 0.14 75); --bad: oklch(0.55 0.18 25);
}
:root[data-theme="light"] .intro { backdrop-filter: blur(32px) saturate(1.2) brightness(0.42); -webkit-backdrop-filter: blur(32px) saturate(1.2) brightness(0.42); }
:root[data-theme="light"] .badge[style] { color: hsl(var(--h) 60% 32%); }
:root[data-theme="light"] .dot[style] { background: hsl(var(--h) 60% 45%); }
:root[data-theme="light"] .pill { box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.35); }
:root[data-theme="light"] .claude-mock, :root[data-theme="light"] .cm-art { background: var(--card); }
:root[data-theme="light"] dialog::backdrop { background: rgb(0 0 0 / 0.3); }
/* the top bar on a phone: Help keeps its icon, the card count gives the search box its room */
@media (max-width: 559px) { .help { width: 40px; padding: 0; justify-content: center; } .help span { display: none; } }
@media (max-width: 419px) { .tally { display: none; } }
/* keyboard focus stays visible on things that draw their own shadow (tiles, pills, buttons) */
.task:focus-visible, .pill:focus-visible, .btn:focus-visible, .x:focus-visible, .help:focus-visible, .qa summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
:root[data-view] #theme { display: none; }   /* inside a chat, light or dark is the chat's own */

/* ---------- Every page in one look: the home page's headings, tiles and folds on About, How it works, Teams,
   Most tried and the card page ---------- */
.about h1, .how-page h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.about .lead, .how-page .lead { font-size: 18px; line-height: 1.5; max-width: 52ch; text-wrap: pretty; }
.about h2, .how-page h2 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.about section { margin-top: 44px; }
.about h2 + p, .about h2 + .scatter, .about h2 + .cards3, .about h2 + .gets { margin-top: 12px; }
/* a question you can open: a tile, + on the right, like Help */
.fold, .faq .fold { margin: 10px 0 0; padding: 0 18px; border: 0; border-radius: 16px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted-foreground); }
.fold > summary { display: flex; width: 100%; min-height: 52px; padding: 8px 0; font-size: 15px; }
.fold > summary::after { margin-left: auto; padding-left: 12px; font-size: 20px; }
.fold[open] { padding-bottom: 16px; }
.fold > p { margin-top: 0; font-size: 14px; }
.about .fold { margin-top: 10px; }
.acard, .about .levels li { border: 0; border-radius: 18px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); }
.duo .node { border: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--border); }
.duo .node.claude { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--primary) 35%, transparent); }
.steps3 .panel, .shelf { border: 0; border-radius: 22px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); }
/* Teams: what a team gets, as three tiles */
.gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gets > div { padding: 16px; border-radius: 18px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); }
.gets dt { padding: 0; border: 0; }
.gets dd { margin: 6px 0 0; font-size: 14px; }
@media (max-width: 699px) { .gets { grid-template-columns: minmax(0, 1fr); } }
/* an empty page still offers one next step */
.empty-box { display: grid; justify-items: start; gap: 16px; padding: 24px; border-radius: 22px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); }
.empty-box .empty { padding: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; }
/* Connect: the AI's Add box and Moredac's sign-in page, drawn (no screenshot to go stale), numbered like the notes */
/* switching from the old connector: two short steps */
.switch-steps { list-style: none; padding: 0 0 4px; display: grid; gap: 16px; }
.switch-steps li { display: grid; gap: 6px; }
.switch-steps b { color: var(--foreground); }
/* the notice for a browser that set up the old connector */
.switch-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 0; padding: 10px 8px 10px 14px; border-radius: 14px; font-size: 14px; background: var(--primary-soft); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--primary) 30%, transparent); }
.switch-note[hidden] { display: none; }
.switch-note p { flex: 1 1 220px; margin: 0; }
.switch-note b { font-weight: 600; }
.switch-note .note-x { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 999px; color: var(--muted-foreground); }
.switch-note .note-x::before { content: ""; position: absolute; inset: -4px; }
.switch-note .note-x:hover { background: var(--tint-2); }
.switch-note .note-x svg { width: 16px; height: 16px; }
/* the card page says what a card needs (Ready to try, Needs …), in the colours the cards use */
.badge.lvl-ready, .badge.lvl-official { color: var(--ok); background: color-mix(in oklch, var(--ok) 14%, transparent); }

/* ---------- Round 2: fewer items, real pictures, Demo on the site ---------- */
/* sidebar: Home, Browse (the tasks fold out), Connect, Help; the status box and small links at the foot */
.side details.browse > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 8px; border-radius: 10px; color: var(--sidebar-foreground); font-size: 14px; white-space: nowrap; }
.side details.browse > summary:hover { background: var(--sidebar-accent); color: var(--foreground); }
.side details.browse > summary svg { width: 18px; height: 18px; flex: none; }
.side details.browse > summary::-webkit-details-marker { display: none; }
.side details.browse > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .15s ease-out; }
.side details.browse[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.side details.browse > a { padding-left: 20px; font-size: 13px; height: 34px; }
:root[data-sb="collapsed"] .side details.browse > a { padding-left: 11px; }
:root[data-sb="collapsed"] .side details.browse > summary::after { display: none; }
.status-box { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--tint); font-size: 13px; }
.status-box .sb-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.status-box .sb-row b { font-weight: 600; }
.status-box .sb-row small { margin-left: auto; color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.status-box .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted-foreground); opacity: .7; }
.status-box .dot.on { background: var(--ok); opacity: 1; }
.status-box .sb-line { margin: 0; font-size: 12px; color: var(--muted-foreground); }
.status-box .link { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; color: var(--foreground); }
.status-box .btn.sm { height: 34px; width: 100%; margin-top: 2px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0 6px; font-size: 12px; color: var(--muted-foreground); }
.foot-links a, .foot-links button { color: inherit; font-size: 12px; min-height: 28px; display: inline-flex; align-items: center; }
.foot-links a:hover, .foot-links button:hover { color: var(--foreground); }
:root[data-sb="collapsed"] .status-box, :root[data-sb="collapsed"] .foot-links { display: none; }
.status[data-level="neutral"] { --c: var(--muted-foreground); }
/* the catalog's own bar: sort, then tasks */
.browse-bar { display: grid; gap: 10px; min-width: 0; }
.segsort { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tint-2); width: max-content; max-width: 100%; }
.segsort a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13px; color: var(--muted-foreground); white-space: nowrap; }
.segsort a[aria-current] { background: var(--background); color: var(--foreground); font-weight: 500; box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.browse-bar .chips { flex-wrap: wrap; gap: 8px; padding: 0; }
.browse-bar .chip { height: 34px; padding: 0 12px; gap: 7px; background: var(--tint); font-size: 13px; color: var(--muted-foreground); }
.browse-bar .chip svg { width: 15px; height: 15px; }
.browse-bar .chip[aria-current] { background: var(--primary); color: var(--primary-foreground); }
.bar .browse-bar { padding: 12px 0 4px; }
.head.browse-head { display: grid; gap: 12px; padding-top: 44px; }
.head.browse-head h2 { font-size: 22px; letter-spacing: -0.02em; }
/* the home page's opening: the promise, a real picture, one button */
.hero .promise { margin-top: 16px; display: grid; gap: 6px; font-size: 14px; color: var(--muted-foreground); }
.hero .promise li { display: flex; align-items: center; gap: 8px; }
.hero .promise svg { width: 16px; height: 16px; color: var(--ok); }
.btn.big { height: 54px; padding: 0 26px; font-size: 16px; }
.hero-shots { position: relative; padding-bottom: 46px; min-width: 0; }
.hero-shots .over { position: absolute; left: -16px; right: 36px; bottom: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px -14px rgb(0 0 0 / .55), 0 0 0 1px var(--border); }
/* a real picture of the connector, in a plain frame with an honest label; the shade that matches the site shows */
.shot-frame { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--border), 0 20px 50px -26px rgb(0 0 0 / .55); min-width: 0; }
.shot-frame > figcaption { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); border-bottom: 1px solid var(--border); }
.shot-frame > figcaption i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.shot-frame img, .hero-shots .over img { display: block; width: 100%; height: auto; }
.shot-frame.tall img { max-height: 380px; object-fit: cover; object-position: top; }
.shade-light { display: none !important; }
:root[data-theme="light"] .shade-light { display: block !important; }
:root[data-theme="light"] .shade-dark { display: none !important; }
/* the three steps, as small scenes: the real views, the person's words drawn plainly */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-steps li { display: grid; gap: 10px; align-content: start; min-width: 0; }
.how-steps h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.how-steps h3 b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--foreground); color: var(--background); flex: none; }
.how-steps p { font-size: 14px; color: var(--muted-foreground); text-wrap: pretty; }
.shot-frame.scene { height: 254px; display: grid; align-content: center; gap: 10px; padding: 48px 14px 14px; }
.shot-frame.scene > figcaption { position: absolute; top: 0; left: 0; right: 0; }
.scene img.top { height: 192px; object-fit: cover; object-position: top; border-radius: 10px; }
.scene .said { justify-self: end; max-width: 85%; padding: 8px 12px; border-radius: 14px; background: var(--tint-2); font-size: 13px; }
.scene .tag { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-foreground); }
.scene .end { font-size: 12px; color: var(--muted-foreground); font-style: italic; }
.sec-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-h .link { margin-left: auto; font-size: 14px; color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 699px) { .how-steps { grid-template-columns: minmax(0, 1fr); } .hero-shots .over { left: 8px; right: 8px; } }
/* Demo, on the site: the card, an example or your text, the result (Markdown, or a live page in a sandbox) */
.demo-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 20px; border-radius: 22px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); }
.demo-box.compact { grid-template-columns: minmax(0, 1fr); padding: 16px; margin-top: 16px; }
.demo-in { display: grid; gap: 12px; align-content: start; min-width: 0; }
.demo-in h2 { font-size: 20px; letter-spacing: -0.02em; }
.demo-box.compact .demo-in h2 { font-size: 16px; }
.demo-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--tint); min-width: 0; }
.demo-card img, .demo-card .mono { width: 64px; aspect-ratio: 16 / 10; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.demo-card b { display: block; font-size: 14px; } .demo-card small { color: var(--muted-foreground); font-size: 12px; }
.demo-box.compact .demo-card { display: none; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 12px; background: var(--tint-2); width: max-content; }
.seg button { min-height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13px; color: var(--muted-foreground); }
.seg button[aria-pressed="true"] { background: var(--background); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.demo-in .sample { padding: 10px 12px; border-radius: 12px; background: var(--tint); font-size: 13px; color: var(--muted-foreground); }
.demo-in .sample small, .demo-result > small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 4px; }
.demo-in textarea { width: 100%; min-height: 84px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--tint); color: var(--foreground); font: inherit; font-size: 14px; resize: vertical; outline: none; }
.demo-in textarea:focus-visible { box-shadow: 0 0 0 3px var(--primary-ring); }
.demo-in .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-in .safe { font-size: 12px; color: var(--muted-foreground); }
.demo-result { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); font-size: 14px; line-height: 1.55; }
.demo-result .out { overflow-wrap: anywhere; } .demo-result .out p { margin: 0 0 8px; } .demo-result .out pre { overflow-x: auto; padding: 8px 10px; border-radius: 8px; background: var(--tint); }
.demo-result .faint, .making .faint { color: var(--muted-foreground); font-size: 13px; }
.demo-result .err { color: var(--bad); }
.demo-result iframe.live { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 420px; border: 0; border-radius: 10px; background: #fff; }   /* fixed on a card; Expand for the full view */
.live-wrap { position: relative; }
.live-expand { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; font: 600 13px/1 inherit; color: #fff; background: rgb(20 20 19 / .78); backdrop-filter: blur(6px); cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / .25); }
.live-expand:hover { background: rgb(20 20 19 / .92); } .live-expand:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.live-expand .ico { display: inline-flex; } .live-expand svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-pop { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: var(--card, var(--background)); color: var(--foreground); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6); overflow: hidden; }
.demo-pop::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(2px); }
.demo-pop .pop-head { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px 0 18px; font-size: 14px; }
.demo-pop .pop-x { width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 24px; line-height: 1; color: inherit; background: transparent; cursor: pointer; } .demo-pop .pop-x:hover { background: var(--tint); }
.demo-pop iframe.live.big { display: block; width: 100%; height: min(70vh, 640px); border: 0; background: #fff; }
.demo-result .code-fold summary { cursor: pointer; font-size: 12px; color: var(--muted-foreground); min-height: 32px; display: inline-flex; align-items: center; }
.demo-result .code-fold pre { max-height: 260px; overflow: auto; font-size: 12px; padding: 8px 10px; border-radius: 8px; background: var(--tint); }
.shimmer { height: 64px; border-radius: 8px; background: linear-gradient(90deg, transparent, var(--tint-2), transparent) 0 0 / 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .shimmer { animation: shim 1.2s linear infinite; } .demo-result iframe.live, .switch-note, .status-box { animation: fadein .18s ease-out; } }
@keyframes shim { to { background-position: -200% 0; } }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } }
@media (max-width: 799px) { .demo-box { grid-template-columns: minmax(0, 1fr); } }
/* Help: the question box first, chips, steps, topics, About */
.help-page { max-width: 920px; margin: 0 auto; padding: 32px 0 64px; display: grid; gap: 22px; }
.help-page h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
.help-page .lead { font-size: 17px; color: var(--muted-foreground); margin-top: 8px; }
.help-page .sec { padding-top: 18px; display: grid; gap: 14px; }
.help-page .sec > h2 { font-size: 22px; letter-spacing: -0.02em; }
.q-box { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--primary); }
.q-box > svg { width: 20px; height: 20px; color: var(--muted-foreground); flex: none; }
.q-box input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font-size: 16px; color: var(--foreground); }
.q-box .btn { height: 46px; border-radius: 999px; }
.q-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--primary), 0 0 0 4px var(--primary-ring); transition: box-shadow .15s ease-out; }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q-chips .chip { height: 36px; padding: 0 14px; background: var(--tint); color: var(--foreground); font-size: 13px; }
.q-chips .chip:hover { background: var(--tint-2); }
.results { padding: 8px; border-radius: 18px; background: var(--primary-soft); }
.results .none { padding: 10px 12px; color: var(--muted-foreground); }
details.topic { border-radius: 18px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--border); padding: 0 16px; }
details.topic > summary { list-style: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 56px; padding: 16px 0; cursor: pointer; }
details.topic > summary::-webkit-details-marker { display: none; }
details.topic > summary b { font-size: 16px; } details.topic > summary span { font-size: 13px; color: var(--muted-foreground); }
details.topic > summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted-foreground); }
details.topic[open] > summary::after { content: "\2013"; }
details.topic[open] { padding-bottom: 16px; }
details.topic .qa { margin-top: 0; }
details.topic .about { padding: 0 0 8px; max-width: none; }
details.topic .about h1 { font-size: 24px; }
/* Connect: what you're adding, the address, sign in, and the step that's impossible to miss */
.stage .gets { list-style: none; padding: 0; display: grid; gap: 8px; }
.stage .gets li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.stage .gets svg { width: 18px; height: 18px; color: var(--ok); }
.setup .address code { font-size: 16px; }
.setup .address .acts { margin-top: 6px; }
.setup .waiting { display: flex; align-items: center; gap: 12px; color: var(--muted-foreground); }
.setup .waiting .spin { width: 22px; height: 22px; border-width: 2.5px; }
.go-back { display: grid; gap: 16px; padding: 28px; border-radius: 26px; background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px color-mix(in oklch, var(--primary) 40%, transparent); }
.go-back .say { font-size: clamp(26px, 4vw, 36px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.go-back .type { display: inline-flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 12px 20px; border-radius: 999px; background: var(--background); box-shadow: inset 0 0 0 1px var(--border); font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.go-back .type .cur { width: 2px; height: 22px; background: var(--foreground); flex: none; }
@media (prefers-reduced-motion: no-preference) { .go-back .type .cur { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
/* sign-in: Google is the one button, GitHub a small link */
.opt.p.google { gap: 10px; height: 50px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.opt.p.google:hover { background: #f8f9fa; }
.opt .g { width: 18px; height: 18px; }
.alt-signin { display: block; margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; }
.alt-signin.off { text-decoration: none; }
/* a gentle press on everything pressable */
@media (prefers-reduced-motion: no-preference) { .btn, .pill, .chip, .segsort a, .seg button { transition: transform .12s ease-out, background-color .15s ease-out; } .chip:active, .segsort a:active, .seg button:active { transform: scale(.98); } }

/* ---------- The ChatGPT version of the site (not the views inside a chat) ----------
   host-theme.js paints ChatGPT's greys, system font and inverse main colour; this gives it ChatGPT's shapes too:
   pill buttons, flat grey surfaces instead of glass, no glow, and cards as a plain picture with text under it. */
:root[data-host="chatgpt"]:not([data-view]) { --glass-fill: var(--card); --glass-fill-strong: var(--card); --glass-shadow: inset 0 0 0 1px var(--border); }
:root[data-host="chatgpt"]:not([data-view]) :is(.fold, .acard, .about .levels li, .gets > div, .empty-box, .steps3 .panel, .shelf, .duo .node:not(.claude)) { box-shadow: none; }
:root[data-host="chatgpt"]:not([data-view]) .tablist [aria-selected="true"] { background: var(--background); box-shadow: inset 0 0 0 1px var(--border); }
:root[data-host="chatgpt"]:not([data-view]) :is(.btn, .search, .help, .trigger, .icon-btn, .how3 .n) { border-radius: 999px; }
:root[data-host="chatgpt"]:not([data-view]) .btn:not(.outline):not(.ghost):not(.link) { box-shadow: none; font-weight: 500; }
:root[data-host="chatgpt"]:not([data-view]) .btn.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border); backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-host="chatgpt"]:not([data-view]) .btn.outline:hover { background: var(--secondary); }
:root[data-host="chatgpt"]:not([data-view]) .pill { box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); font-weight: 500; }
:root[data-host="chatgpt"]:not([data-view]) .search { height: 44px; padding-left: 16px; background: var(--card); }
:root[data-host="chatgpt"]:not([data-view]) .help { background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
:root[data-host="chatgpt"]:not([data-view]) .help:hover { background: var(--secondary); }
:root[data-host="chatgpt"]:not([data-view]) .hero h1 em { color: var(--muted-foreground); }
:root[data-host="chatgpt"]:not([data-view]) .card { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
:root[data-host="chatgpt"]:not([data-view]) .card:hover { background: transparent; transform: none; }
:root[data-host="chatgpt"]:not([data-view]) .card .ph { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--border); }
:root[data-host="chatgpt"]:not([data-view]) .card .body { padding: 10px 2px 0; }
:root[data-host="chatgpt"]:not([data-view]) :is(.task, .how3, .qa details) { background: var(--card); box-shadow: none; }
:root[data-host="chatgpt"]:not([data-view]) .task:hover { background: var(--secondary); }
:root[data-host="chatgpt"]:not([data-view]) :is(.task svg, .qa summary svg) { color: var(--muted-foreground); }
:root[data-host="chatgpt"]:not([data-view]) .how3 { border-radius: 24px; }
:root[data-host="chatgpt"]:not([data-view]) .how3 li + li { border-top-style: solid; }
:root[data-host="chatgpt"]:not([data-view]) .how3 .n { background: var(--background); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border); }
:root[data-host="chatgpt"]:not([data-view]) .unsure { background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
/* the @Moredac tip under "Add it to ChatGPT", shaped like ChatGPT's message box */
.at-tip { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; margin-top: 10px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--background); box-shadow: inset 0 0 0 1px var(--border); }
.at-tip .at { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--secondary); color: var(--foreground); font-weight: 600; font-size: 14px; }
.at-tip .at i { width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; background: var(--primary); color: var(--primary-foreground); }
.at-tip .at svg { width: 12px; height: 12px; }
.at-tip .msg { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: var(--muted-foreground); }
.at-tip b { flex: none; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--primary); color: var(--primary-foreground); }
.at-tip b svg { width: 16px; height: 16px; }
.how3 li p.tipline { margin-top: 6px; font-size: 12px; }

/* /me, admins: demo requests with a Grant each */
.me > .panel { margin-top: 28px; }
.req-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.req-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.req-who { display: grid; gap: 2px; flex: 1 1 180px; min-width: 0; }
.req-who small { color: var(--muted-foreground); font-size: 13px; }
.req-grant { display: flex; gap: 8px; align-items: center; }
.req-grant input { width: 84px; height: 36px; padding: 0 10px; border: 1px solid var(--input); border-radius: var(--radius-md); background: var(--background); color: var(--foreground); font: inherit; }
.req-err { flex-basis: 100%; color: var(--bad); font-size: 13px; }
.req-err:empty { display: none; }
/* the demo box: a kept example, and the day's demos used up */
.demo-result .saved { justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--background); color: var(--muted-foreground); font-size: 12px; }
.demo-result .limit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: start; min-width: 0; }
.demo-result .limit p { margin: 0; }
.demo-result .limit .btn { white-space: normal !important; max-width: 100%; height: auto; min-height: 44px; padding-block: 10px; text-align: center; }
/* My list on /me: the card row with Remove beside it */
.list-row { display: flex; align-items: center; gap: 8px; }
.list-row > :first-child { flex: 1; min-width: 0; }

.walk-link { font-size: 14px; }
.demo-result .running span { font-variant-numeric: tabular-nums; }
/* a card that needs Claude Code (Claude view only): the request, Open in Claude Code, and Copy */
.cc-box { display: grid; gap: 10px; margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.cc-box h3 { font-size: 15px; }
.cc-box .cc-line, .cc-box .cc-note { font-size: 13px; color: var(--muted-foreground); }
.cc-box .cc-req { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--tint); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.cc-box .acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* the kept demo: Clear result, and the chip that leads back to it while the visitor looks around */
.demo-result .res-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-result .res-head small { margin: 0; }
.demo-result .clear { font-size: 12px; color: var(--muted-foreground); min-height: 32px; }
.demo-result .running span { font-variant-numeric: tabular-nums; }
.demo-chip { position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: var(--foreground); color: var(--background); font: inherit; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); cursor: pointer; }
.demo-chip[hidden] { display: none; }
.demo-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.demo-chip i.ok { background: var(--ok); }
.demo-chip span { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .demo-chip:not([hidden]) { animation: fadein .18s ease-out; } }

/* ---------- "See how it works": the simulation (sim/sim.js), a Claude- or ChatGPT-like chat with the real view ---------- */
.sim { width: min(1240px, calc(100vw - 32px)); height: min(820px, calc(100dvh - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 22px;
  background: var(--background); color: var(--foreground); box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; }
.sim[open] { display: flex; }
.sim::backdrop { background: oklch(0.13 0.012 58 / 0.6); }
.sim-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px 10px 20px; }
.sim-top h2 { font-size: 14px; font-weight: 600; color: var(--muted-foreground); letter-spacing: .01em; }
.sim-skip { margin-left: auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--secondary); color: var(--foreground); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.sim-skip:hover { background: var(--accent); }
.sim-stage { position: relative; flex: 1; min-height: 0; margin: 0 14px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.sim-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; padding: 14px 20px 16px; }
.sim-cap { min-height: 84px; }
.sim-cap h3 { font-size: 20px; letter-spacing: -0.01em; outline: none; }
.sim-cap p { margin-top: 4px; color: var(--muted-foreground); font-size: 15px; max-width: 70ch; }
.sim-cap .sim-count { margin: 0 0 2px; font-size: 12px; font-variant-numeric: tabular-nums; }
.sim-cap .sim-note { font-size: 12px; }
.sim-cap .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sim-ctl { display: flex; gap: 8px; }
.sim-ctl .btn[hidden] { display: none; }

/* the simulated chat: its own neutral colours, light or dark like the site */
.sim-stage { --pg: #faf9f5; --tx: #141413; --mu: #73726c; --bub: #f0eee6; --ln: rgb(31 30 29 / .15); --cmp: #fff; }
.sim-shell {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--pg); color: var(--tx); font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, sans-serif; }
.sim[data-scheme="dark"] .sim-stage { --pg: #262624; --tx: #faf9f5; --mu: #9c9a92; --bub: #141413; --ln: rgb(222 220 209 / .15); --cmp: #30302e; }
.sim.gpt .sim-stage { --pg: #ffffff; --tx: #0d0d0d; --mu: #6b6b6b; --bub: #f4f4f4; --ln: rgb(0 0 0 / .1); --cmp: #fff; }
.sim.gpt .sim-shell { font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.sim.gpt[data-scheme="dark"] .sim-stage { --pg: #212121; --tx: #ececec; --mu: #a3a3a3; --bub: #303030; --ln: rgb(255 255 255 / .1); --cmp: #303030; }
.sim-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--ln); font-size: 14px; }
.sim-bar .mark { width: 18px; height: 18px; border-radius: 50%; background: var(--mu); opacity: .5; }
.sim-bar span { color: var(--mu); }
.sim-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.sim-shell.panel-open .sim-main { grid-template-columns: minmax(0, 1fr) 440px; }
.sim-left { position: relative; min-height: 0; display: flex; flex-direction: column; }
.sim-chat { flex: 1; min-height: 0; overflow-y: auto; }
.sim-col { max-width: 700px; margin: 0 auto; padding: 20px 18px 24px; display: grid; gap: 14px; }
.sim-user { justify-self: end; max-width: 82%; padding: 9px 14px; border-radius: 16px; background: var(--bub); }
.sim-ai.answer p { margin: 0 0 6px; } .sim-ai .used { color: var(--mu); font-size: 13px; font-style: italic; }
.sim-slot { min-height: 0; } .sim-slot.empty { height: 44px; border: 1px dashed var(--ln); border-radius: 12px; display: grid; place-items: center; color: var(--mu); font-size: 13px; }
.sim-slot iframe { display: block; width: 100%; border: 0; }
.sim-compose { margin: 0 auto 14px; width: min(700px, calc(100% - 28px)); min-height: 50px; padding: 13px 16px; border-radius: 18px; border: 1px solid var(--ln); background: var(--cmp); color: var(--tx); box-shadow: 0 4px 16px rgb(0 0 0 / .05); }
.sim-compose .sim-ph { color: var(--mu); }
.sim-panel { border-left: 1px solid var(--ln); min-height: 0; }
.sim-layer { position: absolute; z-index: 2; overflow: hidden; pointer-events: none; }
.sim-layer.over { background: var(--pg); }
.sim-layer iframe { display: block; width: 100%; border: 0; background: transparent; }
.sim-ring { position: absolute; z-index: 3; border-radius: 12px; box-shadow: 0 0 0 3px var(--primary); pointer-events: none; transition: left .2s var(--ease), top .2s var(--ease), width .2s var(--ease), height .2s var(--ease); }
.sim-ring[hidden] { display: none; }
@media (max-width: 700px) {
  .sim { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .sim-top { padding: 8px 10px 8px 14px; } .sim-top h2 { font-size: 12px; }
  .sim-stage { margin: 0 8px; }
  .sim-foot { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
  .sim-cap { min-height: 0; } .sim-cap h3 { font-size: 17px; } .sim-cap p { font-size: 14px; } .sim-cap .sim-note { display: none; }
  .sim-ctl .btn { flex: 1; }
  .sim-col { padding: 14px 12px; }
}
/* Help: the short reply written from the help answers, above them */
.results .reply { margin: 4px 4px 8px; padding: 12px 14px; border-radius: 14px; background: var(--card); }
.results .reply p { margin: 0 0 6px; }
.results .reply small { color: var(--muted-foreground); font-size: 12px; }
/* a written demo result (Markdown): headings, lists and quotes that read like a document */
.demo-result .out :is(h3, h4, h5, h6) { margin: 14px 0 4px; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.demo-result .out :is(ul, ol) { margin: 0 0 8px; padding-left: 20px; }
.demo-result .out ul { list-style: disc; } .demo-result .out ol { list-style: decimal; }
.demo-result .out li { margin: 3px 0; }
.demo-result .out blockquote { margin: 10px 0 4px; padding: 2px 0 2px 12px; border-left: 3px solid var(--border); color: var(--muted-foreground); }
.demo-result .out blockquote p { margin: 0; }
/* an app on its card page: the real app in the page, and the ways to get it running yourself */
.live-box { display: grid; gap: 10px; margin-top: 14px; }
.live-box h3, .run-box h3 { font-size: 15px; }
.live-box .app-live { display: block; width: 100%; height: min(640px, 70vh); border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--border), var(--shadow-xs); }
.live-box .live-line { font-size: 13px; color: var(--muted-foreground); }
@media (max-width: 600px) { .live-box .app-live { height: 60vh; } }   /* room above and below to keep scrolling the page */
.run-box { display: grid; gap: 12px; margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.run-box .run-lead, .run-box .run-ask { font-size: 14px; color: var(--muted-foreground); }
.run-box .way { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.run-box .way > b { font-size: 14px; }
.run-box .way > p { font-size: 13px; color: var(--muted-foreground); }
.run-box .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-film { display: grid; gap: 8px; min-width: 0; }
.hero-film video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; box-shadow: 0 16px 40px -14px rgb(0 0 0 / .55), 0 0 0 1px var(--border); }
.hero-film small { font-size: 13px; color: var(--muted-foreground); text-align: center; }
.try-real { display: grid; gap: 18px; }
.try-real .copy { display: grid; gap: 10px; justify-items: start; }
.try-real h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.try-real .copy > p { font-size: 16px; line-height: 1.5; color: var(--muted-foreground); max-width: 68ch; text-wrap: pretty; }
.try-real .copy > p a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
.demo-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.demo-arrow { flex: none; width: 36px; height: 36px; padding: 0; font-size: 22px; line-height: 1; }
.demo-strip { flex: 1 1 auto; min-width: 0; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 3px; }
.demo-strip::-webkit-scrollbar { display: none; }
.demo-tab { flex: 0 0 176px; scroll-snap-align: start; display: grid; gap: 2px; padding: 8px; text-align: left; border-radius: 12px; background: var(--card); color: inherit; font: inherit; border: 0; cursor: pointer; box-shadow: 0 0 0 1px var(--border); }
.demo-tab img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; margin-bottom: 6px; background: #111; }
.demo-tab b { font-size: 14px; font-weight: 600; }
.demo-tab span { font-size: 12.5px; color: var(--muted-foreground); }
.demo-tab[aria-selected="true"] { box-shadow: 0 0 0 2px var(--primary); }
.demo-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.demo-panel { display: grid; gap: 10px; }
.demo-panel[hidden] { display: none; }
.demo-note { font-size: 14.5px; line-height: 1.5; color: var(--muted-foreground); }
.demo-note a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 699px) { .demo-arrow { display: none; } .demo-tab { flex-basis: 140px; } }
.demo-frame { border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--border), 0 24px 60px -24px rgb(0 0 0 / .6); }
.df-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.df-bar b { font-weight: 600; white-space: nowrap; }
.df-name { flex: 1 1 auto; min-width: 0; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-status { color: var(--muted-foreground); white-space: nowrap; font-variant-numeric: tabular-nums; }
.df-out a { color: var(--primary); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.df-stage { position: relative; height: clamp(380px, 64vh, 720px); background: #111; }
.df-stage img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.df-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.df-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 16px; text-align: center; background: linear-gradient(rgb(0 0 0 / .2), rgb(0 0 0 / .6)); }
.df-cover p { max-width: 40ch; font-size: 14px; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .6); }
@media (max-width: 699px) { .df-name { display: none; } .df-stage { height: 70vh; } }
.cc-box.bare { margin-top: 0; padding: 0; background: none; box-shadow: none; }

/* the guided setup: what to do in the AI's own tab, in words (not drawn screens), and help when it goes wrong */
.setup .preview h2, .setup .trouble h2 { font-size: 15px; margin-bottom: 8px; }
.setup .in-ai { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 640px; }
.setup .in-ai li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: color-mix(in oklch, var(--foreground) 4%, transparent); border: 1px solid var(--input); }
.setup .in-ai .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--background); border: 1px solid var(--input); font-variant-numeric: tabular-nums; }
.setup .in-ai b { display: block; font-weight: 600; }
.setup .in-ai p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
.setup .preview .in-ai { gap: 4px; }
.setup .preview .in-ai li { padding: 6px 0; background: none; border: 0; border-radius: 0; }   /* a preview: a plain list, nothing that looks pressable */
.setup .trouble { max-width: 640px; }   /* a fold: help stays out of the way until wanted */
.setup .trouble[open] { padding-bottom: 14px; }
.setup .trouble > :not(summary) { margin-top: 10px; }
.setup.beside { max-width: 480px; margin-left: 0; }   /* the AI's window covers the right of the screen (setup-flow.js openAi) */
.setup .trouble .q-chips { margin: 0; }
.setup .q-box.small { display: flex; gap: 8px; }
.setup .q-box.small input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--input); background: var(--background); color: var(--foreground); font: inherit; }
.setup .ask-out .reply { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); }
.setup .ask-out .reply small { color: var(--muted-foreground); font-size: 12px; }
.setup .ask-out .qa-one { margin-top: 6px; } .setup .ask-out .qa-one summary { cursor: pointer; font-weight: 500; }
.setup .ask-out .faint { color: var(--muted-foreground); font-size: 14px; }
.go-back .note { font-size: 14px; color: var(--muted-foreground); }

/* the setup's live tracker: 1 Add in Claude · 2 Sign in · 3 Allow · 4 Say hello. Ticks come from real signals; nothing in it
   is pressable (Moredac's sign-in and Allow pages draw the same). Done: green with a tick. Now: the accent, filled. */
.tracker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tracker li { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 5px; border-radius: 999px; font-size: 14px; color: var(--muted-foreground); }
.tracker li + li::before { content: ""; width: 14px; height: 2px; margin-right: 4px; border-radius: 2px; background: var(--border); }
.tracker i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px var(--border); }
.tracker i svg { width: 14px; height: 14px; stroke-width: 2.5; }
.tracker [data-state="done"] { color: var(--foreground); }
.tracker [data-state="done"] i { background: var(--ok); color: oklch(0.2 0.03 150); box-shadow: none; }   /* dark tick on the bright green of the dark theme */
:root[data-theme="light"] .tracker [data-state="done"] i { color: #fff; }
.tracker [data-state="now"] { color: var(--foreground); font-weight: 600; background: color-mix(in oklch, var(--foreground) 6%, transparent); }
.tracker [data-state="now"] i { background: var(--primary); color: var(--primary-foreground); box-shadow: none; }
@media (max-width: 600px) { .tracker li:not([data-state="now"]) > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .tracker li + li::before { width: 8px; } }
/* each step: NOW (one action), NEXT, YOU'LL SEE */
.setup .count { margin-bottom: -12px; font-size: 13px; font-weight: 500; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.setup .moved { justify-self: start; padding: 5px 12px; border-radius: 999px; background: color-mix(in oklch, var(--ok) 16%, transparent); color: var(--ok); font-size: 14px; font-weight: 600; }
.setup .part { display: grid; gap: 8px; max-width: 680px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--border); }
.setup .part.now { border-color: color-mix(in oklch, var(--primary) 45%, transparent); background: var(--primary-soft); }
.setup .part-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.setup .part.now .part-label { color: var(--primary); }
.setup .part .do { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.setup .part .btn.big { justify-self: start; }
.setup .part .sub { font-size: 14px; color: var(--muted-foreground); }
.setup .part .in-label { margin-top: 6px; font-size: 14px; font-weight: 600; }
.setup .part .describe { color: var(--muted-foreground); font-style: italic; }
.setup .part .shot-frame { max-width: 560px; pointer-events: none; }
.setup .part.now .in-ai li { background: var(--background); }
.setup .manual { font-size: 14px; color: var(--muted-foreground); }
@media (max-width: 600px) { .setup .part { padding: 14px; } .setup .part .do { font-size: 18px; } .setup .part .btn.big { justify-self: stretch; } }
.setup .link > svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }

/* Tool extractor: the credit on an extracted tool, and the list of tools on its project's card. */
.xfrom { margin: 0 0 12px; font-size: 13px; color: var(--muted-foreground); } .xfrom a { color: var(--foreground); }
.xtools { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--primary-soft); }
.xtools h3 { margin: 0 0 4px; font-size: 15px; } .xtools p { margin: 0 0 8px; font-size: 14px; color: var(--muted-foreground); }
.xtools ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; } .xtools a { color: var(--foreground); font-weight: 500; }

/* ---------- Home river: one idea per screen, read top to bottom (welcome, film, a real app, then Browse) ---------- */
.river { min-height: calc(100svh - var(--top)); display: grid; align-content: center; justify-items: center; gap: 20px; padding: 48px 0; text-align: center; }
.hero.river { grid-template-columns: minmax(0, 1fr); padding: 48px 0; }
.hero.river .copy { display: grid; justify-items: center; }
.hero.river h1 { font-size: clamp(40px, 6.4vw, 76px); max-width: 14ch; }
.hero.river .copy > p { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); max-width: 40ch; }
.hero.river .acts { margin-top: 32px; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 10px; }
.hero.river .acts .btn { flex: none; }   /* the mobile rule's flex-basis 100% would wrap the note into a new column */
.river-next { margin-top: 40px; font-size: 14px; color: var(--muted-foreground); display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.river-next::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.river-next:hover { color: var(--foreground); }
.river > h2, .try-real h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.film .hero-film, .film .hero-shots { width: min(100%, 960px); }
.try-real.river { min-height: 0; justify-items: stretch; text-align: left; }
.try-real .copy { justify-items: center; text-align: center; }
.river + .head.browse-head { padding-top: 24px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes river-in { from { opacity: 0; transform: translateY(24px); } }
    .river:not(.hero) > * { animation: river-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@media (max-width: 699px) {
  .river { min-height: 0; padding: 40px 0; }
  .hero.river { min-height: calc(88svh - var(--top)); }
  .hero.river .acts { align-self: stretch; }
  .browse-bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .browse-bar .chips::-webkit-scrollbar { display: none; }
  .browse-bar .chip { flex: none; }
}

/* ---------- Seed to Bloom: the garden look for Moredac's own style (not the ChatGPT look) ---------- */
:root:not([data-host="chatgpt"]) :is(h1, h2, .card h3, .brand) { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
:root:not([data-host="chatgpt"]) :is(h1, h2) em { font-style: italic; font-weight: 500; }
:root:not([data-host="chatgpt"]) .brand { font-size: 22px; }
:root:not([data-host="chatgpt"]) h1 { font-size: 1.18em; }   /* the serif reads small beside the sans */
:root:not([data-host="chatgpt"]) .card h3 { font-size: 19px; line-height: 1.1; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .8s; animation-timing-function: ease; }

/* the flower picker in the top bar */
.flower-wrap { position: relative; }
.dot-flower { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, var(--center) 0 18%, transparent 19%), conic-gradient(from 20deg, var(--petal-light), var(--petal), var(--petal-deep), var(--petal), var(--petal-light)); box-shadow: 0 0 10px color-mix(in srgb, var(--petal) 45%, transparent); }
.flower-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: var(--z-pop); width: min(330px, calc(100vw - 32px)); padding: 16px 16px 14px; border-radius: 20px; background: var(--popover); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border), 0 24px 60px -20px rgb(0 0 0 / .6); }
.flower-pop h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.flower-pop p { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 8px 2px 6px; border-radius: 14px; color: var(--muted-foreground); font-size: 11px; font-weight: 700; }
.sw:hover { color: var(--foreground); }
.sw[aria-pressed="true"] { color: var(--foreground); background: var(--muted); }
.sw i { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle, var(--c) 0 17%, transparent 18%), conic-gradient(from 20deg, var(--p), var(--d), var(--p)); transition: transform .3s, box-shadow .3s; }
.sw[aria-pressed="true"] i { transform: scale(1.06); box-shadow: 0 0 0 2px var(--popover), 0 0 0 4px var(--p), 0 0 16px var(--p); }

/* ---------- the welcome walk (intro.js): one seed, one idea at a time ---------- */
@property --vx { syntax: '<length-percentage>'; inherits: true; initial-value: 53%; }
@property --vy { syntax: '<length-percentage>'; inherits: true; initial-value: 46%; }
html.walking { overflow: hidden; }
.walk { position: fixed; inset: 0; z-index: var(--z-intro); isolation: isolate; overflow: hidden auto; display: flex; flex-direction: column; color: var(--cream);
  background: var(--loam); font: 400 16px/1.6 var(--font-sans); --lx: 17%; --ly: 84%; --G: 16svh; --H: min(74svh, 120vw);
  transition: --vx 1.6s cubic-bezier(.45,.05,.25,1), --vy 1.6s cubic-bezier(.45,.05,.25,1), opacity .7s ease; }
.walk[hidden] { display: none; }
html.no-intro .walk:not(.lighting):not(.out):empty { display: none; }
.walk.out { opacity: 0; pointer-events: none; }
.walk > [aria-hidden] { position: absolute; inset: 0; pointer-events: none; }
.walk .w-sky { z-index: 0; background: radial-gradient(900px 620px at 70% 8%, color-mix(in srgb, var(--petal) 6%, transparent), transparent 62%), radial-gradient(700px 500px at 10% 100%, color-mix(in srgb, var(--moss) 40%, transparent), transparent 70%); }
.walk .w-dawn { z-index: 0; opacity: 0; transition: opacity 2.2s ease; background: radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--petal) 13%, transparent), transparent 70%), radial-gradient(ellipse 70% 55% at 18% 92%, rgb(134 163 116 / .16), transparent 70%), var(--loam-2); }
.walk .w-ground { z-index: 0; inset: calc(100svh - var(--G)) 0 auto 0; height: var(--G); border-top: 1px solid rgb(241 234 223 / .07);
  background: radial-gradient(rgb(241 234 223 / .045) 1px, transparent 1.6px) 0 0/23px 19px, radial-gradient(60% 50% at 50% 0, color-mix(in srgb, var(--moss) 55%, transparent), transparent 75%), linear-gradient(180deg, var(--loam-2) 0, var(--soil) 40%); }
.walk .w-warm { z-index: 1; background: radial-gradient(circle 440px at var(--lx) var(--ly), rgb(var(--glow) / .13), rgb(134 163 116 / .05) 45%, transparent 72%); }
.walk .w-veil { z-index: 2; transition: opacity 1.8s ease; background: radial-gradient(ellipse 64% 92% at var(--vx) var(--vy), transparent 0, color-mix(in srgb, var(--soil) 14%, transparent) 55%, color-mix(in srgb, var(--soil) 86%, transparent) 86%, color-mix(in srgb, var(--soil) 96%, transparent) 100%); }
.walk .w-lamp { z-index: 3; inset: auto; left: var(--lx); top: var(--ly); width: 400px; height: 400px; margin: -200px 0 0 -200px; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgb(var(--glow) / .34) 0, color-mix(in srgb, var(--petal) 17%, transparent) 17%, color-mix(in srgb, var(--petal-deep) 7%, transparent) 37%, transparent 62%); animation: w-breathe 9s ease-in-out infinite; }
@keyframes w-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .82; transform: scale(.97); } }
.walk .plant { position: absolute; z-index: 3; left: 17%; height: var(--H); width: calc(var(--H) * .6667); top: calc(100svh - var(--G) - var(--H) * .86667); transform: translateX(-50%); overflow: visible; pointer-events: none; fill: initial; stroke: initial; }
.walk.lighting .w-veil { opacity: 0; } .walk.lighting .w-dawn { opacity: 1; } .walk.lighting .w-story { opacity: 0; }
.walk .w-top { position: absolute; z-index: 5; inset: 0 0 auto 0; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 40px); }
.walk .w-brand { display: flex; align-items: center; gap: 9px; font: 600 24px/1 var(--font-display); }
.walk .mk { width: 26px; height: 26px; flex: none; }
.walk .w-skip { font-size: 14px; font-weight: 600; color: rgb(241 234 223 / .78); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(241 234 223 / .4); }
.walk .w-skip:hover { color: var(--cream); }
.walk .w-story { position: relative; z-index: 4; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 96px clamp(16px, 4vw, 40px) calc(var(--G) + 24px) calc(32% + 8px); transition: opacity 1.2s ease; }
.walk .ideas { display: grid; }
.walk .idea { grid-area: 1/1; max-width: 860px; align-self: center; transform: translateX(calc(var(--o, 0) * 112%)); opacity: 0; transition: transform 1.4s cubic-bezier(.45,.05,.25,1), opacity 1.2s ease; }
.walk .idea.cur { opacity: 1; }
.walk .idea.near { opacity: .07; filter: blur(1.5px); }
.walk.still .idea { transition: none; }
.walk .idea h1 { font: 500 clamp(3.1rem, 7.4vw, 6.2rem)/.95 var(--font-display); letter-spacing: -.02em; max-width: 10ch; }
.walk .idea h2 { font: 500 clamp(2.1rem, 3.8vw, 3.2rem)/1.02 var(--font-display); letter-spacing: -.01em; margin-bottom: .9rem; text-wrap: balance; }
.walk .idea :is(h1, h2) em { color: var(--petal); font-weight: 400; font-style: italic; }
.walk .lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: rgb(241 234 223 / .78); max-width: 30ch; margin-top: 1.3rem; }
.walk .say { color: rgb(241 234 223 / .78); max-width: 32ch; font-size: 1.1rem; }
.walk .say b { color: var(--cream); }
.walk .define { border-left: 2px solid var(--petal); padding-left: 1rem; }
.walk .kicker { font: 700 .78rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--petal); margin-bottom: .7rem; }
.walk .which { display: flex; align-items: center; gap: 6px; margin-top: 1.6rem; font-size: 14px; color: rgb(241 234 223 / .6); }
.walk .which span { margin-right: 4px; }
.walk .which button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(241 234 223 / .2); color: rgb(241 234 223 / .78); font-weight: 700; font-size: 14px; }
.walk .which button[aria-pressed="true"] { background: rgb(241 234 223 / .1); border-color: var(--petal); color: var(--cream); }
.walk .pair { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.walk .thread { display: flex; flex-direction: column; gap: .6rem; }
.walk .bub { max-width: 90%; padding: .85rem 1.1rem; border-radius: 20px; font-size: 1.05rem; line-height: 1.45; }
.walk .bub.me { align-self: flex-end; background: var(--petal); color: var(--loam); border-bottom-right-radius: 6px; font-weight: 600; }
.walk .bub.cl { align-self: flex-start; background: var(--loam-3); box-shadow: inset 0 0 0 1px rgb(241 234 223 / .13); border-bottom-left-radius: 6px; }
.walk .who { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgb(241 234 223 / .56); margin-bottom: .3rem; }
.walk .bub.me .who { color: color-mix(in srgb, var(--loam) 60%, transparent); }
.walk .bub.past { opacity: .55; }
.walk .using { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 800; color: var(--petal); margin-bottom: .45rem; }
.walk .using .mk { width: 16px; height: 16px; }
.walk .slides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .75rem; }
.walk .slide { aspect-ratio: 16/10; border-radius: 6px; background: var(--cream); padding: 9% 10%; display: flex; flex-direction: column; gap: 12%; }
.walk .slide b { font: 600 .74rem/1.05 var(--font-display); color: var(--loam); }
.walk .slide i { display: block; height: 3px; border-radius: 2px; background: rgb(20 17 14 / .22); width: 78%; }
.walk .slide i + i { width: 56%; }
.walk .slide.s2 { background: var(--petal); } .walk .slide.s3 { background: var(--moss); } .walk .slide.s3 b { color: var(--cream); }
.walk .toolcard { display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; align-items: center; padding: .8rem; border-radius: 20px; background: var(--loam-2); box-shadow: inset 0 0 0 1px rgb(241 234 223 / .13); }
.walk .ph { display: block; overflow: hidden; aspect-ratio: 4/3; border-radius: 14px; background: var(--moss); }
.walk .ph img { width: 100%; height: 100%; object-fit: cover; }
.walk .toolcard h3 { font: 600 1.6rem/1 var(--font-display); margin-bottom: .3rem; }
.walk .toolcard p { font-size: .92rem; line-height: 1.45; color: rgb(241 234 223 / .78); }
.walk .picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.walk .pick { display: block; width: 100%; text-align: left; background: var(--loam-2); box-shadow: inset 0 0 0 1px rgb(241 234 223 / .13); border-radius: 16px; padding: .45rem .45rem .7rem; transition: box-shadow .4s; }
.walk .pick > span:not(.ph) { display: block; font-size: .82rem; line-height: 1.3; margin: .5rem .2rem .3rem; color: rgb(241 234 223 / .78); }
.walk .pick i { display: block; font-style: normal; font-size: .74rem; font-weight: 800; letter-spacing: .06em; margin-left: .2rem; color: rgb(241 234 223 / .56); }
.walk .pick[aria-pressed="true"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--petal) 70%, transparent), 0 0 30px -6px color-mix(in srgb, var(--petal) 40%, transparent); }
.walk .pick[aria-pressed="true"] i { color: var(--petal); }
.walk .cap { font-size: .88rem; color: rgb(241 234 223 / .56); margin-top: .7rem; }
.walk .w-controls { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 2.4rem; }
.walk .pdots { display: flex; gap: 9px; }
.walk .pdots li { width: 8px; height: 8px; border-radius: 50%; background: rgb(241 234 223 / .2); transition: background .8s, box-shadow .8s; }
.walk .pdots li.on { background: var(--petal); box-shadow: 0 0 10px color-mix(in srgb, var(--petal) 80%, transparent); }
.walk .w-back { padding: .25rem .15rem; color: var(--petal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.walk .w-next { min-height: 54px; padding: 0 1.8rem; border-radius: 999px; font-weight: 700; font-size: 1rem; color: var(--petal-2);
  background: color-mix(in srgb, var(--petal) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--petal) 55%, transparent); transition: background .3s, box-shadow .3s; }
.walk .w-next:hover { background: color-mix(in srgb, var(--petal) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--petal) 70%, transparent), 0 0 40px color-mix(in srgb, var(--petal) 22%, transparent); }
.walk :focus-visible { outline: 2px solid var(--petal); outline-offset: 3px; box-shadow: none; }
@media (max-width: 1180px) { .walk .pair { grid-template-columns: 1fr; gap: 1.2rem; } }
@media (max-width: 899px) {
  .walk { --B: 25svh; --H: calc(var(--B) * 1.06); }
  .walk :is(.opt, .cap, .who) { display: none; }
  .walk .pick .ph { aspect-ratio: 16/10; }
  .walk .pick > span:not(.ph) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .walk .w-ground { inset: calc(64px + var(--B)) 0 0 0; height: auto; }
  .walk .plant { top: calc(64px + var(--B) - var(--H) * .86667); }
  .walk .w-veil { background: radial-gradient(ellipse 95% 72% at var(--vx) var(--vy), transparent 0, color-mix(in srgb, var(--soil) 12%, transparent) 55%, color-mix(in srgb, var(--soil) 85%, transparent) 88%, color-mix(in srgb, var(--soil) 95%, transparent) 100%); }
  .walk .w-lamp { width: 280px; height: 280px; margin: -140px 0 0 -140px; }
  .walk .w-story { justify-content: flex-start; padding: calc(64px + var(--B) + 22px) 16px 32px; }
  .walk .ideas { display: block; position: relative; }
  .walk .idea:not(.cur) { position: absolute; top: 0; left: 0; width: 100%; }
  .walk .idea h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .walk .lede { margin-top: .9rem; }
  .walk .idea h2 { font-size: clamp(1.75rem, 7.4vw, 2.3rem); margin-bottom: .6rem; }
  .walk .kicker { margin-bottom: .45rem; }
  .walk .bub { padding: .6rem .9rem; }
  .walk .toolcard { grid-template-columns: 96px 1fr; gap: .8rem; }
  .walk .toolcard h3 { font-size: 1.35rem; }
  .walk .w-controls { margin-top: 1.1rem; }
}
@media (max-width: 899px) and (max-height: 700px) { .walk { --B: 22svh; } }
@media (prefers-reduced-motion: reduce) { .walk, .walk *, .walk .w-lamp { transition: none !important; animation: none !important; } }

/* the home page's opening, after the walk: try first */
.hero.bloom { grid-template-columns: minmax(0, 1fr); }
.hero.bloom .kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.hero.bloom h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 500; letter-spacing: -0.01em; }
.hero.bloom h1 em { font-style: italic; font-weight: 500; }
.grow3 { width: 100%; text-align: left; list-style: none; counter-reset: grow; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; padding: 0; max-width: 880px; }
.grow3 li { counter-increment: grow; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.grow3 li::before { content: counter(grow); grid-row: span 2; font: italic 500 28px/1 var(--font-display); color: var(--primary); }
.grow3 b { font: 600 22px/1.1 var(--font-display); }
.grow3 span { font-size: 14px; color: var(--muted-foreground); margin-top: 4px; }
.hero.bloom .acts { margin-top: 22px; align-items: center; }
.hero.bloom .again { font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 699px) { .grow3 { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
:root[data-host="chatgpt"]:not([data-view]) :is(.grow3 li::before, .grow3 b) { font-family: var(--font-sans); font-style: normal; }
