:root {
  color-scheme: dark;
  --ink: #f0f6fc;
  --muted: #8b949e;
  --paper: #0d1117;
  --card: #161b22;
  --surface: #21262d;
  --inset: #010409;
  --line: #30363d;
  --line-muted: #21262d;
  --accent: #58a6ff;
  --control-strong: #f0f6fc;
  --control-strong-ink: #0d1117;
  --success: #3fb950;
  --success-bg: rgba(46, 160, 67, .15);
  --attention: #d29922;
  --attention-bg: rgba(187, 128, 9, .15);
  --red: #f85149;
  --red-bg: rgba(248, 81, 73, .12);
  --shadow: 0 8px 24px rgba(1, 4, 9, .35);
}

html {
  background: var(--paper);
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--control-strong-ink);
  background: var(--accent);
}

.shell {
  width: min(1200px, calc(100% - 48px));
}

header {
  min-height: 64px;
  border-bottom-color: var(--line);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-link.active {
  color: var(--ink);
  background: var(--surface);
}

.account-name {
  max-width: 180px;
  overflow: hidden;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--card);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.logout-button:hover { color: var(--red); border-color: var(--red); }

.brand {
  gap: 10px;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--control-strong-ink);
  background: var(--control-strong);
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.brand strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .02em;
}

.header-tag,
.live {
  padding: 6px 9px;
  border-color: var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--card);
  font-size: 9px;
  font-weight: 600;
}

.back {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}

.back:hover {
  color: var(--ink);
}

.hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  gap: 64px;
  padding: 72px 0 56px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
.project-hero h1 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -.045em;
}

h1 {
  max-width: 820px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
}

h1 em {
  color: inherit;
  font-style: normal;
  font-weight: inherit;
}

.hero-copy > p,
.description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 650;
  transition: background-color .15s, border-color .15s, color .15s;
}

.button.primary {
  border-color: var(--control-strong);
  color: var(--control-strong-ink);
  background: var(--control-strong);
}

.button.primary:hover {
  background: #ffffff;
}

.button:disabled {
  color: var(--muted);
  border-color: var(--line);
  background: var(--surface);
  cursor: not-allowed;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--card);
}

.button.secondary:hover {
  background: var(--surface);
}

.stats {
  margin-bottom: 24px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: none;
}

.stat {
  padding: 16px 18px;
}

.stat strong {
  font-family: inherit;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.stat span {
  color: var(--muted);
  font-size: 9px;
}

.workflow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-bottom: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.step {
  min-height: 126px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.step:last-child {
  border-right: 0;
}

.step b {
  display: block;
  width: auto;
  height: auto;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 600;
}

.step strong {
  margin-top: 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
}

.step p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.projects {
  padding-bottom: 88px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.section-head p {
  color: var(--muted);
  font-size: 10px;
}

.search {
  height: 38px;
  padding: 0 12px;
  border-color: var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  font-size: 10px;
}

.search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, .2);
}

.project-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 380px));
  gap: 12px;
}

.project-card {
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .15s;
}

.project-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.project-summary {
  padding: 17px 17px 14px;
}

.project-kicker {
  color: var(--muted);
  font-size: 8px;
}

.project-summary h3 {
  margin: 11px 0 7px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.project-summary > p {
  color: var(--muted);
  font-size: 9px;
}

.meta span,
.delegation-meta span {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
}

.latest-change {
  border-top-color: var(--line);
}

.latest-change strong {
  color: var(--ink);
}

.latest-change-label b,
.delegation-status,
.change-status {
  border: 1px solid transparent;
  border-radius: 5px;
}

.latest-change-label b.accepted,
.delegation-status.accepted,
.change-status.accepted {
  color: var(--success);
  border-color: rgba(63, 185, 80, .4);
  background: var(--success-bg);
}

.delegation-status.queued {
  color: var(--attention);
  border-color: rgba(210, 153, 34, .4);
  background: var(--attention-bg);
}

.latest-change-label b.rejected,
.delegation-status.revision_requested,
.change-status.rejected {
  color: var(--red);
  border-color: rgba(248, 81, 73, .4);
  background: var(--red-bg);
}

.project-actions {
  padding: 0 17px 17px;
}

footer {
  border-top-color: var(--line);
  color: var(--muted);
}

.toast {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--inset);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .16);
}

.loading,
.error {
  border-radius: 10px;
  background: var(--card);
}

.project-hero {
  grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr);
  gap: 36px;
  padding: 48px 0 28px;
}

.project-hero h1 {
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.05;
}

.revision code,
.revision-flow code {
  color: var(--ink);
}

.preview {
  min-height: 310px;
  border-radius: 10px;
  box-shadow: none;
}

.preview-empty {
  display: grid;
  min-height: 310px;
  margin: 0;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.live {
  color: var(--ink);
}

.content-grid {
  gap: 24px;
}

.delegation-card,
.change-card {
  border-radius: 10px;
  background: var(--card);
  box-shadow: none;
}

.delegation-card h3,
.change-card h3 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -.015em;
}

.delegation-card h3 {
  font-size: 14px;
}

.change-card h3 {
  font-size: 16px;
}

.delegation-flow strong {
  color: var(--ink);
}

.audit-grid {
  background: var(--surface);
}

.file,
.check {
  border-radius: 5px;
  background: var(--card);
}

pre {
  color: var(--ink);
  background: var(--inset);
}

summary {
  color: var(--ink);
}

.sidebar {
  border-radius: 10px;
  background: var(--card);
}

.sidebar h2 {
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
}

.editable-files code {
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
}

.project-skills {
  display: grid;
  gap: 7px;
}

.project-skill {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.project-skill strong,
.project-skill span {
  display: block;
}

.project-skill strong {
  font-size: 13px;
  font-weight: 650;
}

.project-skill span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.empty-history {
  border-radius: 10px;
}

/* Readability scale: keep operational and audit text comfortably legible. */
.brand small {
  font-size: 12px;
}

.header-tag,
.live {
  font-size: 13px;
}

.back {
  font-size: 14px;
}

.eyebrow {
  font-size: 12px;
}

.hero-copy > p,
.description {
  font-size: 17px;
  line-height: 1.8;
}

.button {
  min-height: 42px;
  font-size: 14px;
}

.stat span {
  font-size: 14px;
}

.step b {
  font-size: 12px;
}

.step strong {
  font-size: 17px;
}

.step p {
  font-size: 14px;
  line-height: 1.75;
}

.section-head p,
.count {
  font-size: 14px;
  line-height: 1.7;
}

.search {
  height: 42px;
  font-size: 15px;
}

.project-kicker {
  font-size: 12px;
}

.project-summary > p {
  font-size: 14px;
  line-height: 1.75;
}

.meta span,
.delegation-meta span {
  font-size: 13px;
}

.latest-change-label,
.latest-change-label b {
  font-size: 12px;
}

.latest-change strong {
  font-size: 14px;
  line-height: 1.6;
}

.latest-change small {
  font-size: 12px;
}

footer {
  font-size: 13px;
}

.revision {
  font-size: 13px;
}

.revision code {
  font-size: 13px;
}

.delegation-status,
.change-status {
  font-size: 12px;
}

.delegation-card time {
  font-size: 12px;
}

.delegation-card h3 {
  font-size: 17px;
  line-height: 1.5;
}

.delegation-flow {
  font-size: 14px;
  line-height: 1.7;
}

.delegation-usage {
  font-size: 13px;
  line-height: 1.7;
}

.delegation-feedback {
  font-size: 14px;
  line-height: 1.7;
}

.change-time {
  font-size: 12px;
}

.change-card h3 {
  font-size: 19px;
  line-height: 1.45;
}

.outcome {
  font-size: 14px;
  line-height: 1.75;
}

.byline {
  font-size: 13px;
}

.audit-label,
.sidebar-label {
  font-size: 12px;
}

.file,
.check {
  font-size: 13px;
  line-height: 1.6;
}

.hashes {
  font-size: 11px;
}

.finding {
  font-size: 13px;
}

.revision-flow,
.revision-flow code {
  font-size: 12px;
}

summary,
.sidebar p {
  font-size: 14px;
  line-height: 1.75;
}

pre,
.editable-files code {
  font-size: 13px;
}

.empty-history,
.loading,
.error {
  font-size: 15px;
}

.philosophy-page header,
.philosophy-page footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.philosophy-page .shell {
  margin: 0 auto;
}

.philosophy-page .brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.philosophy-page .brand strong,
.philosophy-page .brand small {
  display: block;
}

.philosophy-page main {
  padding-bottom: 88px;
}

.philosophy-hero {
  max-width: 980px;
  padding: 88px 0 68px;
}

.philosophy-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
}

.philosophy-lead {
  max-width: 900px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.thesis {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 96px;
  padding: 28px 30px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--inset);
}

.thesis span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.thesis strong {
  max-width: 850px;
  font-size: 22px;
  font-weight: 550;
  line-height: 1.55;
}

.philosophy-section {
  margin-bottom: 104px;
}

.kit-install {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--inset);
}

.kit-install > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.kit-install code,
.kit-component code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.kit-install > div code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}

.kit-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.kit-install > p {
  margin: 0;
  padding: 14px 20px;
  color: var(--muted);
  background: var(--inset);
  font-size: 13px;
  line-height: 1.65;
}

.kit-install > p code {
  color: var(--ink);
}

.kit-components {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.kit-component {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.kit-component:last-child {
  border-right: 0;
}

.kit-component-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kit-component-head b {
  color: var(--muted);
  font-size: 12px;
}

.kit-component-head code {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
  font-size: 11px;
}

.kit-component h3 {
  margin: 30px 0 11px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.kit-component p,
.kit-component li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.kit-component p {
  margin: 0;
}

.kit-component ul {
  margin: 18px 0 0;
  padding: 16px 0 0 18px;
  border-top: 1px solid var(--line);
}

.kit-component li + li {
  margin-top: 6px;
}

.kit-component li code {
  color: var(--ink);
  font-size: 12px;
}

.kit-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.kit-reference-heading {
  max-width: 760px;
  margin: 62px 0 22px;
}

.kit-reference-heading .eyebrow {
  margin-bottom: 10px;
}

.kit-reference-heading h3 {
  margin: 0;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -.03em;
}

.kit-reference-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.kit-reference {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.kit-reference-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.kit-reference-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.kit-reference-title span {
  color: var(--muted);
  font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
}

.kit-reference-title strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.capability-list {
  margin: 0;
}

.capability-list > div {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.capability-list > div:last-child {
  border-bottom: 0;
}

.capability-list dt,
.capability-list dd {
  margin: 0;
}

.capability-list dt code {
  color: var(--ink);
  font: 600 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.capability-list dd {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
}

.capability-list .featured-capability {
  border-left: 2px solid var(--accent);
  background: var(--surface);
}

.capability-list .dynamic-capability {
  background: var(--surface);
}

.capability-list .featured-capability dt code {
  color: var(--ink);
}

.kit-flow > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.kit-flow b,
.kit-flow strong,
.kit-flow span {
  display: block;
}

.kit-flow b {
  color: var(--muted);
  font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.kit-flow span {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.kit-flow strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
}

.philosophy-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.philosophy-heading h2,
.coexistence h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.philosophy-heading > p:last-child,
.coexistence p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.comparison {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.comparison-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
}

.comparison-row + .comparison-row {
  border-top: 1px solid var(--line);
}

.comparison-row > * {
  min-width: 0;
  margin: 0;
  padding: 20px;
}

.comparison-row > * + * {
  border-left: 1px solid var(--line);
}

.comparison-head {
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 650;
}

.comparison-row strong {
  font-size: 14px;
  font-weight: 650;
}

.comparison-row p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.comparison-row p:last-child {
  color: var(--ink);
  background: var(--surface);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.advantage {
  min-height: 250px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.advantage:nth-child(3n) {
  border-right: 0;
}

.advantage:nth-child(n+4) {
  border-bottom: 0;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid .advantage:nth-child(3n) {
  border-right: 1px solid var(--line);
}

.feature-grid .advantage:nth-child(2n) {
  border-right: 0;
}

.feature-grid .advantage:nth-child(3),
.feature-grid .advantage:nth-child(4) {
  border-bottom: 0;
}

.advantage b {
  color: var(--muted);
  font-size: 12px;
}

.advantage h3 {
  margin: 38px 0 12px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.advantage p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.coexistence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--inset);
}

.coexistence p {
  margin-top: 0;
  color: var(--muted);
}

.coexistence .button {
  margin-top: 26px;
  color: var(--ink);
}

.philosophy-page footer {
  min-height: 78px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 32px, 680px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px 0 42px;
  }

  .project-hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .workflow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .sidebar {
    position: static;
  }

  .philosophy-hero {
    padding: 64px 0 52px;
  }

  .thesis {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    grid-template-columns: 130px 1fr 1fr;
  }

  .advantage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .advantage:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .advantage:nth-child(2n) {
    border-right: 0;
  }

  .advantage:nth-child(n+4) {
    border-bottom: 1px solid var(--line);
  }

  .advantage:nth-child(n+5) {
    border-bottom: 0;
  }

  .coexistence {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .kit-components {
    grid-template-columns: 1fr;
  }

  .kit-component {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .kit-component:last-child {
    border-bottom: 0;
  }

  .kit-flow {
    grid-template-columns: 1fr 1fr;
  }

  .kit-reference {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shell {
    width: calc(100% - 24px);
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(34px, 9.7vw, 38px);
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .hero-actions,
  .actions,
  .project-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .preview,
  .preview iframe {
    min-height: 220px;
  }

  .audit-grid {
    grid-template-columns: 1fr;
  }

  .audit-block + .audit-block {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .philosophy-page header {
    align-items: center;
  }

  .philosophy-page .brand small {
    display: none;
  }

  .nav-link {
    padding: 7px 8px;
    font-size: 12px;
  }

  .philosophy-hero {
    padding: 52px 0 44px;
  }

  .philosophy-hero h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .philosophy-lead {
    margin-top: 24px;
    font-size: 17px;
  }

  .thesis {
    margin-bottom: 72px;
    padding: 24px;
  }

  .thesis strong {
    font-size: 19px;
  }

  .philosophy-section {
    margin-bottom: 76px;
  }

  .comparison-head {
    display: none;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .comparison-row > * {
    padding: 0;
  }

  .comparison-row > * + * {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .comparison-row strong {
    font-size: 16px;
  }

  .comparison-row p::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .08em;
  }

  .comparison-row p:nth-child(2)::before {
    content: "PRIVATE SESSION";
  }

  .comparison-row p:nth-child(3)::before {
    content: "CLOUD SERVER";
  }

  .comparison-row p:last-child {
    background: transparent;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .advantage,
  .advantage:nth-child(2n),
  .advantage:nth-child(3n),
  .advantage:nth-child(n+4),
  .advantage:nth-child(n+5) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .advantage:last-child {
    border-bottom: 0;
  }

  .advantage h3 {
    margin-top: 24px;
  }

  .coexistence {
    padding: 28px 24px;
  }

  .kit-install > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .kit-component {
    padding: 21px;
  }

  .kit-flow {
    grid-template-columns: 1fr;
  }
}

/* Project operations board */
.board-section {
  padding-bottom: 72px;
}

.board-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin: 12px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.board-heading .eyebrow {
  margin-bottom: 7px;
}

.board-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.board-heading > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: right;
}

.board-section .content-grid {
  display: block;
  padding-bottom: 0;
}

.board-lane {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.board-panel[hidden] {
  display: none;
}

.board-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.board-tab {
  position: relative;
  min-width: 112px;
  min-height: 43px;
  padding: 0 16px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.board-tab::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: transparent;
  content: "";
}

.board-tab:hover {
  color: var(--ink);
  background: var(--surface);
}

.board-tab.active {
  color: var(--ink);
}

.board-tab.active::after {
  background: var(--inset);
}

.board-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.lane-head {
  display: flex;
  min-height: 66px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 13px;
  border-bottom: 1px solid var(--line);
}

.lane-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -.01em;
}

.lane-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.lane-head .count {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--card);
  font-size: 11px;
  line-height: 1.4;
}

.board-lane .delegation-list,
.board-lane .timeline {
  gap: 8px;
  margin-top: 10px;
}

.board-lane .delegation-card,
.board-lane .change-card,
.board-lane .empty-history {
  border-color: var(--line);
  border-radius: 4px;
  box-shadow: none;
}

.board-lane .delegation-card {
  padding: 13px;
}

.board-lane .delegation-card h3 {
  margin: 10px 0 6px;
  font-size: 15px;
  line-height: 1.45;
}

.board-lane .delegation-meta {
  margin-top: 9px;
}

.board-lane .delegation-meta span {
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.board-lane .delegation-usage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 8px;
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.5;
}

.board-lane .delegation-flow {
  font-size: 12px;
}

.board-lane .delegation-feedback {
  margin-top: 9px;
  padding-top: 8px;
  font-size: 12px;
  line-height: 1.55;
}

.board-lane .change-main {
  padding: 15px 16px 13px;
}

.board-lane .change-card h3 {
  margin: 11px 0 6px;
  font-size: 17px;
}

.board-lane .outcome {
  font-size: 13px;
  line-height: 1.65;
}

.board-lane .byline {
  margin-top: 10px;
  font-size: 12px;
}

.board-lane .audit-block {
  padding: 12px 15px;
}

.board-lane .file,
.board-lane .check {
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.board-lane .hashes {
  font-size: 9px;
}

.board-lane .revision-flow {
  padding: 9px 15px;
  font-size: 10px;
}

.board-lane .revision-flow code {
  font-size: 10px;
}

.board-lane summary {
  padding: 9px 15px;
  font-size: 12px;
}

.boundary-lane {
  background: var(--surface);
}

.boundary-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(220px, 1fr));
  gap: 0;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
}

.boundary-block {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.boundary-block:last-child {
  border-right: 0;
}

.boundary-block .sidebar-label {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 11px;
}

.boundary-note,
.boundary-block > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.boundary-note {
  margin-bottom: 10px;
}

.skills-notice {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.skills-lane .project-skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.skills-lane .project-skill {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  cursor: default;
}

.skills-lane .project-skill > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.skills-lane .project-skill strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.skills-lane .project-skill span {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: var(--surface);
  font-size: 9px;
}

.skills-lane .project-skill p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.skills-lane .empty-skill {
  color: var(--muted);
  font-size: 12px;
}

.boundary-lane .editable-files {
  gap: 5px;
}

.boundary-lane .editable-files code {
  padding: 6px 7px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.project-hero,
.stats,
.preview {
  border-radius: 5px;
}

.project-hero {
  gap: 28px;
  padding-top: 38px;
}

.project-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.stats {
  margin-bottom: 28px;
}

@media (max-width: 1040px) {
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .boundary-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .boundary-block:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .board-heading {
    display: block;
  }

  .board-heading > p {
    margin-top: 10px;
    text-align: left;
  }

  .board-tab {
    min-width: 92px;
    padding: 0 12px;
  }

  .board-lane {
    padding: 12px;
  }

  .skills-lane .project-skills {
    grid-template-columns: 1fr;
  }

  .audit-grid {
    grid-template-columns: 1fr;
  }
}
