@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --ink: #101010;
  --muted: #66635f;
  --line: #d6d3cc;
  --accent: #e74a2b;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #b62912; }
button, .button { cursor: pointer; }
button, .button, input, textarea, select { border-radius: 0; }
button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: white; background: #be361d; }

.shell { width: min(1440px, 100%); margin: 0 auto; padding: 0 48px 36px; }
.topbar { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 19px; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.brand span { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; font-weight: 400; color: var(--muted); }
.eyebrow { display: block; font: 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.tabs button, .tabs a { padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; text-decoration: none; }
.tabs button.active, .tabs a.active { color: var(--ink); box-shadow: 0 1px var(--ink); }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.page-title { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-items: end; gap: 36px; margin: 30px 0 40px; }
.page-title h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1.03; letter-spacing: -.065em; }
.page-title > p { margin: 0 0 3px; font-size: 16px; color: var(--muted); line-height: 1.65; letter-spacing: 0; }
.page-title .eyebrow { margin: 0 0 18px; letter-spacing: .1em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.04em; }
h3 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: -.025em; }
p { line-height: 1.6; }
.network-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 16px 0 28px; }
.network-bar select { width: auto; min-width: 188px; }
.network-bar .badge { margin-right: auto; }
.badge { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--line); color: var(--muted); font: 12px/1.4 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.badge::before { content: ""; height: 5px; width: 5px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.art-panel, .form-panel { min-width: 0; }
.art-panel { position: sticky; top: 24px; }
.art-frame { display: block; width: 100%; aspect-ratio: 1; border: 0; background: #080e18; overflow: hidden; }
.art-frame iframe { display: block; width: 100%; height: 100%; aspect-ratio: 1; border: 0; }
.preview-caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 12px/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .025em; }
.preview-caption button { font-size: 12px; }
.panel-heading, .section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.form-panel .panel-heading { padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.field { display: flex; flex-direction: column; min-width: 0; gap: 9px; margin-bottom: 21px; }
.field > label, label.field, .field-label { color: var(--ink); font-size: 14px; line-height: 1.5; letter-spacing: .005em; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field small, small.note { font-size: 14px; line-height: 1.5; color: var(--muted); text-transform: none; letter-spacing: 0; }
input, textarea, select { width: 100%; min-height: 42px; padding: 11px 12px; color: var(--ink); background: rgba(255,255,255,.42); border: 1px solid var(--line); font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.45; text-transform: none; letter-spacing: 0; }
input:hover, textarea:hover, select:hover { border-color: #99948a; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
input[type="checkbox"], input[type="radio"] { width: 16px; min-height: 16px; accent-color: var(--ink); }
input[type="file"] { padding: 9px; font-size: 12px; }
input[type="file"]::file-selector-button { border: 1px solid var(--line); padding: 7px 9px; margin-right: 12px; color: var(--ink); background: var(--paper); font: 11px var(--mono); cursor: pointer; }
textarea { resize: vertical; min-height: 92px; }
textarea.code, .code textarea { min-height: 180px; font: 12px/1.65 var(--mono); tab-size: 2; white-space: pre; overflow: auto; text-transform: none; letter-spacing: 0; }
.code, code { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
button, .button, a.primary, a.secondary, a.quiet { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.2; text-decoration: none; transition: background .15s, color .15s; }
button:hover:not(:disabled), .button:hover:not([aria-disabled="true"]) { color: var(--paper); background: var(--ink); }
button.primary, .button.primary, a.primary, .primary > button { background: var(--ink); color: var(--paper); }
button.primary:hover:not(:disabled), .button.primary:hover, a.primary:hover { background: #333; }
button.secondary, .button.secondary, a.secondary { border-color: var(--line); }
a.secondary:hover { background: var(--ink); color: var(--paper); }
button.quiet, .button.quiet, a.quiet { padding: 5px 0; border-color: transparent; color: var(--muted); background: transparent; font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
button.quiet:hover:not(:disabled), .button.quiet:hover, a.quiet:hover { color: var(--ink); background: transparent; }
.note { margin: 12px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.status { padding: 14px 16px; margin: 18px 0; border: 1px solid var(--line); background: #eceae4; color: #46443f; font: 12px/1.65 var(--mono); overflow-wrap: anywhere; }
.status:empty { display: none; }
.error, .status.error { color: #8f2310; border-color: #cb9d8f; background: #f7e8e1; }
.success, .status.success { color: #215b3c; border-color: #a1b8a6; background: #e7eee7; }
.progress { accent-color: var(--ink); width: 100%; height: 5px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.collection-card { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.collection-card > a { text-decoration: none; }
.collection-card .art-frame, .collection-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border: 0; background: #080e18; }
.collection-card h2, .collection-card h3 { margin-top: 17px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin: 12px 0 0; color: var(--muted); font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.collection-card .actions { margin-top: 17px; }
.empty-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; width: 100%; aspect-ratio: 1; color: #e4eeea; background: radial-gradient(ellipse at 50% 120%, #234b40, transparent 75%), #0b1b19; text-align: center; }
.empty-art span { font-size: 32px; font-weight: 400; letter-spacing: -.05em; }
.empty-art small { font: 12px/1.6 var(--mono); letter-spacing: .05em; color: #b4c8bf; }
.edition-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 30px 0; }
.edition-stats div { display: flex; flex-direction: column; gap: 12px; }
.edition-stats span { font: 12px/1.6 var(--mono); color: var(--muted); }
.edition-stats strong { font-size: 28px; font-weight: 400; letter-spacing: -.05em; }
.empty-state { padding: 64px 30px; border: 1px solid var(--line); text-align: center; }
.empty-state p { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 14px; }
.empty-state .actions { justify-content: center; }
.empty-state > a { margin-top: 24px; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.setup-panel { padding: 26px; min-width: 0; border: 1px solid var(--line); }
.setup-panel h2, .setup-panel h3 { margin-bottom: 16px; }
.inline-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 160px; }
.inline-form .field { flex: 1; margin-bottom: 0; }
.metadata { margin: 22px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 12px/1.7 var(--mono); overflow-wrap: anywhere; }
.metadata dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.metadata dd { margin: 4px 0 14px; }
.metadata pre { max-width: 100%; overflow: auto; margin: 0; white-space: pre-wrap; font: inherit; }
.footer-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: 12px/1.7 var(--mono); }
.panel-heading > span { font: 12px/1.6 var(--mono); color: var(--muted); }
.metadata summary { cursor: pointer; font-size: 14px; }
.metadata[open] summary { margin-bottom: 18px; }
.setup-panel > button { margin-top: 20px; }
#artist-controls { margin: 28px 0; }
#deploy-review .setup-panel { margin-top: 28px; }
.token-frame { width: 100%; max-width: min(900px, calc(100vh - 100px)); aspect-ratio: 1; display: block; margin: 24px auto; background: #080e18; border: 0; }
.token-frame iframe { width: 100%; height: 100%; border: 0; }
.loading { padding: 48px; color: var(--muted); font: 12px/1.7 var(--mono); }

@media (max-width: 1020px) {
  .shell { padding-right: 28px; padding-left: 28px; }
  .workbench { gap: 24px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tabs { gap: 18px; }
}
@media (max-width: 760px) {
  .shell { padding: 0 20px 28px; }
  .topbar { min-height: 84px; gap: 16px; flex-wrap: wrap; padding: 22px 0; }
  .brand { font-size: 18px; }
  .tabs { gap: 20px; }
  .tabs button, .tabs a { font-size: 14px; }
  .page-title { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; margin-bottom: 28px; }
  .page-title h1 { font-size: 40px; }
  .network-bar { gap: 10px; padding-bottom: 22px; }
  .network-bar select { flex: 1; min-width: 150px; }
  .network-bar button { font-size: 14px; }
  .network-bar .badge { margin-right: 0; }
  .workbench, .setup-grid { grid-template-columns: 1fr; gap: 28px; }
  .art-panel { position: static; }
  .form-panel .panel-heading { margin-top: 5px; }
  .footer-note { margin-top: 42px; }
  .setup-panel { padding: 21px; }
  .empty-state { padding: 40px 20px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .topbar { align-items: flex-start; }
  .tabs { width: 100%; justify-content: space-between; gap: 8px; }
  .network-bar .badge { order: 3; }
  .actions > button.primary, .actions > .button.primary { flex: 1; }
  .preview-caption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.embedded .brand { display:none; }
.embedded .topbar { min-height:76px; }
body.busy .tabs { pointer-events:none; opacity:.6; }
