@charset "UTF-8";

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--folio-paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--folio-paper);
  color: var(--folio-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
.stage:focus-visible {
  outline: 2px solid var(--folio-teal);
  outline-offset: 3px;
}

/* Studio Header / Topbar */
.topbar {
  height: 72px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 420px) minmax(280px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1480px) / 2));
  border-bottom: 1px solid var(--folio-line);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-progress {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 16px;
  color: var(--folio-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: var(--folio-line);
  border-radius: 2px;
}

.progress-track i {
  width: 20%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--folio-teal), var(--folio-accent));
  border-radius: 2px;
  transition: width 320ms cubic-bezier(0.2, 0, 0, 1);
}

.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0;
}

.topbar-actions a,
.topbar-actions button {
  font-size: 12px;
}

.reset-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--folio-line-subtle);
  border-radius: var(--folio-radius-sm);
  background: #ffffff;
  padding: 6px 12px;
  color: var(--folio-muted);
  font-size: 11px;
  transition: all 160ms ease;
}

.reset-button:hover {
  border-color: var(--folio-ink);
  color: var(--folio-ink);
  background: var(--folio-paper);
}

/* Two-Panel Workspace */
.workspace {
  width: min(1480px, 100%);
  height: calc(100vh - 114px);
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(420px, 42%) minmax(0, 58%);
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  border-right: 1px solid var(--folio-line);
  border-left: 1px solid var(--folio-line);
}

/* Left Configuration Panel */
.config-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  padding: 0 34px 0 38px;
  border-right: 1px solid var(--folio-line);
  background: #ffffff;
}

/* Current Work Context Card */
.design-context {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--folio-line-subtle);
}

.design-context img {
  width: 46px;
  height: 56px;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--folio-line);
  border-radius: 4px;
  background: #171d21;
  box-shadow: var(--folio-shadow-sm);
}

.design-context div {
  min-width: 0;
}

.design-context p {
  margin: 0 0 4px;
  color: var(--folio-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.design-context h1 {
  margin: 0;
  overflow: hidden;
  font-family: var(--folio-font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--folio-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-context span {
  display: block;
  margin-top: 3px;
  color: var(--folio-faint);
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* 5-Step Progress Rail */
.step-rail {
  padding: 16px 0;
  border-bottom: 1px solid var(--folio-line);
}

.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rail-label,
.section-kicker {
  margin: 0;
  color: var(--folio-teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.rail-heading > span {
  color: var(--folio-faint);
  font-size: 10px;
}

.step-rail ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-rail li {
  min-width: 0;
}

.step-button {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 0;
  border-top: 2px solid var(--folio-line);
  background: transparent;
  padding: 10px 4px 0 0;
  color: var(--folio-faint);
  text-align: left;
  cursor: pointer;
  transition: all 180ms ease;
}

.step-button:hover:not(:disabled) {
  color: var(--folio-ink);
  border-top-color: var(--folio-muted);
}

.step-button[aria-current="step"] {
  border-top-color: var(--folio-accent);
  color: var(--folio-ink);
}

.step-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.step-number {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-copy {
  min-width: 0;
}

.step-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.step-value {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--folio-faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-button[aria-current="step"] .step-value {
  color: var(--folio-teal);
  font-weight: 500;
}

/* Panel Header */
.panel-heading {
  padding: 22px 0 16px;
}

.panel-step {
  margin: 12px 0 6px;
  color: var(--folio-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-heading h2 {
  margin: 0 0 8px;
  font-family: var(--folio-font-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--folio-ink);
}

.panel-heading > p:last-child {
  max-width: 440px;
  margin: 0;
  color: var(--folio-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Panel Content & Option Grids */
.panel-content {
  min-height: 0;
  overflow-y: auto;
  padding: 4px 8px 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--folio-line) transparent;
}

.panel-content::-webkit-scrollbar {
  width: 5px;
}

.panel-content::-webkit-scrollbar-thumb {
  background: var(--folio-line);
  border-radius: 3px;
}

.option-detail {
  margin: 0 0 16px;
  border-left: 3px solid var(--folio-teal);
  border-radius: 0 var(--folio-radius-sm) var(--folio-radius-sm) 0;
  background: var(--folio-teal-soft);
  padding: 10px 14px;
  color: var(--folio-teal);
  font-size: 11px;
  line-height: 1.7;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.option-grid.formats,
.option-grid.substrates {
  grid-template-columns: 1fr 1fr;
}

.option-grid.sides,
.option-grid.processes {
  grid-template-columns: 1fr;
}

/* Individual Option Button Card */
.option {
  position: relative;
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--folio-line);
  border-radius: var(--folio-radius-md);
  background: #ffffff;
  padding: 12px 14px;
  color: var(--folio-muted);
  text-align: left;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.2, 0, 0, 1);
}

.option:hover {
  border-color: #adb5b0;
  color: var(--folio-ink);
  transform: translateY(-1px);
  box-shadow: var(--folio-shadow-sm);
}

.option[aria-pressed="true"] {
  border-color: var(--folio-teal);
  background: #f1f8f6;
  color: var(--folio-ink);
  box-shadow: 0 0 0 1px var(--folio-teal), inset 3px 0 0 var(--folio-teal);
}

.option-copy {
  min-width: 0;
}

.option strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--folio-ink);
}

.option small {
  display: block;
  margin-top: 4px;
  color: var(--folio-faint);
  font-size: 10px;
  line-height: 1.5;
}

.option[aria-pressed="true"] small {
  color: var(--folio-muted);
}

.option-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--folio-line);
  border-radius: 50%;
  color: transparent;
  font-size: 9px;
  font-weight: 700;
  transition: all 160ms ease;
}

.option[aria-pressed="true"] .option-check {
  border-color: var(--folio-teal);
  background: var(--folio-teal);
  color: #ffffff;
}

/* Shape Previews for Formats */
.format-shape {
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
}

.format-shape i {
  display: block;
  border: 1.5px solid #737c78;
  background: var(--folio-paper);
  box-shadow: 3px 3px 0 rgba(22, 122, 114, 0.15);
}

/* Substrate Procedural Foil Swatches */
.substrate-swatch {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(24, 27, 26, 0.16);
  border-radius: var(--folio-radius-sm);
  background: var(--swatch-base);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.substrate-swatch::before,
.substrate-swatch::after {
  content: "";
  position: absolute;
  inset: -16px;
  opacity: 0.75;
}

.substrate-swatch::before {
  background: repeating-linear-gradient(
    var(--swatch-angle),
    transparent 0 5px,
    var(--swatch-accent) 6px 7px,
    transparent 8px 12px
  );
}

.substrate-swatch::after {
  background:
    radial-gradient(circle at 30% 28%, #ffffffdd 0 2px, transparent 3px),
    radial-gradient(circle at 70% 72%, var(--swatch-accent) 0 2px, transparent 3px);
  background-size: 15px 15px, 19px 19px;
  mix-blend-mode: screen;
}

.substrate-swatch[data-family="metal"]::before {
  background: linear-gradient(120deg, transparent 15%, #ffffff 50%, transparent 75%);
}

.substrate-swatch[data-family="porcelain"]::before {
  background: radial-gradient(circle at 35% 30%, #ffffff 0 15%, transparent 50%);
}

.substrate-swatch[data-family="cloud"]::before,
.substrate-swatch[data-family="shell"]::before {
  background:
    radial-gradient(ellipse at 20% 30%, var(--swatch-accent) 0 16%, transparent 45%),
    radial-gradient(ellipse at 75% 65%, #ffffff 0 14%, transparent 42%);
}

.substrate-swatch[data-family="diamond"]::before,
.substrate-swatch[data-family="cross"]::before {
  background:
    repeating-linear-gradient(45deg, transparent 0 7px, #ffffffc4 8px 9px),
    repeating-linear-gradient(-45deg, transparent 0 7px, var(--swatch-accent) 8px 9px);
}

.substrate-swatch[data-family="ripple"]::before {
  inset: 5px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px transparent, 0 0 0 6px var(--swatch-accent), 0 0 0 12px transparent, 0 0 0 13px #ffffff;
}

/* Side & Process Icons */
.side-icon,
.process-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--folio-line);
  border-radius: var(--folio-radius-sm);
  color: var(--folio-muted);
  font-size: 11px;
  font-weight: 700;
  background: var(--folio-paper);
}

.process-icon {
  border-color: #ebd3ce;
  background: var(--folio-accent-surface);
  color: var(--folio-accent);
}

/* Step 5: Build Summary Passport Sheet */
.build-summary {
  display: grid;
  gap: 18px;
}

.generated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--folio-radius-sm);
  background: var(--folio-teal-soft);
  padding: 6px 14px;
  color: var(--folio-teal);
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}

.generated-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--folio-teal);
  box-shadow: 0 0 0 3px rgba(22, 122, 114, 0.2);
}

.summary-block {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--folio-line-subtle);
}

.summary-block:last-child {
  border-bottom: 0;
}

.summary-block h3 {
  margin: 0 0 10px;
  color: var(--folio-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.summary-block > strong {
  display: block;
  color: var(--folio-ink);
  font-size: 13px;
  font-weight: 600;
}

.summary-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
}

.summary-list dt {
  color: var(--folio-muted);
}

.summary-list dd {
  margin: 0;
  color: var(--folio-ink);
  text-align: right;
  font-weight: 500;
}

.route-code {
  display: inline-block;
  margin-top: 6px;
  border: 1px solid rgba(22, 122, 114, 0.25);
  border-radius: 3px;
  background: var(--folio-teal-soft);
  padding: 3px 8px;
  color: var(--folio-teal);
  font: 500 10px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.layer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-chip {
  border: 1px solid var(--folio-line);
  border-radius: 3px;
  background: var(--folio-paper);
  padding: 5px 8px;
  color: var(--folio-ink);
  font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.warning-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.warning-list li {
  position: relative;
  padding-left: 14px;
  color: var(--folio-muted);
  font-size: 11px;
  line-height: 1.6;
}

.warning-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--folio-accent);
}

/* Panel Actions Buttons */
.panel-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--folio-line);
  background: #ffffff;
}

.panel-actions.final-actions {
  grid-template-columns: 1fr 1fr;
}

.panel-actions.final-actions .wide {
  grid-column: 1 / -1;
}

.action-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--folio-line);
  border-radius: var(--folio-radius-sm);
  background: #ffffff;
  padding: 0 18px;
  color: var(--folio-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}

.action-button:hover:not(:disabled) {
  border-color: var(--folio-ink);
  background: #fafbfa;
  transform: translateY(-1px);
}

.action-button.primary {
  border-color: var(--folio-accent);
  background: var(--folio-accent);
  color: #ffffff;
  box-shadow: var(--folio-shadow-sm);
}

.action-button.primary:hover:not(:disabled) {
  border-color: var(--folio-accent-hover);
  background: var(--folio-accent-hover);
  box-shadow: 0 6px 18px rgba(196, 69, 51, 0.22);
}

.action-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.action-button.back {
  min-width: 50px;
  color: var(--folio-ink);
  font-size: 15px;
}

/* Right Preview Workbench */
.preview-workbench {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 24px 28px 20px;
  background: #edf0ed;
}

.preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
}

.preview-heading h2 {
  margin: 6px 0 0;
  font-family: var(--folio-font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--folio-ink);
}

.view-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-tabs button {
  min-width: 80px;
  min-height: 36px;
  border: 1px solid var(--folio-line);
  border-radius: var(--folio-radius-sm);
  background: #ffffff;
  color: var(--folio-muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms ease;
}

.view-tabs button:hover {
  border-color: var(--folio-teal);
  color: var(--folio-teal);
}

.view-tabs button[aria-pressed="true"] {
  border-color: var(--folio-teal);
  background: var(--folio-teal);
  color: #ffffff;
}

.view-tabs b {
  margin-left: 5px;
  font-size: 10px;
  font-weight: 500;
}

/* 3D Stage */
.stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--folio-radius-md) var(--folio-radius-md) 0 0;
  background: radial-gradient(circle at 50% 45%, #182025 0%, var(--folio-stage) 70%);
  color: #e8ece9;
  cursor: grab;
  touch-action: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.stage:active {
  cursor: grabbing;
}

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

.stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  pointer-events: none;
}

.stage-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: #9dcac3;
  font-size: 12px;
  background: rgba(15, 19, 21, 0.82);
  backdrop-filter: blur(8px);
}

.stage-metadata {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 32px;
  display: flex;
  gap: 14px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--folio-radius-sm);
  background: rgba(18, 24, 22, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
}

.stage-metadata span {
  color: #a4b0ab;
  font-size: 10px;
  font-weight: 500;
}

.stage-metadata span + span::before {
  content: "·";
  margin-right: 14px;
  color: #5d6763;
}

.stage-caption {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 12px;
  margin: 0;
  color: #4e5853;
  font-size: 9px;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  pointer-events: none;
}

.stage-toolbar {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.stage-toolbar button {
  min-width: 72px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--folio-radius-sm);
  background: rgba(18, 24, 22, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #c0cac5;
  cursor: pointer;
  transition: all 160ms ease;
}

.stage-toolbar button:hover,
.stage-toolbar button[aria-pressed="true"] {
  border-color: #66a99f;
  background: rgba(22, 122, 114, 0.45);
  color: #ffffff;
}

.stage-toolbar span {
  color: #7cc0b5;
  font-size: 13px;
}

.stage-toolbar b {
  font-size: 10px;
  font-weight: 500;
}

.stage-hint {
  position: absolute;
  z-index: 3;
  left: 32px;
  bottom: 28px;
  margin: 0;
  color: #838e88;
  font-size: 10px;
  pointer-events: none;
}

.stage-hint > span {
  margin-right: 8px;
  color: #7cc0b5;
  font-size: 15px;
}

.stage-hint b {
  margin: 0 8px;
  color: #4a544f;
  font-weight: 400;
}

/* 4-Column Bottom Selection Strip */
.selection-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--folio-line);
  border-top: 0;
  border-radius: 0 0 var(--folio-radius-md) var(--folio-radius-md);
  background: #ffffff;
  box-shadow: var(--folio-shadow-sm);
}

.selection-strip div {
  min-width: 0;
  padding: 14px 18px;
  border-right: 1px solid var(--folio-line-subtle);
}

.selection-strip div:last-child {
  border-right: 0;
}

.selection-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--folio-faint);
  font-size: 10px;
  font-weight: 500;
}

.selection-strip strong {
  display: block;
  overflow: hidden;
  color: var(--folio-ink);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Page Footer */
.page-footer {
  width: min(1480px, calc(100% - 48px));
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  color: var(--folio-faint);
  font-size: 11px;
}

body.is-generated .preview-heading h2 {
  color: var(--folio-teal);
}

body.is-generated .stage::before {
  border-color: rgba(124, 192, 181, 0.28);
}

/* Responsive Breakpoints */
@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto minmax(220px, 340px) 1fr;
    padding: 0 20px;
  }
  .workspace {
    grid-template-columns: minmax(380px, 44%) minmax(0, 56%);
  }
  .config-panel {
    padding: 0 24px;
  }
  .option-grid.substrates {
    grid-template-columns: 1fr;
  }
  .stage-toolbar button {
    min-width: 42px;
    width: 42px;
  }
  .stage-toolbar b {
    display: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    height: 64px;
    grid-template-columns: auto 1fr;
  }
  .topbar-progress {
    display: none;
  }
  .topbar-actions a {
    display: none;
  }
  .topbar-actions [data-auth-private] {
    display: none !important;
  }
  .workspace {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border: 0;
  }
  .preview-workbench {
    order: 1;
    min-height: 580px;
    grid-template-rows: auto 480px auto;
    padding: 20px 20px 0;
  }
  .config-panel {
    order: 2;
    min-height: 700px;
    padding: 0 24px;
    border-top: 1px solid var(--folio-line);
    border-right: 0;
  }
  .option-grid.substrates {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .reset-button span {
    display: none;
  }
  .preview-workbench {
    min-height: 480px;
    grid-template-rows: auto 380px auto;
    padding: 16px 12px 0;
  }
  .preview-heading {
    padding: 0 4px 10px;
  }
  .preview-heading h2 {
    max-width: 180px;
    font-size: 15px;
  }
  .view-tabs button {
    min-width: 48px;
    padding: 0 8px;
  }
  .view-tabs b {
    display: none;
  }
  .stage-metadata {
    top: 20px;
    left: 20px;
  }
  .stage-toolbar {
    right: 16px;
    bottom: 16px;
  }
  .selection-strip div {
    padding: 10px 8px;
  }
  .selection-strip span {
    font-size: 9px;
  }
  .selection-strip strong {
    font-size: 10px;
  }
  .config-panel {
    padding: 0 16px;
  }
  .step-value {
    display: none;
  }
  .panel-heading h2 {
    font-size: 28px;
  }
  .panel-content {
    max-height: 580px;
  }
  .option-grid.formats {
    grid-template-columns: 1fr;
  }
  .panel-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  }
  .page-footer {
    width: calc(100% - 32px);
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
