/* ==========================================================================
   TRACEY EMIN STUDIO: NEON & CONFESSIONAL APPLIQUÉ (1993 - 2026)
   Style Sheet: Neon Tube Luminance, Distressed Gallery Backdrops & Textile Patches
   ========================================================================== */

:root {
  --bg-deep: #09090b;
  --bg-panel: rgba(18, 18, 22, 0.88);
  --bg-dock: rgba(15, 15, 19, 0.94);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-neon: rgba(244, 63, 94, 0.4);
  --neon-pink: #FF1493;
  --neon-cyan: #00F0FF;
  --neon-amber: #FFB800;
  --neon-lavender: #D946EF;
  --neon-white: #F8FAFC;
  --neon-red: #EF4444;
  --text-primary: #FAFAFA;
  --text-muted: #A1A1AA;
  --font-cursive: 'Caveat', 'Homemade Apple', cursive;
  --font-mono: 'Space Mono', monospace;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  height: 100vh;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Master Grid Layout */
.app-container {
  display: grid;
  grid-template-rows: 64px 1fr;
  grid-template-columns: 320px 1fr 340px;
  height: 100vh;
  width: 100vw;
}

/* Top Exhibition Header */
.studio-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-dock);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.artist-monogram {
  font-family: var(--font-cursive);
  font-size: 26px;
  font-weight: 700;
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 20, 147, 0.8), 0 0 20px rgba(255, 20, 147, 0.4);
  border: 1.5px solid var(--neon-pink);
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.brand-titles h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-titles p {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Master Theme Selector Pills */
.theme-selector-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.theme-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #FF1493, #7928CA);
  box-shadow: 0 0 16px rgba(255, 20, 147, 0.5);
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-header.active {
  background: rgba(255, 20, 147, 0.2);
  border-color: var(--neon-pink);
  color: #FF66C4;
  box-shadow: 0 0 12px rgba(255, 20, 147, 0.35);
}

/* Play Painting Button */
.btn-play-painting {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(0, 240, 255, 0.2));
  border: 1px solid rgba(255, 20, 147, 0.5);
  color: #fff;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-play-painting:hover {
  border-color: #00F0FF;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
}

.btn-play-painting.active {
  background: linear-gradient(135deg, #FF1493, #00F0FF);
  color: #000;
  box-shadow: 0 0 24px rgba(255, 20, 147, 0.7);
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 14px rgba(255, 20, 147, 0.6); }
  100% { box-shadow: 0 0 28px rgba(0, 240, 255, 0.8); }
}

/* LEFT SIDEBAR: CREATIVE FOUNDRY & SPANWER */
.sidebar-left {
  background: var(--bg-panel);
  border-right: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  z-index: 20;
}

.section-label {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Custom Text Input Box */
.custom-phrase-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
}

.phrase-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-cursive);
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.phrase-input:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.btn-add-phrase {
  width: 100%;
  background: rgba(255, 20, 147, 0.15);
  border: 1px solid var(--neon-pink);
  color: #FF85D0;
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-add-phrase:hover {
  background: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 20, 147, 0.6);
}

/* Spawner Grid */
.spawner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.spawn-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-align: center;
}

.spawn-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.spawn-card-icon {
  font-size: 24px;
}

.spawn-card-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Category Tag Bar */
.category-filter-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.cat-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.cat-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
}

/* RIGHT SIDEBAR: INSPECTOR & CONTROLS */
.sidebar-right {
  background: var(--bg-panel);
  border-left: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  z-index: 20;
}

.inspector-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-row label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.value-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* STYLED COLOR PICKER */
.styled-color-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  padding: 0;
  outline: none;
  transition: border-color 0.2s ease, transform 0.1s ease;
}

.styled-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.styled-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}

.styled-color-input:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.02);
}

/* Sliders */
input[type="range"] {
  width: 100%;
  accent-color: var(--neon-pink);
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

/* Action Button Grid */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn-action-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-action-icon.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #F87171;
}

/* Wall Texture / Atmosphere Selector */
.backdrop-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.backdrop-opt-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.backdrop-opt-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-cyan);
  color: #fff;
  font-weight: 600;
}

/* CENTER EXHIBITION STAGE */
.stage-container {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050507;
  padding: 24px;
}

.canvas-aspect-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

/* The Authentic Wall Backdrop Layer */
.emin-backdrop-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: background 0.4s ease;
}

/* Wall Styles */
.wall-dark-brick {
  background: 
    radial-gradient(circle at 50% 50%, rgba(25, 25, 32, 0.4), rgba(5, 5, 8, 0.95)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 52px),
    #111116;
}

.wall-concrete {
  background: 
    radial-gradient(circle at 50% 50%, rgba(35, 35, 42, 0.3), rgba(6, 6, 9, 0.95)),
    #1a1a20;
}

.wall-red-brick {
  background: 
    radial-gradient(circle at 50% 50%, rgba(60, 20, 20, 0.35), rgba(8, 4, 4, 0.95)),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.4) 0px, rgba(0,0,0,0.4) 2px, transparent 2px, transparent 28px),
    #2c1515;
}

.wall-gallery-white {
  background: 
    radial-gradient(circle at 50% 50%, rgba(40, 40, 48, 0.2), rgba(8, 8, 12, 0.98)),
    #1e1e24;
}

/* Interactive Surface */
.emin-stage-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

/* SCANLINE SEQUENCER BAR */
.emin-scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, #FF1493, #00F0FF, #FF1493);
  box-shadow: 0 0 12px #00F0FF, 0 0 24px #FF1493, -1px 0 6px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.emin-scanline.active {
  opacity: 1;
}

/* Neon & Fragment Entities */
.emin-entity {
  position: absolute;
  cursor: grab;
  user-select: none;
  transform-origin: center center;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.emin-entity:active {
  cursor: grabbing;
}

.emin-entity.selected {
  outline: 1.5px dashed rgba(255, 255, 255, 0.4);
  outline-offset: 6px;
}

/* Neon text rendering */
.neon-tube-text {
  font-family: var(--font-cursive);
  line-height: 1.15;
  white-space: pre-wrap;
  text-align: center;
  pointer-events: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Authentic Neon Glow Filter Classes */
.glow-pulse {
  animation: tube-flicker 4s infinite;
}

@keyframes tube-flicker {
  0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
    opacity: 1;
  }
  20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
    opacity: 0.75;
  }
}

/* Hit response animation during sequencer sweep */
.entity-sequencer-hit {
  filter: brightness(1.6) drop-shadow(0 0 35px #fff) !important;
  transform: scale(1.04) !important;
  transition: filter 0.1s ease, transform 0.1s ease !important;
}

/* HUD Overlay Badges */
.stage-hud {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 50;
  pointer-events: none;
}

.hud-pill {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.hud-pill b {
  color: var(--neon-pink);
}

/* Quote Widget */
.quote-widget {
  position: absolute;
  top: 16px;
  right: 16px;
  max-width: 340px;
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 20, 147, 0.3);
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 50;
  transition: opacity 0.3s;
}

.quote-widget.hidden {
  opacity: 0;
  pointer-events: none;
}

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.quote-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neon-pink);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quote-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.quote-text {
  font-family: var(--font-cursive);
  font-size: 17px;
  color: #fff;
  line-height: 1.35;
}

.quote-author {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 6px;
}

/* MODAL SYSTEMS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  background: #121218;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  width: 90%;
  max-width: 840px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* Interior Room Environments */
.scene-environment {
  width: 100%;
  height: 380px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-stpancras {
  background: 
    radial-gradient(circle at 50% 40%, rgba(255, 100, 150, 0.15), rgba(10, 5, 5, 0.95)),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.5) 0px, rgba(0,0,0,0.5) 2px, transparent 2px, transparent 30px),
    #2a0d12;
}

.scene-whitecube {
  background: 
    radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.12), rgba(5, 5, 8, 0.96)),
    #15151c;
}

.scene-loft {
  background: 
    radial-gradient(circle at 50% 50%, rgba(255, 184, 0, 0.12), rgba(8, 6, 4, 0.97)),
    #1e1610;
}

.artwork-clone-viewport {
  width: 320px;
  height: 320px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Wallpaper Export Radios */
.export-resolutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.res-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s;
}

.res-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.res-option input[type="radio"]:checked + .res-info {
  color: var(--neon-cyan);
}

.res-title {
  font-size: 13px;
  font-weight: 700;
}

.res-dims {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.btn-export-download {
  width: 100%;
  background: linear-gradient(135deg, #FF1493, #00F0FF);
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-export-download:hover {
  box-shadow: 0 0 25px rgba(255, 20, 147, 0.7);
  transform: translateY(-1px);
}

/* ==========================================================================
   CUSTOM FRAME & PRINT SIZING STUDIO STYLES
   ========================================================================== */

.print-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.control-group-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control-group-compact label {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #CCC;
  display: flex;
  align-items: center;
  gap: 5px;
}

.select-compact, .input-compact {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.78rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: #181824;
  color: #FFF;
  font-family: var(--font-sans);
  outline: none;
}

.custom-dimensions-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  border-radius: 5px;
  border: 1px dashed var(--border-subtle);
  margin-top: 10px;
}

.orientation-pill-group {
  display: flex;
  gap: 4px;
}

.orient-pill {
  flex: 1;
  padding: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.orient-pill.active {
  background: var(--neon-pink);
  color: #000;
  border-color: var(--neon-pink);
}

/* Dynamic Frame Border Classes */
.frame-gold {
  background: #B45309 !important;
  border: 14px solid #D4AF37 !important;
  box-shadow: 0 15px 40px rgba(212,175,55,0.35) !important;
}

.frame-black {
  background: #111111 !important;
  border: 14px solid #111111 !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.65) !important;
}

.frame-walnut {
  background: #3E2723 !important;
  border: 14px solid #4E342E !important;
  box-shadow: 0 15px 40px rgba(62,39,35,0.55) !important;
}

.frame-white {
  background: #FDFBF7 !important;
  border: 14px solid #E5E7EB !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
}

.frame-frameless {
  background: transparent !important;
  border: 0px none !important;
  padding: 0 !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.35) !important;
}

/* Dynamic Mat Board Classes */
.mat-none { padding: 0px !important; }
.mat-slim { padding: 12px !important; }
.mat-classic { padding: 22px !important; }
.mat-wide { padding: 34px !important; }

/* Hidden on normal screen view */
.printable-art-container {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  .printable-art-container,
  .printable-art-container * {
    visibility: visible;
  }

  .printable-art-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #FFF;
    box-sizing: border-box;
  }

  .print-border-frame {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 1.5cm;
    background: #FFF;
  }

  .print-inner-canvas {
    flex: 1;
    width: 100%;
    position: relative;
    border: 4px solid #000;
    overflow: hidden;
    background: #111116;
  }

  .print-museum-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1cm;
    border-top: 2px solid #000;
    padding-top: 0.4cm;
    font-family: 'Space Mono', monospace;
    color: #000;
  }

  .print-museum-footer h3 {
    font-size: 14pt;
    font-weight: 700;
  }

  .print-museum-footer p {
    font-size: 8pt;
    color: #333;
  }
}


/* Mobile studio shell */
@media (max-width: 900px) {
  html, body { height: 100dvh; }
  .studio-header {
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
  }
  .brand-subtitle, .edition-badge, .brand-titles p { display: none; }
  .studio-header button { min-width: 40px; min-height: 40px; }
  .export-body, .export-modal-body, .modal-body, .print-controls-grid { grid-template-columns: 1fr; }
  .export-modal-container, .export-modal-dialog, .modal-dialog, .modal-card, .interior-modal-container {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: 88dvh;
  }
  .sofa-silhouette { width: min(580px, 100%); }
  .picasso-stage, .kandinsky-stage, .monet-art-stage, .dali-art-stage,
  .stage-surface, .emin-stage-surface, .mondrian-grid,
  .stage-collage-surface, .stage-flora-surface, .stage-dali-surface,
  .p-collage-item, .m-flora-item, .dali-entity, .klimt-entity, .kusama-entity,
  .kahlo-entity, .haring-entity, .emin-entity, .k-entity {
    touch-action: none;
  }
}
