:root {
  --bg-page: #F9F7F3;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3EFE9;
  --bg-stage: #151619;
  --border-hairline: #E5DFD5;
  --border-strong: #D2C9BC;

  --ink-primary: #18181B;
  --ink-secondary: #57534E;
  --ink-muted: #8A837A;

  --accent: #C86D51;
  --accent-hover: #B35B40;
  --accent-soft: #FDF2EE;
  --accent-border: #F2C8BA;

  --indigo: #2563EB;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  letter-spacing: -0.3px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink-primary);
  color: #F8D9B0;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.brand-text span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--ink-muted);
}

.status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.topbar-center {
  display: flex;
  align-items: center;
}

.aspect-switcher {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
  gap: 2px;
}

.aspect-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease-out);
}

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

.aspect-btn.active {
  background: var(--bg-surface);
  color: var(--ink-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ratio-icon {
  display: inline-block;
  border: 1.6px solid currentColor;
  border-radius: 2px;
}
.ratio-16-9 { width: 14px; height: 9px; }
.ratio-9-16 { width: 9px; height: 14px; }
.ratio-1-1  { width: 11px; height: 11px; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  border: 1px solid transparent;
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s var(--ease-out);
}

.btn-primary:hover {
  background: #2C2C32;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
  background: var(--bg-subtle);
}

.btn-text-danger {
  border: none;
  background: transparent;
  color: #C2410C;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-text-danger:hover {
  background: #FFF1EB;
}

/* ==========================================================================
   Structural 3-Column Studio Grid (Shared 1px Hairline Borders)
   ========================================================================== */
.studio-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 350px;
  min-height: calc(100vh - 64px);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-surface);
}

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel-photos {
  border-right: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  max-height: calc(100vh - 64px);
}

.panel-stage {
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: calc(100vh - 64px);
}

.panel-settings {
  border-left: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  max-height: calc(100vh - 64px);
}

.panel-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-index {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--accent);
  margin-bottom: 3px;
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

/* ==========================================================================
   Left Panel: Upload Dropzone & Photo Cards
   ========================================================================== */
.upload-dropzone {
  margin: 14px 16px 10px;
  padding: 18px 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.dropzone-sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.photo-list-toolbar {
  padding: 4px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 600;
}

.drag-hint {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
}

.photo-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.photo-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  transition: all 0.18s var(--ease-out);
}

.photo-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.photo-card.dragging {
  opacity: 0.45;
  border-color: var(--accent);
}

.photo-thumb-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: pointer;
}

.photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-order-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(24, 24, 27, 0.78);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.photo-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}

.photo-caption-input {
  width: 100%;
  border: 1px solid var(--border-hairline);
  background: var(--bg-page);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12.5px;
  color: var(--ink-primary);
  transition: border-color 0.15s;
}

.photo-caption-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFFFFF;
}

.photo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-move-btns {
  display: inline-flex;
  gap: 4px;
}

.mini-btn {
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
}

.mini-btn:hover:not(:disabled) {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.mini-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.mini-btn-del {
  color: #B91C1C;
}

.mini-btn-del:hover {
  border-color: #EF4444 !important;
  background: #FEF2F2;
}

/* ==========================================================================
   Center Stage: 3 Theme Switcher + Canvas Preview + Timeline
   ========================================================================== */
.theme-quick-bar {
  padding: 14px 20px 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
}

.theme-quick-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.theme-quick-label strong {
  font-size: 13px;
  color: var(--ink-secondary);
  font-weight: 600;
}

.theme-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.theme-tab {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-page);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s var(--ease-out);
}

/* Mouse-Tracking Radial Spotlight */
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    240px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(200, 109, 81, 0.12),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.theme-tab:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.theme-tab.active {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 6px 16px rgba(200, 109, 81, 0.12);
}

.theme-num {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.6px;
}

.theme-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-primary);
}

.theme-desc {
  font-size: 11.5px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Canvas Viewport */
.canvas-stage-wrap {
  flex: 1;
  min-height: 280px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, #25272E 0%, #16171B 100%);
  overflow: hidden;
}

.canvas-frame-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#previewCanvas {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 310px);
  width: auto;
  height: auto;
  background: #FAF6F0;
}

.canvas-big-play {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(24, 24, 27, 0.68);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.canvas-big-play:hover {
  transform: scale(1.07);
  background: var(--accent);
}

.canvas-big-play.playing {
  opacity: 0;
  pointer-events: none;
}

/* Timeline Bar */
.timeline-bar {
  padding: 12px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  gap: 14px;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
}

.icon-btn:hover {
  background: var(--bg-subtle);
}

.play-toggle-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.play-toggle-btn:hover {
  background: var(--accent-hover);
}

.scrubber-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-readout {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  min-width: 40px;
}

#timelineRange,
.styled-range {
  flex: 1;
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.stage-meta-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  padding: 5px 10px;
  border-radius: 7px;
  white-space: nowrap;
}

/* ==========================================================================
   Right Panel: Inspector Settings
   ========================================================================== */
.inspector-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-group {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.group-title {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-primary);
}

.group-help {
  margin: -4px 0 10px;
  font-size: 12px;
  color: var(--ink-muted);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin: 8px 0 5px;
}

.text-input {
  width: 100%;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-page);
  font-size: 13px;
  color: var(--ink-primary);
  transition: border-color 0.18s;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFFFFF;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 5px;
}

.switch-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
}

.toggle-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

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

.slider-val {
  font-size: 13px;
  color: var(--accent);
  font-weight: 800;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--border-hairline);
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
}

.seg-btn.active {
  background: #FFFFFF;
  color: var(--ink-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* BGM List */
.bgm-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bgm-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-page);
  cursor: pointer;
  transition: all 0.18s;
}

.bgm-option:hover {
  border-color: var(--border-strong);
}

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

.bgm-option input[type="radio"] {
  accent-color: var(--accent);
}

.bgm-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bgm-info strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.bgm-info small {
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-mini-upload {
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.export-cta-box {
  text-align: center;
}

.btn-export-full {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 6px 18px rgba(200, 109, 81, 0.25);
}

.btn-export-full:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.export-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Guide & FAQ Section
   ========================================================================== */
.guide-section {
  background: var(--bg-page);
  padding: 48px 24px 96px;
}

.guide-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.guide-head {
  margin-bottom: 22px;
}

.guide-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
}

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

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.faq-item summary {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-primary);
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Export Modal & Toast
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 16, 20, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 4px 8px;
}

.modal-body {
  padding: 20px;
}

.modal-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #E59966);
  transition: width 0.15s linear;
}

.progress-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.result-video {
  width: 100%;
  max-height: 290px;
  border-radius: 10px;
  background: #0F1014;
  margin-bottom: 14px;
}

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

.btn-download-mp4 {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  font-size: 14px;
}

.btn-download-mp4:hover {
  background: var(--accent-hover);
}

.modal-tip {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  animation: toastIn 0.22s var(--ease-out);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Mobile Floating Glass Dock & Responsive Layout
   ========================================================================== */
.mobile-glass-dock {
  display: none;
}

@media (max-width: 1120px) {
  .studio-grid {
    grid-template-columns: 300px minmax(0, 1fr) 310px;
  }
  .theme-desc {
    display: none;
  }
}

@media (max-width: 920px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .status-pill,
  #btnLoadSamples,
  .stage-meta-tag {
    display: none;
  }

  .topbar-center {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .aspect-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .aspect-btn {
    flex: 1;
    justify-content: center;
    padding: 6px 6px;
    font-size: 12px;
  }

  .studio-grid {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  /* 모바일에서는 중앙 미리보기 스테이지를 항상 상단에 보여주고 아래 탭을 전환 */
  .panel-stage {
    order: 1;
    max-height: none;
    border-bottom: 1px solid var(--border-hairline);
  }

  .canvas-stage-wrap {
    min-height: 230px;
    padding: 12px;
  }

  #previewCanvas {
    max-height: 44vh;
  }

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

  .theme-tab {
    padding: 8px 9px;
  }

  .theme-name {
    font-size: 12.5px;
  }

  .timeline-bar {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 10px;
  }

  .panel-photos,
  .panel-settings {
    order: 2;
    max-height: none;
    border: none;
    display: none;
  }

  .panel-photos.active-mobile-panel,
  .panel-settings.active-mobile-panel {
    display: flex;
  }

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

  /* 하단 플로팅 글래스 독 표시 */
  .mobile-glass-dock {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 420px;
    z-index: 60;
    background: rgba(24, 24, 27, 0.86);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  }

  .dock-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 7px 4px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
  }

  .dock-btn.active {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
  }

  .dock-btn-accent {
    background: var(--accent);
    color: #FFFFFF !important;
  }

  .toast-container {
    bottom: 84px;
    right: 14px;
    left: 14px;
  }
}
