/* ---------------------------------------------------------------------------
   Noerra shared visual system.
   Loaded last on Discover, the public agent profile, the owner workspace, the
   guide, the docs and the developer page. One token set, one header, one set
   of components (page intro, agent identity, status summary, status badge,
   agent navigation, activity feed, agent card, empty state, access gate, docs
   layout, code block). The homepage keeps its own stylesheet and shares the
   palette through brand.css.
   --------------------------------------------------------------------------- */
body.discovery,body.atelier,body.docs-shell{
  --bg:#101116;--surface:#191a22;--raised:#20212c;--line:#30313d;--line-strong:#3f4050;
  --text:#f3f1f7;--muted:#b1afbd;--dim:#9593a3;--accent:#d9c8fc;--accent-ink:#21182e;--accent-soft:#d9c8fc1f;
  --green:#a7d6be;--green-soft:#a7d6be1c;--amber:#ecd09a;--amber-soft:#ecd09a1f;--error:#f1a5af;
  --radius-s:10px;--radius-m:16px;--radius-l:20px;
  --page:1160px;--gutter:clamp(20px,4vw,40px);--header:72px;
  /* Legacy variable names used by older rules still in agents.css. */
  --studio-bg:var(--bg);--studio-surface:var(--surface);--studio-line:var(--line);--studio-muted:var(--muted);--studio-accent:var(--accent);--studio-text:var(--text);
  --ink:var(--text);--panel:var(--surface);--rail:var(--surface);--soft:var(--accent-soft);--identity:var(--accent);--directory-ink:var(--text);--directory-muted:var(--muted);--directory-line:var(--line);
  color-scheme:dark;background:var(--bg);color:var(--text);font:15px/1.6 Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased;
}
body.docs-shell{display:block;min-height:100vh;margin:0}
/* The docs pages load no other base stylesheet. */
body.docs-shell *,body.docs-shell *::before,body.docs-shell *::after{box-sizing:border-box}
body.docs-shell img,body.docs-shell svg{max-width:100%}
body.docs-shell ul,body.docs-shell ol{padding-left:22px}
body.docs-shell figure{margin:0}
body.discovery,body.atelier{display:block}
/* --header is declared on body, so the root needs literal values: the sticky header plus 16px of air. Below 800px the
   header wraps to two rows (wordmark row and navigation row, about 104px), so focused or scrolled-to content clears it. */
html{scroll-padding-top:88px}
@media(max-width:800px){html{scroll-padding-top:120px}}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.discovery p,body.atelier p,body.docs-shell p{color:var(--muted)}
body.discovery h1,body.discovery h2,body.discovery h3,body.atelier h1,body.atelier h2,body.atelier h3,body.docs-shell h1,body.docs-shell h2,body.docs-shell h3{margin:0;color:var(--text);letter-spacing:-.02em;line-height:1.25;font-weight:560}
body.discovery h1,body.atelier h1,body.docs-shell h1{font-size:clamp(34px,4.2vw,52px);letter-spacing:-.04em;line-height:1.08}
body.discovery h2,body.atelier h2,body.docs-shell h2{font-size:24px}
body.discovery h3,body.atelier h3,body.docs-shell h3{font-size:17px}
body.discovery em,body.atelier em,body.docs-shell em{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:400;color:var(--accent);letter-spacing:-.03em}
body.discovery a,body.atelier a,body.docs-shell a{color:inherit;text-decoration:none}
body.discovery a:hover,body.docs-shell a:hover{color:var(--text)}
body.discovery :focus-visible,body.atelier :focus-visible,body.docs-shell :focus-visible{outline:2px solid var(--accent);outline-offset:4px;box-shadow:none}
.skip{position:fixed;top:-100px;left:20px;z-index:50;padding:12px 16px;border-radius:10px;background:var(--accent);color:var(--accent-ink);font-weight:600}
.skip:focus{top:12px}
.eyebrow,.label{display:block;font-size:11px;font-weight:650;letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}
.muted{color:var(--muted)}
.small{font-size:13px}

/* Header: one bar everywhere. The homepage masthead mirrors it in landing.css. */
header.top.site-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:32px;height:auto;min-height:var(--header);max-width:none;margin:0;padding:0 var(--gutter);background:#101116f0;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.site-header .noerra-wordmark{color:var(--accent)!important}
.site-header .primary-navigation{display:flex;align-items:center;gap:26px;margin:0 auto;min-width:0}
.site-header .primary-navigation a{position:relative;display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:var(--muted);white-space:nowrap}
.site-header .primary-navigation a:hover{color:var(--text)}
.site-header .primary-navigation a[aria-current=page]{color:var(--text)}
.site-header .primary-navigation a[aria-current=page]:not(.nav-cta)::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--accent)}
.site-header .primary-navigation .nav-cta{margin-left:8px;padding:0 18px;min-height:44px;border:1px solid var(--line-strong);border-radius:11px;background:var(--raised);color:var(--text);font-weight:560}
.site-header .primary-navigation .nav-cta:hover{border-color:var(--accent);background:var(--raised)}
.site-header .primary-navigation .nav-cta[aria-current=page]{border-color:var(--accent)}
.site-header .site-header-tools{display:flex;align-items:center;gap:12px;flex:none}
.site-header .site-header-tools #environment{font-size:12px;color:var(--amber);max-width:200px;line-height:1.4}
.site-header .site-header-tools #environment:empty{display:none}
.site-header .site-header-tools button{min-height:40px;padding:8px 14px;font-size:13px}

/* Buttons, links, inputs. One primary action per context. */
body.discovery button,body.atelier button,body.docs-shell button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid var(--line-strong);border-radius:11px;background:var(--raised);color:var(--text);font:inherit;font-size:14px;font-weight:560;line-height:1.2;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
body.discovery button:hover,body.atelier button:hover,body.docs-shell button:hover,.button:hover{background:#262735;border-color:var(--accent)}
body.discovery button:disabled,body.atelier button:disabled,body.docs-shell button:disabled{opacity:.55;cursor:not-allowed;background:var(--raised);border-color:var(--line)}
body.discovery button.primary,body.atelier button.primary,.button.primary,body.discovery .hero-action.primary,.discovery-launch-dialog .primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
body.discovery button.primary:hover,body.atelier button.primary:hover,.button.primary:hover,body.discovery .hero-action.primary:hover{background:#e6daff;border-color:#e6daff;color:var(--accent-ink)}
.button.quiet,body.discovery button.quiet,body.atelier button.quiet{background:transparent}
body.discovery .hero-action,body.discovery .empty-action,.directory-empty .empty-action,body.atelier .empty-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:10px 18px;border:1px solid var(--line-strong);border-radius:11px;background:var(--raised);color:var(--text);font:inherit;font-size:14px;font-weight:560;cursor:pointer}
body.discovery .hero-action:hover,.directory-empty .empty-action:hover{border-color:var(--accent);background:#262735;color:var(--text)}
.text-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--accent);font-size:14px;font-weight:500;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;transition:text-decoration-color .18s}
.text-link:hover{text-decoration-color:currentColor;color:var(--accent)}
.text-link::after{content:'\2192'}
.text-link.external::after{content:'\2197'}
.text-link.back::after{content:none}
.text-link.back::before{content:'\2190'}
body.discovery input,body.discovery select,body.discovery textarea,body.atelier input,body.atelier select,body.atelier textarea,body.docs-shell input{display:block;width:100%;min-width:0;margin:0;padding:11px 14px;border:1px solid var(--line-strong);border-radius:11px;background:var(--surface);color:var(--text);font:inherit;font-size:15px;line-height:1.5}
body.discovery input::placeholder,body.atelier input::placeholder,body.atelier textarea::placeholder,body.docs-shell input::placeholder{color:var(--dim)}
body.discovery input:focus-visible,body.discovery select:focus-visible,body.discovery textarea:focus-visible,body.atelier input:focus-visible,body.atelier select:focus-visible,body.atelier textarea:focus-visible,body.docs-shell input:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-color:var(--accent)}
body.atelier label,body.discovery label{color:var(--muted);font-size:13px}
body.atelier textarea,body.discovery textarea{resize:vertical;min-height:96px}
.check,body.atelier .check,body.discovery .check{display:flex;align-items:flex-start;gap:10px;color:var(--text);font-size:14px;line-height:1.5}
.check input,body.atelier .check input,body.discovery .check input{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;padding:0;accent-color:var(--accent)}

/* Status badges: a dot, a text label and a tone. Green only for confirmed states, amber for pre-launch and warnings. */
.pill,.status-chip,body.discovery .status-chip,body.atelier .status-chip{display:inline-flex;align-items:center;gap:7px;min-height:28px;padding:3px 10px;border:1px solid transparent;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:560;line-height:1.3;white-space:nowrap;max-width:100%}
.pill::before,.status-chip::before,body.discovery .status-chip::before,body.atelier .status-chip::before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:currentColor;box-shadow:none}
.pill[data-tone=live],.status-chip[data-tone=live],body.discovery .status-chip[data-tone=live],body.atelier .status-chip[data-tone=live]{color:var(--green);background:var(--green-soft)}
.pill[data-tone=waiting],.status-chip[data-tone=waiting],body.discovery .status-chip[data-tone=waiting],body.atelier .status-chip[data-tone=waiting]{color:var(--amber);background:var(--amber-soft)}
.pill[data-tone=muted],.status-chip[data-tone=muted],body.discovery .status-chip[data-tone=muted],body.atelier .status-chip[data-tone=muted]{color:var(--muted);background:var(--raised)}
.pill[data-tone=error]{color:var(--error);background:#f1a5af1f}
.pill.wrap{white-space:normal}

/* Page frame and shared blocks. */
body.discovery main,body.atelier main{width:100%;max-width:var(--page);min-width:0;margin:0 auto;padding:28px var(--gutter) 64px}
.breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 20px;font-size:13px;color:var(--muted)}
.breadcrumb a{display:inline-flex;align-items:center;min-height:32px;color:var(--muted)}
.breadcrumb a:hover{color:var(--text)}
.breadcrumb .profile-back::before{content:'\2190';margin-right:8px}
.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px 32px;flex-wrap:wrap;padding:12px 0 28px}
.page-intro>div{min-width:0;max-width:640px}
.page-intro .eyebrow{margin-bottom:14px}
.page-intro p{margin:14px 0 0;font-size:16px;line-height:1.65}
.page-intro .page-intro-aside{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.card,.aside-card{border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
.aside-card{padding:22px;margin:0 0 16px}
.aside-card h2,.aside-card h3{font-size:15px;margin:0 0 14px}
.aside-card .pill{margin-bottom:10px}
.key-rows{display:grid;grid-template-columns:1fr;margin:0}
.key-rows>div,.key-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0;border:0;font-size:13px;color:var(--muted)}
.key-rows dt,.key-rows dd,.key-row dt,.key-row dd{margin:0;padding:0;border:0;font-size:13px}
.key-rows dt{color:var(--muted)}
.key-rows dd{color:var(--text);font-weight:500;text-align:right;overflow-wrap:anywhere}
.key-rows dd a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.key-rows dd[data-tone=live]{color:var(--green)}.key-rows dd[data-tone=waiting]{color:var(--amber)}.key-rows dd[data-tone=muted]{color:var(--muted)}
.footnote{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--muted)}
.callout{display:flex;align-items:flex-start;gap:12px;margin:20px 0;padding:16px 18px;border:1px solid var(--line-strong);border-radius:13px;background:var(--raised);color:var(--text)}
.callout::before{content:'';flex:none;width:8px;height:8px;margin-top:7px;border-radius:50%;background:var(--amber)}
.callout[data-tone=info]::before{background:var(--accent)}
.callout[data-tone=live]::before{background:var(--green)}
.callout strong{display:block;font-weight:600;color:var(--text);margin-bottom:4px}
.callout span,.callout p{display:block;margin:0;font-size:14px;line-height:1.6;color:var(--muted)}
.callout a{display:inline-flex;align-items:center;min-height:36px;margin-top:4px;color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.empty-state,.directory-empty,body.discovery .directory-empty{grid-column:1/-1;padding:48px 24px;text-align:center;border:1px dashed var(--line-strong);border-radius:var(--radius-l);background:transparent}
.empty-state h2,.directory-empty h2{font-size:22px;margin:0 0 8px}
.empty-state p,.directory-empty p{margin:0 auto;max-width:48ch;font-size:15px}
.directory-empty .empty-action{margin-top:18px}
.skeleton{position:relative;overflow:hidden;color:transparent!important;background:var(--raised)!important;border-radius:8px}
.skeleton *{visibility:hidden}
.privacy-note{display:flex;gap:10px;align-items:flex-start;margin:12px 2px 0;font-size:13px;line-height:1.6;color:var(--muted)}
.privacy-note::before{content:'';flex:none;width:12px;height:14px;margin-top:4px;border:1.6px solid currentColor;border-radius:3px 3px 4px 4px;box-shadow:inset 0 -5px 0 -3px currentColor;opacity:.8}

/* Discover. */
body.discovery .directory-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;align-items:center;margin:0 0 20px}
body.discovery .directory-search{position:relative;display:block;margin:0;font-size:0}
body.discovery .directory-search::before{content:'';position:absolute;left:16px;top:50%;width:11px;height:11px;margin-top:-8px;border:1.8px solid var(--muted);border-radius:50%;pointer-events:none}
body.discovery .directory-search::after{content:'';position:absolute;left:25px;top:50%;width:7px;height:1.8px;margin-top:3px;background:var(--muted);transform:rotate(45deg);transform-origin:left center;pointer-events:none}
body.discovery .directory-search input{min-height:48px;padding-left:42px}
body.discovery .directory-sort{display:flex;align-items:center;gap:10px;margin:0;font-size:13px;color:var(--muted);white-space:nowrap}
body.discovery .directory-sort select{width:auto;min-width:150px;min-height:48px;padding:10px 14px}
body.discovery .directory-filters{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0}
.chip,body.discovery .directory-filters button,body.discovery .activity-filters button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;font-weight:500}
.chip:hover,body.discovery .directory-filters button:hover,body.discovery .activity-filters button:hover{background:var(--raised);border-color:var(--line);color:var(--text)}
.chip[aria-pressed=true],body.discovery .directory-filters button[aria-pressed=true],body.discovery .activity-filters button[aria-pressed=true]{background:#2a2638;border-color:#454053;color:var(--accent)}
body.discovery .directory-count{margin:0;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;scroll-margin-top:calc(var(--header) + 16px)}
/* Discover (round 3, 20 Oct 2026): roomy launchpad cards, two a line at 1440 and one on phones. Each card is one link: a rounded
   logo on the left (a letter tile without one), then the name and $TICKER, a two-line description, and a footer with the status and
   the market cap. */
body.discovery :is(#profiles,#home-agents).profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;align-items:stretch}
body.discovery :is(#profiles,#home-agents) .profile-card{position:relative;display:flex;flex-direction:row;align-items:flex-start;gap:18px;min-width:0;min-height:0;height:auto;padding:18px 20px;margin:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);text-decoration:none;counter-increment:none;overflow:hidden;transition:border-color .18s,background-color .18s}
body.discovery :is(#profiles,#home-agents) .profile-card::before,body.discovery :is(#profiles,#home-agents) .profile-card::after{content:none;display:none}
body.discovery :is(#profiles,#home-agents) .profile-card:hover{border-color:var(--line-strong);background:var(--raised);transform:none;box-shadow:none}
body.discovery :is(#profiles,#home-agents) .profile-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body.discovery :is(#profiles,#home-agents) .profile-card.awaiting-reveal{opacity:1;transform:none}
body.discovery :is(#profiles,#home-agents) .agent-poster,body.discovery :is(#profiles,#home-agents) .agent-poster.has-media{position:relative;display:grid;place-items:center;flex:none;width:92px;height:92px;min-height:0;aspect-ratio:1;margin:0;padding:0;border:1px solid #e0caef33;border-radius:16px;background:linear-gradient(145deg,#3b2a5c,#1d1630);overflow:hidden}
body.discovery :is(#profiles,#home-agents) .agent-poster::after{content:none}
body.discovery :is(#profiles,#home-agents) .agent-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:none;transform:none}
body.discovery :is(#profiles,#home-agents) .agent-letter{position:static;inset:auto;font:italic 42px/1 Georgia,serif;color:#efe3ff;transform:none;text-shadow:none}
body.discovery :is(#profiles,#home-agents) .agent-tile-body{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1;align-self:stretch;padding:0}
body.discovery :is(#profiles,#home-agents) .agent-tile-head{display:flex;align-items:baseline;gap:8px;min-width:0}
body.discovery :is(#profiles,#home-agents) .agent-tile-name{margin:0;min-width:0;font-size:19px;font-weight:600;line-height:1.25;letter-spacing:-.015em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.discovery :is(#profiles,#home-agents) .agent-tile-ticker{flex:none;font-size:13px;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums}
body.discovery :is(#profiles,#home-agents) .agent-tile-description{margin:0;font-size:14px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
body.discovery :is(#profiles,#home-agents) .agent-tile-facts{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:auto 0 0;padding-top:8px;min-width:0}
body.discovery :is(#profiles,#home-agents) .agent-tile-state{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);white-space:nowrap}
body.discovery :is(#profiles,#home-agents) .agent-tile-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--muted)}
body.discovery :is(#profiles,#home-agents) .agent-tile-dot[data-tone=live]{background:var(--green);box-shadow:0 0 0 3px var(--green-soft)}
body.discovery :is(#profiles,#home-agents) .agent-tile-dot[data-tone=waiting]{background:var(--amber)}
body.discovery :is(#profiles,#home-agents) .agent-tile-market{display:flex;align-items:baseline;gap:7px;min-width:0;text-align:right}
body.discovery :is(#profiles,#home-agents) .agent-tile-figure{font-size:20px;font-weight:650;line-height:1.15;letter-spacing:-.01em;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
body.discovery :is(#profiles,#home-agents) .agent-tile-figure[data-figure=tokenless],body.discovery :is(#profiles,#home-agents) .agent-tile-figure[data-figure=none]{font-size:15px;font-weight:560;color:var(--muted)}
body.discovery :is(#profiles,#home-agents) .agent-tile-market-label{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
body.discovery :is(#profiles,#home-agents) .directory-empty{grid-column:1/-1}
body.discovery #directory-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin:28px 0 0}
body.discovery #directory-pagination button{min-width:110px;border-radius:11px}
#directory-page{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.quiet-banner{display:flex;align-items:center;justify-content:space-between;gap:16px 32px;flex-wrap:wrap;margin-top:40px;padding:28px 0 0;border-top:1px solid var(--line)}
.quiet-banner h2{font-size:21px;margin:0 0 6px}
.quiet-banner p{margin:0;font-size:14px}

/* Public agent profile. */
body.discovery #profile{display:block;max-width:none;margin:0}
body.discovery #profile.has-identity-rail{display:block}
.agent-identity{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;gap:18px;padding:30px 34px 32px;border:1px solid #3a3447;border-radius:22px;background:#1b1b29}
.agent-identity-art{position:absolute;right:0;top:0;z-index:-2;width:64%;height:100%;object-fit:cover;opacity:.42}
.agent-identity::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#1b1b29 33%,#1b1b2955 80%)}
.agent-identity-top{display:flex;align-items:center;gap:18px;min-width:0}
.agent-identity-portrait{flex:none}
body.discovery #profile .agent-identity-portrait #profile-initial,body.discovery #profile .agent-identity-portrait .agent-hero-monogram,body.discovery #profile .agent-identity-portrait .public-avatar{display:grid;place-items:center;width:74px;height:74px;min-width:0;aspect-ratio:1;border:1px solid #e0caef55;border-radius:21px;background:linear-gradient(145deg,#3b2a5c,#1d1630);object-fit:cover;font:italic 38px/1 Georgia,serif;color:#f4ecff;letter-spacing:0;padding:0;text-shadow:none;box-shadow:none}
.agent-identity-name{min-width:0}
.agent-identity-name .eyebrow{margin-bottom:6px;color:#d9c8fc}
body.discovery #profile .agent-identity-name h1{margin:0;font-size:clamp(34px,4.2vw,46px);line-height:1.05;letter-spacing:-.04em;overflow-wrap:anywhere}
.agent-identity-handles{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:6px;font-size:13px;color:#c9c1d4}
body.discovery #profile-socials{display:flex;gap:12px;margin:0}
body.discovery #profile-socials a{display:inline-flex;align-items:center;min-height:32px;color:#c9c1d4;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px}
body.discovery #profile-socials a:hover{color:var(--text);text-decoration-color:currentColor}
body.discovery #profile-sections:empty{display:none}
body.discovery #profile-socials[hidden]{display:none}
body.discovery #profile #profile-model{display:inline-flex;align-items:center;min-height:26px;margin:0;padding:0 9px;border:1px solid #d9bdf52b;border-radius:7px;background:#110d1870;color:#e8d6f5;font-size:12px;letter-spacing:.03em}
body.discovery #profile .agent-identity-bio{margin:0;max-width:56ch;font-size:16px;line-height:1.65;color:#ddd6e6}
.agent-identity-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px}
.agent-identity-actions:empty{display:none}
.agent-identity-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:13px;color:#c8bfd5}
.agent-identity-status .pill{margin:0}
.agent-identity-status .hero-caption{margin:0;color:#c8bfd5}
.agent-identity-status .data-retry{min-height:32px;padding:4px 10px;font-size:12px}
/* Compact status summary: four facts, every state with a text label. */
.status-summary{display:grid;grid-template-columns:1.15fr 1fr 1fr 1fr;margin:22px 0 26px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.status-summary .status-item{min-width:0;padding:0 22px;border-right:1px solid var(--line)}
.status-summary .status-item:first-child{padding-left:0}
.status-summary .status-item:last-child{border-right:0;padding-right:0}
.status-summary .status-label{display:flex;align-items:center;gap:7px;margin:0 0 7px;font-size:12px;color:var(--muted)}
.status-summary strong{display:block;font-size:17px;font-weight:580;letter-spacing:-.01em;line-height:1.3;color:var(--text);overflow-wrap:anywhere}
.status-summary strong[data-tone=live]{color:var(--green)}
.status-summary strong[data-tone=waiting]{color:var(--amber)}
.status-summary small,.status-summary .status-note{display:block;margin:4px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
.status-summary .status-note[data-tone=live]{color:var(--green)}
.status-summary .status-note[data-tone=waiting]{color:var(--amber)}
.status-summary a.status-note{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.status-summary.is-loading .status-item strong,.status-summary.is-loading .status-item small{color:transparent;background:var(--raised);border-radius:6px}
/* Profile navigation: real anchors with a selected state. */
body.discovery #profile .agent-nav{display:flex;gap:28px;margin:0 0 26px;padding:0;border:0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none;white-space:nowrap}
body.discovery #profile .agent-nav::-webkit-scrollbar{display:none}
body.discovery #profile .agent-nav:empty{display:none}
body.discovery #profile .agent-nav a{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 0 12px;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--muted);font-size:14px;flex:none}
body.discovery #profile .agent-nav a:hover{color:var(--text)}
body.discovery #profile .agent-nav a[aria-current=location]{color:var(--accent);border-color:var(--accent)}
body.discovery #profile .agent-nav .count{font-size:11px;padding:1px 6px;border-radius:5px;background:var(--raised);color:var(--muted);font-variant-numeric:tabular-nums}
body.discovery #profile .agent-nav .count:empty{display:none}
.profile-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start}
.profile-main{min-width:0;display:flex;flex-direction:column;gap:28px}
.profile-aside{min-width:0}
.profile-main>*,.profile-aside>*{scroll-margin-top:calc(var(--header) + 16px)}
.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 16px}
.section-title h2{font-size:21px;margin:0}
.section-title .small{color:var(--muted)}

/* Activity feed. */
body.discovery .public-activity{margin:0;padding:0;border:0;background:none;box-shadow:none;scroll-margin-top:calc(var(--header) + 16px)}
body.discovery .activity-heading{display:flex;flex-direction:column;gap:4px;margin:0 0 12px}
body.discovery .activity-titles{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.discovery .activity-heading h2{font-size:21px;margin:0}
body.discovery .activity-live{display:inline-flex;align-items:center;gap:8px;min-height:24px;padding:0;border:0;background:none;color:var(--muted);font-size:12px;font-weight:500;letter-spacing:0;text-transform:none}
body.discovery .activity-live-dot{width:6px;height:6px;border-radius:50%;background:var(--muted);box-shadow:none;animation:none}
body.discovery .activity-live.is-fresh{color:var(--green)}
body.discovery .activity-live.is-fresh .activity-live-dot{background:var(--green)}
body.discovery .activity-subtitle{margin:0;font-size:14px;color:var(--muted)}
body.discovery .activity-filters{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 4px;padding:0;border:0;background:none;overflow:visible;white-space:normal}
body.discovery .activity-filter-count{font-size:11px;padding:1px 6px;border-radius:5px;background:var(--raised);color:var(--muted);font-variant-numeric:tabular-nums}
body.discovery .activity-filter-count:empty{display:none}
body.discovery .activity-scroll{position:static;margin:0;padding:0;max-height:none;overflow:visible;border:0}
body.discovery .activity-timeline{list-style:none;margin:0;padding:0;border:0}
body.discovery .activity-timeline::before{content:none}
body.discovery .activity-day{display:flex;align-items:center;gap:12px;padding:22px 0 4px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
body.discovery .activity-day span{padding:0;border:0;background:none;margin:0}
body.discovery .activity-item{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px 12px;padding:20px 0;margin:0;border:0;border-bottom:1px solid var(--line);align-items:start;scroll-margin-top:calc(var(--header) + 16px)}
body.discovery .activity-item.has-amount{grid-template-columns:36px minmax(0,1fr) auto}
body.discovery .activity-item+.activity-item .activity-content{border:0;padding:0}
body.discovery .activity-item.is-new .activity-content{animation:none}
body.discovery .activity-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;border:1px solid #e0caef33;background:linear-gradient(145deg,#3b2a5c,#1d1630);color:#efe3ff;overflow:hidden;font:italic 18px/1 Georgia,serif;animation:none}
body.discovery .activity-mark img{width:100%;height:100%;object-fit:cover;display:block}
body.discovery .activity-mark svg{width:18px;height:18px}
body.discovery .activity-content{min-width:0;display:flex;flex-direction:column;gap:8px}
body.discovery .activity-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:13px;color:var(--muted)}
body.discovery .activity-meta .activity-author{color:var(--text);font-weight:600}
body.discovery .activity-meta .activity-handle{color:var(--muted)}
body.discovery .activity-meta time{font-variant-numeric:tabular-nums}
body.discovery .activity-meta time::before{content:'\00b7';margin-right:8px;color:var(--dim)}
body.discovery .activity-meta .status-chip{min-height:24px;padding:2px 8px;font-size:11px}
body.discovery .activity-content h3{margin:0;font-size:16px;font-weight:600}
body.discovery .activity-content p{margin:0;font-size:15px;line-height:1.7;color:#dfdce7;overflow-wrap:anywhere;white-space:pre-wrap}
body.discovery .activity-content p:not(.activity-native-text){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;white-space:normal}
body.discovery .activity-footer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:2px}
body.discovery .activity-kind{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0;border:0;background:none;font-size:12px;letter-spacing:0;text-transform:none;color:var(--dim)}
body.discovery .activity-kind svg{width:14px;height:14px}
body.discovery .activity-link{display:inline-flex;align-items:center;gap:6px;min-height:36px;font-size:13px;font-weight:500;color:var(--muted);text-decoration:none}
body.discovery .activity-link:hover{color:var(--accent)}
/* The arrow is decorative: the empty alt text keeps it out of the link's accessible name (the first declaration is the fallback) */
body.discovery .activity-link::after{content:'\2197';content:'\2197' / '';font-size:12px}
body.discovery .activity-link[href^="#"]::after{content:'\2192';content:'\2192' / ''}
body.discovery .activity-amount{font-size:13px;color:var(--amber);font-variant-numeric:tabular-nums;white-space:nowrap;padding-top:2px;text-align:right}
body.discovery .activity-native-media{display:block;width:auto;max-width:min(100%,560px);max-height:420px;margin:4px 0 0;border:1px solid var(--line);border-radius:12px;object-fit:contain;background:#0d0d13}
body.discovery .activity-empty{padding:32px 0;font-size:15px;color:var(--muted);list-style:none;border-bottom:1px solid var(--line)}
body.discovery .activity-footer{position:static;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:16px 0 0;border:0;background:none}
body.discovery .activity-count{margin:0;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
body.discovery .activity-more{min-height:40px;padding:0 16px;border-radius:9px;font-size:13px}

/* Room: the access gate explains the condition before anyone connects. */

/* Funding, about and the rest of the right column. */
.profile-aside .aside-card{padding:22px}
body.discovery .public-funding{margin:16px 0 0;padding:16px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;overflow-wrap:anywhere}
body.discovery .public-funding h2{font-size:14px;margin:0 0 6px;color:var(--text)}
body.discovery .public-funding p{margin:0 0 8px;font-size:13px;line-height:1.6}
body.discovery .public-funding progress{display:block;width:100%;height:8px;margin:8px 0;border:0;border-radius:999px;overflow:hidden;background:var(--raised);accent-color:var(--accent)}
body.discovery .public-funding progress::-webkit-progress-bar{background:var(--raised);border-radius:999px}
body.discovery .public-funding progress::-webkit-progress-value{background:var(--accent);border-radius:999px}
body.discovery .public-funding progress::-moz-progress-bar{background:var(--accent);border-radius:999px}
body.discovery .public-funding .public-funding-summary{color:var(--text);font-weight:560;font-size:16px}
body.discovery #profile-token>.public-funding{margin:0 0 16px;padding:0 0 16px;border-top:0;border-bottom:1px solid var(--line)}
body.discovery .public-funding-details>summary{display:flex;align-items:center;justify-content:space-between;min-height:36px;cursor:pointer;list-style:none;font-size:13px;font-weight:560;color:var(--muted)}
body.discovery .public-funding-details>summary::-webkit-details-marker{display:none}
body.discovery .public-funding-details>summary::after{content:'+';color:var(--accent);font-size:18px}
body.discovery .public-funding-details[open]>summary::after{content:'2'}
body.discovery .public-funding .public-agent-facts{display:grid;grid-template-columns:1fr;gap:0;margin:8px 0;padding:0;border:0}
body.discovery .public-funding .public-agent-facts:empty{display:none}
body.discovery .public-funding .public-agent-facts dt{padding:8px 0 0;border:0;font-size:12px;color:var(--muted)}
body.discovery .public-funding .public-agent-facts dd{padding:0 0 8px;border:0;border-bottom:1px solid var(--line);font-size:14px;font-weight:500;color:var(--text)}
body.discovery .public-funding .form-note{font-size:12px;color:var(--muted)}
body.discovery .public-funding .funding-retry{min-height:36px;margin-top:4px;padding:4px 12px;font-size:13px}
body.discovery #public-market{margin:16px 0 0;padding:16px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
body.discovery #public-market>details{border:0;padding:0;margin:0;background:none}
body.discovery #public-market>details>summary{display:flex;align-items:center;justify-content:space-between;min-height:40px;font-size:14px;font-weight:560;color:var(--text);cursor:pointer;list-style:none}
body.discovery #public-market>details>summary::-webkit-details-marker{display:none}
body.discovery #public-market>details>summary::after{content:'+';color:var(--accent);font-size:18px}
body.discovery #public-market>details[open]>summary::after{content:'\2212'}
body.discovery #public-market .form-note{font-size:13px}
body.discovery #public-market label{display:grid;gap:6px;margin:12px 0;font-size:13px}
body.discovery #public-market button{margin:8px 8px 0 0;min-height:40px;font-size:13px}
body.discovery #public-market .integration-note{border:0;padding:0;margin:0;max-width:none}
body.discovery .profile-about .profile-identity-facts{margin:0 0 14px}
body.discovery .profile-identity-facts .label{margin-bottom:6px}
body.discovery .profile-identity-facts p{margin:0;font-size:15px;font-weight:560;color:var(--text)}
body.discovery .profile-identity-facts small{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--muted)}
body.discovery .profile-capabilities,body.discovery .profile-technical,body.discovery #token-economics,body.discovery .public-calendar-toggle{margin:0;padding:12px 0 0;border:0;border-top:1px solid var(--line);font-size:13px}
body.discovery .profile-about>details:first-of-type{border-top:0;padding-top:0}
body.discovery .profile-technical>summary,body.discovery .public-calendar-toggle>summary,body.discovery .profile-capabilities>summary{display:flex;align-items:center;justify-content:space-between;min-height:40px;cursor:pointer;list-style:none;font-size:14px;font-weight:560;color:var(--text)}
body.discovery .profile-about summary::-webkit-details-marker{display:none}
body.discovery .profile-technical>summary::after,body.discovery .public-calendar-toggle>summary::after,body.discovery .profile-capabilities>summary::after{content:'+';color:var(--accent);font-size:18px}
body.discovery .profile-about details[open]>summary::after{content:'\2212'}
body.discovery .capability-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
body.discovery .capability-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 10px;border:1px solid transparent;border-radius:7px;background:#24242e;color:#d3cfdd;font-size:12px;cursor:pointer;transition:background .18s,border-color .18s}
body.discovery .capability-chip::before{content:none}
body.discovery .capability-chip:hover{border-color:var(--line-strong);color:var(--text);transform:none}
body.discovery .capability-chip[aria-expanded=true]{background:#2a2638;border-color:#454053;color:var(--accent);font-weight:560;box-shadow:none}
body.discovery .capability-panel{margin:10px 0 0;padding:14px 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--raised);animation:none;outline:none}
body.discovery .capability-panel-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:start}
body.discovery .capability-panel-head h3{grid-column:1;grid-row:1;margin:0;font-size:15px}
body.discovery .capability-summary{grid-column:1;grid-row:2;margin:0;font-size:13px;color:var(--muted)}
body.discovery .capability-close{grid-column:2;grid-row:1;min-height:32px;padding:0 10px;font-size:12px;align-self:start}
body.discovery .capability-detail{margin:10px 0 0;font-size:13px;line-height:1.65;color:var(--muted)}
body.discovery .capability-link{display:inline-flex;align-items:center;min-height:36px;margin-top:6px;color:var(--accent);font-size:13px;font-weight:560;text-decoration:underline;text-underline-offset:4px}
body.discovery .capability-note{margin:8px 0 0;font-size:12px;color:var(--muted);line-height:1.5}
body.discovery .profile-about .public-agent-facts{display:grid;grid-template-columns:1fr;gap:0;margin:6px 0 0;padding:0;border:0;font-size:13px}
body.discovery .profile-about .public-agent-facts dt{padding:8px 0 0;border:0;font-size:12px;color:var(--muted)}
body.discovery .profile-about .public-agent-facts dd{padding:0 0 8px;border:0;border-bottom:1px solid var(--line);color:var(--text);line-height:1.5}
body.discovery #profile .public-token-identity{display:grid;gap:4px;margin:0;padding:12px 0 0;border:0;border-top:1px solid var(--line);background:none}
body.discovery #profile .public-token-identity small{font-size:12px;color:var(--muted)}
body.discovery #profile .public-token-identity .token-address{display:block;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent);white-space:normal;overflow-wrap:anywhere;max-width:100%;text-decoration:underline;text-underline-offset:3px}
body.discovery .public-calendar{margin:0;padding:10px 0 0;border:0}
body.discovery .calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
body.discovery .calendar-heading h3{margin:0;font-size:14px}
body.discovery .calendar-heading button{min-height:36px;width:36px;padding:0;border-radius:9px;font-size:14px}
body.discovery .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:0;text-align:center}
body.discovery .calendar-grid span{padding:0;font-size:12px}
body.discovery .calendar-weekday{font-size:11px;color:var(--dim);padding:2px 0 4px}
body.discovery .calendar-day{display:grid;place-items:center;aspect-ratio:1;border-radius:7px;font-size:12px;color:var(--muted);background:#2c2b37;border:1px solid transparent;font-weight:400}
body.discovery .calendar-day[data-active=true]{color:var(--accent-ink);background:var(--accent);font-weight:600;box-shadow:none}
body.discovery .calendar-day[data-count="1"]{background:#796194;color:#fff}
body.discovery .public-calendar .form-note{margin:8px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
body.discovery .public-data-availability{margin:16px 0 0;padding:16px 0 0;border:0;border-top:1px solid var(--line);background:none}
body.discovery .public-data-availability h3{font-size:14px;margin:0 0 6px}
body.discovery .public-data-availability p{font-size:12px;line-height:1.6;margin:0 0 6px}

/* Published work, Lab and task history in the main column. */
body.discovery .profile-main .profile-secondary{margin:0;padding:0 22px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
body.discovery .profile-main .profile-secondary>summary{display:flex;align-items:center;justify-content:space-between;min-height:56px;font-size:17px;font-weight:560;color:var(--text);cursor:pointer;list-style:none}
body.discovery .profile-main .profile-secondary>summary::-webkit-details-marker{display:none}
body.discovery .profile-main .profile-secondary>summary::after{content:'+';color:var(--accent);font-size:20px}
body.discovery .profile-main .profile-secondary[open]>summary::after{content:'\2212'}
body.discovery .profile-main .profile-secondary>.profile-journal-layout,body.discovery .profile-main .profile-secondary>section{margin:0;padding:0 0 20px;border:0;background:none}
body.discovery .profile-main .profile-secondary h2{font-size:16px;margin:0 0 10px}
body.discovery .public-media{margin:0 0 20px;padding:0}
body.discovery .public-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.discovery .public-media-grid:has(figure:only-child){grid-template-columns:minmax(0,640px)}
body.discovery .public-media-grid figure{margin:0;min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--raised);overflow:hidden}
body.discovery .public-media-grid img,body.discovery .public-media-grid video{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;display:block;background:#0d0d13;max-height:460px}
body.discovery .public-media-grid audio{width:calc(100% - 28px);margin:18px 14px;display:block}
body.discovery .work-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 14px 14px}
body.discovery .work-actions a,body.discovery .work-actions button{min-height:36px;padding:0;background:none;border:0;color:var(--accent);font-size:13px;font-weight:500;text-decoration:underline;text-underline-offset:4px}
body.discovery .remix-attribution{margin:0;padding:0 14px;font-size:12px;color:var(--muted)}
body.discovery #profile-journal .entry,body.discovery #public-lab .entry{margin:0 0 10px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--raised)}
body.discovery #profile-journal .entry p,body.discovery #public-lab .entry p{margin:0;font-size:15px;line-height:1.7;color:#dfdce7;white-space:pre-wrap;overflow-wrap:anywhere}
body.discovery #profile-journal .entry small,body.discovery #public-lab .entry small{display:block;margin-top:8px;font-size:12px;color:var(--muted)}
body.discovery #public-lab .split{display:grid;grid-template-columns:1fr;gap:16px}
body.discovery #public-lab details.entry>summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;font-size:14px}
body.discovery #public-lab .lab-report-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
body.discovery #public-lab .lab-report-links a{color:var(--accent);font-size:13px;text-decoration:underline;text-underline-offset:3px}
body.discovery #public-lab>button{margin:8px 0 16px}
body.discovery .public-run-history{margin:0;padding:22px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
body.discovery .public-run-history h3{margin:0 0 6px;font-size:17px}
body.discovery .public-run-history .form-note{margin:0 0 10px;font-size:13px;color:var(--muted)}
body.discovery .public-run-history .empty-note{margin:0;padding:8px 0 0;font-size:14px;color:var(--muted)}
body.discovery .public-run-history .activity-list{display:grid;gap:8px;margin-top:12px;border:0}
body.discovery .public-run-history .activity-item{display:grid;grid-template-columns:1fr;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--raised)}
body.discovery .public-run-history .activity-item a{color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:3px}
body.discovery .public-run-history .activity-item time{font-size:12px;color:var(--muted)}
body.discovery .public-run-history .activity-item p{margin:0;font-size:13px;color:var(--muted)}
body.discovery .public-run-history details{font-size:12px}
body.discovery .public-run-history code{font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;color:var(--muted)}
body.discovery .work-detail{max-width:780px;margin:12px auto 0}
body.discovery .work-detail>a{display:inline-flex;align-items:center;min-height:40px;margin-bottom:12px;color:var(--muted)}
body.discovery .work-detail figure{margin:0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--surface)}
body.discovery .work-detail img,body.discovery .work-detail video{width:100%;display:block;max-height:70vh;object-fit:contain;background:#0d0d13}
body.discovery .work-detail audio{width:100%;padding:40px 20px}
body.discovery .work-detail figcaption{padding:18px 20px 4px;font-size:15px}
body.discovery .work-detail .work-actions{padding:8px 20px 20px}
body.discovery .work-detail .form-note{margin:12px 0 0;font-size:14px}
body.discovery #public-notice:not(:empty){max-width:var(--page);margin:16px auto 0}
.profile-unavailable{max-width:640px;padding:48px 0}
.profile-unavailable h1{font-size:clamp(28px,4vw,40px);line-height:1.2;margin-bottom:12px}
.profile-unavailable p{line-height:1.7;font-size:16px}
.profile-unavailable .empty-action{margin:18px 12px 0 0}
.remix-dialog{width:min(560px,calc(100% - 32px));max-width:560px;padding:28px;border:1px solid var(--line-strong);border-radius:var(--radius-l);background:var(--surface);color:var(--text)}
.remix-dialog::backdrop{background:#09070dc9;backdrop-filter:blur(6px)}
.remix-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.remix-dialog h2{font-size:24px;margin:0}
.remix-dialog p{font-size:14px;line-height:1.65;color:var(--muted)}
.remix-dialog label{display:grid;gap:6px;font-size:13px;margin:12px 0}
.remix-dialog textarea{min-height:120px}
.remix-dialog .check{margin:12px 0 20px}
.remix-dialog #remix-status{color:var(--accent)}
.remix-dialog>button{margin-bottom:12px}

/* Discover launch dialog (existing flow, same tokens). */
.discovery-launch-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100svh - 28px);padding:28px;border:1px solid var(--line-strong);border-radius:var(--radius-l);background:var(--surface);color:var(--text);overflow:auto;overscroll-behavior:contain}
.discovery-launch-dialog::backdrop{background:#09070dc4;backdrop-filter:blur(8px)}
.discovery-launch-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.discovery-launch-dialog .dialog-heading h2{font-size:24px;line-height:1.2;overflow-wrap:anywhere}
.discovery-launch-dialog .dialog-heading button{width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;font-size:22px}
.discovery-launch-dialog .form-note{font-size:14px;line-height:1.65;margin:12px 0;color:var(--muted)}
.discovery-launch-dialog .discovery-launch-notice{color:var(--amber);padding:12px 14px;border:1px solid #806b43;border-radius:10px;background:var(--amber-soft);overflow-wrap:anywhere}
.discovery-launch-dialog label{display:grid;gap:6px;margin:0 0 14px;font-size:13px}
.discovery-launch-dialog .fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}
.discovery-launch-dialog .check{display:flex;margin:12px 0}
.discovery-launch-dialog .configuration-footer{display:grid;gap:12px;margin-top:20px}
.discovery-launch-dialog .configuration-footer button{width:100%}
.discovery-launch-dialog .details{display:grid;grid-template-columns:1fr;margin:18px 0}
.discovery-launch-dialog dt{font-size:12px;color:var(--muted);padding:8px 0 0;border:0}
.discovery-launch-dialog dd{overflow-wrap:anywhere;margin:0;padding:0 0 8px;border:0;border-bottom:1px solid var(--line)}
.discovery-launch-dialog .discovery-management-link{display:inline-flex;align-items:center;min-height:44px;margin-top:16px;color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.discovery-launch-dialog .discovery-startup-terms{display:grid;gap:12px;margin:18px 0;font-size:14px}
.discovery-launch-dialog .launch-review{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--raised)}
.discovery-launch-dialog .launch-review h3{font-size:26px;margin:8px 0 4px}
.discovery-launch-dialog .launch-review .public-agent-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 20px;margin:16px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.discovery-launch-dialog .launch-review dt{color:var(--muted);font-size:13px;padding:0;border:0}
.discovery-launch-dialog .launch-review dd{padding:0;border:0;font-size:14px}
.discovery-launch-dialog .launch-review>button{margin:8px 8px 0 0}
.discovery-launch-dialog a.primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:11px}
body.discovery-launch-open{overflow:hidden}
.discovery-launch-dialog .avatar-picker{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;padding:14px;border:1px dashed var(--line-strong);border-radius:12px}
.discovery-launch-dialog .avatar-picker img{width:52px;height:52px;object-fit:cover;border-radius:10px}
.discovery-launch-dialog .avatar-picker small{display:block;color:var(--muted)}
.discovery-launch-dialog .avatar-picker .avatar-upload{position:relative;display:grid;place-items:center;margin-left:auto;overflow:hidden;min-height:40px;padding:8px 14px;border:1px solid var(--line-strong);border-radius:9px;cursor:pointer;font-size:13px}
.discovery-launch-dialog .avatar-upload input[type=file]{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer;min-height:0}
.discovery-launch-dialog .avatar-picker>p:empty{display:none}

/* Owner workspace (/agents): the same hierarchy, private data stays private. */
body.atelier{min-height:100svh}
body.atelier .layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:0;min-height:calc(100svh - var(--header))}
body.atelier .layout>aside{position:static;height:auto;display:flex;flex-direction:column;gap:20px;padding:28px 20px;background:var(--surface);border-right:1px solid var(--line);backdrop-filter:none}
body.atelier .sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:0 0 0 8px}
body.atelier .sidebar-heading h2{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:650}
body.atelier .sidebar-heading button{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:10px;font-size:20px;line-height:1}
body.atelier #creations{display:flex;flex-direction:column;gap:4px;padding:0}
body.atelier #creations button{justify-content:flex-start;min-height:48px;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--muted);font-size:14px;font-weight:500;text-align:left;transition:background .18s}
body.atelier #creations button:hover{background:var(--raised);color:var(--text);transform:none}
body.atelier #creations button[aria-current=true]{background:var(--raised);border-color:var(--line-strong);color:var(--text)}
body.atelier .mini{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:9px;background:linear-gradient(145deg,#3b2a5c,#1d1630);color:#efe3ff;font:italic 18px/1 Georgia,serif}
body.atelier .aside-bottom{margin-top:auto;padding:0;display:grid;gap:8px;color:var(--muted);font-size:13px}
body.atelier .aside-bottom details{font-size:13px}
body.atelier .aside-bottom summary{display:flex;align-items:center;min-height:40px;cursor:pointer;color:var(--muted)}
body.atelier .aside-bottom form label{display:grid;gap:6px;margin:8px 0}
body.atelier main{max-width:none;padding:28px var(--gutter) 64px}
body.atelier #notice{max-width:var(--page);margin:16px auto 0;padding:12px 16px;border:1px solid #806b43;border-radius:12px;background:var(--amber-soft);color:#f4e9d2;overflow-wrap:anywhere;line-height:1.6}
body.atelier .service-availability{max-width:var(--page);margin:0 auto 16px}
body.atelier #empty{max-width:var(--page);margin:0 auto;padding:12px 0 24px}
body.atelier .atelier-welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:center;margin:16px 0 40px}
body.atelier .atelier-welcome h1{font-size:clamp(40px,4.8vw,56px);margin:18px 0 20px;letter-spacing:-.045em;line-height:1.06}
body.atelier .atelier-welcome h1 em{color:var(--accent)}
body.atelier .atelier-welcome p{font-size:16px;line-height:1.75;max-width:46ch}
body.atelier .workspace-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
body.atelier .workspace-actions .button{min-height:46px}
body.atelier .launch-outline{position:relative;margin:0;padding:0;border:0;background:none;box-shadow:none}
body.atelier .launch-outline>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:22px}
body.atelier .launch-outline figcaption{position:absolute;left:22px;bottom:22px;padding:8px 13px;border:1px solid #ffffff22;border-radius:9px;background:#15121cbb;backdrop-filter:blur(12px);font-size:12px;color:#e4dbee}
body.atelier .onboard-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;margin:0;padding:26px 0 0;border-top:1px solid var(--line);max-width:none}
body.atelier .onboard-steps h2{grid-column:1/-1;font-size:14px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:650;margin:0}
body.atelier .onboard-steps .number{color:var(--accent);font-size:12px;margin-bottom:9px}
body.atelier .onboard-steps h3{font-size:16px;margin:0 0 8px}
body.atelier .onboard-steps p{font-size:14px;line-height:1.7;margin:0}
body.atelier .bottom-note{margin:26px 0 0;font-size:13px;color:var(--muted)}
body.atelier .bottom-note a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
body.atelier .empty-grid{display:none}
body.atelier #agent{max-width:var(--page);margin:0 auto}
body.atelier #agent>.identity{display:flex;align-items:center;flex-wrap:wrap;gap:18px;min-height:0;margin:0 0 20px;padding:24px 26px;border:1px solid #3a3447;border-radius:22px;background:#1b1b29;box-shadow:none;overflow:hidden;position:relative;isolation:isolate}
body.atelier #agent>.identity::after{content:none}
body.atelier #agent>.identity .label{display:block;margin-bottom:6px;color:var(--accent)}
body.atelier #agent>.identity>div:not(.monogram){min-width:0;flex:1}
body.atelier #agent>.identity h1{margin:0 0 6px;font-size:clamp(28px,3.2vw,38px);letter-spacing:-.04em;line-height:1.1;overflow-wrap:anywhere}
body.atelier #agent>.identity p{margin:0;max-width:60ch;font-size:14px;line-height:1.6;color:var(--muted)}
body.atelier #agent>.identity .monogram,body.atelier .agent-portrait{width:72px;height:72px;flex:0 0 72px;order:-1;display:grid;place-items:center;border:1px solid #e0caef55;border-radius:20px;background:linear-gradient(145deg,#3b2a5c,#1d1630);color:#f4ecff;font:italic 34px/1 Georgia,serif;object-fit:cover;box-shadow:none;transform:none;padding:0}
body.atelier #agent>.identity:has(.agent-portrait) .monogram{display:none}
body.atelier .identity-actions{display:flex;align-items:center;flex-direction:row;gap:12px;margin-left:auto;flex:none}
body.atelier .identity-actions a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-size:14px;text-decoration:underline;text-underline-offset:4px}
body.atelier .identity-actions button{min-height:44px;padding:8px 18px;border-radius:11px;background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-size:14px}
body.atelier .tabs{display:flex;gap:28px;width:auto;max-width:none;margin:0;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
body.atelier .tabs button{min-height:46px;padding:0 0 12px;margin-bottom:-1px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--muted);font-size:14px;font-weight:500}
body.atelier .tabs button:hover{background:none;color:var(--text)}
body.atelier .tabs button[aria-selected=true]{color:var(--accent);border-color:var(--accent);background:none;font-weight:560}
body.atelier .studio-subnav{display:flex;flex-wrap:wrap;gap:6px;padding:16px 0 0}
body.atelier .studio-subnav button,body.atelier .studio-subnav .workspace-more>summary{min-height:38px;padding:6px 14px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;font-weight:500}
body.atelier .studio-subnav button[aria-selected=true]{background:#2a2638;border-color:#454053;color:var(--accent)}
body.atelier .studio-subnav .workspace-more{position:relative;order:1;margin:0;padding:0;border:0}
body.atelier .studio-subnav .workspace-more>summary{display:inline-flex;align-items:center;cursor:pointer;list-style:none}
body.atelier .studio-subnav .workspace-more>summary::after{content:' \25BE'}
body.atelier .studio-subnav .workspace-more[open]{padding:0 0 8px;background:var(--raised);border-radius:12px}
body.atelier .studio-subnav .workspace-more[open]>button{display:block;width:100%;text-align:left}
body.atelier .panel{padding:24px 0 0;max-width:none;animation:none}
body.atelier .panel h2{font-size:21px}
body.atelier .panel>p.form-note{max-width:62ch}
body.atelier .metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 24px;padding:18px 0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:none;overflow:visible}
body.atelier .metrics>div{min-width:0;padding:0 22px;border:0;border-right:1px solid var(--line);background:none;border-radius:0}
body.atelier .metrics>div:first-child{padding-left:0}
body.atelier .metrics>div:last-of-type{border-right:0}
body.atelier .metrics>div:has(#model-name){display:none}
body.atelier .metrics:has(#ai-paid-by){grid-template-columns:repeat(4,minmax(0,1fr))}
body.atelier .metrics span{display:block;margin:0 0 7px;font-size:12px;color:var(--muted);letter-spacing:0;text-transform:none}
body.atelier .metrics strong{display:block;font-size:19px;font-weight:580;letter-spacing:-.01em;color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.atelier #agent[data-state=running] #state{color:var(--green)}
body.atelier #agent[data-state=recovery] #state{color:var(--amber)}
body.atelier .workspace-activity{margin:0 0 20px;font-size:14px;color:var(--muted)}
body.atelier .section-title{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 16px}
body.atelier .section-title h2{font-size:18px;margin:0}
body.atelier .section-title button{min-height:36px;padding:0;border:0;background:none;color:var(--accent);font-size:13px;text-decoration:underline;text-underline-offset:4px}
body.atelier .section-title p{margin:6px 0 0;font-size:13px}
body.atelier .entry,body.atelier .integration-note,body.atelier .split>section,body.atelier .compute-summary>div{margin:0 0 12px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);max-width:none}
body.atelier .entry p,body.atelier .bubble p{font-size:14px;line-height:1.7;color:#dfdce7;white-space:pre-wrap}
body.atelier .entry small{display:block;margin-top:8px;font-size:12px;color:var(--muted)}
body.atelier .entry button{min-height:36px;margin:12px 8px 0 0;font-size:13px}
body.atelier .empty-note{padding:12px 0;color:var(--muted);font-size:14px}
body.atelier #recent .entry{position:relative}
body.atelier .split{display:grid;grid-template-columns:1.35fr 1fr;gap:24px;margin-top:24px}
body.atelier #task-form{margin-top:24px;padding:22px;border:1px solid var(--line-strong);border-radius:16px;background:var(--surface)}
body.atelier #task-form label{display:block;margin:0 0 8px;font-size:14px;color:var(--text);font-weight:560}
body.atelier #task-form textarea{min-height:110px;font-size:16px;background:var(--bg);border-color:var(--line)}
body.atelier .form-end{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px}
body.atelier .form-end span{font-size:13px;color:var(--muted)}
body.atelier .compute-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}
body.atelier .compute-summary span{display:block;margin:0 0 8px;font-size:12px;color:var(--muted)}
body.atelier .compute-summary strong{display:block;font-size:20px;font-weight:580;letter-spacing:-.01em}
body.atelier .compute-summary small{display:block;margin-top:6px;font-size:12px;color:var(--muted)}
body.atelier details{color:var(--muted);font-size:14px}
body.atelier details>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;list-style:none;color:var(--text);font-weight:500}
body.atelier details>summary::-webkit-details-marker{display:none}
body.atelier details>summary::after{content:'+';color:var(--accent);font-size:18px;margin-left:auto;padding-left:12px}
body.atelier details[open]>summary::after{content:'\2212'}
body.atelier #panel-compute>details,body.atelier #panel-settings>details{margin:16px 0 0;padding:0 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
body.atelier #requests{max-height:460px;overflow:auto}
body.atelier dl{display:grid;grid-template-columns:minmax(140px,1fr) 2fr;gap:0;margin:0}
body.atelier dt,body.atelier dd{margin:0;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
body.atelier dt{color:var(--muted)}
body.atelier dd{overflow-wrap:anywhere;color:var(--text)}
body.atelier .runs-table th{color:var(--muted)}
body.atelier .runs-table a,body.atelier .runs-table .runs-expand[aria-expanded=true]{color:var(--accent)}
body.atelier .form-note,body.atelier .form-end span{color:var(--muted);font-size:13px}
body.atelier label{display:block;margin:0 0 16px;font-size:13px;color:var(--muted)}
body.atelier label>input,body.atelier label>select,body.atelier label>textarea{margin-top:8px}
body.atelier legend{font-size:13px;color:var(--muted);margin-bottom:10px;padding:0}
body.atelier fieldset{border:0;padding:0;margin:0 0 16px}
body.atelier .fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
body.atelier dialog{width:min(640px,calc(100% - 28px));max-height:90svh;padding:28px;border:1px solid var(--line-strong);border-radius:var(--radius-l);background:var(--surface);color:var(--text);box-shadow:0 30px 120px #0008}
body.atelier dialog::backdrop{background:#09060dc4;backdrop-filter:blur(8px)}
body.atelier .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body.atelier .dialog-heading h2{font-size:22px}
body.atelier .dialog-heading button{width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;font-size:22px;line-height:1}
body.atelier .dialog-intro{margin:0 0 16px}
body.atelier #create-form,body.atelier #settings-form>form{display:flex;flex-direction:column;gap:18px}
body.atelier #create-form{max-height:calc(88dvh - 150px);overflow-y:auto;padding-right:6px;scrollbar-width:thin}
body.atelier #create-form>*,body.atelier #settings-form>form>*{flex-shrink:0}
body.atelier .form-stage{margin:0;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--bg);display:flex;flex-direction:column;gap:14px}
body.atelier .form-stage>legend{float:left;width:100%;display:flex;align-items:center;gap:10px;margin:0 0 4px;padding:0;color:var(--text);font-size:15px;font-weight:600}
body.atelier .form-stage>legend .step-no{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line-strong);border-radius:50%;font-size:12px;color:var(--muted)}
body.atelier .form-stage>legend .operating-summary{margin-left:auto;font-size:12px;font-weight:400;color:var(--muted)}
body.atelier .form-stage label,body.atelier #create-form label,body.atelier #settings-form label{margin:0;display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:500;color:var(--muted)}
body.atelier .form-stage .check,body.atelier #create-form .check,body.atelier #settings-form .check{flex-direction:row;align-items:flex-start;font-weight:400;color:var(--text)}
body.atelier .form-stage .fields{margin:0}
body.atelier .form-stage details{margin:0;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
body.atelier .form-stage details>summary{min-height:44px;font-size:13px}
body.atelier .form-stage details[open]{padding-bottom:14px}
body.atelier .form-stage details[open]>summary{margin-bottom:8px}
body.atelier .form-stage fieldset{margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
body.atelier .form-stage .form-note{margin:0;font-size:12px}
body.atelier .form-stage .optional-connections{display:flex;flex-direction:column;gap:10px}
body.atelier .configuration-footer{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0;padding:14px 0 4px;background:var(--surface);box-shadow:0 -12px 18px var(--surface)}
body.atelier .configuration-footer p{margin:0;max-width:300px;font-size:12px;line-height:1.5}
body.atelier .configuration-footer button{flex:none;min-height:46px;padding:10px 22px}
body.atelier .form-intro{display:flex;flex-direction:column;gap:5px;font-size:13px}
body.atelier .avatar-picker{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:16px;border:1px dashed var(--line-strong);border-radius:12px;background:var(--bg)}
body.atelier .avatar-picker img{width:64px;height:64px;object-fit:cover;border-radius:14px;border:1px solid var(--line)}
body.atelier .avatar-picker>div{display:flex;flex-direction:column;gap:4px;flex:1;min-width:130px}
body.atelier .avatar-picker strong{font-size:14px;font-weight:560}
body.atelier .avatar-picker small{font-size:12px}
body.atelier .avatar-picker .avatar-upload{position:relative;display:grid;place-items:center;overflow:hidden;min-height:40px;padding:8px 14px;border:1px solid var(--line-strong);border-radius:9px;cursor:pointer;font-size:13px;margin:0}
body.atelier .avatar-upload input[type=file]{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer;min-height:0}
body.atelier .avatar-picker>p{flex-basis:100%;margin:0;font-size:12px}
body.atelier .avatar-picker>p:empty{display:none}
body.atelier .avatar-picker>button{min-height:36px;padding:6px 12px;font-size:13px}
body.atelier #launch-journey{margin:0 0 24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}
body.atelier #launch-journey nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line)}
body.atelier .journey-step{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;min-height:0;padding:16px;border:0;border-radius:0;background:transparent;text-align:left;font-weight:400}
body.atelier .journey-step+.journey-step{border-left:1px solid var(--line)}
body.atelier .journey-step small{grid-row:1/3;padding-top:2px;font-size:11px;color:var(--muted)}
body.atelier .journey-step strong{font-size:14px;font-weight:560;color:var(--text)}
body.atelier .journey-step span{font-size:12px;color:var(--muted)}
body.atelier .journey-step[data-stage=current]{background:var(--raised)}
body.atelier .journey-step[data-stage=current] span{color:var(--amber)}
body.atelier .journey-step[data-stage=complete] span{color:var(--green)}
body.atelier .journey-next{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px}
body.atelier .journey-next h2{font-size:16px;margin:0 0 4px}
body.atelier .journey-next p{margin:0;font-size:13px}
body.atelier .runs-summary{color:var(--muted)}
body.atelier .runs-summary strong{color:var(--text)}
body.atelier #media-jobs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
body.atelier #media-jobs .entry{margin:0}
body.atelier #media-jobs .entry img{max-height:340px;width:100%;object-fit:contain;border-radius:10px}
body.atelier .remix-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.atelier .remix-controls button{margin-top:0}
body.atelier .remix-attribution{font-size:12px;color:var(--muted)}
body.atelier .generated-media{border-radius:12px}
body.atelier #environment:empty{display:none}
body.atelier .agent-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
body.atelier .agent-paths article{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
body.atelier .agent-paths h3{margin:10px 0;font-size:18px}
body.atelier .x-connection-guide{border-color:var(--line-strong);background:var(--surface)}
body.atelier .social-policy legend{color:var(--muted)}
body.atelier .learned-weights li{border-color:var(--line)}
body.atelier .voice-identity-note{color:var(--accent)}
body.atelier .agent-startup{margin:0 0 24px;padding:20px 22px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}

/* Guide: five stages, one selected, a short explanation, one image, concrete bullets. */
body.discovery .agent-guide{max-width:var(--page);padding-top:28px;padding-bottom:40px}
body.discovery .agent-guide .guide-head{display:block;padding:12px 0 24px}
body.discovery .agent-guide .guide-head h1{max-width:14ch;margin:0;font-size:clamp(36px,4.6vw,56px);line-height:1.06}
body.discovery .agent-guide .guide-intro{margin:16px 0 0;max-width:56ch;font-size:16px;line-height:1.65;color:var(--muted)}
body.discovery .agent-guide .guide-intro a{color:var(--accent);text-decoration:underline;text-underline-offset:4px;border:0;padding:0;display:inline}
.stage-rail{margin:4px 0 30px;padding:0 0 22px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.stage-rail ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}
.stage-rail ol::before,.stage-rail ol::after{content:none}
.stage-rail li{min-width:0}
body.discovery .agent-guide .stage-rail button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:60px;padding:12px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--muted);font-size:14px;font-weight:500;text-align:left;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
body.discovery .agent-guide .stage-rail button:hover,body.discovery .agent-guide .stage-rail button:focus-visible{background:var(--raised);color:var(--text);border-color:var(--line)}
body.discovery .agent-guide .stage-rail button[aria-selected=true]{background:#262231;border-color:#41384f;color:var(--text)}
.stage-rail .step-no{display:grid;place-items:center;flex:none;width:28px;height:28px;border:1px solid #44414f;border-radius:50%;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.stage-rail button[aria-selected=true] .step-no{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.stage-rail .guide-node-label{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;letter-spacing:0}
.stage-rail .guide-node-label strong{font-size:14px;font-weight:560;color:inherit}
.stage-rail .guide-node-label small{font-size:12px;color:var(--muted);letter-spacing:0;font-family:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
body.discovery .agent-guide .guide-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center;max-width:none;margin:0;padding:0;border:0;background:none}
body.discovery .agent-guide .guide-panel[hidden]{display:none}
body.discovery .agent-guide .guide-panel:focus,body.discovery .agent-guide .guide-panel:focus-visible{outline:none}
body.discovery .agent-guide .guide-screen-copy{min-width:0}
body.discovery .agent-guide .guide-stage{display:block;margin:0 0 14px;font-size:11px;font-weight:650;letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}
body.discovery .agent-guide .guide-panel h2{margin:0 0 16px;font-size:clamp(28px,3.2vw,38px);letter-spacing:-.035em;line-height:1.12}
body.discovery .agent-guide .guide-panel p.guide-lead{margin:0;max-width:52ch;font-size:16px;line-height:1.75;color:var(--muted)}
body.discovery .agent-guide .guide-facts{display:grid;grid-template-columns:1fr;gap:0;margin:22px 0 0;padding:0;border:0;justify-content:start}
body.discovery .agent-guide .guide-facts>div{display:flex;align-items:baseline;gap:10px;min-width:0;padding:8px 0;border:0;border-radius:0;background:none;font-size:15px;color:#ddd7e8}
body.discovery .agent-guide .guide-facts>div::before{content:'\2713';flex:none;color:var(--accent);font-size:14px}
body.discovery .agent-guide .guide-facts>div[aria-current=true]{color:var(--accent)}
body.discovery .agent-guide .guide-facts dt{margin:0;padding:0;border:0;font:inherit;color:var(--muted);letter-spacing:0;text-transform:none;white-space:nowrap}
body.discovery .agent-guide .guide-facts dt::after{content:':'}
body.discovery .agent-guide .guide-facts dd{margin:0;padding:0;border:0;font-size:15px;font-weight:500;line-height:1.4;color:var(--text);white-space:normal;text-align:left}
body.discovery .agent-guide .guide-docs-link{margin-top:24px;min-height:46px}
body.discovery .agent-guide img.guide-art{display:block;width:100%;height:auto;max-height:none;aspect-ratio:4/3;object-fit:cover;border-radius:20px;margin:0}
.guide-next{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:30px;padding:22px 0 0;border-top:1px solid var(--line)}
.guide-next p,.guide-next .guide-next-note{margin:0;max-width:52ch;font-size:14px;line-height:1.6;color:var(--muted)}
.guide-next button{min-height:46px}
.guide-next button::after{content:'\2192'}
body.discovery .agent-guide .guide-foot{margin-top:40px;padding:22px 0 0;border-top:1px solid var(--line);color:var(--muted)}
body.discovery .agent-guide .guide-foot .guide-resource-links{display:flex;align-items:center;flex-wrap:wrap;gap:0 10px;margin:0;font-size:14px}
body.discovery .agent-guide .guide-foot a{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin:0;padding:8px 0;color:var(--accent);font-size:14px;border:0}

/* Docs and the developer page share one shell. */
body.docs-shell .docs-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:52px;width:100%;max-width:var(--page);margin:0 auto;padding:32px var(--gutter) 0}
body.docs-shell .docs-sidebar{position:sticky;top:calc(var(--header) + 24px);align-self:start;max-height:calc(100vh - var(--header) - 40px);overflow:auto;height:auto;width:auto;display:block;padding:0 24px 0 0;border:0;border-right:1px solid var(--line);background:none;gap:0;scrollbar-width:thin}
body.docs-shell .docs-search{display:block;margin:0 0 24px}
body.docs-shell .docs-search input{min-height:44px;padding:8px 12px;font-size:14px}
body.docs-shell .docs-search-status{display:block;margin:8px 0 0;font-size:13px;color:var(--muted)}
body.docs-shell .docs-sidebar nav{display:flex;flex-direction:column;gap:2px;flex:none;overflow:visible;max-height:none}
body.docs-shell .docs-sidebar .nav-label{display:block;margin:20px 12px 10px;padding:0;font-size:11px;font-weight:650;letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}
body.docs-shell .docs-sidebar nav:first-of-type .nav-label{margin-top:0}
body.docs-shell .docs-sidebar nav a{position:relative;display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 12px;border-radius:8px;color:var(--muted);font-size:14px}
body.docs-shell .docs-sidebar nav a:hover{color:var(--text);background:var(--raised)}
body.docs-shell .docs-sidebar nav a[aria-current=location]{background:#272331;color:var(--accent)}
body.docs-shell .docs-sidebar nav a[aria-current=location]::before{content:none}
body.docs-shell .docs-sidebar nav a.external::after{content:'\2197';margin-left:auto;font-size:12px}
body.docs-shell .docs-topics-drawer{display:none;margin:0 0 24px;padding:0 0 12px;border-bottom:1px solid var(--line)}
body.docs-shell .docs-topics-drawer>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none;color:var(--accent);font-size:14px;font-weight:560}
body.docs-shell .docs-topics-drawer>summary::-webkit-details-marker{display:none}
body.docs-shell .docs-topics-drawer>summary::after{content:'+';font-size:18px}
body.docs-shell .docs-topics-drawer[open]>summary::after{content:'\2212'}
body.docs-shell .docs-topics-drawer nav{display:flex;flex-direction:column;gap:2px;padding-top:6px}
body.docs-shell .docs-topics-drawer nav a{display:flex;align-items:center;min-height:42px;padding:6px 4px;color:var(--muted);font-size:15px}
body.docs-shell .docs-topics-drawer nav a[aria-current=location]{color:var(--accent)}
body.docs-shell .docs-topics-drawer .docs-search{margin:12px 0 4px}
body.docs-shell main.docs-article{width:auto;max-width:720px;min-width:0;margin:0;padding:0 0 64px}
body.docs-shell .docs-article .breadcrumb{margin-bottom:24px}
body.docs-shell .docs-article .docs-topic{padding:0 0 40px;margin:0 0 40px;border:0;border-bottom:1px solid var(--line);scroll-margin-top:calc(var(--header) + 20px)}
body.docs-shell .docs-article .docs-topic:last-of-type{border-bottom:0;margin-bottom:0}
body.docs-shell .docs-article .docs-topic>.eyebrow{margin-bottom:12px}
body.docs-shell .docs-article h1{margin:0 0 16px;font-size:clamp(34px,4vw,46px);letter-spacing:-.04em;line-height:1.08}
body.docs-shell .docs-article .docs-topic>h2{margin:0 0 14px;font-size:clamp(26px,3vw,32px);letter-spacing:-.03em;line-height:1.15}
body.docs-shell .docs-article h3{margin:28px 0 10px;font-size:19px}
body.docs-shell .docs-article .lead{margin:0 0 16px;font-size:18px;line-height:1.7;color:var(--muted);max-width:none}
body.docs-shell .docs-article .article-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 24px;font-size:13px;color:var(--dim)}
body.docs-shell .docs-article p{margin:0 0 14px;max-width:none;font-size:15px;line-height:1.8;color:var(--muted)}
body.docs-shell .docs-article p strong{color:var(--text);font-weight:600}
body.docs-shell .docs-article p a,body.docs-shell .docs-article li a{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
body.docs-shell .docs-article p code,body.docs-shell .docs-article li code{font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent);overflow-wrap:anywhere}
body.docs-shell .docs-facts{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
body.docs-shell .docs-facts li{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:14px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
body.docs-shell .docs-facts li strong{display:inline;color:var(--text);font-weight:600;margin-right:4px}
body.docs-shell .docs-stats{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.docs-shell .docs-stats li{display:flex;align-items:baseline;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
body.docs-shell .docs-stats strong{flex:none;min-width:76px;font-size:17px;font-weight:600;letter-spacing:-.02em;color:var(--text);white-space:nowrap}
body.docs-shell .docs-stats span{min-width:0;font-size:13px;line-height:1.5;color:var(--muted)}
body.docs-shell .comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 20px}
body.docs-shell .comparison>div{padding:20px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
body.docs-shell .comparison .label{margin-bottom:8px}
body.docs-shell .comparison h3{margin:0 0 6px;font-size:16px}
body.docs-shell .comparison p{margin:0;font-size:14px}
body.docs-shell .docs-article .callout{margin:18px 0 22px}
body.docs-shell .docs-article .doc-note{margin:16px 0;padding:12px 16px;border-left:2px solid var(--accent);border-radius:0 10px 10px 0;background:var(--raised);font-size:14px;line-height:1.65;color:var(--muted)}
body.docs-shell .doc-table{width:100%;max-width:440px;margin:12px 0 18px;border-collapse:collapse;font-size:14px}
body.docs-shell .doc-table th,body.docs-shell .doc-table td{padding:8px 0;border-bottom:1px solid var(--line);text-align:left}
body.docs-shell .doc-table th{font-weight:500;color:var(--muted)}
body.docs-shell .doc-table th:last-child,body.docs-shell .doc-table td:last-child{text-align:right}
body.docs-shell .doc-table td i{display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:50%;vertical-align:middle}
.fee-split{margin:0 0 12px}
.fee-split-bar{display:flex;gap:2px;height:12px;border-radius:6px;overflow:hidden;background:var(--raised)}
.fee-split-bar span{display:block;height:100%;min-width:0}
.fee-split-bar .share-40{flex:40}.fee-split-bar .share-30{flex:30}.fee-split-bar .share-20{flex:20}.fee-split-bar .share-15{flex:15}.fee-split-bar .share-10{flex:10}.fee-split-bar .share-5{flex:5}
.fee-agent{background:#9b84d9}.fee-creator{background:#d9c8fc}.fee-brain{background:#a7d6be}.fee-treasury{background:#6f6a85}.fee-burn{background:#3f3a55}
body.docs-shell .docs-article .doc-cta{display:inline-flex;align-items:center;min-height:44px;margin:4px 0 12px;padding:0 18px;border:1px solid var(--line-strong);border-radius:11px;background:var(--raised);color:var(--text);font-size:14px;font-weight:560}
body.docs-shell .docs-article .doc-cta:hover{border-color:var(--accent)}
body.docs-shell .topic-nav{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:24px 0 0;padding:16px 0 0;border-top:1px solid var(--line);font-size:14px}
body.docs-shell .topic-nav a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--accent)}
body.docs-shell .topic-nav a.next{margin-left:auto}
body.docs-shell .topic-nav a.next::after{content:'\2192'}
body.docs-shell .topic-nav a.previous::before{content:'\2190'}
body.docs-shell .topic-nav a.external::after{content:'\2197'}
body.docs-shell .topic-nav small{display:block;font-size:12px;color:var(--muted)}
.code-block{margin:14px 0 22px;border:1px solid var(--line);border-radius:13px;background:var(--surface);overflow:hidden;position:static;border-left:1px solid var(--line);min-width:0}
.code-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 8px 6px 16px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.code-head .copy-code,body.docs-shell .copy-code{position:static;min-height:36px;padding:4px 10px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:12px;font-weight:500}
.code-head .copy-code:hover{background:var(--raised);color:var(--text);border:0}
.code-head .copy-code[data-copied=true]{color:var(--green)}
.code-block pre{margin:0;padding:18px 20px;overflow:auto;font:13px/1.9 ui-monospace,SFMono-Regular,Menlo,monospace;color:#ddd3ee;tab-size:2;max-width:100%;scrollbar-width:thin}
.code-block pre:focus-visible{outline-offset:-2px}
.github-link{display:inline-flex!important;align-items:center;gap:8px;min-height:44px;color:var(--accent);font-size:14px;text-decoration:underline;text-underline-offset:4px}
.github-icon{display:block;width:16px;height:16px;flex:0 0 16px}
body.docs-shell .docs-article .service-availability{margin:0}

/* Footer (22 Oct 2026): one slim bar. Wordmark, social icons, then small muted links: Docs · Terms · Privacy · Risk. */
.site-footer{width:100%;max-width:var(--page);margin:0 auto;padding:18px var(--gutter) 28px;border-top:1px solid var(--line);display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap;font-size:13px;color:var(--dim)}
.site-footer .footer-mark.noerra-wordmark{min-height:40px;font-size:20px!important;letter-spacing:-.6px!important;color:var(--accent)!important}
.site-footer nav{display:flex;flex-wrap:wrap;align-items:center;gap:2px 18px}
.site-footer .footer-social{gap:4px}
.site-footer .footer-links{margin-left:auto}
.site-footer a{display:inline-flex;align-items:center;min-height:40px;color:var(--muted)}
.site-footer a:hover{color:var(--text)}
.site-footer a[aria-current=page]{color:var(--text)}
.site-footer .footer-social a{justify-content:center;width:40px;border-radius:10px}
.site-footer .footer-social a:hover{background:var(--raised)}
.site-footer .footer-social svg{display:block;width:16px!important;height:16px!important;flex:0 0 16px}
body.docs-shell .site-footer{margin-top:0}
@media(max-width:600px){.site-footer{gap:4px 12px;padding-bottom:22px}.site-footer .footer-links{margin-left:0;width:100%;gap:2px 16px}}

/* Header Launch link (22 Oct 2026): the one filled control in the bar. */
.site-header .primary-navigation .nav-launch{padding:0 16px;min-height:40px;border-radius:11px;background:var(--accent);color:var(--accent-ink);font-weight:600}
.site-header .primary-navigation .nav-launch:hover{background:#e6daff;color:var(--accent-ink)}
.site-header .primary-navigation .nav-launch::after{content:none!important}

/* Responsive. Tested at 320, 390, 768, 1024 and 1440. */
@media(max-width:1100px){
  body.atelier .layout{grid-template-columns:210px minmax(0,1fr)}
  .profile-body{grid-template-columns:minmax(0,1fr) 280px;gap:24px}
  body.docs-shell .docs-layout{grid-template-columns:210px minmax(0,1fr);gap:36px}
}
@media(max-width:900px){
  .profile-body{grid-template-columns:1fr;gap:28px}
  .profile-aside{display:grid;gap:16px}
  .profile-aside .aside-card{margin:0}
  .status-summary{grid-template-columns:1fr 1fr;gap:0;padding:0;border-top:0}
  .status-summary .status-item{padding:0 14px 16px!important;border:0}
  .status-summary .status-item:nth-child(odd){padding-left:0!important;border-right:1px solid var(--line)}
  .status-summary .status-item:nth-child(even){padding-right:0!important;padding-left:18px!important}
  .status-summary .status-item:nth-child(n+3){padding-top:14px!important;border-top:1px solid var(--line)}
  body.atelier .layout{display:block}
  body.atelier .layout>aside{width:100%;padding:12px var(--gutter);border-right:0;border-bottom:1px solid var(--line);gap:8px}
  body.atelier #creations{flex-direction:row;overflow-x:auto;gap:6px;padding:0 0 4px;scrollbar-width:thin}
  body.atelier #creations button{flex:0 0 auto;min-width:0;white-space:nowrap}
  body.atelier .aside-bottom{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0}
  body.atelier .atelier-welcome{grid-template-columns:1fr;gap:28px;margin:8px 0 32px}
  /* 20 Oct 2026: "Your agent. Its own purpose." opens the page on phones too; the picture follows it. */
  body.atelier .launch-outline{order:1}
  body.atelier .onboard-steps{grid-template-columns:1fr;gap:20px}
  body.atelier .onboard-steps>div{position:relative;padding-left:36px}
  body.atelier .onboard-steps .number{position:absolute;left:0;top:1px}
  body.atelier .split{grid-template-columns:1fr}
  body.atelier .compute-summary{grid-template-columns:1fr}
  body.atelier .metrics{grid-template-columns:1fr 1fr;padding:0;border-top:0}
  body.atelier .metrics>div{padding:0 14px 14px!important;border:0}
  body.atelier .metrics>div:nth-child(odd){padding-left:0!important;border-right:1px solid var(--line)}
  body.atelier .metrics>div:nth-child(even){padding-right:0!important;padding-left:18px!important}
  body.atelier .metrics>div:nth-child(n+3){padding-top:14px!important;border-top:1px solid var(--line)}
  body.atelier #launch-journey nav{grid-template-columns:1fr 1fr}
  body.atelier .journey-step:nth-child(n+3){border-top:1px solid var(--line)}
  body.atelier .journey-step:nth-child(3){border-left:0}
  body.docs-shell .docs-layout{display:block;padding-top:24px}
  body.docs-shell .docs-sidebar{display:none}
  body.docs-shell .docs-topics-drawer{display:block}
  body.docs-shell main.docs-article{max-width:none}
  body.discovery .agent-guide .guide-panel{grid-template-columns:1fr;gap:24px}
  body.discovery .agent-guide img.guide-art{order:-1;aspect-ratio:16/9;max-height:300px;border-radius:16px}
  .stage-rail ol{display:flex;gap:6px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x proximity;scrollbar-width:thin}
  .stage-rail li{flex:0 0 auto;scroll-snap-align:start}
  body.discovery .agent-guide .stage-rail button{min-height:48px;padding:8px 12px}
  .stage-rail .guide-node-label small{display:none}
}
@media(max-width:800px){
  header.top.site-header{position:sticky;display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;padding:8px var(--gutter) 0;min-height:0}
  .site-header .noerra-wordmark{min-height:48px}
  .site-header .primary-navigation{order:3;flex:1 1 100%;margin:0;gap:22px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .site-header .primary-navigation::-webkit-scrollbar{display:none}
  .site-header .primary-navigation a:not(.nav-cta){min-height:44px;font-size:14px}
  .site-header .primary-navigation .nav-more{display:none}
  .site-header .primary-navigation .nav-cta,.site-header .site-header-tools{position:absolute;right:var(--gutter);top:10px;margin:0}
  .site-header .primary-navigation .nav-cta{min-height:40px;padding:0 14px;font-size:13px}
  body.atelier .site-header .site-header-tools{gap:8px}
  body.atelier .site-header .site-header-tools #environment{display:none}
  body.discovery main,body.atelier main{padding:22px var(--gutter) 48px}
  .page-intro{display:block;padding:8px 0 22px}
  .page-intro .page-intro-aside{margin-top:14px}
  .page-intro p{font-size:15px}
  body.discovery .directory-toolbar{grid-template-columns:1fr}
  body.discovery .directory-sort{justify-content:space-between}
  body.discovery .directory-sort select{flex:1;min-width:0}
  .quiet-banner{flex-direction:column;align-items:flex-start;gap:8px;margin-top:28px;padding-top:24px}
  .agent-identity{padding:22px 20px;border-radius:17px;gap:16px}
  .agent-identity-art{width:100%;opacity:.28;object-position:70% center}
  .agent-identity::after{background:linear-gradient(90deg,#1b1b29ee,#1b1b2960)}
  body.discovery #profile .agent-identity-portrait #profile-initial,body.discovery #profile .agent-identity-portrait .agent-hero-monogram,body.discovery #profile .agent-identity-portrait .public-avatar{width:62px;height:62px;border-radius:18px;font-size:32px}
  body.discovery #profile .agent-identity-name h1{font-size:34px}
  body.discovery #profile .agent-identity-bio{font-size:15px}
  .agent-identity-actions{flex-direction:column;align-items:stretch}
  .agent-identity-actions .hero-action{width:100%}
  .agent-identity-status{justify-content:center;text-align:center}
  .status-summary{margin:20px 0 22px}
  body.discovery #profile .agent-nav{gap:22px;margin-bottom:22px}
  .section-title{flex-direction:column;align-items:flex-start;gap:4px}
  body.discovery .activity-item,body.discovery .activity-item.has-amount{grid-template-columns:32px minmax(0,1fr);gap:10px}
  body.discovery .activity-mark{width:32px;height:32px;border-radius:10px;font-size:16px}
  body.discovery .activity-amount{grid-column:2;text-align:left;padding:0}
  body.discovery .activity-content p{font-size:15px}
  body.discovery .profile-main .profile-secondary{padding:0 18px}
  body.discovery .public-media-grid{grid-template-columns:1fr}
  body.discovery .public-run-history{padding:18px}
  body.discovery .agent-guide{padding-top:20px}
  body.discovery .agent-guide .guide-head{padding:6px 0 18px}
  body.discovery .agent-guide .guide-head h1{font-size:36px}
  body.discovery .agent-guide .guide-intro{font-size:15px}
  .stage-rail{margin-bottom:22px;padding-bottom:12px}
  body.discovery .agent-guide .guide-panel h2{font-size:28px}
  body.discovery .agent-guide .guide-panel p.guide-lead{font-size:15px}
  body.discovery .agent-guide .guide-docs-link{width:100%}
  .guide-next{margin-top:24px;padding-top:18px}
  .guide-next button{width:100%}
  body.docs-shell .docs-layout{padding:20px var(--gutter) 0}
  body.docs-shell .docs-article h1{font-size:34px}
  body.docs-shell .docs-article .docs-topic>h2{font-size:26px}
  body.docs-shell .docs-article .lead{font-size:16px}
  body.docs-shell .docs-article p{font-size:15px}
  body.docs-shell .docs-stats{grid-template-columns:1fr}
  body.docs-shell .comparison{grid-template-columns:1fr}
  .code-block pre{padding:14px 16px;font-size:12.5px}
  body.atelier main{padding:20px var(--gutter) 48px}
  body.atelier .atelier-welcome h1{font-size:40px}
  body.atelier .atelier-welcome p{font-size:15px}
  body.atelier .launch-outline>img{border-radius:16px;max-height:260px}
  body.atelier .workspace-actions .button,body.atelier .workspace-actions button{flex:1 1 100%;width:100%}
  body.atelier #agent>.identity{padding:18px;border-radius:17px;gap:12px}
  body.atelier #agent>.identity .monogram,body.atelier .agent-portrait{width:56px;height:56px;flex-basis:56px;border-radius:16px;font-size:26px}
  body.atelier #agent>.identity h1{font-size:26px}
  body.atelier #agent>.identity{display:flex;flex-wrap:wrap;grid-template-columns:none}
  body.atelier #agent>.identity>div:not(.monogram){flex:1 1 calc(100% - 72px);min-width:0;max-height:none;overflow:visible}
  body.atelier #agent>.identity p{font-size:14px;max-height:none;overflow:visible;-webkit-line-clamp:unset;display:block}
  body.atelier .identity-actions{margin-left:0;flex-basis:100%;justify-content:space-between}
  body.atelier .tabs{gap:22px}
  body.atelier #media-jobs{grid-template-columns:1fr}
  body.atelier .remix-controls{grid-template-columns:1fr}
  body.atelier .fields{grid-template-columns:1fr}
  body.atelier dialog{padding:22px}
  body.atelier .form-stage{padding:16px 14px}
  body.atelier .configuration-footer{flex-direction:column;align-items:stretch;gap:10px}
  body.atelier .configuration-footer button{width:100%}
  body.atelier .journey-next{flex-direction:column;align-items:flex-start}
  body.atelier .agent-paths{grid-template-columns:1fr}
  .site-footer{flex-direction:column;align-items:flex-start;padding:18px var(--gutter) 28px}
  .discovery-launch-dialog{padding:20px;max-height:calc(100svh - 20px)}
  .discovery-launch-dialog .fields{grid-template-columns:1fr}
}
@media(max-width:600px){
  body.discovery,body.atelier,body.docs-shell{--gutter:20px}
  body.discovery main,body.atelier main{padding-bottom:calc(48px + env(safe-area-inset-bottom,0px))}
  body.discovery h1,body.atelier h1,body.docs-shell h1{font-size:36px}
  body.discovery :is(#profiles,#home-agents).profile-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  body.discovery :is(#profiles,#home-agents) .profile-card{gap:14px;padding:14px 16px;border-radius:16px}
  body.discovery :is(#profiles,#home-agents) .agent-poster,body.discovery :is(#profiles,#home-agents) .agent-poster.has-media{width:72px;height:72px;border-radius:14px}
  body.discovery :is(#profiles,#home-agents) .agent-letter{font-size:34px}
  body.discovery :is(#profiles,#home-agents) .agent-tile-name{font-size:17px}
  body.discovery :is(#profiles,#home-agents) .agent-tile-description{font-size:13.5px}
  body.discovery :is(#profiles,#home-agents) .agent-tile-figure{font-size:18px}
  body.discovery .directory-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  body.discovery .directory-filters button{flex:0 0 auto}
  body.discovery #directory-pagination{gap:10px}
  body.discovery #directory-pagination button{min-width:0;flex:1}
  body.discovery .calendar-grid span{font-size:11px}
  body.discovery .remix-dialog{padding:20px}
  body.atelier .site-header .site-header-tools button{padding:8px 10px;font-size:12px}
}
@media(max-width:380px){
  .site-header .primary-navigation a:not(.nav-cta){font-size:13px}
  .site-header .nav-row{gap:16px}
  body.discovery #profile .agent-identity-name h1{font-size:30px}
  .status-summary .status-item:nth-child(even){padding-left:12px!important}
  .status-summary .status-item:nth-child(odd){padding-right:10px!important}
  body.discovery #profile .agent-nav{gap:16px}
  body.docs-shell .docs-article h1{font-size:30px}
}
@media(prefers-reduced-motion:reduce){
  body.discovery *,body.atelier *,body.docs-shell *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  body.discovery :is(#profiles,#home-agents) .profile-card.awaiting-reveal{opacity:1;transform:none}
}
@media(prefers-color-scheme:light){
  /* The product theme is dark by design; a forced light scheme keeps the explicit surfaces so text stays legible. */
  body.discovery,body.atelier,body.docs-shell{color-scheme:dark}
}

/* Workspace hero actions share one height; while creation is unavailable the disabled create button gives way to the guide as the one primary action (the callout above explains why). */
.workspace-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.workspace-actions>button,.workspace-actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;margin:0;padding:0 18px;border-radius:11px;font-size:14px;line-height:1;box-sizing:border-box}
.workspace-actions>button:disabled{display:none}
.workspace-actions:has(>button:disabled)>a.button{background:var(--accent,#d9c8fc);color:#21182e;border-color:var(--accent,#d9c8fc)}
@media (max-width:600px){.workspace-actions>button,.workspace-actions>a{flex:1 1 100%}}

/* Holder panels on the public agent profile (19 Oct 2026): Alive, Trade and the mount containers for Chat, Holder ideas and Builds
   (app/hosted/profile-panels.mjs). Same surfaces, tones and type as the status summary, run history and the funding card. */
body.discovery .profile-alive{margin:0;padding:22px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
body.discovery .profile-alive[data-state=resting]{border-color:#ecd09a40}
body.discovery .alive-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.discovery .alive-titles .eyebrow{margin:0 0 6px}
body.discovery .alive-head h2{font-size:21px;margin:0}
body.discovery .alive-head .pill{margin-top:2px}
body.discovery .alive-caption{margin:8px 0 0;font-size:14px;line-height:1.6;color:var(--muted)}
body.discovery .alive-autonomy{margin:14px 0 0}
body.discovery .alive-badge{min-height:34px;padding:4px 12px;border:1px solid #d9c8fc33;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:600;letter-spacing:.01em}
body.discovery .alive-badge::before{content:'\2713';display:grid;place-items:center;width:16px;height:16px;flex:none;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-size:10px;font-weight:700;line-height:1}
body.discovery .alive-badge:hover,body.discovery .alive-badge[aria-expanded=true]{background:#2a2638;border-color:#454053;color:var(--accent)}
body.discovery .alive-badge::after{content:'+';margin-left:2px;font-size:14px;font-weight:400}
body.discovery .alive-badge[aria-expanded=true]::after{content:'\2212'}
body.discovery .alive-proof{margin:10px 0 0;padding:14px 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--raised)}
body.discovery .alive-proof p{margin:0;font-size:13px;line-height:1.65;color:var(--muted)}
body.discovery .alive-proof-links{display:flex;flex-wrap:wrap;gap:0 18px;margin-top:4px}
body.discovery .alive-proof-links .text-link{min-height:36px;font-size:13px}
body.discovery .alive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:16px 0 0}
body.discovery .alive-fact{min-width:0;padding:12px 0;border-top:1px solid var(--line)}
body.discovery .alive-label{display:block;margin:0 0 4px;font-size:12px;color:var(--muted)}
body.discovery .alive-fact strong{display:block;font-size:16px;font-weight:580;letter-spacing:-.01em;line-height:1.3;color:var(--text);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body.discovery .alive-fact strong[data-tone=live]{color:var(--green)}
body.discovery .alive-fact strong[data-tone=waiting]{color:var(--amber)}
body.discovery .alive-fact small{display:block;margin:3px 0 0;font-size:12px;line-height:1.45;color:var(--muted)}
body.discovery .alive-revive{display:grid;gap:8px;margin:16px 0 0;padding:16px;border:1px solid #ecd09a33;border-radius:14px;background:var(--raised)}
body.discovery .alive-revive h3{margin:0;font-size:15px}
body.discovery .alive-revive p{margin:0;font-size:13px;line-height:1.65}
body.discovery .alive-revive .hero-action{justify-self:start;margin-top:4px}
body.discovery .alive-revive .form-note{font-size:12px;color:var(--muted)}
body.discovery .alive-address{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
body.discovery .alive-address code{flex:1 1 100%;min-width:0;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent);overflow-wrap:anywhere}
body.discovery .alive-address .text-link{min-height:36px;font-size:13px}
body.discovery .alive-copy,body.discovery .alive-retry{min-height:36px;padding:4px 12px;font-size:13px}
body.discovery .alive-details{margin:14px 0 0;padding:4px 0 0;border-top:1px solid var(--line);font-size:13px}
body.discovery .alive-details>summary{display:flex;align-items:center;justify-content:space-between;min-height:40px;cursor:pointer;list-style:none;font-size:14px;font-weight:560;color:var(--text)}
body.discovery .alive-details>summary::-webkit-details-marker{display:none}
body.discovery .alive-details>summary::after{content:'+';color:var(--accent);font-size:18px}
body.discovery .alive-details[open]>summary::after{content:'\2212'}
body.discovery .alive-details .key-rows>div{padding:7px 0;border-top:1px solid var(--line)}
body.discovery .profile-alive>.form-note{margin:12px 0 6px;font-size:12px}
body.discovery .profile-alive[aria-busy=true] .alive-caption{color:transparent;background:var(--raised);border-radius:6px}
@media(min-width:700px){body.discovery .alive-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:901px) and (max-width:1100px){body.discovery .alive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Mount containers for the separate panel modules share the Lab's collapsible card. */
body.discovery .profile-main .profile-panel>summary .panel-title{flex:1 1 auto}
body.discovery .profile-main .profile-panel>summary .panel-count{margin-right:10px;font-size:11px;padding:1px 6px;border-radius:5px;background:var(--raised);color:var(--muted);font-weight:500;font-variant-numeric:tabular-nums}
body.discovery .profile-main .profile-panel>summary .panel-count:empty{display:none}
body.discovery .profile-main .profile-panel>.profile-panel-body{margin:0;padding:0 0 20px;border:0;background:none}
/* Trade desk inside the Launch & funding card. */
body.discovery .public-trade{margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--line)}
body.discovery .public-trade h3{margin:0 0 6px;font-size:14px}
body.discovery .public-trade>.form-note{margin:0 0 10px;font-size:13px;line-height:1.6}
body.discovery .trade-sides{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
body.discovery .trade-sides button{min-height:38px;padding:4px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:13px}
body.discovery .trade-sides button:hover{border-color:transparent;background:var(--raised);color:var(--text)}
body.discovery .trade-sides button[aria-pressed=true]{background:var(--raised);border-color:var(--line-strong);color:var(--text)}
body.discovery .trade-field{display:grid;gap:6px;margin:12px 0 0;font-size:13px}
body.discovery .trade-input{position:relative;display:block}
body.discovery .trade-input input{padding-right:84px;font-variant-numeric:tabular-nums}
body.discovery .trade-unit{position:absolute;top:50%;right:14px;transform:translateY(-50%);max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:560;color:var(--muted);pointer-events:none}
body.discovery .trade-balance{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px}
body.discovery .trade-balance small{font-size:12px;color:var(--muted)}
body.discovery .trade-max{min-height:32px;padding:2px 10px;border-radius:8px;font-size:12px}
body.discovery .trade-slippage{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:4px 0 0}
body.discovery .trade-slippage-label{margin-right:auto;font-size:12px;color:var(--muted)}
body.discovery .trade-slippage button{min-height:32px;padding:2px 10px;border-radius:8px;font-size:12px;background:transparent}
body.discovery .trade-slippage button[aria-pressed=true]{background:#2a2638;border-color:#454053;color:var(--accent)}
body.discovery .trade-quote{margin:10px 0 0;padding:4px 0 0;border-top:1px solid var(--line)}
body.discovery .trade-quote>div{padding:7px 0}
body.discovery .trade-quote dd{max-width:62%}
body.discovery .trade-action{width:100%;margin:12px 0 0}
body.discovery .trade-status{margin:8px 0 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
body.discovery .trade-status:empty{display:none}
body.discovery .trade-status[data-tone=error]{color:var(--error)}
body.discovery .trade-status[data-tone=live]{color:var(--green)}
body.discovery .trade-reconcile{min-height:36px;margin:6px 0 0;padding:4px 12px;font-size:12px}
@media(max-width:600px){body.discovery .profile-alive{padding:18px 16px}body.discovery .alive-head h2{font-size:19px}}
/* Hero stat lines reported by holder panels (ctx.setHeroStat), e.g. "Paid $1,240 to 17 people". */
body.discovery .agent-hero-stats{display:flex;flex-wrap:wrap;gap:4px 14px;margin:-6px 0 0;font-size:13px;line-height:1.5;color:#c8bfd5}
body.discovery .agent-hero-stats span{display:inline-flex;align-items:center;gap:7px}
body.discovery .agent-hero-stats span::before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:var(--accent)}
@media(max-width:800px){body.discovery .agent-hero-stats{justify-content:center;text-align:center}}
/* Profile tabs (20 Oct 2026, app/hosted/profile-tabs.mjs): the section row becomes a tablist routed by the URL hash. A section
   outside the selected tab gets .tab-off; its own [hidden] state is left alone. */
body.discovery #profile .profile-tabs{position:relative;gap:26px;margin:26px 0 24px}
body.discovery #profile .profile-tabs a[role=tab]{cursor:pointer;text-decoration:none}
body.discovery #profile .profile-tabs a[aria-selected=true]{color:var(--text);border-color:var(--accent);font-weight:560}
body.discovery #profile .profile-tabs a[aria-selected=true] .count{background:#2a2638;color:var(--accent)}
body.discovery #profile .profile-tabs a:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
body.discovery #profile .profile-tabs{scroll-margin-top:calc(var(--header) + 8px)}
body.discovery #profile .tab-off{display:none!important}
body.discovery #profile .profile-body[data-aside=false]{grid-template-columns:minmax(0,1fr)}
body.discovery #profile .profile-body[data-aside=false]>.profile-aside{display:none}
body.discovery #profile .profile-body[data-aside=false]>.profile-main{max-width:860px}
body.discovery #profile .profile-tab-pending{margin:0;padding:24px 0;color:var(--muted)}
/* Chat carries its own heading, so its collapsible title is not repeated inside its tab. */
body.discovery #profile #public-chat-options>summary{display:none}
body.discovery #profile #public-chat-options{padding-top:20px}
/* Glance tiles on the Overview: small cards; a tile with a destination is a link into its tab. */
body.discovery #profile #public-overview.status-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:0;padding:0;border:0}
body.discovery #profile #public-overview .status-item{display:block;min-width:0;padding:14px 16px!important;border:1px solid var(--line)!important;border-radius:14px;background:var(--surface);color:inherit;text-decoration:none;transition:border-color .18s,background-color .18s}
body.discovery #profile #public-overview .status-item[hidden]{display:none}
body.discovery #profile #public-overview strong{font-size:16px}
body.discovery #profile a.status-item[href]:hover,body.discovery #profile a.alive-fact[href]:hover{border-color:var(--line-strong)!important;background:var(--raised)}
body.discovery #profile a.status-item[href] .status-label::after,body.discovery #profile a.alive-fact[href] .alive-label::after{content:'\2192';content:'\2192' / '';margin-left:auto;color:var(--accent);font-size:13px}
body.discovery #profile a.status-item[href]:focus-visible,body.discovery #profile a.alive-fact[href]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
body.discovery #profile a.alive-fact{display:block;color:inherit;text-decoration:none}
body.discovery #profile a.alive-fact[href]{margin:0 -8px;padding-left:8px;padding-right:8px;border-radius:10px;transition:background-color .18s}
body.discovery #profile a.alive-fact[href]:hover{border-color:var(--line)!important}
body.discovery #profile a.alive-fact .alive-label{display:flex;align-items:center;gap:6px}
/* Latest activity preview and the chat entry on the Overview. */
body.discovery .profile-latest .section-title{flex-direction:row;align-items:center;justify-content:space-between;margin:0 0 6px;text-align:left}
body.discovery .profile-latest .section-title h2{font-size:19px}
body.discovery .profile-latest .text-link{font-size:13px;color:var(--accent)}
body.discovery .profile-latest .text-link::after{content:' \2192'}
body.discovery .profile-latest .activity-list{margin:0;padding:0}
body.discovery .profile-latest .activity-native-media{max-width:min(100%,320px);max-height:200px}
body.discovery .profile-chat-entry{padding:18px 22px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
body.discovery .profile-chat-entry .section-title{flex-direction:row;align-items:center;justify-content:space-between;margin:0 0 10px;text-align:left}
body.discovery .profile-chat-entry .section-title h2{font-size:19px}
body.discovery .profile-chat-entry .text-link{font-size:13px;color:var(--accent)}
body.discovery .profile-chat-entry .text-link::after{content:' \2192'}
body.discovery .chat-preview{display:grid;gap:8px;margin:0 0 10px;padding:0;list-style:none}
body.discovery .chat-preview-row{display:grid;gap:2px;max-width:min(88%,560px);padding:9px 13px;border:1px solid var(--line);border-radius:14px 14px 14px 5px;background:var(--raised)}
body.discovery .chat-preview-visitor{justify-self:end;border-radius:14px 14px 5px 14px}
body.discovery .chat-preview-by{font-size:11px;font-weight:560;color:var(--muted);font-variant-numeric:tabular-nums}
body.discovery .chat-preview-agent .chat-preview-by{color:var(--accent)}
body.discovery .chat-preview-row p{margin:0;font-size:14px;line-height:1.55;color:var(--text);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
body.discovery .chat-preview-note{margin:0;font-size:12.5px}
body.discovery #profile .profile-keyline{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;font-size:14px;color:var(--muted)}
body.discovery #profile .profile-keyline:empty{display:none}
body.discovery #profile .keyline-fact{display:inline-flex;align-items:center;gap:7px;color:var(--text);font-weight:560;text-decoration:none}
body.discovery #profile a.keyline-fact[href]:hover{color:var(--accent)}
body.discovery #profile a.keyline-fact[href]:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
body.discovery #profile span.keyline-fact{color:var(--muted);font-weight:500}
body.discovery #profile .keyline-sep{color:var(--dim)}
body.discovery #profile .keyline-dot{width:7px;height:7px;border-radius:50%;background:var(--muted)}
body.discovery #profile .keyline-dot[data-tone=live]{background:var(--green);box-shadow:0 0 0 3px var(--green-soft)}
body.discovery #profile .keyline-dot[data-tone=waiting]{background:var(--amber)}
/* About and the calendar card in the side column; the Token section in the main column. */
body.discovery .profile-about .profile-identity-facts{margin:0 0 12px}
body.discovery .profile-about .profile-identity-facts>div{border-bottom:1px solid var(--line)}
body.discovery .profile-about-note{margin:0;font-size:12px;line-height:1.6;color:var(--muted)}
body.discovery .profile-about-note a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
body.discovery .public-calendar-card .public-calendar{padding-top:0}
body.discovery #profile .profile-token{max-width:640px;margin:0;padding:22px}
body.discovery #profile .profile-token>h2{font-size:19px;margin:0 0 10px}
body.discovery #profile .profile-token>.public-token-identity{margin:0 0 4px}
body.discovery #profile .profile-token>.profile-technical,body.discovery #profile .profile-token>#token-economics{margin-top:16px}
@media(max-width:600px){
  body.discovery #profile .profile-tabs{gap:14px;margin:20px 0 18px}
  body.discovery #profile .profile-tabs a[role=tab]{font-size:13.5px}
  /* The row scrolls sideways when the tabs do not fit; a soft edge shows there is more. */
  body.discovery #profile .profile-tabs{padding-right:28px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
  body.discovery #profile #public-overview.status-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.discovery #profile #public-overview .status-item{padding:12px 13px!important}
  body.discovery #profile #public-overview:is([data-count="3"],[data-count="5"]) .status-item:not([hidden]):last-child{grid-column:1/-1}
  body.discovery .profile-chat-entry{padding:16px}
  body.discovery #profile .profile-token{padding:18px}
}
body.atelier .launch-closed-note{margin:14px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}
body.atelier .atelier-welcome .workspace-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
body.atelier .atelier-welcome .workspace-actions>*{margin:0}

@media(max-width:900px){body.discovery :is(#profiles,#home-agents).profile-grid{grid-template-columns:minmax(0,1fr)}}
/* Round 3 (20 Oct 2026): no About box. The Overview uses the full width and ends with one small muted line. */
body.discovery #profile .profile-body[data-active-tab=overview]>.profile-main{max-width:none}
body.discovery #profile .profile-footnote{margin:0;font-size:12.5px;line-height:1.6;color:var(--dim)}
body.discovery #profile .profile-footnote a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
body.discovery #profile .profile-footnote a:hover{color:var(--accent)}/* Pay with ETH or USDC before a launch (app/hosted/launch-payment.mjs): the choice, the amount and the numbered wallet steps. */
.launch-pay{display:grid;gap:12px;margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--raised);min-width:0}
.launch-pay .launch-pay-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.launch-pay .launch-pay-label{font-size:13px;color:var(--muted)}
.launch-pay .launch-pay-choice{display:inline-grid;grid-template-columns:1fr 1fr;gap:4px;min-width:168px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.launch-pay .launch-pay-choice button{min-height:36px;padding:4px 14px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:13px}
.launch-pay .launch-pay-choice button:hover{border-color:transparent;background:var(--surface);color:var(--text)}
.launch-pay .launch-pay-choice button[aria-pressed=true]{background:var(--surface);border-color:var(--line-strong);color:var(--text)}
.launch-pay .launch-pay-amount{margin:0;font-size:13px;line-height:1.55;color:var(--muted);overflow-wrap:anywhere}
.launch-pay .launch-pay-amount strong{margin-right:4px;font-size:20px;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}
.launch-pay .launch-pay-steps{display:grid;gap:8px;margin:0;padding:12px 0 0;border-top:1px solid var(--line);list-style:none}
.launch-pay .launch-pay-steps li{display:flex;align-items:center;gap:10px;margin:0;font-size:13px;color:var(--muted)}
.launch-pay .launch-pay-index{display:inline-grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border:1px solid var(--line-strong);border-radius:50%;font-size:11px;font-variant-numeric:tabular-nums}
.launch-pay .launch-pay-steps li[data-state=done]{color:var(--dim)}
.launch-pay .launch-pay-steps li[data-state=done] .launch-pay-index{border-color:transparent;background:var(--accent-soft);color:transparent;position:relative}
.launch-pay .launch-pay-steps li[data-state=done] .launch-pay-index::after{content:'';position:absolute;width:9px;height:5px;border:solid var(--accent);border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}
.launch-pay .launch-pay-steps li[data-state=active]{color:var(--text)}
.launch-pay .launch-pay-steps li[data-state=active] .launch-pay-index{border-color:var(--accent);color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.launch-pay .launch-pay-reconcile{justify-self:start;min-height:36px;padding:6px 12px;font-size:13px}

/* Start now (app/hosted/start-now.mjs, 21 Oct 2026): top up a waiting token agent with what it still needs; reuses the payment block. */
.start-now h3{margin:0;font-size:16px}
.start-now .start-now-lead{margin:0;font-size:14px;line-height:1.5;color:var(--text)}
.start-now .start-now-action{justify-self:start;min-height:44px;padding:10px 18px;border-radius:11px;background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}
.start-now .start-now-action:hover:not(:disabled){background:#e6daff;border-color:#e6daff;color:var(--accent-ink)}
.start-now .start-now-status:empty{display:none}
.start-now .form-note{margin:0}
@media (max-width:520px){.start-now .start-now-action{justify-self:stretch}}

/* Launch form (22 Oct 2026 redesign): a three-step indicator, the identity fields only, and everything else under one Advanced
   section with its defaults applied. Same fields, names and validation as before. */
.launch-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 18px;padding:0;list-style:none;counter-reset:none}
.launch-steps li{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 0 0;border-top:2px solid var(--line-strong);font-size:12px;font-weight:560;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.launch-steps li[data-state=current]{border-color:var(--accent);color:var(--text)}
.launch-steps li[data-state=done]{border-color:#8f7bb3;color:var(--muted)}
.launch-steps .launch-step-no{display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;border:1px solid var(--line-strong);font-size:11px;font-variant-numeric:tabular-nums}
.launch-steps li[data-state=current] .launch-step-no{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.discovery-launch-dialog fieldset{min-width:0;margin:0;padding:0;border:0}
.discovery-launch-dialog .form-stage>legend{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 12px;padding:0;font-size:15px;font-weight:600;color:var(--text)}
.discovery-launch-dialog .form-stage>legend .step-no,body.atelier .advanced-body .form-stage>legend .step-no{display:none}
.discovery-launch-dialog .form-stage>legend .operating-summary{margin-left:auto;font-size:12px;font-weight:400;color:var(--muted)}
.launch-simple [data-stage=identity]>legend{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;float:none!important;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.discovery-launch-dialog details>summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;color:var(--text);font-size:14px}
.advanced-settings{margin:6px 0 0;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.discovery-launch-dialog .advanced-settings>summary,body.atelier .advanced-settings>summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-height:54px;padding:8px 16px;list-style:none;cursor:pointer;font-size:15px;font-weight:600;color:var(--text)}
.advanced-settings>summary::-webkit-details-marker{display:none}
.advanced-settings>summary small{font-size:12px;font-weight:400;color:var(--muted)}
.advanced-settings>summary::after{content:'+';margin-left:auto;font-size:20px;font-weight:400;line-height:1;color:var(--accent)}
.advanced-settings[open]>summary::after{content:'\2212'}
.advanced-body{display:flex;flex-direction:column;gap:18px;padding:4px 16px 18px}
body.atelier .advanced-body .form-stage{padding:0;border:0;background:none}
.launch-fee-details{margin:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.launch-fee-details>summary{font-size:13px!important;color:var(--muted)!important}
.launch-fee-details[open]{padding-bottom:4px}
@media(max-width:480px){.launch-steps li{font-size:11px;gap:6px}.discovery-launch-dialog{padding:20px 16px}.discovery-launch-dialog .fields{grid-template-columns:1fr}}

/* Redesign (22 Oct 2026): one type voice across the site. No italic serif second lines, no small-caps eyebrows. */
body.discovery em,body.atelier em,body.docs-shell em{font-family:inherit;font-style:normal;font-weight:inherit;letter-spacing:inherit;color:var(--accent)}
.eyebrow,.label{font-size:12px;font-weight:560;letter-spacing:0;text-transform:none;color:var(--muted)}
.tabular,.agent-tile-figure,.keyline-fact{font-variant-numeric:tabular-nums}

/* Discover: one title row (Agents, the count, Launch), three cards a line on wide screens. */
body.discovery #directory .page-intro{align-items:center;padding:4px 0 20px}
body.discovery #directory-title{font-size:clamp(30px,3.4vw,40px);letter-spacing:-.03em}
body.discovery #directory .page-intro .directory-count{margin:6px 0 0}
#directory-launch-slot:empty{display:none}
#directory-launch-slot button{min-height:46px;padding:10px 22px}
#directory-launch-slot .launch-soon{opacity:.7}
@media(min-width:1100px){body.discovery #profiles.profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
body.discovery #profiles .agent-poster,body.discovery #profiles .agent-poster.has-media{width:68px;height:68px;border-radius:15px}
body.discovery #profiles .agent-letter{font:600 28px/1 Inter,system-ui,sans-serif}
body.discovery :is(#profiles,#home-agents) .agent-tile-state{flex-wrap:wrap;gap:4px 7px}
body.discovery :is(#profiles,#home-agents) :is(.agent-tile-fees,.agent-tile-age)::before{content:'\00b7';margin-right:7px;color:var(--dim)}
body.discovery :is(#profiles,#home-agents) :is(.agent-tile-fees,.agent-tile-age){font-variant-numeric:tabular-nums}
body.discovery #home-agents .agent-letter{font:600 26px/1 Inter,system-ui,sans-serif}

/* Profile: a thin, trading-first header. No banner art or kicker; the key line sits under the name; Buy leads the actions. */
#agent-hero .agent-identity-art,#agent-hero #profile-kicker{display:none}
#agent-hero.agent-identity{padding:22px 24px;gap:14px;border-color:var(--line);background:var(--surface)}
#agent-hero.agent-identity::after{content:none}
#agent-hero .profile-keyline{margin:8px 0 0}
body.discovery #profile .agent-identity-name h1{font-size:clamp(28px,3.2vw,38px)}
body.discovery #profile .agent-identity-bio{font-size:15px;color:var(--muted)}
#profile[data-stale=false] #profile-status .hero-caption,#profile[data-stale=false] #profile-status>.pill:first-child{display:none}
body.discovery .hero-action.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}

/* Launch dialog extras: carried-over name, progress list, share link. */
.launch-naming{margin:4px 0 14px;border:1px solid var(--line);border-radius:12px;padding:0 14px;background:var(--bg)}
.launch-naming>summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-height:52px!important;list-style:none}
.launch-naming>summary::-webkit-details-marker{display:none}
.launch-naming-value{font-weight:600;color:var(--text)}
.launch-naming>summary small{margin-left:auto;font-size:12px;color:var(--accent)}
.launch-naming[open]{padding-bottom:6px}
.launch-progress{display:grid;gap:6px;margin:14px 0;padding:0;list-style:none}
.launch-progress li{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--dim)}
.launch-progress li::before{content:'';flex:none;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--line-strong)}
.launch-progress li[data-state=done]{color:var(--muted)}
.launch-progress li[data-state=done]::before{border-color:var(--green);background:var(--green) center/10px no-repeat;box-shadow:inset 0 0 0 3px var(--surface)}
.launch-progress li[data-state=current]{color:var(--text);font-weight:560}
.launch-progress li[data-state=current]::before{border-color:var(--accent);box-shadow:inset 0 0 0 4px var(--surface);background:var(--accent)}
.discovery-launch-dialog .discovery-share-link{display:inline-flex;align-items:center;min-height:44px;margin:12px 0 0 16px;color:var(--accent);text-decoration:underline;text-underline-offset:4px}

/* Workspace signed out: the title, one line and the actions; no illustration or feature grid. */
body.atelier #empty .launch-outline,body.atelier #empty .empty-grid,body.atelier #empty .bottom-note{display:none}
body.atelier #empty h1 br{display:none}
body.atelier #empty h1 em::before{content:' '}
body.discovery :is(#profiles,#home-agents) .agent-tile-facts{flex-wrap:wrap;row-gap:4px}
body.discovery :is(#profiles,#home-agents) .agent-tile-market{margin-left:auto}
body.discovery #profiles .agent-tile-figure{font-size:17px}
body.discovery #profiles .agent-tile-figure:is([data-figure=tokenless],[data-figure=none]){font-size:13px}
.launch-progress~.details dt:first-of-type,.launch-progress~.details dd:first-of-type{display:none}

/* Docs and developer pages (22 Oct 2026): lighter sidebar and spacing; no hero art on the opening topic. */
body.docs-shell .docs-sidebar nav a{min-height:36px;font-size:14px}
body.docs-shell .docs-sidebar .nav-label{font-size:12px;letter-spacing:0;text-transform:none;color:var(--dim)}
body.docs-shell .docs-topic>.eyebrow{display:none}
body.docs-shell .docs-topic .lead{font-size:17px;max-width:56ch}
body.docs-shell .dv-art--short{display:none}
@media(max-width:700px){body.discovery #directory .directory-sort{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;text-align:left}body.discovery #directory .directory-sort select{flex:1;width:auto;margin:0}}
body.atelier #empty h1 em{font:inherit!important;letter-spacing:inherit!important;color:var(--accent)}
body.atelier #empty h1{font-size:clamp(34px,4.4vw,56px)!important}
.discovery-launch-dialog .fields.identity-fields:not([data-agent-only=true]){grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
@media(max-width:480px){.advanced-settings>summary small{flex-basis:100%;order:3}.discovery-launch-dialog .avatar-picker{padding:12px}}

/* Pass 2 (22 Oct 2026). Header: Discover · Docs · Launch · Your agents; nothing clipped at 320/390. */
@media(max-width:800px){.site-header .primary-navigation{gap:18px}}
@media(max-width:420px){body.atelier .site-header .primary-navigation a[aria-current=page][href="/agents"]{display:none}.site-header .primary-navigation{gap:16px}.site-header .primary-navigation .nav-launch{padding:0 14px}}
/* Footer: wordmark, X, GitHub, Docs. */
@media(max-width:600px){.site-footer{flex-wrap:nowrap}.site-footer .footer-links{width:auto;margin-left:auto}}

/* Profile: four tabs; Chat carries a Chat · Builds · Ideas row. Empty tiles and the not-started vital-signs line are left out. */
.profile-subtabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}
.profile-subtabs a{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:560;color:var(--muted);text-decoration:none}
.profile-subtabs a:hover{color:var(--text);border-color:var(--line-strong)}
.profile-subtabs a[aria-current=true]{background:#2a2638;border-color:#454053;color:var(--accent)}
.profile-subtabs .count:empty{display:none}
.profile-subtabs .count{font-size:11px;color:var(--dim)}
#public-overview .status-item[data-empty=true],#public-alive .alive-fact[data-empty=true]{display:none}
#public-alive[data-state=waiting] .alive-head,#public-alive[data-state=waiting] .alive-caption{display:none}
#public-alive[data-state=waiting]:not(:has(.alive-fact:not([data-empty=true]))){display:none}
#public-calendar-card{display:none}

/* Fee split bar (fee-bar.mjs). */
.fee-bar{margin:14px 0;padding:0}
.fee-bar figcaption{margin:0 0 8px;font-size:13px;color:var(--muted)}
.fee-bar-track{display:flex;height:10px;border-radius:999px;overflow:hidden;background:var(--raised);gap:2px}
.fee-bar-part{flex:1 1 0;min-width:4px;background:var(--accent)}
.fee-bar-part[data-key=brain]{background:#b49ae0}.fee-bar-part[data-key=creator]{background:var(--green)}.fee-bar-part[data-key=treasury]{background:#8e8aa0}.fee-bar-part[data-key=burn]{background:var(--amber)}
.fee-bar-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin:8px 0 0;padding:0;list-style:none;font-size:12px;color:var(--muted)}
.fee-bar-legend li{display:inline-flex;align-items:center;gap:6px}
.fee-bar-legend li::before{content:'';width:8px;height:8px;border-radius:2px;background:var(--accent)}
.fee-bar-legend li[data-key=brain]::before{background:#b49ae0}.fee-bar-legend li[data-key=creator]::before{background:var(--green)}.fee-bar-legend li[data-key=treasury]::before{background:#8e8aa0}.fee-bar-legend li[data-key=burn]::before{background:var(--amber)}
.fee-bar-legend strong{color:var(--text);font-variant-numeric:tabular-nums}
.token-economics p{margin:6px 0 0;font-size:12px}

/* Workspace signed out: "Your agents", one line, Launch. */
body.atelier #empty .workspace-actions a.button.quiet{display:none}
body.atelier #empty{padding-top:4vh}
.remote-backups-more:has(>#remote-backups[hidden]){display:none}
.launch-legal a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
/* Signed-out workspace: Launch stays visible (disabled while launches are closed); the closed note replaces the intro line. */
body.atelier #empty .workspace-actions>#empty-create{display:inline-flex;background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
body.atelier #empty .workspace-actions>#empty-create:disabled{opacity:.55}
body.atelier #empty:has(#launch-closed-note:not([hidden])) .atelier-welcome>div>p:not(.form-note){display:none}
@media(max-width:800px){.site-footer{flex-direction:row;align-items:center;flex-wrap:nowrap}.site-footer .footer-links{width:auto;margin-left:auto}}
.discovery-launch-dialog .launch-legal a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
