:root {
  --pearl: #f6f4ff;
  --panel: #ecebfa;
  --white: #ffffff;
  --ink: #100b24;
  --muted: #716b87;
  --violet: #7457ff;
  --violet-soft: #e8e2ff;
  --glacier: #bfefff;
  --amber: #ffb547;
  --amber-soft: #fff0d5;
  --green: #00c805;
  --green-soft: #d9f7da;
  --line: #d4d0e4;
  --display: "Sora", "Avenir Next", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--pearl); }
body { margin: 0; color: var(--ink); background: var(--pearl); font-family: var(--body); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
code, pre { font-family: var(--mono); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  min-height: 72px; padding: 0 4vw;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  background: rgba(246, 244, 255, .88); border-bottom: 1px solid rgba(16, 11, 36, .13);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 800 17px var(--display); letter-spacing: -.03em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.nav-links { display: flex; justify-content: center; gap: clamp(12px, 2.2vw, 32px); }
.nav-links a { position: relative; padding: 25px 0 23px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 3px; background: var(--violet); transition: right .2s ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { right: 0; }
.nav-socials { display: flex; gap: 8px; }
.nav-socials span, .nav-socials a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font: 500 11px var(--mono); }

.hero { min-height: calc(100svh - 72px); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: 54%; background: linear-gradient(90deg, rgba(246,244,255,.99) 0%, rgba(246,244,255,.94) 74%, rgba(246,244,255,0) 100%); }
.hero-plate { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { width: min(550px, 43vw); margin-left: 5vw; padding-top: clamp(58px, 8vh, 104px); }
.eyebrow { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--violet); border-radius: 999px; background: var(--violet-soft); color: var(--violet); font: 500 12px var(--mono); letter-spacing: .04em; }
.hero h1 { margin: 28px 0 18px; font: 800 clamp(52px, 5.25vw, 88px)/.99 var(--display); letter-spacing: -.065em; text-transform: uppercase; }
.hero-copy > p { margin: 0 0 25px; color: var(--muted); font-size: clamp(17px, 1.45vw, 22px); }
.command-block { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 15px 15px 15px 19px; background: var(--ink); border: 1px solid #2e2357; border-radius: 16px; color: white; box-shadow: 0 16px 40px rgba(16,11,36,.14); }
.command-block code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--glacier); }
.copy-button { border: 0; border-radius: 10px; padding: 10px 14px; background: var(--green); color: #071b09; font: 700 12px var(--mono); cursor: pointer; }
.command-note { position: absolute; right: 0; top: calc(100% + 8px); padding: 5px 10px; border-radius: 999px; color: #5a3900; background: var(--amber); font: 700 10px var(--mono); }
.check-rail { margin-top: 43px; display: flex; flex-wrap: wrap; gap: 7px; }
.check-rail span { padding: 7px 10px; border: 1px solid var(--violet); border-radius: 999px; background: rgba(246,244,255,.8); font: 500 10px var(--mono); }
.check-rail span:nth-child(3) { border-color: var(--amber); background: var(--amber-soft); }
.check-rail span:last-child { border-color: var(--green); background: var(--green-soft); }
.hero-data { position: absolute; left: 5vw; bottom: 3vh; width: min(900px,65vw); display: grid; grid-template-columns: repeat(6,1fr); border: 1px solid rgba(16,11,36,.55); border-radius: 16px; background: rgba(246,244,255,.88); backdrop-filter: blur(18px); overflow: hidden; }
.hero-data-head { grid-column: 1/-1; min-height: 30px; display: flex !important; justify-content: space-between; align-items: center; padding: 0 13px !important; background: var(--ink); color: white; }
.hero-data-head span, .hero-data-head b { color: inherit !important; font: 500 8px var(--mono) !important; }
.hero-data-head b { color: var(--glacier) !important; }
.hero-data > div:not(.hero-data-head) { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); }
.hero-data > div:last-child { border-right: 0; }
.hero-data span, .hero-data strong, .hero-data small { display: block; }
.hero-data span { color: var(--muted); font: 500 7px var(--mono); }
.hero-data strong { margin: 5px 0 1px; font: 700 11px var(--mono); overflow-wrap: anywhere; }
.hero-data small { color: var(--muted); font: 500 7px var(--mono); }
.hero-ca { position: absolute; right: 2.5vw; bottom: 3vh; width: 230px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 7px; border: 1px solid var(--violet); border-radius: 15px; background: rgba(246,244,255,.84); backdrop-filter: blur(14px); }
.hero-ca span { grid-column: 1/-1; color: var(--violet); font: 500 10px var(--mono); }
.hero-ca strong { font: 500 11px var(--mono); align-self: center; }
.hero-ca button, .hero-ca a { border: 0; border-radius: 7px; padding: 7px 9px; background: var(--ink); color: white; text-decoration: none; text-align: center; font: 600 9px var(--mono); cursor: pointer; }
.hero-ca a { grid-column: 1/-1; background: var(--green); color: #052607; }

.section, .route-shell { width: min(1360px, 92vw); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 120px); }
.route-shell > .section { width: 100%; }
.section-copy { max-width: 690px; margin-bottom: 38px; }
.section h2, .page-head h1 { margin: 18px 0 12px; font: 750 clamp(34px, 4vw, 62px)/1.06 var(--display); letter-spacing: -.05em; }
.section p, .page-head p { color: var(--muted); font-size: 16px; }
.home-source-board, .workshop, .process-section, .capture-strip { width: min(1600px, 96vw); }
.home-source-board, .workshop, .process-section { padding-block: clamp(42px,5vw,76px); }
.home-source-board { padding-top: clamp(34px,4vw,58px); padding-bottom: 0; }
.workshop { padding-bottom: 30px; }
.process-section { padding-top: 30px; padding-bottom: 30px; }
.source-board-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; align-items: end; margin-bottom: 22px; }
.source-board-head h2 { max-width: 980px; margin-bottom: 0; }
.home-source-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--ink); border-radius: 20px 20px 0 0; background: white; overflow: hidden; }
.home-source-grid > div { min-width: 0; padding: 19px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-source-grid > div:nth-child(4n) { border-right: 0; }
.home-source-grid > div:nth-child(n+5) { border-bottom: 0; }
.home-source-grid span, .home-source-grid strong, .home-source-grid small { display: block; }
.home-source-grid span { color: var(--violet); font: 500 9px var(--mono); }
.home-source-grid strong { margin: 8px 0 4px; font: 750 clamp(18px,2vw,31px)/1 var(--display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.home-source-grid small { color: var(--muted); font: 500 8px/1.4 var(--mono); }
.address-ledger { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--ink); border-top: 0; border-radius: 0 0 20px 20px; background: var(--ink); color: white; overflow: hidden; }
.address-ledger > div { min-width: 0; padding: 12px 18px; border-right: 1px solid #41375d; }
.address-ledger > div:last-child { border-right: 0; }
.address-ledger span { display: block; margin-bottom: 3px; color: #aaa4bd; font: 500 7px var(--mono); }
.address-ledger code { color: var(--glacier); font-size: 8px; overflow-wrap: anywhere; }
.workshop-intro { display: grid; grid-template-columns: minmax(500px,1fr) minmax(520px,.92fr); gap: clamp(36px,6vw,110px); align-items: end; margin-bottom: 28px; }
.workshop-intro .section-copy { max-width: 760px; margin-bottom: 0; }
.workshop-index { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--ink); border-radius: 18px; background: white; overflow: hidden; }
.workshop-index-head { grid-column: 1/-1; min-height: 34px; display: flex !important; justify-content: space-between; align-items: center; padding: 0 14px !important; background: var(--ink); color: white; }
.workshop-index-head span, .workshop-index-head b { color: inherit !important; font: 500 8px var(--mono) !important; }
.workshop-index-head b { color: var(--glacier) !important; }
.workshop-index > div:not(.workshop-index-head) { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workshop-index > div:nth-child(4), .workshop-index > div:nth-child(7) { border-right: 0; }
.workshop-index > div:nth-child(n+5) { border-bottom: 0; }
.workshop-index span, .workshop-index strong, .workshop-index small { display: block; }
.workshop-index span { color: var(--muted); font: 500 7px var(--mono); }
.workshop-index strong { margin: 5px 0 2px; font: 700 16px var(--mono); overflow-wrap: anywhere; }
.workshop-index small { color: var(--muted); font: 500 7px/1.4 var(--mono); overflow-wrap: anywhere; }
.workshop-summary { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 18px; border: 1px solid var(--ink); border-radius: 20px; background: var(--ink); color: white; overflow: hidden; }
.workshop-summary > div { min-width: 0; padding: 20px 22px; border-right: 1px solid #41375d; }
.workshop-summary > div:last-child { border-right: 0; }
.workshop-summary span, .workshop-summary strong, .workshop-summary small { display: block; }
.workshop-summary span { color: var(--glacier); font: 500 24px var(--mono); }
.workshop-summary strong { margin: 6px 0 2px; font: 700 13px var(--display); }
.workshop-summary small { color: #aaa4bd; font: 500 9px var(--mono); }
.workshop-ledger { display: grid; grid-template-columns: repeat(6,1fr); margin: -1px 0 18px; border: 1px solid var(--ink); border-radius: 15px; background: white; overflow: hidden; }
.workshop-ledger > div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line); }
.workshop-ledger > div:last-child { border-right: 0; }
.workshop-ledger span, .workshop-ledger strong, .workshop-ledger small { display: block; }
.workshop-ledger span { color: var(--muted); font: 500 7px var(--mono); }
.workshop-ledger strong { margin: 4px 0 2px; font: 700 18px var(--mono); }
.workshop-ledger small { color: var(--muted); font: 500 8px var(--mono); }
.workshop-matrix { border: 1px solid var(--ink); border-radius: 20px; background: white; overflow: hidden; }
.matrix-head, .matrix-row { display: grid; grid-template-columns: 42px minmax(230px,1.45fr) minmax(160px,.8fr) 58px minmax(92px,.55fr) minmax(120px,.65fr) auto; gap: 14px; align-items: center; }
.matrix-head { min-height: 42px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--ink); color: var(--muted); font: 500 9px var(--mono); }
.matrix-row { width: 100%; min-height: 94px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; transition: background .18s ease; }
.matrix-row:last-child { border-bottom: 0; }
.matrix-row:hover { background: #faf9ff; }
.matrix-row.is-selected { background: var(--violet-soft); box-shadow: inset 4px 0 var(--violet); }
.matrix-id { color: var(--violet); font: 500 11px var(--mono); }
.matrix-name strong, .matrix-name small, .matrix-stack b, .matrix-count b, .matrix-gate b { display: block; }
.matrix-name strong { margin-bottom: 4px; font: 700 16px var(--display); }
.matrix-name small { color: var(--muted); font: 500 10px/1.45 var(--mono); }
.matrix-stack, .matrix-count, .matrix-gate { color: #514b63; font: 500 10px/1.45 var(--mono); }
.matrix-stack b, .matrix-count b, .matrix-gate b { margin-bottom: 3px; color: var(--muted); font-size: 8px; letter-spacing: .06em; }
.matrix-count { font-size: 17px; color: var(--ink); }
.workshop-detail { margin-top: 18px; padding: clamp(22px,3.2vw,44px); border: 1px solid var(--ink); border-radius: 26px; background: white; }
.workshop-detail-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: start; }
.workshop-detail-head h3 { margin: 8px 0 5px; font: 750 clamp(28px,3vw,46px)/1 var(--display); letter-spacing: -.05em; }
.workshop-detail-head p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; }
.detail-id { color: var(--violet); font: 500 10px var(--mono); }
.workshop-command { max-width: 880px; margin: 24px 0 18px; }
.kit-metrics { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.kit-metrics > div { min-width: 0; padding: 16px; border-right: 1px solid var(--line); }
.kit-metrics > div:last-child { border-right: 0; }
.kit-metrics span, .kit-metrics strong, .kit-metrics small { display: block; }
.kit-metrics span { color: var(--muted); font: 500 8px var(--mono); }
.kit-metrics strong { margin: 7px 0 2px; font: 700 12px var(--mono); overflow-wrap: anywhere; }
.kit-metrics small { color: var(--muted); font: 500 8px var(--mono); }
.workshop-detail-grid { display: grid; grid-template-columns: 1.05fr 1fr .9fr; gap: 14px; margin-top: 14px; }
.workshop-detail-grid > section { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.subhead { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 8px var(--mono); }
.subhead b { color: var(--violet); }
.kit-tree ol { margin: 0; padding: 8px 0 0; list-style: none; }
.kit-tree li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eeecf5; }
.kit-tree li:last-child { border-bottom: 0; }
.kit-tree li span { color: var(--violet); font: 500 8px var(--mono); }
.kit-tree li code { font-size: 9px; overflow-wrap: anywhere; }
.kit-checks > div:not(.subhead) { display: grid; grid-template-columns: 25px 1fr; gap: 7px; padding: 11px 0; border-bottom: 1px solid #eeecf5; }
.kit-checks > div:last-child { border-bottom: 0; }
.kit-checks > div > span { color: var(--violet); font: 500 9px var(--mono); }
.kit-checks p { margin: 0; color: var(--ink); font-size: 10px; }
.kit-checks em { grid-column: 2; color: var(--muted); font: 500 8px var(--mono); font-style: normal; }
.kit-ledger dl { margin: 8px 0 0; }
.kit-ledger dl > div { padding: 10px 0; border-bottom: 1px solid #eeecf5; }
.kit-ledger dl > div:last-child { border-bottom: 0; }
.kit-ledger dt { color: var(--muted); font: 500 8px var(--mono); text-transform: uppercase; }
.kit-ledger dd { margin: 3px 0 0; font: 500 9px/1.5 var(--mono); overflow-wrap: anywhere; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; white-space: nowrap; font: 600 10px var(--mono); text-transform: uppercase; }
.chip-outline { color: var(--amber); border: 1px solid var(--amber); background: var(--amber-soft); }
.chip-amber { color: #6d4300; background: var(--amber); }
.route-art { margin: 0; min-width: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 30px; background: radial-gradient(circle at 50% 40%, #fff, var(--panel)); overflow: hidden; }
.route-art img { width: 100%; height: 100%; object-fit: contain; }
.art-compact { min-height: 480px; }
.process-head { max-width: 980px; margin-bottom: 25px; }
.process-band { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--ink); border-radius: 22px; background: white; overflow: hidden; }
.process-band article { min-width: 0; padding: 23px; border-right: 1px solid var(--ink); }
.process-band article:last-child { border-right: 0; }
.process-band header > span { display: block; margin-bottom: 6px; color: var(--violet); font: 500 9px var(--mono); }
.process-band header > strong { font: 700 18px var(--display); }
.process-stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 17px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-stats b { padding: 11px 5px 10px 0; font: 700 18px var(--mono); }
.process-stats small { display: block; margin-top: 2px; color: var(--muted); font: 500 7px var(--mono); }
.process-band dl { margin: 0; }
.process-band dl > div { display: grid; grid-template-columns: 54px 1fr; gap: 7px; padding: 8px 0; border-bottom: 1px solid #eeecf5; }
.process-band dt { color: var(--muted); font: 500 7px var(--mono); text-transform: uppercase; }
.process-band dd { margin: 0; font: 500 9px/1.45 var(--mono); }
.process-band article > code { display: block; margin-top: 15px; padding: 9px; border-radius: 8px; background: var(--panel); color: var(--violet); font-size: 8px; overflow-wrap: anywhere; }
.capture-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding-block: 0 52px; }
.capture-strip > div, .detail-card, .ledger-grid > div, .join-notes > div { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.capture-strip span, .detail-card > span, .ledger-grid span, .join-notes span { display: block; color: var(--muted); font: 500 10px var(--mono); }
.capture-strip strong, .detail-card strong, .ledger-grid strong, .join-notes strong { display: block; margin: 10px 0; font: 700 23px var(--display); }
.source-stamp { margin-top: 18px; font-size: 9px !important; line-height: 1.45; }

.route-shell { min-height: 70vh; padding-bottom: 90px; }
.page-head { padding: clamp(70px,9vw,130px) 0 50px; max-width: 960px; }
.page-head h1 { font-size: clamp(48px,7vw,100px); text-transform: uppercase; }
.page-head p { max-width: 740px; font-size: 18px; }
.template-layout, .new-layout, .checks-layout, .submit-layout, .cli-layout, .rules-layout, .join-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr); gap: 38px; align-items: stretch; }
.tree-panel, .builder-panel, .submit-panel, .join-layout form { padding: 30px; border: 1px solid var(--ink); border-radius: 28px; background: white; }
.panel-head { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font: 500 11px var(--mono); }
.file-tree { margin: 0; padding: 18px 0 0; list-style: none; }
.file-tree li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.file-tree span { color: var(--violet); font: 500 10px var(--mono); }
.file-tree code { font-size: 12px; overflow-wrap: anywhere; }
.art-tall { min-height: 620px; }
.command-section { display: grid; grid-template-columns: 1fr minmax(420px,.8fr); gap: 60px; align-items: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font: 500 10px var(--mono); text-transform: uppercase; }
td { font-size: 13px; }
td:first-child { color: var(--violet); font-family: var(--mono); }
.detail-grid, .ledger-grid, .join-notes { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.detail-card p { font-size: 12px; }

.start-page { width: min(1600px,96vw); }
.start-head-grid { display: grid; grid-template-columns: minmax(520px,1.12fr) minmax(520px,.88fr); gap: clamp(34px,6vw,100px); align-items: end; }
.start-head-grid .page-head { margin: 0; padding-bottom: 34px; }
.start-index { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 34px; border: 1px solid var(--ink); border-radius: 18px; background: white; overflow: hidden; }
.start-index-head { grid-column: 1/-1; min-height: 34px; display: flex !important; justify-content: space-between; align-items: center; padding: 0 14px !important; background: var(--ink); color: white; }
.start-index-head span, .start-index-head b { color: inherit !important; font: 500 8px var(--mono) !important; }
.start-index-head b { color: var(--glacier) !important; }
.start-index > div:not(.start-index-head) { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.start-index > div:nth-child(4), .start-index > div:nth-child(7) { border-right: 0; }
.start-index > div:nth-child(n+5) { border-bottom: 0; }
.start-index span, .start-index strong, .start-index small { display: block; }
.start-index span { color: var(--muted); font: 500 7px var(--mono); }
.start-index strong { margin: 5px 0 2px; font: 700 16px var(--mono); }
.start-index small { color: var(--muted); font: 500 7px var(--mono); }
.start-head-console { margin-bottom: 34px; border: 1px solid var(--ink); border-radius: 22px; background: var(--ink); color: white; overflow: hidden; box-shadow: 0 22px 60px rgba(16,11,36,.13); }
.start-head-console header { min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 17px; border-bottom: 1px solid #41375d; color: #aaa4bd; font: 500 8px var(--mono); }
.start-head-console header b { color: var(--glacier); font-weight: 500; }
.start-head-console pre { min-height: 110px; margin: 0; padding: 21px; color: white; font: 500 12px/1.8 var(--mono); white-space: pre-wrap; }
.start-head-console pre i { color: var(--green); font-style: normal; }
.console-map { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid #41375d; }
.console-map > div { min-width: 0; padding: 12px 16px; border-right: 1px solid #41375d; border-bottom: 1px solid #41375d; }
.console-map > div:nth-child(2n) { border-right: 0; }
.console-map span, .console-map strong { display: block; }
.console-map span { color: #aaa4bd; font: 500 7px var(--mono); }
.console-map strong { margin-top: 4px; color: var(--glacier); font: 500 9px var(--mono); }
.start-head-console footer { display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; color: var(--amber); font: 500 8px var(--mono); }
.start-page .new-layout { grid-template-columns: minmax(420px,.8fr) minmax(600px,1.2fr); gap: 14px; }
.builder-panel { display: flex; flex-direction: column; gap: 18px; }
.builder-fields { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.builder-toggles { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.builder-toggles label { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--pearl); }
.start-record { padding: 30px; border: 1px solid var(--ink); border-radius: 28px; background: white; }
.build-record { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.build-record > div { min-width: 0; min-height: 76px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.build-record > div:nth-child(4n) { border-right: 0; }
.build-record > div:nth-child(n+9) { border-bottom: 0; }
.build-record > div:last-child { border-right: 0; }
.build-record .record-wide { grid-column: span 2; }
.build-record span, .build-record strong, .build-record code { display: block; }
.build-record span { color: var(--muted); font: 500 7px var(--mono); }
.build-record strong, .build-record code { margin-top: 7px; font: 600 10px/1.45 var(--mono); overflow-wrap: anywhere; }
.build-record strong { font-size: 15px; }
.build-record i { font-style: normal; }
.start-record-foot { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--pearl); overflow: hidden; }
.start-record-foot > div { min-width: 0; padding: 15px; border-right: 1px solid var(--line); }
.start-record-foot > div:last-child { border-right: 0; }
.start-record-foot span, .start-record-foot strong, .start-record-foot small { display: block; }
.start-record-foot span { color: var(--violet); font: 500 7px var(--mono); }
.start-record-foot strong { margin: 6px 0 3px; font: 650 10px/1.35 var(--mono); overflow-wrap: anywhere; }
.start-record-foot small { color: var(--muted); font: 500 7px/1.45 var(--mono); }
.start-inspector { display: grid; grid-template-columns: 1.05fr 1fr .9fr; gap: 14px; padding-block: 18px; }
.start-inspector > section { min-width: 0; padding: 24px; border: 1px solid var(--ink); border-radius: 22px; background: white; }
.start-tree ol, .start-pipeline ol { margin: 0; padding: 10px 0 0; list-style: none; }
.start-tree li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eeecf5; }
.start-tree li:last-child { border-bottom: 0; }
.start-tree li span, .start-pipeline li > span { color: var(--violet); font: 500 8px var(--mono); }
.start-tree li code { font-size: 9px; overflow-wrap: anywhere; }
.start-checks article, .start-pipeline li { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 13px 0; border-bottom: 1px solid #eeecf5; }
.start-checks article:last-child, .start-pipeline li:last-child { border-bottom: 0; }
.start-checks article > span { color: var(--violet); font: 500 8px var(--mono); }
.start-checks strong, .start-pipeline strong { display: block; font: 600 10px/1.4 var(--mono); }
.start-checks small, .start-pipeline small { display: block; margin-top: 4px; color: var(--muted); font: 500 7px var(--mono); }
.start-boundary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding-block: 0 52px; }
.start-boundary > div { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.start-boundary span, .start-boundary strong, .start-boundary small { display: block; }
.start-boundary span { color: var(--violet); font: 500 8px var(--mono); }
.start-boundary strong { margin: 7px 0 3px; font: 700 14px var(--display); }
.start-boundary small { color: var(--muted); font: 500 8px/1.5 var(--mono); }
label { display: grid; gap: 8px; color: var(--muted); font: 600 11px var(--mono); text-transform: uppercase; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--pearl); color: var(--ink); font-family: var(--body); text-transform: none; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(116,87,255,.18); border-color: var(--violet); }
.toggle-line, .consent { display: flex; align-items: center; gap: 10px; text-transform: none; }
.toggle-line input, .consent input { width: auto; }
.builder-output { margin-top: 8px; padding: 20px; display: grid; gap: 16px; border-radius: 18px; background: var(--ink); color: white; }
.builder-output > span { display: flex; align-items: center; justify-content: space-between; color: var(--glacier); font: 500 10px var(--mono); }
.builder-output > code { overflow-wrap: anywhere; font-size: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 11px; background: transparent; color: var(--ink); text-decoration: none; font: 700 11px var(--mono); cursor: pointer; }
.button-primary { border-color: var(--green); background: var(--green); color: #052607; }
.button:disabled, .is-disabled { opacity: .52; cursor: not-allowed; }
.delta-grid { display: grid; grid-template-columns: repeat(2,1fr); }
.delta-grid > div { display: grid; grid-template-columns: 35px 1fr; gap: 10px; padding: 13px; border-bottom: 1px solid var(--line); }
.delta-grid span { color: var(--violet); font: 500 10px var(--mono); }
.delta-grid code { font-size: 12px; }

.checks-page { width: min(1600px,96vw); }
.checks-head-grid { display: grid; grid-template-columns: minmax(560px,1.12fr) minmax(520px,.88fr); gap: clamp(36px,6vw,100px); align-items: end; }
.checks-head-grid .page-head { padding-bottom: 34px; }
.checks-index { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 34px; border: 1px solid var(--ink); border-radius: 18px; background: white; overflow: hidden; }
.checks-index-head { grid-column: 1/-1; min-height: 34px; display: flex !important; justify-content: space-between; align-items: center; padding: 0 14px !important; background: var(--ink); color: white; }
.checks-index-head span, .checks-index-head b { color: inherit !important; font: 500 8px var(--mono) !important; }
.checks-index-head b { color: var(--glacier) !important; }
.checks-index > div:not(.checks-index-head) { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checks-index > div:nth-child(4), .checks-index > div:nth-child(7) { border-right: 0; }
.checks-index > div:nth-child(n+5) { border-bottom: 0; }
.checks-index span, .checks-index strong, .checks-index small { display: block; }
.checks-index span { color: var(--muted); font: 500 7px var(--mono); }
.checks-index strong { margin: 5px 0 2px; font: 700 16px var(--mono); }
.checks-index small { color: var(--muted); font: 500 7px/1.4 var(--mono); }
.checks-control-stack { margin-bottom: 34px; border: 1px solid var(--ink); border-radius: 22px; background: white; overflow: hidden; }
.checks-control-stack header { min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; background: var(--violet); color: white; font: 500 8px var(--mono); }
.checks-control-stack header b { color: var(--glacier); font-weight: 500; }
.checks-control-stack > div { display: grid; grid-template-columns: 30px 1fr 130px auto; gap: 10px; align-items: center; min-height: 54px; padding: 8px 15px; border-bottom: 1px solid var(--line); }
.checks-control-stack > div > span { color: var(--violet); font: 500 8px var(--mono); }
.checks-control-stack > div > strong { font: 700 11px var(--display); }
.checks-control-stack > div > code { font-size: 8px; }
.checks-control-stack > div > em { padding: 5px 7px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font: 600 7px var(--mono); font-style: normal; white-space: nowrap; }
.checks-control-stack footer { display: flex; justify-content: space-between; gap: 10px; padding: 11px 15px; background: var(--panel); color: var(--muted); font: 500 8px var(--mono); }
.check-matrix { border: 1px solid var(--ink); border-radius: 22px; background: white; overflow: hidden; }
.check-matrix-head, .check-matrix article { display: grid; grid-template-columns: minmax(170px,.8fr) minmax(230px,1.2fr) minmax(220px,1fr) minmax(150px,.7fr) minmax(110px,.55fr); gap: 18px; align-items: center; }
.check-matrix-head { min-height: 42px; padding: 0 18px; background: var(--panel); border-bottom: 1px solid var(--ink); color: var(--muted); font: 500 8px var(--mono); }
.check-matrix article { min-height: 102px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.check-matrix article:last-child { border-bottom: 0; }
.check-matrix article > div { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; }
.check-matrix article > div span { color: var(--violet); font: 500 9px var(--mono); }
.check-matrix article > div strong { font: 700 14px var(--display); }
.check-matrix article p { margin: 0; color: var(--muted); font-size: 11px; }
.check-matrix article code { font-size: 9px; overflow-wrap: anywhere; }
.check-matrix article > b { font: 700 12px var(--mono); }
.check-matrix article > em { justify-self: start; padding: 6px 8px; border: 1px solid var(--violet); border-radius: 999px; color: var(--violet); background: var(--violet-soft); font: 600 8px var(--mono); font-style: normal; white-space: nowrap; }
.checks-source { width: 100%; padding-block: 34px 18px; }
.checks-source .source-board-head { margin-bottom: 18px; }
.identity-compare { width: 100%; display: grid; grid-template-columns: minmax(300px,1fr) 84px minmax(300px,1fr) minmax(210px,.55fr); gap: 12px; align-items: stretch; padding-block: 0 18px; }
.identity-card, .ratio-card { min-width: 0; padding: 20px; border: 1px solid var(--ink); border-radius: 18px; background: white; }
.identity-head { display: flex; justify-content: space-between; gap: 12px; color: var(--violet); font: 500 8px var(--mono); }
.identity-card > code, .identity-card > strong, .identity-card > small { display: block; }
.identity-card > code { margin-top: 13px; color: var(--muted); font-size: 8px; overflow-wrap: anywhere; }
.identity-card > strong { margin: 11px 0 2px; font: 750 28px var(--display); letter-spacing: -.04em; }
.identity-card > small { color: var(--muted); font: 500 8px var(--mono); }
.volume-track { height: 7px; margin-top: 14px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.volume-track i { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.same-symbol .volume-track i { background: var(--amber); }
.identity-vs { display: grid; place-content: center; text-align: center; }
.identity-vs span, .identity-vs small { color: var(--muted); font: 500 7px var(--mono); }
.identity-vs strong { font: 700 30px var(--display); }
.ratio-card { display: flex; flex-direction: column; justify-content: center; background: var(--ink); color: white; }
.ratio-card span, .ratio-card small { color: #aaa4bd; font: 500 8px var(--mono); }
.ratio-card strong { margin: 12px 0 5px; color: var(--glacier); font: 700 31px var(--display); }
.provenance-section { width: 100%; padding-block: 18px; }
.provenance-section > .panel-head { margin-bottom: 14px; }
.provenance-section td { font-size: 10px; }
.provenance-section td code { font-size: 8px; overflow-wrap: anywhere; }
.boundary-ledger { width: 100%; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding-block: 18px 52px; }
.boundary-ledger > div { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.boundary-ledger span, .boundary-ledger strong, .boundary-ledger small { display: block; }
.boundary-ledger span { color: var(--violet); font: 500 8px var(--mono); }
.boundary-ledger strong { margin: 7px 0 3px; font: 700 14px var(--display); }
.boundary-ledger small { color: var(--muted); font: 500 8px/1.5 var(--mono); }
.check-list, .criteria-list, .limits-list { border-top: 1px solid var(--ink); }
.check-list article, .criteria-list article, .limits-list article { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.check-list article > span, .criteria-list article > span, .limits-list article > span { color: var(--violet); font: 500 11px var(--mono); }
.check-list h2, .limits-list h2 { margin: 0 0 7px; font: 700 18px var(--display); }
.check-list p, .criteria-list p, .limits-list p { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.check-list small { display: block; color: var(--muted); font: 500 9px var(--mono); }
.check-list strong { display: block; margin-top: 5px; color: var(--amber); font: 500 11px var(--mono); }
.source-capture { margin-top: 30px; }
.capture-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding-top: 20px; }
.capture-grid > div { padding: 20px; border-radius: 16px; background: white; border: 1px solid var(--line); }
.capture-grid span, .capture-grid small { display: block; color: var(--muted); font: 500 9px var(--mono); }
.capture-grid strong { display: block; margin: 10px 0 16px; font: 700 22px var(--display); }
.source-note { overflow-wrap: anywhere; font-size: 10px !important; }

.submit-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.submit-panel form, #join-form { display: flex; flex-direction: column; gap: 16px; }
.muted, .form-result { color: var(--muted); font-size: 12px; }
.cli-page { width: min(1600px,96vw); }
.cli-head-grid { display: grid; grid-template-columns: minmax(580px,1.12fr) minmax(520px,.88fr); gap: clamp(36px,6vw,100px); align-items: end; }
.cli-head-grid .page-head { padding-bottom: 34px; }
.cli-index { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 34px; border: 1px solid var(--ink); border-radius: 18px; background: white; overflow: hidden; }
.cli-index-head { grid-column: 1/-1; min-height: 34px; display: flex !important; justify-content: space-between; align-items: center; padding: 0 14px !important; background: var(--ink); color: white; }
.cli-index-head span, .cli-index-head b { color: inherit !important; font: 500 8px var(--mono) !important; }
.cli-index-head b { color: var(--glacier) !important; }
.cli-index > div:not(.cli-index-head) { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cli-index > div:nth-child(4), .cli-index > div:nth-child(7) { border-right: 0; }
.cli-index > div:nth-child(n+5) { border-bottom: 0; }
.cli-index span, .cli-index strong, .cli-index small { display: block; }
.cli-index span { color: var(--muted); font: 500 7px var(--mono); }
.cli-index strong { margin: 5px 0 2px; font: 700 16px var(--mono); }
.cli-index small { color: var(--muted); font: 500 7px/1.4 var(--mono); }
.cli-grammar { margin-bottom: 34px; border: 1px solid var(--violet); border-radius: 22px; background: white; overflow: hidden; box-shadow: inset 7px 0 var(--violet); }
.cli-grammar header { min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px 0 24px; background: var(--panel); color: var(--muted); font: 500 8px var(--mono); }
.cli-grammar header b { color: var(--violet); font-weight: 500; }
.grammar-line { display: grid; grid-template-columns: 60px 1fr; gap: 12px; min-height: 43px; align-items: center; padding: 0 20px 0 24px; border-bottom: 1px solid var(--line); }
.grammar-line span { color: var(--violet); font: 600 8px var(--mono); }
.grammar-line code { font-size: 10px; }
.grammar-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 20px 13px 24px; background: var(--ink); color: white; font: 600 8px var(--mono); }
.grammar-flow i { color: var(--green); font-style: normal; }
.cli-grammar footer { display: grid; grid-template-columns: repeat(6,auto); justify-content: start; gap: 7px 12px; align-items: baseline; padding: 12px 20px 12px 24px; }
.cli-grammar footer strong { color: var(--violet); font: 700 16px var(--mono); }
.cli-grammar footer span { color: var(--muted); font: 500 8px var(--mono); }
.cli-command-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.cli-command-card { min-width: 0; padding: 24px; border: 1px solid var(--ink); border-radius: 22px; background: white; }
.cli-command-card header { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.cli-command-card header span { color: var(--violet); font: 500 8px var(--mono); }
.cli-command-card h2 { margin: 5px 0 0; font: 750 27px/1 var(--display); letter-spacing: -.045em; }
.cli-command-card > p { margin: 8px 0 15px; color: var(--muted); font-size: 11px; }
.cli-command-card .command-block { margin-bottom: 34px; }
.cli-card-metrics { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cli-card-metrics > div { min-width: 0; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cli-card-metrics > div:nth-child(4) { border-right: 0; }
.cli-card-metrics > div:nth-child(n+5) { border-bottom: 0; }
.cli-card-metrics .metric-wide { grid-column: span 3; }
.cli-card-metrics > div:last-child { border-right: 0; }
.cli-card-metrics span, .cli-card-metrics strong, .cli-card-metrics code { display: block; }
.cli-card-metrics span { color: var(--muted); font: 500 7px var(--mono); }
.cli-card-metrics strong { margin-top: 4px; font: 700 16px var(--mono); }
.cli-card-metrics code { margin-top: 4px; font-size: 8px; overflow-wrap: anywhere; }
.cli-flags { width: 100%; padding-block: 32px 16px; }
.cli-flags > .panel-head { margin-bottom: 14px; }
.cli-flags .panel-head > span:last-child { display: flex; align-items: center; gap: 8px; }
.cli-flags th, .cli-flags td { font-size: 9px; }
.cli-flags td code { font-size: 8px; }
.cli-spec-grid { width: 100%; display: grid; grid-template-columns: minmax(620px,1.25fr) minmax(420px,.75fr); gap: 14px; padding-block: 16px; }
.cli-schema, .cli-pipeline { min-width: 0; padding: 22px; border: 1px solid var(--ink); border-radius: 22px; background: white; }
.schema-grid { margin-top: 12px; }
.schema-head, .schema-row { display: grid; grid-template-columns: 32px minmax(150px,1.1fr) 80px 110px minmax(150px,1fr); gap: 10px; align-items: center; }
.schema-head { min-height: 31px; padding: 0 8px; background: var(--panel); color: var(--muted); font: 500 7px var(--mono); }
.schema-row { min-height: 37px; padding: 5px 8px; border-bottom: 1px solid #eeecf5; }
.schema-row:last-child { border-bottom: 0; }
.schema-row > span { color: var(--violet); font: 500 8px var(--mono); }
.schema-row code { font-size: 8px; overflow-wrap: anywhere; }
.schema-row b, .schema-row small, .schema-row em { font: 500 8px/1.35 var(--mono); font-style: normal; }
.schema-row small { color: var(--muted); }
.schema-row em { overflow-wrap: anywhere; }
.cli-pipeline ol { margin: 0; padding: 10px 0 0; list-style: none; }
.cli-pipeline li { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eeecf5; }
.cli-pipeline li > span { color: var(--violet); font: 500 8px var(--mono); }
.cli-pipeline li strong, .cli-pipeline li small { display: block; }
.cli-pipeline li strong { font: 650 10px var(--mono); }
.cli-pipeline li small { margin-top: 3px; color: var(--muted); font: 500 7px var(--mono); }
.cli-pipeline li > b { padding: 4px 6px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font: 600 7px var(--mono); }
.cli-boundary { margin-top: 13px; padding: 15px; border-radius: 13px; background: var(--ink); color: white; }
.cli-boundary span, .cli-boundary strong, .cli-boundary code { display: block; }
.cli-boundary span { color: #aaa4bd; font: 500 7px var(--mono); }
.cli-boundary strong { margin: 6px 0 3px; font: 700 13px var(--display); }
.cli-boundary code { color: var(--glacier); font-size: 8px; }
.cli-error-section { width: 100%; padding-block: 16px; }
.cli-error-section > .panel-head { margin-bottom: 14px; }
.cli-errors { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.cli-errors article { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.cli-errors header { display: flex; justify-content: space-between; gap: 10px; }
.cli-errors header span { color: var(--violet); font: 500 8px var(--mono); }
.cli-errors header code { color: var(--amber); font-size: 8px; }
.cli-errors strong, .cli-errors small { display: block; }
.cli-errors strong { margin: 12px 0 4px; font: 700 13px var(--display); }
.cli-errors small { color: var(--muted); font: 500 8px var(--mono); }
.cli-release { width: 100%; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding-block: 16px 52px; }
.cli-release > div { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.cli-release span, .cli-release strong, .cli-release small { display: block; }
.cli-release span { color: var(--violet); font: 500 8px var(--mono); }
.cli-release strong { margin: 7px 0 3px; font: 700 14px var(--display); overflow-wrap: anywhere; }
.cli-release small { color: var(--muted); font: 500 8px/1.5 var(--mono); }
.cli-commands { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.output-record { border-radius: 28px; background: var(--ink); color: white; padding-inline: clamp(24px,5vw,70px); }
.output-record pre { color: var(--glacier); font-size: 13px; white-space: pre-wrap; }
.submit-page { width: min(1600px,96vw); }
.submit-head-grid { display: grid; grid-template-columns: minmax(580px,1.12fr) minmax(520px,.88fr); gap: clamp(36px,6vw,100px); align-items: end; }
.submit-head-grid .page-head { padding-bottom: 34px; }
.submit-review-rail { margin-bottom: 34px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.submit-review-rail header { min-height: 36px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 500 8px var(--mono); }
.submit-review-rail header b { color: var(--amber); font-weight: 500; }
.submit-review-rail > div { display: grid; grid-template-columns: 30px 150px 1fr auto; gap: 10px; align-items: center; min-height: 42px; border-top: 1px solid var(--line); }
.submit-review-rail > div span { color: var(--violet); font: 500 8px var(--mono); }
.submit-review-rail > div strong { font: 650 10px var(--mono); }
.submit-review-rail > div i { height: 2px; background: linear-gradient(90deg,var(--violet) 0 12%,var(--line) 12%); }
.submit-review-rail > div em { color: var(--muted); font: 500 7px var(--mono); font-style: normal; }
.submit-review-rail footer { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 9px; padding: 11px 0; border-top: 1px solid var(--ink); color: var(--muted); font: 500 7px var(--mono); }
.submit-review-rail footer b { color: var(--ink); font-size: 8px; }
.rules-page, .ledger-page { width: min(1600px,96vw); }
.rules-head-grid, .ledger-head-grid { display: grid; grid-template-columns: minmax(580px,1.12fr) minmax(520px,.88fr); gap: clamp(36px,6vw,100px); align-items: end; }
.rules-head-grid .page-head, .ledger-head-grid .page-head { padding-bottom: 34px; }
.rules-index, .ledger-index { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 34px; border: 1px solid var(--ink); border-radius: 18px; background: white; overflow: hidden; }
.rules-index-head, .ledger-index-head { grid-column: 1/-1; min-height: 34px; display: flex !important; justify-content: space-between; align-items: center; padding: 0 14px !important; background: var(--ink); color: white; }
.rules-index-head span, .rules-index-head b, .ledger-index-head span, .ledger-index-head b { color: inherit !important; font: 500 8px var(--mono) !important; }
.rules-index-head b, .ledger-index-head b { color: var(--glacier) !important; }
.rules-index > div:not(.rules-index-head), .ledger-index > div:not(.ledger-index-head) { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules-index > div:nth-child(4), .rules-index > div:nth-child(7), .ledger-index > div:nth-child(4), .ledger-index > div:nth-child(7) { border-right: 0; }
.rules-index > div:nth-child(n+5), .ledger-index > div:nth-child(n+5) { border-bottom: 0; }
.rules-index span, .rules-index strong, .rules-index small, .ledger-index span, .ledger-index strong, .ledger-index small { display: block; }
.rules-index span, .ledger-index span { color: var(--muted); font: 500 7px var(--mono); }
.rules-index strong, .ledger-index strong { margin: 5px 0 2px; font: 700 16px var(--mono); }
.rules-index small, .ledger-index small { color: var(--muted); font: 500 7px/1.4 var(--mono); }
.rules-scope-flow { margin-bottom: 34px; border: 1px solid var(--ink); border-radius: 22px; background: var(--ink); color: white; overflow: hidden; }
.rules-scope-flow header { min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 17px; border-bottom: 1px solid #41375d; color: #aaa4bd; font: 500 8px var(--mono); }
.rules-scope-flow header b { color: var(--glacier); font-weight: 500; }
.rules-scope-flow > div { display: grid; grid-template-columns: 30px 115px 1fr auto; gap: 10px; align-items: center; min-height: 54px; padding: 8px 16px; border-bottom: 1px solid #41375d; }
.rules-scope-flow > div span { color: var(--glacier); font: 500 8px var(--mono); }
.rules-scope-flow > div strong { font: 700 11px var(--display); }
.rules-scope-flow > div p { margin: 0; color: #aaa4bd; font: 500 8px var(--mono); }
.rules-scope-flow > div em { color: var(--amber); font: 600 7px var(--mono); font-style: normal; }
.rules-scope-flow footer { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; color: var(--green); font: 500 8px var(--mono); }
.ledger-head-grid { display: block; }
.ledger-head-grid .page-head { max-width: none; display: grid; grid-template-columns: minmax(620px,1.15fr) minmax(360px,.85fr); column-gap: clamp(50px,8vw,150px); align-items: end; }
.ledger-head-grid .page-head .eyebrow { grid-column: 1; justify-self: start; }
.ledger-head-grid .page-head h1 { grid-column: 1; }
.ledger-head-grid .page-head p { grid-column: 2; grid-row: 2; margin: 0 0 14px; padding-left: 24px; border-left: 3px solid var(--violet); }
.ledger-ticker { display: grid; grid-template-columns: repeat(6,1fr); margin-bottom: 34px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ledger-ticker header { grid-column: 1/-1; min-height: 32px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); color: var(--muted); font: 500 8px var(--mono); }
.ledger-ticker header b { color: var(--violet); font-weight: 500; }
.ledger-ticker > div { min-width: 0; padding: 15px 16px; border-right: 1px solid var(--line); }
.ledger-ticker > div:last-child { border-right: 0; }
.ledger-ticker strong, .ledger-ticker span, .ledger-ticker small { display: block; }
.ledger-ticker strong { font: 700 23px var(--mono); }
.ledger-ticker span { margin: 4px 0 2px; color: var(--violet); font: 500 7px var(--mono); }
.ledger-ticker small { color: var(--muted); font: 500 7px var(--mono); }
.rules-sheet { border: 1px solid var(--ink); border-radius: 22px; background: white; overflow: hidden; }
.rules-sheet-head, .rules-row { display: grid; grid-template-columns: minmax(165px,.8fr) minmax(260px,1.25fr) minmax(200px,1fr) minmax(155px,.7fr) minmax(145px,.65fr); gap: 18px; align-items: center; }
.rules-sheet-head { min-height: 42px; padding: 0 18px; background: var(--panel); border-bottom: 1px solid var(--ink); color: var(--muted); font: 500 8px var(--mono); }
.rules-row { min-height: 102px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.rules-row:last-child { border-bottom: 0; }
.rules-row > div { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; }
.rules-row > div span { color: var(--violet); font: 500 9px var(--mono); }
.rules-row > div strong { font: 700 13px var(--display); }
.rules-row p { margin: 0; color: var(--muted); font-size: 10px; }
.rules-row code, .rules-row > b { font: 500 9px/1.45 var(--mono); overflow-wrap: anywhere; }
.rules-row > em { justify-self: start; padding: 6px 8px; border: 1px solid var(--violet); border-radius: 999px; background: var(--violet-soft); color: var(--violet); font: 600 8px var(--mono); font-style: normal; white-space: nowrap; }
.ownership-sheet { width: 100%; padding-block: 32px 16px; }
.ownership-sheet > .panel-head { margin-bottom: 14px; }
.ownership-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--ink); border-radius: 18px; background: white; overflow: hidden; }
.ownership-grid > div { min-width: 0; padding: 19px; border-right: 1px solid var(--ink); }
.ownership-grid > div:last-child { border-right: 0; }
.ownership-grid header { display: flex; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ownership-grid header span { color: var(--violet); font: 500 8px var(--mono); }
.ownership-grid header strong { font: 700 14px var(--display); }
.ownership-grid p { margin: 0; padding: 9px 0; border-bottom: 1px solid #eeecf5; color: var(--ink); font: 500 9px var(--mono); }
.ownership-grid p:last-child { border-bottom: 0; }
.rules-ledgers { width: 100%; display: grid; grid-template-columns: minmax(600px,1.15fr) minmax(420px,.85fr); gap: 14px; padding-block: 16px 52px; }
.rules-ledgers > section { min-width: 0; padding: 22px; border: 1px solid var(--ink); border-radius: 22px; background: white; }
.control-table, .launch-table { margin-top: 12px; }
.control-table, .dependency-table { overflow-x: auto; }
.control-table-head, .control-table > div:not(.control-table-head) { display: grid; grid-template-columns: 125px minmax(220px,1.25fr) 130px 110px; gap: 10px; align-items: center; }
.control-table-head { min-height: 30px; padding: 0 8px; background: var(--panel); color: var(--muted); font: 500 7px var(--mono); }
.control-table > div:not(.control-table-head) { min-height: 41px; padding: 6px 8px; border-bottom: 1px solid #eeecf5; }
.control-table > div:last-child { border-bottom: 0; }
.control-table b, .control-table span, .control-table em, .control-table code { font: 500 8px/1.4 var(--mono); font-style: normal; overflow-wrap: anywhere; }
.control-table b { color: var(--violet); }
.control-table span, .control-table em { color: var(--muted); }
.launch-table > div { display: grid; grid-template-columns: 28px 120px 1fr auto; gap: 9px; align-items: center; min-height: 49px; padding: 7px 4px; border-bottom: 1px solid #eeecf5; }
.launch-table > div > span { color: var(--violet); font: 500 8px var(--mono); }
.launch-table > div > b, .launch-table > div > strong, .launch-table > div > em { font: 500 9px var(--mono); font-style: normal; }
.launch-table > div > em { color: var(--muted); }
.rules-actions { display: flex; gap: 9px; margin-top: 15px; }
.release-matrix { border: 1px solid var(--ink); border-radius: 22px; background: white; overflow-x: auto; }
.release-matrix-head, .release-matrix > div:not(.release-matrix-head) { min-width: 1200px; display: grid; grid-template-columns: 34px 145px minmax(175px,.9fr) 50px 55px 45px 55px minmax(240px,1.2fr) 120px; gap: 11px; align-items: center; }
.release-matrix-head { min-height: 42px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--ink); color: var(--muted); font: 500 8px var(--mono); }
.release-matrix > div:not(.release-matrix-head) { min-height: 86px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.release-matrix > div:last-child { border-bottom: 0; }
.release-matrix > div > span { color: var(--violet); font: 500 9px var(--mono); }
.release-matrix > div > strong { font: 700 13px var(--display); }
.release-matrix > div > code, .release-matrix > div > b, .release-matrix > div > small, .release-matrix > div > em { font: 500 8px/1.45 var(--mono); font-style: normal; overflow-wrap: anywhere; }
.release-matrix > div > em { justify-self: start; padding: 5px 7px; border-radius: 999px; background: var(--amber-soft); color: #8b5700; border: 1px solid var(--amber); }
.ledger-sheets { width: 100%; display: grid; grid-template-columns: minmax(650px,1.15fr) minmax(410px,.85fr); gap: 14px; padding-block: 32px 16px; }
.ledger-sheets > section { min-width: 0; padding: 22px; border: 1px solid var(--ink); border-radius: 22px; background: white; }
.dependency-table { margin-top: 12px; }
.dependency-head, .dependency-table > div:not(.dependency-head) { display: grid; grid-template-columns: 28px 130px minmax(180px,1fr) 130px 100px; gap: 9px; align-items: center; }
.dependency-head { min-height: 30px; padding: 0 7px; background: var(--panel); color: var(--muted); font: 500 7px var(--mono); }
.dependency-table > div:not(.dependency-head) { min-height: 52px; padding: 7px; border-bottom: 1px solid #eeecf5; }
.dependency-table > div:last-child { border-bottom: 0; }
.dependency-table span, .dependency-table strong, .dependency-table code, .dependency-table small, .dependency-table em { font: 500 8px/1.4 var(--mono); font-style: normal; overflow-wrap: anywhere; }
.dependency-table span { color: var(--violet); }
.dependency-table em { color: var(--amber); }
.route-ledger { margin-top: 12px; }
.route-ledger > div { display: grid; grid-template-columns: 26px 90px 74px 42px 1fr; gap: 8px; align-items: center; min-height: 45px; padding: 6px 4px; border-bottom: 1px solid #eeecf5; }
.route-ledger > div:last-child { border-bottom: 0; }
.route-ledger span { color: var(--violet); font: 500 8px var(--mono); }
.route-ledger code, .route-ledger strong, .route-ledger b, .route-ledger small { font: 500 8px/1.35 var(--mono); overflow-wrap: anywhere; }
.route-ledger small { color: var(--muted); }
.ledger-source-sheet { width: 100%; padding-block: 16px; }
.ledger-source-sheet > .panel-head { margin-bottom: 14px; }
.source-contract-grid { display: grid; grid-template-columns: repeat(5,1fr); border: 1px solid var(--ink); border-radius: 18px; background: white; overflow: hidden; }
.source-contract-grid > div { min-width: 0; padding: 18px; border-right: 1px solid var(--ink); }
.source-contract-grid > div:last-child { border-right: 0; }
.source-contract-grid span, .source-contract-grid strong, .source-contract-grid code, .source-contract-grid small { display: block; }
.source-contract-grid span { color: var(--violet); font: 500 8px var(--mono); }
.source-contract-grid strong { margin: 8px 0; font: 700 13px var(--display); }
.source-contract-grid code { min-height: 42px; font-size: 8px; overflow-wrap: anywhere; }
.source-contract-grid small { color: var(--muted); font: 500 8px/1.5 var(--mono); }
.release-sequence { width: 100%; display: grid; grid-template-columns: repeat(4,1fr); padding-block: 16px 52px; border-top: 1px solid var(--ink); }
.release-sequence > div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--ink); }
.release-sequence > div:last-child { border-right: 0; }
.release-sequence span, .release-sequence strong, .release-sequence small { display: block; }
.release-sequence span { color: var(--violet); font: 500 8px var(--mono); }
.release-sequence strong { margin: 7px 0 3px; font: 700 14px var(--display); }
.release-sequence small { color: var(--muted); font: 500 8px/1.5 var(--mono); }
.release-sequence { width: 100%; display: grid; grid-template-columns: repeat(4,1fr); padding-block: 16px 52px; }
.release-sequence > div { min-width: 0; padding: 20px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); border-right: 1px solid var(--line); }
.release-sequence > div:last-child { border-right: 0; }
.release-sequence span, .release-sequence strong, .release-sequence small { display: block; }
.release-sequence span { color: var(--violet); font: 500 8px var(--mono); }
.release-sequence strong { margin: 9px 0 4px; font: 700 14px var(--display); }
.release-sequence small { color: var(--muted); font: 500 8px/1.45 var(--mono); }
.ledger-grid { grid-template-columns: repeat(4,1fr); }
.ledger-grid code { display: block; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.token-sheet { position: relative; padding-inline: 40px; border: 1px solid var(--violet); border-radius: 30px; background: white; overflow: hidden; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.join-shell { max-width: 1120px; }
.join-layout { grid-template-columns: .88fr 1.12fr; }
.join-notes { grid-template-columns: repeat(4,1fr); }

.site-footer { padding: 30px 4vw; display: grid; grid-template-columns: 240px 1fr; gap: 16px 50px; align-items: center; border-top: 1px solid var(--ink); background: #ebe8f8; }
.site-footer > div:first-child { display: grid; grid-template-columns: 42px 1fr; align-items: center; }
.site-footer img { grid-row: 1/3; width: 34px; height: 34px; }
.site-footer strong { font: 700 14px var(--display); }
.site-footer span, .site-footer a { color: var(--muted); font: 500 9px/1.6 var(--mono); }
.footer-links { grid-column: 2; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 18px; }
#toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; padding: 12px 18px; border-radius: 999px; transform: translateY(90px); opacity: 0; background: var(--ink); color: white; font: 600 11px var(--mono); transition: .2s ease; }
#toast.is-on { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: auto auto; }
  .nav-links { grid-column: 1/-1; order: 3; justify-content: flex-start; overflow-x: auto; border-top: 1px solid var(--line); }
  .nav-links a { padding: 13px 0 11px; }
  .nav-socials { justify-self: end; }
  .hero { min-height: 900px; }
  .hero-copy { width: 48vw; }
  .hero-data { width: calc(100% - 330px); grid-template-columns: repeat(3,1fr); }
  .hero-data-head { grid-column: 1/-1; }
  .hero-data > div:nth-child(4) { border-right: 0; }
  .hero-data > div:nth-child(n+5) { border-top: 1px solid var(--line); }
  .workshop-intro { grid-template-columns: 1fr; gap: 24px; }
  .workshop-index { max-width: none; }
  .start-head-grid { grid-template-columns: 1fr; gap: 0; }
  .start-index { margin-bottom: 30px; }
  .start-head-console, .checks-control-stack, .cli-grammar, .rules-scope-flow { margin-bottom: 30px; }
  .submit-head-grid { grid-template-columns: 1fr; gap: 0; }
  .submit-review-rail { margin-bottom: 30px; }
  .start-page .new-layout { grid-template-columns: 1fr; }
  .start-inspector { grid-template-columns: repeat(2,1fr); }
  .start-pipeline { grid-column: 1/-1; }
  .start-boundary { grid-template-columns: repeat(2,1fr); }
  .checks-head-grid { grid-template-columns: 1fr; gap: 0; }
  .checks-index { margin-bottom: 30px; }
  .check-matrix-head, .check-matrix article { min-width: 1050px; }
  .check-matrix { overflow-x: auto; }
  .identity-compare { grid-template-columns: 1fr 70px 1fr; }
  .ratio-card { grid-column: 1/-1; }
  .boundary-ledger { grid-template-columns: repeat(2,1fr); }
  .cli-head-grid { grid-template-columns: 1fr; gap: 0; }
  .cli-index { margin-bottom: 30px; }
  .cli-spec-grid { grid-template-columns: 1fr; }
  .cli-release { grid-template-columns: repeat(2,1fr); }
  .rules-head-grid, .ledger-head-grid { grid-template-columns: 1fr; gap: 0; }
  .rules-index, .ledger-index { margin-bottom: 30px; }
  .ledger-head-grid .page-head { grid-template-columns: 1fr; }
  .ledger-head-grid .page-head p { grid-column: 1; grid-row: auto; max-width: 760px; padding-left: 0; border-left: 0; }
  .ledger-ticker { grid-template-columns: repeat(3,1fr); }
  .ledger-ticker > div:nth-child(3) { border-right: 0; }
  .ledger-ticker > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .rules-sheet { overflow-x: auto; }
  .rules-sheet-head, .rules-row { min-width: 1080px; }
  .ownership-grid { grid-template-columns: repeat(2,1fr); }
  .ownership-grid > div:nth-child(2) { border-right: 0; }
  .ownership-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .rules-ledgers, .ledger-sheets { grid-template-columns: 1fr; }
  .source-contract-grid { grid-template-columns: repeat(3,1fr); }
  .source-contract-grid > div:nth-child(3) { border-right: 0; }
  .source-contract-grid > div:nth-child(-n+3) { border-bottom: 1px solid var(--ink); }
  .release-sequence { grid-template-columns: repeat(2,1fr); }
  .release-sequence > div:nth-child(2) { border-right: 0; }
  .template-layout, .new-layout, .checks-layout, .submit-layout, .cli-layout, .rules-layout, .join-layout { grid-template-columns: 1fr; }
  .matrix-head, .matrix-row { grid-template-columns: 38px minmax(190px,1.3fr) minmax(140px,.8fr) 50px minmax(88px,.6fr) minmax(110px,.7fr) auto; gap: 10px; }
  .workshop-matrix { overflow-x: auto; }
  .matrix-head, .matrix-row { min-width: 900px; }
  .workshop-detail-grid { grid-template-columns: 1fr 1fr; }
  .kit-ledger { grid-column: 1/-1; }
  .workshop-ledger { grid-template-columns: repeat(3,1fr); }
  .workshop-ledger > div:nth-child(3) { border-right: 0; }
  .workshop-ledger > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .process-band { grid-template-columns: repeat(2,1fr); }
  .process-band article:nth-child(2) { border-right: 0; }
  .process-band article:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .capture-strip { grid-template-columns: repeat(2,1fr); }
  .route-art { min-height: 480px; }
  .command-section { grid-template-columns: 1fr; }
  .detail-grid, .ledger-grid, .join-notes { grid-template-columns: repeat(2,1fr); }
  .capture-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .site-header { min-height: 60px; padding: 0 16px; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .nav-links { gap: 20px; margin-inline: -16px; padding-inline: 16px; }
  .nav-links a { flex: 0 0 auto; font-size: 11px; }
  .nav-socials span, .nav-socials a { width: 30px; height: 30px; }
  .hero { min-height: 1040px; }
  .hero::before { width: 100%; background: linear-gradient(180deg, rgba(246,244,255,.98) 0%, rgba(246,244,255,.94) 58%, rgba(246,244,255,.48) 76%, rgba(246,244,255,.18) 100%); }
  .hero-plate { object-position: 67% center; opacity: .62; }
  .hero-copy { width: auto; margin: 0 18px; padding-top: 32px; }
  .hero h1 { margin-top: 20px; font-size: 47px; }
  .hero-copy > p { font-size: 15px; max-width: 300px; }
  .command-block { padding: 12px; grid-template-columns: minmax(0,1fr) auto; }
  .command-block code { white-space: normal; font-size: 10px; }
  .copy-button { padding: 9px 10px; }
  .check-rail { margin-top: 36px; }
  .check-rail span { font-size: 8px; padding: 6px 8px; }
  .hero-data { left: 18px; right: 18px; bottom: 88px; width: auto; grid-template-columns: repeat(2,1fr); }
  .hero-data > div:nth-child(3), .hero-data > div:nth-child(5) { border-right: 0; }
  .hero-data > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .hero-ca { left: 18px; right: 18px; bottom: 15px; width: auto; grid-template-columns: 1fr auto auto; }
  .hero-ca span { grid-column: auto; align-self: center; }
  .hero-ca a { grid-column: auto; }
  .section, .route-shell { width: min(100% - 32px, 1360px); }
  .section { padding-block: 58px; }
  .home-source-board, .workshop, .process-section { padding-block: 42px; }
  .home-source-board { padding-bottom: 0; }
  .section h2 { font-size: 36px; }
  .page-head { padding: 58px 0 30px; }
  .page-head h1 { font-size: 47px; }
  .page-head p { font-size: 15px; }
  .start-head-console pre { min-height: 0; padding: 17px; font-size: 9px; }
  .start-head-console footer { flex-wrap: wrap; }
  .checks-control-stack > div { grid-template-columns: 28px 1fr auto; }
  .checks-control-stack > div > code { grid-column: 2; }
  .checks-control-stack > div > em { grid-column: 3; grid-row: 1/3; }
  .checks-control-stack footer { flex-wrap: wrap; }
  .submit-review-rail > div { grid-template-columns: 28px 1fr auto; }
  .submit-review-rail > div i { grid-column: 2; }
  .submit-review-rail > div em { grid-column: 3; grid-row: 1/3; }
  .submit-review-rail footer { grid-template-columns: auto 1fr; }
  .grammar-line { grid-template-columns: 50px 1fr; padding-inline: 18px 14px; }
  .grammar-flow { padding-inline: 18px 14px; }
  .cli-grammar footer { grid-template-columns: repeat(2,auto); padding-inline: 18px 14px; }
  .rules-scope-flow > div { grid-template-columns: 28px 100px 1fr; }
  .rules-scope-flow > div em { grid-column: 3; }
  .rules-scope-flow footer { flex-wrap: wrap; }
  .ledger-ticker { grid-template-columns: repeat(2,1fr); }
  .ledger-ticker > div:nth-child(3) { border-right: 1px solid var(--line); }
  .ledger-ticker > div:nth-child(2n) { border-right: 0; }
  .ledger-ticker > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .start-index { grid-template-columns: repeat(2,1fr); }
  .start-index > div:nth-child(4) { border-right: 1px solid var(--line); }
  .start-index > div:nth-child(3), .start-index > div:nth-child(5), .start-index > div:nth-child(7) { border-right: 0; }
  .start-index > div:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .start-index > div:nth-child(n+6) { border-bottom: 0; }
  .builder-fields, .builder-toggles { grid-template-columns: 1fr; }
  .start-record { padding: 20px; border-radius: 20px; }
  .start-record-foot { grid-template-columns: 1fr; }
  .start-record-foot > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .start-record-foot > div:last-child { border-bottom: 0; }
  .build-record { grid-template-columns: repeat(2,1fr); }
  .build-record > div:nth-child(2n) { border-right: 0; }
  .build-record > div:nth-child(4n+1):not(.record-wide) { border-right: 1px solid var(--line); }
  .build-record .record-wide { grid-column: 1/-1; border-right: 0; }
  .build-record > div.record-wide { border-bottom: 1px solid var(--line); }
  .build-record > div:nth-last-child(-n+2) { border-bottom: 0; }
  .start-inspector { grid-template-columns: 1fr; }
  .start-pipeline { grid-column: auto; }
  .start-inspector > section { padding: 20px; border-radius: 20px; }
  .start-boundary { grid-template-columns: 1fr; padding-bottom: 38px; }
  .checks-index { grid-template-columns: repeat(2,1fr); }
  .checks-index > div:nth-child(4) { border-right: 1px solid var(--line); }
  .checks-index > div:nth-child(3), .checks-index > div:nth-child(5), .checks-index > div:nth-child(7) { border-right: 0; }
  .checks-index > div:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .checks-index > div:nth-child(n+6) { border-bottom: 0; }
  .check-matrix { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .check-matrix-head { display: none; }
  .check-matrix article { min-width: 0; min-height: 0; grid-template-columns: 1fr; gap: 9px; margin-bottom: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: white; }
  .check-matrix article:last-child { border-bottom: 1px solid var(--line); }
  .check-matrix article > b::before { content: "OBSERVED · "; color: var(--muted); font-size: 7px; }
  .identity-compare { grid-template-columns: 1fr; }
  .identity-vs { min-height: 54px; }
  .ratio-card { grid-column: auto; }
  .boundary-ledger { grid-template-columns: 1fr; padding-bottom: 38px; }
  .cli-index { grid-template-columns: repeat(2,1fr); }
  .cli-index > div:nth-child(4) { border-right: 1px solid var(--line); }
  .cli-index > div:nth-child(3), .cli-index > div:nth-child(5), .cli-index > div:nth-child(7) { border-right: 0; }
  .cli-index > div:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .cli-index > div:nth-child(n+6) { border-bottom: 0; }
  .cli-command-grid { grid-template-columns: 1fr; }
  .cli-command-card { padding: 20px; border-radius: 20px; }
  .cli-card-metrics { grid-template-columns: repeat(2,1fr); }
  .cli-card-metrics > div:nth-child(2) { border-right: 0; }
  .cli-card-metrics > div:nth-child(3), .cli-card-metrics > div:nth-child(4) { border-bottom: 1px solid var(--line); }
  .cli-card-metrics > div:nth-child(3) { border-right: 1px solid var(--line); }
  .cli-card-metrics .metric-wide { grid-column: 1/-1; border-right: 0; border-bottom: 1px solid var(--line); }
  .cli-card-metrics > div:last-child { grid-column: 1/-1; }
  .cli-schema, .cli-pipeline { padding: 19px; border-radius: 20px; }
  .schema-grid { overflow-x: auto; }
  .schema-head, .schema-row { min-width: 620px; }
  .cli-errors { grid-template-columns: 1fr; }
  .cli-release { grid-template-columns: 1fr; padding-bottom: 38px; }
  .rules-index, .ledger-index { grid-template-columns: repeat(2,1fr); }
  .rules-index > div:nth-child(4), .ledger-index > div:nth-child(4) { border-right: 1px solid var(--line); }
  .rules-index > div:nth-child(3), .rules-index > div:nth-child(5), .rules-index > div:nth-child(7), .ledger-index > div:nth-child(3), .ledger-index > div:nth-child(5), .ledger-index > div:nth-child(7) { border-right: 0; }
  .rules-index > div:nth-child(n+5), .ledger-index > div:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .rules-index > div:nth-child(n+6), .ledger-index > div:nth-child(n+6) { border-bottom: 0; }
  .rules-sheet { overflow: visible; border-radius: 16px; }
  .rules-sheet-head { display: none; }
  .rules-row { min-width: 0; grid-template-columns: 1fr; gap: 8px; padding: 17px; }
  .rules-row > b::before { content: "ENFORCEMENT · "; color: var(--muted); font-size: 7px; }
  .ownership-grid { grid-template-columns: 1fr; }
  .ownership-grid > div { border-right: 0; border-bottom: 1px solid var(--ink); }
  .ownership-grid > div:last-child { border-bottom: 0; }
  .rules-ledgers > section, .ledger-sheets > section { padding: 18px; border-radius: 18px; }
  .control-table-head, .control-table > div:not(.control-table-head) { min-width: 630px; }
  .launch-table > div { grid-template-columns: 26px 95px 1fr; }
  .launch-table > div > em { grid-column: 3; }
  .rules-actions { flex-direction: column; }
  .source-contract-grid { grid-template-columns: 1fr; }
  .source-contract-grid > div { border-right: 0; border-bottom: 1px solid var(--ink); }
  .source-contract-grid > div:last-child { border-bottom: 0; }
  .source-contract-grid > div:nth-child(-n+3) { border-bottom: 1px solid var(--ink); }
  .source-contract-grid > div:last-child { border-bottom: 0; }
  .dependency-head, .dependency-table > div:not(.dependency-head) { min-width: 660px; }
  .release-sequence { grid-template-columns: 1fr; padding-bottom: 38px; }
  .release-sequence > div { border-right: 0; border-bottom: 0; }
  .release-sequence > div:last-child { border-bottom: 1px solid var(--ink); }
  .workshop-summary { grid-template-columns: repeat(2,1fr); }
  .workshop-index { grid-template-columns: repeat(2,1fr); }
  .workshop-index > div:nth-child(4) { border-right: 1px solid var(--line); }
  .workshop-index > div:nth-child(3), .workshop-index > div:nth-child(5), .workshop-index > div:nth-child(7) { border-right: 0; }
  .workshop-index > div:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .workshop-index > div:nth-child(n+6) { border-bottom: 0; }
  .workshop-summary > div { border-bottom: 1px solid #41375d; }
  .workshop-summary > div:nth-child(2) { border-right: 0; }
  .workshop-summary > div:nth-child(n+3) { border-bottom: 0; }
  .source-board-head { grid-template-columns: 1fr; gap: 18px; }
  .source-board-head .button { justify-self: start; }
  .home-source-grid { grid-template-columns: repeat(2,1fr); }
  .home-source-grid > div { padding: 15px; }
  .home-source-grid > div:nth-child(2n) { border-right: 0; }
  .home-source-grid > div:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .home-source-grid > div:nth-child(n+7) { border-bottom: 0; }
  .address-ledger { grid-template-columns: 1fr; }
  .address-ledger > div { border-right: 0; border-bottom: 1px solid #41375d; }
  .address-ledger > div:last-child { border-bottom: 0; }
  .workshop-ledger { grid-template-columns: repeat(2,1fr); }
  .workshop-ledger > div { border-bottom: 1px solid var(--line); }
  .workshop-ledger > div:nth-child(3) { border-right: 1px solid var(--line); }
  .workshop-ledger > div:nth-child(2n) { border-right: 0; }
  .workshop-ledger > div:nth-child(n+5) { border-bottom: 0; }
  .workshop { padding-bottom: 24px; }
  .process-section { padding-top: 24px; padding-bottom: 24px; }
  .workshop-matrix { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .matrix-head { display: none; }
  .matrix-row { min-width: 0; min-height: 0; grid-template-columns: 30px 1fr auto; gap: 8px 10px; margin-bottom: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; }
  .matrix-row:last-child { border-bottom: 1px solid var(--line); }
  .matrix-name { grid-column: 2/4; }
  .matrix-stack { grid-column: 2/4; }
  .matrix-count { grid-column: 2; }
  .matrix-gate { grid-column: 2; }
  .matrix-row .chip { grid-column: 3; grid-row: 3/6; align-self: center; }
  .workshop-detail { padding: 20px; border-radius: 20px; }
  .workshop-detail-head { grid-template-columns: 1fr; gap: 16px; }
  .workshop-detail-head .button { justify-self: start; }
  .kit-metrics { grid-template-columns: repeat(2,1fr); }
  .kit-metrics > div:nth-child(2) { border-right: 0; }
  .kit-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workshop-detail-grid { grid-template-columns: 1fr; }
  .kit-ledger { grid-column: auto; }
  .art-compact, .route-art, .art-tall { min-height: 330px; }
  .process-band { grid-template-columns: 1fr; }
  .process-band article { border-right: 0; border-bottom: 1px solid var(--ink); }
  .process-band article:nth-child(2) { border-right: 0; }
  .process-band article:last-child { border-bottom: 0; }
  .capture-strip, .detail-grid, .ledger-grid, .join-notes, .capture-grid { grid-template-columns: 1fr; }
  .tree-panel, .builder-panel, .submit-panel, .join-layout form { padding: 20px; border-radius: 20px; }
  .delta-grid { grid-template-columns: 1fr; }
  .submit-panel { grid-template-columns: 1fr; padding: 24px; }
  .token-sheet { padding: 34px 24px; }
  .site-footer { grid-template-columns: 1fr; padding: 38px 18px; }
  .footer-links { grid-column: 1; justify-content: flex-start; }
}
