/* ==========================================================================
   art.prof — Warm Archival Atelier Design System
   Zero dependencies, tactile editorial styling, light & dark studio themes.
   ========================================================================== */

:root {
  --bg: #f5f1e8;
  --surface: #fcfaf5;
  --surface-subtle: #ebe5d8;
  --stage-bg: #e7e1d4;
  --ink: #1c1a17;
  --ink-secondary: #4a443c;
  --ink-muted: #766e63;
  --border: rgba(28, 26, 23, 0.12);
  --border-strong: rgba(28, 26, 23, 0.22);
  --accent: #b3492a;
  --accent-hover: #94391e;
  --accent-soft: rgba(179, 73, 42, 0.11);
  --olive: #4b6147;
  --olive-soft: rgba(75, 97, 71, 0.12);
  --shadow-sm: 0 1px 2px rgba(28, 26, 23, 0.05);
  --shadow-md: 0 8px 28px rgba(28, 26, 23, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 26, 23, 0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

[data-theme="dark"] {
  --bg: #141311;
  --surface: #1d1b18;
  --surface-subtle: #272420;
  --stage-bg: #0f0e0d;
  --ink: #f1ece2;
  --ink-secondary: #c9c1b5;
  --ink-muted: #938a7e;
  --border: rgba(241, 236, 226, 0.11);
  --border-strong: rgba(241, 236, 226, 0.22);
  --accent: #d86d49;
  --accent-hover: #e5805d;
  --accent-soft: rgba(216, 109, 73, 0.16);
  --olive: #87a882;
  --olive-soft: rgba(135, 168, 130, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Sponsor Strip (hidden unless enabled in config.js)
   ========================================================================== */
.sponsor-strip {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-secondary);
}

.sponsor-strip.is-visible {
  display: flex;
}

.sponsor-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
}

.brand-mark:hover {
  text-decoration: none;
}

.brand-dot {
  color: var(--accent);
}

.brand-subtitle {
  font-size: 12.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--olive-soft);
  color: var(--olive);
  font-size: 12px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffaf5;
}

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

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface-subtle);
  border-color: var(--border);
}

.btn-sm {
  padding: 5px 9px;
  font-size: 12px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
}

/* ==========================================================================
   Main Studio Workbench
   ========================================================================== */
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 18px 24px 36px;
  align-items: start;
}

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

.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.mode-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 1px;
}

.mode-btn {
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.mode-btn:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.mode-btn.is-active {
  background: var(--ink);
  color: var(--surface);
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.toggle-chip:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.toggle-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Canvas Viewport */
.canvas-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  max-height: 74vh;
  padding: 18px;
  background: var(--stage-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  user-select: none;
}

.canvas-frame.is-dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--stage-bg) 88%, var(--accent));
}

.canvas-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  box-shadow: var(--shadow-md);
  border-radius: 3px;
  overflow: hidden;
  cursor: crosshair;
}

#studio-canvas {
  display: block;
  max-width: 100%;
  max-height: calc(74vh - 40px);
  width: auto;
  height: auto;
}

/* Split compare vertical curtain */
.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: ew-resize;
  display: none;
  z-index: 6;
}

.split-handle.is-visible {
  display: block;
}

.split-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Sampled Pin Overlay */
.sample-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
  z-index: 5;
}

.sample-pin.is-visible {
  display: block;
}

/* Live Timer HUD inside canvas */
.timer-hud {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 19, 17, 0.84);
  color: #f8f4ec;
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  z-index: 8;
}

.timer-hud.is-visible {
  display: inline-flex;
}

.timer-hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e67e55;
}

/* Drop Hint Banner */
.stage-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
  font-size: 12px;
  color: var(--ink-muted);
}

.stage-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Right Inspector Panel
   ========================================================================== */
.inspector-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.inspector-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.tab-btn {
  padding: 11px 8px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease;
}

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

.tab-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.tab-pane {
  display: none;
  padding: 16px;
}

.tab-pane.is-active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.control-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-title {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.mono-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Sliders */
.slider-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--surface-subtle);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* Segmented pills */
.segmented {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.seg-btn {
  flex: 1;
  padding: 5px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.14s ease;
}

.seg-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Grid Selector */
.grid-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.option-pill {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: all 0.14s ease;
}

.option-pill:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.option-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Value Histogram (10 Munsell Zones) */
.histogram-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.histogram-bars {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 4px;
  height: 78px;
  padding: 8px 6px 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.hist-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 3px;
}

.hist-bar {
  width: 100%;
  min-height: 3px;
  border-radius: 2px 2px 0 0;
  transition: height 0.25s ease;
}

.hist-scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  color: var(--ink-muted);
}

.tonal-summary {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.tonal-diagnosis {
  font-size: 12px;
  color: var(--ink-muted);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

/* Pigment & Color Sampler */
.swatch-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.swatch-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.swatch-color-bar {
  height: 54px;
  width: 100%;
}

.swatch-meta {
  padding: 6px 8px;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.color-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.metric-cell {
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.metric-label {
  font-size: 10.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recipe-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.pigment-name-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.pigment-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.pigment-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.recipe-bar-track {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.recipe-bar-fill {
  height: 100%;
  border-radius: 999px;
}

/* Dominant Palette Strip */
.palette-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.palette-chip {
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  position: relative;
  transition: transform 0.12s ease;
}

.palette-chip:hover {
  transform: translateY(-2px);
}

.saved-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px 3px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
}

.saved-chip-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Affiliate Studio Supply Block */
.supply-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.supply-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.supply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.supply-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.supply-link {
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.supply-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.affiliate-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Study Timer */
.timer-display {
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.timer-clock {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--ink);
}

.timer-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-muted);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.timer-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.queue-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.queue-thumb {
  width: 52px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.queue-thumb.is-active {
  border-color: var(--accent);
}

/* ==========================================================================
   SEO Reference Guide (Below the Studio Fold)
   ========================================================================== */
.guide-section {
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 40px 24px 64px;
  border-top: 1px solid var(--border);
}

.guide-intro {
  max-width: 660px;
  margin-bottom: 28px;
}

.guide-intro h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.guide-intro p {
  margin: 0;
  color: var(--ink-secondary);
}

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

.guide-item {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.guide-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
}

.guide-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Modal (Atelier Pro / Support)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 12, 0.56);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.pro-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.pro-feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 70;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .workbench {
    grid-template-columns: 1fr;
    padding: 14px 16px 28px;
  }

  .canvas-frame {
    min-height: 360px;
    max-height: 60vh;
  }

  #studio-canvas {
    max-height: calc(60vh - 36px);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand-subtitle,
  .privacy-chip {
    display: none;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    justify-content: center;
  }
}
