/* ── Live chat (snippets/dh-chat.njk, assets/dh-chat.js) ──────────────────── */
.dh-chat { --dh-chat-r: 22px; position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.dh-chat > * { pointer-events: auto; }
html.dh-modal-open .dh-chat { display: none !important; }
.dh-chat-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 9999px; background: rgb(var(--cl-success)); box-shadow: 0 0 0 3px rgba(var(--cl-success), 0.18); vertical-align: 1px; animation: dh-chat-pulse 2.4s ease-in-out infinite; }
@keyframes dh-chat-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(var(--cl-success), 0.18); } 50% { box-shadow: 0 0 0 6px rgba(var(--cl-success), 0.05); } }
.dh-chat-sep { margin: 0 6px; opacity: 0.5; }

.dh-chat-fab {
  position: relative; display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  border-radius: 9999px; border: 1px solid rgba(var(--cl-accent), 0.35);
  background: linear-gradient(180deg, rgb(var(--dh-card-2)), rgb(var(--dh-card)));
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(var(--cl-t-primary), 0.03) inset;
  color: rgb(var(--cl-t-primary)); text-align: left; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) { .dh-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -16px rgba(var(--cl-accent), 0.55); } }
.dh-chat-fab-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9999px; font-size: 1.05rem; color: rgb(var(--cl-on-accent));
  background: linear-gradient(135deg, rgb(var(--cl-accent)), color-mix(in srgb, rgb(var(--cl-accent)), #ff2f6d 35%));
  box-shadow: 0 8px 20px -8px rgba(var(--cl-accent), 0.9);
}
.dh-chat-fab-text { display: flex; flex-direction: column; line-height: 1.15; }
.dh-chat-fab-text strong { font-family: var(--ff-heading); font-weight: 800; font-size: 0.98rem; }
.dh-chat-fab-text small { margin-top: 2px; font-size: 0.76rem; color: rgb(var(--cl-t-muted)); }
.dh-chat-unread {
  position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 9999px; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #fff; background: #ef4444; box-shadow: 0 0 0 3px rgb(var(--dh-ink));
}

.dh-chat-toast {
  display: flex; align-items: center; gap: 0.65rem; max-width: 300px; padding: 0.6rem 0.85rem 0.6rem 0.6rem; border-radius: 16px; text-align: left;
  border: 1px solid rgba(var(--dh-gold), 0.35); background: linear-gradient(180deg, rgb(var(--dh-card-2)), rgb(var(--dh-card)));
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.85); color: rgb(var(--cl-t-primary)); cursor: pointer;
}
.dh-chat-toast strong { display: block; font-size: 0.86rem; line-height: 1.25; }
.dh-chat-toast small { display: block; font-size: 0.74rem; color: rgb(var(--cl-t-muted)); }
.dh-chat-coin {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; font-size: 0.9rem; color: rgb(var(--dh-gold));
  background: radial-gradient(circle at 30% 25%, rgba(var(--dh-gold), 0.32), rgba(var(--dh-gold), 0.08)); border: 1px solid rgba(var(--dh-gold), 0.3);
}
.dh-chat-coin.is-gift { color: rgb(var(--cl-accent)); background: radial-gradient(circle at 30% 25%, rgba(var(--cl-accent), 0.3), rgba(var(--cl-accent), 0.07)); border-color: rgba(var(--cl-accent), 0.3); }

.dh-chat-panel {
  display: flex; flex-direction: column; width: 380px; height: min(640px, calc(100dvh - 110px)); overflow: hidden;
  border-radius: var(--dh-chat-r); border: 1px solid rgba(var(--cl-t-primary), 0.09); background: rgb(var(--dh-card));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95); color: rgb(var(--cl-t-primary));
}
.dh-chat-in { animation: dh-chat-in 0.2s ease-out; }
@keyframes dh-chat-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.dh-chat-head {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem 0.55rem 0.7rem 1rem;
  border-bottom: 1px solid rgba(var(--cl-t-primary), 0.07); background: linear-gradient(180deg, rgba(var(--cl-accent), 0.1), rgba(var(--cl-accent), 0.03));
}
.dh-chat-avatar { width: 36px; height: 36px; border-radius: 9999px; object-fit: cover; background: rgba(var(--cl-accent), 0.12); }
.dh-chat-title-row { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.dh-chat-head h2 { font-size: 0.98rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.dh-chat-live { flex: none; display: inline-flex; align-items: center; padding: 1px 7px 1px 6px; border-radius: 9999px; font-size: 0.66rem; font-weight: 700; color: rgb(var(--cl-success)); background: rgba(var(--cl-success), 0.1); white-space: nowrap; }
.dh-chat-live .dh-chat-dot { width: 6px; height: 6px; margin-right: 5px; vertical-align: 0; }
.dh-chat-head p { margin-top: 2px; font-size: 0.72rem; color: rgb(var(--cl-t-muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-chat-icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9999px; color: rgb(var(--cl-t-muted));
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dh-chat-icon:hover, .dh-chat-icon.is-on { color: rgb(var(--cl-t-primary)); background: rgba(var(--cl-t-primary), 0.08); }

.dh-chat-rules, .dh-chat-staff { margin: 0.6rem 0.75rem 0; padding: 0.65rem 0.8rem; border-radius: 12px; font-size: 0.78rem; line-height: 1.45; }
.dh-chat-rules { background: rgba(var(--cl-t-primary), 0.05); color: rgb(var(--cl-t-muted)); }
.dh-chat-rules-title { margin-bottom: 0.25rem; font-weight: 700; color: rgb(var(--cl-t-primary)); }
.dh-chat-rules-title i { color: rgb(var(--cl-success)); }
.dh-chat-staff { background: rgba(var(--cl-accent), 0.08); border: 1px dashed rgba(var(--cl-accent), 0.4); display: grid; gap: 0.5rem; max-height: 60%; overflow-y: auto; }
.dh-chat-staff-title { font-weight: 700; color: rgb(var(--cl-t-primary)); }
.dh-chat-hand { display: grid; gap: 0.4rem; padding-bottom: 0.55rem; border-bottom: 1px solid rgba(var(--cl-t-primary), 0.08); }
.dh-chat-staff-hint { font-size: 0.7rem; line-height: 1.4; color: rgb(var(--cl-t-muted)); }
.dh-chat-staff-row button:disabled { opacity: 0.5; }
.dh-chat-staff-item em { font-style: normal; font-size: 0.7rem; color: rgb(var(--cl-t-muted)); }
.dh-chat-staff-you { color: rgb(var(--cl-t-muted)); }
.dh-chat-staff-row { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.dh-chat-staff-row button, .dh-chat-staff-item button { padding: 0.28rem 0.65rem; border-radius: 9999px; font-size: 0.74rem; font-weight: 700; background: rgba(var(--cl-t-primary), 0.08); }
.dh-chat-staff-row button.is-on { background: rgb(var(--cl-accent)); color: rgb(var(--cl-on-accent)); }
.dh-chat-staff-row input { flex: 1; min-width: 0; padding: 0.35rem 0.6rem; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--cl-border); font-size: 0.78rem; }
.dh-chat-hand-form { display: grid; gap: 0.4rem; }
.dh-chat-staff-row input.dh-chat-hand-m { flex: 0 0 6.5rem; }
.dh-chat-staff-item { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.35rem; border-top: 1px solid rgba(var(--cl-t-primary), 0.07); }
.dh-chat-guard { display: grid; gap: 0.4rem; padding: 0.55rem 0; border-top: 1px solid rgba(var(--cl-t-primary), 0.08); border-bottom: 1px solid rgba(var(--cl-t-primary), 0.08); }
.dh-chat-guard-words { display: grid; gap: 0.4rem; }
.dh-chat-words { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.dh-chat-word { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 600; color: rgb(var(--cl-t-primary)); background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.35); }
.dh-chat-word i { font-size: 0.62rem; opacity: 0.7; }

/* The pinned note: a slim bar, tap to read all of it */
.dh-chat-pin {
  display: flex; align-items: flex-start; gap: 0.55rem; width: 100%; padding: 0.5rem 1rem; text-align: left; font-size: 0.78rem; line-height: 1.4;
  color: rgba(var(--cl-t-primary), 0.85); background: rgba(var(--dh-gold), 0.07); border-bottom: 1px solid rgba(var(--dh-gold), 0.14);
}
.dh-chat-pin i { flex: none; margin-top: 0.22rem; font-size: 0.68rem; color: rgb(var(--dh-gold)); }
.dh-chat-pin-text { flex: 1; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dh-chat-pin.is-open .dh-chat-pin-text { -webkit-line-clamp: 8; }
.dh-chat-pin b { font-weight: 700; color: rgb(var(--dh-gold)); }

/* The free 5M button: a slim bar under the header (like the pinned note), and a pill under messages that ask about it */
.dh-chat-free {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.5rem 1rem; text-align: left; font-size: 0.82rem; font-weight: 700;
  color: rgb(var(--cl-t-primary)); background: rgba(var(--cl-accent), 0.12); border-bottom: 1px solid rgba(var(--cl-accent), 0.25);
}
.dh-chat-free .dh-chat-coin { width: 28px; height: 28px; border-radius: 9999px; font-size: 0.72rem; }
.dh-chat-free-text { flex: 1; min-width: 0; }
.dh-chat-free > .fa-chevron-right { font-size: 0.7rem; color: rgb(var(--cl-accent)); }
@media (hover: hover) { .dh-chat-free:hover { background: rgba(var(--cl-accent), 0.18); } }
.dh-chat-free-inline {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; padding: 0.32rem 0.75rem; border-radius: 9999px;
  font-size: 0.76rem; font-weight: 700; color: rgb(var(--cl-on-accent)); background: rgb(var(--cl-accent));
}
.dh-chat-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.45rem 1rem 0.7rem; scrollbar-width: thin; }
.dh-chat-empty { margin: 2rem 1rem; text-align: center; font-size: 0.84rem; color: rgb(var(--cl-t-muted)); }
.dh-chat-line { padding: 0.45rem 0; }
/* A payout: one quiet line */
.dh-chat-sale { display: flex; align-items: center; gap: 0.7rem; }
.dh-chat-sale .dh-chat-coin { width: 28px; height: 28px; border: 0; border-radius: 9999px; font-size: 0.68rem; background: rgba(var(--dh-gold), 0.14); }
.dh-chat-sale .dh-chat-coin.is-gift { background: rgba(var(--cl-accent), 0.14); }
.dh-chat-sale-text { flex: 1; min-width: 0; font-size: 0.82rem; font-weight: 600; line-height: 1.35; color: rgba(var(--cl-t-primary), 0.9); }
.dh-chat-sale-took { margin-left: 0.15rem; font-size: 0.74rem; font-weight: 600; color: rgb(var(--dh-gold)); white-space: nowrap; }
.dh-chat-sale-took i { font-size: 0.62rem; }
.dh-chat-sale time, .dh-chat-msg-head time { flex: none; margin-left: auto; padding-left: 0.5rem; font-size: 0.68rem; color: rgb(var(--cl-t-muted)); opacity: 0.75; font-variant-numeric: tabular-nums; }
/* A message */
.dh-chat-msg { position: relative; display: flex; gap: 0.7rem; border-radius: 12px; }
.dh-chat-msg.is-sel { margin: -0.3rem -0.5rem; padding: 0.3rem 0.5rem; background: rgba(var(--cl-t-primary), 0.05); }
.dh-chat-initial {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9999px; font-weight: 700; font-size: 0.74rem; color: #fff;
  background: linear-gradient(135deg, hsl(var(--dh-hue, 320) 62% 54%), hsl(calc(var(--dh-hue, 320) + 30) 62% 42%));
}
.dh-chat-msg-head { display: flex; align-items: center; gap: 0.4rem; min-width: 0; font-size: 0.8rem; line-height: 1.25; }
.dh-chat-name { font-weight: 700; color: rgb(var(--cl-t-primary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-owner .dh-chat-name { color: rgb(var(--dh-gold)); }
.is-mod .dh-chat-name { color: rgb(var(--cl-accent)); }
.dh-chat-role { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 6px; font-size: 0.64rem; font-weight: 700; line-height: 1.6; }
.dh-chat-role i { font-size: 0.56rem; }
.dh-chat-role.is-owner { color: rgb(var(--dh-ink)); background: rgb(var(--dh-gold)); }
.dh-chat-role.is-mod { color: rgb(var(--cl-on-accent)); background: rgb(var(--cl-accent)); }
.dh-chat-role.is-buyer { color: rgb(var(--cl-success)); background: rgba(var(--cl-success), 0.12); }
.dh-chat-role.is-verified { padding: 0; color: rgb(var(--cl-t-muted)); background: none; }
.dh-chat-role.is-verified span { display: none; }
.dh-chat-text { margin-top: 3px; font-size: 0.875rem; line-height: 1.45; color: rgba(var(--cl-t-primary), 0.85); overflow-wrap: anywhere; }
/* Report and staff tools: on hover with a mouse, after a tap on phones */
.dh-chat-tools {
  position: absolute; top: -0.45rem; right: 0; display: none; gap: 2px; padding: 3px; border-radius: 9999px;
  background: rgb(var(--dh-card-2)); border: 1px solid rgba(var(--cl-t-primary), 0.08); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7);
}
.dh-chat-msg.is-sel .dh-chat-tools { top: 0.1rem; right: 0.4rem; }
.dh-chat-tools button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9999px; font-size: 0.74rem; color: rgb(var(--cl-t-muted)); }
.dh-chat-tools button:hover { color: rgb(var(--cl-t-primary)); background: rgba(var(--cl-t-primary), 0.1); }
@media (hover: hover) { .dh-chat-msg:hover .dh-chat-tools { display: flex; } }
.dh-chat-msg.is-sel .dh-chat-tools, .dh-chat-msg:focus-within .dh-chat-tools { display: flex; }
.dh-chat-tools:not(:has(button:not([style*="none"]))) { display: none !important; }

.dh-chat-jump {
  align-self: center; margin: -2.6rem 0 0.6rem; z-index: 1; padding: 0.35rem 0.85rem; border-radius: 9999px; font-size: 0.74rem; font-weight: 700;
  color: rgb(var(--cl-on-accent)); background: rgb(var(--cl-accent)); box-shadow: 0 8px 18px -6px rgba(var(--cl-accent), 0.8);
}
.dh-chat-foot { padding: 0.6rem 0.75rem 0.75rem; border-top: 1px solid rgba(var(--cl-t-primary), 0.07); }
.dh-chat-error, .dh-chat-note, .dh-chat-closed { margin: 0 0.3rem 0.5rem; font-size: 0.76rem; line-height: 1.4; }
.dh-chat-error { color: rgb(var(--cl-error)); }
.dh-chat-note { color: rgb(var(--cl-success)); }
.dh-chat-closed { color: rgb(var(--cl-t-muted)); text-align: center; }
.dh-chat-form { position: relative; display: flex; align-items: center; }
.dh-chat-form input, .dh-chat-steps input {
  width: 100%; min-width: 0; height: 44px; padding: 0 1rem; border-radius: 12px; font-size: 0.9rem; color: rgb(var(--cl-t-primary));
  background: rgba(var(--cl-t-primary), 0.06); border: 1px solid rgba(var(--cl-t-primary), 0.1); outline: none; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dh-chat-form input { padding-right: 3.2rem; border-radius: 9999px; }
.dh-chat-form input::placeholder, .dh-chat-steps input::placeholder { color: rgb(var(--cl-t-muted)); }
.dh-chat-form input:focus, .dh-chat-steps input:focus { border-color: rgba(var(--cl-accent), 0.6); background: rgba(var(--cl-t-primary), 0.08); }
.dh-chat-form button {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9999px; font-size: 0.82rem;
  color: rgb(var(--cl-on-accent)); background: rgb(var(--cl-accent)); transition: background-color 0.15s ease, color 0.15s ease;
}
.dh-chat-form button:disabled { color: rgb(var(--cl-t-muted)); background: transparent; }
.dh-chat-who { display: flex; align-items: center; gap: 0.5rem; margin: 0.45rem 0.5rem 0; font-size: 0.7rem; color: rgb(var(--cl-t-muted)); }
.dh-chat-who button { text-decoration: underline; }
.dh-chat-who .fa-crown { color: rgb(var(--dh-gold)); }
.dh-chat-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.dh-chat-verify .dh-btn { min-height: 44px; padding: 0 1rem; font-size: 0.9rem; }
.dh-chat-small { margin-top: 0.45rem; font-size: 0.72rem; line-height: 1.45; color: rgb(var(--cl-t-muted)); text-align: center; }
.dh-chat-steps { display: grid; gap: 0.45rem; }
.dh-chat-steps .dh-chat-small { margin-top: 0; text-align: left; }
.dh-chat-label { margin-top: 0.1rem; font-size: 0.72rem; font-weight: 700; color: rgb(var(--cl-t-muted)); }
.dh-chat-code { text-align: center; letter-spacing: 0.4em; font-weight: 800; font-size: 1.15rem !important; font-variant-numeric: tabular-nums; }
.dh-chat-row { display: flex; gap: 0.45rem; }
.dh-chat-row .dh-btn--ghost { padding-left: 1rem; padding-right: 1rem; }
.dh-chat-captcha:empty { display: none; }

@media (max-width: 640px) {
  .dh-chat { right: 12px; bottom: 12px; }
  .dh-chat-fab { padding: 0.45rem 0.9rem 0.45rem 0.45rem; }
  .dh-chat-fab-icon { width: 38px; height: 38px; }
  .dh-chat-toast { max-width: calc(100vw - 24px); }
  .dh-chat.is-open { inset: 0; }
  .dh-chat-panel { width: 100vw; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
  .dh-chat-head { padding: 0.6rem 0.5rem 0.6rem 1rem; }
  /* 16px or more: iPhones zoom into the page when a smaller field is tapped */
  .dh-chat-form input, .dh-chat-steps input, .dh-chat-staff-row input { font-size: 16px; }
  html.dh-chat-open { overflow: hidden; }
}

/* ── Order tracker (snippets/dh-chat.njk: dhTrack) ──────────────────────── */
.dh-track {
  position: fixed; left: 20px; bottom: 20px; z-index: 59; width: 330px; padding: 0.85rem 0.9rem 0.9rem; border-radius: 20px;
  border: 1px solid rgba(var(--cl-success), 0.3); color: rgb(var(--cl-t-primary));
  background: radial-gradient(120% 70% at 0% 0%, rgba(var(--cl-success), 0.12), transparent 60%), linear-gradient(180deg, rgb(var(--dh-card-2)), rgb(var(--dh-card)));
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}
html.dh-modal-open .dh-track { display: none !important; }
.dh-track-head { display: flex; align-items: center; gap: 0.65rem; }
.dh-track-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: rgb(var(--cl-success)); background: rgba(var(--cl-success), 0.13); }
.dh-track-icon.is-done { color: #fff; background: rgb(var(--cl-success)); animation: dh-track-pop 0.45s ease-out; }
@keyframes dh-track-pop { 0% { transform: scale(0.6); } 70% { transform: scale(1.12); } 100% { transform: none; } }
.dh-track-kicker { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--cl-success)); }
.dh-track-title { font-family: var(--ff-heading); font-weight: 800; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-track-steps { position: relative; display: flex; justify-content: space-between; margin: 0.85rem 0.2rem 0.55rem; padding: 0; list-style: none; }
.dh-track-steps::before, .dh-track-steps::after { content: ''; position: absolute; top: 6px; left: 7px; right: 7px; height: 3px; border-radius: 3px; background: rgba(var(--cl-t-primary), 0.1); }
.dh-track-steps::after { right: auto; width: 0; background: rgb(var(--cl-success)); transition: width 0.5s ease; }
.dh-track-steps[data-step="2"]::after { width: calc(50% - 7px); }
.dh-track-steps[data-step="3"]::after { width: calc(100% - 14px); }
.dh-track-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 700; color: rgb(var(--cl-t-muted)); }
.dh-track-steps li:first-child { align-items: flex-start; }
.dh-track-steps li:last-child { align-items: flex-end; }
.dh-track-steps li span { width: 15px; height: 15px; border-radius: 9999px; background: rgb(var(--dh-card)); box-shadow: inset 0 0 0 3px rgba(var(--cl-t-primary), 0.18); }
.dh-track-steps li.is-done { color: rgb(var(--cl-t-primary)); }
.dh-track-steps li.is-done span { background: rgb(var(--cl-success)); box-shadow: 0 0 0 3px rgba(var(--cl-success), 0.25); }
.dh-track-text { font-size: 0.84rem; line-height: 1.4; }
.dh-track-hint { margin-top: 0.2rem; font-size: 0.74rem; color: rgb(var(--cl-t-muted)); }
@media (max-width: 640px) {
  .dh-track { left: 12px; right: 12px; bottom: 76px; width: auto; }
  html.dh-chat-open .dh-track { display: none; }
  /* The order card takes the payout pop-up's place on phones. */
  html.dh-tracking .dh-chat-toast { display: none !important; }
}

/* ── Live deliveries under the packs (snippets/dh-live.njk: dhLive) ───────── */
.dh-live {
  margin-top: 1.75rem; padding: 1.15rem 1.15rem 0.9rem; border-radius: 24px; border: 1px solid rgba(var(--cl-success), 0.22);
  background: radial-gradient(90% 120% at 0% 0%, rgba(var(--cl-success), 0.09), transparent 55%), linear-gradient(180deg, rgb(var(--dh-card-2)), rgb(var(--dh-card)));
}
.dh-live-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.dh-live-title { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.12rem; }
.dh-live-dot { width: 10px; height: 10px; border-radius: 9999px; background: rgb(var(--cl-success)); box-shadow: 0 0 0 0 rgba(var(--cl-success), 0.55); animation: dh-live-ping 1.8s ease-out infinite; }
@keyframes dh-live-ping { 0% { box-shadow: 0 0 0 0 rgba(var(--cl-success), 0.55); } 100% { box-shadow: 0 0 0 10px rgba(var(--cl-success), 0); } }
.dh-live-sub { font-size: 0.8rem; color: rgb(var(--cl-t-muted)); }
.dh-live-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.6rem; margin: 0.9rem 0 0.75rem; }
.dh-live-stat { padding: 0.7rem 0.8rem; border-radius: 16px; background: rgba(var(--cl-t-primary), 0.04); border: 1px solid rgba(var(--cl-t-primary), 0.06); }
.dh-live-stat strong { display: block; font-family: var(--ff-heading); font-weight: 800; font-size: 1.35rem; line-height: 1.1; color: rgb(var(--cl-t-primary)); font-variant-numeric: tabular-nums; }
.dh-live-stat span { display: block; margin-top: 2px; font-size: 0.74rem; color: rgb(var(--cl-t-muted)); }
.dh-live-stat em { font-style: normal; opacity: 0.8; }
.dh-live-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.dh-live-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.55rem; border-radius: 14px; background: rgba(0, 0, 0, 0.16); animation: dh-live-in 0.4s ease-out; }
@keyframes dh-live-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dh-live-what { flex: 1; min-width: 0; font-size: 0.86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-live-took { flex: none; padding: 2px 8px; border-radius: 9999px; font-size: 0.7rem; font-weight: 800; color: rgb(var(--dh-gold)); background: rgba(var(--dh-gold), 0.1); }
.dh-live-row time { flex: none; font-size: 0.7rem; color: rgb(var(--cl-t-muted)); min-width: 3.2rem; text-align: right; }
@media (max-width: 640px) {
  /* Phones: the amount stays whole, the time goes under it. */
  .dh-live-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "coin what took" "coin time took"; gap: 0 0.6rem; }
  .dh-live-row .dh-chat-coin { grid-area: coin; }
  .dh-live-what { grid-area: what; align-self: end; line-height: 1.3; }
  .dh-live-took { grid-area: took; align-self: center; }
  .dh-live-row time { grid-area: time; align-self: start; min-width: 0; text-align: left; line-height: 1.3; }
}
.dh-live-foot { margin-top: 0.7rem; font-size: 0.72rem; color: rgb(var(--cl-t-muted)); }
.dh-live-foot i { color: rgb(var(--cl-success)); margin-right: 4px; }
@media (prefers-reduced-motion: reduce) {
  .dh-chat-dot, .dh-live-dot, .dh-chat-in, .dh-live-row, .dh-track-icon.is-done { animation: none !important; }
}