:root {
  --content: 1680px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --muted-strong: var(--muted);
  --pad: clamp(22px, 3.5vw, 62px);
  --signal: var(--orange);
  --success: var(--green);
  --surface: #0a0d0a;
  --surface-soft: #070907;
  --warning: var(--yellow);
}

.operator-body { min-height: 100svh; background: var(--flight-ink); }
.operator-shell .truth-bar a { color: var(--paper); font: 700 8px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.operator-shell .admin-workspace {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  padding-top: var(--flight-top);
}

.admin-rail {
  position: sticky;
  top: var(--flight-top);
  align-self: start;
  min-height: calc(100svh - var(--flight-top));
  padding: 70px 34px 44px;
  border-right: 1px solid var(--flight-line);
  background: rgb(3 6 4 / 68%);
  backdrop-filter: blur(16px);
}

.product-kicker { margin: 0; color: var(--orange); font: 700 8px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.admin-rail h1 { margin: 18px 0 22px; font-size: clamp(42px, 4.6vw, 70px); font-weight: 430; line-height: .86; letter-spacing: -.065em; }
.admin-rail > p:not(.product-kicker) { max-width: 31ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.admin-auth { margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--flight-line); }
.admin-auth > label, .collection-editor label { display: grid; gap: 8px; color: var(--muted); font: 650 9px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.inline-field { display: flex; margin-top: 10px; }
.inline-field input, .collection-editor input, .collection-editor textarea, .collection-state-select, .admin-fee-control select {
  min-width: 0;
  border: 1px solid var(--flight-line);
  border-radius: 0;
  outline: 0;
  color: var(--paper);
  background: rgb(9 12 9 / 90%);
}
.inline-field input { flex: 1; height: 44px; padding: 0 12px; border-right: 0; }
.compact-button, .primary-button, .operation-save, .operation-deploy {
  border: 1px solid var(--flight-line-hot);
  color: var(--ink);
  background: var(--paper);
  font: 750 9px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.compact-button { padding: 0 14px; }
.compact-button:hover, .primary-button:hover, .operation-save:hover { background: var(--orange); }
.admin-auth small { display: block; margin-top: 8px; color: var(--dim); font: 8px/1.4 var(--mono); }

.admin-fee-control { display: grid; gap: 12px; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--flight-line); }
.admin-fee-control span { display: grid; gap: 4px; }
.admin-fee-control strong { font: 700 9px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.admin-fee-control small { color: var(--dim); font: 8px/1.4 var(--mono); }
.admin-fee-control select { width: 100%; height: 42px; padding: 0 11px; }

.admin-metrics { margin: 38px 0 0; }
.admin-metrics div { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--flight-line); }
.admin-metrics dt { color: var(--muted); font: 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.admin-metrics dd { margin: 0; color: var(--orange-soft); font: 700 12px/1 var(--mono); }

.admin-surface { min-width: 0; padding: 68px var(--pad) 90px; }
.surface-heading { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--flight-line-hot); }
.surface-heading h2, .collection-editor h2 { margin: 9px 0 6px; font-size: clamp(44px, 5vw, 78px); font-weight: 430; line-height: .92; letter-spacing: -.06em; }
.surface-heading p:last-child { margin: 0; color: var(--muted); font: 9px/1.5 var(--mono); }
.primary-button { min-height: 46px; padding: 0 18px; }
.full-width { width: 100%; }

.collection-operations { display: grid; }
.collection-operation {
  position: relative;
  min-height: 136px;
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(130px, .72fr) minmax(130px, .72fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--flight-line);
  transition: padding 260ms var(--ease), background 220ms ease;
  animation: admin-flight-in 500ms var(--ease) both;
}
.collection-operation::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 1px; background: transparent; }
.collection-operation:hover { padding-inline: 14px; background: rgb(247 147 26 / 3%); }
.collection-operation:hover::before { background: var(--orange); box-shadow: 0 0 18px var(--orange); }
.collection-operation h3 { margin: 0 0 7px; font-size: 20px; font-weight: 560; letter-spacing: -.025em; }
.collection-operation p, .collection-operation small { margin: 0; color: var(--muted); font: 9px/1.45 var(--mono); }
.operation-supply strong, .operation-price strong { display: block; margin-bottom: 7px; color: var(--paper); font: 700 14px/1 var(--mono); }
.operation-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.operation-controls button, .operation-controls select { min-height: 40px; padding: 0 10px; }
.collection-state-select { padding-inline: 9px; font: 8px/1 var(--mono); text-transform: uppercase; }
.operation-deploy { color: var(--orange); background: transparent; }
.operation-deploy:hover { color: var(--ink); background: var(--orange); }
.operation-deploy:disabled, .operation-save:disabled { cursor: not-allowed; opacity: .35; }
.trust-line, .anchor-line { display: block; margin-top: 8px; color: var(--green); font: 700 7px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.anchor-line { color: var(--orange); }

.product-empty { min-height: 320px; display: grid; place-content: center; justify-items: center; text-align: center; }
.product-empty strong { font-size: 30px; font-weight: 500; }
.product-empty p { max-width: 42ch; color: var(--muted); }

.collection-editor {
  position: fixed;
  inset: var(--flight-top) 0 0 var(--flight-rail);
  z-index: 180;
  overflow-y: auto;
  padding: 64px clamp(24px, 9vw, 150px) 90px;
  background: rgb(2 5 3 / 98%);
  backdrop-filter: blur(26px);
  animation: editor-aperture 520ms var(--ease) both;
}
.collection-editor > header { position: relative; display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--flight-line-hot); }
.collection-editor .dialog-close { position: static; width: 42px; height: 42px; border: 1px solid var(--flight-line); background: transparent; color: var(--paper); }
.collection-editor form { max-width: 1120px; margin: 0 auto; }
.form-section { display: grid; gap: 20px; padding: 38px 0; border-bottom: 1px solid var(--flight-line); }
.form-section > span { color: var(--orange); font: 700 8px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.collection-editor input { height: 48px; padding: 0 13px; }
.collection-editor textarea { padding: 13px; resize: vertical; }
.collection-editor input:focus, .collection-editor textarea:focus, .collection-state-select:focus { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.split-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-fields > span { grid-column: 1 / -1; }
.collection-field-preview { min-height: 390px; display: grid; grid-template-columns: minmax(300px, .85fr) minmax(300px, 1.15fr); border: 1px solid var(--flight-line-hot); background: radial-gradient(circle at 26% 50%, rgb(247 147 26 / 10%), transparent 35%); }
.collection-field-preview canvas { width: 100%; height: 390px; }
.field-preview-copy { display: grid; align-content: center; padding: 44px; border-left: 1px solid var(--flight-line); }
.field-preview-copy > strong { margin: 14px 0; font-size: clamp(30px, 4vw, 54px); font-weight: 450; line-height: .95; letter-spacing: -.055em; }
.field-preview-copy > p:not(.product-kicker) { max-width: 48ch; color: var(--muted); }
.field-preview-copy dl { margin: 22px 0 0; }
.field-preview-copy dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--flight-line); }
.field-preview-copy dt, .field-preview-copy dd { margin: 0; font: 7px/1.2 var(--mono); }
.field-preview-copy dt { color: var(--dim); }
.field-preview-copy dd { color: var(--orange); }
.form-status { min-height: 24px; color: var(--orange); font: 9px/1.5 var(--mono); }

@keyframes admin-flight-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes editor-aperture { from { opacity: 0; clip-path: inset(0 0 100%); } to { opacity: 1; clip-path: inset(0); } }

@media (max-width: 980px) {
  .operator-shell .admin-workspace { grid-template-columns: 1fr; }
  .admin-rail { position: relative; top: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--flight-line); }
  .admin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
  .admin-metrics div { padding-inline: 12px; border-right: 1px solid var(--flight-line); }
  .collection-operation { grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(110px, .5fr)); }
  .operation-controls { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 780px) {
  .operator-shell .admin-workspace { padding-top: calc(var(--flight-top) + 40px); }
  .operator-shell .truth-bar { position: fixed; top: var(--flight-top); right: 0; left: 0; z-index: 104; }
  .collection-editor { inset: calc(var(--flight-top) + 40px) 0 0; padding: 34px 18px 70px; }
}

@media (max-width: 640px) {
  .admin-rail, .admin-surface { padding-inline: 18px; }
  .surface-heading { align-items: stretch; flex-direction: column; }
  .surface-heading .primary-button { width: 100%; }
  .collection-operation { grid-template-columns: 1fr; }
  .operation-controls { grid-column: auto; justify-content: stretch; }
  .operation-controls > * { flex: 1 1 130px; }
  .split-fields { grid-template-columns: 1fr; }
  .split-fields > span { grid-column: auto; }
  .collection-field-preview { grid-template-columns: 1fr; }
  .field-preview-copy { padding: 28px 20px; border-top: 1px solid var(--flight-line); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .collection-operation, .collection-editor { animation: none; }
}
