/* v19c.4 — compact name card, off-body notice lane, swipeable MORE chip bar */

:root { --v19c-topbar: 52px; --v19c-notice-w: 128px; }
@media (max-width: 820px) {
  :root { --v19c-topbar: 48px; }
}

/* Taller dock: main buttons + one chip row, still above the Netlify badge */
body.v19c-ui {
  --v19c-dock-h: 124px;
}

/* ---- top-left name card: one slim line + tiny chips ---- */
body.v19c-ui #hud {
  left: 8px !important;
  top: 8px !important;
  right: auto !important;
  max-width: min(70vw, 240px) !important;
  min-width: 0 !important;
  width: max-content !important;
  padding: 3px 22px 3px 7px !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 1px 5px !important;
  line-height: 1.15 !important;
  z-index: 26;
}
body.v19c-ui #hud .hud-name,
body.v19c-ui #hud .hud-stage {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.15 !important;
}
body.v19c-ui #hud .hud-name {
  font: 800 11px/1.15 system-ui, sans-serif !important;
  max-width: 34% !important;
  order: 1;
}
body.v19c-ui #hud .hud-name::after {
  content: " · ";
  font-weight: 700;
  color: #ffd36a;
}
body.v19c-ui #hud .hud-stage {
  font: 650 10px/1.15 system-ui, sans-serif !important;
  color: #ffd36a !important;
  max-width: 62% !important;
  flex: 1 1 auto;
  min-width: 0 !important;
  order: 2;
}
body.v19c-ui #hud .hud-bar {
  order: 8;
  width: 100%;
  height: 2px !important;
  margin: 1px 0 0 !important;
  border-radius: 99px;
  background: #fff2;
}
body.v19c-ui #v19c-hud-tog {
  width: 16px !important;
  height: 16px !important;
  right: 3px !important;
  top: 3px !important;
  border-radius: 6px !important;
  font: 700 9px system-ui !important;
  padding: 0 !important;
}
body.v19c-ui #v19c-title,
body.v19c-ui #v19c-bond {
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  margin: 0 !important;
  padding: 0 6px !important;
  height: 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font: 700 9px/1 system-ui, sans-serif !important;
  letter-spacing: 0.02em !important;
  color: #f4ece4 !important;
  white-space: nowrap;
}
body.v19c-ui #v19c-title { order: 3; color: #e8c36a !important; border-color: rgba(232, 195, 106, 0.45); }
body.v19c-ui #v19c-title:empty { display: none !important; }
body.v19c-ui #v19c-bond { order: 4; color: #ffd0e0 !important; }
body.v19c-ui #v19c-bond i { display: none !important; }
body.v19c-ui #hud.v19c-open {
  max-width: min(70vw, 240px) !important;
  width: auto !important;
}
body.v19c-ui #hud.v19c-open #v19c-bond {
  flex: 1 1 100%;
  order: 7;
  height: auto;
  padding: 2px 6px !important;
}
body.v19c-ui #hud.v19c-open #v19c-bond i {
  display: block !important;
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: #fff2;
  overflow: hidden;
}

/* ---- notice lane: compact pills in a corner, never a center banner ---- */
body.v19c-ui #toasts,
#toasts {
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + var(--v19c-topbar) + 6px) !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: var(--v19c-notice-w) !important;
  max-width: var(--v19c-notice-w) !important;
  align-items: flex-end !important;
  gap: 4px !important;
  z-index: 45;
  pointer-events: none !important;
}
body.v19c-ui #toasts .toast,
#toasts .toast,
.toast {
  max-width: var(--v19c-notice-w) !important;
  width: max-content;
  font: 600 11px/1.25 system-ui, sans-serif !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden !important;
  text-align: left;
  animation: v19c4toast 1.45s ease forwards !important;
}
@keyframes v19c4toast {
  0% { opacity: 0; transform: translateY(-4px) scale(.96); }
  10% { opacity: 1; transform: none; }
  72% { opacity: 1; }
  100% { opacity: 0; }
}

/* Big center banners / size-pop / awe become the side-lane cards instead */
body.v19c-ui #banner,
body.v19c-ui #size-pop,
body.v19c-ui #awe,
body.v19c-ui .size-pop,
body.v19c-ui .awe,
body.v19c-ui #v19c-more-pop {
  display: none !important;
}

/* ---- MORE: single-row horizontal chip bar in the dock ---- */
body.v19c-ui #v19c-more-rail {
  display: flex !important;
  flex: 1 0 100% !important;
  order: -1 !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px;
  width: 100% !important;
  max-width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 4px 4px 2px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: normal;
  touch-action: pan-x !important;
  overscroll-behavior-x: contain;
  pointer-events: auto !important;
  z-index: 52;
  background: transparent;
  scrollbar-width: none;
}
body.v19c-ui #v19c-more-rail::-webkit-scrollbar { display: none; height: 0; }
body.v19c-ui #v19c-more-rail .v19c4-lab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  font: 700 9px/1 system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e8c36a;
  padding: 0 4px 0 8px;
  opacity: .9;
  pointer-events: none;
}
body.v19c-ui #v19c-more-rail .v19c4-gap {
  flex: 0 0 8px;
  width: 8px;
  height: 18px;
  border-left: 1px solid rgba(232,195,106,.35);
  margin: 0 2px 0 6px;
  pointer-events: none;
  scroll-snap-align: none;
}
body.v19c-ui #scr-play .controls #v19c-more-rail .v19c4-chip,
body.v19c-ui.ctl-min #scr-play .controls #v19c-more-rail .v19c4-chip,
body.v19c-ui #v19c-more-rail .v19c4-chip {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  min-height: 32px !important;
  min-width: 44px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(232,195,106,.4) !important;
  background: #1a1418 !important;
  color: #f4ece4 !important;
  font: 600 11px/1 system-ui, sans-serif !important;
  white-space: nowrap !important;
  scroll-snap-align: start;
  touch-action: manipulation !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 53 !important;
  -webkit-user-select: none;
  user-select: none;
}
body.v19c-ui #v19c-more-rail .v19c4-chip:disabled { opacity: .45; }
/* Hide the old MORE grid trigger; the swipe bar replaces it */
body.v19c-ui #scr-play .controls #v19c-more,
body.v19c-ui.ctl-min #scr-play .controls #v19c-more,
body.v19c-ui #scr-play .controls button#v19c-more {
  display: none !important;
}

body.clean-view #v19c-more-rail,
body.flextok-on #v19c-more-rail,
body.vcall-on #v19c-more-rail { display: none !important; }
