:root {
  color-scheme: light;
  --bg: #f7f1e8;
  --paper: #f7f1e8;
  --paper-2: #fffaf1;
  --panel: #fffdf8;
  --panel-2: #fff5de;
  --field: #fffaf1;
  --ink: #151111;
  --text: #201a18;
  --muted: #6f6761;
  --line: #201a18;
  --line-strong: #201a18;
  --green: #179b92;
  --green-dark: #0c655f;
  --teal: #179b92;
  --yellow: #f4c84f;
  --pink: #f0449b;
  --coral: #f06a3d;
  --blue: #163f72;
  --white: #fffdf8;
  --shadow: 8px 8px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(21, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 17, 17, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::selection {
  background: var(--yellow);
  color: var(--ink);
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--ink) 75%),
    linear-gradient(-45deg, transparent 75%, var(--ink) 75%);
  background-size: 6px 6px;
  background-position: 0 0, 0 3px, 3px -3px, -3px 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: var(--green-dark);
}

.studio-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  border-bottom: 2px solid var(--ink);
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(18px);
  padding: 10px clamp(14px, 3vw, 34px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
}

.brand-lockup img {
  width: 92px;
  height: auto;
  display: block;
}

.brand-lockup span {
  border-left: 2px solid var(--ink);
  padding-left: 10px;
  white-space: nowrap;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.workspace {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 34px);
}

.hero-panel,
.wizard-shell,
.panel,
.action-bar {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 14px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto 18px;
  padding: 14px;
  box-shadow: 6px 6px 0 var(--teal, var(--green));
}

.screen-copy {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.notice-panel {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #eef8f4;
  box-shadow: 5px 5px 0 var(--green);
  padding: 14px;
}

.notice-panel strong {
  color: var(--green-dark);
  font-size: 14px;
}

.notice-panel p {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.tutorial-page .workspace {
  width: min(100%, 1040px);
}

.tutorial-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.tutorial-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tutorial-section {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.tutorial-card {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--green);
  padding: 16px;
}

.tutorial-card h2,
.tutorial-card h3 {
  margin-bottom: 8px;
}

.tutorial-card p,
.tutorial-card li {
  color: var(--muted);
  line-height: 1.55;
}

.tutorial-card strong {
  color: var(--ink);
}

.tutorial-card ol,
.tutorial-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-panel {
  display: grid;
  gap: 14px;
}

.faq-search-label {
  max-width: 720px;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-group {
  display: grid;
  gap: 10px;
}

.faq-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.faq-item {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.faq-item.faq-match {
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--pink);
}

.faq-item summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  border-top: 1px solid rgba(32, 26, 24, 0.22);
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.platform-admin-workspace {
  display: grid;
  gap: 14px;
}

.platform-admin-hero {
  max-width: none;
}

.platform-card {
  display: grid;
  gap: 14px;
}

.platform-router-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.owner-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.owner-pill[data-state="owner"] {
  background: var(--green);
  color: var(--white);
}

.owner-pill[data-state="readonly"] {
  background: var(--yellow);
  color: var(--ink);
}

.platform-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.platform-stat-grid div {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px;
}

.platform-stat-grid dd {
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1;
}

.platform-admin-grid {
  align-items: start;
}

.split-list,
.platform-source-list {
  display: grid;
  gap: 10px;
}

.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--field);
  padding: 10px;
}

.split-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 850;
}

.split-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.platform-source-list {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.platform-source-card {
  display: grid;
  gap: 6px;
  min-height: 132px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.platform-source-card:hover,
.platform-source-card:focus-visible {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--pink);
}

.platform-source-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.platform-source-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.code-sample {
  display: block;
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--yellow);
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre;
}

.eyebrow {
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  max-width: 100%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--pink);
  color: var(--paper) !important;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

h2 {
  max-width: 860px;
  font-size: 24px;
  line-height: 1.18;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
}

.primary-action,
.secondary-action,
.mini-button,
.ghost-link,
.nav-tab,
.segment,
.step-pill {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.primary-action,
.secondary-action,
.mini-button,
.ghost-link,
.nav-tab,
.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.primary-action {
  border: 2px solid var(--ink);
  background: var(--pink);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.template-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: start;
  min-height: 32px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--yellow) !important;
  color: var(--ink) !important;
  padding: 0 11px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
}

.tutorial-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  width: fit-content;
  border-radius: 999px;
  background: var(--pink) !important;
  color: var(--white) !important;
  padding: 0 11px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
}

.secondary-action,
.mini-button,
.ghost-link,
.nav-tab,
.step-pill {
  border: 2px solid var(--ink);
  background: var(--field);
  color: var(--text);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action:hover,
.secondary-action:hover,
.mini-button:hover,
.ghost-link:hover,
.nav-tab:hover,
.step-pill:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.primary-action:active,
.secondary-action:active,
.mini-button:active,
.ghost-link:active,
.nav-tab:active,
.step-pill:active,
.template-action:active,
.tutorial-action:active,
.inline-copy-action:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.copy-feedback-anchor {
  position: relative;
  overflow: visible;
}

.copied-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  min-height: 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 3px 3px 0 var(--pink);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.copied-pop.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-tab {
  min-height: 38px;
  white-space: nowrap;
}

.nav-tab.active,
.step-pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--pink);
}

.segment {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--text);
  text-align: left;
  box-shadow: 5px 5px 0 var(--ink);
}

.choice-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--text);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.choice-card:hover,
.segment:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.choice-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.choice-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.choice-card.active {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--pink);
}

.choice-card.active strong {
  color: var(--ink);
}

.segment strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.segment span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.segment.active {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--pink);
}

.segment.active strong {
  color: var(--ink);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.wallet-stats,
.stat-grid,
.review-grid {
  display: grid;
  gap: 8px;
  margin: 0;
}

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

.wallet-stats div,
.stat-grid div,
.review-grid div {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--field);
  padding: 10px;
}

.stat-grid,
.review-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-sections {
  display: grid;
  gap: 12px;
  margin: 0;
}

.review-section {
  display: grid;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  padding: 12px;
}

.review-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.review-section .review-grid,
.review-section .launch-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-section .review-grid div,
.review-section .launch-strip div {
  background: var(--field);
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.wizard-shell {
  max-width: 1040px;
  margin: 0 auto;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0 0 14px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--paper-2);
}

.step-pill span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
}

.step-pill.active span {
  background: var(--pink);
  color: var(--white);
}

.wizard-layout {
  display: block;
}

.wizard-main {
  min-width: 0;
  padding: 0;
  perspective: 1400px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  min-height: 0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(18px, 3vw, 34px);
  animation: card-flip-in 210ms ease-out;
  transform-origin: 50% 42%;
}

.wizard-aside {
  display: none;
}

@keyframes card-flip-in {
  from {
    opacity: 0;
    transform: rotateY(-8deg) translateY(4px);
  }

  to {
    opacity: 1;
    transform: rotateY(0) translateY(0);
  }
}

.guide-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.guide-list span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 9px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wizard-footer {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.wizard-footer .status-line {
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  padding: 10px 12px;
  box-shadow: 4px 4px 0 var(--yellow);
  color: var(--pink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 850;
}

.wizard-footer .status-line::before {
  content: "> ";
  color: var(--yellow);
}

.question-block,
.panel-heading,
.phase-head,
.input-row,
.file-drop,
.quantity-row,
.inline-actions {
  display: flex;
  align-items: center;
}

.question-block {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.question-block.with-action,
.panel-heading,
.phase-head {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
}

.metadata-heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.panel {
  padding: 16px;
}

.panel + .panel,
.two-column + .panel,
.panel + .action-bar,
.action-bar + .panel,
.wizard-shell + .panel {
  margin-top: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.wide-field {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.label-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.info-button {
  position: relative;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  min-width: 21px;
  min-height: 21px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  padding: 0;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: none;
  cursor: help;
  box-shadow: 2px 2px 0 var(--ink);
}

.info-button::after {
  content: attr(data-help);
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  width: min(300px, 78vw);
  transform: translateX(-50%);
  display: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 10px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  white-space: normal;
}

.info-button.open::after {
  display: block;
}

.file-drop .info-button {
  flex: 0 0 auto;
}

.surface-wrapper-field {
  margin-top: 12px;
}

.check-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: end;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--field);
  padding: 0 10px;
  color: var(--text);
  text-transform: none;
}

.check-row input {
  width: 16px;
  height: 16px;
}

.wrapper-basics {
  align-items: end;
}

.wrapper-basics input[type="number"],
.wrapper-basics .check-row {
  min-height: 56px;
}

.wrapper-basics .check-row {
  margin-top: 22px;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 10px;
}

input[type="color"] {
  padding: 4px;
}

textarea {
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 4px 4px 0 var(--green);
}

input[readonly],
textarea[readonly] {
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(21, 17, 17, 0.035) 25%, transparent 25%) 0 0 / 10px 10px,
    var(--field);
}

.field-error,
input.field-error,
textarea.field-error,
select.field-error,
.file-error,
.choice-error,
.launch-error {
  border-color: #d91f43 !important;
  box-shadow: 4px 4px 0 #d91f43 !important;
}

.phase-error {
  border-color: #d91f43;
}

.inline-actions {
  gap: 8px;
  margin-top: 12px;
}

.verification-actions {
  align-items: center;
}

.validation-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.validation-status[data-state="success"] {
  color: var(--green-dark);
}

.validation-status[data-state="error"] {
  color: #d91f43;
}

.validation-status[data-state="checking"] {
  color: var(--blue);
}

.field-note,
.status-line {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.branch-fields {
  display: none;
  margin-top: 14px;
}

.branch-fields.active {
  display: block;
}

.owner-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 5px 5px 0 var(--green);
  padding: 14px;
}

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

.connected-wallet-panel {
  display: grid;
  gap: 10px;
}

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

.metadata-panel,
.wallet-note,
.instruction-panel {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
}

.metadata-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  box-shadow: 5px 5px 0 var(--green);
}

.instruction-panel {
  padding: 12px;
  background: #eef8f4;
}

.instruction-panel.compact-info {
  padding: 0;
}

.instruction-panel.compact-info summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
  padding: 0 12px;
}

.instruction-panel.compact-info ol,
.instruction-panel.compact-info p {
  margin-left: 12px;
  margin-right: 12px;
}

.instruction-panel.compact-info p {
  margin-bottom: 12px;
}

.caution-note {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px;
}

.caution-note strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.caution-note p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.instruction-panel strong {
  color: var(--green-dark);
  font-size: 13px;
}

.instruction-panel p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.instruction-panel ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.instruction-panel li + li {
  margin-top: 5px;
}

.instruction-panel a {
  color: var(--green-dark);
  font-weight: 900;
}

.instruction-panel code {
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--panel);
  padding: 1px 4px;
  font-weight: 900;
}

.wallet-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  box-shadow: 4px 4px 0 var(--yellow);
}

.wallet-note strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.wallet-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.launch-settings {
  margin-bottom: 12px;
}

.launch-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.launch-strip div {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--field);
  padding: 10px;
}

.launch-steps {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.launch-step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px;
}

.launch-step-card[data-state="done"] {
  box-shadow: 5px 5px 0 var(--green);
}

.launch-step-card[data-state="ready"] {
  box-shadow: 5px 5px 0 var(--yellow);
}

.launch-step-card[data-state="checking"] {
  box-shadow: 5px 5px 0 var(--blue);
}

.launch-step-card[data-state="blocked"],
.launch-step-card.launch-error {
  box-shadow: 5px 5px 0 var(--pink);
}

.launch-step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
  position: relative;
  overflow: hidden;
}

.launch-step-card[data-state="done"] .launch-step-number,
.launch-step-card[data-state="blocked"] .launch-step-number,
.launch-step-card.launch-error .launch-step-number,
.launch-step-card[data-state="checking"] .launch-step-number {
  color: transparent;
}

.launch-step-card[data-state="done"] .launch-step-number {
  background: var(--green);
}

.launch-step-card[data-state="blocked"] .launch-step-number,
.launch-step-card.launch-error .launch-step-number {
  background: #d91f43;
}

.launch-step-card[data-state="done"] .launch-step-number::before,
.launch-step-card[data-state="blocked"] .launch-step-number::before,
.launch-step-card.launch-error .launch-step-number::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.launch-step-card[data-state="done"] .launch-step-number::before {
  content: "✓";
}

.launch-step-card[data-state="blocked"] .launch-step-number::before,
.launch-step-card.launch-error .launch-step-number::before {
  content: "×";
}

.launch-step-card[data-state="checking"] .launch-step-number::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 4px solid rgba(21, 17, 17, 0.18);
  border-top-color: var(--pink);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.launch-step-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.launch-step-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.launch-step-card .launch-step-status {
  color: var(--blue);
}

.launch-step-card .storage-purpose-note {
  color: var(--pink);
  font-weight: 500;
}

.inline-copy-action {
  width: fit-content;
  min-height: 32px;
  margin-top: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.inline-copy-action:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.inline-copy-action:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.launch-step-mini-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.launch-step-mini-actions .inline-copy-action {
  margin-top: 0;
}

.launch-step-status[data-state="done"] {
  color: var(--green-dark);
}

.launch-step-status[data-state="blocked"] {
  color: var(--pink);
}

.launch-step-status[data-state="checking"] {
  color: var(--blue);
}

.wallet-action-log {
  margin-top: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--field);
  padding: 8px;
}

.wallet-action-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.wallet-action-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wallet-action-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.wallet-action-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  position: relative;
}

.wallet-action-copy {
  min-width: 0;
}

.wallet-action-copy strong,
.wallet-action-copy small {
  display: block;
}

.wallet-action-copy strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.wallet-action-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wallet-action-copy a {
  color: var(--blue);
  font-weight: 950;
}

.wallet-action-item[data-state="done"] .wallet-action-icon {
  background: var(--green);
  color: var(--white);
}

.wallet-action-item[data-state="done"] .wallet-action-icon::before {
  content: "✓";
}

.wallet-action-item[data-state="error"] .wallet-action-icon {
  background: #d91f43;
  color: var(--white);
}

.wallet-action-item[data-state="error"] .wallet-action-icon::before {
  content: "×";
}

.wallet-action-item[data-state="submitted"] .wallet-action-icon::before,
.wallet-action-item[data-state="waiting"] .wallet-action-icon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
}

.wallet-action-item[data-state="signing"] .wallet-action-icon {
  color: transparent;
}

.wallet-action-item[data-state="signing"] .wallet-action-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 3px solid rgba(21, 17, 17, 0.18);
  border-top-color: var(--pink);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.launch-step-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.48;
}

.phase-controls,
.global-allow-list {
  margin-bottom: 12px;
}

.phase-controls .template-action {
  grid-column: 1 / -1;
  justify-self: end;
}

.phase-order-note {
  margin: -2px 0 14px;
}

.phase-add-action {
  display: flex;
  width: fit-content;
  margin: 14px 0 0 auto;
}

.phase-list {
  display: grid;
  gap: 12px;
}

.phase-row {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px;
}

.phase-row.dragging {
  opacity: 0.56;
}

.phase-row.is-collapsed .phase-body {
  display: none;
}

.phase-row.is-collapsed {
  background: var(--paper-2);
}

.phase-head {
  align-items: center;
}

.drag-handle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
  cursor: grab;
  box-shadow: 3px 3px 0 var(--ink);
}

.drag-handle:active {
  cursor: grabbing;
}

.phase-head-copy {
  min-width: 0;
  flex: 1;
}

.phase-title {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.phase-summary-line {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.phase-head-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.phase-section-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.phase-section {
  display: grid;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  padding: 12px;
}

.phase-section-title {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.phase-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.file-drop {
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  border: 2px dashed var(--ink);
  border-radius: 6px;
  background: var(--paper-2);
  padding: 10px;
}

.file-drop input {
  max-width: 260px;
  border: 0;
  background: transparent;
  padding: 0;
}

.file-drop span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.file-drop > span:not(.verification-icon) {
  flex: 1;
}

.metadata-csv-drop {
  align-items: center;
  flex-wrap: wrap;
}

.metadata-csv-drop #metadataCsvSummary {
  flex: 1;
}

.metadata-count-action {
  min-height: 30px;
  border-radius: 999px;
  background: var(--yellow) !important;
  color: var(--ink) !important;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
}

.verification-icon {
  display: none;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.verification-icon[data-state="checking"],
.verification-icon[data-state="success"],
.verification-icon[data-state="error"] {
  display: inline-grid;
}

.verification-icon[data-state="success"] {
  background: var(--green);
  color: var(--white);
}

.verification-icon[data-state="success"]::before {
  content: "✓";
}

.verification-icon[data-state="error"] {
  background: #d91f43;
  color: var(--white);
}

.verification-icon[data-state="error"]::before {
  content: "×";
}

.verification-icon[data-state="checking"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 3px solid rgba(21, 17, 17, 0.2);
  border-top-color: var(--pink);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.input-row {
  gap: 10px;
}

.input-row input {
  flex: 1;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-tabs,
.creation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-tab,
.creation-tab {
  min-height: 38px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.admin-tab.active,
.creation-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--pink);
}

.admin-panel {
  display: none;
  margin-top: 14px;
}

.admin-panel.active {
  display: block;
}

.admin-home,
.admin-detail {
  margin-top: 14px;
}

.admin-home {
  display: grid;
  gap: 12px;
}

.admin-home-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 680px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.admin-search-label {
  max-width: none;
}

.admin-created-contracts {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-heading h3,
.admin-section-heading .field-note {
  margin: 0;
}

.admin-creation-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.admin-creation-button {
  width: 100%;
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 150px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--text);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-creation-button:hover,
.admin-creation-button:focus-visible {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--pink);
}

.admin-creation-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-creation-copy strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.admin-creation-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.admin-creation-button code {
  display: block;
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  padding: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
  text-align: center;
}

.admin-manual-row {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 5px 5px 0 var(--yellow);
  padding: 12px;
}

.admin-selected-copy {
  min-width: 0;
}

.admin-home-return {
  justify-self: end;
  align-self: start;
}

.admin-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-selected-copy .field-note {
  overflow-wrap: anywhere;
}

.admin-overview-grid,
.admin-address-section,
.admin-address-list {
  display: grid;
  gap: 12px;
}

.admin-address-section {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px;
}

.admin-address-list {
  gap: 10px;
}

.admin-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--field);
  padding: 10px;
}

.admin-address-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-address-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-address-row code {
  display: block;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contract-verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  padding: 0 9px 0 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: none;
}

.contract-verification-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
}

.contract-verification-badge[data-state="verified"] .contract-verification-mark {
  background: var(--green);
}

.contract-verification-badge[data-state="verified"] .contract-verification-mark::before {
  content: "";
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.contract-verification-badge[data-state="pending"] .contract-verification-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid rgba(21, 17, 17, 0.2);
  border-top-color: var(--ink);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.contract-verification-badge[data-state="unverified"] .contract-verification-mark {
  background: #e62f58;
  color: var(--white);
}

.contract-verification-badge[data-state="unverified"] .contract-verification-mark::before {
  content: "x";
  color: var(--white);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-1px);
}

.contract-verification-badge[data-state="neutral"] .contract-verification-mark {
  background: var(--paper-2);
}

.contract-verification-badge[data-state="neutral"] .contract-verification-mark::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
}

.address-copy-icon {
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.address-copy-icon::before,
.address-copy-icon::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.address-copy-icon::before {
  left: 9px;
  top: 8px;
  background: var(--yellow);
}

.address-copy-icon::after {
  left: 15px;
  top: 14px;
  background: var(--white);
}

.address-copy-icon:hover {
  background: rgba(240, 68, 155, 0.1);
}

.address-copy-icon:hover::before,
.address-copy-icon:hover::after {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.address-copy-icon:active::before,
.address-copy-icon:active::after {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.tool-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px;
}

.admin-burn-panel {
  margin-top: 12px;
}

.danger-panel {
  box-shadow: 5px 5px 0 var(--pink);
}

.danger-action {
  background: #e62f58 !important;
  color: var(--white) !important;
}

.admin-allow-list-tools {
  margin-top: 12px;
}

.admin-funds-section {
  display: grid;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px;
}

.admin-funds-section + .admin-funds-section {
  margin-top: 12px;
}

.admin-funds-amount {
  display: block;
  color: var(--pink);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 950;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.creations-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.empty-state {
  border: 2px dashed var(--ink);
  border-radius: 8px;
  background: var(--field);
  padding: 22px;
}

.creation-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 0.8fr) auto;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px;
}

.creation-main {
  min-width: 0;
}

.creation-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.creation-stats div {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-2);
  padding: 8px;
}

.creation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.action-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  align-items: center;
  justify-content: start;
  gap: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-top: 16px;
}

.result-panel {
  margin-top: 12px;
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--green);
}

.code-box {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.code-box.tall {
  min-height: 420px;
}

.widget-preview {
  margin-top: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--field);
  min-height: 220px;
  padding: 10px;
}

.mint-body {
  color-scheme: dark;
  background: #111416;
  --bg: #111416;
  --panel: #181b1e;
  --panel-2: #202428;
  --field: #111416;
  --line: #31383f;
  --text: #f6f2ea;
  --ink: #f6f2ea;
  --muted: #a8b0bb;
  --green: #30d89b;
  --mint-accent: #30d89b;
  --mint-accent-contrast: #111416;
  --mint-accent-secondary: #a2d830;
  --mint-accent-secondary-contrast: #111416;
  --mint-accent-tertiary: #d8306d;
  --mint-accent-tertiary-contrast: #fffdf8;
  --mint-accent-secondary-soft: rgba(162, 216, 48, 0.2);
  --mint-accent-tertiary-soft: rgba(216, 48, 109, 0.18);
  --shadow: none;
}

.mint-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 500px);
}

.mint-media {
  min-height: 100vh;
  background: #202428;
  background-size: cover;
  background-position: center;
}

.mint-media.default-studio-media {
  --art-bg: #f7f1e8;
  --art-panel: #fffaf1;
  --art-ink: #151111;
  --art-pink: #f0449b;
  --art-pink-contrast: #151111;
  --art-secondary: #f4c84f;
  --art-tertiary: #179b92;
  --art-secondary-soft: rgba(244, 200, 79, 0.22);
  --art-tertiary-soft: rgba(23, 155, 146, 0.18);
  --art-yellow: #f4c84f;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(21, 17, 17, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 17, 17, 0.06) 1px, transparent 1px),
    var(--art-bg);
  background-size: 28px 28px, 28px 28px, auto;
  padding: clamp(18px, 5vw, 56px);
}

.default-mint-art {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  width: min(72vh, 72vw, 640px);
  aspect-ratio: 1;
  border: 3px solid var(--art-ink);
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--art-secondary-soft) 0 16%, transparent 16% 100%),
    linear-gradient(315deg, var(--art-tertiary-soft) 0 18%, transparent 18% 100%),
    var(--art-panel);
  box-shadow: 12px 12px 0 var(--art-ink);
  color: var(--art-ink);
  overflow: hidden;
}

.default-mint-art img {
  justify-self: center;
  width: min(58%, 320px);
  height: auto;
}

.default-mint-art strong {
  display: block;
  width: 100%;
  border-top: 3px solid var(--art-ink);
  background: var(--art-pink);
  color: var(--art-pink-contrast);
  padding: 18px;
  font-size: clamp(20px, 3.4vw, 42px);
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-align: center;
}

.mint-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  background: var(--panel);
  padding: 28px;
}

.mint-panel h1 {
  font-size: 42px;
}

.mint-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.mint-status-box {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--mint-accent-secondary-soft), transparent 36%),
    linear-gradient(315deg, var(--mint-accent-tertiary-soft), transparent 42%),
    var(--panel-2);
  padding: 16px;
}

.mint-live-header {
  display: grid;
  gap: 12px;
  align-items: start;
}

.mint-phase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mint-accent-secondary);
  color: var(--mint-accent-secondary-contrast);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.mint-countdown {
  display: grid;
  gap: 4px;
  line-height: 1;
}

.mint-countdown-label {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.mint-countdown-time {
  color: var(--mint-accent);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 950;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.mint-supply-progress {
  display: grid;
  gap: 8px;
}

.mint-supply-progress[hidden] {
  display: none;
}

.mint-supply-progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mint-supply-progress-copy strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.mint-supply-progress-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.mint-progress-track {
  width: 100%;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  overflow: hidden;
}

.mint-progress-bar {
  display: block;
  width: var(--mint-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint-accent), var(--mint-accent-tertiary));
  transition: width 240ms ease;
}

.mint-phase-list {
  display: grid;
  gap: 8px;
}

.mint-phase-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  padding: 10px;
}

.mint-phase-item.is-live {
  border-color: var(--mint-accent-tertiary);
}

.mint-phase-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mint-phase-main strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.mint-phase-main span,
.mint-phase-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mint-phase-state,
.mint-phase-eligibility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.mint-phase-item.is-live .mint-phase-state,
.mint-phase-eligibility.is-eligible {
  border-color: var(--mint-accent-tertiary);
  color: var(--mint-accent-tertiary);
}

.mint-phase-eligibility.is-not-eligible {
  border-color: #7b3434;
  color: #ff8d8d;
}

.mint-phase-empty {
  margin: 0;
}

.quantity-row {
  gap: 8px;
  margin: 14px 0;
}

.quantity-row input {
  max-width: 120px;
  text-align: center;
}

.quantity-row .mini-button {
  width: 42px;
  padding: 0;
}

.mint-body .primary-action {
  background: var(--mint-accent);
  color: var(--mint-accent-contrast);
}

.mint-body .secondary-action,
.mint-body .mini-button {
  border-color: var(--mint-accent-secondary);
  background: var(--mint-accent-secondary);
  color: var(--mint-accent-secondary-contrast);
}

body.light-page {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --panel-2: #f2f4f4;
  --field: #ffffff;
  --line: #d5dbe0;
  --text: #111416;
  --ink: #111416;
  --muted: #53606c;
  --shadow: none;
}

@media (max-width: 1080px) {
  .studio-topbar {
    grid-template-columns: 1fr auto;
  }

  .brand-lockup {
    min-width: 0;
  }

  .nav-tabs {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-panel,
  .two-column {
    grid-template-columns: 1fr;
  }

  .stepper {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 16px;
    scrollbar-width: none;
  }

  .stepper::-webkit-scrollbar {
    display: none;
  }

  .creation-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .creation-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .workspace,
  .wizard-main {
    padding: 14px;
  }

  .workspace {
    padding: 14px;
  }

  .wizard-main {
    padding: 0;
  }

  .hero-panel,
  .form-grid,
  .form-grid.compact,
  .stat-grid,
  .review-grid,
  .launch-strip,
  .creation-stats,
  .platform-stat-grid,
  .wallet-stats,
  .wallet-note,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .launch-step-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .launch-step-card > button,
  .launch-step-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .launch-step-actions .ghost-link {
    flex: 1;
  }

  .wide-field {
    grid-column: auto;
  }

  .wizard-footer,
  .action-bar {
    grid-template-columns: 1fr;
  }

  .wizard-step.active {
    min-height: 0;
    padding: 16px;
    box-shadow: 6px 6px 0 var(--ink);
    animation: mobile-card-in 120ms ease-out;
  }

  @keyframes mobile-card-in {
    from {
      transform: translateY(3px);
    }

    to {
      transform: translateY(0);
    }
  }

  .wizard-footer .status-line {
    order: -1;
  }

  .question-block.with-action,
  .panel-heading,
  .file-drop,
  .wallet-note,
  .input-row,
  .admin-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-home-toolbar,
  .admin-detail-header {
    grid-template-columns: 1fr;
  }

  .platform-router-row {
    grid-template-columns: 1fr auto;
  }

  .platform-router-row input {
    grid-column: 1 / -1;
  }

  .admin-address-row {
    grid-template-columns: 1fr;
  }

  .address-copy-icon {
    justify-self: start;
  }

  .admin-detail-actions {
    justify-content: stretch;
  }

  .admin-detail-actions button {
    flex: 1;
  }

  .admin-home-return {
    justify-self: stretch;
    order: -1;
  }

  .admin-section-heading {
    display: grid;
    align-items: start;
  }

  .metadata-heading-actions {
    align-items: flex-start;
    flex-direction: row;
    justify-content: flex-start;
  }

  .file-drop input {
    max-width: none;
  }

  .metadata-csv-drop {
    align-items: center;
    flex-direction: row;
  }

  .metadata-csv-drop input {
    flex: 0 0 100%;
  }

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

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

  .mint-shell {
    grid-template-columns: 1fr;
  }

  .mint-media {
    min-height: 42vh;
  }

  .mint-panel {
    min-height: 58vh;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .mint-phase-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .mint-phase-state,
  .mint-phase-eligibility {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .studio-topbar {
    padding: 10px 12px;
  }

  .brand-lockup img {
    width: 72px;
  }

  .brand-lockup span {
    font-size: 13px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  .mint-panel h1 {
    font-size: 32px;
  }
}
