@font-face {
  font-family: "Archivo Black";
  src: url("/assets/fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f4f0e4;
  --paper-2: #fffaf0;
  --ink: #07110d;
  --green: #00c805;
  --deep-green: #0e5a2f;
  --cyan: #00cfe8;
  --rule: #bdb6a5;
  --muted: #645f54;
  --error: #b42318;
  --orange: #ff5a13;
  --blue: #0759d6;
  --shadow: 7px 7px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  line-height: 1.45;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.skip-link { position: absolute; left: 1rem; transform: translateY(-150%); background: var(--green); padding: .6rem; z-index: 20; }
.skip-link:focus { transform: translateY(.5rem); }

.site-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: .65rem clamp(1rem, 4vw, 4rem);
  border-bottom: 3px solid var(--ink);
  background: rgba(244,240,228,.96);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: "Archivo Black", Impact, sans-serif; font-size: 1.25rem; text-decoration: none; letter-spacing: .03em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 1.05rem; }
nav a, .text-link { font: 700 .78rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; text-decoration: none; border: 0; background: none; padding: .45rem 0; cursor: pointer; }
nav a:hover, nav a:focus-visible, .text-link:hover, .text-link:focus-visible { box-shadow: inset 0 -4px var(--green); outline: 0; }
.menu-button { display: none; border: 2px solid var(--ink); background: var(--paper); padding: .5rem .7rem; font-family: "IBM Plex Mono", monospace; font-weight: 700; }

main { min-height: 70vh; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.5rem, 6vw, 6rem) 0; }
.hero { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font: 700 .75rem/1.2 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: .65rem; height: .65rem; background: var(--cyan); border: 2px solid var(--ink); }
h1, h2 { margin: 0; font-family: "Archivo Black", Impact, sans-serif; text-transform: uppercase; letter-spacing: -.025em; line-height: .94; }
h1 { font-size: clamp(3.25rem, 8vw, 7rem); max-width: 9ch; }
h2 { font-size: clamp(2.5rem, 5.5vw, 5.2rem); }
h3 { margin: 0 0 .45rem; font-family: "IBM Plex Mono", monospace; font-size: .95rem; text-transform: uppercase; }
.lede { max-width: 58ch; margin: 1.5rem 0; font-size: clamp(1.08rem, 2vw, 1.45rem); }
.safety-line { display: inline-block; border-left: 8px solid var(--green); padding: .35rem .8rem; font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .75rem 1.05rem; border: 3px solid var(--ink); background: var(--green); color: var(--ink); font: 800 .82rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }
.button:hover, .button:focus-visible { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); outline: 0; }
.button.secondary { background: var(--paper-2); }
.button.small { min-height: 38px; padding: .55rem .75rem; font-size: .72rem; box-shadow: 3px 3px 0 var(--ink); }
.button[disabled] { background: var(--rule); cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink); }

.command { display: grid; grid-template-columns: 1fr auto; border: 3px solid var(--ink); background: var(--ink); color: var(--paper-2); box-shadow: 5px 5px 0 var(--green); max-width: 760px; }
.command code { min-width: 0; overflow-x: auto; white-space: nowrap; padding: .9rem 1rem; font: 700 .76rem/1.4 "IBM Plex Mono", monospace; }
.command button { border: 0; border-left: 3px solid var(--paper-2); background: var(--green); padding: .6rem .9rem; font: 800 .72rem/1 "IBM Plex Mono", monospace; cursor: pointer; }
.hero-art { position: relative; min-height: 580px; border: 3px solid var(--ink); background: var(--ink); overflow: hidden; box-shadow: var(--shadow); }
.hero-art img { width: 100%; height: 100%; min-height: 580px; object-fit: cover; }
.hero-art::after { content: "4663 / READ ONLY"; position: absolute; right: 1rem; bottom: 1rem; padding: .45rem .65rem; background: var(--paper); border: 2px solid var(--ink); font: 800 .68rem/1 "IBM Plex Mono", monospace; }

.section-head { display: grid; grid-template-columns: 1fr minmax(280px, .65fr); gap: 2rem; align-items: end; margin-bottom: 2.5rem; padding-bottom: 1.2rem; border-bottom: 4px solid var(--ink); }
.section-head p { margin: 0; max-width: 55ch; }
.route-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 2rem; align-items: start; }
.route-grid > *, .panel, .command { min-width: 0; }
.route-art { border: 3px solid var(--ink); background: var(--paper-2); box-shadow: 6px 6px 0 var(--ink); }
.route-art img { width: 100%; max-height: 680px; object-fit: contain; }
.panel { border: 3px solid var(--ink); background: var(--paper-2); padding: clamp(1rem, 3vw, 2rem); box-shadow: 6px 6px 0 var(--ink); }
.panel + .panel { margin-top: 1.4rem; }
.mono, code, pre, .metric, .source { font-family: "IBM Plex Mono", monospace; }
.micro { font-size: .76rem; color: var(--muted); }
.phase { display: inline-block; padding: .25rem .45rem; border: 2px solid var(--ink); background: var(--paper); font: 800 .67rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }

.catalog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
label { display: grid; gap: .35rem; font: 700 .75rem/1.2 "IBM Plex Mono", monospace; text-transform: uppercase; }
select, input, textarea { width: 100%; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); padding: .7rem; }
textarea { min-height: 120px; resize: vertical; font-family: "IBM Plex Mono", monospace; text-transform: none; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }
.catalog { display: grid; gap: .9rem; }
.skill-row { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(105px, .55fr)) auto; align-items: center; gap: .8rem; padding: 1rem; border: 3px solid var(--ink); background: var(--paper-2); box-shadow: 4px 4px 0 var(--ink); }
.skill-row:hover { border-left: 10px solid var(--green); }
.skill-name { font-family: "IBM Plex Mono", monospace; font-weight: 800; }
.metric { font-size: .74rem; }
.metric span { display: block; color: var(--muted); font-family: "IBM Plex Sans", sans-serif; }
.shelf-art { margin: 2.2rem 0; border: 3px solid var(--ink); max-height: 500px; width: 100%; object-fit: cover; object-position: center; }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tabs button { border: 2px solid var(--ink); background: var(--paper); padding: .55rem .75rem; font: 800 .72rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--green); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field-grid .full { grid-column: 1 / -1; }
.result { margin-top: 1rem; border: 2px solid var(--ink); background: #07110d; color: #f4f0e4; padding: 1rem; overflow: auto; max-height: 430px; white-space: pre-wrap; word-break: break-word; font: .74rem/1.55 "IBM Plex Mono", monospace; }
.result:empty { display: none; }
.source { margin-top: .8rem; padding-top: .8rem; border-top: 2px dashed var(--rule); font-size: .7rem; overflow-wrap: anywhere; }
.status-strip { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1rem 0; }
.status-strip span { border: 2px solid var(--ink); background: var(--paper); padding: .35rem .5rem; font: 700 .68rem/1 "IBM Plex Mono", monospace; }

.manifest { overflow: auto; padding: 1rem; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: .72rem/1.55 "IBM Plex Mono", monospace; }
.rule-list { display: grid; gap: .8rem; padding: 0; list-style: none; counter-reset: rules; }
.rule-list li { counter-increment: rules; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 2px solid var(--rule); }
.rule-list li::before { content: "0" counter(rules); display: grid; place-items: center; height: 3rem; background: var(--orange); border: 2px solid var(--ink); font: 800 .85rem/1 "IBM Plex Mono", monospace; }
.error-list { color: var(--error); font-family: "IBM Plex Mono", monospace; font-size: .78rem; }
.success { border-left: 8px solid var(--green); padding-left: .8rem; }
.ledger { width: 100%; border-collapse: collapse; font-family: "IBM Plex Mono", monospace; font-size: .74rem; }
.ledger th, .ledger td { text-align: left; padding: .8rem .45rem; border-bottom: 2px solid var(--rule); vertical-align: top; }
.ledger th { text-transform: uppercase; }
.ca-ticket { position: relative; margin-top: 1.5rem; padding: 1.4rem 1.8rem; border: 3px solid var(--ink); background: var(--paper-2); clip-path: polygon(0 18%, 5% 0, 92% 0, 94% 8%, 96% 0, 98% 8%, 100% 0, 100% 100%, 5% 100%, 0 82%); }
.ca-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.join-form { display: grid; gap: 1rem; }

.site-footer { border-top: 4px solid var(--ink); background: var(--ink); color: var(--paper); padding: 2rem clamp(1rem, 4vw, 4rem); font: .73rem/1.6 "IBM Plex Mono", monospace; }
.site-footer p { max-width: 1050px; margin: 0 auto .5rem; }
.toast { position: fixed; z-index: 30; right: 1rem; bottom: 1rem; transform: translateY(140%); border: 3px solid var(--ink); background: var(--green); padding: .75rem 1rem; box-shadow: 4px 4px 0 var(--ink); font: 800 .75rem/1 "IBM Plex Mono", monospace; transition: transform .16s ease; }
.toast.show { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 1rem; border-bottom: 3px solid var(--ink); background: var(--paper); flex-wrap: wrap; }
  nav.open { display: flex; }
  .hero, .route-grid, .section-head { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; min-height: auto; }
  .hero-art { min-height: min(58vh, 500px); }
  .hero-art img { min-height: min(58vh, 500px); }
  .skill-row { grid-template-columns: 1fr 1fr; }
  .skill-row .skill-name { grid-column: 1 / -1; }
  .skill-row .button { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 1.25rem, 1180px); padding: 2rem 0; }
  h1 { font-size: clamp(3rem, 17vw, 4.7rem); }
  h2 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .hero { gap: 2rem; }
  .hero-art { min-height: 42vh; }
  .hero-art img { min-height: 42vh; }
  .command { grid-template-columns: minmax(0, 1fr) auto; }
  .skill-row { grid-template-columns: 1fr; }
  .skill-row .skill-name, .skill-row .button { grid-column: auto; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .full { grid-column: auto; }
  .ledger { display: block; overflow-x: auto; }
}

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

/* Arrival-board art direction: bright transit lounge, not paper-technical. */
:root {
  --paper: #cbd5ff;
  --paper-2: #fff8ec;
  --ink: #2b1438;
  --green: #ff5d4a;
  --deep-green: #5c3671;
  --cyan: #72e0c4;
  --rule: #8b83ac;
  --muted: #625c7a;
  --error: #c52f4e;
  --orange: #ffb547;
  --blue: #2447d9;
  --shadow: 0 24px 70px rgba(43, 20, 56, .16);
}

html { background: #cbd5ff; }
body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 181, 71, .88) 0 7.5rem, transparent 7.7rem),
    radial-gradient(circle at 4% 48%, rgba(114, 224, 196, .42) 0 10rem, transparent 10.2rem),
    linear-gradient(145deg, #cbd5ff 0%, #e1d8ff 53%, #ffd9cb 100%);
  background-attachment: fixed;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 20, 56, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 20, 56, .2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.site-nav {
  top: 0;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: .7rem clamp(1.25rem, 4vw, 5rem);
  border: 0;
  border-bottom: 1px solid rgba(43, 20, 56, .2);
  border-radius: 0;
  background: rgba(255, 248, 236, .94);
  box-shadow: 0 8px 30px rgba(43, 20, 56, .08);
  backdrop-filter: blur(18px);
}
.brand { gap: .8rem; color: var(--ink); font-family: "IBM Plex Sans", Arial, sans-serif; text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 5px 8px rgba(43, 20, 56, .12)); }
.brand-lockup { display: grid; gap: .1rem; }
.brand-lockup strong { font-size: 1.08rem; line-height: 1; letter-spacing: -.035em; }
.brand-lockup small { color: var(--muted); font: 700 .57rem/1.15 "IBM Plex Mono", monospace; letter-spacing: .035em; text-transform: uppercase; }
nav { gap: .12rem; padding: .28rem; border-radius: 16px; background: #ebe7ff; }
nav a, .text-link { min-height: 38px; display: inline-flex; align-items: center; padding: .68rem .78rem; border-radius: 11px; color: var(--muted); font-size: .7rem; }
nav a:hover, nav a:focus-visible, nav a[aria-current], .text-link:hover, .text-link:focus-visible { color: var(--ink); background: #fff8ec; box-shadow: 0 4px 12px rgba(43, 20, 56, .1); }
nav .nav-join { margin-left: .2rem; background: var(--green); color: var(--ink); }
nav .text-link { width: 38px; justify-content: center; padding-inline: 0; }
.menu-button { border: 0; border-radius: 999px; background: var(--ink); color: var(--paper-2); padding: .7rem 1rem; }

.shell { width: 100%; margin: 0; padding: clamp(4.5rem, 7vw, 7.5rem) clamp(1.5rem, 4vw, 5rem); }
.hero { min-height: calc(100vh - 76px); grid-template-columns: minmax(360px, .72fr) minmax(540px, 1.28fr); gap: clamp(2.2rem, 4vw, 5rem); }
.eyebrow { margin-bottom: 1.35rem; padding: .55rem .8rem; border: 1px solid rgba(43, 20, 56, .18); border-radius: 999px; background: rgba(255, 248, 236, .58); letter-spacing: .06em; }
.eyebrow::before { width: .55rem; height: .55rem; border: 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(114, 224, 196, .28); }
h1, h2 { font-family: "IBM Plex Sans", Arial, sans-serif; font-weight: 900; text-transform: none; letter-spacing: -.065em; }
h1 { max-width: 10ch; font-size: clamp(4rem, 7vw, 6.8rem); line-height: .85; }
h2 { font-size: clamp(3rem, 6vw, 5.8rem); line-height: .88; }
h3 { text-transform: none; letter-spacing: -.025em; }
.lede { max-width: 47ch; color: #4d4669; font-size: clamp(1.08rem, 1.8vw, 1.36rem); }
.safety-line { border: 0; border-radius: 999px; background: var(--cyan); padding: .65rem 1rem; }

.button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 9px 24px rgba(197, 47, 78, .2);
  text-transform: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #ff765f; box-shadow: 0 13px 30px rgba(197, 47, 78, .24); }
.button.secondary { background: rgba(255, 248, 236, .72); box-shadow: inset 0 0 0 1px rgba(43, 20, 56, .26); }
.button.small { border-radius: 999px; box-shadow: none; }
.button[disabled] { background: #aaa4bd; box-shadow: none; }

.command { border: 0; border-radius: 16px; background: var(--ink); box-shadow: 0 14px 38px rgba(43, 20, 56, .2); overflow: hidden; }
.command code { color: #fff8ec; }
.command button { border: 0; background: var(--cyan); color: var(--ink); padding-inline: 1.1rem; }

.hero-art { min-height: 0; aspect-ratio: 3 / 2; margin: 0; border: 7px solid rgba(255, 248, 236, .8); border-radius: 52px 20px 52px 20px; background: #fff8ec; box-shadow: var(--shadow); overflow: hidden; transform: none; }
.hero-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.hero-art::after { right: 1.25rem; bottom: 1.25rem; border: 0; border-radius: 999px; background: var(--orange); color: var(--ink); }

.section-head { align-items: center; margin-bottom: 3rem; padding: 0; border: 0; }
.section-head > p { padding: 1rem 1.15rem; border-left: 4px solid var(--green); color: #514a6b; }
.route-grid { gap: clamp(1.4rem, 4vw, 3.5rem); }
.route-art { margin: 0; border: 0; border-radius: 44px; background: #fff5df; box-shadow: var(--shadow); overflow: hidden; transform: rotate(-.55deg); }
.panel { border: 1px solid rgba(43, 20, 56, .18); border-radius: 28px; background: rgba(255, 248, 236, .78); box-shadow: 0 18px 48px rgba(43, 20, 56, .1); backdrop-filter: blur(14px); }
.panel + .panel { margin-top: 1rem; }
.phase { border: 0; border-radius: 999px; background: var(--orange); }

.shelf-art { height: auto; max-height: none; margin: 2.8rem 0; border: 8px solid rgba(255, 248, 236, .72); border-radius: 52px; object-fit: contain; box-shadow: var(--shadow); }
.shelf-motion { position: relative; margin: 2.8rem 0; }
.shelf-motion .shelf-art { width: 100%; margin: 0; }
.shelf-art-video { position: absolute; inset: 0; height: 100%; }
.catalog-tools { align-items: center; }
select, input, textarea { border: 1px solid rgba(43, 20, 56, .28); border-radius: 14px; background: rgba(255, 248, 236, .76); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(36, 71, 217, .35); border-color: var(--blue); }
.skill-row { border: 1px solid rgba(43, 20, 56, .15); border-left: 9px solid var(--orange); border-radius: 22px; background: rgba(255, 248, 236, .76); box-shadow: 0 12px 34px rgba(43, 20, 56, .08); transition: transform .16s ease, background .16s ease; }
.skill-row:nth-child(2n) { border-left-color: var(--cyan); }
.skill-row:hover { border-left-width: 9px; background: #fff8ec; transform: translateX(4px); }
.skill-name { color: var(--blue); }
.metric span, .micro { color: var(--muted); }

.tabs button { border: 0; border-radius: 999px; background: rgba(255, 248, 236, .66); }
.tabs button[aria-selected="true"] { background: var(--orange); }
.result, .manifest { border: 0; border-radius: 18px; background: var(--ink); }
.source { border-top-color: rgba(43, 20, 56, .24); }
.status-strip span { border: 0; border-radius: 999px; background: #e6ddff; }
.rule-list li { border-bottom-color: rgba(43, 20, 56, .2); }
.rule-list li::before { border: 0; border-radius: 18px; background: var(--orange); }
.ledger th, .ledger td { border-bottom-color: rgba(43, 20, 56, .18); }
.ca-ticket { border: 0; border-radius: 28px; background: rgba(255, 248, 236, .82); clip-path: none; box-shadow: var(--shadow); }
.toast { border: 0; border-radius: 999px; background: var(--cyan); box-shadow: var(--shadow); }

/* Publish manifest workbench */
.publish-page { padding-top: clamp(3.5rem, 6vw, 6rem); }
.publish-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 1.25rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(43, 20, 56, .18);
  border-radius: 22px;
  background: rgba(43, 20, 56, .14);
  list-style: none;
  box-shadow: 0 14px 40px rgba(43, 20, 56, .08);
}
.publish-flow li { display: flex; align-items: center; gap: .85rem; min-height: 84px; padding: 1rem 1.2rem; background: rgba(255, 248, 236, .72); }
.publish-flow li > span { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: 50%; background: #e6ddff; color: var(--muted); font: 800 .68rem/1 "IBM Plex Mono", monospace; }
.publish-flow strong, .publish-flow small { display: block; }
.publish-flow strong { font-size: .94rem; }
.publish-flow small { margin-top: .18rem; color: var(--muted); font-size: .74rem; }
.publish-flow li.is-active { background: #fff8ec; }
.publish-flow li.is-active > span { background: var(--cyan); color: var(--ink); }

.publish-workbench { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr); gap: clamp(1rem, 2vw, 2rem); align-items: stretch; }
.publish-editor, .publish-aside { display: grid; gap: 1rem; min-width: 0; }
.publish-aside { grid-template-rows: auto auto minmax(280px, 1fr) auto; }
.publish-form { padding: clamp(1.25rem, 2.6vw, 2.4rem); }
.workbench-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.workbench-title h3 { margin: .18rem 0 0; font: 850 clamp(1.35rem, 2vw, 2rem)/1 "IBM Plex Sans", sans-serif; letter-spacing: -.045em; }
.step-kicker { margin: 0; color: var(--blue); font: 800 .66rem/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.draft-badge, .check-count { flex: none; padding: .48rem .65rem; border-radius: 999px; background: #e6ddff; color: var(--ink); font: 800 .62rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.form-divider { display: flex; align-items: center; gap: .8rem; margin: 2rem 0 1rem; color: var(--blue); font: 800 .66rem/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.form-divider::after { content: ""; height: 1px; flex: 1; background: rgba(43, 20, 56, .18); }
.publish-identity { grid-template-columns: .9fr .42fr; }
.publish-endpoint { grid-column: 1 / -1; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.cap-toggle, .cap-locked { min-height: 92px; padding: 1rem; border: 1px solid rgba(43, 20, 56, .17); border-radius: 18px; background: #fff8ec; }
.cap-toggle { display: flex; grid-template-columns: none; align-items: flex-start; gap: .75rem; cursor: pointer; text-transform: none; }
.cap-toggle input { width: 1.15rem; height: 1.15rem; flex: none; margin: .12rem 0 0; accent-color: var(--blue); }
.cap-toggle span, .cap-toggle strong, .cap-toggle small, .cap-locked strong, .cap-locked small { display: block; }
.cap-toggle strong, .cap-locked strong { color: var(--ink); font: 800 .82rem/1.2 "IBM Plex Sans", sans-serif; }
.cap-toggle small, .cap-locked small { margin-top: .35rem; color: var(--muted); font: .69rem/1.35 "IBM Plex Sans", sans-serif; }
.cap-toggle:has(input:checked) { border-color: rgba(36, 71, 217, .55); background: #eef0ff; box-shadow: inset 0 0 0 1px rgba(36, 71, 217, .18); }
.cap-locked { display: flex; gap: .75rem; color: var(--muted); background: rgba(43, 20, 56, .05); }
.cap-locked > span { display: grid; width: 1.25rem; height: 1.25rem; flex: none; place-items: center; border-radius: 50%; background: var(--green); color: #fff8ec; font: 900 .75rem/1 sans-serif; }
.limit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }

.publish-json { padding: 0; overflow: hidden; }
.publish-json summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; background: rgba(255, 248, 236, .8); font: 800 .74rem/1 "IBM Plex Mono", monospace; list-style: none; }
.publish-json summary::-webkit-details-marker { display: none; }
.publish-json summary::before { content: "+"; display: grid; width: 1.6rem; height: 1.6rem; place-items: center; border-radius: 50%; background: var(--cyan); }
.publish-json[open] summary::before { content: "−"; }
.publish-json summary span { margin-right: auto; }
.publish-json summary small { color: var(--muted); font-size: .63rem; }
.publish-json textarea { min-height: 360px; border: 0; border-block: 1px solid rgba(43, 20, 56, .14); border-radius: 0; background: var(--ink); color: #fff8ec; font: .72rem/1.55 "IBM Plex Mono", monospace; }
.publish-actions { display: flex; flex-wrap: wrap; gap: .7rem; padding: 1rem 1.25rem .35rem; }
.manifest-outcome { padding: .65rem 1.25rem 1.2rem; }
.outcome-idle { margin: 0; color: var(--muted); font-size: .78rem; }
.inspection-result { padding: 1rem; border-radius: 15px; }
.inspection-result strong, .inspection-result p, .inspection-result code { display: block; }
.inspection-result p { margin: .25rem 0; font-size: .76rem; }
.inspection-result code { margin-top: .65rem; overflow-wrap: anywhere; font-size: .64rem; }
.inspection-result.is-success { background: rgba(114, 224, 196, .28); }
.inspection-result.is-error { background: rgba(255, 93, 74, .14); }

.publish-ticket { position: relative; padding: 1.35rem; overflow: hidden; border: 2px solid var(--ink); border-radius: 28px 12px 28px 12px; background: #fff8ec; box-shadow: 0 20px 55px rgba(43, 20, 56, .15); }
.publish-ticket::before, .publish-ticket::after { content: ""; position: absolute; top: 48%; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%; background: #d3d8ff; }
.publish-ticket::before { left: -13px; }
.publish-ticket::after { right: -13px; }
.publish-ticket > header, .publish-ticket > footer { display: flex; justify-content: space-between; gap: 1rem; font: 800 .61rem/1 "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.publish-ticket > header { padding-bottom: 1rem; border-bottom: 1px dashed rgba(43, 20, 56, .32); }
.publish-ticket > header > span { color: var(--blue); }
.publish-ticket[data-state="valid"] { border-color: #1d9078; box-shadow: 0 20px 55px rgba(29, 144, 120, .18); }
.publish-ticket[data-state="valid"] > header > span { color: #08755f; }
.publish-ticket[data-state="invalid"] { border-color: var(--green); }
.publish-ticket[data-state="invalid"] > header > span { color: var(--error); }
.ticket-mark { display: flex; align-items: end; gap: .3rem; width: 62px; height: 48px; margin: 1.3rem 0 1rem; padding: .65rem; border-radius: 15px; background: var(--ink); }
.ticket-mark i { display: block; width: 11px; border-radius: 999px; background: var(--cyan); }
.ticket-mark i:nth-child(1) { height: 18px; }
.ticket-mark i:nth-child(2) { height: 29px; background: var(--green); }
.ticket-mark i:nth-child(3) { height: 23px; background: var(--orange); }
.ticket-label { margin: 0 0 .35rem; color: var(--muted); font: 800 .6rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.publish-ticket h3 { margin: 0; color: var(--blue); font: 850 clamp(1.35rem, 2.3vw, 2.1rem)/1.05 "IBM Plex Sans", sans-serif; letter-spacing: -.045em; overflow-wrap: anywhere; text-transform: none; }
.publish-ticket h3 + p { min-height: 3.7em; margin: .75rem 0 1.15rem; color: var(--muted); font-size: .84rem; }
.ticket-rails { display: flex; flex-wrap: wrap; gap: .4rem; }
.ticket-rails span { padding: .45rem .55rem; border-radius: 999px; background: rgba(114, 224, 196, .38); font: 800 .6rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.ticket-rails .is-off { background: #ebe7f2; color: var(--muted); }
.ticket-rails .is-locked { background: rgba(255, 93, 74, .16); color: var(--error); }
.publish-ticket dl { display: grid; gap: .75rem; margin: 1.25rem 0; padding: 1rem 0; border-block: 1px dashed rgba(43, 20, 56, .28); }
.publish-ticket dl div { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; min-width: 0; }
.publish-ticket dt { color: var(--muted); font: 800 .58rem/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; }
.publish-ticket dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font: 700 .69rem/1.4 "IBM Plex Mono", monospace; }
.publish-ticket > footer { color: var(--muted); }

.boundary-card { padding: 1.25rem; }
.boundary-card .workbench-title { margin-bottom: .9rem; }
.boundary-card ul { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.boundary-card li { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid rgba(43, 20, 56, .12); font-size: .78rem; }
.boundary-card li:last-child { border-bottom: 0; }
.boundary-card li i { display: block; width: .9rem; height: .9rem; flex: none; border: 1px solid rgba(43, 20, 56, .3); border-radius: 50%; background: #ebe7f2; }
.boundary-card li.is-pass i { border-color: #1d9078; background: var(--cyan); box-shadow: inset 0 0 0 3px #fff8ec; }
.boundary-card li.is-fail i { border-color: var(--error); background: var(--green); box-shadow: inset 0 0 0 3px #fff8ec; }
.publish-validator-art { height: 100%; margin: 0; overflow: hidden; border: 5px solid rgba(255, 248, 236, .8); border-radius: 26px; background: #fff8ec; box-shadow: 0 14px 38px rgba(43, 20, 56, .1); }
.publish-validator-art img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.publish-submit { width: 100%; }

/* Shared product dashboards */
.product-page { padding-top: clamp(3.5rem, 6vw, 6rem); }
.status-banner { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid rgba(43, 20, 56, .18); border-radius: 18px; background: rgba(255, 248, 236, .76); box-shadow: 0 10px 28px rgba(43, 20, 56, .07); }
.status-banner p { margin: 0 auto 0 0; color: var(--muted); font-size: .8rem; }
.status-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(114, 224, 196, .25); }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 1rem; overflow: hidden; border: 1px solid rgba(43, 20, 56, .17); border-radius: 22px; background: rgba(43, 20, 56, .14); }
.metric-strip article { min-width: 0; padding: 1.25rem; background: rgba(255, 248, 236, .78); }
.metric-strip span, .metric-strip strong, .metric-strip small { display: block; }
.metric-strip span { color: var(--muted); font: 800 .62rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.metric-strip strong { margin: .55rem 0 .35rem; font-size: clamp(1.25rem, 2vw, 2rem); line-height: 1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.metric-strip small { color: var(--muted); font-size: .68rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: clamp(1rem, 2vw, 2rem); align-items: stretch; }
.dashboard-aside { display: grid; gap: 1rem; min-width: 0; align-content: start; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h3 { margin: .18rem 0 0; font: 850 clamp(1.3rem, 2vw, 2rem)/1 "IBM Plex Sans", sans-serif; letter-spacing: -.045em; text-transform: none; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-card { padding: clamp(1rem, 2vw, 1.75rem); }
.earnings-ledger th { color: var(--muted); font-size: .62rem; }
.earnings-ledger td { min-width: 130px; }
.earnings-ledger td:first-child { display: flex; align-items: center; gap: .65rem; min-width: 260px; }
.earnings-ledger td strong, .earnings-ledger td small { display: block; }
.earnings-ledger td strong { color: var(--blue); }
.earnings-ledger td small { margin-top: .2rem; color: var(--muted); font-family: "IBM Plex Sans", sans-serif; }
.row-index { display: grid; width: 2rem; height: 2rem; flex: none; place-items: center; border-radius: 10px; background: #e6ddff; color: var(--ink); font: 800 .61rem/1 "IBM Plex Mono", monospace; }
.state-chip { display: inline-flex; align-items: center; padding: .45rem .58rem; border-radius: 999px; background: rgba(255, 181, 71, .32); color: var(--ink); font: 800 .58rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.state-chip.safe { background: rgba(114, 224, 196, .34); }
.vertical-flow { display: grid; margin: 0; padding: 0; list-style: none; }
.vertical-flow li { position: relative; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; padding: .45rem 0 1.25rem; }
.vertical-flow li:not(:last-child)::after { content: ""; position: absolute; top: 2.25rem; bottom: .15rem; left: .95rem; width: 2px; background: #ddd5eb; }
.vertical-flow li > span { z-index: 1; display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #e6ddff; font: 800 .64rem/1 "IBM Plex Mono", monospace; }
.vertical-flow li.is-live > span { background: var(--cyan); }
.vertical-flow strong, .vertical-flow small { display: block; }
.vertical-flow small { margin-top: .25rem; color: var(--muted); font-size: .7rem; }
.payout-card, .verify-card { padding: 1.25rem; }
.dashboard-art { margin: 0; overflow: hidden; border: 5px solid rgba(255, 248, 236, .8); border-radius: 28px; background: #fff8ec; box-shadow: 0 16px 46px rgba(43, 20, 56, .1); }
.dashboard-art img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.disclosure-grid, .client-details, .join-expectations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.disclosure-grid article, .client-details article, .join-expectations article { padding: 1.25rem; border: 1px solid rgba(43, 20, 56, .16); border-radius: 20px; background: rgba(255, 248, 236, .7); }
.disclosure-grid article > span, .join-expectations article > span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--orange); font: 800 .6rem/1 "IBM Plex Mono", monospace; }
.disclosure-grid h3, .client-details h3, .join-expectations h3 { margin: .85rem 0 .35rem; font: 850 1.05rem/1.1 "IBM Plex Sans", sans-serif; text-transform: none; }
.disclosure-grid p, .client-details p, .join-expectations p { margin: 0; color: var(--muted); font-size: .78rem; }

/* Safety */
.safety-overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(1rem, 2vw, 2rem); margin-bottom: 1rem; align-items: stretch; }
.permission-board { padding: clamp(1.25rem, 2.5vw, 2rem); }
.open-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.open-lanes article { padding: 1.25rem; border: 1px solid rgba(36, 71, 217, .24); border-radius: 20px; background: #eef0ff; }
.open-lanes article:nth-child(2) { border-color: rgba(29, 144, 120, .32); background: rgba(114, 224, 196, .18); }
.open-lanes span, .open-lanes strong, .open-lanes small { display: block; }
.open-lanes span { color: var(--blue); font: 800 .62rem/1 "IBM Plex Mono", monospace; }
.open-lanes strong { margin: 1rem 0 .35rem; font-size: 1.05rem; }
.open-lanes p { min-height: 2.8em; margin: 0 0 1rem; color: var(--muted); font-size: .78rem; }
.open-lanes small { padding-top: .7rem; border-top: 1px dashed rgba(43, 20, 56, .22); color: var(--muted); }
.stop-lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin-top: .8rem; }
.stop-lanes article { display: flex; gap: .55rem; padding: .85rem; border-radius: 16px; background: rgba(255, 93, 74, .1); }
.stop-lanes i { display: grid; width: 1.25rem; height: 1.25rem; flex: none; place-items: center; border-radius: 50%; background: var(--green); color: #fff8ec; font: 900 .7rem/1 sans-serif; }
.stop-lanes strong, .stop-lanes small { display: block; }
.stop-lanes strong { font-size: .76rem; }
.stop-lanes small { margin-top: .18rem; color: var(--muted); font-size: .62rem; }
.safety-art img { max-height: none; }
.matrix-card { margin-bottom: 1rem; padding: clamp(1rem, 2vw, 1.75rem); }
.permission-table { width: 100%; border-collapse: collapse; }
.permission-table th, .permission-table td { min-width: 150px; padding: .9rem; border-bottom: 1px solid rgba(43, 20, 56, .14); text-align: left; font-size: .75rem; }
.permission-table th { color: var(--muted); font: 800 .62rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.permission-table td strong, .permission-table td small { display: block; }
.permission-table td small { color: var(--muted); }
.permission-table .yes, .permission-table .no { display: inline-flex; padding: .4rem .55rem; border-radius: 999px; font: 800 .6rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.permission-table .yes { background: rgba(114, 224, 196, .32); }
.permission-table .no { background: rgba(255, 93, 74, .15); color: var(--error); }
.response-strip { display: grid; grid-template-columns: .6fr 1.4fr; gap: 2rem; align-items: center; padding: 1.5rem; border-radius: 24px; background: var(--ink); color: #fff8ec; }
.response-strip h3 { margin: .4rem 0 0; font: 850 clamp(1.4rem, 2vw, 2rem)/1 "IBM Plex Sans", sans-serif; text-transform: none; }
.response-strip ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.response-strip li { display: flex; gap: .55rem; color: #ded5e8; font-size: .72rem; }
.response-strip li span { color: var(--cyan); font: 800 .62rem/1.4 "IBM Plex Mono", monospace; }

/* CLI */
.install-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 1rem; padding: 0; overflow: hidden; border: 1px solid rgba(43, 20, 56, .16); border-radius: 20px; background: rgba(43, 20, 56, .12); list-style: none; }
.install-flow li { display: grid; grid-template-columns: 2rem 1fr; padding: 1rem; background: rgba(255, 248, 236, .72); }
.install-flow li > span { grid-row: span 2; display: grid; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: 50%; background: #e6ddff; font: 800 .6rem/1 "IBM Plex Mono", monospace; }
.install-flow li.is-active > span { background: var(--cyan); }
.install-flow strong, .install-flow small { display: block; }
.install-flow strong { font-size: .82rem; }
.install-flow small { color: var(--muted); font-size: .65rem; }
.installer-card { padding: clamp(1.25rem, 2.5vw, 2rem); }
.client-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.client-tabs button { display: grid; grid-template-columns: 1.7rem 1fr; padding: .85rem; border: 1px solid rgba(43, 20, 56, .18); border-radius: 16px; background: #fff8ec; color: var(--ink); text-align: left; cursor: pointer; }
.client-tabs button > span { grid-row: span 2; color: var(--muted); font: 800 .6rem/1.4 "IBM Plex Mono", monospace; }
.client-tabs button strong, .client-tabs button small { display: block; }
.client-tabs button strong { font-size: .78rem; }
.client-tabs button small { color: var(--muted); font-size: .62rem; }
.client-tabs button.is-active { border-color: var(--blue); background: #eef0ff; box-shadow: inset 0 0 0 1px rgba(36, 71, 217, .18); }
.command-stage { margin-top: 1rem; overflow: hidden; border-radius: 18px; background: var(--ink); }
.command-stage-head { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(255, 248, 236, .18); color: #fff8ec; font: 800 .62rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.command-stage-head small { color: #bfb5cd; }
.command-stage .command { max-width: none; border-radius: 0; box-shadow: none; }
.verify-card ul { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.verify-card li { display: flex; align-items: center; gap: .65rem; padding: .7rem 0; border-bottom: 1px solid rgba(43, 20, 56, .12); font-size: .76rem; }
.verify-card li:last-child { border-bottom: 0; }
.verify-card li i { width: .85rem; height: .85rem; border-radius: 50%; background: var(--cyan); box-shadow: inset 0 0 0 3px #fff8ec, 0 0 0 1px #1d9078; }
.client-details article > span { color: var(--blue); font: 800 .62rem/1 "IBM Plex Mono", monospace; }
.client-details code { display: block; margin-top: 1rem; padding: .65rem; overflow-wrap: anywhere; border-radius: 10px; background: var(--ink); color: #fff8ec; font-size: .65rem; }

/* Rules */
.rules-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); gap: clamp(1rem, 2vw, 2rem); align-items: stretch; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rule-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; min-height: 310px; padding: 1.4rem; border: 1px solid rgba(43, 20, 56, .16); border-radius: 26px; background: #fff8ec; }
.rule-card > span { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 14px; background: var(--blue); color: #fff8ec; font: 800 .7rem/1 "IBM Plex Mono", monospace; }
.rule-card h3 { margin: .65rem 0; font: 850 clamp(1.35rem, 2.2vw, 2.15rem)/.98 "IBM Plex Sans", sans-serif; letter-spacing: -.05em; text-transform: none; }
.rule-card p { color: var(--muted); font-size: .8rem; }
.rule-card dl { display: grid; gap: .45rem; margin: 1.2rem 0 0; padding-top: .9rem; border-top: 1px dashed rgba(43, 20, 56, .28); }
.rule-card dl div { display: grid; grid-template-columns: 52px 1fr; gap: .5rem; }
.rule-card dt { color: var(--muted); font: 800 .58rem/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; }
.rule-card dd { margin: 0; font-size: .7rem; }
.rule-mint > span { background: #1d9078; }
.rule-amber > span { background: var(--orange); color: var(--ink); }
.rule-coral > span { background: var(--green); }
.rules-aside { display: grid; grid-template-rows: minmax(320px, 1fr) auto; gap: 1rem; }
.rules-art img { max-height: none; }
.release-gate { padding: 1.25rem; }
.release-gate p { color: var(--muted); font-size: .76rem; }
.gate-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.gate-line span { height: .55rem; border-radius: 999px; background: var(--cyan); }
.gate-line span:nth-child(2) { background: var(--blue); }
.gate-line span:nth-child(3) { background: var(--orange); }
.gate-line span:nth-child(4) { background: var(--green); }
.token-ticket { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; margin-top: 1rem; }
.token-ticket .micro { grid-column: 1 / -1; margin: 0; }

/* Join */
.join-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr); gap: clamp(1rem, 2vw, 2rem); align-items: stretch; }
.join-card { align-content: start; padding: clamp(1.25rem, 2.5vw, 2rem); }
.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.interest-grid label { display: block; text-transform: none; cursor: pointer; }
.interest-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.interest-grid label > span { display: block; min-height: 130px; padding: 1rem; border: 1px solid rgba(43, 20, 56, .17); border-radius: 18px; background: #fff8ec; }
.interest-grid i, .interest-grid strong, .interest-grid small { display: block; }
.interest-grid i { color: var(--blue); font: 800 .62rem/1 "IBM Plex Mono", monospace; font-style: normal; }
.interest-grid strong { margin: 1.1rem 0 .35rem; font: 800 .88rem/1.1 "IBM Plex Sans", sans-serif; }
.interest-grid small { color: var(--muted); font: .68rem/1.35 "IBM Plex Sans", sans-serif; }
.interest-grid input:checked + span { border-color: var(--blue); background: #eef0ff; box-shadow: inset 0 0 0 1px rgba(36, 71, 217, .2); }
.consent-line { display: flex; grid-template-columns: none; align-items: flex-start; gap: .7rem; margin-top: 1rem; padding: 1rem; border-radius: 16px; background: rgba(114, 224, 196, .16); color: var(--muted); font: .73rem/1.4 "IBM Plex Sans", sans-serif; text-transform: none; }
.consent-line input { width: 1rem; height: 1rem; flex: none; margin-top: .15rem; accent-color: var(--blue); }
.join-submit { width: 100%; margin-top: .25rem; }
.join-aside { display: grid; grid-template-rows: auto minmax(260px, 1fr); gap: 1rem; }
.notification-ticket { position: relative; padding: 1.35rem; overflow: hidden; border: 2px solid var(--ink); border-radius: 28px 12px 28px 12px; background: #fff8ec; box-shadow: 0 18px 52px rgba(43, 20, 56, .13); }
.notification-ticket::before, .notification-ticket::after { content: ""; position: absolute; top: 49%; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%; background: #d3d8ff; }
.notification-ticket::before { left: -13px; }
.notification-ticket::after { right: -13px; }
.notification-ticket header, .notification-ticket footer { display: flex; justify-content: space-between; gap: 1rem; font: 800 .61rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.notification-ticket header { padding-bottom: 1rem; border-bottom: 1px dashed rgba(43, 20, 56, .28); color: var(--blue); }
.notify-mark { display: grid; width: 54px; height: 54px; margin: 1.25rem 0; place-items: center; border-radius: 16px; background: var(--ink); }
.notify-mark i { width: 25px; height: 18px; border: 3px solid var(--cyan); border-top: 0; transform: skewY(-18deg); }
.notification-ticket h3 { margin: .4rem 0 1.2rem; font: 850 clamp(1.45rem, 2.4vw, 2.25rem)/.98 "IBM Plex Sans", sans-serif; letter-spacing: -.05em; text-transform: none; }
.notification-ticket ul { display: grid; gap: .4rem; margin: 0 0 1.25rem; padding: 1rem 0; border-block: 1px dashed rgba(43, 20, 56, .28); list-style: none; }
.notification-ticket li { display: grid; grid-template-columns: 78px 1fr; gap: .5rem; font-size: .72rem; }
.notification-ticket li span { color: var(--muted); font: 800 .58rem/1.4 "IBM Plex Mono", monospace; }
.notification-ticket footer { color: var(--muted); }
.join-art img { max-height: none; }

.site-footer { border: 0; background: var(--ink); color: #fff8ec; padding-block: 2.6rem; }
.site-footer p { max-width: none; color: #d8cfe4; }

@media (max-width: 900px) {
  .site-nav { top: 0; margin-top: 0; padding-inline: 1rem; }
  nav { top: calc(100% + 1px); left: .75rem; right: .75rem; gap: .4rem; padding: .75rem; border: 1px solid rgba(43, 20, 56, .2); border-radius: 18px; background: rgba(255, 248, 236, .98); box-shadow: var(--shadow); }
  nav a, nav .text-link { background: #ebe7ff; }
  nav .nav-join { margin-left: 0; background: var(--green); }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-art, .hero-art img { min-height: 0; }
  .publish-workbench { grid-template-columns: 1fr; }
  .publish-aside { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .publish-ticket { grid-row: span 2; }
  .dashboard-grid, .safety-overview, .rules-layout, .join-layout { grid-template-columns: 1fr; }
  .dashboard-aside, .rules-aside, .join-aside { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .dashboard-aside > :first-child, .rules-aside > :first-child, .join-aside > :first-child { grid-row: span 2; }
  .stop-lanes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { background: linear-gradient(155deg, #cbd5ff 0%, #e1d8ff 62%, #ffd9cb 100%); }
  .site-nav { width: 100%; }
  .brand-lockup small { display: none; }
  .shell { width: 100%; padding: 3.5rem .75rem; }
  h1 { font-size: clamp(3.65rem, 18vw, 5rem); }
  h2 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .hero-art { min-height: 0; aspect-ratio: 3 / 2; border-width: 5px; border-radius: 32px 14px 32px 14px; }
  .hero-art img { min-height: 0; }
  .publish-flow { grid-template-columns: 1fr; }
  .publish-flow li { min-height: 68px; }
  .publish-identity, .capability-grid, .limit-grid, .publish-aside { grid-template-columns: 1fr; }
  .publish-ticket { grid-row: auto; }
  .publish-json summary small { display: none; }
  .publish-validator-art img { max-height: none; }
  .status-banner { flex-wrap: wrap; }
  .status-banner p { order: 3; width: 100%; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .dashboard-aside, .rules-aside, .join-aside { grid-template-columns: 1fr; }
  .dashboard-aside > :first-child, .rules-aside > :first-child, .join-aside > :first-child { grid-row: auto; }
  .disclosure-grid, .client-details, .join-expectations { grid-template-columns: 1fr; }
  .open-lanes, .rule-grid, .interest-grid { grid-template-columns: 1fr; }
  .stop-lanes { grid-template-columns: 1fr 1fr; }
  .response-strip { grid-template-columns: 1fr; gap: 1rem; }
  .response-strip ol { grid-template-columns: 1fr; }
  .install-flow { grid-template-columns: 1fr 1fr; }
  .client-tabs { grid-template-columns: 1fr; }
  .token-ticket { grid-template-columns: 1fr; }
  .token-ticket .micro { grid-column: auto; }
  .interest-grid label > span { min-height: 105px; }
  .earnings-ledger, .earnings-ledger tbody, .earnings-ledger tr, .earnings-ledger td,
  .permission-table, .permission-table tbody, .permission-table tr, .permission-table td { display: block; width: 100%; }
  .earnings-ledger thead, .permission-table thead { display: none; }
  .earnings-ledger tr, .permission-table tr { margin-bottom: .7rem; padding: .55rem; border: 1px solid rgba(43, 20, 56, .14); border-radius: 15px; background: rgba(255, 248, 236, .62); }
  .earnings-ledger td, .permission-table td { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; min-width: 0; padding: .48rem; border: 0; }
  .earnings-ledger td::before, .permission-table td::before { content: attr(data-label); color: var(--muted); font: 800 .55rem/1.3 "IBM Plex Mono", monospace; text-transform: uppercase; }
  .earnings-ledger td:first-child { display: grid; grid-template-columns: 84px 2rem minmax(0, 1fr); min-width: 0; }
  .publish-validator-art { height: auto; }
  .publish-validator-art img { height: auto; min-height: 0; }
  .section-head > p { padding: .75rem .9rem; }
  .route-art, .shelf-art { border-radius: 28px; }
  .panel { border-radius: 22px; }
  .skill-row { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .shelf-art-video { display: none; }
}
