/* =========================================================
   CloseBy — Tactile Studio Photobooth Stylesheet
   ========================================================= */

:root {
  --bg-page: #F6F2EA;
  --bg-panel: #FDFBF7;
  --bg-linen: #DFD7C8;
  --bg-slot: #ECE8E0;
  --ink: #1C1B18;
  --ink-muted: #78716C;
  --border-soft: #D6CFC3;
  --coral: #E84A27;
  --coral-tint: rgba(232, 74, 39, 0.08);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-script: 'Caveat', cursive;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image: radial-gradient(#CFC6B8 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 56px;
}

.hidden {
  display: none !important;
}

/* Fullscreen Screen Ring-Light Halo */
body.ring-warm::after,
body.ring-white::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

body.ring-warm::after {
  box-shadow: inset 0 0 0 18px #FFE8C8, inset 0 0 75px 28px rgba(255, 232, 200, 0.88);
}

body.ring-white::after {
  box-shadow: inset 0 0 0 18px #FFFFFF, inset 0 0 75px 28px rgba(255, 255, 255, 0.92);
}

/* Top Navigation Bar */
.topbar {
  background: var(--bg-panel);
  border-bottom: 2px solid var(--ink);
  padding: 14px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 2px 2px 0 var(--ink);
}

.brand-mark .mark-left {
  background: var(--ink);
}

.brand-mark .mark-right {
  background: var(--coral);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* Segmented Controls & Buttons */
.segmented {
  display: inline-flex;
  background: #EFEAE1;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.seg-btn {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.seg-btn.active {
  background: var(--ink);
  color: #FFFFFF;
}

.mini-seg {
  display: inline-flex;
  flex-wrap: wrap;
  background: #EFEAE1;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.mini-seg-btn {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.mini-seg-btn.active {
  background: var(--ink);
  color: #FFFFFF;
}

.btn {
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary,
.btn-dark {
  background: var(--ink);
  color: #FFFFFF;
}

.btn-coral {
  background: var(--coral);
  color: #FFFFFF;
}

.btn-outline {
  background: var(--bg-panel);
  color: var(--ink);
}

.btn-lg {
  font-size: 0.95rem;
  padding: 11px 22px;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 6px 12px;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-full {
  width: 100%;
  padding: 13px 18px;
  font-size: 0.95rem;
}

.btn-mini {
  border: 1.5px solid var(--ink);
  background: var(--bg-panel);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.btn-mini.active,
.btn-mini.btn-dark {
  background: var(--ink);
  color: #FFFFFF;
}

/* Workspace Layout */
.workspace {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }
}

/* Neo-Brutalist Studio Cards */
.card {
  background: var(--bg-panel);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 5px 5px 0 var(--ink);
  margin-bottom: 18px;
}

.mono-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Long-Distance Duo Bar */
.duo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.duo-subcontrols {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-soft);
  align-items: center;
}

.room-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EFEAE1;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  padding: 4px 6px 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.join-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-mono {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  background: #F4EFE6;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  padding: 8px 12px;
}

.join-input-row .input-mono {
  width: 118px;
  padding: 5px 9px;
}

.input-script {
  width: 100%;
  font-family: var(--font-script);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 700;
  color: var(--coral);
  background: #F4EFE6;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  padding: 6px 12px;
}

.peer-status {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A8A29E;
}

.status-dot.connected {
  background: #16A34A;
}

/* Viewfinder */
.viewfinder-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-group .mono-label {
  margin-bottom: 0;
}

.viewfinder-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1C1B18;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.viewfinder-stage.ring-warm {
  border-color: #FFE8C8;
  box-shadow: inset 0 0 0 12px #FFE8C8, 0 0 28px rgba(255, 232, 200, 0.9);
}

.viewfinder-stage.ring-white {
  border-color: #FFFFFF;
  box-shadow: inset 0 0 0 12px #FFFFFF, 0 0 28px rgba(255, 255, 255, 0.95);
}

.vf-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.vf-feeds {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

.vf-feeds.split-active {
  grid-template-columns: 1fr 1fr;
}

.vf-pane {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf-feeds.split-active .vf-pane:first-child {
  border-right: 2px solid rgba(255, 255, 255, 0.45);
}

.vf-pane video,
.vf-pane canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.15s ease;
}

.vf-pane video.mirrored {
  transform: scaleX(-1);
}

.camera-fallback {
  position: absolute;
  inset: 0;
  background: #262420;
  color: #E7E2D8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}

.camera-fallback .mono-label {
  color: #FFFFFF;
}

.camera-fallback span {
  font-size: 0.82rem;
  color: #BDB5A8;
  max-width: 280px;
}

.pane-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(28, 27, 24, 0.82);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

/* Ghost Pose Overlay */
.ghost-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
}

.ghost-overlay svg {
  width: 56%;
  max-width: 240px;
}

.ghost-tip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(28, 27, 24, 0.65);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Active Cue Banner in Viewfinder */
.vf-cue-banner {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(253, 251, 247, 0.94);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 6px 14px;
  text-align: center;
  box-shadow: 2px 2px 0 var(--ink);
  max-width: 88%;
}

.cue-slot-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: 0.08em;
}

.cue-script {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

/* Countdown & Flash */
.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgba(28, 27, 24, 0.35);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.shutter-flash {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.shutter-flash.active {
  opacity: 0.95;
  transition: none;
}

.capture-bar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Customization Dock */
.dock-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-bottom: 1.5px solid var(--border-soft);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.dock-tab {
  border: 1.5px solid var(--ink);
  background: #EFEAE1;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 9px;
  cursor: pointer;
}

.dock-tab.active {
  background: var(--ink);
  color: #FFFFFF;
}

.dock-panel {
  display: none;
}

.dock-panel.active {
  display: block;
}

.panel-row {
  margin-bottom: 14px;
}

.panel-row:last-child {
  margin-bottom: 0;
}

.split-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

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

.swatch-btn {
  border: 1.5px solid var(--ink);
  background: #F4EFE6;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
}

.swatch-btn.active {
  background: var(--ink);
  color: #FFFFFF;
}

.color-picker {
  width: 100%;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 2px;
  background: #FFFFFF;
  cursor: pointer;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
}

.checkbox-row,
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

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

.preset-packs {
  margin-bottom: 10px;
}

.lyric-inputs-list {
  display: grid;
  gap: 6px;
}

.lyric-input-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lyric-input-item span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-muted);
  min-width: 26px;
}

.lyric-input-item input {
  flex: 1;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 4px 10px;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  background: #F8F5EE;
  color: var(--ink);
}

.divider {
  border: none;
  border-top: 1px dashed var(--border-soft);
  margin: 14px 0;
}

.sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

/* =========================================================
   RIGHT COLUMN — LIVE PREVIEW & STRIP STYLING
   (Matches reference screenshot exact fonts & tactile style)
   ========================================================= */

.preview-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.sub-hint {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

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

/* Outer Dotted Studio Box */
.live-preview-box {
  position: relative;
  background-color: var(--bg-page);
  background-image: radial-gradient(#CFC6B8 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 28px 18px 26px;
  box-shadow: 5px 5px 0 var(--ink);
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.corner-watermark {
  position: absolute;
  top: 8px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #9A9286;
}

/* Woven Linen Backing Card */
.backing-stage {
  background-color: var(--bg-linen);
  background-image:
    repeating-linear-gradient(0deg, rgba(28, 27, 24, 0.035) 0px, rgba(28, 27, 24, 0.035) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(28, 27, 24, 0.035) 0px, rgba(28, 27, 24, 0.035) 1px, transparent 1px, transparent 4px);
  background-size: cover;
  background-position: center;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: background 0.2s ease;
}

.strips-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Photo Strip Card */
.photo-strip {
  width: 268px;
  background-color: #FDFBF7;
  background-size: cover;
  background-position: center;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(28, 27, 24, 0.12);
  transition: padding 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.photo-strip.border-thin {
  padding: 10px 10px 12px;
}

.photo-strip.border-classic {
  padding: 14px 14px 16px;
}

.photo-strip.border-chunky {
  padding: 20px 20px 26px;
}

.photo-strip.dark-paper {
  color: #F6F2EA;
}

.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.strip-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.mini-mark {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
  overflow: hidden;
}

.mini-mark i:first-child {
  background: currentColor;
}

.mini-mark i:last-child {
  background: var(--coral);
}

.shot-pill {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 7px;
  letter-spacing: 0.04em;
}

.strip-subhead {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 6px;
}

.strip-rule {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.25;
  margin-bottom: 10px;
}

.strip-rule.dashed {
  border-top-style: dashed;
  margin: 10px 0 8px;
}

/* Strip Rows & Slots */
.strip-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-strip.border-thin .strip-slots {
  gap: 5px;
}

.photo-strip.border-chunky .strip-slots {
  gap: 12px;
}

.strip-row-block {
  display: flex;
  flex-direction: column;
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.slot-grid.duo-mode {
  grid-template-columns: 1fr 1fr;
  gap: 0; /* Joined (No Gap) default */
}

.slot-grid.duo-mode.split-gap {
  gap: 6px;
}

.photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-slot);
  border: 1.5px dashed #B5AEA2;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.photo-slot.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.photo-slot.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.photo-slot.aspect-3-4 {
  aspect-ratio: 3 / 4;
}

/* Seamless Joined Frame Corners in Duo Mode */
.slot-grid.duo-mode:not(.split-gap) .photo-slot:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right-width: 0.5px;
}

.slot-grid.duo-mode:not(.split-gap) .photo-slot:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-width: 0.5px;
}

/* Active Targeted Slot Highlight (Exact Coral Style from Screenshot) */
.photo-slot.targeted {
  border: 2px solid var(--coral) !important;
  background-color: var(--coral-tint);
}

.slot-upload-pill {
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 7px;
  z-index: 2;
}

.slot-placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #857E74;
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-retake-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(28, 27, 24, 0.82);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.photo-slot:hover .slot-retake-badge,
.photo-slot.targeted .slot-retake-badge {
  opacity: 1;
}

.row-lyric-caption {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: center;
  margin-top: 3px;
  line-height: 1.15;
  opacity: 0.92;
}

/* Strip Footer */
.strip-foot {
  text-align: center;
}

.foot-cities {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.foot-date {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  opacity: 0.65;
  margin-top: 2px;
}

.foot-note {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--coral);
  margin-top: 3px;
  line-height: 1.1;
}

.foot-serial {
  font-family: var(--font-mono);
  font-size: 0.44rem;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin-top: 4px;
}

/* Async Handoff Card */
.handoff-card {
  background: #FFF3ED;
  border: 2px solid var(--coral);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.handoff-card strong {
  font-size: 0.9rem;
  color: var(--coral);
}

.handoff-card p {
  font-size: 0.78rem;
  color: var(--ink);
  margin-top: 2px;
}

.handoff-btns {
  display: flex;
  gap: 6px;
}

/* Metadata Card Under Strip */
.metadata-card {
  margin-bottom: 14px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

/* Dispenser Print Reveal Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(28, 27, 24, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dispenser-box {
  background: var(--bg-panel);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 18px;
  max-width: 440px;
  width: 100%;
  box-shadow: 7px 7px 0 var(--ink);
  text-align: center;
}

.dispenser-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dispenser-head h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
}

.dispenser-slot-bar {
  background: #292622;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 14px;
}

.slot-opening {
  height: 8px;
  background: #090908;
  border-radius: 999px;
}

.dispenser-chute {
  overflow: hidden;
  max-height: 62vh;
  overflow-y: auto;
  padding: 12px 8px;
  background: #EFEAE1;
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 0 0 12px 12px;
}

.dispenser-chute img {
  max-width: 100%;
  border-radius: 8px;
  animation: slideOutStrip 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideOutStrip {
  0% {
    transform: translateY(-85%);
    opacity: 0.2;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.dispenser-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--coral);
}
