:root {
  --paper: #f3f0e8;
  --paper-deep: #e7e1d3;
  --surface: #fbfaf5;
  --ink: #14201c;
  --muted: #56635e;
  --line: #d4d0c4;
  --line-dark: #b8b3a7;
  --forest: #143f31;
  --forest-2: #205844;
  --lime: #b8f34a;
  --lime-dark: #8fc82d;
  --coral: #ff785c;
  --lilac: #d9c7ff;
  --blue: #b9d9ff;
  --amber: #f3cd63;
  --white: #fff;
  --danger: #9e3c31;
  --shadow: 0 18px 50px rgba(20, 32, 28, .09);
  --radius-sm: 10px;
  --radius-md: 17px;
  --radius-lg: 27px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 2%, rgba(184,243,74,.16), transparent 26rem),
    radial-gradient(circle at 98% 18%, rgba(217,199,255,.19), transparent 29rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.04em; }
h1 { margin-bottom: 22px; font-size: clamp(3.2rem, 7vw, 6.7rem); font-weight: 620; line-height: .92; }
h2 { margin-bottom: 13px; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 620; line-height: 1; }
h3 { margin-bottom: 8px; font-size: 1.24rem; line-height: 1.18; }
h4 { margin-bottom: 7px; font-size: 1rem; }
p { line-height: 1.6; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; margin: -1px!important; padding: 0!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.skip-link { position: fixed; z-index: 300; top: 12px; left: 12px; padding: 10px 14px; border-radius: 8px; color: white; background: var(--forest); transform: translateY(-170%); transition: transform .16s; }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.eyebrow { margin-bottom: 10px; color: var(--forest-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.section { padding: 84px 0; }
.section-tight { padding: 48px 0; }
.section-rule { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { max-width: 760px; }
.section-heading p { max-width: 570px; margin-bottom: 4px; color: var(--muted); }

.site-header { position: sticky; z-index: 80; top: 0; border-bottom: 1px solid rgba(20,32,28,.1); background: rgba(243,240,232,.9); backdrop-filter: blur(18px); }
.beta-notice { padding: 7px 16px; color: white; background: var(--forest); text-align: center; font-size: .72rem; }
.beta-notice strong { margin-right: 5px; color: var(--lime); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; font-size: 1.06rem; font-weight: 800; letter-spacing: -.035em; }
.brand-mark { position: relative; display: grid; width: 35px; height: 35px; place-items: center; overflow: hidden; border-radius: 11px; color: var(--forest); background: var(--lime); }
.brand-mark::before, .brand-mark::after { position: absolute; width: 6px; height: 25px; border: 2px solid currentColor; border-block: 0; border-radius: 50%; content: ""; transform: rotate(38deg); }
.brand-mark::after { transform: rotate(-38deg); }
.beta-pill { padding: 4px 7px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--muted); font: 700 .6rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 3px; }
.nav-link { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: .88rem; font-weight: 650; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); background: rgba(20,63,49,.07); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-menu-button { display: none; }
.mobile-nav { display: none; }

.button, .icon-button, .chip-button, .signal-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-weight: 750; transition: transform .16s, box-shadow .16s, background .16s, color .16s; }
.icon-button.mobile-menu-button { display: none; }
.button { min-height: 44px; padding: 10px 17px; border-radius: 11px; gap: 8px; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--forest); box-shadow: 0 7px 18px rgba(20,63,49,.16); }
.button-primary:hover { background: var(--forest-2); }
.button-signal { color: var(--forest); background: var(--lime); }
.button-signal:hover { background: #c6ff59; }
.button-lime { color: var(--forest); background: var(--lime); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.button-lime:hover { background: #c6ff59; }
.button-secondary { border-color: var(--line-dark); background: rgba(255,255,255,.45); }
.button-danger { border-color: rgba(158,60,49,.48); color: var(--danger); background: rgba(255,120,92,.07); }
.button-danger:hover { color: white; background: var(--danger); }
.button-ghost { border-color: transparent; background: transparent; }
.button-small { min-height: 44px; padding: 8px 12px; font-size: .85rem; }
.button-full { width: 100%; }
.button.active, .button[aria-pressed="true"] { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(20,63,49,.14); }
.icon-button { width: 44px; height: 44px; padding: 0; border-color: var(--line); border-radius: 50%; background: transparent; font-size: 1.35rem; }
.icon-button:hover { background: var(--paper-deep); }
.user-button { width: 44px; height: 44px; padding: 0; overflow: hidden; border: 0; border-radius: 50%; color: white; background: var(--forest); font-size: .78rem; font-weight: 800; }
.user-button .avatar { width: 100%; height: 100%; border: 0; color: white; }
.notification-bell { position: relative; color: var(--forest); background: rgba(255,255,255,.42); }
.notification-bell[aria-expanded="true"] { border-color: var(--forest); background: var(--surface); box-shadow: 0 0 0 3px rgba(20,63,49,.09); }
.bell-icon { position: relative; display: block; width: 20px; height: 21px; }
.bell-icon::before { position: absolute; top: 2px; right: 3px; bottom: 5px; left: 3px; border: 2px solid currentColor; border-bottom: 0; border-radius: 9px 9px 4px 4px; content: ""; }
.bell-icon::after { position: absolute; bottom: 0; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; transform: translateX(-50%); }
.bell-icon > span { position: absolute; right: 1px; bottom: 4px; left: 1px; height: 2px; border-radius: 999px; background: currentColor; }
.notification-badge { position: absolute; top: -4px; right: -4px; display: grid; min-width: 19px; height: 19px; place-items: center; padding: 0 5px; border: 2px solid var(--paper); border-radius: 999px; color: white; background: var(--danger); font: 850 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.hero { padding: 78px 0 52px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(330px,.8fr); align-items: end; gap: 64px; }
.hero-copy { max-width: 840px; }
.hero h1 em { color: var(--forest-2); font-family: Georgia, serif; font-weight: 400; }
.hero-lead { max-width: 730px; margin-bottom: 28px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.36rem); line-height: 1.55; }
.hero-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.thesis-card { padding: 27px; border: 1px solid var(--forest); border-radius: var(--radius-lg); color: white; background: var(--forest); box-shadow: var(--shadow); }
.thesis-card .eyebrow { color: var(--lime); }
.thesis-card blockquote { margin: 0 0 23px; font: 400 1.46rem/1.35 Georgia, serif; }
.thesis-chain { display: flex; flex-wrap: wrap; gap: 5px; color: var(--lime); font: 700 .7rem/1.4 ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; }
.hero-proof { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 52px; border-block: 1px solid var(--line); }
.proof-item { padding: 20px 22px 20px 0; }
.proof-item + .proof-item { padding-left: 22px; border-left: 1px solid var(--line); }
.proof-item strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.proof-item span { color: var(--muted); font-size: .82rem; line-height: 1.45; }

.spotlight { padding: 34px 0 82px; }
.spotlight-card { position: relative; display: grid; grid-template-columns: minmax(260px,.78fr) minmax(0,1.22fr); overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.spotlight-art { position: relative; display: flex; min-height: 440px; flex-direction: column; justify-content: space-between; padding: 30px; overflow: hidden; color: var(--forest); background: var(--lilac); }
.spotlight-art::before, .spotlight-art::after { position: absolute; border: 2px solid currentColor; border-radius: 50%; content: ""; opacity: .35; }
.spotlight-art::before { width: 330px; height: 330px; right: -130px; bottom: -60px; }
.spotlight-art::after { width: 170px; height: 170px; right: 20px; bottom: 18px; }
.spotlight-kicker { position: relative; z-index: 1; display: inline-flex; width: fit-content; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.65); font: 800 .68rem/1 ui-monospace, monospace; text-transform: uppercase; }
.product-logo.spotlight-product-logo { z-index: 1; width: clamp(150px,17vw,220px); height: clamp(150px,17vw,220px); align-self: center; border-width: 2px; border-radius: 30%; box-shadow: 0 24px 60px rgba(20,32,28,.16); font: 800 clamp(2.7rem,7vw,6rem)/1 Georgia,serif; }
.spotlight-content { padding: clamp(30px,5vw,58px); }
.meta-row, .tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.meta-row { margin-bottom: 20px; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.4); font-size: .72rem; font-weight: 700; }
.tag-open { border-color: #96bf42; color: var(--forest); background: rgba(184,243,74,.23); }
.tag-review { border-color: #d7b75e; color: #66500d; background: rgba(243,205,99,.22); }
.tag-paused { border-color: rgba(158,60,49,.42); color: var(--danger); background: rgba(255,120,92,.12); }
.spotlight-content h2 { max-width: 670px; font-size: clamp(2.5rem,5vw,4.6rem); }
.product-tagline { max-width: 650px; margin-bottom: 24px; color: var(--muted); font-size: 1.12rem; }
.problem-callout { margin: 22px 0; padding: 17px 18px; border-left: 4px solid var(--coral); border-radius: 0 11px 11px 0; background: rgba(255,120,92,.09); }
.problem-callout span { display: block; margin-bottom: 5px; color: var(--danger); font: 750 .67rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.builder-inline { display: flex; align-items: center; gap: 11px; margin: 24px 0; }
.avatar { position: relative; isolation: isolate; display: grid; flex: 0 0 auto; width: 42px; height: 42px; overflow: hidden; place-items: center; border: 1px solid rgba(20,32,28,.12); border-radius: 50%; color: var(--forest); background: var(--lime); font-size: .73rem; font-weight: 850; }
.avatar-fallback { position: relative; z-index: 0; }
.avatar img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--paper-deep); }
.avatar-large { width: 82px; height: 82px; font-size: 1.25rem; }
.builder-inline p { margin: 0; font-size: .86rem; line-height: 1.35; }
.signal-bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-top: 25px; }
.signal-button { min-height: 48px; padding: 8px 13px; border-color: var(--line); border-radius: 11px; background: white; gap: 8px; }
.signal-button:hover, .signal-button.active { border-color: var(--forest); background: var(--lime); }
.signal-button strong { font-size: .82rem; }
.signal-button span { color: var(--muted); font-size: .74rem; }
.pending-note { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 25px; padding: 14px 16px; border: 1px solid #e7c68a; border-radius: 11px; background: rgba(243,205,99,.14); }
.pending-note span { color: var(--muted); font-size: .82rem; }
.pending-note-paused { border-color: rgba(158,60,49,.38); background: rgba(255,120,92,.09); }
.pending-note-paused strong { color: var(--danger); }

.discovery-shell { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 28px; }
.filter-panel { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(251,250,245,.72); }
.filter-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.filter-title h3 { margin: 0; font-size: 1rem; }
.text-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px; border: 0; color: var(--forest-2); background: none; font-size: .76rem; font-weight: 750; }
.filter-group { margin-top: 18px; }
.filter-group label, .filter-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .71rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.filter-group select, .search-input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; }
.check-row { display: flex; align-items: center; gap: 9px; margin-top: 11px; color: var(--muted); font-size: .85rem; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--forest); }
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rank-tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(251,250,245,.7); }
.rank-tab { min-height: 44px; padding: 7px 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: .78rem; font-weight: 750; }
.rank-tab[aria-pressed="true"] { color: white; background: var(--forest); }
.result-count { color: var(--muted); font-size: .82rem; }
.product-list { display: grid; gap: 10px; }
.product-row { display: grid; grid-template-columns: 42px 54px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(251,250,245,.8); transition: border-color .16s, transform .16s, box-shadow .16s; }
.product-row:hover { border-color: var(--line-dark); transform: translateY(-2px); box-shadow: 0 9px 24px rgba(20,32,28,.06); }
.rank-number { color: var(--muted); font: 750 .8rem/1 ui-monospace, monospace; text-align: center; }
.product-logo { position: relative; display: grid; flex: 0 0 auto; width: 54px; height: 54px; overflow: hidden; place-items: center; border: 1px solid rgba(20,32,28,.12); border-radius: 14px; color: var(--forest); background: var(--logo-fallback,var(--blue)); font-weight: 850; letter-spacing: -.04em; isolation: isolate; }
.product-logo .logo-fallback { position: relative; z-index: 0; }
.product-logo img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 7%; object-fit: contain; background: #fff; }
.product-row-main { min-width: 0; }
.product-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 4px; }
.product-row-title h3 { margin: 0; font-size: 1.06rem; }
.product-row-main > p { overflow: hidden; margin: 0 0 8px; color: var(--muted); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.mini-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .7rem; }
.row-signals { display: grid; grid-template-columns: repeat(3,58px); gap: 4px; text-align: center; }
.row-signal { padding: 7px 4px; border-radius: 8px; background: rgba(20,63,49,.045); }
.row-signal strong { display: block; font-size: .78rem; }
.row-signal span { color: var(--muted); font-size: .58rem; text-transform: uppercase; }
.empty-state { padding: 50px 24px; border: 1px dashed var(--line-dark); border-radius: var(--radius-md); text-align: center; }

.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.feature-card, .problem-card, .stack-card, .builder-card { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(251,250,245,.82); transition: transform .16s, box-shadow .16s, border-color .16s; }
.feature-card:hover, .problem-card:hover, .stack-card:hover, .builder-card:hover { border-color: var(--line-dark); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-number { display: grid; width: 35px; height: 35px; margin-bottom: 35px; place-items: center; border-radius: 10px; background: var(--lime); font: 800 .72rem/1 ui-monospace, monospace; }
.feature-card p, .problem-card p, .stack-card p, .builder-card p { color: var(--muted); font-size: .88rem; }
.problem-card { display: flex; min-height: 230px; flex-direction: column; }
.problem-card .tag-row { margin-bottom: 18px; }
.problem-card h3 { font-size: 1.3rem; }
.problem-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.response-count { color: var(--forest); font-weight: 800; }
.stack-card { min-height: 290px; }
.stack-ribbon { height: 6px; margin: -22px -22px 21px; border-radius: var(--radius-md) var(--radius-md) 0 0; background: var(--lilac); }
.stack-tiles { display: flex; margin: 20px 0; }
.product-logo.stack-tile { width: 44px; height: 44px; margin-right: -8px; border: 3px solid var(--surface); border-radius: 12px; font-size: .67rem; }
.stack-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; }
.builder-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.builder-card-head h3, .builder-card-head p { margin-bottom: 2px; }
.portfolio-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 20px 0 14px; }
.product-logo.portfolio-item { width: 100%; height: 64px; border-radius: 10px; font-size: .75rem; }

.manifesto-band { overflow: hidden; padding: 76px 0; color: white; background: var(--forest); }
.manifesto-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.manifesto-band .eyebrow { color: var(--lime); }
.manifesto-band h2 { max-width: 480px; }
.manifesto-copy { font: 400 clamp(1.25rem,2.4vw,2rem)/1.45 Georgia, serif; }
.manifesto-copy em { color: var(--lime); }
.principles { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin-top: 42px; background: rgba(255,255,255,.17); }
.principle { padding: 23px; background: var(--forest); }
.principle strong { display: block; margin-bottom: 6px; color: var(--lime); }
.principle span { color: rgba(255,255,255,.68); font-size: .85rem; line-height: 1.5; }
.distribution-tail { margin-top: 82px; padding-top: 66px; border-top: 1px solid rgba(255,255,255,.17); }
.distribution-tail-header { max-width: 920px; }
.distribution-tail-header h3 { margin-bottom: 12px; font-size: clamp(2rem,4vw,3.5rem); line-height: 1; }
.distribution-tail-header > p:last-child { margin-bottom: 0; color: rgba(255,255,255,.7); font: italic 400 clamp(1.1rem,2.1vw,1.55rem)/1.45 Georgia,serif; }
.distribution-tail-chart { margin: 42px 0 0; }
.distribution-plot { position: relative; height: clamp(370px,41vw,520px); }
.distribution-plot svg { width: 100%; height: 100%; overflow: visible; }
.distribution-axis, .distribution-tick-marks path { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.distribution-launch-area { fill: rgba(243,240,232,.045); }
.distribution-launch-curve { fill: none; stroke: var(--paper); stroke-linecap: round; stroke-width: 4; vector-effect: non-scaling-stroke; }
.distribution-tail-area { fill: url(#distribution-tail-fill); }
.distribution-tail-curve { fill: none; stroke: var(--lime); stroke-linecap: round; stroke-width: 5; vector-effect: non-scaling-stroke; }
.distribution-discoveries circle { fill: var(--lime); stroke: var(--forest); stroke-width: 4; vector-effect: non-scaling-stroke; }
.distribution-y-label { position: absolute; top: 43%; left: -2px; color: rgba(255,255,255,.53); font: 500 .72rem/1 ui-monospace,monospace; letter-spacing: .05em; transform: translate(-42%,-50%) rotate(-90deg); }
.distribution-curve-label { position: absolute; display: grid; gap: 3px; pointer-events: none; }
.distribution-curve-label strong { font-size: clamp(.92rem,1.6vw,1.15rem); }
.distribution-curve-label span, .distribution-arrivals { color: rgba(255,255,255,.65); font-size: clamp(.72rem,1.25vw,.9rem); line-height: 1.4; }
.distribution-launch-label { top: 20%; left: 10%; }
.distribution-home-label { top: 60%; right: 1%; text-align: right; }
.distribution-home-label strong { color: var(--lime); }
.distribution-arrivals { position: absolute; top: 59%; left: 28%; }
.distribution-long-tail { position: absolute; bottom: 11%; left: 48%; color: rgba(184,243,74,.52); font: 700 .72rem/1 ui-monospace,monospace; letter-spacing: .28em; text-transform: uppercase; transform: translateX(-50%); }
.distribution-x-ticks { display: flex; justify-content: space-between; margin: -2px 0 0 5.4%; color: rgba(255,255,255,.53); font-size: .76rem; }
.distribution-tail-chart figcaption { margin: 31px 0 0 5.4%; color: rgba(255,255,255,.62); font-size: .82rem; }
.distribution-tail-chart figcaption span { color: rgba(255,255,255,.43); }

.page-hero { padding: 66px 0 38px; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 60px; }
.page-hero h1 { max-width: 850px; font-size: clamp(3rem,6vw,5.6rem); }
.page-hero p { max-width: 680px; color: var(--muted); font-size: 1.12rem; }
.page-stat { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.page-stat strong { display: block; font: 500 3rem/1 Georgia, serif; }
.page-stat span { color: var(--muted); font-size: .8rem; }

.profile-hero { padding: 58px 0 35px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a:hover { color: var(--forest); }
.profile-top { display: grid; grid-template-columns: 100px minmax(0,1fr) auto; align-items: start; gap: 24px; }
.product-logo.profile-logo { width: 100px; height: 100px; border-radius: 25px; font-size: 1.65rem; }
.profile-title h1 { margin-bottom: 10px; font-size: clamp(2.8rem,6vw,5.3rem); }
.profile-title .product-tagline { margin-bottom: 17px; }
.profile-actions { display: grid; min-width: 170px; gap: 8px; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 28px; padding: 32px 0 82px; }
.content-card { margin-bottom: 18px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(251,250,245,.82); }
.content-card h2 { margin-bottom: 20px; font-size: 1.65rem; }
.content-card h3 { margin-top: 25px; }
.story-lead { font: 400 1.25rem/1.6 Georgia, serif; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.detail-item { padding: 15px; border-radius: 11px; background: rgba(20,63,49,.045); }
.detail-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.detail-item strong { font-size: .88rem; }
.safety-note { padding: 18px; border: 1px solid #e7c68a; border-radius: 12px; background: rgba(243,205,99,.14); }
.safety-note strong { display: block; margin-bottom: 6px; }
.safety-note p { margin: 0; color: var(--muted); font-size: .85rem; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 24px 25px; border-left: 2px solid var(--line-dark); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { position: absolute; width: 11px; height: 11px; top: 3px; left: -7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--lime); content: ""; }
.timeline-item h3 { margin: 0 0 7px; }
.timeline-item p:not(.eyebrow) { color: var(--muted); font-size: .88rem; }
.timeline-item a, .timeline-item > div > span { font-size: .76rem; font-weight: 700; }
.lineage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.lineage-node { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.lineage-node span { display: block; color: var(--muted); font-size: .7rem; }
.lineage-arrow { color: var(--forest); font-size: 1.4rem; }
.comment { display: grid; grid-template-columns: 36px 1fr; gap: 11px; padding: 17px 0; border-top: 1px solid var(--line); }
.comment:first-of-type { border-top: 0; }
.comment .avatar { width: 36px; height: 36px; font-size: .62rem; }
.comment-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: .78rem; }
.comment-body { margin: 0; color: var(--muted); font-size: .86rem; }
.comment-form { display: flex; gap: 8px; margin-top: 18px; }
.comment-form input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.stacked-sidebar { position: sticky; top: 92px; align-self: start; display: grid; max-height: calc(100vh - 112px); gap: 16px; padding-right: 2px; overflow-y: auto; scrollbar-gutter: stable; }
.sidebar-card { position: static; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.sidebar-card + .sidebar-card { margin-top: 0; }
.builder-list { display: grid; gap: 13px; }
.builder-list + .button { margin-top: 16px; }
.builder-list-item { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.builder-list-item:last-child { padding-bottom: 0; border: 0; }
.builder-list-item p { margin: 0; font-size: .77rem; line-height: 1.4; }
.stat-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.stat-line span { color: var(--muted); }
.stat-line:last-child { border-bottom: 0; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 28px; align-items: start; }
.workspace-column { display: grid; gap: 18px; min-width: 0; }
.workspace-main { margin: 0; }
.workspace-profile-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0; }
.workspace-profile-identity { display: flex; min-width: 0; align-items: center; gap: 18px; }
.workspace-profile-identity > div { min-width: 0; }
.workspace-profile-card h2 { margin-bottom: 2px; }
.workspace-profile-card .builder-bio { max-width: 680px; margin: 12px 0; color: var(--muted); }
.workspace-profile-card > .button { flex: 0 0 auto; }
.workspace-list { display: grid; gap: 9px; }
.workspace-list > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.workspace-list > a:hover { border-color: var(--line-dark); }
.workspace-product-copy { min-width: 0; flex: 1; }
.product-logo.workspace-logo { width: 48px; height: 48px; border-radius: 12px; font-size: .72rem; }
.workspace-list p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.sidebar-card .button + .button { margin-top: 9px; }
.notification-settings-card h3 { margin-bottom: 14px; }
.notification-setting-list { display: grid; border-block: 1px solid var(--line); }
.notification-setting { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 0; cursor: pointer; }
.notification-setting + .notification-setting { border-top: 1px solid var(--line); }
.notification-setting > span { display: grid; gap: 3px; }
.notification-setting strong { font-size: .78rem; }
.notification-setting small { color: var(--muted); font-size: .68rem; line-height: 1.4; }
.notification-setting input { position: relative; order: 2; width: 39px; height: 23px; margin: 0; border: 1px solid var(--line-dark); border-radius: 999px; background: var(--paper-deep); appearance: none; cursor: pointer; transition: background .16s, border-color .16s; }
.notification-setting input::before { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(20,32,28,.2); content: ""; transition: transform .16s; }
.notification-setting input:checked { border-color: var(--forest); background: var(--forest); }
.notification-setting input:checked::before { transform: translateX(16px); }
.notification-setting input:disabled { cursor: wait; opacity: .55; }
.notification-settings-card > .muted { margin: 14px 0 0; font-size: .7rem; }

.ops-workspace-card { border-color: rgba(143,200,45,.55); background: linear-gradient(145deg,rgba(184,243,74,.17),var(--surface)); }
.ops-workspace-card h3 { margin-bottom: 7px; }
.ops-admin-badge { display: grid; min-width: 160px; gap: 4px; padding: 16px 18px; border: 1px solid rgba(184,243,74,.42); border-radius: 14px; color: white; background: var(--forest); }
.ops-admin-badge span { color: rgba(255,255,255,.66); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.ops-admin-badge strong { color: var(--lime); text-transform: capitalize; }
.ops-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 28px; }
.ops-summary article { display: grid; min-height: 140px; align-content: end; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(251,250,245,.84); }
.ops-summary span { color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ops-summary strong { margin: 4px 0; color: var(--forest); font-size: 2.7rem; line-height: 1; }
.ops-summary small { color: var(--muted); font-size: .7rem; }
.ops-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,340px); align-items: start; gap: 28px; }
.ops-main { min-width: 0; }
.ops-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.ops-tabs { display: inline-flex; flex-wrap: wrap; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(251,250,245,.72); }
.ops-tabs button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: .78rem; font-weight: 780; }
.ops-tabs button:hover { color: var(--ink); background: rgba(20,63,49,.06); }
.ops-tabs button[aria-pressed="true"] { color: white; background: var(--forest); }
.ops-tabs button span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding-inline: 5px; border-radius: 999px; color: var(--forest); background: var(--lime); font-size: .67rem; }
.ops-status-tabs { display: flex; width: 100%; margin-bottom: 18px; }
.ops-status-tabs button { flex: 1; }
.ops-list { display: grid; gap: 16px; }
.ops-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 10px 30px rgba(20,32,28,.045); }
.ops-card-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 22px 22px 16px; }
.ops-card-header time { flex: 0 0 auto; color: var(--muted); font-size: .68rem; }
.ops-card-identity { display: flex; min-width: 0; align-items: center; gap: 15px; }
.ops-card-identity > div { min-width: 0; }
.ops-card-identity h3 { margin: 7px 0 3px; overflow-wrap: anywhere; font-size: 1.35rem; }
.ops-card-identity p { margin: 0; color: var(--muted); font-size: .82rem; }
.product-logo.ops-logo { width: 62px; height: 62px; border-radius: 16px; font-size: .9rem; }
.ops-founder-line { display: flex; align-items: center; gap: 11px; margin: 0 22px 17px; padding: 13px 14px; border-radius: 12px; background: rgba(20,63,49,.045); }
.ops-founder-line > div { display: grid; min-width: 0; gap: 2px; }
.ops-founder-line strong, .ops-founder-line span { overflow-wrap: anywhere; }
.ops-founder-line span { color: var(--muted); font-size: .7rem; }
.ops-founder-bio { margin: 0; padding: 0 22px 18px; color: var(--muted); white-space: pre-line; }
.ops-meta-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0 22px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.ops-meta-grid > div { min-width: 0; padding: 13px; background: white; }
.ops-meta-grid span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .63rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ops-meta-grid strong { display: block; overflow-wrap: anywhere; font-size: .78rem; line-height: 1.45; }
.ops-review-details { border-top: 1px solid var(--line); }
.ops-review-details summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 13px 22px; color: var(--forest); font-size: .78rem; font-weight: 800; cursor: pointer; list-style: none; }
.ops-review-details summary::-webkit-details-marker { display: none; }
.ops-review-details summary::after { content: "+"; font-size: 1.2rem; }
.ops-review-details[open] summary::after { content: "−"; }
.ops-review-details summary:hover { background: rgba(20,63,49,.035); }
.ops-review-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 22px 22px; }
.ops-review-body section { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.ops-review-body h4 { margin: 0 0 6px; }
.ops-review-body p, .ops-review-body li { margin-bottom: 0; overflow-wrap: anywhere; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.ops-review-body ul { margin: 0; padding-left: 18px; }
.ops-review-body .ops-warning { border-color: rgba(243,205,99,.8); background: rgba(243,205,99,.12); }
.ops-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 13px; padding: 17px 22px 20px; border-top: 1px solid var(--line); background: rgba(20,63,49,.035); }
.ops-actions .field span { font-size: .7rem; }
.ops-actions .field small { font-weight: 500; }
.ops-action-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ops-action-error { grid-column: 1/-1; min-height: 1em; margin: 0; color: var(--danger); font-size: .72rem; font-weight: 700; }
.ops-audit-list { display: grid; gap: 0; }
.ops-audit-list > div { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); }
.ops-audit-list > div:first-child { padding-top: 0; border-top: 0; }
.ops-audit-list span { color: var(--forest-2); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ops-audit-list strong { overflow-wrap: anywhere; font-size: .78rem; }
.ops-audit-list small { color: var(--muted); font-size: .65rem; line-height: 1.45; }

.builder-hero-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.builder-hero-card h1 { margin-bottom: 6px; font-size: clamp(2.5rem,5vw,4.6rem); }
.builder-hero-card p { max-width: 650px; margin-bottom: 12px; color: var(--muted); }
.profile-gate-quick { min-width: 215px; }
.profile-member-pill { display: inline-flex; width: fit-content; align-items: center; padding: 6px 9px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--forest-2); background: var(--surface-2); font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.profile-preview-note { display: grid; max-width: 620px; gap: 3px; margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--lime-dark); color: var(--muted); background: rgba(184,243,74,.09); font-size: .8rem; }
.profile-preview-note strong { color: var(--ink); }
.profile-preview-note span { line-height: 1.5; }
.profile-member-gate { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(225px,.42fr); align-items: center; gap: clamp(28px,6vw,70px); margin-top: 26px; padding: clamp(28px,5vw,52px); overflow: hidden; border-radius: var(--radius-lg); color: white; background: radial-gradient(circle at 88% 12%,rgba(184,243,74,.18),transparent 34%),var(--forest); box-shadow: var(--shadow); }
.profile-member-gate .eyebrow { color: var(--lime); }
.profile-member-gate h2 { max-width: 650px; margin-bottom: 12px; font-size: clamp(2rem,4vw,3.6rem); }
.profile-member-gate p:not(.eyebrow) { max-width: 650px; margin: 0; color: rgba(255,255,255,.72); font: 400 1.03rem/1.6 Georgia,serif; }
.profile-gate-benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.profile-gate-benefits span { padding: 7px 10px; border: 1px solid rgba(184,243,74,.42); border-radius: 999px; color: var(--lime); font-size: .68rem; font-weight: 800; }
.profile-gate-cta { display: grid; gap: 9px; }
.profile-gate-cta .button { width: 100%; }
.profile-gate-cta small { color: rgba(255,255,255,.58); text-align: center; }
.profile-gate-signin { color: white; }
.profile-gate-signin:hover { color: var(--lime); }
.portfolio-map { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.portfolio-map-preview { grid-template-columns: minmax(0,420px); }
.portfolio-product { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.portfolio-product .product-logo { margin-bottom: 26px; }
.portfolio-product p { color: var(--muted); font-size: .86rem; }

.site-footer { padding: 55px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,.6fr); gap: 35px; }
.footer-intro { max-width: 390px; color: var(--muted); font-size: .86rem; }
.footer-column strong { display: block; margin-bottom: 13px; font-size: .77rem; }
.footer-column a, .footer-link-button { display: block; margin: 9px 0; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: .8rem; text-align: left; }
.footer-column a:hover, .footer-link-button:hover { color: var(--forest); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }

.privacy-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.privacy-grid .content-card { margin: 0; }
.privacy-grid .content-card p { color: var(--muted); }
.privacy-wide { grid-column: 1/-1; }
.text-link { color: var(--forest-2); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.analytics-consent { position: fixed; z-index: 350; right: 20px; bottom: 20px; display: grid; width: min(880px,calc(100% - 40px)); max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); grid-template-columns: minmax(0,1fr) 210px; gap: 24px; overflow: auto; padding: 24px; border: 1px solid var(--forest); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 24px 70px rgba(20,32,28,.22); }
.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { margin-bottom: 11px; font-size: clamp(1.65rem,3vw,2.45rem); }
.analytics-consent-copy > p:not(.eyebrow) { margin-bottom: 10px; color: var(--muted); font-size: .85rem; }
.analytics-consent .analytics-consent-boundary { margin-bottom: 0; padding: 11px 13px; border-left: 3px solid var(--lime-dark); background: var(--paper); font-size: .75rem; }
.analytics-consent .analytics-consent-status { margin: 12px 0 0; color: var(--forest-2); font-size: .72rem; font-weight: 750; }
.analytics-consent-actions { display: grid; align-content: center; gap: 9px; }
.analytics-consent-actions .button { width: 100%; }
.analytics-consent-actions a, .analytics-consent-close { padding: 5px; border: 0; color: var(--muted); background: transparent; font-size: .72rem; font-weight: 700; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent-actions a:hover, .analytics-consent-close:hover { color: var(--forest); }

.notification-dialog { width: min(540px,calc(100% - 30px)); max-height: calc(100vh - 102px); max-height: calc(100dvh - 102px); margin: 82px max(20px,calc((100vw - var(--container))/2)) auto auto; padding: 0; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 22px; color: var(--ink); background: var(--surface); box-shadow: 0 28px 90px rgba(20,32,28,.28); }
.notification-dialog::backdrop { background: rgba(20,32,28,.34); backdrop-filter: blur(2px); }
.notification-shell { display: grid; max-height: inherit; grid-template-rows: auto auto minmax(0,1fr) auto; }
.notification-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px 24px 18px; }
.notification-heading .eyebrow { margin-bottom: 7px; }
.notification-heading h2 { margin-bottom: 8px; font-size: clamp(2rem,5vw,2.65rem); }
.notification-heading p:last-child { max-width: 390px; margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.45; }
.notification-heading .icon-button { flex: 0 0 auto; background: rgba(255,255,255,.56); }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-block: 1px solid var(--line); background: var(--paper); }
.notification-tabs { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.notification-tabs button { min-height: 36px; padding: 7px 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: .72rem; font-weight: 800; }
.notification-tabs button:hover { color: var(--ink); background: var(--paper); }
.notification-tabs button[aria-pressed="true"] { color: white; background: var(--forest); }
.notification-toolbar .text-button, .notification-footer .text-button { min-height: 36px; font-size: .7rem; white-space: nowrap; }
.notification-toolbar .text-button:disabled { cursor: default; opacity: .42; }
.notification-feed { min-height: 238px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: var(--surface); }
.notification-item { position: relative; display: grid; width: 100%; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.notification-item:hover { background: var(--paper); }
.notification-item.unread { background: rgba(184,243,74,.12); box-shadow: inset 4px 0 var(--lime-dark); }
.notification-item.unread:hover { background: rgba(184,243,74,.2); }
.notification-visual { position: relative; display: grid; width: 46px; height: 46px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--forest); background: var(--lime); font-size: .7rem; font-weight: 850; }
.notification-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; }
.notification-visual-symbol { font: 850 1.18rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.notification-copy { display: grid; min-width: 0; gap: 4px; }
.notification-copy > strong { overflow-wrap: anywhere; font-size: .82rem; letter-spacing: -.01em; }
.notification-copy > span:not(.notification-meta) { overflow-wrap: anywhere; color: var(--muted); font-size: .74rem; line-height: 1.42; }
.notification-copy > small { width: fit-content; padding: 3px 6px; border-radius: 999px; color: var(--forest); background: var(--lime); font: 800 .57rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.notification-meta { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; color: var(--forest-2); font: 800 .59rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }
.notification-meta time { flex: 0 0 auto; color: var(--muted); font-weight: 650; letter-spacing: 0; text-transform: none; }
.notification-arrow { color: var(--forest-2); font-size: 1.1rem; transition: transform .16s; }
.notification-item:hover .notification-arrow { transform: translateX(2px); }
.notification-state { display: grid; min-height: 238px; align-content: center; justify-items: center; gap: 8px; padding: 34px; text-align: center; }
.notification-state-mark { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 3px; border-radius: 50%; color: var(--forest); background: var(--lime); font-weight: 900; }
.notification-state strong { font-size: .9rem; }
.notification-state p { max-width: 340px; margin: 0; color: var(--muted); font-size: .76rem; }
.notification-loader { width: 34px; height: 34px; margin-bottom: 4px; border: 3px solid var(--line); border-top-color: var(--forest); border-radius: 50%; animation: notification-spin .8s linear infinite; }
.notification-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); color: var(--muted); background: var(--paper); font-size: .65rem; }
@keyframes notification-spin { to { transform: rotate(360deg); } }

.modal { width: min(760px,calc(100% - 30px)); max-height: min(90vh,850px); padding: 0; overflow: auto; border: 0; border-radius: var(--radius-lg); color: var(--ink); background: var(--surface); box-shadow: 0 30px 90px rgba(20,32,28,.25); }
.modal::backdrop { background: rgba(20,32,28,.58); backdrop-filter: blur(4px); }
.modal-medium { width: min(620px,calc(100% - 30px)); }
.modal-compact { width: min(470px,calc(100% - 30px)); }
.modal-shell { position: relative; padding: clamp(25px,5vw,42px); }
.modal-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.modal-heading h2, .modal-compact h2 { font-size: clamp(2rem,4vw,3rem); }
.modal-subtitle { margin: 0; color: var(--muted); }
.modal-close { position: absolute; top: 19px; right: 19px; }
.form-stack { display: grid; gap: 17px; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field-wide { grid-column: 1/-1; }
.form-divider { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-divider h3 { margin-bottom: 5px; font-size: 1.25rem; }
.form-divider p:last-child { margin: 0; color: var(--muted); font-size: .78rem; }
.optional-context { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.optional-context-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.optional-context-heading h3 { margin-bottom: 5px; font-size: 1.25rem; }
.optional-context-heading p:last-child { max-width: 530px; margin: 0; color: var(--muted); font-size: .78rem; }
.optional-badge { flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--forest-2); background: var(--surface-2); font: 750 .64rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.optional-toggle-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.optional-toggle + .optional-toggle { border-top: 1px solid var(--line); }
.optional-toggle summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; min-height: 68px; padding: 14px 17px; list-style: none; cursor: pointer; }
.optional-toggle summary::-webkit-details-marker { display: none; }
.optional-toggle summary::after { content: "+"; display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); font: 500 1.2rem/1 sans-serif; }
.optional-toggle[open] summary::after { content: "−"; }
.optional-toggle summary:hover { background: var(--surface-2); }
.optional-toggle summary:focus-visible { outline: 3px solid rgba(20,63,49,.18); outline-offset: -3px; }
.optional-toggle summary span { display: grid; gap: 3px; }
.optional-toggle summary strong { color: var(--ink); font-size: .83rem; }
.optional-toggle summary small { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.optional-toggle-body { display: grid; gap: 16px; padding: 18px 17px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.optional-toggle-body[hidden], [data-problem-mode-panel][hidden] { display: none!important; }
.context-choice-group { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.context-choice-group legend { margin-bottom: 8px; color: var(--ink); font-size: .77rem; font-weight: 750; }
.context-choice-group label { display: flex; align-items: start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.context-choice-group label:has(input:checked) { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(20,63,49,.08); }
.context-choice-group label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.context-choice-group input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--forest); }
.context-choice-group label > span { display: grid; gap: 2px; }
.context-choice-group strong { font-size: .75rem; }
.context-choice-group small { color: var(--muted); font-size: .67rem; line-height: 1.4; }
.context-reuse-note { margin: 0; padding: 11px 12px; border-left: 3px solid var(--lime); color: var(--muted); background: white; font-size: .7rem; line-height: 1.5; }
.field { display: grid; gap: 7px; }
.field[hidden] { display: none; }
.field > span { font-size: .77rem; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; outline: 0; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(20,63,49,.09); }
.field small { color: var(--muted); font-size: .68rem; }
.logo-upload-shell { position: relative; display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; gap: 16px; min-height: 108px; padding: 12px; border: 1px dashed var(--line-dark); border-radius: 12px; background: white; cursor: pointer; transition: border-color .16s, background .16s, box-shadow .16s; }
.logo-upload-shell:hover { border-color: var(--forest); background: var(--surface-2); }
.logo-upload-field:focus-within .logo-upload-shell { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(20,63,49,.09); }
.logo-upload-preview { position: relative; display: grid; width: 82px; height: 82px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 20px; color: var(--forest); background: var(--lime); font-weight: 850; }
.logo-upload-preview > span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--forest); background: var(--lime); }
.logo-upload-preview img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 7%; object-fit: contain; background: #fff; }
.logo-upload-copy { position: relative; display: grid; gap: 4px; min-width: 0; }
.logo-upload-copy input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.logo-upload-copy strong { color: var(--forest); font-size: .82rem; }
.logo-upload-copy small { line-height: 1.45; }
.field .logo-upload-status[data-state="ready"] { color: var(--forest-2); font-weight: 750; }
.field .logo-upload-status[data-state="error"] { color: var(--danger); font-weight: 750; }
.avatar-upload-shell { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; gap: 16px; min-height: 108px; padding: 12px; border: 1px dashed var(--line-dark); border-radius: 12px; background: white; }
.avatar-upload-preview { position: relative; display: grid; width: 82px; height: 82px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); background: var(--lime); font-weight: 850; }
.avatar-upload-preview > span { position: absolute; inset: 0; display: grid; place-items: center; }
.avatar-upload-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--paper-deep); }
.avatar-upload-preview img[hidden], .avatar-upload-actions [hidden] { display: none; }
.avatar-upload-copy { display: grid; min-width: 0; gap: 5px; }
.avatar-upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.avatar-upload-button { width: fit-content; min-height: 40px; padding-block: 8px; cursor: pointer; }
.avatar-upload-button:focus-within { outline: 3px solid var(--coral); outline-offset: 3px; }
.avatar-upload-actions .text-button { min-height: 40px; }
.field .avatar-upload-status[data-state="ready"] { color: var(--forest-2); font-weight: 750; }
.field .avatar-upload-status[data-state="error"] { color: var(--danger); font-weight: 750; }
.handle-input-shell { display: grid; grid-template-columns: auto 1fr; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; transition: border-color .16s, box-shadow .16s; }
.handle-input-shell:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(20,63,49,.09); }
.handle-input-shell > span { padding-left: 12px; color: var(--muted); font-weight: 700; }
.field .handle-input-shell input { min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.handle-preview { display: block; overflow-wrap: anywhere; color: var(--forest-2); font: 700 .69rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.handle-preview strong { color: var(--ink); }
.field .handle-status { min-height: 1em; font-weight: 700; }
.handle-status[data-state="checking"] { color: var(--muted); }
.handle-status[data-state="available"] { color: var(--forest-2); }
.handle-status[data-state="error"] { color: var(--danger); }
.consent-row { display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: .77rem; line-height: 1.5; }
.consent-row input { margin-top: 3px; accent-color: var(--forest); }
.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-actions p { max-width: 390px; margin: 0; color: var(--muted); font-size: .73rem; }
.join-mark { display: flex; gap: 5px; margin-bottom: 25px; }
.join-mark span { width: 13px; height: 28px; border-radius: 999px; background: var(--lime); transform: rotate(30deg); }
.join-mark span:nth-child(2) { background: var(--coral); transform: rotate(-30deg); }
.join-mark span:nth-child(3) { background: var(--lilac); transform: rotate(30deg); }
.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; }
.auth-mode-switch button { min-height: 44px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-weight: 750; }
.auth-mode-switch button[aria-pressed="true"] { color: white; background: var(--forest); }
.auth-message { min-height: 18px; margin: 0; color: var(--danger); font-size: .76rem; }
.privacy-note { display: block; margin-top: 14px; color: var(--muted); text-align: center; }
.profile-identity-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.profile-identity-note > div { display: grid; gap: 5px; }
.profile-identity-note .eyebrow { margin: 0; }
.profile-identity-note strong { overflow-wrap: anywhere; font: 800 .9rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.profile-identity-note a { flex: 0 0 auto; font-size: .74rem; font-weight: 750; }
.member-email-card { display: grid; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.member-email-card h3 { margin: 2px 0 3px; font-size: 1rem; }
.member-email-card p { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: .78rem; }
.member-email-card .consent-row { padding-top: 13px; border-top: 1px solid var(--line); }
.member-email-card .consent-row span { display: grid; gap: 3px; }
.member-email-card .consent-row strong { color: var(--ink); }
.member-email-card .consent-row small { color: var(--muted); }
.builder-bio { white-space: pre-line; }
.builder-handle { font: 750 .76rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.toast { position: fixed; z-index: 400; right: 20px; bottom: 20px; max-width: min(380px,calc(100% - 40px)); padding: 13px 17px; border-radius: 11px; color: white; background: var(--forest); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: none; }

/* Server-rendered discovery preview. The live app replaces this shell once loaded. */
.ssr-preview { min-height: 70vh; padding: 74px 0; }
.ssr-preview-inner { width: min(calc(100% - 40px),1120px); margin: 0 auto; }
.ssr-preview .eyebrow { margin-bottom: 18px; }
.ssr-preview h1 { max-width: 920px; margin-bottom: 18px; font-size: clamp(3rem,7vw,6.5rem); }
.ssr-preview-lead { max-width: 760px; color: var(--muted); font: 400 clamp(1.15rem,2vw,1.55rem)/1.55 Georgia,serif; }
.ssr-preview-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.ssr-preview-meta span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .75rem; }

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .icon-button.mobile-menu-button { display: inline-flex; }
  .mobile-nav { display: flex; flex-wrap: wrap; gap: 4px; padding-block: 8px 13px; border-top: 1px solid var(--line); }
  .mobile-nav .nav-link { border: 0; }
  .header-actions .button-secondary { display: none; }
  .hero-grid, .page-hero-grid, .manifesto-grid { grid-template-columns: 1fr; gap: 35px; }
  .spotlight-card { grid-template-columns: 1fr; }
  .spotlight-art { min-height: 270px; }
  .discovery-shell { grid-template-columns: 1fr; }
  .filter-panel { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
  .filter-title { grid-column: 1/-1; margin: 0; }
  .filter-group { margin: 0; }
  .filter-checks { display: flex; align-items: end; gap: 15px; }
  .card-grid, .portfolio-map { grid-template-columns: repeat(2,1fr); }
  .profile-layout, .workspace-grid, .ops-layout { grid-template-columns: 1fr; }
  .stacked-sidebar { position: static; max-height: none; padding-right: 0; overflow: visible; }
  .footer-grid { grid-template-columns: 1.2fr repeat(3,.6fr); }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px),var(--container)); }
  .section { padding: 62px 0; }
  .header-inner { min-height: 64px; gap: 8px; }
  .header-inner > .brand { gap: 7px; }
  .header-inner > .brand .beta-pill { display: none; }
  .header-actions .button-primary, .header-actions > .button-ghost { display: none; }
  .header-actions { gap: 6px; }
  .notification-bell, .user-button, .icon-button.mobile-menu-button { width: 42px; height: 42px; }
  .notification-dialog { width: 100%; max-width: none; max-height: min(88vh,760px); max-height: min(88dvh,760px); margin: auto 0 0; border-width: 1px 0 0; border-radius: 22px 22px 0 0; }
  .notification-heading { padding: 21px 18px 16px; }
  .notification-heading h2 { font-size: 2.1rem; }
  .notification-toolbar { align-items: stretch; flex-direction: column; padding: 10px 14px; }
  .notification-tabs { display: grid; width: 100%; grid-template-columns: repeat(3,1fr); }
  .notification-toolbar .text-button { align-self: flex-end; }
  .notification-item { grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; padding: 14px; }
  .notification-visual { width: 42px; height: 42px; border-radius: 12px; }
  .notification-meta { align-items: start; flex-direction: column; gap: 2px; }
  .notification-footer { align-items: flex-start; flex-direction: column; padding: 12px 14px; }
  .hero { padding-top: 52px; }
  .hero-proof { grid-template-columns: 1fr; }
  .proof-item, .proof-item + .proof-item { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .proof-item:first-child { border-top: 0; }
  .section-heading { display: block; }
  .section-heading .button { margin-top: 12px; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-title { grid-column: auto; }
  .filter-checks { align-items: start; flex-direction: column; gap: 0; }
  .rank-tabs { display: grid; width: 100%; grid-template-columns: repeat(2,1fr); }
  .rank-tab { width: 100%; }
  .product-row { grid-template-columns: 31px 46px minmax(0,1fr); gap: 10px; padding: 12px; }
  .product-logo { width: 46px; height: 46px; border-radius: 12px; font-size: .76rem; }
  .row-signals { grid-column: 2/-1; grid-template-columns: repeat(3,1fr); }
  .product-row-main > p { white-space: normal; }
  .card-grid, .portfolio-map { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .distribution-tail { margin-top: 60px; padding-top: 50px; }
  .distribution-tail-chart { margin-top: 30px; }
  .distribution-plot { height: 380px; }
  .distribution-y-label, .distribution-arrivals { display: none; }
  .distribution-launch-label { top: 11%; left: 13%; max-width: 47%; }
  .distribution-home-label { top: 57%; right: 0; max-width: 55%; }
  .distribution-curve-label span { font-size: .72rem; }
  .distribution-long-tail { bottom: 10%; left: 54%; font-size: .64rem; }
  .distribution-tick-optional { display: none; }
  .distribution-x-ticks { margin-left: 5.4%; font-size: .7rem; }
  .distribution-tail-chart figcaption { display: grid; gap: 4px; margin: 26px 0 0; font-size: .78rem; }
  .profile-top { grid-template-columns: 72px 1fr; gap: 15px; }
  .product-logo.profile-logo { width: 72px; height: 72px; border-radius: 18px; font-size: 1.1rem; }
  .profile-actions { grid-column: 1/-1; grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .lineage { grid-template-columns: 1fr; }
  .lineage-arrow { transform: rotate(90deg); text-align: center; }
  .builder-hero-card { grid-template-columns: auto 1fr; }
  .builder-hero-card > .button { grid-column: 1/-1; }
  .profile-gate-quick { grid-column: 1/-1; grid-template-columns: 1fr; }
  .profile-member-gate { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-map-preview { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-wide { grid-column: auto; }
  .analytics-consent { right: 14px; bottom: 14px; width: calc(100% - 28px); max-height: calc(100vh - 28px); max-height: calc(100svh - 28px); grid-template-columns: 1fr; gap: 16px; padding: 20px; border-radius: var(--radius-md); }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .logo-upload-shell { grid-template-columns: 64px minmax(0,1fr); min-height: 88px; padding: 10px; }
  .logo-upload-preview { width: 64px; height: 64px; border-radius: 16px; }
  .avatar-upload-shell { grid-template-columns: 64px minmax(0,1fr); min-height: 88px; padding: 10px; }
  .avatar-upload-preview { width: 64px; height: 64px; }
  .workspace-list > a { gap: 11px; padding: 12px; }
  .workspace-list .tag { flex: 0 0 auto; }
  .optional-context-heading { flex-direction: column; gap: 10px; }
  .optional-toggle summary { padding-inline: 14px; }
  .optional-toggle-body { padding-inline: 14px; }
  .modal-actions { align-items: stretch; flex-direction: column; }
  .modal-actions .button { width: 100%; }
  .profile-identity-note { align-items: start; flex-direction: column; }
  .workspace-profile-card { align-items: stretch; flex-direction: column; }
  .workspace-profile-identity { align-items: flex-start; }
  .workspace-profile-card > .button { width: 100%; }
  .ops-summary { grid-template-columns: 1fr; }
  .ops-summary article { min-height: 112px; }
  .ops-toolbar { align-items: stretch; flex-direction: column; }
  .ops-toolbar .ops-tabs, .ops-toolbar > .button { width: 100%; }
  .ops-toolbar .ops-tabs button { flex: 1; }
  .ops-status-tabs { display: grid; grid-template-columns: 1fr; }
  .ops-card-header { align-items: stretch; flex-direction: column; }
  .ops-card-header time { order: -1; }
  .ops-card-identity { align-items: flex-start; }
  .ops-meta-grid, .ops-review-body { grid-template-columns: 1fr; }
  .ops-actions { grid-template-columns: 1fr; }
  .ops-action-buttons { display: grid; grid-template-columns: 1fr; }
  .ops-action-buttons .button { width: 100%; }
  .ops-action-error { grid-column: auto; }
  .comment-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; }
  .notification-loader { animation: none; }
}
