:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #66736d;
  --surface: #ffffff;
  --page: #f5f7f2;
  --line: #d7ddd4;
  --field: #fbfcfa;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --amber: #b45309;
  --red: #b42318;
  --red-bg: #fff1f0;
  --shadow: 0 18px 45px rgba(23, 32, 29, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

.app-bar {
  background: #162420;
  color: #f7faf5;
  border-bottom: 4px solid #d1972c;
}

.app-bar > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #bfd6ce;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.workspace {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.tool-panel,
.result-panel,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  min-width: 0;
}

.upload-panel,
.settings-panel,
.result-panel {
  padding: 20px;
}

.upload-panel {
  border-right: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head span {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 10px;
  color: var(--teal-dark);
  background: #eef8f6;
  border: 1px dashed #79b7ae;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-zone.is-dragover {
  background: #d8f0ec;
  border-style: solid;
  border-color: var(--teal);
  color: var(--teal-dark);
}

.drop-zone.is-dragover * {
  pointer-events: none;
}

.cube-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.file-field {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf7 100%);
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.file-field input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-field:hover,
.file-field:focus-within {
  border-color: #88b8b0;
  box-shadow: 0 10px 24px rgba(23, 32, 29, 0.08);
}

.file-field-title {
  color: #2f403b;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
}

.file-picker-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: #0f5f59;
  background: #eef8f6;
  border: 1px solid #b8d8d3;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-field.has-file {
  border-color: #86b8a8;
  background: #fbfdfb;
}

.file-field.has-file .file-picker-button {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.file-field.has-file .file-name {
  color: var(--ink);
  font-weight: 700;
}

.compact-head {
  margin-top: 18px;
  margin-bottom: 8px;
}

.crop-stage {
  position: relative;
  width: 100%;
  min-height: 150px;
  max-height: 420px;
  aspect-ratio: var(--crop-aspect, 1 / 1);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.12) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(15, 118, 110, 0.12) 0 1px, transparent 1px 100%),
    #e9eee8;
  background-size: 24px 24px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  color: var(--muted);
  cursor: grab;
  text-align: center;
  touch-action: none;
}

.square-stage {
  aspect-ratio: 1 / 1;
}

.crop-stage:active {
  cursor: grabbing;
}

.crop-stage::before,
.crop-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(14%, 52px);
  pointer-events: none;
}

.crop-stage::before {
  left: 0;
  background: linear-gradient(90deg, rgba(251, 252, 250, 0.78), rgba(251, 252, 250, 0));
}

.crop-stage::after {
  right: 0;
  background: linear-gradient(270deg, rgba(251, 252, 250, 0.78), rgba(251, 252, 250, 0));
}

.crop-stage img {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  user-select: none;
  pointer-events: none;
}

#preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.range-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.range-row span {
  margin: 0;
}

.range-row input {
  width: 100%;
  accent-color: var(--teal);
}

.crop-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.span-2 {
  grid-column: 1 / -1;
}

label {
  min-width: 0;
}

label > span {
  display: block;
  margin-bottom: 6px;
  color: #33413c;
  font-size: 0.86rem;
  font-weight: 650;
}

input[type="number"],
select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid #c5cec9;
  border-radius: 8px;
}

input[type="number"]:focus,
select:focus,
.drop-zone:focus-within {
  outline: 3px solid rgba(180, 83, 9, 0.22);
  border-color: var(--amber);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  background: var(--field);
  border: 1px solid #c5cec9;
  border-radius: 8px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.check-row span {
  margin: 0;
}

.primary-button,
.download-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-button,
.download-button {
  width: 100%;
  background: var(--teal);
  color: #ffffff;
}

.secondary-button {
  min-height: 38px;
  background: #edf2ef;
  color: var(--teal-dark);
  border: 1px solid #c5cec9;
}

.primary-button:hover,
.download-button:hover {
  background: var(--teal-dark);
}

.secondary-button:hover {
  background: #e0ebe7;
}

.primary-button:disabled {
  cursor: progress;
  opacity: 0.78;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
}

.notice-error {
  background: var(--red-bg);
  border-color: #f1b8b4;
  color: var(--red);
}

.notice strong {
  display: block;
  margin-bottom: 8px;
}

.notice ul {
  margin: 0;
  padding-left: 20px;
}

.result-panel {
  min-width: 0;
}

.empty-result {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--muted);
}

.empty-result h2 {
  color: var(--ink);
}

.empty-result p {
  margin: 0;
}

.stats-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.stats-grid div {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(0, 1.1fr);
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 0.86rem;
}

dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
  text-align: right;
}

@media (max-width: 960px) {
  .layout-grid,
  .tool-panel {
    grid-template-columns: 1fr;
  }

  .upload-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

}

@media (max-width: 620px) {
  .app-bar > div,
  .workspace {
    width: min(100% - 20px, 1180px);
  }

  .upload-panel,
  .settings-panel,
  .result-panel {
    padding: 16px;
  }

  .field-grid,
  .stats-grid div {
    grid-template-columns: 1fr;
  }

  dd {
    text-align: left;
  }
}

.lit-preview {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lit-preview-stage {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #0c0f0e;
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.lit-preview-stage img {
  display: block;
  max-width: 100%;
  height: auto;
}

.lit-preview-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

#lit-preview-status {
  color: var(--amber);
}

.lit-cylinder-stage {
  position: relative;
  margin-top: 8px;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 30%, #20262e 0%, #0c0f0e 70%);
  touch-action: none;
  cursor: grab;
}

.lit-cylinder-stage:active {
  cursor: grabbing;
}

.lit-cylinder-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.cube-preview-stage {
  height: 340px;
}

.panel-preview-stage {
  display: grid;
  place-items: center;
  height: 340px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #20262e 0%, #0c0f0e 70%);
}

.panel-proof-product {
  /* Front elevation of the parametric frame (see frame_generator.build_frame).
     JS overrides these per the chosen lithophane size. */
  --panel-frame-aspect: 175 / 228;
  --panel-base-aspect: 189 / 5;
  --panel-pad-top: 3.5%;
  --panel-pad-side: 6.5%;
  --panel-pad-bottom: 7.5%;
  display: grid;
  justify-items: center;
  align-items: end;
  width: min(70%, 250px);
  max-height: 100%;
}

/* Deep front-loading frame: dark bezel with a thicker bottom band; the lit
   window sits high, leaving the solid bottom body beneath it. */
.panel-proof-frame {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: var(--panel-frame-aspect);
  padding: var(--panel-pad-top) var(--panel-pad-side) var(--panel-pad-bottom);
  background: linear-gradient(155deg, #4c4233 0%, #2b2318 52%, #181209 100%);
  border-radius: 7px 7px 2px 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 214, 0.2), /* top edge catches light */
    inset 0 0 0 1px rgba(0, 0, 0, 0.55), /* inner seam */
    0 0 0 1px rgba(255, 226, 182, 0.14), /* outline against dark stage */
    0 18px 30px rgba(0, 0, 0, 0.55); /* separation shadow */
}

/* Removable top cap that closes the slide-in slot. */
.panel-proof-cap {
  position: absolute;
  left: 3.5%;
  right: 3.5%;
  top: -3px;
  height: max(var(--panel-pad-top), 9px);
  background: linear-gradient(180deg, #5a4f3d 0%, #2c2418 100%);
  border-radius: 6px 6px 2px 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 214, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.55);
}

.panel-proof-cap::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -2px;
  height: 2px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 2px;
}

.panel-proof-image {
  position: relative;
  display: grid;
  place-items: stretch;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: #ffd890;
  /* internal LED strip glowing behind the litho */
  box-shadow:
    inset 0 0 34px rgba(255, 196, 92, 0.42),
    inset 0 16px 26px rgba(255, 216, 142, 0.3),
    0 0 22px rgba(255, 180, 70, 0.22);
}

.panel-proof-image canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Integrated base lip the frame stands on — wider than the body, short. */
.panel-proof-base {
  width: min(100%, 250px);
  aspect-ratio: var(--panel-base-aspect);
  min-height: 7px;
  margin-top: -1px;
  background: linear-gradient(180deg, #2e271c 0%, #120e09 100%);
  border-radius: 2px 2px 7px 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 214, 0.14),
    0 14px 22px rgba(0, 0, 0, 0.5);
}

/* Width/height lock to the chosen print size unless "Custom" is selected. */
.field-grid input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* When the panel preview renders as interactive 3D (WebGL), let the canvas
   fill the stage and enable drag/scroll gestures. */
.panel-preview-stage.is-3d {
  position: relative;
  display: block;
  padding: 0;
  cursor: grab;
  touch-action: none;
}

.panel-preview-stage.is-3d:active {
  cursor: grabbing;
}

.panel-preview-stage.is-3d canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.lit-cylinder-hint {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.field-grid .span-2 {
  grid-column: 1 / -1;
}

input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid #c5cec9;
  border-radius: 8px;
}

input[type="text"]:focus {
  outline: 3px solid rgba(180, 83, 9, 0.22);
  border-color: var(--amber);
}

/* ============================================================
   BakaroArt brand theme — aligns this app with bakaroart.com
   (appended so it overrides the defaults above)
   ============================================================ */
:root {
  color-scheme: dark;
  --ink: #f3efe7;        /* text — paper */
  --muted: #a8a294;      /* stone */
  --surface: #14120e;    /* cards — ink-soft */
  --page: #0b0a08;       /* background — ink */
  --line: #2a2722;
  --field: #100e0b;
  --teal: #ff4b14;       /* primary accent — flame */
  --teal-dark: #e23d0c;
  --amber: #ff4b14;      /* labels / eyebrow — flame */
  --red: #ef5350;
  --red-bg: rgba(239, 83, 80, 0.10);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

body {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

::selection { background: var(--teal); color: #0b0a08; }

.app-bar {
  background: var(--page);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
legend {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head span,
.range-row span,
.file-name,
label > span { color: var(--muted); }

.tool-panel,
.result-panel,
.notice { border-radius: 16px; }

.drop-zone {
  color: var(--teal);
  background: rgba(255, 75, 20, 0.06);
  border: 1px dashed rgba(255, 75, 20, 0.4);
  border-radius: 12px;
}
.drop-zone.is-dragover { background: rgba(255, 75, 20, 0.12); border-color: var(--teal); color: var(--teal); }

.file-field { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.file-field:hover,
.file-field:focus-within { border-color: rgba(255, 75, 20, 0.5); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.file-field-title { color: var(--ink); }
.file-picker-button {
  color: var(--teal);
  background: rgba(255, 75, 20, 0.08);
  border: 1px solid rgba(255, 75, 20, 0.3);
  border-radius: 999px;
}
.file-field.has-file { border-color: rgba(255, 75, 20, 0.5); background: var(--surface); }
.file-field.has-file .file-picker-button { color: #0b0a08; background: var(--teal); border-color: var(--teal); }

.crop-stage {
  background:
    linear-gradient(90deg, rgba(255, 75, 20, 0.10) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 75, 20, 0.10) 0 1px, transparent 1px 100%),
    #100e0b;
  background-size: 24px 24px;
  border: 1.5px solid rgba(255, 75, 20, 0.45);
  border-radius: 12px;
}
.crop-stage::before { background: linear-gradient(90deg, rgba(11,10,8,0.85), rgba(11,10,8,0)); }
.crop-stage::after  { background: linear-gradient(270deg, rgba(11,10,8,0.85), rgba(11,10,8,0)); }

input[type="number"],
input[type="text"],
select,
.check-row {
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
}
input[type="number"]:focus,
input[type="text"]:focus,
select:focus,
.drop-zone:focus-within {
  outline: 2px solid rgba(255, 75, 20, 0.4);
  outline-offset: 1px;
  border-color: var(--teal);
}
input[type="range"], .check-row input { accent-color: var(--teal); }

.primary-button,
.download-button,
.secondary-button { border-radius: 999px; font-weight: 600; }
.primary-button,
.download-button { background: var(--teal); color: #0b0a08; }
.primary-button:hover,
.download-button:hover { background: #f3efe7; color: #0b0a08; }
.secondary-button { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.secondary-button:hover { background: transparent; border-color: var(--teal); color: var(--teal); }

.notice-error { background: var(--red-bg); border-color: rgba(239, 83, 80, 0.4); color: #ffd7d4; }

/* previews — warm the cool grey radials to brand ink */
.lit-preview-stage { background: #100e0b; }
.lit-cylinder-stage,
.panel-preview-stage { background: radial-gradient(120% 90% at 50% 30%, #1a1712 0%, #0b0a08 70%); }

/* ============================================================
   BakaroArt redesign — layout, hierarchy & components (not just color)
   ============================================================ */

/* Header → a clean brand bar */
.app-bar > div,
.app-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
}
.brand {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--teal); }
.app-bar-tag {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Editorial page intro */
.workspace { width: min(1240px, calc(100% - 48px)); margin: 0 auto 56px; }
.page-intro { position: relative; max-width: 640px; padding: 52px 0 38px; }
.page-intro::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -90px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 75, 20, 0.10);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.page-intro > * { position: relative; z-index: 1; }
.page-intro .eyebrow { margin-bottom: 14px; }
.page-intro h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
}
.page-intro-lede {
  margin: 18px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Roomier layout + cards */
.layout-grid { gap: 24px; }
.tool-panel, .result-panel { border-radius: 20px; }
.upload-panel, .settings-panel, .result-panel { padding: 28px; }

/* Real section hierarchy */
.section-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.compact-head { margin-top: 22px; margin-bottom: 10px; padding-bottom: 0; border-bottom: 0; }
.compact-head h2 { font-size: 1.05rem; }

/* Form spacing */
fieldset { margin-bottom: 26px; }
legend { margin-bottom: 14px; }
.field-grid { gap: 16px; }
label > span { margin-bottom: 8px; font-size: 0.8rem; }

/* Inputs — taller, rounder, roomier */
input[type="number"], input[type="text"], select {
  height: 48px;
  border-radius: 12px;
  padding: 0 14px;
}
.check-row { min-height: 48px; border-radius: 12px; padding: 0 14px; }

/* Buttons — pill, generous, animated */
.primary-button, .download-button {
  min-height: 54px;
  font-size: 1rem;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.primary-button:hover, .download-button:hover { transform: translateY(-1px); }
.secondary-button { min-height: 40px; transition: border-color 200ms ease, color 200ms ease; }

/* Output stays in view */
.result-panel { position: sticky; top: 24px; }

/* Purchase options (paid downloads / print-to-order) */
.purchase-note {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.purchase-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.purchase-options form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.purchase-options .download-button,
.purchase-options .secondary-button {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.purchase-printed { min-height: 44px; font-size: 1rem; }
.purchase-sub {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Checkout success page */
.success-card {
  max-width: 600px;
  margin: 56px auto;
  text-align: center;
}
.success-card h1 { margin: 10px 0 16px; }
.success-back { display: inline-flex; margin-top: 24px; }
