/* ==========================================================================
   CLAUDE MONET: ATELIER DES TOURNESOLS & NYMPHÉAS (1881 - 1916 - 2026)
   Impressionist Sunflowers, Water Lilies & Plein Air Light
   ========================================================================== */

:root {
  /* Palette */
  --c-sunflower-gold: #F59E0B;
  --c-sunflower-lemon: #FDE047;
  --c-sunflower-amber: #D97706;
  --c-sunflower-heart: #451A03;
  --c-leaf-green: #15803D;
  --c-leaf-emerald: #10B981;
  --c-vase-terracotta: #B45309;
  --c-vase-ceramic: #3B82F6;

  --c-water-deep: #133E35;
  --c-water-surface: #2E6A5B;
  --c-lily-pad: #2D6A4F;
  --c-lily-pink: #F8B4D9;
  --c-lily-white: #FFFFF0;
  --c-lily-violet: #C084FC;
  --c-bridge-green: #064E3B;

  --border-color: #1A302A;
  --text-main: #142823;
  --text-muted: #526E64;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-script: 'Great Vibes', cursive;
  --font-mono: 'Space Mono', monospace;
}

/* Style Themes */
body.style-sunflowers {
  --canvas-ground: #E7D8C4;
  --backdrop-theme: linear-gradient(180deg, #D4B996 0%, #B89368 62%, #5C381E 62%, #381E0C 100%);
  background-color: #CDBBA4;
}

body.style-waterlilies {
  --canvas-ground: #164239;
  --backdrop-theme: linear-gradient(180deg, #F97316 0%, #EC4899 35%, #4F46E5 70%, #0F3730 100%);
  background-color: #AFC5B9;
}

body.style-sunrise {
  --canvas-ground: #263C4E;
  --backdrop-theme: linear-gradient(180deg, #93C5FD 0%, #FDA4AF 40%, #EA580C 70%, #1E3A4B 100%);
  background-color: #A3B9C9;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER NAVIGATION & MASTERPIECE SWITCHER
   ========================================================================== */

.studio-header {
  height: 68px;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  position: relative;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monet-avatar-badge {
  width: 38px;
  height: 38px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  background: radial-gradient(circle, #F59E0B 40%, #059669 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px var(--border-color);
}

.badge-sol {
  width: 16px;
  height: 16px;
  background: #FF5722;
  border-radius: 50%;
  box-shadow: 0 0 6px #FF5722;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edition-badge {
  font-size: 0.65rem;
  background: #D97706;
  color: #FFF;
  padding: 2px 6px;
  font-weight: 800;
  border: 1.5px solid var(--border-color);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: -2px;
}

/* Prominent Top Masterpiece Switcher */
.masterpiece-switcher {
  display: flex;
  background: #EAE3D5;
  padding: 4px;
  border-radius: 10px;
  border: 2.5px solid var(--border-color);
  gap: 5px;
}

.style-choice-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.style-choice-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.style-choice-btn.active {
  background: #1A302A;
  color: #FFF;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.choice-icon {
  font-size: 1.3rem;
}

.choice-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.choice-text strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.choice-text span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  opacity: 0.8;
}

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

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  background: #FFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 2px 2px 0px var(--border-color);
  transition: all 0.15s ease;
}

.btn-icon:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-color);
}

.btn-pill {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--border-color);
  transition: all 0.15s ease;
}

.btn-primary {
  background: #D97706;
  color: #FFF;
  box-shadow: 3px 3px 0px var(--border-color);
}

.btn-primary:hover {
  background: #B45309;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--border-color);
}

.btn-secondary {
  background: #FFF;
  color: var(--text-main);
  box-shadow: 3px 3px 0px var(--border-color);
}

/* ==========================================================================
   WORKSPACE GRID
   ========================================================================== */

.studio-workspace {
  display: grid;
  grid-template-columns: 250px 1fr 310px;
  height: calc(100vh - 68px);
  width: 100%;
  position: relative;
  background-color: #BFAEA0;
}

/* ==========================================================================
   LEFT TOOLBAR: SPAWNER FOR SUNFLOWERS & LILIES
   ========================================================================== */

.palette-dock {
  background: #FFFFFF;
  border-right: 2.5px solid var(--border-color);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  z-index: 20;
}

.dock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dock-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #555;
}

.flora-spawn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.spawn-btn {
  padding: 8px 6px;
  background: #F8F5EE;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.15s ease;
  box-shadow: 1.5px 1.5px 0px var(--border-color);
}

.spawn-btn:hover {
  background: #FFF;
  transform: translate(-1px, -1px);
  box-shadow: 2.5px 2.5px 0px #D97706;
  border-color: #D97706;
}

.spawn-btn .btn-badge-icon {
  font-size: 1.3rem;
}

.dock-divider {
  height: 1.5px;
  background: #E0D7C8;
  margin: 2px 0;
}

/* Atmospheric Light Buttons */
.light-selector-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.light-btn {
  padding: 7px 10px;
  background: #F8F5EE;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.light-btn.active {
  background: #1A302A;
  color: #FFF;
  box-shadow: 2px 2px 0px #D97706;
}

/* Selected Flora Controls */
.selected-flora-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #F8F5EE;
  padding: 8px;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  color: #555;
}

input[type="range"] {
  accent-color: #D97706;
  cursor: pointer;
}

.styled-color-input {
  -webkit-appearance: none;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  width: 38px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

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

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

.button-row {
  display: flex;
  gap: 4px;
}

.btn-action-small {
  flex: 1;
  padding: 6px 4px;
  background: #FFF;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.btn-action-small:hover {
  background: #FEF3C7;
  border-color: #D97706;
  color: #D97706;
}

.btn-clear {
  margin-top: auto;
  padding: 8px;
  background: #FFF;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 2px 2px 0px var(--border-color);
}

.btn-clear:hover {
  background: #FEE2E2;
  border-color: #DC2626;
  color: #DC2626;
}

/* ==========================================================================
   CENTER ARTBOARD CANVAS
   ========================================================================== */

.stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(#9B8977 1.5px, transparent 1.5px), #BBA794;
  background-size: 24px 24px;
}

.canvas-aspect-wrapper {
  width: min(92%, 880px);
  height: min(80vh, 660px);
  background: var(--canvas-ground);
  border: 12px solid var(--border-color);
  box-shadow: 16px 22px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: background 0.4s ease;
}

.monet-art-stage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Background Landscape / Vase Table Backdrop */
.monet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.backdrop-svg {
  width: 100%;
  height: 100%;
}

/* Ripple Canvas */
.water-ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.stage-flora-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Impasto Oil Paint Texture Overlay */
.canvas-impasto-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 15;
}

/* ==========================================================================
   DRAGGABLE IMPRESSIONIST FLORA ENTITIES (SUNFLOWERS & LILIES)
   ========================================================================== */

.m-flora-item {
  position: absolute;
  cursor: grab;
  transform-origin: center center;
  transition: box-shadow 0.15s ease, filter 0.15s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.m-flora-item:active {
  cursor: grabbing;
}

.m-flora-item.selected {
  outline: 3px dashed #F59E0B;
  outline-offset: 6px;
}

/* 1. RADIANT IMPRESSIONIST SUNFLOWERS (1881) */
.m-sunflower-head {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-sunflower-petals-outer {
  position: absolute;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    #F59E0B 0% 4%,
    #FDE047 4% 8%,
    #D97706 8% 12%
  ) 50% / 100% 100%;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

.m-sunflower-petals-inner {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    #FEF08A 0% 5%,
    #F59E0B 5% 10%
  );
  box-shadow: inset 0 0 10px rgba(180, 83, 9, 0.5);
}

.m-sunflower-heart {
  position: absolute;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, #381E0C 30%, #78350F 80%, #92400E 100%);
  border-radius: 50%;
  border: 2px dashed #F59E0B;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}

/* 2. IMPRESSIONIST VASE */
.m-vase-body {
  width: 170px;
  height: 220px;
  background: radial-gradient(ellipse at 35% 35%, #D97706 20%, #78350F 80%, #381E0C 100%);
  border: 4px solid #142823;
  border-radius: 40px 40px 70px 70px / 30px 30px 100px 100px;
  box-shadow: 8px 16px 30px rgba(0, 0, 0, 0.45);
}

/* 3. GREEN IMPASTO LEAVES */
.m-impasto-leaf {
  width: 90px;
  height: 50px;
  background: radial-gradient(ellipse at 30% 30%, #4ADE80 15%, #15803D 70%, #064E3B 100%);
  border-radius: 0 100% 0 100%;
  border: 2px solid #064E3B;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* 4. WATER LILY PADS & FLOWERS */
.m-item-lily-pad {
  width: 130px;
  height: 95px;
  background: radial-gradient(ellipse at 40% 40%, #34D399 10%, #2D6A4F 60%, #1A4D38 100%);
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 55%, 45% 100%, 0 100%);
}

.m-item-pink-lily {
  width: 100px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-item-pink-lily .lily-petals {
  width: 90px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF 15%, #F8B4D9 65%, #EC4899 100%);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.m-item-pink-lily .lily-core {
  position: absolute;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, #FEF08A 20%, #F59E0B 80%);
  border-radius: 50%;
}

.m-item-white-lily {
  width: 95px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-item-white-lily .lily-petals {
  width: 85px;
  height: 75px;
  border-radius: 50%;
  background: radial-gradient(circle, #FEF08A 10%, #FFFFFF 65%, #E2E8F0 100%);
  border: 1px solid rgba(255,255,255,0.9);
}

.m-item-white-lily .lily-core {
  position: absolute;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle, #FEF08A 20%, #D97706 80%);
  border-radius: 50%;
}

.m-item-japanese-bridge {
  width: 320px;
  height: 120px;
}

.m-item-japanese-bridge svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.m-item-weeping-willow {
  width: 180px;
  height: 220px;
}

.m-item-weeping-willow svg {
  width: 100%;
  height: 100%;
}

.m-item-sunburst {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #FF5722 25%, #F97316 60%, transparent 80%);
  filter: blur(2px);
  mix-blend-mode: screen;
}

/* Floating Maxim Widget */
.monet-maxim-widget {
  top: 24px;
  right: 24px;
  width: 270px;
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 6px 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 18;
  cursor: grab;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 2px solid var(--border-color);
  background: #F8F4EA;
}

.widget-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  background: #D97706;
  color: #FFF;
  padding: 1px 4px;
  border-radius: 2px;
}

.widget-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.widget-close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.widget-body {
  padding: 10px;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.35;
}

.quote-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.opus-code {
  color: #D97706;
}

/* Canvas HUD Bottom Info Bar */
.canvas-hud {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 30px;
  box-shadow: 2px 2px 0px var(--border-color);
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #555;
}

.hud-value {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.text-accent {
  color: #D97706;
}

.text-gold {
  color: #B45309;
}

.hud-item.hint {
  color: #555;
  font-size: 0.75rem;
  border-left: 1px solid #CCC;
  padding-left: 16px;
  font-weight: 500;
}

/* ==========================================================================
   RIGHT CURATION & DEBUSSY PANEL
   ========================================================================== */

.curator-panel {
  background: #FFFFFF;
  border-left: 2.5px solid var(--border-color);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  z-index: 20;
}

.curator-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.curator-header p {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.curator-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-desc {
  font-size: 0.72rem;
  color: #555;
  line-height: 1.35;
}

/* Debussy Harp soundboard */
.harp-notes-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.harp-note-btn {
  padding: 10px 6px;
  background: #F8F5EE;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  transition: all 0.15s ease;
  box-shadow: 1.5px 1.5px 0px var(--border-color);
}

.harp-note-btn:hover {
  background: #FFF;
  transform: translate(-1px, -1px);
  box-shadow: 2.5px 2.5px 0px #D97706;
}

.harp-string {
  width: 100%;
  height: 2px;
  background: #D97706;
  border-radius: 1px;
}

.w-full {
  width: 100%;
}

.wallpaper-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.quick-wall-btn {
  padding: 9px 8px;
  background: #F8F5EE;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.15s ease;
  box-shadow: 1.5px 1.5px 0px var(--border-color);
}

.quick-wall-btn:hover {
  background: #FFF;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #D97706;
  border-color: #D97706;
}

.quick-wall-btn i {
  font-size: 1.1rem;
}

/* ==========================================================================
   MODALS: GALLERY & EXPORT STUDIO
   ========================================================================== */

.interior-modal-overlay,
.export-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.interior-modal-overlay.open,
.export-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.interior-modal-container,
.export-modal-container {
  background: #FFF;
  border: 3px solid var(--border-color);
  box-shadow: 10px 14px 0px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  width: min(94vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.interior-modal-header,
.export-header {
  padding: 16px 24px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAF8F5;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-wrap i {
  font-size: 1.4rem;
  color: #D97706;
}

.modal-title-wrap h2,
.export-header h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.export-header p {
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}

.interior-view-tabs {
  display: flex;
  background: #EAE7E0;
  border: 1.5px solid var(--border-color);
  padding: 3px;
  border-radius: 6px;
  gap: 3px;
}

.interior-tab {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.interior-tab.active {
  background: #FFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
}

.interior-stage {
  height: 520px;
  background: #252422;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-environment {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.scene-orangerie-oval {
  background: radial-gradient(ellipse at center, #F8FAFC 0%, #E2E8F0 60%, #CBD5E1 100%);
}

.scene-giverny-salon {
  background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 60%, #5C381E 60%, #291508 100%);
}

.scene-phone-mockup {
  background: radial-gradient(circle at center, #1E293B 0%, #000000 100%);
}

.scene-macbook-mockup {
  background: linear-gradient(135deg, #451A03 0%, #1E1B4B 100%);
}

.artwork-frame {
  width: 500px;
  height: 330px;
  background: #111111;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
  transition: all 0.4s ease;
}

.scene-phone-mockup .artwork-frame {
  width: 220px;
  height: 440px;
  border-radius: 36px;
  padding: 10px;
  border: 4px solid #444;
}

.scene-phone-mockup .frame-plaque {
  display: none;
}

.frame-passepartout {
  flex: 1;
  background: #FAF8F5;
  padding: 14px;
  display: flex;
  overflow: hidden;
  border-radius: 6px;
}

.artwork-clone-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  background: #E7D8C4;
  border: 3px solid #111;
  overflow: hidden;
}

.frame-plaque {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: #DDD;
  text-align: center;
  letter-spacing: 0.05em;
}

.orangerie-bench {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 55px;
  background: #334155;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
  z-index: 10;
}

.scene-phone-mockup .orangerie-bench,
.scene-macbook-mockup .orangerie-bench {
  display: none;
}

.gallery-skylight {
  position: absolute;
  top: 0;
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.interior-footer {
  padding: 12px 24px;
  background: #FAF8F5;
  border-top: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.interior-footer p {
  font-size: 0.78rem;
  color: #555;
}

/* ==========================================================================
   EXPORT & PRINT MODAL
   ========================================================================== */

.export-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 24px;
  gap: 24px;
  overflow-y: auto;
}

.export-preview-column {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0EDE6;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
}

.print-preview-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 11;
  background: #111111;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
}

.print-mat-board {
  flex: 1;
  background: #FFF;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.print-artwork-embed {
  flex: 1;
  position: relative;
  background: #E7D8C4;
  border: 3px solid #111;
  overflow: hidden;
}

.print-curator-plaque {
  margin-top: 14px;
  border-top: 1.5px solid #111;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plaque-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.plaque-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #666;
}

.plaque-signature {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: #111;
}

.edition-sig {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #888;
}

.export-options-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-card {
  background: #FAF8F5;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-card p {
  font-size: 0.76rem;
  color: #666;
  line-height: 1.35;
}

.radio-resolutions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.res-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #FFF;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.res-choice.active {
  border-color: #D97706;
  background: #FEF3C7;
}

.res-info {
  display: flex;
  flex-direction: column;
}

.res-info strong {
  font-size: 0.75rem;
  font-family: var(--font-display);
}

.res-info span {
  font-size: 0.65rem;
  color: #777;
  font-family: var(--font-mono);
}

.export-buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ==========================================================================
   DIRECT ARCHIVAL PRINT STYLES (@media print)
   ========================================================================== */

.printable-gallery-page {
  display: none;
}

@media print {
  body {
    background: #FFF !important;
    overflow: visible !important;
  }

  .studio-header,
  .palette-dock,
  .curator-panel,
  .canvas-hud,
  .interior-modal-overlay,
  .export-modal-overlay,
  .floating-widget {
    display: none !important;
  }

  .printable-gallery-page {
    display: block !important;
    width: 100vw;
    height: 100vh;
    padding: 2cm;
    page-break-after: always;
    box-sizing: border-box;
  }

  .print-border-frame {
    width: 100%;
    height: 100%;
    border: 12px solid #000;
    padding: 3cm;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .print-inner-canvas {
    flex: 1;
    position: relative;
    border: 6px solid #000;
    overflow: hidden;
  }

  .print-museum-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5cm;
    border-top: 2px solid #000;
    padding-top: 0.5cm;
    font-family: 'Cormorant Garamond', serif;
  }

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

  .print-museum-footer p {
    font-size: 9pt;
    font-family: 'Space Mono', monospace;
  }
}

@media (max-width: 1100px) {
  .studio-workspace {
    grid-template-columns: 200px 1fr;
  }
  .curator-panel {
    display: none;
  }
}

/* Radar Scan Line for Play Painting Mode */
.monet-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #F59E0B, #10B981, #60A5FA);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.9), 0 0 10px #FFF;
  z-index: 25;
  display: none;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.monet-scan-line.active {
  display: block;
}

.flora-playing-hit {
  filter: brightness(1.7) saturate(1.4) drop-shadow(0 0 22px rgba(251, 191, 36, 0.95)) !important;
  transform: scale(1.04) !important;
  transition: filter 0.08s ease, transform 0.08s ease;
}

/* ==========================================================================
   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: #444;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.custom-dimensions-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: #F0EDE6;
  padding: 8px;
  border-radius: 5px;
  border: 1px dashed #BBB;
}

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

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

.orient-pill.active {
  background: #111;
  color: #FFF;
  border-color: #111;
}

/* Dynamic Frame Border Classes */
.frame-black {
  background: #111111 !important;
  border: 14px solid #111111 !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.45) !important;
}

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

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

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

.frame-frameless {
  background: transparent !important;
  border: 0px none !important;
  padding: 0 !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25) !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; }


/* 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;
  }
}
