@font-face { font-family: 'Black Han Sans'; src: url('./fonts/BlackHanSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gowun Batang'; src: url('./fonts/GowunBatang-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jua'; src: url('./fonts/Jua-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --desk: #ebe4d6;
  --paper: #fcfaf4;
  --paper-tint: #f4efe4;
  --grid-bg: #e5ded0;
  --ink: #1b1916;
  --ink-soft: #433e36;
  --muted: #6c665b;
  --rule: #d5ccba;
  --rule-strong: #9f9583;
  --accent: #c4221d;
  --accent-hover: #a01915;
  --accent-soft: #fcf0ee;
  --accent-border: #e7b5b2;
  --focus: rgba(196, 34, 29, 0.22);
  --radius-xs: 3px;
  --radius-sm: 5px;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --font-display: 'Black Han Sans', 'Malgun Gothic', sans-serif;
  --font-serif: 'Gowun Batang', 'Batang', serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 14px 44px;
}

/* Printshop Masthead */
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.express-stamp {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px 3px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-xs);
  box-shadow: inset 0 0 0 1px var(--paper), inset 0 0 0 2px rgba(196, 34, 29, 0.35);
  color: var(--accent);
  background: rgba(252, 240, 238, 0.72);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  line-height: 1;
  transform: rotate(-2.2deg);
  user-select: none;
}

.masthead-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.topbar-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.topbar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.48rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.masthead-spec {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.btn-ghost {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-xs);
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #ffffff;
}

/* Main Workspace */
.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

/* Proof Sheet Stage */
.stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.proof-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 0 rgba(27, 25, 22, 0.08);
  overflow: hidden;
}

.proof-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.proof-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.proof-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.proof-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.proof-spec {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-meta {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Printer Grid Staging */
.stage-frame {
  position: relative;
  padding: 18px 16px;
  background-color: var(--grid-bg);
  background-image:
    linear-gradient(to right, rgba(27, 25, 22, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 25, 22, 0.055) 1px, transparent 1px),
    linear-gradient(to right, rgba(27, 25, 22, 0.115) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 25, 22, 0.115) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px, 80px 80px, 80px 80px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.15s ease;
}

.stage-frame.is-dragover {
  background-color: #f3e4df;
}

.proof-sheet {
  position: relative;
  background: #ffffff;
  padding: 3px;
  border: 1px solid rgba(27, 25, 22, 0.24);
  box-shadow: 0 6px 18px rgba(27, 25, 22, 0.13);
}

/* Registration / Crop Marks */
.crop-mark {
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
}

.crop-mark::before,
.crop-mark::after {
  content: '';
  position: absolute;
  background: rgba(27, 25, 22, 0.58);
}

.crop-tl { top: -10px; left: -10px; }
.crop-tl::before { right: 0; bottom: 2px; width: 9px; height: 1px; background: var(--accent); }
.crop-tl::after { right: 2px; bottom: 0; width: 1px; height: 9px; background: var(--accent); }

.crop-tr { top: -10px; right: -10px; }
.crop-tr::before { left: 0; bottom: 2px; width: 9px; height: 1px; }
.crop-tr::after { left: 2px; bottom: 0; width: 1px; height: 9px; }

.crop-bl { bottom: -10px; left: -10px; }
.crop-bl::before { right: 0; top: 2px; width: 9px; height: 1px; }
.crop-bl::after { right: 2px; top: 0; width: 1px; height: 9px; }

.crop-br { bottom: -10px; right: -10px; }
.crop-br::before { left: 0; top: 2px; width: 9px; height: 1px; background: var(--accent); }
.crop-br::after { left: 2px; top: 0; width: 1px; height: 9px; background: var(--accent); }

#bannerCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 640;
  background: #eceae4;
}

.drop-cue {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 240, 238, 0.92);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-xs);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.stage-frame.is-dragover .drop-cue {
  opacity: 1;
}

/* Primary Stage Action Bar */
.stage-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px;
  background: var(--paper);
}

.btn-photo,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.08s ease;
}

.btn-photo {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-photo:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #312d28;
  border-color: #312d28;
}

.btn-secondary {
  grid-column: 1 / -1;
  height: 38px;
  background: var(--paper-tint);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  font-size: 0.83rem;
  font-weight: 700;
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--ink);
}

.btn-photo:active,
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(1px);
}

/* Nonblocking Express Dispatch Slip */
.dispatch-slip {
  background: #fffdf7;
  border: 1.5px solid var(--ink);
  border-top: 2px dashed var(--accent);
  border-radius: var(--radius-xs);
  box-shadow: 0 3px 10px rgba(27, 25, 22, 0.08);
  animation: slipIn 0.2s ease-out;
}

@keyframes slipIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dispatch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px 9px 14px;
  border-bottom: 1px dashed var(--rule-strong);
  background: var(--accent-soft);
}

.dispatch-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.dispatch-stamp {
  display: inline-block;
  padding: 2px 6px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  background: #ffffff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.dispatch-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}

.dispatch-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.btn-slip-close {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
}

.btn-slip-close:hover {
  border-color: var(--accent-border);
  background: #ffffff;
  color: var(--ink);
}

.dispatch-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dispatch-file-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
}

.dispatch-key {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--muted);
}

.dispatch-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dispatch-status {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.dispatch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.btn-slip-primary,
.btn-slip-secondary {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.btn-slip-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
}

.btn-slip-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-slip-secondary {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}

.btn-slip-secondary:hover {
  background: #ffffff;
  border-color: var(--ink);
}

.dispatch-fallback {
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dispatch-fallback-hint {
  margin: 0;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--accent);
}

.dispatch-preview-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: #eceae4;
}

/* Paper Order Form */
.controls {
  min-width: 0;
}

.order-sheet {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 0 rgba(27, 25, 22, 0.08);
  overflow: hidden;
}

.order-sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  background: var(--paper-tint);
  border-bottom: 1.5px solid var(--ink);
}

.order-sheet-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.order-sheet-code {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--accent);
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.order-section {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
}

.order-sheet > .order-section:last-child {
  border-bottom: none;
}

.panel-presets {
  gap: 10px;
}

.panel-head,
.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-num {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.label {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hint {
  font-size: 0.73rem;
  color: var(--muted);
}

.btn-inline {
  background: transparent;
  border: none;
  padding: 2px 3px;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.btn-inline.accent-link,
.btn-inline.danger {
  color: var(--accent);
}

.btn-inline.accent-link:hover,
.btn-inline.danger:hover {
  color: var(--accent-hover);
}

/* Preset Chips */
.preset-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.preset-row::-webkit-scrollbar {
  display: none;
}

.preset-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.preset-chip:hover {
  border-color: var(--rule-strong);
  background: #ffffff;
}

.preset-chip.is-flagship::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.preset-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.preset-chip.is-flagship[aria-pressed="true"]::before {
  background: #ffd43b;
}

/* Quiet Form Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

input[type="text"] {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-xs);
  background: #ffffff;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}

input[type="text"]::placeholder {
  color: #a69f92;
}

/* Exaggeration Slider */
.level-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #ddd5c5;
  margin: 6px 0 2px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(27, 25, 22, 0.32);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(27, 25, 22, 0.32);
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.71rem;
  color: var(--muted);
}

/* Theme Swatches */
.theme-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 35px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--rule);
  background: var(--paper-tint);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.theme-btn:hover {
  border-color: var(--rule-strong);
  background: #ffffff;
  color: var(--ink);
}

.theme-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.theme-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(27, 25, 22, 0.22);
  flex-shrink: 0;
}

/* Sample Artworks & Custom Photo Bar */
.artwork-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.artwork-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--rule);
  background: var(--paper-tint);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.artwork-btn:hover {
  border-color: var(--rule-strong);
  background: #ffffff;
  color: var(--ink);
}

.artwork-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.artwork-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(27, 25, 22, 0.15);
  background: #ece6d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
}

.custom-photo-bar {
  padding: 9px 11px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-photo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.custom-photo-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zoom-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.zoom-row .hint,
.zoom-val {
  flex-shrink: 0;
}

.zoom-val {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-soft);
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.zoom-row input[type="range"] {
  margin: 0;
}

/* Toast Notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 14px);
  background: var(--ink);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(27, 25, 22, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100;
  max-width: calc(100vw - 28px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Medium screens */
@media (min-width: 540px) {
  .stage-actions {
    grid-template-columns: 1.15fr 1.15fr auto;
  }

  .btn-secondary {
    grid-column: auto;
    height: 44px;
    padding: 0 14px;
  }

  .theme-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet layout */
@media (min-width: 720px) and (max-width: 979px) {
  .app {
    padding: 16px 22px 48px;
  }

  .stage-frame {
    padding: 24px 24px;
  }

  .controls-grid {
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--rule);
  }

  .controls-grid .order-section {
    border-bottom: none;
  }

  .controls-grid .panel-text {
    border-right: 1px solid var(--rule);
  }

  .controls-grid .theme-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .preset-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Responsive 2-Column Desktop Workbench */
@media (min-width: 980px) {
  .app {
    padding: 18px 26px 56px;
  }

  .topbar {
    padding: 2px 0 13px;
    margin-bottom: 18px;
  }

  .topbar h1 {
    font-size: 1.72rem;
  }

  .express-stamp {
    font-size: 1rem;
    padding: 5px 10px 4px;
  }

  .masthead-spec {
    display: inline;
  }

  .workspace {
    grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.92fr);
    gap: 22px;
  }

  .stage-wrap {
    position: sticky;
    top: 16px;
  }

  .stage-frame {
    padding: 26px 26px;
  }

  .preset-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .theme-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .theme-row {
    grid-template-columns: repeat(4, 1fr);
  }
}
