/* Francois catalogue: Final public presentation and existing staff components. */
:root {
  --color-wall: #ffffff;
  --color-plinth: #f4f4f4;
  --color-table: #ededed;
  --color-line: #eeeeee;
  --color-faint: #c4c4c4;
  --color-muted: #737373;
  --color-text: #1d1d1d;
  --color-ink: #111111;
  --color-warn: #b5603f;
  --color-ok: #2f6f4f;
  --font-sans: "ABC Areal", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: "ABC Areal Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-body: 17px;
  --leading-body: 22px;
  --text-small: 15px;
  --text-caption: 14px;
  --text-heading: 40px;
  --text-display: clamp(32px, 4.72vw, 68px);
  --pad: clamp(20px, 2.8vw, 40px);
  --gap: 40px;
  --label: 300px;
  --hero: clamp(72px, 9vw, 140px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-wall); color: var(--color-text); font: 400 var(--text-body) / var(--leading-body) var(--font-sans); -webkit-font-smoothing: antialiased; }
body.has-window { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
::selection { background: var(--color-ink); color: var(--color-wall); }
:focus-visible { outline: 1.5px solid var(--color-ink); outline-offset: 3px; }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.muted { color: var(--color-muted); }
.warn { color: var(--color-warn); }
.small { font-size: var(--text-caption); line-height: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { padding: 0 var(--pad); }
main { min-height: 50vh; }

/* Links that look like links; text buttons are just words. */
.u, .prose a, .tlink { color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--color-faint); text-underline-offset: 4px; transition: text-decoration-color .15s; }
.u:hover, .prose a:hover, .tlink:hover { text-decoration-color: var(--color-ink); }
.tlink { border: 0; padding: 0; background: none; white-space: nowrap; }
.tlink.quiet, .tlink.plain { color: var(--color-muted); text-decoration-color: transparent; }
.tlink.quiet:hover, .tlink.plain:hover { color: var(--color-ink); }
.tlink[aria-pressed="true"] { color: var(--color-ink); text-decoration-color: var(--color-ink); }
.tlink.danger:hover { color: var(--color-warn); }

/* Header: brand, address, nav. */
.bar { position: relative; z-index: 5; background: var(--color-wall); }
.bar-inner { display: flex; align-items: center; gap: 28px; padding-top: 36px; line-height: 22px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.addr { display: flex; align-items: center; flex: 1; min-width: 0; color: var(--color-ink); }
.addr-host:hover { color: var(--color-muted); }
.addr-path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Navigation is one muted line ("Catalog · Journal · Sign in"); the crumb,
   not the nav, says where you are. */
.nav { display: flex; align-items: baseline; flex-wrap: wrap; color: var(--color-muted); }
.nav > * + *::before { content: "·"; display: inline-block; padding: 0 8px; color: var(--color-muted); }
.nav a, .nav .tlink, .nav button { color: var(--color-muted); text-decoration: none; font: inherit; }
.nav a:hover, .nav .tlink:hover, .nav button:hover { color: var(--color-ink); }
@media (max-width: 639px) {
  .bar-inner { flex-wrap: wrap; gap: 12px 10px; padding-top: 20px; font-size: 16px; }
  .nav { width: 100%; gap: 20px; flex-wrap: wrap; }
}

/* Hero and intros — a sentence, set big. */
.hero { padding: var(--hero) 0 0; }
/* Titles: one 60px statement on the front page (.hero), 48px titles ending
   in a period everywhere else, with a 17px muted subtitle (.sub). */
.hero h1 { margin: 0; max-width: 1180px; font-weight: 500; font-size: 60px; line-height: 62px; letter-spacing: -0.025em; color: var(--color-ink); overflow-wrap: anywhere; }
.intro h1, .lost h1, .stats-head h1, .h-display { margin: 0; max-width: 1000px; font-weight: 500; font-size: 48px; line-height: 52px; letter-spacing: -0.02em; color: var(--color-ink); overflow-wrap: anywhere; }
.sub { margin: 12px 0 0; max-width: 620px; font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-muted); }
.intro { padding: var(--hero) 0 72px; }
.lead-actions { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; margin: 40px 0 0; }
.lost { padding: var(--hero) 0 120px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (max-width: 639px) { .hero, .intro, .lost { padding-top: 64px; } .hero h1, .intro h1, .lost h1 { font-size: 34px; line-height: 38px; } }

/* Controls — sort, count, tags as a grey sentence. */
.controls { display: flex; flex-direction: column; gap: 28px; padding: 64px 0 56px; }
.views { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; color: var(--color-muted); }
.views a, .tag { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: 4px; }
.views a:hover, .tag:hover { color: var(--color-ink); }
.views a[aria-current="page"] { color: var(--color-ink); text-decoration-color: var(--color-ink); }
.sort { border: 0; padding: 0; background: none; color: var(--color-muted); cursor: pointer; appearance: none; }
.sort:hover { color: var(--color-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 4px 0; max-width: 1100px; color: var(--color-muted); }
.tag { border: 0; padding: 0; background: none; color: var(--color-muted); white-space: nowrap; }
.tags .tag:not(:last-child)::after { content: "·"; display: inline-block; padding: 0 8px; }
.tag[aria-pressed="true"] { color: var(--color-ink); }
.tag[aria-pressed="true"] .tag-label { text-decoration: underline; text-decoration-color: var(--color-ink); text-underline-offset: 4px; }

/* Catalog rows: thumbnail plinth, big title, grey description, actions. */
.rows { border-top: 1px solid var(--color-ink); margin-bottom: 120px; }
.ri { display: flex; gap: 40px; padding: 24px 0 32px; border-bottom: 1px solid var(--color-line); }
.ri-thumb { flex-shrink: 0; width: clamp(200px, 26vw, 380px); aspect-ratio: 4 / 3; background: var(--color-plinth); overflow: hidden; display: block; }
.mono-thumb { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; transition: background .3s; }
.ri-thumb:hover .mono-thumb { background: var(--color-line); }
.mono-letters { font-weight: 500; font-size: clamp(56px, 7vw, 104px); line-height: .9; letter-spacing: -0.05em; color: var(--color-ink); }
.mono-caps { font: var(--text-caption) var(--font-mono); color: var(--color-muted); }
.ri-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.ri-head { display: flex; flex-direction: column; gap: 10px; }
.ri-title { margin: 0; font-weight: 500; font-size: var(--text-heading); line-height: 42px; letter-spacing: -0.03em; color: var(--color-ink); overflow-wrap: anywhere; }
.ri-title a:hover { color: var(--color-muted); }
.ri-desc { margin: 0; color: var(--color-muted); max-width: 720px; }
.ri-foot { display: flex; flex-direction: column; gap: 14px; }
.ri-tags { margin: 0; color: var(--color-muted); }
.ri-actions { margin: 0; display: flex; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.ri-path { flex-basis: 100%; color: var(--color-muted); }
@media (max-width: 767px) {
  .ri { flex-direction: column; gap: 14px; }
  .ri-thumb { width: 100%; }
  .ri-title { font-size: 26px; line-height: 30px; }
  .ri-text { gap: 18px; }
}

/* Buttons — square: ink or soft. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 9px 16px; border-radius: 0; font-weight: 400; font-size: var(--text-small); white-space: nowrap; }
.btn-ink { background: var(--color-ink); color: var(--color-wall); }
.btn-ink:hover:not(:disabled) { background: #333; }
.btn-soft { background: var(--color-plinth); color: var(--color-ink); }
.btn-soft:hover:not(:disabled) { background: var(--color-line); }
.seg { display: flex; gap: 20px; flex-wrap: wrap; }
.seg button { border: 0; padding: 0; background: none; color: var(--color-muted); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: 4px; }
.seg button:hover { color: var(--color-ink); }
.seg button[aria-pressed="true"] { color: var(--color-ink); text-decoration-color: var(--color-ink); }
.seg.small { gap: 12px; font-size: var(--text-caption); }

/* Label + content rows. */
.row { display: flex; gap: var(--gap); }
.section { padding: 20px 0 40px; }
.ruled { border-top: 1px solid var(--color-ink); }
/* A ruled row already draws the section line; a list or table opening its
   body would double it. */
.ruled > .row-body > :is(.v-list, .lines, .lib-list, .queue, .model-table, .stat-tiles):first-child { border-top: 0; }
.row-label { width: var(--label); flex-shrink: 0; display: flex; flex-direction: column; }
.row-label > :first-child { color: var(--color-ink); }
.row-label > :not(:first-child) { color: var(--color-muted); }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.row-body p { margin: 0; }
@media (max-width: 899px) { .row { flex-direction: column; gap: 16px; } .row-label { width: auto; } }
.sheet { padding: 72px 0 40px; display: flex; flex-direction: column; }
.sheet > .stats-head { margin-bottom: 40px; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status { font-size: var(--text-small); color: var(--color-muted); }
.status.on { color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px; }

/* Key/value lists. */
.v-list { display: flex; flex-direction: column; border-top: 1px solid var(--color-ink); }
.v-list > div, .kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--color-line); }
.v-list > div > span:first-child, .kv > span:first-child { color: var(--color-muted); flex-shrink: 0; }
.v-list > div > span:last-child, .kv > span:last-child { text-align: right; overflow-wrap: anywhere; }

/* Release lines. */
.lines { display: flex; flex-direction: column; border-top: 1px solid var(--color-ink); }
.line { display: flex; gap: 40px; padding: 18px 0 22px; border-bottom: 1px solid var(--color-line); }
.line > :first-child { width: var(--label); flex-shrink: 0; display: flex; flex-direction: column; color: var(--color-ink); }
.line > :first-child strong { font-weight: 500; font-size: 28px; line-height: 32px; letter-spacing: -0.02em; }
.release-body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.release-body p { margin: 0; }
.changelog { white-space: pre-wrap; max-width: 760px; }
.attachments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.attachments li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; overflow-wrap: anywhere; }
.attachments .muted { font-size: 13px; }
@media (max-width: 899px) { .line { flex-direction: column; gap: 6px; } .line > :first-child { width: auto; } }
.prose { max-width: 760px; padding: 72px 0 0; }
.prose h2 { margin: 0 0 10px; font-weight: 500; font-size: var(--text-body); color: var(--color-ink); }
.prose p { margin: 0 0 12px; color: var(--color-muted); }
.code-inline { margin: 0; padding: 14px 0; border-top: 1px solid var(--color-ink); font: 15px/22px var(--font-mono); overflow-x: auto; white-space: pre; }

/* Notices and toasts. */
.notice { margin: 0 0 20px; padding: 12px 0; border-top: 1px solid var(--color-ink); }
.notice.bad { color: var(--color-warn); }
.toast { position: fixed; right: var(--pad); bottom: 24px; z-index: 30; max-width: 440px; padding: 14px 18px; background: var(--color-ink); color: var(--color-wall); cursor: pointer; animation: sheet-in .2s; }
.toast.bad { background: var(--color-warn); }
.empty { padding: 24px 0 120px; color: var(--color-muted); margin: 0; }

/* Library lists (instances, releases, users). */
.library { padding-bottom: 120px; }
.lib-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 64px 0 16px; }
.lib-head h2 { margin: 0; font-weight: 500; font-size: var(--text-heading); line-height: 42px; letter-spacing: -0.03em; color: var(--color-ink); }
.lib-search input { border: 0; border-bottom: 1px solid var(--color-faint); outline: none; width: 260px; padding: 4px 0; background: none; }
.lib-search input:focus { border-bottom-color: var(--color-ink); }
.lib-list { display: flex; flex-direction: column; border-top: 1px solid var(--color-ink); }
.lib-row { display: flex; align-items: center; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
.lib-row.is-unlisted .lib-thumb, .lib-row.is-unlisted .lib-main { opacity: .45; }
.attach-panel { display: flex; flex-direction: column; gap: 12px; padding: 16px 0 20px 24px; border-left: 2px solid var(--color-line); margin: 0 0 8px 8px; }
.attach-panel .lib-main input { font: inherit; border: 0; border-bottom: 1px solid var(--color-line); background: transparent; padding: 2px 0; min-width: 0; }
.lib-thumb { width: 64px; height: 48px; flex-shrink: 0; background: var(--color-plinth); }
.mono-mini { display: grid; place-items: center; font-weight: 500; font-size: 20px; letter-spacing: -0.04em; color: var(--color-ink); }
.lib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lib-main strong { font-weight: 500; color: var(--color-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-main a:hover strong { color: var(--color-muted); }
.lib-tags { width: 140px; flex-shrink: 0; font-size: var(--text-caption); color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-size, .lib-added { flex-shrink: 0; font: 14px var(--font-mono); color: var(--color-muted); }
.lib-size { width: 72px; text-align: right; } .lib-added { width: 110px; text-align: right; }
.lib-status { width: 160px; flex-shrink: 0; font-size: var(--text-caption); color: var(--color-muted); }
.lib-status.on { color: var(--color-ink); }
.lib-status.bad { color: var(--color-warn); }
.lib-actions { flex-shrink: 0; display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.lib-actions .btn { padding: 6px 10px; font-size: var(--text-caption); }
@media (max-width: 1023px) { .lib-tags, .lib-added { display: none; } .lib-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 639px) { .lib-size, .lib-status { display: none; } .lib-search input { width: 180px; } .lib-row { flex-wrap: wrap; } }

/* Admin. */
.admin { padding-top: 48px; }
.admin-nav { padding-bottom: 8px; }
.stats { display: flex; flex-direction: column; gap: 40px; padding: 56px 0 120px; }
.stats-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.stat-tiles { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--color-ink); }
.stat-tiles.three { grid-template-columns: repeat(3, 1fr); }
.stat-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 16px 0; min-width: 0; }
.stat-n { font-weight: 500; font-size: 40px; line-height: 42px; letter-spacing: -0.03em; color: var(--color-ink); overflow-wrap: anywhere; }
.stat-label { color: var(--color-muted); font-size: var(--text-small); }
@media (max-width: 900px) { .stat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stat-tiles, .stat-tiles.three { grid-template-columns: repeat(2, 1fr); } }
.stats-block { display: flex; flex-direction: column; gap: 0; min-width: 0; overflow-x: auto; }
.stats-block h2 { margin: 0 0 12px; font-weight: 400; font-size: var(--text-body); color: var(--color-ink); }
.srow { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--color-line); font-size: var(--text-small); min-width: 720px; }
.shead { color: var(--color-muted); border-bottom-color: var(--color-ink); }
.sname { flex: 1; min-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scol { width: 150px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snum { width: 72px; flex-shrink: 0; text-align: right; font: 14px var(--font-mono); }
.meter { height: 6px; background: var(--color-plinth); }
.meter > div { height: 100%; background: var(--color-ink); }

/* Publish page. */
.publish { display: flex; gap: 64px; padding: 56px 0 24px; }
.publish-left { width: 420px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 240px; border: 1px dashed var(--color-faint); text-align: center; cursor: pointer; padding: 16px; }
.drop:hover, .drop.is-over { border-color: var(--color-ink); border-style: solid; }
.drop-icon { font-size: 28px; color: var(--color-ink); }
.queue { display: flex; flex-direction: column; border-top: 1px solid var(--color-ink); }
.qrow { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--color-line); }
.qname { flex: 1; min-width: 0; }
.qstatus { width: 64px; flex-shrink: 0; font-size: var(--text-caption); color: var(--color-muted); }
.qstatus.warn { color: var(--color-warn); }
.form { flex: 1; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.form.tight { gap: 14px; }
.form.tight > .btn { align-self: flex-start; }
.v-list .tlink { margin-left: 12px; }
.v-list .mono { word-break: break-all; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field > span { color: var(--color-muted); }
.field input, .field textarea, .field select, .inline-form input, .model-opts input, .lib-search input { border: 0; border-bottom: 1px solid var(--color-ink); padding: 8px 0; background: none; outline: none; border-radius: 0; }
.field select { appearance: none; cursor: pointer; }
.field input:focus, .field textarea:focus, .inline-form input:focus { border-bottom-width: 2px; padding-bottom: 7px; }
.field textarea { resize: vertical; }
.slug { font-family: var(--font-mono); font-size: 15px; }
.row2 { display: flex; gap: 16px; } .row2 > :first-child { flex: 1; } .row2 > :last-child { width: 240px; }
.check { display: flex; align-items: baseline; gap: 10px; color: var(--color-text); }
.check input { accent-color: var(--color-ink); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.form-foot .btn { padding: 12px 24px; }
.form-foot.sticky { position: sticky; bottom: 0; background: var(--color-wall); padding: 16px 0; border-top: 1px solid var(--color-ink); z-index: 2; }
@media (max-width: 1023px) { .publish { flex-direction: column; } .publish-left { width: auto; } .row2 { flex-direction: column; } .row2 > :last-child { width: auto; } }
.inline-form { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.inline-form input { min-width: 180px; flex: 1; }
.inline-form input.num, .model-opts input.num { width: 80px; min-width: 0; flex: 0 0 auto; }
.token-form { display: grid; gap: 12px; margin: 0 0 16px; }
.scope-list { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.scope-list legend { padding: 0; margin-bottom: 4px; }
.scope-option { display: flex; align-items: baseline; gap: 8px; }
.token-form .btn { justify-self: start; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px 32px; }
.site-copy { display: grid; gap: 20px; max-width: 760px; }
.model-table { display: flex; flex-direction: column; border-top: 1px solid var(--color-ink); }
.model-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--color-line); flex-wrap: wrap; }
.model-line:not(.on) { color: var(--color-muted); }
.model-opts { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.model-opts input:not(.num) { width: 200px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
.code-area { width: 100%; border: 1px solid var(--color-line); padding: 14px; font: 14px/20px var(--font-mono); background: var(--color-plinth); resize: vertical; }
.settings-mode { padding: 0 0 20px; }

/* Viewer — the instance on a grey table, like opening an artefact. */
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
.viewer { position: fixed; inset: 0; z-index: 11; display: flex; flex-direction: column; background: var(--color-table); animation: fade-in .18s; }
.v-top { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; flex-shrink: 0; padding: 22px var(--pad) 18px; }
.v-title { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.v-title strong { font-weight: 500; font-size: 28px; line-height: 32px; letter-spacing: -0.02em; color: var(--color-ink); white-space: nowrap; }
.v-desc { color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-actions { display: flex; align-items: baseline; gap: 24px; white-space: nowrap; }
.v-table { flex: 1; min-height: 0; position: relative; display: flex; padding: 0 var(--pad) var(--pad); }
.v-device { flex: 1; min-width: 0; background: var(--color-wall); }
.v-device iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--color-wall); }
.v-blocked { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--color-warn); text-align: center; max-width: 520px; }
.v-denied { position: absolute; left: var(--pad); bottom: calc(var(--pad) + 12px); margin: 0; padding: 10px 14px; background: var(--color-warn); color: #fff; }
.v-info { position: absolute; right: var(--pad); bottom: var(--pad); z-index: 2; width: 440px; max-height: calc(100% - 24px - var(--pad)); overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 24px 24px 28px; background: var(--color-wall); box-shadow: 0 -12px 40px rgba(0,0,0,.12); animation: sheet-in .22s cubic-bezier(.2,.7,.2,1); }
.v-info-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.v-info-head strong { font-weight: 500; font-size: 28px; line-height: 32px; letter-spacing: -0.025em; color: var(--color-ink); }
.v-info p { margin: 0; color: var(--color-muted); }
@media (max-width: 1023px) { .v-desc { display: none; } }
@media (max-width: 599px) {
  .v-top { padding: 14px 16px; flex-wrap: wrap; gap: 8px; background: var(--color-wall); border-bottom: 1px solid var(--color-line); }
  .v-title strong { font-size: 20px; line-height: 24px; }
  .v-table { padding: 0; }
  .v-info { left: 0; right: 0; bottom: 0; width: auto; }
}

/* Storefront pages — covers, write-ups, galleries, creators, journal. */
.ri-thumb img, .ri-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.byline { margin: 20px 0 0; color: var(--color-muted); }
.artifact .intro { padding-bottom: 48px; }
.cover { margin: 0 0 56px; background: var(--color-plinth); }
.cover img, .cover video { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.md { max-width: 760px; padding: 0 0 40px; color: var(--color-text); }
.md > :first-child { margin-top: 0; }
.md h1, .md h2, .md h3 { margin: 40px 0 12px; font-weight: 500; color: var(--color-ink); letter-spacing: -0.02em; }
.md h1 { font-size: 34px; line-height: 38px; } .md h2 { font-size: 26px; line-height: 30px; } .md h3 { font-size: var(--text-body); }
.md p, .md ul, .md ol, .md blockquote, .md table, .md pre { margin: 0 0 16px; }
.md a { color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--color-faint); text-underline-offset: 4px; }
.md a:hover { text-decoration-color: var(--color-ink); }
.md img, .md video { display: block; max-width: 100%; height: auto; margin: 24px 0; background: var(--color-plinth); }
.md blockquote { padding-left: 20px; border-left: 1px solid var(--color-ink); color: var(--color-muted); }
.md code { font: 0.9em var(--font-mono); background: var(--color-plinth); padding: 1px 4px; }
.md pre { padding: 14px 0; border-top: 1px solid var(--color-ink); overflow-x: auto; }
.md pre code { background: none; padding: 0; font-size: 15px; line-height: 22px; }
.md table { border-collapse: collapse; width: 100%; font-size: var(--text-small); }
.md th, .md td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--color-line); }
.md th { font-weight: 500; border-bottom-color: var(--color-ink); }
.md hr { border: 0; border-top: 1px solid var(--color-line); margin: 32px 0; }
.intro-md { padding-top: 0; color: var(--color-muted); }
/* Section labels on public pages: 17px, then the list's ink rule. */
.lib-head.label { padding: 80px 0 12px; }
.lib-head.label h2 { font-weight: 400; font-size: var(--text-body); line-height: var(--leading-body); letter-spacing: 0; }
.intro-md p { margin: 0 0 8px; }
.login-error { display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px; }
.rows + .lib-head { padding-top: 0; }
main > .rows:not(:last-child) { margin-bottom: 72px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; padding: 16px 0 56px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery img, .gallery video { width: 100%; height: auto; display: block; background: var(--color-plinth); }
.gallery figcaption { color: var(--color-muted); font-size: var(--text-caption); }
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; border-top: 1px solid var(--color-ink); padding-top: 24px; }
.creator-card { display: flex; flex-direction: column; gap: 12px; }
.creator-card img, .creator-mono { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--color-plinth); }
.creator-mono { display: grid; place-items: center; font-weight: 500; font-size: 64px; letter-spacing: -0.05em; color: var(--color-ink); }
.creator-card:hover .creator-name { text-decoration: underline; text-underline-offset: 4px; }
.creator-intro .avatar { width: 120px; height: 120px; object-fit: cover; margin-bottom: 28px; display: block; background: var(--color-plinth); }
.post-title { margin: 0; font-weight: 500; font-size: 26px; line-height: 30px; letter-spacing: -0.02em; }
.post-title a:hover { color: var(--color-muted); }
.post-date { font-size: var(--text-small) !important; line-height: 22px !important; letter-spacing: 0 !important; font-weight: 400 !important; color: var(--color-muted); }
.draft-banner { margin-top: 24px; background: var(--color-plinth); padding: 12px 16px; border-top: 0; }
.action-error { width: 100%; margin: 8px 0 0; }

/* Pricing — plans side by side. */
.plan-note { margin-top: 48px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--color-ink); margin: 64px 0 24px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 32px 0; }
.plan + .plan { padding-left: 24px; border-left: 1px solid var(--color-line); }
.plan h2 { margin: 0; font-weight: 500; font-size: var(--text-heading); line-height: 42px; letter-spacing: -0.03em; color: var(--color-ink); }
.plan p { margin: 0; }
.plan-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan-facts li::before { content: "— "; color: var(--color-muted); }
.plan-buy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan.is-current h2::after { content: " ·"; color: var(--color-muted); }
@media (max-width: 760px) { .plan + .plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-line); } }

/* Studio — editors, media library, pickers. */
.editor-tabs { padding: 8px 0 32px; }
.editor-form { max-width: 1240px; }
.lib-row:is(a):hover strong { color: var(--color-muted); }
img.lib-thumb, video.lib-thumb { object-fit: cover; }
.md-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.md-editor textarea { min-height: 360px; }
.md-preview { padding: 30px 0 0; max-height: 70vh; overflow-y: auto; border-top: 1px solid var(--color-line); }
@media (max-width: 1023px) { .md-editor { grid-template-columns: 1fr; } }
.media-strip { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.media-thumb { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.media-thumb img, .media-thumb video { width: 120px; height: 80px; object-fit: cover; background: var(--color-plinth); display: block; }
.picker { border-top: 1px solid var(--color-ink); padding-bottom: 24px; }
.picker .lib-head { padding-top: 16px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; padding: 24px 0; }
.media-tile { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; background: none; text-align: left; min-width: 0; }
.media-tile img, .media-tile video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-plinth); display: block; }
button.media-tile:hover img { outline: 1.5px solid var(--color-ink); }
.media-tile input { border: 0; border-bottom: 1px solid var(--color-faint); padding: 4px 0; background: none; outline: none; }
.media-tile input:focus { border-bottom-color: var(--color-ink); }
.drop-small { height: 110px; }
select.btn { appearance: none; cursor: pointer; }
.creator-form { padding: 16px 0 32px; border-bottom: 1px solid var(--color-line); }

/* Footer — For people | For machines. */
/* Footer: one line, Privacy · Terms on the left, the typeface credit on
   the right. */
.foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; padding: 120px 0 32px; font-size: var(--text-caption); line-height: 20px; color: var(--color-muted); }
.foot-links { display: flex; gap: 20px; }
.foot a { color: var(--color-muted); text-decoration: none; }
.foot a:hover { color: var(--color-ink); }
.foot-credit { margin: 0; }
.foot-credit a { text-decoration: underline 1px var(--color-faint); text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Analytics: Paper's Areal typography, monochrome marks and unboxed surfaces. */
.analytics h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 500; color: var(--color-ink); }
.analytics p { margin: 0; }
.analytics-toolbar, .analytics-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.analytics-toolbar { border-top: 1px solid var(--color-ink); border-bottom: 1px solid var(--color-line); padding: 16px 0; }
.analytics-date-trigger { white-space: nowrap; }
.analytics-filters { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.analytics-filters .field { flex: 1; min-width: 160px; }
.analytics-active-filters { flex-basis: 100%; }
.analytics-summary { display: flex; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--color-line); }
.analytics-summary > div { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.analytics-summary > div > :first-child { font: 400 40px/48px var(--font-mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.analytics-chart { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 4px 0 20px; border-bottom: 1px solid var(--color-line); }
.analytics-chart svg { display: block; overflow: visible; }
.analytics-chart svg text { font: 14px var(--font-mono); fill: var(--color-muted); }
.analytics-rule { stroke: var(--color-line); }
.analytics-legend { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; line-height: 20px; }
.analytics-legend > span { display: inline-flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.analytics-legend i { display: inline-block; flex-shrink: 0; width: 12px; height: 12px; }
.analytics-model-charts { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 56px; }
.analytics-breakdowns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.analytics-table { overflow-x: auto; margin-top: 20px; }
.analytics-table table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 22px; }
.analytics-table th, .analytics-table td { padding: 14px 16px; border-bottom: 1px solid var(--color-line); text-align: right; font-family: var(--font-mono); font-weight: 400; white-space: nowrap; }
.analytics-table th:first-child { text-align: left; font-family: var(--font-sans); padding-left: 0; }
.analytics-table :is(th, td):last-child { padding-right: 0; }
.analytics-table thead th { border-top: 1px solid var(--color-ink); color: var(--color-muted); font: 400 14px/20px var(--font-sans); }
.analytics-note { border-top: 1px solid var(--color-line); padding-top: 20px; }
.analytics-date-dialog { width: min(840px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 32px; border: 1px solid var(--color-ink); background: var(--color-wall); color: var(--color-ink); }
.analytics-date-dialog::backdrop { background: #11111114; }
.analytics-date-dialog form { display: flex; flex-direction: column; gap: 28px; }
.analytics-date-dialog p { margin: 0; }
.analytics-dialog-head, .analytics-dialog-actions { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.analytics-dialog-head h2 { margin: 0; font-size: 32px; line-height: 36px; font-weight: 500; letter-spacing: -.02em; }
.analytics-date-fields { display: flex; gap: 24px; }
.analytics-date-fields .field { flex: 1; color: var(--color-muted); font-size: 15px; }
.analytics-date-fields input { width: 100%; border: 1px solid var(--color-faint); padding: 16px; font-size: 22px; line-height: 28px; color: var(--color-ink); }
.analytics-dialog-actions { border-top: 1px solid var(--color-line); padding-top: 20px; align-items: center; }
@media (max-width: 1000px) {
  .analytics-model-charts, .analytics-breakdowns { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .analytics-summary { flex-wrap: wrap; }
  .analytics-summary > div { flex: 1 1 28%; }
}
@media (max-width: 520px) {
  .analytics-summary > div { flex-basis: 42%; }
  .analytics-summary > div > :first-child { font-size: 32px; line-height: 40px; }
  .analytics-date-dialog { padding: 24px; }
  .analytics-date-fields, .analytics-dialog-actions { flex-direction: column; align-items: stretch; }
  .analytics-filters .field { min-width: 100%; }
}

/* Shared service notice: Paper's 17/22 text and a single hairline. */
.service-notice { border-top: 1px solid var(--color-line); padding-top:16px; font:400 17px/22px var(--font-sans); color:var(--color-ink); }
.service-notice p { margin:0; }
.service-notice-page { min-height:60vh; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:24px; border:0; }
.service-notice-page p { font-size:clamp(28px,4vw,48px); line-height:1.08; font-weight:500; letter-spacing:-.02em; }
.account-minimal { padding-top:80px; }
.viewer-close { position:fixed; top:12px; right:20px; z-index:10; background:var(--color-wall); padding:4px 8px; }
.viewer .v-table { height:100vh; padding:0; }

/* Ramon Final public shell and pages. Staff page components retain their own layout. */
.final-site { --color-accent:#cee5ff; --color-accent-hover:#b9daff; --pad:48px; --color-ink:#2f2d2a; --color-text:#2f2d2a; --color-muted:#6f6c67; --color-line:#e7e5e1; --color-table:#eeece8; }
.site-header { display:grid; grid-template-columns:342px minmax(0,1fr) auto; align-items:center; gap:24px; padding-top:20px; padding-bottom:20px; font-size:15px; line-height:22px; }
.site-wordmark { font-weight:500; color:var(--color-ink); }
.site-statement { margin:0; color:var(--color-muted); }
.site-nav { display:flex; align-items:center; gap:20px; font-size:14px; line-height:20px; color:var(--color-muted); white-space:nowrap; }
.site-support { display:inline-flex; justify-content:center; align-items:center; padding:9px 16px; border:0; border-radius:3px; background:var(--color-accent); color:var(--color-ink); font-weight:500; }
.support-mobile { display:none; }
.site-footer { display:grid; grid-template-columns:342px 1fr 1fr 1fr; gap:24px; margin-top:64px; padding:32px 0 48px; border-top:1px solid var(--color-line); font-size:15px; line-height:22px; }
.site-footer > div { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; }
.site-footer a, .site-footer p { color:var(--color-muted); margin:0; }
.site-footer a:hover { color:var(--color-ink); }
.site-footer .site-wordmark { color:var(--color-ink); }
.archive { min-height:0; }
.site-button { display:inline-flex; justify-content:center; align-items:center; border:0; border-radius:3px; padding:14px 20px; background:var(--color-table); font-size:15px; line-height:22px; font-weight:500; color:var(--color-ink); }
.site-button:hover { filter:brightness(.97); }
.site-button.is-primary { background:var(--color-accent); }
.site-button.is-primary:hover { background:var(--color-accent-hover); filter:none; }
/* Landing page browser (FRANCOIS-022), after html.moldandyeast.com: a display
   headline, sort and tag counts, rows grouped by month with a 4:3 thumbnail. */
.browser { --label:342px; }
.browser-hero h1 { margin:0; padding:72px 0 56px; max-width:1180px; font-size:clamp(32px,4.72vw,68px); line-height:1.03; letter-spacing:-.035em; font-weight:500; color:var(--color-ink); }
.browser-controls { display:flex; flex-direction:column; gap:14px; padding-bottom:24px; font-size:15px; line-height:22px; }
.browser-views { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; }
.browser-search { width:280px; max-width:100%; height:36px; padding:6px 10px; border:1px solid var(--color-line); border-radius:3px; background:transparent; font-size:15px; }
.browser-search::placeholder { color:#a8a59e; }
.browser-sort { border:0; background:transparent; padding:0; font-size:15px; color:var(--color-muted); cursor:pointer; }
.browser-sort:hover { color:var(--color-ink); }
.result-count { color:var(--color-muted); }
.tags { display:flex; flex-wrap:wrap; gap:4px 0; color:var(--color-muted); }
.tags .tag:not(:last-child)::after { content:"·"; padding:0 8px; color:var(--color-faint, #c4c4c4); }
.tag:hover .tag-label, .tag[aria-current] .tag-label { color:var(--color-ink); }
.tag[aria-current] .tag-label { text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
.tag-count { font-size:13px; }
.browser-group { display:grid; grid-template-columns:var(--label) minmax(0,1fr); gap:0 24px; border-top:1px solid var(--color-ink); }
.group-label { display:flex; flex-direction:column; margin:0; padding-top:24px; font-size:15px; line-height:22px; }
.group-label span + span { color:var(--color-muted); }
.group-rows { min-width:0; }
.browser .ri { display:grid; grid-template-columns:minmax(200px,402px) minmax(0,1fr); gap:40px; padding:24px 0 32px; border-bottom:1px solid var(--color-line); }
.browser .ri:last-child { border-bottom:0; }
.browser .ri-thumb { width:auto; aspect-ratio:4/3; border-radius:3px; background:var(--color-table); }
.browser .ri-thumb img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .4s cubic-bezier(.2,.7,.2,1); }
.browser .ri-thumb:hover img { transform:scale(1.015); }
.browser .ri-title { font-weight:500; }
.browser .ri-desc { max-width:640px; }
.ri-early { margin:0; color:var(--color-ink); }
.ri-early a { margin-left:6px; }
.ri-path { font-size:14px; }
.browser-empty { padding:40px 0; color:var(--color-muted); }
.browser-empty a { margin-top:8px; display:inline-block; }
.browser-viewer:not([open]) { display:none; }
.browser-viewer { width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0; border:0; color:inherit; }
.browser-viewer::backdrop { background:transparent; }
.browser-viewer .v-table { height:auto; flex:1; padding:0 var(--pad); justify-content:center; }
.browser-viewer .v-device { max-width:100%; transition:max-width .2s; }
.v-bottom { display:flex; justify-content:space-between; align-items:baseline; gap:24px; flex-shrink:0; padding:14px var(--pad) 18px; font-size:15px; }
.v-sizes { display:flex; gap:16px; }
.v-sizes button { border:0; background:none; padding:0; color:var(--color-muted); cursor:pointer; }
.v-sizes button[aria-pressed="true"] { color:var(--color-ink); text-decoration:underline; text-underline-offset:4px; }
.v-state { color:var(--color-muted); }
.runner-early { margin:0; max-width:640px; font-size:17px; line-height:24px; color:var(--color-ink); }
.support-callout { display:grid; grid-template-columns:302px minmax(0,1fr); gap:24px; margin-top:120px; padding:64px 40px 72px; background:var(--color-accent); border-radius:3px; }
.callout-label { margin:0; font-size:15px; line-height:22px; }
.support-callout h2 { margin:0 0 24px; font-size:64px; line-height:64px; letter-spacing:-.035em; font-weight:400; }
.support-callout div > p { max-width:760px; margin:0 0 36px; font-size:20px; line-height:30px; }
.callout-button { background:white; }
.callout-contact { margin-left:28px; font-size:15px; }
.final-section { display:grid; grid-template-columns:342px minmax(0,1fr); gap:24px; padding-top:120px; }
.final-label { font-size:15px; line-height:22px; color:var(--color-muted); }
.final-label p { margin:4px 0 0; overflow-wrap:anywhere; }
.final-content { min-width:0; max-width:888px; }
.final-lost { padding-bottom:120px; }
.final-lost .final-content > p { margin:0 0 24px; }
.final-content > h1 { font-size:48px; line-height:52px; letter-spacing:-.025em; font-weight:400; margin:0 0 20px; }
.final-lead { max-width:760px; font-size:20px; line-height:30px; margin:0; }
.support-principles { list-style:none; counter-reset:principle; padding:0; margin:72px 0; max-width:760px; border-top:1px solid var(--color-line); }
.support-principles li { counter-increment:principle; display:grid; grid-template-columns:40px 1fr; gap:24px; border-bottom:1px solid var(--color-line); padding:14px 0; font-size:24px; line-height:32px; letter-spacing:-.01em; }
.support-principles li::before { content:counter(principle); color:var(--color-muted); }
.support-year { max-width:760px; border-top:1px solid var(--color-line); margin-top:48px; padding-top:40px; }
.support-year h2 { font-size:56px; line-height:60px; letter-spacing:-.03em; font-weight:400; margin:16px 0; }
.support-year > p:not(.final-label) { color:var(--color-muted); font-size:15px; line-height:22px; }
.support-contact { padding-top:140px; }
.support-contact .final-content > p { max-width:760px; margin:0; color:var(--color-muted); font-size:15px; line-height:22px; }
.final-account .final-content { max-width:888px; }
.account-detail { display:grid; grid-template-columns:200px 1fr; gap:24px; padding:16px 0; border-top:1px solid var(--color-line); font-size:15px; }
.account-detail span { color:var(--color-muted); }
.account-detail p { margin:0; overflow-wrap:anywhere; }
.final-account .row { margin-top:64px; }
@media (max-width:1200px) and (min-width:901px) { .site-header { grid-template-columns:240px minmax(0,1fr) auto; } .site-footer { grid-template-columns:240px minmax(0,1fr) 180px 80px; } .browser { --label:240px; } }
@media (max-width:900px) {
 .final-site { --pad:20px; }
 .site-header { grid-template-columns:minmax(0,1fr) auto; gap:12px; height:60px; padding-top:0; padding-bottom:0; position:relative; }
 .site-header::after { content:""; position:absolute; bottom:0; left:20px; right:20px; border-bottom:1px solid var(--color-line); }
 .site-statement,.support-desktop { display:none; }
 .support-mobile { display:inline; }
 .site-wordmark { font-size:16px; }
 .site-nav { gap:16px; }
 .site-support { padding:8px 14px; }
 .browser-hero h1 { padding:32px 0 28px; }
 .browser-search { width:100%; height:40px; }
 .browser-group { grid-template-columns:1fr; }
 .group-label { flex-direction:row; gap:8px; padding:16px 0 4px; }
 .browser .ri { grid-template-columns:1fr; gap:14px; padding:16px 0 24px; }
 .browser .ri-title { font-size:26px; line-height:30px; }
 .support-callout { grid-template-columns:1fr; gap:16px; margin-top:64px; padding:32px 20px 28px; }
 .support-callout h2 { font-size:34px; line-height:36px; letter-spacing:-.03em; margin:0 0 20px; }
 .support-callout div > p { font-size:17px; line-height:24px; margin:0 0 24px; }
 .callout-button { display:flex; width:100%; }
 .callout-contact { display:block; margin:14px 0 0; text-align:center; font-size:14px; }
 .site-footer { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px 20px; margin-top:48px; padding:24px 0 32px; font-size:14px; line-height:20px; }
 .site-footer .footer-brand,.site-footer .footer-type { grid-column:1/-1; }
 .footer-type > span { display:none; }
 .site-footer .site-wordmark { font-size:14px; }
 .final-section { grid-template-columns:1fr; gap:16px; padding-top:40px; }
 .final-content > h1 { font-size:36px; line-height:40px; }
 .final-lead { font-size:18px; line-height:26px; }
 .support-principles { margin:48px 0; }
 .support-principles li { grid-template-columns:20px 1fr; gap:14px; font-size:18px; line-height:26px; padding:12px 0; }
 .support-year h2 { font-size:44px; line-height:48px; }
 .support-contact { padding-top:80px; }
 .account-detail { grid-template-columns:1fr; gap:4px; }
}

.experiment-header { padding:96px 0 64px; }
.experiment-meta { margin:0 0 20px; font-size:15px; line-height:22px; color:var(--color-muted); }
.experiment-title-row { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; }
.experiment-title-row h1 { min-width:0; margin:0; font-size:96px; line-height:92px; font-weight:400; letter-spacing:-.045em; overflow-wrap:anywhere; }
.experiment-download { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.experiment-download .site-button { font-size:17px; line-height:24px; }
.runner-downloads { display:none; }
.file-meta { font:13px/20px var(--font-mono); color:var(--color-muted); overflow-wrap:anywhere; }
.experiment-description { max-width:1000px; margin:48px 0 0; font-size:28px; line-height:38px; }
.experiment-header .byline { margin:20px 0 0; font-size:15px; }
.runner-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px; font-size:15px; line-height:22px; }
.runner-toolbar > div { display:flex; align-items:center; gap:12px; }
.runner-state::before { content:""; display:inline-block; width:8px; height:8px; margin-right:10px; border-radius:50%; background:var(--color-faint); }
.is-live .runner-state::before { background:#ec9494; }
.runner-caption { color:var(--color-muted); }
.runner-tools { gap:20px !important; }
.runner-surface { width:100%; aspect-ratio:8/5; overflow:hidden; background:var(--color-table); border-radius:3px; }
.runner-surface > img,.runner-surface > video,.runner-surface > iframe { display:block; width:100%; height:100%; object-fit:cover; border:0; }
.runner-surface:fullscreen { aspect-ratio:auto; background:var(--color-wall); }
.runner-placeholder { display:flex; height:100%; align-items:center; justify-content:center; font-size:28px; color:var(--color-muted); }
.runner-start { display:flex; flex-wrap:wrap; gap:16px; align-items:baseline; padding-top:16px; }
.runner-link { display:inline-block; font-size:14px; margin-top:12px; }
.experiment-editorial { padding-top:120px; display:flex; flex-direction:column; gap:72px; }
.editorial-row { display:grid; grid-template-columns:342px minmax(0,660px); gap:24px; }
.editorial-label { font-size:15px; line-height:22px; font-weight:400; color:var(--color-muted); margin:0; padding-top:6px; }
.editorial-body { max-width:660px; font-size:20px; line-height:30px; }
.editorial-body > :first-child { margin-top:0; }
.editorial-body > :last-child { margin-bottom:0; }
.experiment-gallery { margin-top:96px; }
.gallery-zoom { display:block; cursor:zoom-in; }
.lightbox:not([open]) { display:none; }
.lightbox { width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:24px var(--pad); border:0; background:var(--color-wall); color:var(--color-ink); display:flex; flex-direction:column; gap:16px; }
.lightbox::backdrop { background:var(--color-wall); }
.lightbox img { flex:1; min-height:0; width:100%; object-fit:contain; }
html:has(.lightbox[open]) { overflow:hidden; }
.lightbox-bar { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 24px; font-size:15px; line-height:22px; }
.lightbox-caption { flex:1 1 320px; margin:0; color:var(--color-muted); }
.lightbox-nav { display:flex; align-items:baseline; gap:16px; white-space:nowrap; }
.lightbox-bar > .tlink { white-space:nowrap; }
@media (max-width: 640px) { .lightbox-caption { flex-basis:100%; } .lightbox-nav { flex:1; } }
.lightbox-count { color:var(--color-muted); font-variant-numeric:tabular-nums; }
.experiment-attachments { margin-top:72px; padding-top:20px; border-top:1px solid var(--color-line); }
@media(max-width:1200px) and (min-width:901px) { .experiment-title-row h1 { font-size:76px; line-height:80px; } .editorial-row { grid-template-columns:240px minmax(0,660px); } }
@media(max-width:900px) {
 .experiment-header { padding:72px 0 56px; display:flex; flex-direction:column; gap:28px; }
 .experiment-meta { margin:0; }
 .experiment-title-row { display:contents; }
 .experiment-title-row h1 { font-size:44px; line-height:44px; font-weight:500; letter-spacing:-.035em; }
 .experiment-description { order:2; margin:-8px 0 0; font-size:22px; line-height:30px; }
 .experiment-header .experiment-download { display:none; }
 .runner-downloads { display:flex; width:100%; align-items:center; min-width:0; padding-top:16px; }
 .runner-downloads:empty { display:none; }
 .experiment-download .site-button { width:100%; font-size:15px; line-height:22px; }
 .experiment-header .byline { order:4; margin:0; }
 .runner-toolbar { padding:10px 14px; font-size:14px; line-height:20px; }
 .runner-caption { font-size:13px; }
 .runner-tools { gap:12px !important; }
 .runner-tools button { font-size:13px; }
 .runner-start .site-button { width:100%; }
 .runner-link { display:block; padding:14px; border-radius:3px; background:var(--color-table); text-align:center; }
 .experiment-editorial { padding-top:72px; gap:56px; }
 .editorial-row { grid-template-columns:1fr; gap:12px; }
 .editorial-label { padding:0; font-size:15px; }
 .editorial-label:empty { display:none; }
 .editorial-body { font-size:17px; line-height:26px; }
 .experiment-gallery { margin-top:64px; }
 .experiment-attachments { margin-top:64px; }
}

@media(max-width:900px) {
}

/* Final supporter email sign-in. */
.final-signin { min-height: 48vh; }
.signin-content { max-width: 640px; }
.signin-content h1 { margin-top: 0; }
.signin-intro { font-size: 20px; line-height: 30px; margin: 0; }
.signin-form { display: grid; gap: 10px; margin: 40px 0 16px; }
.signin-form label { color: var(--color-muted); font-size: 15px; line-height: 22px; }
.signin-form input[type=email] { width: 100%; box-sizing: border-box; height: 48px; font: inherit; font-size: 17px; border: 1px solid var(--color-line); border-radius: 3px; background: transparent; padding: 12px 16px; }
.signin-form input::placeholder { color: var(--color-faint); }
.signin-form .site-button { justify-self: start; margin-top: 10px; }
@media (max-width: 900px) {
 .final-signin .final-label { display: none; }
 .signin-intro { font-size: 17px; line-height: 26px; }
 .signin-form { margin-top: 32px; }
 .signin-form .site-button { justify-self: stretch; }
}

.signin-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 16px; }
.signin-social .site-button { justify-content: center; border: 1px solid var(--color-line); background: transparent; }
.signin-divider { margin: 32px 0 16px; }
@media (max-width: 600px) { .signin-social { grid-template-columns: 1fr; } }

.signin-other { margin-top: 32px; font-size: 15px; line-height: 22px; }

/* Final support contribution control, exported from Ramon’s desktop/mobile artboards. */
.support-tiers { display:flex; flex-direction:column; gap:32px; max-width:760px; }
.support-tabs { display:flex; gap:24px; border-bottom:1px solid var(--color-line); }
.support-tabs[hidden] { display:none; }
.support-tabs [role=tab] { margin-bottom:-1px; padding:0 0 10px; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--color-muted); font:inherit; font-size:17px; line-height:24px; cursor:pointer; }
.support-tabs [role=tab][aria-selected=true] { border-bottom-color:var(--color-ink); color:var(--color-ink); }
.support-panel[hidden] { display:none; }
.support-amount-controls > .support-shift { width:auto; min-width:44px; padding:0 10px; font-family:var(--font-mono); font-size:15px; }
.support-amount-controls > button:disabled { opacity:.35; cursor:default; }
.support-amount-value output { min-width:2ch; text-align:left; }
.support-monthly { display:flex; flex-direction:column; align-items:flex-start; gap:16px; }
.support-amount-controls { display:flex; align-items:center; gap:16px; }
.support-amount-controls > button { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:44px; height:44px; padding:0; border:0; border-radius:3px; background:var(--color-table); color:var(--color-ink); font:inherit; font-size:22px; cursor:pointer; }
.support-amount-value { display:flex; align-items:baseline; gap:12px; padding:0 4px; border-bottom:1px solid var(--color-line); font-size:56px; line-height:64px; letter-spacing:-.03em; }
.support-amount-value input { appearance:textfield; width:2ch; min-width:2ch; max-width:4ch; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; letter-spacing:inherit; }
.support-amount-value input::-webkit-inner-spin-button,.support-amount-value input::-webkit-outer-spin-button { appearance:none; margin:0; }
.support-amount-help { max-width:560px; margin:0; color:var(--color-muted); font-size:15px; line-height:22px; }
.support-monthly > .site-button { margin-top:8px; padding:12px 18px; background:var(--color-accent); cursor:pointer; }
.final-support .support-year > p { margin:0; }
.final-support .support-year > a { display:inline-block; margin-top:24px; font-size:15px; line-height:22px; }
@media(max-width:900px) {
 .final-support > .final-section > .final-label { display:none; }
 .final-support .final-lead { font-size:17px; }
 .support-monthly { gap:12px; }
 .support-monthly > label,.support-amount-help { font-size:14px; line-height:20px; }
 .support-amount-controls { gap:12px; }
 .support-amount-controls > button { width:40px; height:40px; font-size:20px; }
 .support-amount-value { gap:10px; font-size:44px; line-height:52px; }
 .support-monthly > .site-button { width:100%; margin-top:6px; padding:14px 18px; }
 .final-support .support-year { padding-top:32px; }
 .final-support .support-year > p:not(.final-label) { font-size:14px; line-height:20px; }
 .final-support .support-contact { padding-top:96px; }
 .final-support .support-contact > .final-label { display:block; color:var(--color-ink); }
}

.support-impact { display:flex; align-items:flex-end; gap:24px; margin:40px 0 56px; }
.support-impact-count { font-size:120px; line-height:104px; letter-spacing:-.05em; }
.support-impact > div { max-width:420px; }
.support-impact p { margin:0 0 12px; font-size:20px; line-height:28px; }
.support-impact a { font-size:15px; }
.support-thanks { font-size:14px; line-height:20px; color:var(--color-muted); }
@media(max-width:900px) { .support-impact { gap:16px; align-items:flex-start; } .support-impact-count { font-size:80px; line-height:76px; } .support-impact p { font-size:17px; line-height:24px; } .site-nav .support-thanks { display:none; } }

.support-year > form { margin-top:24px; font-size:15px; line-height:22px; }

/* Studio's guided uploader keeps the existing type and neutral palette. */
.slop-uploader > .lib-head p { margin: 0; }
.upload-selector { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.upload-selector select { flex: 1; max-width: 480px; appearance: none; border: 0; border-bottom: 1px solid var(--color-ink); border-radius: 0; padding: 12px 32px 12px 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23111111'/%3E%3C/svg%3E") no-repeat right 8px center; cursor: pointer; }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--label); gap: var(--gap); align-items: start; }
.upload-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.upload-panel { border-top: 1px solid var(--color-ink); padding: 16px 0 0; margin-bottom: 48px; }
.upload-panel h2 { font-size: var(--text-body); font-weight: 400; line-height: var(--leading-body); margin: 0 0 24px; }
.upload-panel h3 { font-size: var(--text-small); font-weight: 400; line-height: var(--leading-body); }
.upload-capabilities strong, .upload-result strong { font-weight: 500; }
.upload-two, .upload-capabilities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.slop-uploader .field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.slop-uploader input:not([type=checkbox]), .slop-uploader textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.upload-drop { display: flex; flex-direction: column; gap: 18px; border: 1px dashed var(--color-faint); padding: 28px; background: var(--color-plinth); }
.upload-capabilities label { display: flex; gap: 9px; align-items: flex-start; padding: 10px 0; }
.upload-capabilities small { display: block; color: var(--color-muted); margin-top: 5px; }
.upload-public { display: block; margin-top: 24px; }
.upload-notice { background: #f8f3e7; padding: 12px; font-size: 13px; line-height: 1.5; }
.upload-media { margin-bottom: 24px; }
.upload-media-list { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.upload-media-item { width: 150px; font-size: 12px; overflow-wrap: anywhere; }
.upload-media-item img, .upload-media-item video { width: 150px; height: 100px; object-fit: cover; display: block; margin-bottom: 8px; }
.upload-media-item button { font-size: 11px; margin: 8px 4px 0 0; }
.upload-summary { border-top: 1px solid var(--color-ink); padding-top: 16px; position: sticky; top: 24px; overflow-wrap: anywhere; }
.upload-summary h2 { margin: 0 0 24px; font-size: var(--text-body); font-weight: 400; line-height: var(--leading-body); }
.upload-actions { display: grid; gap: 10px; margin: 24px 0; }
.upload-actions button { padding: 12px; }
.upload-progress { list-style: none; padding: 0; font-size: 13px; line-height: 1.8; }
.upload-progress [data-state=failed], .slop-uploader [role=alert] { color: var(--color-warn); }
.upload-result { border-top: 1px solid var(--color-line); padding-top: 16px; }
.slop-uploader [aria-invalid=true] { border-color: var(--color-warn); }
.slop-uploader .md-editor { grid-template-columns: 1fr; }
@media(max-width: 850px) { .upload-layout { grid-template-columns: 1fr; } .upload-summary { position: static; } }
@media(max-width: 480px) { .upload-two, .upload-capabilities { grid-template-columns: 1fr; } .upload-selector { align-items: stretch; flex-direction: column; } }
.slop-uploader .upload-result > button { display: block; margin-top: 16px; }

.slop-uploader input[type="file"] { display: block; color: var(--color-muted); font-size: var(--text-caption); line-height: 20px; padding: 0; border: 0; background: none; }
.slop-uploader input[type="file"]::file-selector-button { border: 0; border-radius: 0; background: var(--color-plinth); color: var(--color-ink); font: inherit; padding: 10px 16px; margin: 0 12px 0 0; cursor: pointer; }
.slop-uploader input[type="file"]::file-selector-button:hover { background: var(--color-table); }
.upload-drop input[type="file"]::file-selector-button { background: var(--color-wall); }
.upload-drop { cursor: pointer; transition: border-color .15s; }
.upload-drop:hover, .upload-drop:focus-within { border-color: var(--color-ink); }
.upload-media > .btn { margin-top: 12px; }
.upload-media-item .btn { padding: 6px 8px; font-size: var(--text-caption); }
.slop-uploader input[type="checkbox"] { accent-color: var(--color-ink); width: 16px; height: 16px; flex-shrink: 0; margin: 3px 0 0; }
.upload-public { display: flex; align-items: center; gap: 10px; }
.slop-uploader details { border-top: 1px solid var(--color-line); margin-top: 20px; padding-top: 16px; }
.slop-uploader summary { cursor: pointer; font-size: var(--text-small); color: var(--color-muted); }
.slop-uploader details[open] summary { margin-bottom: 16px; color: var(--color-ink); }
.slop-uploader .field { color: var(--color-muted); font-size: var(--text-small); }
.slop-uploader .field input, .slop-uploader .field textarea { color: var(--color-ink); }
.slop-uploader input:focus-visible, .slop-uploader select:focus-visible, .slop-uploader textarea:focus-visible { outline: 1.5px solid var(--color-ink); outline-offset: 3px; }
.slop-uploader .md-preview { min-height: 120px; }
@media(max-width:480px) { .upload-selector select { width:100%; max-width:none; } }

/* CLI device login approval (/device). */
.device-panel { display: grid; gap: 20px; max-width: 640px; padding: 0 0 120px; }
.device-code { font-family: var(--font-mono); font-size: 34px; line-height: 40px; letter-spacing: 0.12em; color: var(--color-ink); }
.device-actions { display: flex; gap: 12px; flex-wrap: wrap; }
