:root {
  --bg-glass: rgba(252, 251, 248, 0.86);
  --bg-glass-strong: rgba(252, 251, 248, 0.96);
  --border-subtle: rgba(26, 25, 23, 0.11);
  --border-strong: rgba(26, 25, 23, 0.22);
  --ink-primary: #1a1917;
  --ink-secondary: #5c5852;
  --ink-muted: #847f77;
  --accent: #b86a35;
  --accent-hover: #9f5829;
  --accent-soft: rgba(184, 106, 53, 0.12);
  --shadow-soft: 0 12px 34px rgba(18, 16, 14, 0.1);
  --shadow-modal: 0 24px 64px rgba(14, 12, 10, 0.28);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background: #f4f3ef;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  touch-action: none;
}

#canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* ==================== Welcome Overlay ==================== */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(247, 245, 240, 0.72), rgba(26, 24, 21, 0.42));
  backdrop-filter: blur(12px);
  padding: 24px;
}

.welcome-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 44px 42px 38px;
  box-shadow: var(--shadow-modal);
  text-align: center;
}

.welcome-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 12px;
}

.welcome-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.08;
  margin-bottom: 10px;
}

.welcome-card p {
  font-size: 15px;
  color: var(--ink-secondary);
  margin-bottom: 28px;
}

.welcome-features {
  display: grid;
  gap: 10px;
  text-align: left;
  background: rgba(244, 241, 235, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 28px;
}

.wf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.wf-key {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-primary);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.welcome-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-status {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
  min-height: 18px;
}

.welcome-status.error {
  color: #a6372c;
  background: rgba(166, 55, 44, 0.08);
  padding: 10px 14px;
  border-radius: 10px;
  line-height: 1.5;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none !important;
}

/* ==================== Buttons ==================== */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: #33312e;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: #f5f3ee;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  border-color: var(--border-subtle);
}
.btn-ghost:hover {
  color: var(--ink-primary);
  background: rgba(26, 25, 23, 0.05);
}

.btn-danger {
  background: transparent;
  color: #a6372c;
  border-color: rgba(166, 55, 44, 0.25);
}
.btn-danger:hover {
  background: rgba(166, 55, 44, 0.08);
}

.small-btn {
  font-size: 12px;
  padding: 6px 13px;
}

.full-width {
  width: 100%;
}

/* ==================== Main HUD ==================== */
.hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.top-bar {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.top-left-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  flex-wrap: wrap;
}

.gallery-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  box-shadow: var(--shadow-soft);
}

.gal-step-btn,
.gal-dir-btn {
  border: none;
  background: transparent;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}

.gal-step-btn {
  width: 28px;
  height: 28px;
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
}

.gal-step-btn:hover {
  background: rgba(26, 25, 23, 0.08);
  color: var(--ink-primary);
}

.gal-dir-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
}

.gal-dir-btn:hover {
  background: rgba(26, 25, 23, 0.07);
}

.gal-dir-btn .caret {
  font-size: 10px;
  color: var(--ink-muted);
}

.room-nav,
.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.room-nav {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.room-pill {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.room-pill:hover {
  color: var(--ink-primary);
}

.room-pill.active {
  background: var(--ink-primary);
  color: #ffffff;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.18s ease;
}

.hud-btn:hover {
  background: var(--bg-glass-strong);
  transform: translateY(-1px);
}

.hud-btn.active {
  border-color: var(--ink-primary);
}

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

.hud-btn.accent-btn:hover {
  background: #33312e;
}

.hud-btn.icon-only {
  width: 35px;
  height: 35px;
  padding: 0;
  justify-content: center;
  font-weight: 600;
}

/* Crosshair */
.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1.5px rgba(24, 23, 21, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.crosshair.visible {
  opacity: 1;
}

/* Hover Prompt */
.hover-prompt {
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  background: rgba(24, 23, 21, 0.86);
  color: #ffffff;
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hover-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.15;
}

.hover-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.hover-sub .dot {
  margin: 0 6px;
}

.hover-sub kbd,
.help-grid kbd {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.help-grid kbd {
  background: #f2efe8;
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

/* Minimap */
.minimap-wrap {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px 8px;
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
}

.minimap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.minimap-tip {
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-muted);
}

#minimap-canvas {
  display: block;
  cursor: pointer;
  border-radius: 6px;
}

/* Bottom Center Lock Hint */
.lock-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(252, 251, 248, 0.76);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  color: var(--ink-secondary);
  white-space: nowrap;
}

/* Bottom Right Audio Pill */
.audio-pill {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 7px 14px 7px 8px;
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--ink-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.audio-play-btn:hover {
  transform: scale(1.06);
}

.audio-meta {
  display: flex;
  flex-direction: column;
  max-width: 170px;
}

.audio-label {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.audio-volume {
  width: 68px;
  accent-color: var(--ink-primary);
  cursor: pointer;
}

/* ==================== Modals ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 19, 17, 0.56);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal-close:hover {
  background: #ffffff;
}

/* Inspect Artwork Modal */
.inspect-dialog {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 88vh;
  background: #fbfaf7;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 340px;
  box-shadow: var(--shadow-modal);
}

.inspect-stage {
  background: #eeece6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  min-height: 360px;
}

.inspect-stage img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  box-shadow: 0 22px 48px rgba(18, 16, 14, 0.24);
  background: #ffffff;
}

.inspect-sidebar {
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--border-subtle);
}

.inspect-room {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

.inspect-sidebar h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 6px;
}

.inspect-artist {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.inspect-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.inspect-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: auto;
  padding-bottom: 24px;
}

.inspect-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inspect-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Help Modal */
.help-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fbfaf7;
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: var(--shadow-modal);
}

.help-dialog h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 18px;
}

.help-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.help-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  background: #f2efe8;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.help-note code,
.export-box code {
  font-size: 12px;
  background: rgba(26, 25, 23, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ==================== Curator Drawer ==================== */
.curator-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  z-index: 30;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -16px 0 46px rgba(16, 14, 12, 0.14);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.curator-drawer.open {
  transform: translateX(0);
}

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

.drawer-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.drawer-header h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

.icon-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.icon-close:hover {
  background: rgba(26, 25, 23, 0.06);
}

.drawer-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 4px;
}

.drawer-tab {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 10px 6px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.drawer-tab.active {
  color: var(--ink-primary);
  border-bottom-color: var(--ink-primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 28px;
}

.room-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #efede7;
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.room-filter-btn {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.room-filter-btn.active {
  background: #ffffff;
  color: var(--ink-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.drawer-tip {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.slot-card {
  border: 1.5px solid var(--border-subtle);
  background: #ffffff;
  border-radius: 10px;
  padding: 5px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slot-card:hover {
  border-color: var(--border-strong);
}

.slot-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.slot-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #e9e6de;
  border-radius: 6px;
  margin-bottom: 5px;
}

.slot-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-secondary);
  padding: 2px 5px;
  border-radius: 4px;
}

.slot-badge.custom {
  background: var(--accent);
  color: #ffffff;
}

.music-slot-head .slot-badge {
  position: static;
  white-space: nowrap;
}

.slot-card-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-editor {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px;
}

.slot-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 12px;
}

.art-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  margin-bottom: 14px;
  background: #faf9f5;
  transition: all 0.16s ease;
}

.art-dropzone:hover,
.art-dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.art-preview-thumb {
  width: 64px;
  height: 50px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #e7e4dc;
  flex-shrink: 0;
}

.art-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.art-drop-copy strong {
  font-size: 12.5px;
  color: var(--ink-primary);
}

.art-drop-copy span {
  font-size: 11px;
  color: var(--ink-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-primary);
  background: #faf9f6;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink-primary);
  background: #ffffff;
}

.editor-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Music Tab */
.mode-selector {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer;
}

.mode-option input {
  margin-top: 3px;
  accent-color: var(--ink-primary);
}

.mode-option strong {
  display: block;
  font-size: 13px;
}

.mode-option span {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.music-slots {
  display: grid;
  gap: 10px;
}

.music-slot-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 13px 14px;
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.music-slot-card.active-mode {
  opacity: 1;
  border-color: var(--border-strong);
}

.music-slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.music-slot-title {
  font-size: 13px;
  font-weight: 600;
}

.music-slot-sub {
  font-size: 11px;
  color: var(--ink-muted);
}

.music-slot-current {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.music-slot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Export Box */
.export-box {
  margin-top: 20px;
  padding: 16px;
  background: #f3f1eb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
}

.export-box h4 {
  font-size: 13.5px;
  font-weight: 600;
}

.export-box p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.folder-path-pill {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 11.5px !important;
  color: var(--ink-primary) !important;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  word-break: break-all;
}

/* ==================== Exhibition Directory Modal ==================== */
.directory-dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 86vh;
  background: #fbfaf7;
  border-radius: 18px;
  padding: 26px 26px 20px;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.directory-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-right: 40px;
  flex-wrap: wrap;
}

.directory-header h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.directory-jump {
  display: flex;
  align-items: center;
  gap: 6px;
}

.directory-jump input {
  width: 96px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  outline: none;
}

.directory-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.directory-controls input[type='search'] {
  flex: 1;
  min-width: 220px;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  outline: none;
}

.directory-controls input[type='search']:focus {
  border-color: var(--ink-primary);
}

.dir-filter-group {
  display: inline-flex;
  gap: 4px;
  background: #efede7;
  padding: 4px;
  border-radius: 10px;
}

.dir-filter-btn {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}

.dir-filter-btn.active {
  background: #ffffff;
  color: var(--ink-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.directory-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  padding: 2px 2px 6px;
  min-height: 260px;
}

.dir-card {
  border: 1.5px solid var(--border-subtle);
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
}

.dir-card:hover {
  border-color: var(--ink-primary);
  transform: translateY(-1px);
}

.dir-card.current {
  border-color: var(--accent);
  background: #fffcf8;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.dir-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.dir-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.dir-card-stats {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dir-stat-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: #f1efe9;
  color: var(--ink-secondary);
}

.dir-stat-pill.has-art {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.directory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.dir-page-info {
  font-size: 12px;
  color: var(--ink-muted);
}

.dir-pager {
  display: flex;
  gap: 8px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  top: 76px;
  transform: translate(-50%, -14px);
  z-index: 60;
  background: rgba(24, 23, 21, 0.92);
  color: #ffffff;
  font-size: 12.5px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==================== Mobile Touch Walk Pad ==================== */
.touch-pad {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.tp-mid {
  display: flex;
  gap: 34px;
}

.tp-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  touch-action: none;
}

.tp-btn:active,
.tp-btn.pressed {
  background: var(--ink-primary);
  color: #ffffff;
  transform: scale(0.95);
}

@media (hover: none) and (pointer: coarse) {
  .touch-pad {
    display: flex;
  }
  .minimap-wrap {
    display: none !important;
  }
  .lock-hint {
    display: none;
  }
}

@media (max-width: 820px) {
  .top-bar {
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .top-left-cluster {
    justify-content: space-between;
  }
  .top-actions {
    justify-content: flex-end;
  }
  .room-pill {
    font-size: 11.5px;
    padding: 6px 10px;
  }
  .audio-pill {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    padding: 6px 10px 6px 7px;
  }
  .audio-meta {
    max-width: 110px;
  }
  .audio-volume {
    display: none;
  }
  .touch-pad {
    display: flex;
  }
  .inspect-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .inspect-stage {
    padding: 18px;
    min-height: 220px;
  }
  .inspect-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding: 20px;
  }
  .lock-hint {
    display: none;
  }
  .minimap-wrap {
    display: none;
  }
}

/* ==================== 8K Fulldome Video Controls & Modal ==================== */
.dome-video-btn {
  background: rgba(24, 23, 21, 0.88) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.dome-video-btn:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.dome-video-btn.video-live {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.dome-player-bar {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 32px));
  background: rgba(18, 18, 22, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 10px 14px 8px;
  color: #ffffff;
  pointer-events: auto;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  z-index: 25;
}

.dp-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dp-transport {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dp-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.dp-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dp-title-wrap {
  flex: 1;
  min-width: 120px;
  overflow: hidden;
}

.dp-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-meta {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.dp-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.dp-chip-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dp-chip-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.dp-chip-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.dp-scrub-row {
  margin-top: 7px;
  display: flex;
  align-items: center;
}

.dp-scrubber {
  width: 100%;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

.dome-video-dialog {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 86vh;
  background: #fbfaf7;
  border-radius: 18px;
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.dv-header h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 4px;
}

.dv-sub {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.dv-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 12px;
  padding: 16px;
  background: #f5f3ec;
  cursor: pointer;
  transition: all 0.16s ease;
}

.dv-dropzone:hover,
.dv-dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dv-drop-icon {
  font-size: 26px;
  line-height: 1;
}

.dv-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dv-drop-copy strong {
  font-size: 13.5px;
  color: var(--ink-primary);
}

.dv-drop-copy span {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.dv-url-row {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: 8px;
}

.dv-url-row input {
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--ink-primary);
  outline: none;
  min-width: 0;
}

.dv-url-row input:focus {
  border-color: var(--ink-primary);
}

.dv-mapping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dv-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.dv-seg-group {
  display: inline-flex;
  gap: 4px;
  background: #efede7;
  padding: 4px;
  border-radius: 10px;
  flex-wrap: wrap;
}

.dv-seg-btn {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
}

.dv-seg-btn.active {
  background: #ffffff;
  color: var(--ink-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dv-playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.dv-playlist {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
}

.dv-empty {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  padding: 18px 10px;
  background: #f5f4ef;
  border-radius: 10px;
}

.dv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 12px;
}

.dv-item.active {
  border-color: var(--accent);
  background: #fffcf8;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.dv-item-info {
  min-width: 0;
  flex: 1;
}

.dv-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dv-item-sub {
  font-size: 11px;
  color: var(--ink-muted);
}

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

@media (max-width: 720px) {
  .dv-url-row {
    grid-template-columns: 1fr;
  }
  .dome-player-bar {
    bottom: 74px;
    padding: 8px 10px 6px;
  }
}

/* ==================== Gallery #0001 Live Theme Revolver Pill ==================== */
.theme-revolver-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.theme-pill-btn {
  background: rgba(24, 23, 21, 0.88) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  border-top-right-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
  padding-right: 10px !important;
  gap: 6px !important;
}

.theme-pill-btn:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.theme-next-btn {
  background: rgba(24, 23, 21, 0.88) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  border-top-left-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
  padding: 0 9px !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.theme-next-btn:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.theme-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0a45d;
  box-shadow: 0 0 8px rgba(240, 164, 93, 0.9);
  flex-shrink: 0;
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 248px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(251, 250, 247, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-primary);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}

.theme-opt:hover {
  background: #efede7;
}

.theme-opt.active {
  background: var(--ink-primary);
  color: #ffffff;
}

.theme-opt-count {
  font-size: 11px;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

.theme-opt-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 6px;
}

.theme-opt-foot {
  font-size: 10.5px;
  color: var(--ink-muted);
  padding: 5px 10px 3px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 3px;
}

/* ==================== Museum Pass Paywall & Collect Print Modals ==================== */
.preview-pass-btn {
  background: linear-gradient(135deg, #b86a35, #9a5122) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  gap: 7px !important;
  font-weight: 600 !important;
}

.preview-pass-btn:hover {
  filter: brightness(1.08);
}

.preview-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff3dc;
  box-shadow: 0 0 8px rgba(255, 243, 220, 0.95);
  flex-shrink: 0;
}

.paywall-dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fbfaf7;
  border-radius: 20px;
  padding: 28px 28px 22px;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pw-header h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 6px;
}

.pw-sub {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  max-width: 680px;
}

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

.pw-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pw-card.featured {
  border-color: var(--accent);
  background: #fffcf8;
  box-shadow: 0 10px 26px rgba(184, 106, 53, 0.12);
}

.pw-card-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #efede7;
  color: var(--ink-secondary);
}

.pw-card-badge.accent {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.pw-card-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.15;
}

.pw-card-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1;
}

.pw-card-price span {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-muted);
}

.pw-card-desc {
  font-size: 12px;
  line-height: 1.48;
  color: var(--ink-secondary);
  flex: 1;
}

.pw-don-chips {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pw-chip {
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.pw-chip.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #ffffff;
}

.pw-don-chips input {
  width: 68px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-primary);
  outline: none;
}

.pw-crypto-btn {
  border: 1px solid #d4dae8;
  background: #f4f7fc;
  color: #1649a8;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pw-crypto-btn:hover {
  background: #1652f0;
  border-color: #1652f0;
  color: #ffffff;
}

.pw-status {
  font-size: 12.5px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #f3f1eb;
  color: var(--ink-primary);
  border: 1px solid var(--border-subtle);
}

.pw-status.error {
  background: #fff2ef;
  border-color: #ebb9ae;
  color: #8f2d1e;
}

.pw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  flex-wrap: wrap;
}

.pw-code-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pw-code-row input {
  width: 210px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  outline: none;
}

.pw-contact {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.pw-contact a {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 600;
}

.print-dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fbfaf7;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-modal);
}

.pr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.pr-preview-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pr-preview-col img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #eeece5;
  border-radius: 12px;
  padding: 10px;
}

.pr-preview-caption {
  font-size: 11.5px;
  color: var(--ink-muted);
  text-align: center;
}

.pr-info-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pr-info-col h3 {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
}

.pr-artist {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 4px;
}

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

.pr-size-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.pr-size-opt:has(input:checked) {
  border-color: var(--accent);
  background: #fffcf8;
}

.pr-size-opt input {
  accent-color: var(--accent);
}

.pr-size-opt strong {
  display: block;
  font-size: 13px;
}

.pr-size-opt span {
  font-size: 11px;
  color: var(--ink-muted);
}

.pr-price {
  margin-left: auto;
  font-size: 15px !important;
  font-weight: 700;
  color: var(--ink-primary) !important;
}

.pr-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.pr-inquire-btn {
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 780px) {
  .pw-tiers {
    grid-template-columns: 1fr;
  }
  .pr-layout {
    grid-template-columns: 1fr;
  }
}
