:root {
  --bg: #08090b;
  --ink: #f3eee4;
  --muted: #9a9386;
  --line: rgba(232, 196, 140, .16);
  --accent: #e8b86d;
  --panel: #111318;
  --ok: #8fceaa;
  --font: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(232,184,109,.09), transparent 55%),
    var(--bg);
}
.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 0; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.top, main, .foot { position: relative; z-index: 1; }
.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  padding: 1.1rem 1.6rem; border-bottom: 1px solid var(--line);
  background: rgba(8,9,11,.78); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: inherit; }
.mark {
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font-size: 1.1rem;
}
.kicker {
  margin: 0; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.top h1 { margin: .05rem 0 0; font-family: var(--font); font-size: 1.25rem; font-weight: 600; }
.odooclass-link {
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.odooclass-link:hover,
.odooclass-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.top-nav { display: flex; flex-wrap: wrap; gap: .35rem; }
.top-nav a {
  color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 650;
  letter-spacing: .06em; text-transform: uppercase; padding: .35rem .65rem;
  border: 1px solid transparent;
}
.top-nav a.on, .top-nav a:hover { color: var(--ink); border-color: var(--line); }
.workspace-btn {
  flex: 0 0 auto;
  color: #08090b;
  background: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .85rem;
  white-space: nowrap;
}
.workspace-btn:hover,
.workspace-btn:focus-visible {
  filter: brightness(1.08);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 184, 109, .28);
}
.top-tools { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.key-box { font-size: .68rem; color: var(--muted); display: flex; flex-direction: column; }
.key-box input {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  padding: .3rem .45rem; width: 8.5rem;
}
.ghost {
  color: var(--accent); text-decoration: none; font-size: .82rem;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  padding: .3rem .55rem;
}
.ghost:hover { border-color: var(--accent); }
main { max-width: 1180px; margin: 0 auto; padding: 1.6rem 1.4rem 6rem; }
#kit-grid { scroll-margin-top: 9.2rem; }

.flag-carousel {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  margin: 0 0 2rem; min-height: 24rem; background: #08090b;
}
.flag-track { display: flex; transition: transform .55s ease; }
.flag-slide {
  position: relative; flex: 0 0 100%; min-height: 24rem; color: inherit; text-decoration: none;
}
.flag-slide img { width: 100%; height: 24rem; object-fit: cover; display: block; filter: saturate(.92); }
.flag-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,.12), rgba(8,9,11,.88) 74%);
}
.flag-copy { position: absolute; left: 1.6rem; right: 5rem; bottom: 1.5rem; }
.flag-copy .eyebrow {
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  font-size: .72rem; font-weight: 750; margin: 0 0 .35rem;
}
.flag-copy h2 {
  font-family: var(--font); font-size: clamp(1.8rem, 4.5vw, 3.1rem);
  margin: 0 0 .35rem; letter-spacing: -.03em; font-weight: 600; max-width: 18ch;
}
.flag-copy p { margin: 0; max-width: 40rem; color: #ddd6c8; font-size: 1.02rem; line-height: 1.4; }
.flag-copy .price { color: var(--accent); font-size: 1.25rem; margin-top: .45rem; font-weight: 650; }
.flag-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(8,9,11,.55); color: var(--accent);
  cursor: pointer; font-size: 1.4rem; line-height: 1;
}
.flag-nav.prev { left: .7rem; }
.flag-nav.next { right: .7rem; }
.flag-nav:hover { border-color: var(--accent); }
.flag-dots {
  position: absolute; left: 0; right: 0; bottom: .55rem;
  display: flex; justify-content: center; gap: .35rem;
}
.flag-dot {
  width: .55rem; height: .55rem; border-radius: 99px; border: 0;
  background: rgba(232,184,109,.35); cursor: pointer; padding: 0;
}
.flag-dot.on { background: var(--accent); }
.shot-rail {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: .75rem; margin: 0 0 1.6rem;
}
.shot { margin: 0; border: 1px solid var(--line); background: #0d0f13; }
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.shot figcaption { padding: .45rem .6rem; color: var(--muted); font-size: .78rem; }

.hero {
  position: relative; min-height: 22rem; border: 1px solid var(--line);
  overflow: hidden; margin-bottom: 2rem;
}
.hero img { width: 100%; height: 22rem; object-fit: cover; display: block; filter: saturate(.9); }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,.15), rgba(8,9,11,.88) 78%);
}
.hero-copy { position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.4rem; }
.hero-copy .eyebrow {
  letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
  font-size: .72rem; font-weight: 750; margin: 0 0 .4rem;
}
.hero-copy h2 {
  font-family: var(--font); font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 .4rem; letter-spacing: -.03em; font-weight: 600; max-width: 18ch;
}
.hero-copy p { margin: 0; max-width: 46rem; color: #ddd6c8; font-size: 1.05rem; line-height: 1.45; }

.price-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem; margin: 0 0 2.2rem;
}
.offer-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: var(--panel); padding: 1.15rem 1.2rem;
  min-height: 14.5rem; position: relative; overflow: hidden;
}
.offer-card:hover { border-color: var(--accent); }
.offer-card .kind {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 750;
}
.offer-card h3 {
  font-family: var(--font); font-size: 1.55rem; margin: .35rem 0 .5rem; font-weight: 600;
}
.offer-card .price {
  font-family: var(--font); font-size: 1.7rem; letter-spacing: -.02em; margin: .2rem 0;
}
.offer-card .note { color: var(--muted); font-size: .8rem; margin: 0 0 .6rem; }
.offer-card .sum { color: #cfc7b8; font-size: .88rem; line-height: 1.4; margin: 0; }
.offer-card .ribbon {
  position: absolute; top: .85rem; right: .85rem;
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--accent); padding: .15rem .4rem;
}

.section-h {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 2.2rem 0 .9rem;
}
.section-h h2 { font-family: var(--font); font-size: 1.8rem; margin: 0; font-weight: 600; }
.section-h p { color: var(--muted); margin: 0; font-size: .9rem; }

.include-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: .75rem;
}
.include {
  border: 1px solid var(--line); padding: .85rem .95rem; background: #0d0f13;
}
.include h4 { margin: 0 0 .3rem; font-size: .92rem; }
.include p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.include .lk {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 750;
}

.callout {
  border-left: 3px solid var(--accent); padding: .9rem 1.1rem; margin: 1.1rem 0;
  background: rgba(232,184,109,.06);
}
.callout.warn { border-color: #d9886a; background: rgba(217,136,106,.07); }
.callout h4 { margin: 0 0 .25rem; font-family: var(--font); font-size: 1.1rem; }
.callout p { margin: 0; color: #d5cdc0; font-size: .92rem; line-height: 1.45; }

.diagram {
  margin: 1.2rem 0 1.6rem; border: 1px solid var(--line); padding: 1rem;
  background: #0c0e12; overflow-x: auto;
}
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { color: var(--muted); font-size: .78rem; margin-top: .65rem; }

.guide {
  display: grid; grid-template-columns: 13rem 1fr; gap: 1.4rem; align-items: start;
}
@media (max-width: 800px) { .guide { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 5.2rem; display: flex; flex-direction: column; gap: .2rem; }
.toc button {
  text-align: left; background: transparent; border: 0; color: var(--muted);
  padding: .35rem 0; cursor: pointer; font: inherit; font-size: .82rem;
}
.toc button.on { color: var(--accent); }
.prose { max-width: 46rem; }
.prose-lead {
  max-width: 46rem; font-size: 1.12rem; line-height: 1.58; color: #eee6d8;
  margin: 0 0 1.6rem;
}
.prose h2, .prose h3 { font-family: var(--font); font-weight: 600; letter-spacing: -.02em; }
.prose h2 { font-size: 1.8rem; margin: 0 0 .6rem; }
.prose h3 { font-size: 1.25rem; margin: 1.4rem 0 .4rem; }
.prose p { line-height: 1.58; color: #ddd6c8; }
.prose ul { padding-left: 1.1rem; color: #ddd6c8; }
.prose code {
  font-size: .82em; border: 1px solid var(--line); padding: .05rem .3rem; color: var(--accent);
}
.prose table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1rem 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .45rem .4rem; text-align: left; }
.prose th { color: var(--muted); font-weight: 650; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }

.factory-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: .7rem;
}
.fac-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); padding: .85rem .9rem; min-height: 7.2rem;
  background: #0d0f13;
}
.fac-card:hover { border-color: var(--accent); }
.fac-card .kind { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.fac-card h3 { font-family: var(--font); font-size: 1.15rem; margin: .25rem 0 .35rem; }
.fac-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.fac-card .meta, .app-card .meta, .sheet-card .meta, .brand-card .meta {
  margin: .45rem 0 0; color: var(--accent); font-size: .72rem; letter-spacing: .04em;
}

.app-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: .85rem; margin-bottom: 2rem; align-items: start;
}
.brand-card, .app-card, .offer-card, .fac-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); padding: 0; min-height: 0;
  background: #0d0f13;
  position: relative; overflow: hidden;
}
.brand-card:hover, .app-card:hover, .offer-card:hover, .fac-card:hover { border-color: var(--accent); }
.brand-card .card-body, .app-card .card-body {
  display: block; padding: .85rem 1rem 1rem;
}
.brand-card .card-kicker, .brand-card .kind, .app-card .kind, .offer-card .kind, .fac-card .kind {
  font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 750;
}
.brand-card .card-kicker em {
  margin-left: .5rem; font-style: normal; border: 1px solid var(--accent); padding: .1rem .35rem;
}
.brand-card h3, .app-card h3, .offer-card h3 {
  font-family: var(--font); font-size: 1.25rem; margin: .3rem 0 .35rem; font-weight: 600;
}
.fac-card h3 { font-family: var(--font); font-size: 1.2rem; margin: .3rem 0 .35rem; }
.brand-card .sum, .app-card .sum, .offer-card .sum { margin: 0; color: #d5cdc0; font-size: .86rem; line-height: 1.4; }
.brand-card .note, .offer-card .note { color: var(--muted); font-size: .8rem; margin: 0 0 .45rem; }
.brand-card .price, .offer-card .price {
  font-family: var(--font); font-size: 1.4rem; letter-spacing: -.02em; margin: .15rem 0 .35rem;
}
.full-release {
  margin: 2.4rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.full-release .price {
  font-family: var(--font);
  font-size: 1.45rem;
  color: var(--accent);
  margin: 0 0 .55rem;
  font-weight: 650;
}
.founders-cta { margin: 1.1rem 0 0; }
.founders-cta .workspace-btn { display: inline-flex; text-decoration: none; }
.buy-now {
  display: inline-flex; align-items: center;
  color: #08090b; background: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  font-size: .78rem; font-weight: 750;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .85rem; white-space: nowrap;
}
.buy-now:hover, .buy-now:focus-visible { filter: brightness(1.08); outline: none; }
.buy-now-nav { margin-left: .15rem; }
.buy-now-hero { margin-top: .85rem; }
.buy-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.2rem;
  max-width: 1180px; margin: 0 auto 1.6rem; padding: 0 1.4rem;
}
.buy-bar p { margin: 0; color: var(--muted); font-size: .9rem; max-width: 42rem; }
.brand-card .atmo, .app-card .atmo, .app-lead .atmo, .factory-lead .atmo, .hero-copy .atmo {
  color: var(--accent); font-style: italic; font-size: .86rem; margin: .4rem 0 0;
}
.brand-card .ribbon, .offer-card .ribbon {
  position: absolute; top: .65rem; right: .65rem;
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--accent); padding: .15rem .4rem;
  background: rgba(8,9,11,.7);
}
img.card-hero, .card-hero {
  display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
  object-fit: cover; margin: 0; background: #16181d;
}
.card-hero-empty { background: linear-gradient(135deg, #1a1c22, #0d0f13); }
.app-hero-wide {
  height: 12rem; margin: -1.4rem -1.5rem 1.1rem; background-size: cover; background-position: center;
}
.brand-card.theme-surf { border-radius: 8px; }
.brand-card.theme-sanctuary { border-radius: 10px; }
.brand-card.theme-jukebox { border-radius: 8px; }
.brand-card.theme-ticker { font-family: ui-monospace, Menlo, monospace; }
.brand-card.theme-neon { box-shadow: 0 0 18px rgba(255,43,214,.18); }
.brand-card.theme-kitchen { box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
.brand-card.theme-kids { color: inherit; }
.brand-card.theme-podcast { border-radius: 8px; }
.theme-legal { background: #f3efe6; color: #1b2430; }
.theme-legal .sum, .theme-legal p { color: #5c6570; }
.theme-sterile { background: #101820; color: #e7f3f1; }
.theme-sterile .sum, .theme-sterile p { color: #9fb8b4; }
.theme-stage .kind { letter-spacing: .28em; }
.theme-fitness h3 { text-transform: uppercase; letter-spacing: .06em; }
.factory-lead.theme-campus, .app-lead.theme-campus { border-top: 4px solid var(--accent); }

body[data-theme="legal"] { background: #e8e2d4; color: #1b2430; }
body[data-theme="legal"] .top { background: #1b365d; color: #f3efe6; }
body[data-theme="legal"] .kicker, body[data-theme="legal"] .top h1 { color: #f3efe6; }
body[data-theme="legal"] .ghost, body[data-theme="legal"] .key-box { color: #d7deea; }
body[data-theme="legal"] .key-box input { color: #f3efe6; border-color: rgba(243,239,230,.35); background: #152a48; }
.factory-lead.theme-legal p, .app-lead.theme-legal p { color: #3a4450; }
.factory-lead.theme-legal .statline { color: #1b365d; }
body[data-theme="sterile"] {
  background: var(--bg, #0e141b);
  color: #e7f3f1;
}
body[data-theme="sterile"] .top {
  background: rgba(8, 16, 20, .92);
  border-bottom-color: rgba(18, 181, 168, .22);
}
body[data-theme="sterile"] .kicker,
body[data-theme="sterile"] .top h1 { color: inherit; }
body[data-theme="sterile"] .top-nav a { color: #8aa8a4; }
body[data-theme="sterile"] .top-nav a.on,
body[data-theme="sterile"] .top-nav a:hover { color: #e7f3f1; border-color: rgba(18,181,168,.35); }
body[data-theme="sterile"] .key-box { color: #8aa8a4; }
body[data-theme="sterile"] .key-box input {
  background: #101820; color: #e7f3f1; border-color: rgba(18,181,168,.28);
}
body[data-theme="sterile"] .ghost { color: #12b5a8; border-color: rgba(18,181,168,.35); }
body[data-theme="sterile"] .foot { color: #8aa8a4; border-top-color: rgba(18,181,168,.18); }
body[data-theme="sterile"] .page-lead p,
body[data-theme="sterile"] .app-lead p { color: #c5ddd9; }
body[data-theme="sterile"] .include,
body[data-theme="sterile"] .sheet-card,
body[data-theme="sterile"] .layer-row {
  background: #101820;
  border-color: rgba(18,181,168,.18);
}
body[data-theme="sterile"] .workspace-btn {
  background: #12b5a8;
  border-color: #12b5a8;
  color: #06120f;
}
body[data-theme="kids"] { background: #fff7ea; color: #2b2140; }
body[data-theme="kids"] .top { background: #fff; }
body[data-theme="ticker"] { background: #050807; color: #b6f7c4; }
body[data-theme="neon"] { background: #07040f; }
body[data-theme="surf"] { background: #041c22; }
body[data-theme="kitchen"] { background: #2a1a12; }
body[data-theme="runway"] { background: #071018; }
body[data-theme="stage"] { background: #140a0a; }
body[data-theme="jukebox"] { background: #1a0f12; }
body[data-theme="architect"] { background: #161616; }
body[data-theme="campus"] { background: #122033; }
body[data-theme="sanctuary"] { background: #12101a; }
body[data-theme="podcast"] { background: #1b1024; }
body[data-theme="launch"] { background: #0d1024; }
body[data-theme="affiliate"] { background: #0c1420; }
body[data-theme="fitness"] { background: #101214; }
body[data-theme="cinema"] { background: #08090b; }

.factory-lead.theme-legal, .app-lead.theme-legal { background: #fffdf8; color: #1b2430; }
.factory-lead.theme-sterile, .app-lead.theme-sterile {
  background: linear-gradient(90deg, var(--swatch, #12b5a8), transparent 3px), #101820;
  color: #e7f3f1;
  border-color: rgba(18, 181, 168, .22);
}

.page-lead { margin: 0 0 1.8rem; max-width: 46rem; }
.page-lead-tight { margin: 0 0 .9rem; }
.page-lead-tight h2 { font-size: 1.65rem; }
.page-lead .eyebrow {
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  font-size: .72rem; font-weight: 750; margin: 0 0 .45rem;
}
.page-lead h2 {
  font-family: var(--font); font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 .45rem; letter-spacing: -.03em;
}
.page-lead p { color: #ddd6c8; line-height: 1.5; margin: 0 0 .6rem; }
.page-lead .statline { color: var(--accent); font-size: .82rem; }
.factory-lead, .app-lead {
  border: 1px solid var(--line); padding: 1.4rem 1.5rem;
  background:
    linear-gradient(90deg, var(--swatch, var(--accent)), transparent 3px),
    #0d0f13;
}

.sheet-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: .75rem; margin-bottom: 1.6rem;
}
.sheet-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); padding: 1rem 1.05rem; background: #0d0f13;
}
.sheet-card:hover { border-color: var(--accent); }
.sheet-card h3 { font-family: var(--font); font-size: 1.2rem; margin: .2rem 0 .4rem; }
.sheet-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.sheet-card .lk {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 750;
}

.layer-list { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.8rem; }
.layer-row {
  border: 1px solid var(--line); padding: .7rem .9rem; background: #0d0f13;
}
.layer-row strong { font-size: .95rem; }
.layer-row .meta { margin-left: .5rem; color: var(--muted); font-size: .75rem; }
.layer-row p { margin: .25rem 0 0; color: var(--muted); font-size: .8rem; }

.chip { text-decoration: none; color: var(--muted); }
.chip:hover { color: var(--accent); border-color: var(--accent); }

.license-wrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); }
table.license { width: 100%; border-collapse: collapse; font-size: .78rem; min-width: 52rem; }
table.license th, table.license td {
  border-bottom: 1px solid var(--line); padding: .4rem .45rem; text-align: right; white-space: nowrap;
}
table.license th:first-child, table.license td:first-child { text-align: left; }
table.license thead th, table.license tr th { color: var(--muted); font-weight: 650; }
table.license .lk {
  display: inline-block; margin-right: .35rem; font-size: .58rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
table.license tr.total td, table.license tr.total th { color: var(--accent); font-weight: 700; }
.license-note { color: var(--muted); font-size: .82rem; margin: .25rem 0; }

.quote-card {
  border: 1px solid var(--line); padding: 1.1rem 1.2rem; background: #0d0f13;
  margin-bottom: 1.6rem;
}
.quote-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  align-items: flex-start; margin-bottom: .8rem;
}
.quote-card h3 {
  font-family: var(--font); font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: .15rem 0 .2rem; letter-spacing: -.03em;
}
.quote-sub { margin: 0; color: var(--accent); font-size: .85rem; }
.edition-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: .85rem; margin: 0 0 2.2rem;
}
.edition-card {
  border: 1px solid var(--line); padding: 1.2rem 1.25rem 1.3rem;
  background: #111318; min-height: 16rem;
}
.edition-card .ed-icon {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--accent); color: var(--accent); margin-bottom: .7rem;
}
.edition-card .ed-icon svg { width: 1.5rem; height: 1.5rem; }
.edition-card.soon { border-style: dashed; }
.edition-card.edition-shared { --accent: #7ec8c3; }
.edition-card.edition-private { --accent: #e8b86d; }
.edition-card.edition-source { --accent: #c084fc; }
.edition-card .price { font-family: var(--font); font-size: 1.25rem; margin: .25rem 0 .5rem; }
.edition-card .sum { color: #d5cdc0; font-size: .88rem; line-height: 1.45; }
.soon-mark {
  display: inline-block; margin-left: .35rem; font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid currentColor; padding: .08rem .3rem;
}

.quote-editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.quote-pill {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: .65rem .7rem; cursor: pointer; font-size: .78rem; font-weight: 650;
  text-align: left; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start;
}
.quote-pill .ed-icon { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.quote-pill .ed-icon svg { width: 1.6rem; height: 1.6rem; }
.quote-pill.on, .quote-pill:hover { color: var(--ink); border-color: var(--accent); }
.quote-pill.soon { border-style: dashed; }
.quote-slider {
  display: grid; grid-template-columns: 1fr 5rem; gap: .55rem .8rem;
  align-items: center; margin: .6rem 0 1rem;
}
.quote-slider span { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.quote-slider input[type="range"] { width: 100%; accent-color: var(--accent); }
.quote-slider input[type="number"] {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  padding: .3rem .4rem;
}
table.license.quote-lines { min-width: 0; }
.preview-leaves { color: var(--ink); font-size: .84rem; line-height: 1.45; }
.gw-link {
  display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem;
  margin-left: .35rem; border: 1px solid var(--accent); color: var(--accent);
  text-decoration: none; font-size: .7rem; vertical-align: middle;
}
.gw-link:hover { background: var(--accent); color: #08090b; }
.include { display: block; text-decoration: none; color: inherit; }
body.embed .top { position: static; }
body.embed .foot { display: none; }
body.embed main { padding-top: 1rem; }

@media (max-width: 720px) {
  .top { padding: .85rem 1rem; }
  .workspace-btn { padding: .38rem .7rem; font-size: .72rem; }
  .hero { min-height: 16rem; }
  .hero img { height: 16rem; }
  .flag-carousel, .flag-slide { min-height: 18rem; }
  .flag-slide img { height: 18rem; }
  .flag-copy { left: 1rem; right: 3.2rem; bottom: 1.8rem; }
  .page-lead, .factory-lead, .app-lead { padding: 1rem; }
}

.stack {
  display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.6rem;
}
.chip {
  border: 1px solid var(--line); padding: .3rem .65rem; font-size: .75rem; color: var(--muted);
}
.rel a { color: var(--accent); }

.doorway-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .75rem; margin: 0 0 2.2rem;
}
a.doorway {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); padding: 1.15rem 1.2rem; background: #0d0f13;
  min-height: 9.5rem;
}
a.doorway:hover { border-color: var(--accent); }
a.doorway h3 { font-family: var(--font); font-size: 1.45rem; margin: .15rem 0 .4rem; }
a.doorway p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
a.doorway .meta { margin-top: .7rem; color: var(--accent); font-size: .75rem; }
.home-strip { margin-bottom: .4rem; }
a.see-all {
  display: inline-block; margin: 0 0 1.8rem; color: var(--accent);
  text-decoration: none; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
}
a.see-all:hover { text-decoration: underline; }
.pager {
  display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.4rem 0 2rem;
}
.pager a {
  border: 1px solid var(--line); color: var(--muted); text-decoration: none;
  padding: .3rem .6rem; font-size: .78rem;
}
.pager a.on, .pager a:hover { color: var(--ink); border-color: var(--accent); }

.cat-rail {
  position: sticky;
  top: 4.6rem;
  z-index: 4;
  margin: 0 0 .85rem;
  padding: .35rem 0 .45rem;
  background: linear-gradient(180deg, rgba(8,9,11,.96) 70%, rgba(8,9,11,.55));
}
.cat-strip {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding-bottom: .2rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.cat-strip::-webkit-scrollbar { height: 6px; }
.cat-tile {
  flex: 0 0 9.4rem;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: #0d0f13;
  overflow: hidden;
  scroll-snap-align: start;
}
.cat-tile:hover, .cat-tile.on { border-color: var(--accent); }
.cat-tile.on { box-shadow: 0 0 0 1px var(--accent); }
.cat-tile img, .cat-tile-hero {
  display: block; width: 100%; height: 3.5rem;
  object-fit: cover; background: #16181d;
}
.cat-tile-all {
  background:
    linear-gradient(135deg, rgba(232,184,109,.28), transparent 55%),
    #16181d;
}
.cat-tile-body {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .35rem; padding: .4rem .5rem .5rem; min-height: 2.6rem;
}
.cat-tile-body strong {
  font-family: var(--font); font-size: .82rem; font-weight: 600;
  line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cat-tile-body em {
  font-style: normal; color: var(--accent); font-size: .7rem; letter-spacing: .04em;
}
.catalog-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem .8rem;
  margin: 0 0 1.3rem;
}
.catalog-search {
  flex: 1 1 18rem; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
  display: flex; flex-direction: column; gap: .3rem;
}
.catalog-search input {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  color: var(--ink); padding: .55rem .7rem; font: inherit;
  letter-spacing: 0; text-transform: none; font-weight: 500; font-size: .92rem;
}
.catalog-search input:focus { outline: none; border-color: var(--accent); }
.toolbar-note { margin: 0 0 .15rem; color: var(--muted); font-size: .75rem; }
.empty { color: var(--muted); font-size: .92rem; margin: .4rem 0 1.4rem; }

.foot {
  border-top: 1px solid var(--line); padding: 1rem 1.5rem 2rem;
  color: var(--muted); font-size: .78rem; text-align: center;
}
.empty { color: var(--muted); padding: 2rem 0; }

.app-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 0; }
.app-actions .ghost { padding: .4rem .85rem; text-decoration: none; display: inline-flex; align-items: center; }

body.catalog-magazine main {
  max-width: none;
  padding: 0 0 4rem;
}
.app-magazine-hero {
  position: relative;
  min-height: clamp(22rem, 54vw, 34rem);
  overflow: hidden;
  margin: 0 0 1.8rem;
}
.app-magazine-hero .photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 45%;
  transform: scale(1.02);
}
.app-magazine-hero .photo.empty {
  background:
    radial-gradient(circle at 70% 40%, rgba(18,181,168,.18), transparent 42%),
    #0b1218;
}
.app-magazine-hero .veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,14,20,.94) 0%, rgba(8,14,20,.55) 48%, rgba(8,14,20,.18) 100%),
    linear-gradient(180deg, rgba(8,14,20,.2) 30%, rgba(8,14,20,.88) 100%);
}
.app-magazine-hero .copy {
  position: relative; z-index: 1;
  max-width: 40rem;
  padding: clamp(2.2rem, 8vw, 5.2rem) clamp(1.2rem, 4vw, 3rem) 2.2rem;
}
.app-magazine-hero .eyebrow {
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-size: .72rem; font-weight: 750; margin: 0 0 .5rem;
}
.app-magazine-hero h2 {
  font-family: var(--font);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: 0 0 .45rem; letter-spacing: -.03em; font-weight: 600;
  line-height: 1.05;
}
.app-magazine-hero .tag {
  font-size: 1.15rem; color: #e7f3f1; margin: 0 0 .55rem; line-height: 1.35;
}
.app-magazine-hero p { color: #c5ddd9; margin: 0; max-width: 36rem; line-height: 1.45; }
.app-magazine-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.4rem 2rem;
}
.strat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: .75rem;
  margin: 0 0 2rem;
}
a.strat-tile {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid rgba(18,181,168,.18);
  background: #101820;
  padding: 1rem 1.05rem 1.1rem;
  min-height: 10.5rem;
  position: relative;
}
a.strat-tile:hover { border-color: var(--accent); }
.strat-mark {
  display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem;
  border: 1px solid rgba(18,181,168,.4);
  color: var(--accent);
  font-size: .95rem;
  margin: 0 0 .55rem;
}
a.strat-tile .lk {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 750;
}
a.strat-tile h4 {
  font-family: var(--font); font-size: 1.18rem;
  margin: .25rem 0 .4rem; font-weight: 600;
}
a.strat-tile p { margin: 0; color: #9fb8b4; font-size: .84rem; line-height: 1.4; }
a.strat-tile .meta { display: block; margin-top: .7rem; color: var(--accent); font-size: .72rem; }

@media (max-width: 720px) {
  .app-magazine-hero { min-height: 22rem; }
  .app-magazine-hero .copy { padding: 2rem 1.1rem 1.5rem; }
}

.api-toc {
  display: flex; flex-wrap: wrap; gap: .45rem .55rem;
  margin: 0 0 1.6rem; padding: .85rem 0 0;
  border-top: 1px solid var(--line);
}
.api-toc a {
  text-decoration: none; color: #ddd6c8;
  border: 1px solid var(--line); padding: .28rem .55rem;
  font-size: .78rem; letter-spacing: .02em;
}
.api-toc a:hover { border-color: var(--accent); color: var(--accent); }
.api-toc em {
  font-style: normal; color: var(--accent); margin-left: .35rem; font-size: .72rem;
}
.api-group { margin: 0 0 1.8rem; }
.api-group-h {
  font-family: var(--font); font-size: 1.35rem; font-weight: 600;
  margin: 1.4rem 0 .7rem; letter-spacing: -.02em;
}
.api-tool {
  border: 1px solid var(--line); background: #0d0f13;
  padding: 1rem 1.05rem 1.1rem; margin: 0 0 .7rem;
}
.api-tool-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.api-tool h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem; margin: .35rem 0 .45rem; font-weight: 650;
  color: #f3eee4;
}
.api-tool h3 code { font: inherit; color: inherit; }
.api-tool p { margin: 0 0 .55rem; color: #cfc7b8; font-size: .9rem; line-height: 1.45; }
.api-method { color: var(--muted) !important; font-size: .82rem !important; }
.api-returns { color: #ddd6c8 !important; }
.api-side {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); padding: .12rem .4rem; color: var(--muted);
}
.api-side-read { color: #8fceaa; border-color: rgba(143,206,170,.35); }
.api-side-write { color: var(--accent); border-color: rgba(232,184,109,.4); }
.api-side-admin { color: #d9886a; border-color: rgba(217,136,106,.45); }
table.api-args {
  width: 100%; border-collapse: collapse; font-size: .82rem;
  margin: .4rem 0 1rem;
}
table.api-args th, table.api-args td {
  border-bottom: 1px solid var(--line); padding: .4rem .35rem; text-align: left; vertical-align: top;
}
table.api-args th {
  color: var(--muted); font-weight: 650; font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase;
}
table.api-args code { color: var(--accent); font-size: .86em; }
.api-ex {
  border-left: 3px solid var(--accent);
  background: rgba(232,184,109,.06);
  padding: .7rem .85rem; margin: .55rem 0 0;
}
.api-ex h5 { margin: 0 0 .25rem; font-size: .88rem; color: #f3eee4; }
.api-ex p { margin: 0 0 .35rem; font-size: .82rem; color: #cfc7b8; }
pre.api-call {
  margin: .2rem 0 .45rem; padding: .65rem .7rem;
  background: #08090b; border: 1px solid var(--line);
  color: #e8b86d; font-size: .78rem; overflow-x: auto; white-space: pre-wrap;
}
.api-result { margin: 0 !important; }
