.department-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.department-heading h1 {
  font: 400 clamp(1.65rem, 2.5vw + .6rem, 2.85rem)/1.12 var(--pixel);
  letter-spacing: -.055em;
}

.department-heading h1::after {
  display: block;
  content: "";
  width: 2.5rem;
  height: 3px;
  margin-top: .48rem;
  background: var(--accent);
}

.department-heading p {
  max-width: 60ch;
  margin-top: .75rem;
  color: var(--muted);
  line-height: 1.5;
}

.panel-header h2 { font: 400 13px/1.3 var(--pixel); letter-spacing: -.03em; }

.department-owner {
  display: flex;
  align-items: center;
  gap: .62rem;
  min-height: 3rem;
  max-width: 100%;
  padding: .3rem .7rem .3rem .3rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.department-owner strong, .department-owner small, .department-owner div > span { display: block; }
.department-owner strong { font-size: .88rem; }
.department-owner small, .department-owner div > span { color: var(--muted); font: .7rem / 1.4 var(--mono); }
.department-owner[href]:hover { border-color: var(--accent); }
.department-owner[href] > svg { color: var(--accent); }

.department-portrait {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  image-rendering: pixelated;
}

#launch-view { container-type: inline-size; }
.token-workbench { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 1rem; align-items: start; }
.token-fields { display: grid; gap: .7rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.token-fields select { min-height: 2.5rem; width: 100%; padding: .45rem .55rem; background: var(--well); border: 1px solid var(--rule); color: var(--ink); }
.token-field-title { display: flex; align-items: baseline; gap: .45rem; }
.token-field-title small { font: .7rem/1.3 var(--mono); color: var(--muted); }
#token-deploy-form, .token-review, .token-review-details { display: grid; gap: .75rem; }
.token-wallet-note { color: var(--muted); font-size: .82rem; }
.token-review-details { padding-inline-start: .75rem; border-inline-start: 2px solid var(--accent); }
.token-review-details p { font-size: .83rem; }
.token-mint-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-block: .7rem .2rem; }
.launch-proof-tools { margin-top: 1rem; }
.launch-proof-tools > summary { width: fit-content; margin-bottom: .7rem; padding: .55rem .8rem; border: 1px solid var(--rule); background: var(--surface-raised); font-size: .88rem; font-weight: 650; }
.deployment-feed-list { list-style: none; margin: 0; padding: 0; }
.deployment-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding: .65rem .9rem; }
.deployment-row + .deployment-row { border-top: 1px solid var(--line); }
.deployment-identity, .deployment-evidence { display: flex; align-items: center; min-width: 0; gap: .35rem .75rem; }
.deployment-name, .deployment-evidence { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .55rem; }
.deployment-name { min-width: 0; overflow-wrap: anywhere; }
.deployment-artwork { display: block; flex: none; object-fit: cover; background: var(--surface-raised); border: 1px solid var(--line); }
.deployment-market { display: grid; gap: .2rem; min-width: 0; }
.deployment-market-values { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0; font-family: var(--mono); }
.deployment-market-values > div { min-width: 0; }
.deployment-market-values dt, .deployment-market-source { color: var(--muted); font-size: .72rem; }
.deployment-market-values dd { margin: 0; font-size: .85rem; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.deployment-evidence time { font: .72rem var(--mono); }

@media (max-width: 600px) {
  .deployment-row { align-items: flex-start; flex-direction: column; }
}

.inline-action { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.coin-guide { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); margin-bottom: 1.5rem; border: 1px solid var(--rule); background: var(--surface); }
.coin-guide-intro, .coin-guide-details { padding: clamp(.9rem, 2.75vw, 1.8rem); }
.coin-guide-intro { background: var(--surface-raised); border-inline-start: 3px solid var(--accent); }
.coin-guide-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .6rem; }
.coin-guide-heading h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.2; }
.coin-stage { padding: .2rem .4rem; border: 1px solid var(--rule); color: var(--accent); font: .72rem/1.35 var(--mono); }
.coin-guide p { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.coin-guide-address { margin: 1rem 0 .35rem; padding: .6rem .7rem; border: 1px solid var(--line); background: var(--well); }
[data-coin-address] .fact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .65rem; }
[data-coin-address] .digest { grid-column: 1; }
[data-coin-address] .copy-button { grid-column: 2; grid-row: 1 / 3; }
.coin-guide-details h3 { margin-bottom: .25rem; font-size: .95rem; }
.coin-guide-details > div + div { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.guide-section-title { margin-bottom: .65rem; font-size: 1.2rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr); align-items: start; gap: 1rem; }
.guide-flow { display: grid; margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); }
.guide-flow li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem 1rem; padding: clamp(.85rem, 2.2vw, 1.4rem); }
.guide-flow li + li { border-top: 1px solid var(--line); }
.guide-step { display: grid; place-items: center; align-self: start; min-height: 2rem; border: 1px solid var(--rule); background: var(--well); color: var(--accent); font: .8rem/1 var(--mono); }
.guide-flow h3 { font-size: 1rem; margin-bottom: .35rem; }
.guide-flow small { margin-left: .3rem; color: var(--muted); font: .68rem/1.3 var(--mono); }
.guide-flow p, .guide-wallet p, .guide-wallet li { color: #c7d2e4; font-size: .88rem; line-height: 1.55; }
.guide-flow .text-button { margin-top: .35rem; }
.guide-wallet ol { padding-inline-start: 1.15rem; margin-block: .8rem; }
.guide-wallet li + li { margin-top: .35rem; }
.guide-wallet p:last-child { padding-top: .8rem; border-top: 1px solid var(--line); }
.guide-sidebar { display: grid; gap: 1rem; }
.guide-crew { list-style: none; padding: 0; margin: 0; }
.guide-crew li + li { border-top: 1px solid var(--line); }
.guide-crew-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; }
.guide-crew-link:hover { background: var(--surface-raised); }
.guide-crew-link:focus-visible { outline-offset: -3px; }
.guide-crew-link strong { display: block; font-size: .9rem; }
.guide-crew-link span { display: block; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.guide-crew-link svg { color: var(--accent); }

.proof-demo {
  margin-bottom: 1rem;
  padding: clamp(.75rem, 1.8vw, 1.2rem);
  background: var(--surface-raised);
}
.proof-demo-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.2rem; }
.proof-demo-copy h2, .guide-evidence h2 { font-size: 1.15rem; line-height: 1.3; }
.proof-demo-copy p, .proof-demo-note, .guide-evidence p { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.proof-demo-copy p { margin-top: .35rem; }
.proof-demo-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .9rem 0 .6rem; border: 1px solid var(--rule); background: var(--well); }
.proof-demo-case { display: grid; justify-items: start; align-items: start; grid-template-rows: auto auto 1fr auto; padding: clamp(.6rem, 1.5vw, 1rem); }
.proof-demo-case + .proof-demo-case { border-inline-start: 1px solid var(--rule); }
.proof-demo-case h3 { font-size: .8rem; font-weight: 650; color: var(--muted); }
.proof-demo-case code { font: 650 clamp(1.2rem, 2.7vw, 2.15rem)/1.45 var(--mono); }
.proof-demo-verdict { margin: .05rem 0 .55rem; font-size: .84rem; font-weight: 650; }
.proof-demo-case .button { min-height: 38px; max-width: 100%; white-space: normal; }
.guide-evidence { margin-top: 1.6rem; }
.guide-evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .65rem; }
.guide-evidence article { padding: 1rem; }
.guide-evidence h3 { margin-bottom: .4rem; font-size: .93rem; }

@media (max-width: 730px) {
  .coin-guide, .guide-layout, .guide-evidence-grid, .token-workbench { grid-template-columns: minmax(0, 1fr); }
}

#launch-workbench {
  display: grid;
  grid-template-columns: 8.6rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 2vw, 1.7rem);
}

#launch-workbench .studio-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(13rem, 1fr);
  align-items: start;
  gap: 1rem;
}

.launch-steps {
  min-width: 0;
  border-inline-end: 1px solid var(--line);
  padding-inline-end: .9rem;
}

.launch-steps ol, ol.launch-steps {
  list-style: none;
  margin: 0;
  padding-block: .2rem;
  padding-inline-start: 0;
}

.launch-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 3.15rem;
  padding: .45rem .55rem;
  color: var(--muted);
  font: .85rem / 1.35 var(--mono);
}

.launch-steps li::before {
  z-index: 1;
  flex: 0 0 .8rem;
  width: .8rem;
  height: .8rem;
  border: 2px solid var(--rule);
  background: var(--background);
  content: "";
}

.launch-steps li:not(:last-child)::after {
  position: absolute;
  inset-block-start: calc(50% + .4rem);
  inset-inline-start: .91rem;
  width: 1px;
  height: calc(100% - .8rem);
  background: var(--line);
  content: "";
}

.launch-steps li:is(.complete, .is-complete)::before {
  background: var(--success);
  border-color: var(--success);
}

.launch-steps li:is([aria-current="step"], .is-active) {
  background: color-mix(in srgb, var(--surface) 87%, var(--accent));
  color: var(--accent);
  font-weight: 700;
}

.launch-steps li:is([aria-current="step"], .is-active)::before {
  border-color: var(--accent);
  background: var(--accent);
}

#launch-workbench .manifest .panel-body {
  gap: 1rem;
  padding: clamp(.9rem, 2vw, 1.35rem);
}

#launch-workbench :is(.form-line input, textarea, input[name="anchorSigner"], .packet-form input) {
  min-height: 2.8rem;
  font-size: .95rem;
}

#launch-workbench .manifest textarea { min-height: 7.2rem; }
#launch-workbench .manifest label { color: var(--ink); font-size: .87rem; }
#launch-workbench .manifest .form-line { column-gap: .8rem; }
#launch-workbench .manifest .form-actions > .primary, #launch-workbench .packet-form .primary {
  min-height: 2.8rem;
}

#launch-workbench .manifest .form-actions > .primary {
  flex: 1 0 min(100%, 9rem);
  justify-content: center;
}

#launch-workbench .packet .instrument {
  padding: .75rem 1rem;
  border-width: 0 0 1px;
  border-style: solid;
  background: var(--well);
}

#launch-workbench .packet .instrument-top { margin-bottom: .55rem; }
#launch-workbench .packet .commitment-matrix { gap: 2px; max-width: 22rem; }
#launch-workbench .packet .commitment-matrix i { min-height: 1.05rem; font-size: .65rem; }
#launch-workbench .packet .instrument-code { margin: .55rem 0 0; }
#launch-workbench .packet-empty {
  min-height: 8.5rem;
  place-content: start;
  align-content: center;
  justify-items: start;
  border: 1px solid var(--line);
  text-align: start;
}
#launch-workbench .packet-empty-mark { color: var(--accent); background: var(--surface-raised); }

@container (max-width: 52rem) {
  #launch-workbench { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .launch-steps {
    padding-inline-end: 0;
    border-inline-end: 0;
    border-block-end: 1px solid var(--line);
  }
  .launch-steps ol, ol.launch-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
  }
  .launch-steps li { min-height: 2.65rem; }
  .launch-steps li::after { display: none; }
}

@container (max-width: 40rem) {
  #launch-workbench .studio-grid { grid-template-columns: minmax(0, 1fr); }
}

@container (max-width: 24rem) {
  .launch-steps li { gap: .4rem; padding-inline: .35rem; font-size: .75rem; }
  .launch-steps li::before { width: .65rem; height: .65rem; flex-basis: .65rem; }
  #launch-workbench .manifest .form-line { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}
