/* ==========================================================================
   YehiaFlowers design system: tokens, reset and shared components.
   Used by the store, the order page and the admin panel.
   ========================================================================== */
:root {
  --bg: #fdf8fa;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-2: #f6ecf1;
  --ink: #2c1b24;
  --muted: #7e6772;
  --line: #eedce4;
  --line-strong: #cfa8bb;
  --top: rgba(253, 248, 250, 0.86);
  --top-ink: #2c1b24;
  --top-line: rgba(238, 220, 228, 0.7);
  --btn: #9d4b6e;
  --btn-ink: #ffffff;
  --accent: #9d4b6e;
  --accent-ink: #ffffff;
  --accent-soft: #faedf4;
  --brand-mark-bg: #c93b6e;
  --brand-mark-ink: #ffffff;
  --brand-mark-border: #b83363;
  --brand-mark-shadow: 0 3px 10px rgba(201, 59, 110, 0.28);
  --wa: #167a47;
  --danger: #b3261e;
  --focus: #9d4b6e;
  --shadow: 0 2px 10px rgba(157, 75, 110, 0.05), 0 12px 30px rgba(157, 75, 110, 0.08);
  --shadow-glass: 0 16px 40px rgba(157, 75, 110, 0.12);
  --r: 16px;
  --r-sm: 10px;
  --font: "Plus Jakarta Sans", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #180f14;
  --surface: #22151c;
  --surface-glass: rgba(34, 21, 28, 0.82);
  --surface-2: #2d1a25;
  --ink: #fdf2f6;
  --muted: #c1a8b4;
  --line: #422533;
  --line-strong: #7d4d63;
  --top: rgba(24, 15, 20, 0.88);
  --top-ink: #fdf2f6;
  --top-line: rgba(66, 37, 51, 0.7);
  --btn: #c4648c;
  --btn-ink: #ffffff;
  --accent: #f289b2;
  --accent-ink: #1f0b13;
  --accent-soft: #381a28;
  --brand-mark-bg: #c4648c;
  --brand-mark-ink: #ffffff;
  --brand-mark-border: #d4749c;
  --brand-mark-shadow: 0 3px 12px rgba(196, 100, 140, 0.35);
  --danger: #ff8a80;
  --focus: #f289b2;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-glass: 0 16px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}



/* ---------- Reset & Platform Mobile Native Baseline ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  max-width: 100%;
  overflow-x: clip;
}

html[lang="ar"] {
  --font: "Cairo", "Plus Jakarta Sans", system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Prevent iOS Safari viewport auto-zoom on field focus */
input,
textarea,
select {
  font-size: 16px;
}

@media (max-width: 860px), (pointer: coarse) {
  input,
  textarea,
  select,
  .input {
    font-size: 16px !important;
  }
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Mobile-native: eliminate 300ms tap delay on interactive controls */
button,
a,
[role="button"],
.chip,
.step,
.csw,
.cat-card,
.f-card {
  touch-action: manipulation;
}

/* Mobile-native: prevent long-press text selection / context callout on controls */
button,
[role="button"],
.chip,
.step,
.csw,
.seg button,
.tag,
.badge,
.stepper output,
.brand {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Mobile-native: horizontal scrollers contain overscroll */
.chips,
.lb-thumbs,
.cats,
.cat-rail,
.h-scroll,
.color-swatches,
.csw-strip,
.story-strip,
[data-scroll="x"] {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--accent-soft);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.center {
  text-align: center;
}

.alt {
  color: var(--muted);
  font-size: 0.875rem;
}

.hint {
  color: var(--muted);
  font-size: 0.8125rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  transform: translateY(-200%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.skip-link:focus-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.skip-link:focus:not(:focus-visible) {
  transform: translateY(-200%);
  opacity: 0;
  pointer-events: none;
}

.ic {
  flex: none;
}

:root[dir="rtl"] .flip,
[dir="rtl"] .flip {
  transform: scaleX(-1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  transition: transform 120ms var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.96);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--btn);
}

.btn-glass {
  background: var(--surface-glass);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  transition: background-color 0.2s ease, transform 120ms var(--ease-out);
}

.icon-btn:active {
  transform: scale(0.96);
}

.icon-btn.on-dark {
  color: #fff;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: background-color 0.2s ease, transform 120ms var(--ease-out);
}

.pill-btn:active {
  transform: scale(0.96);
}

/* Kill sticky hover states on touch: gate all hover effects behind pointer capability */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) {
    filter: brightness(1.12);
  }

  .btn-ghost:hover:not(:disabled) {
    background: var(--surface-2);
  }

  .btn-wa:hover:not(:disabled) {
    filter: brightness(1.1);
  }

  .icon-btn:hover {
    background: var(--surface-2);
  }

  .icon-btn.on-dark:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .pill-btn:hover {
    background: rgba(255, 255, 255, 0.14);
  }
}

/* Crisp responsive press feedback across all interactive controls */
button:active:not(:disabled),
[role="button"]:active,
.btn:active:not(:disabled),
.icon-btn:active,
.pill-btn:active,
.step:active:not(:disabled),
.chip:active,
.csw:active {
  transform: scale(0.96);
  transition: transform 120ms var(--ease-out);
}

@media (min-width: 860px) {
  .pill-btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.875rem;
  }
}


/* ---------- Badges and tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--ink);
  white-space: nowrap;
}

.badge-muted {
  color: var(--muted);
}

.badge-soft {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.badge-accent {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.tag {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.tag-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.tag-accent .ic {
  animation: tagPulse 1.8s ease-in-out 0.4s 1;
}

@keyframes tagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.tag-muted {
  background: rgba(44, 27, 36, 0.82);
  color: #fff;
}

/* ---------- Order status colors ---------- */
.st-new {
  background: #fbe3ea;
  color: #8a1f43;
}

.st-quoted {
  background: #fff1cc;
  color: #6b4700;
}

.st-confirmed {
  background: #dce9fb;
  color: #1d4c8f;
}

.st-delivered {
  background: #dcf0e3;
  color: #145c33;
}

.st-cancelled {
  background: #ececec;
  color: #4a4a4a;
}

:root[data-theme="dark"] .st-new {
  background: #4a2331;
  color: #ffc2d4;
}

:root[data-theme="dark"] .st-quoted {
  background: #4a3a10;
  color: #ffe08a;
}

:root[data-theme="dark"] .st-confirmed {
  background: #1c3558;
  color: #b6d3ff;
}

:root[data-theme="dark"] .st-delivered {
  background: #173d29;
  color: #a8e6c1;
}

:root[data-theme="dark"] .st-cancelled {
  background: #333;
  color: #ddd;
}

/* ---------- Cards and forms ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field>label,
.label {
  font-size: 0.875rem;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.input {
  resize: vertical;
  min-height: 72px;
}

.input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 28%, transparent);
}

.input.is-bad {
  border-color: var(--danger);
}

.err {
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 600;
}

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  padding-inline-end: 38px;
}

[dir="rtl"] select.input {
  background-position: 20px 21px, 15px 21px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  min-height: 44px;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch .track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color 0.2s ease;
  flex: none;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.switch input:checked+.track {
  background: var(--btn);
}

.switch input:checked+.track::after {
  transform: translateX(18px);
}

[dir="rtl"] .switch input:checked+.track::after {
  transform: translateX(-18px);
}

.switch input:focus-visible+.track {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-2);
  border-radius: 999px;
}

.seg button {
  width: 40px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ---------- Quantity stepper ---------- */
.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.step {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 120ms var(--ease-out), box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.15s ease, background-color 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .step:hover:not(:disabled) {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    border-color: var(--accent);
  }
}

.step:active:not(:disabled) {
  transform: scale(0.96);
}

.step:disabled {
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
  color: color-mix(in srgb, var(--ink) 40%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--ink) 30%, var(--line));
  background: var(--surface);
}

.step-add {
  background: var(--btn);
  color: var(--btn-ink);
  border-color: var(--btn);
}

.stepper output {
  min-width: 38px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stepper output.bump {
  animation: bump 0.28s ease;
}

@keyframes bump {
  40% {
    transform: scale(1.3);
  }
}

/* ---------- Color swatch ---------- */
.sw {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, 0.28);
  flex: none;
}

/* ---------- Media (photo or tinted placeholder) ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  width: 100%;
  height: 100%;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.media img.loaded {
  opacity: 1;
}

.media.ph {
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--c) 70%, var(--ink));
  background: color-mix(in srgb, var(--c) 20%, var(--surface-2));
}

/* ---------- Empty and skeleton states ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 16px;
  text-align: center;
  color: var(--muted);
}

.empty .ic {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 16px;
}

.empty h2 {
  color: var(--ink);
  font-size: 1.25rem;
}

.empty .btn {
  margin-top: 8px;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--r-sm);
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- Toasts ---------- */
#toasts {
  position: fixed;
  z-index: 90;
  inset-inline: 0;
  bottom: calc(16px + var(--safe-b));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #15221a;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  font-size: 0.9375rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.in {
  opacity: 1;
  transform: none;
}

.toast.out {
  opacity: 0;
  transform: translateY(8px);
}

.toast-error {
  background: #7a1c16;
}

.toast-action {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
}

/* ---------- Dialogs and lightbox ---------- */
.dlg {
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  max-width: min(560px, calc(100vw - 24px));
  width: 100%;
  max-height: calc(100dvh - 24px);
  animation: dlgIn 0.22s ease;
}

.dlg::backdrop {
  background: rgba(24, 15, 20, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.dlg-sm {
  max-width: 420px;
}

.dlg-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.dlg-light {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #0a110d;
  color: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}

.dlg-light::backdrop {
  background: #0a110d;
}

.lb {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding-top: var(--safe-t);
  padding-bottom: var(--safe-b);
}

.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px 8px 20px;
  padding-inline: 20px 12px;
}

.lb-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.lb-cap {
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-count {
  flex: none;
  font-size: 0.8125rem;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}

.lb-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color 0.2s ease, transform 120ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .lb-btn:hover {
    background: rgba(255, 255, 255, 0.24);
  }
}

.lb-btn:active {
  transform: scale(0.96);
}

.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  touch-action: pan-y;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lb-img.in {
  opacity: 1;
  transform: none;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(30, 16, 24, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.lb-prev {
  inset-inline-start: 20px;
}

.lb-next {
  inset-inline-end: 20px;
}

.lb-thumbs {
  flex: none;
  display: flex;
  justify-content: safe center;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px 16px;
  scrollbar-width: none;
}

.lb-thumbs::-webkit-scrollbar {
  display: none;
}

.lb-th {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #16221b;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lb-th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-th.on {
  border-color: #fff;
  opacity: 1;
}

@media (hover: none),
(max-width: 759px) {
  .lb-nav {
    display: none;
  }

  .lb-stage {
    padding: 0 8px;
  }

  .lb-th {
    width: 56px;
    height: 56px;
  }
}

@keyframes dlgIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}