/*
   ROOT VARIABLES & BASE RESETS
 */
:root {
  --blue: #0428a4;
  --dashboard-sky: #4aa6d4;
  --blue-dark: #006fb6;
  --pale: #ebf5fd;
  --white: #fff;
  --dark: #333333;
  --dark-home: #2f3133;
  --muted: #8ca0af;
  --line: #d7e8f5;
  --danger: #d75b52;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--pale);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}

/*
   BUTTONS & FORM BASICS
*/
.hairline {
  border: 0;
  border-bottom: 2px solid #c8ddec;
  background: transparent;
  outline: none;
  color: #333;
}
.hairline:focus {
  border-bottom-color: var(--blue);
}
.blue-btn {
  border: 0;
  background: var(--dashboard-sky);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.plain-btn {
  border: 0;
  background: transparent;
  color: inherit;
}

button {
  outline: none;
  border: none;
}

/*
   LOGIN / SIGN-IN
   Mobile-first: single centered card, fluid width, no fixed pixel
   positioning. Background icons are decorative-only, positioned with
   percentages so they distribute proportionally at any screen size.
*/

/* --- Page shell --- */
.signin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px 16px;
  background: var(--pale);
  overflow: hidden; /* clip decorative icons, prevent page scrollbar */
}

/* --- Decorative background icons --- */
.sign-bg-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #9bd8ff;
  overflow: hidden; /* clip anything still poking past the edge */
}
.sign-bg-icon {
  position: absolute;
  display: block;
  opacity: 0.54;
}
.sign-bg-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Card wrapper --- */
.sign-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 40px 28px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15, 42, 67, 0.04),
    0 12px 32px rgba(15, 42, 67, 0.08);
}

/* --- Brand --- */
.sign-brand {
  margin: 0 0 28px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 2.4px;
  font-weight: 400;
  text-transform: lowercase;
  text-align: center;
}
.sign-brand span {
  color: #008cff;
}
.sign-brand strong {
  color: #9bcfff;
  font-weight: 400;
}

/* --- Card body --- */
.sign-card h1 {
  margin: 0 0 8px;
  color: #2f3b4c;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.sign-subtitle {
  margin: 0 0 24px;
  color: #7a8d9b;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* --- Inputs --- */
.sign-input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0 0 12px;
  padding: 0 14px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--dark);
  font-size: 15px;
  line-height: 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sign-input::placeholder {
  color: #9db2c0;
}
.sign-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 40, 164, 0.12);
}
.sign-input:disabled {
  background: #f3f7fa;
  color: #8ca0af;
  cursor: not-allowed;
}
/* Slightly tighter spacing between email + code fields */
.sign-input.sign-pass {
  margin-top: -4px;
}

/* --- Submit button --- */
.sign-button {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #38cf3a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.sign-button:hover {
  background: #2fb531;
}
.sign-button:active {
  transform: translateY(1px);
}

/* --- Project picker (multi-event "choose" step) --- */
.sign-project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.sign-project-option {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d7e8f5;
  border-radius: 10px;
  background: #fbfdff;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sign-project-option:hover {
  border-color: var(--blue);
  background: #f5fafe;
}
.sign-project-option strong,
.sign-project-option span,
.sign-project-option small {
  display: block;
}
.sign-project-option strong {
  font-size: 15px;
  font-weight: 600;
  color: #2f3b4c;
}
.sign-project-option span {
  margin-top: 2px;
  font-size: 13px;
  color: #7a8d9b;
}
.sign-project-option small {
  margin-top: 2px;
  font-size: 12px;
  color: #9db2c0;
}

/* --- Help / status message --- */
.sign-help {
  margin: 20px 0 0;
  color: #7a8d9b;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.sign-help strong {
  color: #2f3b4c;
  font-weight: 600;
}
.sign-help.is-error {
  color: var(--danger);
}

/* --- Larger screens: slightly roomier card --- */
@media (min-width: 640px) {
  .signin {
    padding: 48px 24px;
  }
  .sign-wrap {
    max-width: 460px;
    padding: 48px 40px 40px;
  }
  .sign-brand {
    font-size: 26px;
    margin-bottom: 36px;
  }
  .sign-card h1 {
    font-size: 32px;
  }
}

/*
   DASHBOARD PAGE SHELL  (.dashboard-page)
   Used by all inner pages (Timeline, Misc, Payments, Videography, etc.)
   Mirrors .home: same pale background, same padding to clear the fixed
   nav bar, same responsive breakpoints.
*/
.dashboard-page {
  position: relative;
  min-height: 100dvh;
  background: var(--pale);
  padding: 76px 16px 16px; /* matches .home — clears the fixed nav */
}

/* .content is the inner wrapper rendered by shell() */
.dashboard-page .content {
  position: static;
  width: 100%;
  height: auto;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .dashboard-page {
    padding: 88px 24px 24px;
  }
}

@media (min-width: 1024px) {
  /* Sidebar is off-canvas toggle at all widths now, so keep the
     single-column mobile layout instead of reserving a grid column. */
  .dashboard-page {
    display: block;
  }
  .dashboard-page .home-nav,
  .dashboard-page .home-left,
  .dashboard-page .content {
    grid-column: auto;
    grid-row: auto;
  }
}

/* iPads report >=1024px viewports but are touch-only devices without a
   mouse/hover, so keep the mobile-style collapsible hamburger nav instead
   of forcing the sidebar permanently open in a two-column grid. The
   .is-ipad class is set on <body> via JS device detection (see app.js). */
body.is-ipad .dashboard-page {
  display: block;
}

/*
   TOP NAVIGATION BAR
   Fixed to the top of the viewport on all screen sizes. Contains the
   hamburger toggle (mobile only) and the page title / client name.
*/
.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid rgba(232, 240, 247, 0.7);
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04);
}

/* Hamburger / close toggle - mobile only */
.menu-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4f6574;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex: 0 0 auto;
}
.menu-toggle:hover {
  background: #f3f7fa;
  color: var(--blue);
}
.menu-toggle-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.menu-toggle-icon-open {
  opacity: 1;
  transform: rotate(0deg);
}
.menu-toggle-icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}
.home.menu-open .menu-toggle-icon-open,
.dashboard-page.menu-open .menu-toggle-icon-open {
  opacity: 0;
  transform: rotate(90deg);
}
.home.menu-open .menu-toggle-icon-close,
.dashboard-page.menu-open .menu-toggle-icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

/* Title block (page title + client name) */
.home-nav-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.home-title-bar {
  margin: 0;
  color: #2f3b4c;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-name {
  margin: 0;
  color: #8ca0af;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop: keep hamburger visible so the sidebar can be toggled, title sits at normal size */
@media (min-width: 1024px) {
  .menu-toggle {
    display: grid;
  }
  /* Temporarily disabled while debugging the desktop grid layout (duplicate
     of the .home-nav override below in the EVENT DETAILS section) - do not
     delete, just commented out for now.
  .home-nav {
    position: static;
    padding: 0 0 20px;
    border-bottom: 0;
    box-shadow: none;
    background: transparent;
  }
  */
  .home-title-bar {
    font-size: 28px;
  }
  .client-name {
    font-size: 16px;
  }
}

/* iPads report >=1024px viewports but are touch-only devices without a
   mouse/hover, so keep the mobile-style collapsible hamburger nav instead
   of hiding it and forcing the sidebar permanently open. The .is-ipad
   class is set on <body> via JS device detection (see app.js). */
body.is-ipad .menu-toggle {
  display: grid;
}

/*
   EVENT DETAILS PAGE (home route)
   Mobile-first: single-column stack of cards. On larger screens the
   two-column grid kicks in. All old .abs / fixed-pixel positioning is
   stripped - elements flow naturally in document order.
*/

/* --- Page shell --- */
.home {
  position: relative;
  min-height: 100dvh;
  background: var(--pale);
  padding: 76px 16px 16px; /* top padding clears the fixed nav bar */
}

/* --- Sidebar (off-canvas on mobile, static on desktop) --- */
.home-left {
  position: fixed;
  top: 65px; /* below the fixed nav bar */
  left: 0;
  bottom: 0;
  z-index: 1050; /* below .home-nav (1100) so the nav toggle stays on top */
  width: 280px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 4px 0 24px rgba(15, 42, 67, 0.12);
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
}
.home.menu-open .home-left,
.dashboard-page.menu-open .home-left {
  transform: translateX(0);
}
.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}
.sidebar-section {
  padding: 8px 0;
}
.sidebar-section-title {
  padding: 8px 20px 6px;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  background: transparent;
  color: #4f6574;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-menu button:hover {
  background: #f5fafe;
  color: var(--blue);
}
.sidebar-menu button.active {
  background: #eaf5fc;
  color: var(--blue);
  font-weight: 600;
}
.sidebar-icon {
  width: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  justify-content: center;
  color: inherit;
  font-size: 14px;
  line-height: 1;
}

/* --- Couple info card (photo + event details) --- */
.couple-info {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
}
.event-info-edit {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f7fa;
  color: #4f6574;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.event-info-edit:hover {
  background: #e8f0f7;
  color: var(--blue);
}
.event-info-edit svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.couple-info-photo-wrap {
  position: relative;
  margin-bottom: 16px;
}
.couple-info-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #f3f7fa;
  background-image: var(--event-info-photo, none);
  background-size: cover;
  background-position: var(--event-info-photo-x, 50%) var(--event-info-photo-y, 50%);
  overflow: hidden;
  position: relative;
}
.couple-info-photo input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.couple-info-photo span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8ca0af;
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}
.couple-info-photo.has-event-photo span {
  display: none;
}
.event-photo-remove {
  position: absolute;
  bottom: -10px;
  right: -10px;
  left: auto;
  top: auto;
  transform: none;
  z-index: 10;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.event-photo-remove-confirm {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  color: #fff;
}
.event-photo-remove-confirm p {
  margin: 0;
  font-size: 15px;
}
.event-photo-remove-confirm div {
  display: flex;
  gap: 10px;
}
.event-photo-remove-confirm button {
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.event-photo-remove-yes {
  background: var(--danger);
  color: #fff;
}
.event-photo-remove-confirm [data-event-photo-remove-no] {
  background: #fff;
  color: #333;
}
.event-photo-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}
.event-photo-progress-bar {
  height: 100%;
  background: var(--blue);
  transition: width 0.2s ease;
}
.event-photo-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
}
.couple-info-details dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.couple-info-details dt {
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.couple-info-details dd {
  margin: 0;
  color: #2f3b4c;
  font-size: 14px;
  line-height: 1.4;
}
.couple-info textarea[data-event-info-field] {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #d7e8f5;
  border-radius: 6px;
  background: #fbfdff;
  color: var(--dark);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.couple-info textarea[data-event-info-field]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 40, 164, 0.12);
}

/* --- Event Readiness panel --- */
.event-readiness-panel {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
}
.event-readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.event-readiness-head h3 {
  margin: 0;
  color: #2f3b4c;
  font-size: 16px;
  font-weight: 600;
}
.event-readiness-head p {
  margin: 2px 0 0;
  color: #8ca0af;
  font-size: 13px;
}
.event-readiness-head strong {
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.event-readiness-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-readiness-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e8f0f7;
  border-radius: 10px;
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.event-readiness-row:hover {
  border-color: #c8ddec;
  background: #f5fafe;
}
.event-readiness-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.event-readiness-row.is-done .event-readiness-icon {
  background: #20b45b;
}
.event-readiness-row.is-needs .event-readiness-icon {
  background: #ff7a1a;
}
.event-readiness-copy {
  flex: 1;
  min-width: 0;
}
.event-readiness-copy b {
  display: block;
  color: #2f3b4c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.event-readiness-copy em {
  display: block;
  margin-top: 2px;
  color: #8ca0af;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}
.event-readiness-action {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}
.event-readiness-row.is-done .event-readiness-action {
  color: #8ca0af;
}

/* --- Main dashboard grid (package + tiles) --- */
.event-dashboard-grid {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}
/* Mobile: flatten both wrapper levels so visual order is
   package → pay → tiles regardless of nesting. */
.flow-col,
.flow-left,
.flow-mid,
.flow-right {
  display: contents;
}
.event-dashboard-grid .package {
  margin-bottom: 16px;
}
/* Mobile only: flattened reading order package → pay → tiles. */
@media (max-width: 767px) {
  .event-dashboard-grid .package {
    order: 0;
  }
  .event-dashboard-grid .tile {
    order: 2;
  }
  .event-dashboard-grid .tile-pay {
    order: 1;
    margin-bottom: 16px;
  }
}
/* Pinned columns + JS-balanced twin flow divs below each (tablet and up). */
.flow-left > .tile,
.flow-mid > .tile,
.flow-right > .tile {
  margin-bottom: 16px;
}

/* --- Package card --- */
.package {
  position: relative;
  padding: 20px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
}
.package h2 {
  margin: 0 0 16px;
  color: #2f3b4c;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.package-builder-toggle {
  /* Admin-only "done building package" toggle - hidden for now (task in
     progress), keep the markup/JS intact for when this is revisited. */
  display: none !important;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f3f7fa;
  color: #4f6574;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.package-builder-toggle:hover {
  background: #e8f0f7;
  color: var(--blue);
}
.package-builder-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.package-builder-toggle.is-edit-mode {
  background: var(--blue);
  color: #fff;
}
.package-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.package-list li {
  padding: 5px 0;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.4;
}
.package-list li:last-child {
  border-bottom: 0;
}
/* Package item description bullets (e.g. "Average of 700 edited images")
   are plain sibling <li> elements within .package-list, not a nested <ul> -
   override the inherited title-row spacing/border so they read as a bullet
   list instead of separate bordered rows. */
.package-list li.package-upgrade-line {
  padding: 0;
  border-bottom: 0;
  list-style: disc outside;
  margin-left: 20px;
}
.package-base-title,
.package-upgrade-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #2f3b4c;
  font-weight: 600;
  font-size: 15px;
  padding-top: 18px;
}
.package-upgrade-name {
  flex: 1 1 100%;
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 15px;
  margin-top: 1rem;
}
/* Everything after the name (quantity control, booked/availability status,
   remove, price) drops to its own row below the name, with the stepper
   control on the left and the rest of the meta grouped on the right - this
   keeps long item names or long right-hand content from overlapping. */
.package-line-meta {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.package-line-meta-left {
  display: flex;
  align-items: center;
}
.package-line-meta-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}
.package-line-price {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}
.package-built-status {
  display: none;
}
.remove-upgrade {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  white-space: nowrap;
}
.remove-upgrade:hover {
  color: #b94a42;
}
/* Admins manage packages/upgrades from the client app / CRM, not this
   preview - hide remove buttons and disable all +/- steppers on Event
   Details so admin can't accidentally trigger client-facing requests. */
body.is-admin .home .remove-upgrade {
  display: none;
}
body.is-admin .home .book-qty button,
body.is-admin .home .package-line-control button,
body.is-admin .home .content-reel-choice-qty button {
  pointer-events: none;
  opacity: 0.35;
  cursor: default;
}
/* The pending-request delta row rendered under the hour/qty-based base
   package lines (e.g. "Photographer: +1 hr") reused a bare <button> with
   no styling at all, so it fell back to the browser default button look
   (bordered/filled) instead of matching the "remove" link used by every
   other added-upgrade card. */
.package-client-delta-delete {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  text-decoration: underline;
  white-space: nowrap;
}
.package-client-delta-delete:hover {
  color: #b94a42;
}
/* The base-package "remove" button next to the "✓ booked" status is
   admin-only functionality (clicking it as a client does nothing), so
   hide it entirely for clients. */
body.is-client .package-base-title .remove-upgrade {
  display: none;
}
.package-line-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.package-line-control button {
  width: 30px;
  height: 30px;
  border: 1px solid #d7e8f5;
  border-radius: 50%;
  background: #fff;
  color: #4f6574;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.package-line-control button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.package-line-control button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.package-line-control strong {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.package-date-header {
  padding: 8px 0 4px;
}
.package-date-header .package-client-delta-date {
  flex: none;
  order: 0;
}
.package-date-switch {
  cursor: default;
}
body.is-admin .package-date-switch {
  cursor: pointer;
}
body.is-admin .package-date-switch:hover {
  color: var(--blue);
}
.package-date-header.is-active-package-date .package-date-switch {
  color: var(--blue);
}
.package-empty-copy {
  margin: 0 0 16px;
  color: #8ca0af;
  font-size: 14px;
  line-height: 1.5;
}
.package-builder {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8f0f7;
}
.package-builder[hidden] {
  display: none;
}
.package-builder-add-day {
  width: 100%;
  height: 40px;
  margin-bottom: 12px;
  border: 1px dashed #c8ddec;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--blue);
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.package-builder-add-day:hover {
  border-color: var(--blue);
  background: #f5fafe;
}
.package-builder-date-calendar-holder {
  margin-bottom: 12px;
}
.package-builder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.builder-group-title {
  margin: 16px 0 8px;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.builder-group-title:first-child {
  margin-top: 0;
}
.package-builder-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.package-builder-card > button[data-package-build] {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fbfdff;
  color: #2f3b4c;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.package-builder-card > button[data-package-build]:hover {
  border-color: var(--blue);
  background: #f5fafe;
}
.package-builder-card.is-builder-disabled > button[data-package-build] {
  opacity: 0.45;
  cursor: not-allowed;
}
.builder-name {
  display: block;
}
.builder-name-sub {
  display: block;
  margin-top: 2px;
  color: #8ca0af;
  font-size: 12px;
}
.builder-check {
  display: none;
  color: #20b45b;
  font-weight: 900;
}
.package-builder-card.is-builder-done .builder-check {
  display: inline;
}
.package-builder-card.is-builder-done > button[data-package-build] {
  border-color: #20b45b;
  background: #f0f9f4;
}
.package-builder-done {
  width: 100%;
  height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.package-builder-done:hover {
  background: var(--blue-dark);
}

/* --- Package upgrades section --- */
.package-upgrades {
  margin: 20px -20px 16px;
  padding: 20px;
  background: #f4f9fd;
}
.package-upgrades > h3 {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.package-upgrades > p {
  margin: 0 0 16px;
  color: #8ca0af;
  font-size: 13px;
  line-height: 1.5;
}
.upgrade-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7dc;
  color: #6b4a00;
  font-size: 13px;
  line-height: 1.4;
}
.upgrade-notice[hidden] {
  display: none;
}
.upgrade-card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid #e8f0f7;
  border-radius: 10px;
  background: #fff;
}
.upgrade-card h4 {
  margin: 0 0 8px;
  color: #2f3b4c;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.upgrade-card h4 span {
  color: var(--blue);
  font-weight: 700;
}
.upgrade-card ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.upgrade-card a {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  text-decoration: underline;
}
.upgrade-card button {
  display: block;
  width: auto;
  margin-left: auto;
  height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.upgrade-card button:hover {
  background: var(--blue-dark);
}
.upgrade-card.is-added,
.upgrade-card.is-included {
  border-color: #20b45b;
  background: #f0f9f4;
}
.upgrade-card.is-added button,
.upgrade-card.is-included button {
  background: #20b45b;
  cursor: default;
}
.upgrade-card.is-option-hidden {
  display: none;
}

/* --- Contract actions (view/download): compact icon-only row --- */
.package-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8f0f7;
}
.package-contract-label {
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.package-action {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.package-action-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid rgba(4, 40, 164, 0.35);
  border-radius: 50%;
  background: #fff;
  color: #0428a4;
  display: grid;
  place-items: center;
}
.package-action-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.package-action-text {
  display: none;
}
.package-action.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.package-action.is-disabled .package-action-text {
  color: #8ca0af;
}

/* --- Tile cards (right column) --- */
.tile {
  position: relative;
  padding: 32px 32px 0; /* no bottom padding - footer handles that */
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* keep footer corners clipped to card radius */
}
.tile[hidden] {
  /* .tile sets display:flex above, which (being an author rule) overrides the
     browser's native [hidden] UA style, so [hidden] tiles must be re-hidden explicitly */
  display: none !important;
}
.tile h3 {
  margin: 0 0 8px;
  color: #2f3b4c;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
/* "Optional add on" label docked right in tile headings */
.addon-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5b7a90;
  background: #eef3f8;
  border-radius: 3px;
  padding: 3px 7px;
}
.tile p {
  margin: 0 0 16px;
  padding: 3rem 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1; /* push footer to bottom when content is short */
}

/* Card footer - holds all action buttons */
.tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 46px;
  margin: 0 -32px; /* bleed to card edges */
  padding: 0 24px;
  background: #f4f9fd;
  border-top: 1px solid rgba(4, 40, 164, 0.08);
}

/* "+" circle button (payment adjustments etc.) - sits left */
.tile-plus-action {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 42, 67, 0.1);
  transition: background 0.15s ease, box-shadow 0.15s ease;
  flex: 0 0 auto;
}
.tile-plus-action:hover {
  background: #eaf5fc;
  box-shadow: 0 2px 6px rgba(15, 42, 67, 0.16);
}
/* The "+" shortcut and the "add to package" button in a tile's footer
   (data-card-upgrade-choice) do the exact same thing, so hide the
   redundant "+" for now - this doesn't affect the unrelated payment
   adjustment "+" button, which uses this same base class. */
.tile-plus-action[data-card-upgrade-choice] {
  display: none;
}
/* Payments & Balance tile: hide the redundant "+" adjustment shortcut so
   only the plain-btn "make a payment" action shows in the footer. */
.tile-pay-plus-action {
  display: none;
}

/* "view" / "create" / "add to package" - link-styled, sit right */
.tile-footer .plain-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0;
  height: auto;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
  flex: 0 0 auto;
  margin-left: auto; /* push to the right when no + button is present */
}
.tile-footer .plain-btn:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* addon-action renders as a round "+" shortcut docked left - the
   "view" link stays docked right */
.tile-footer .plain-btn.addon-action {
  display: none;
  order: -1;
  margin-left: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 42, 67, 0.1);
}
.tile-footer .plain-btn.addon-action:hover {
  background: #eaf5fc;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 42, 67, 0.16);
}

/* Status indicator dot on tiles that track completion */
/*.tile.status-tile::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8f0f7;
}
.tile.status-tile.is-complete::before {
  background: #20b45b;
}
.tile.status-tile.is-missing::before {
  background: #ff7a1a;
}*/

/* Show/hide included vs addon copy + actions based on status */
.included-copy,
.addon-copy {
  display: none;
}
.tile:not(.status-tile) .included-copy,
.tile.status-tile.is-complete .included-copy {
  display: block;
}
.tile.status-tile.is-missing .addon-copy {
  display: block;
}
.tile:not(.status-tile) .included-action,
.tile.status-tile.is-complete .included-action {
  display: block;
}
.tile.status-tile.is-missing .included-action {
  display: none;
}
.tile:not(.status-tile) .addon-action,
.tile.status-tile.is-complete .addon-action {
  display: none;
}
.tile.status-tile.is-missing .addon-action {
  display: grid;
  place-items: center;
}
.tile.status-tile.is-missing .included-action {
  display: block;
}

/* Payment tile specific */
.tile-pay .package-price-label {
  color: #8ca0af;
  font-size: 12px;
}
.tile-pay .package-price-total {
  color: #2f3b4c;
  font-size: 24px;
  font-weight: 700;
}

/* Payment adjustment rows (admin-editable) */
.pay-adjustment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  color: #4f6574;
  font-size: 13px;
}
.payment-adjustment-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.payment-adjustment-remove {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--danger);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.pay-adjustment-row:hover .payment-adjustment-remove,
.pay-adjustment-row:focus-within .payment-adjustment-remove {
  opacity: 1;
}
.payment-adjustment-rename {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8ca0af;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.pay-adjustment-row:hover .payment-adjustment-rename,
.pay-adjustment-row:focus-within .payment-adjustment-rename {
  opacity: 1;
}
.payment-adjustment-rename svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.payment-adjustment-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.payment-adjustment-dollar {
  color: #8ca0af;
  font-size: 13px;
}
.payment-adjustment-dollar.is-empty {
  opacity: 0.4;
}
.payment-adjustment-input-wrap input {
  border: 0;
  border-bottom: 1px solid #d7e8f5;
  background: transparent;
  color: #2f3b4c;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 0;
  min-width: 40px;
}
.payment-adjustment-input-wrap input:focus {
  outline: none;
  border-bottom-color: var(--blue);
}
.payment-adjustment-label-input {
  border: 0;
  border-bottom: 1px solid #d7e8f5;
  background: transparent;
  color: #2f3b4c;
  font-size: 13px;
  padding: 2px 0;
}
.payment-adjustment-label-input:focus {
  outline: none;
  border-bottom-color: var(--blue);
}
.payment-adjustment-done {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #20b45b;
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.payment-adjustment-static-amount {
  color: #2f3b4c;
  font-weight: 600;
}

/* Payment breakdown rows inside the payment tile */
.pay-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0 0 0;
  color: #4f6574;
  font-size: 13px;
}
.pay-breakdown-row strong {
  color: #2f3b4c;
  font-weight: 600;
}
.pay-grand-total,
.pay-balance {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #e8f0f7;
  font-size: 15px;
  font-weight: 700;
}
.pay-grand-total strong,
.pay-balance strong {
  color: var(--blue);
  font-size: 18px;
}
.pay-balance strong {
  color: var(--danger);
}
.pay-breakdown-items,
.pay-breakdown-upgrades,
.pay-breakdown-payments {
  display: block;
  margin-top: 10px;
}
.pay-breakdown-items {
  padding-bottom: 10px;
  border-bottom: 1px solid #e8f0f7;
}
.pay-breakdown-items + .pay-breakdown-row {
  margin-top: 10px;
}
.pay-breakdown-upgrades,
.pay-breakdown-payments {
  padding-top: 10px;
  border-top: 1px solid #e8f0f7;
}
.pay-items-title,
.pay-payments-title {
  display: block;
  margin-bottom: 6px;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pay-upgrades-title {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pay-payment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Payment adjustment popup (positioned relative to the tile) */
.tile-pay {
  position: relative;
}
.payment-plus-popup {
  position: absolute;
  bottom: 52px; /* above the footer */
  left: 14px;
  z-index: 100;
  min-width: 160px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 42, 67, 0.16);
}
.payment-plus-popup[hidden] {
  display: none;
}
/* Payment method bodies are all rendered (so switching methods never
   rebuilds the DOM and wipes typed card values) — inactive ones hide. */
.payment-method-card .credit-card-fields[hidden],
.payment-method-card .payment-option-note[hidden] {
  display: none;
}
.payment-plus-popup button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e8f0f7;
  background: transparent;
  color: #2f3b4c;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.payment-plus-popup button:last-child {
  border-bottom: 0;
}
.payment-plus-popup button:hover {
  background: #f5fafe;
}

/* --- Couple info: photo + details side-by-side (small screens up) --- */
@media (min-width: 480px) {
  .couple-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
  }
  .couple-info-photo-wrap {
    flex: 0 0 150px;
    width: 150px;
    margin-bottom: 0;
  }
  .couple-info-photo {
    aspect-ratio: 4 / 3;
  }
  .couple-info-details {
    flex: 1;
    min-width: 0;
  }
  .couple-info-details dl {
    /* Auto-fit as many label/value fields per row as the available width
       allows (min 110px each), instead of a fixed column count - this
       naturally puts 2 fields per row on narrow screens (e.g. Event Date
       + Venue) and more per row as the card gets wider, without needing
       extra breakpoints. */
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px 20px;
  }
  .event-photo-error {
    order: 3;
    flex: 1 1 100%;
    margin-top: 12px;
  }
}

/* --- Larger screens: two-column grid --- */
@media (min-width: 768px) {
  .home {
    padding: 88px 24px 24px;
  }
  /* Pinned columns (package left, pay right) with balanced flow below each. */
  .event-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .flow-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
  }
  .flow-left,
  .flow-mid,
  .flow-right {
    display: block;
  }
  .flow-col-left {
    grid-column: 1;
  }
  .flow-col-mid {
    grid-column: 2;
  }
  /* Third column joins at hi-res; hidden on tablet (its tiles live in
     the left/mid flows there). */
  .flow-col-right {
    display: none;
  }
  .event-dashboard-grid .package {
    margin-bottom: 0;
  }
  /*.flow-left > .tile,
  .flow-mid > .tile,
  .flow-right > .tile {
    margin-bottom: 0;
  }*/
}


@media (min-width: 1024px) {
  .home {
    padding: 88px 24px 24px;
    display: block;
  }
  /* Temporarily disabled while debugging the desktop grid layout - do not
     delete, just commented out for now.
  .home-nav {
    grid-column: 2;
    grid-row: 1;
    position: static;
    padding: 0 0 20px;
    border-bottom: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  */
  /* Temporarily disabled while debugging the desktop grid layout - do not
     delete, just commented out for now.
  .home-left {
    position: static;
    transform: none;
    width: 260px;
    box-shadow: none;
    border-right: 1px solid #e8f0f7;
    grid-column: 1;
    grid-row: 1 / -1;
    top: auto;
    z-index: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  */
  .home.menu-open .home-left,
  .dashboard-page.menu-open .home-left {
    transform: none;
  }

  /* Sidebar follows .menu-open on desktop too (hamburger stays visible),
     so it can be toggled open/closed at hi-res just like on mobile. */
  .home-left,
  .dashboard-page .home-left {
    transform: translateX(-100%);
  }

  .couple-info,
  .event-readiness-panel,
  .event-dashboard-grid {
    grid-column: auto;
    grid-row: auto;
  }
}

/* iPads: revert the desktop grid layout and forced-open sidebar back to
   the mobile off-canvas hamburger nav (see body.is-ipad .menu-toggle
   above, and body.is-ipad .dashboard-page near the other grid block). */
body.is-ipad .home {
  display: block;
}
body.is-ipad .home-left,
body.is-ipad .dashboard-page .home-left {
  transform: translateX(-100%);
}
body.is-ipad .home.menu-open .home-left,
body.is-ipad .dashboard-page.menu-open .home-left {
  transform: translateX(0);
}

/* Below 1240px there isn't enough width for the event-readiness
   side-by-side layout (head + 3-column readiness grid) without
   overflowing - so it only kicks in at 1240px. Between 1024-1239px this
   section keeps its stacked/tablet layout (see the 1024px block above
   for grid placement only). */
@media (min-width: 1240px) {
  .event-readiness-panel {
    display: flex;
    align-items: flex-start;
    gap: 24px;
  }
  .event-readiness-head {
    flex: 0 0 200px;
    width: 200px;
    margin-bottom: 0;
  }
  .event-readiness-list {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  /* 3-column masonry (hi-res only): package + pay pinned top-left/center,
     tiles balance across all three flow columns, no stretch, no gaps. */
  .event-dashboard-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .flow-col-right {
    display: flex;
  }
}

/*
   EVENT TIMELINE PAGE
   Mobile-first, single-column layout. The timeline page has three
   main zones:
     1. .timeline-info  — intro card (top)
     2. .timeline-sections — team nav + submit controls (below intro)
     3. .slots + .editor — slot list and the slot detail editor
   On desktop (≥ 1024 px) the slots list and editor sit side-by-side.
*/

/* --- Intro info card --- */
.timeline-info.card {
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
}
.timeline-info.card h2 {
  margin: 0 0 10px;
  color: #2f3b4c;
  font-size: 18px;
  font-weight: 600;
}
.timeline-info.card p {
  margin: 0;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.6;
}
.timeline-info-column-break {
  display: inline;
}

/* --- Team nav / submit panel --- */
.timeline-sections {
  position: static;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
}
.team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8f0f7;
}
.team-head span {
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.team-add {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.team-add:hover {
  background: var(--blue-dark);
}

/* Team member tab buttons */
.timeline-option {
  margin-bottom: 4px;
}
.timeline-option button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e8f0f7;
  border-radius: 8px;
  background: #fbfdff;
  color: #4f6574;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.timeline-option button:hover {
  border-color: #c8ddec;
  background: #f5fafe;
  color: var(--blue);
}
.timeline-option button.active {
  border-color: var(--blue);
  background: #eaf5fc;
  color: var(--blue);
  font-weight: 600;
}
.link-timeline {
  font-size: 14px;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.15s ease;
  flex: 0 0 auto;
}
.timeline-option button:hover .link-timeline {
  opacity: 1;
}

/* Delete team member button */
.team-delete {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  margin-top: 6px;
  border: 1px dashed rgba(215, 91, 82, 0.4);
  border-radius: 8px;
  background: transparent;
  color: var(--danger);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.team-delete:hover {
  background: #fff5f4;
  border-color: var(--danger);
}
.delete-x {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

/* Submit row */
.timeline-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e8f0f7;
}
.submit-timeline {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
}
.submit-timeline:hover:not(:disabled) {
  background: var(--blue-dark);
}
.submit-timeline:disabled,
.submit-timeline.is-submitted {
  background: #20b45b;
  cursor: default;
  opacity: 1;
}
.timeline-undo-submit {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #d7e8f5;
  border-radius: 50%;
  background: #fff;
  color: #4f6574;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.timeline-undo-submit:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.timeline-submit-message {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.timeline-submit-message.is-success {
  background: #edf9f2;
  color: #1a7a3f;
}
.timeline-submit-message.is-error {
  background: #fff5f4;
  color: var(--danger);
}

/* Print / PDF action buttons */
.timeline-print-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.timeline-print-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.timeline-print-action:hover {
  opacity: 0.75;
}
.timeline-print-action .package-action-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(4, 40, 164, 0.3);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 86, 145, 0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.timeline-print-action .package-action-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.timeline-print-action .package-action-text {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

/* Locked state */
.timeline-sections.timeline-is-locked .timeline-option button,
.timeline-sections.timeline-is-locked .team-add {
  opacity: 0.55;
  pointer-events: none;
}
.timeline-locked-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(32, 180, 91, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  pointer-events: none;
}

/* --- Slot list header --- */
.timeline-list-head {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.timeline-list-head span {
  color: #2f3b4c;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.add-slot {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 0;
  border-radius: 50%;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.add-slot:hover {
  background: var(--blue-dark);
}

/* --- Slot cards (ported from legacy styles.css design) --- */
.slots {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.slot {
  position: relative;
  min-height: 96px;
  margin-bottom: 16px;
  cursor: pointer;
}
.slot:last-child {
  margin-bottom: 0;
}

/* Connector line — starts just below the node, runs to bottom of slot + gap to next */
.slot::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 44px;
  width: 4px;
  height: 100%;
  background: #c8ddec;
  z-index: 0;
}
.slot.slot-complete::before {
  background: #50ae55;
  width: 5px;
  left: 100px;
}
.slot.slot-bad::before {
  background: #fd0747;
  width: 5px;
  left: 100px;
}
.slot.slot-empty::before {
  background: repeating-linear-gradient(
    to bottom,
    #aebac4 0 5px,
    transparent 5px 10px
  );
  width: 4px;
}
.slot:last-child::before {
  display: none;
}

/* Node circle — vertically centered with the card (card min-height 64px, node 24px → top = (64-24)/2 = 20px) */
.slot-node {
  position: absolute;
  left: 90px;
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(80, 174, 85, 0.45);
  background: var(--pale);
  z-index: 2;
}
.slot.slot-complete .slot-node {
  background: var(--pale);
  border-color: #50ae55;
}
.slot.slot-bad .slot-node {
  background: #fd0747;
  border-color: #fd0747;
}
.slot.slot-empty .slot-node {
  border-color: #aebac4;
}

/* Time column — sits left of node (0 to 88px), vertically centered with node */
.slot-time {
  position: absolute;
  left: 0;
  top: 20px;
  width: 88px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(80, 174, 85, 0.7);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.slot.slot-complete .slot-time { color: #50ae55; }
.slot.slot-bad .slot-time       { color: #fd0747; }
.slot-time span {
  display: inline-block;
  white-space: nowrap;
}
/* The dash/arrow between start and end times */
.slot-time i {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  width: auto;
  height: auto;
  background: none;
  opacity: 1;
  margin: 0 1px;
}
/* Render three dots as the →→→ connector between times */
.slot-time i::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    currentColor 0 3px,
    transparent 3px 5px
  );
  opacity: 0.45;
  vertical-align: middle;
}
.slot-time.empty { color: #c8ddec; }
.slot.slot-single-time .slot-time i { display: none; }

/* Main content card — margin-left clears time(0-88) + node(90-114) + gap(8) = 122px */
.slot-main {
  position: relative;
  margin-left: 122px;
  min-height: 64px;
  padding: 10px 16px;
  background: transparent;
  box-shadow: none;
  border: 1.5px solid rgba(200, 220, 235, 0.6);
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: visible;
  z-index: 3;
}
/* Arrow pointer toward node — two-layer triangle giving a bordered edge.
   Node center is at top:32px from slot top. slot-main has no top offset from slot,
   so arrow top = 32px - half-arrow(10px) = 22px from slot-main top. */
.slot-main::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 22px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 11px solid rgba(200, 220, 235, 0.8);
  z-index: 0;
}
.slot-main::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 23px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 9px solid transparent;  /* matches transparent bg */
  z-index: 1;
}
.slot.selected .slot-main::after {
  border-right-color: #fff;
}
.slot.selected .slot-main {
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 42, 67, 0.06), 0 4px 16px rgba(15, 42, 67, 0.1);
  border-color: var(--dashboard-sky);
}
.slot:hover .slot-main {
  background: rgba(255, 255, 255, 0.6);
}
.slot.selected .slot-main::before {
  border-right-color: var(--dashboard-sky);
}
.slot.selected .slot-main::after {
  border-right-color: #fff;
}

/* Invisible full-area click target */
.slot-click {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.slot-main h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 2px;
  color: #2f3b4c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.slot-main p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #8ca0af;
  font-size: 12px;
  line-height: 1.35;
}
/* slot-main > div:last-child no longer needed as wrapper */
.slot-main > div:last-child {
  display: contents;
}
.slot.slot-leaves .slot-main h3,
.slot.slot-leaves .slot-time {
  opacity: 0.6;
}

/* Drag handle (inside .slot-main) */
.slot-drag-handle {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, 3px);
  gap: 2px;
  cursor: grab;
  opacity: 0.25;
  transition: opacity 0.15s ease;
  z-index: 2;
  user-select: none;
  padding: 4px 0;
}
.slot-drag-handle:active { cursor: grabbing; }
.slot:hover .slot-drag-handle { opacity: 0.55; }
.slot-drag-handle span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #8ca0af;
  display: block;
}

/* Drag clone */
.timeline-drag-clone {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(15, 42, 67, 0.18);
  transform-origin: center;
  opacity: 0.9;
}

/* Locked slots area */
.timeline-locked-area .slot { opacity: 0.7; pointer-events: none; }
.timeline-locked-editor     { pointer-events: none; opacity: 0.7; }

/* Swap animation classes */
.slot-swap-from { animation: slotSwapFrom 0.25s ease; }
.slot-swap-to   { animation: slotSwapTo 0.25s ease; }
@keyframes slotSwapFrom {
  0%   { background: #fff7dc; }
  100% { background: transparent; }
}
@keyframes slotSwapTo {
  0%   { background: #eaf5fc; }
  100% { background: transparent; }
}

/* --- Slot editor panel --- */
.editor {
  position: static;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
  margin-bottom: 16px;
}
.editor h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #2f3b4c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.editor-title-text {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.edit-title {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f3f7fa;
  color: #4f6574;
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 2;
}
.edit-title:hover {
  background: #e8f0f7;
  color: var(--blue);
}

/* Warning & note-box inside editor */
.editor .warning {
  display: none;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(253, 7, 71, 0.08);
  border: 1px solid rgba(253, 7, 71, 0.3);
  color: #fd0747;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
}
.slot.slot-bad ~ .editor .warning,
.editor .warning.show,
.editor .warning[style*="display"] {
  display: block;
}
.note-box {
  padding: 12px 14px;
  margin-bottom: 14px;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: #f5fafe;
}
.note-box strong {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.note-box p {
  margin: 6px 0 0;
  color: #4f6574;
  font-size: 13px;
  line-height: 1.5;
}

/* Form fields inside editor */
#timeline-form .field-label {
  display: block;
  margin-bottom: 6px;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field-label--visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#timeline-form label {
  display: block;
  margin-bottom: 14px;
}

/* time-control needs position:relative so .clock-panel (absolute) anchors to it */
.time-control {
  position: relative;
}

/* Time picker — each "From"/"To" label sits above its full-width control,
   stacked (not side-by-side) so the input and its clock wheel always have
   the full available width, even in the narrow mobile drawer. */
.time-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.time-picker > span {
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.time-picker .time-control {
  width: 100%;
}

/* Clock button — sits inside its input as a small icon affordance */
.time-control .input {
  padding-right: 38px;
}
.clock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8ca0af;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.clock-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.clock-btn:hover {
  background: rgba(4, 40, 164, 0.08);
  color: var(--blue);
}
.clock-btn[data-to-locked] {
  color: #c3cfd8;
  cursor: not-allowed;
  pointer-events: none;
}
.time-control.is-time-locked .input {
  color: #b7c3cc;
  cursor: not-allowed;
}
#timeline-form .input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--dark);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#timeline-form .input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 40, 164, 0.1);
}
#timeline-form textarea.input {
  resize: vertical;
  min-height: 80px;
}
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.address-grid--cityzip {
  grid-template-columns: 1fr 80px 80px;
}
.location-name-label,
.location-address-fields {
  display: block;
}
.location-name-label {
  position: relative;
}
.location-address-fields.is-hidden {
  display: none;
}
.selected-location-summary {
  margin-top: 6px;
  color: #4f6574;
  font-size: 12px;
}

/* Time picker inputs */
.time-fields {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.time-fields label {
  flex: 1;
  margin-bottom: 0;
}

/* Time wheel (clock panel) */
.time-wheel {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}
.wheel-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: 200px;
  overflow-y: auto;
}
.wheel-col strong {
  position: sticky;
  top: 0;
  display: block;
  padding: 6px 4px;
  background: #f0f7fc;
  color: #8ca0af;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 1;
}
.wheel-col button {
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid #f0f4f8;
  background: transparent;
  color: #4f6574;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
}
.wheel-col button:last-child {
  border-bottom: 0;
}
.wheel-col button:hover,
.wheel-col button.active {
  background: #eaf5fc;
  color: var(--blue);
  font-weight: 600;
}
.wheel-col.ampm {
  flex: 0 0 56px;
}

/* Editor action row */
.editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8f0f7;
  flex-wrap: wrap;
}
.editor-actions .delete {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.editor-actions .delete:hover {
  color: #b94a42;
}
.editor-actions span {
  color: #8ca0af;
  font-size: 13px;
}
.save-btn {
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.save-btn:hover {
  background: var(--blue-dark);
}
.save-btn.is-saved {
  background: #20b45b;
}
.save-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

/* Saved location dropdown */
.saved-location-dropdown {
  margin-top: 6px;
}
.saved-location-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d7e8f5;
  border-radius: 6px;
  background: #fbfdff;
  color: #2f3b4c;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 4px;
}
.saved-location-dropdown button:hover {
  border-color: var(--blue);
  background: #f5fafe;
}

/* --- Popover overlays --- */
.team-name-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 400;
  min-width: min(320px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 42, 67, 0.18);
}
.team-name-popover h2 {
  display: block;
  margin-bottom: 14px;
  color: #2f3b4c;
  font-size: 15px;
  font-weight: 600;
}
.team-name-popover .input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--dark);
  font-size: 14px;
  font-family: inherit;
}
.team-name-popover .input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 40, 164, 0.1);
}
.team-name-popover > div {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.team-name-popover .blue-btn {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.team-name-popover .blue-btn:hover {
  background: var(--blue-dark);
}
.team-name-popover [data-cancel-team-name] {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fff;
  color: #4f6574;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.team-name-popover [data-cancel-team-name]:hover {
  border-color: #8ca0af;
  color: #2f3b4c;
}

/* Confirm delete popover */
.confirm-popover {
  position: fixed;
  z-index: 400;
  min-width: min(280px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 42, 67, 0.18);
}
.confirm-popover-slot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.confirm-popover-team {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.confirm-popover h2 {
  display: block;
  margin-bottom: 8px;
  color: #2f3b4c;
  font-size: 18px;
  font-weight: 600;
}
.confirm-popover p {
  margin: 0 0 14px;
  color: #8ca0af;
  font-size: 13px;
  line-height: 1.4;
}
.confirm-popover > div {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.confirm-yes {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.confirm-yes:hover {
  background: #b94a42;
}
.confirm-popover [data-confirm-no] {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fff;
  color: #4f6574;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.confirm-popover [data-confirm-no]:hover {
  border-color: #8ca0af;
  color: #2f3b4c;
}

/* Add card popover */
.add-card-popover {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  max-height: 70vh;
  overflow-y: auto;
  padding: 16px 16px 24px;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 -8px 32px rgba(15, 42, 67, 0.14);
}
.add-card-popover h2 {
  display: block;
  margin-bottom: 12px;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.add-card-popover button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid #e8f0f7;
  border-radius: 10px;
  background: #fbfdff;
  color: #2f3b4c;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 42, 67, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease, color 0.15s ease;
}
.add-card-popover button:last-child {
  margin-bottom: 0;
}
.add-card-popover button:hover {
  border-color: var(--blue);
  background: #f5fafe;
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(4, 40, 164, 0.12);
}
.custom-card {
  color: var(--blue) !important;
  border-color: var(--blue) !important;
}

/* Custom slot name popover */
.custom-slot-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 400;
  min-width: min(320px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 42, 67, 0.18);
}
.custom-slot-popover h2 {
  display: block;
  margin-bottom: 14px;
  color: #2f3b4c;
  font-size: 15px;
  font-weight: 600;
}
.custom-slot-popover .input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--dark);
  font-size: 14px;
  font-family: inherit;
}
.custom-slot-popover .input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 40, 164, 0.1);
}
.custom-slot-popover > form > div {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.custom-slot-popover [data-custom-slot-cancel] {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fff;
  color: #4f6574;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.custom-slot-popover [data-custom-slot-cancel]:hover {
  border-color: #8ca0af;
  color: #2f3b4c;
}
.custom-slot-popover .blue-btn {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.custom-slot-popover .blue-btn:hover {
  background: var(--blue-dark);
}

/* Link timeline popover */
.link-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 400;
  min-width: min(260px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 42, 67, 0.18);
}
.link-popover strong {
  display: block;
  margin-bottom: 10px;
  color: #2f3b4c;
  font-size: 14px;
  font-weight: 600;
}
.link-popover button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e8f0f7;
  border-radius: 8px;
  background: #fbfdff;
  color: #4f6574;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 6px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.link-popover button:last-child {
  margin-bottom: 0;
}
.link-popover button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Semi-transparent backdrop for all timeline popover overlays */
.team-name-popover::before,
.confirm-popover::before,
.custom-slot-popover::before,
.link-popover::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /*background: rgba(15, 42, 67, 0.3);*/
  pointer-events: none;
}

/* Blurred dim backdrop behind the link-timeline popover.
   A real sibling element is used (not .link-popover::before) because
   .link-popover has `transform: translate(-50%, -50%)` for centering,
   which makes it the containing block for its own fixed-position
   descendants — so a pseudo-element with position:fixed + inset:0
   would only cover the popover's own box, not the full viewport. */
.link-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 399;
  background: rgba(15, 42, 67, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.team-name-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 399;
  background: rgba(15, 42, 67, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.add-card-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 399;
  background: rgba(15, 42, 67, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.confirm-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 399;
  background: rgba(15, 42, 67, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.custom-slot-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 399;
  background: rgba(15, 42, 67, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ---- Desktop layout (≥ 768 px): slots + editor side by side ---- */
@media (min-width: 768px) {
  .timeline-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: flex-start;
  }
  .team-head {
    width: 100%;
    margin-bottom: 0;
  }
  .timeline-option {
    flex: 1 1 auto;
    min-width: 140px;
    margin-bottom: 0;
  }
  .team-delete {
    width: auto;
    flex: 0 0 auto;
  }
  .timeline-submit-row {
    width: 100%;
  }
  .timeline-print-actions {
    width: auto;
    margin-left: auto;
  }
  .add-card-popover {
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    max-height: 70vh;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 12px 40px rgba(15, 42, 67, 0.18);
  }
}

@media (min-width: 1024px) {
  /* Slots list + editor sit side-by-side on desktop. Explicit placement
     is needed here (instead of relying on default grid auto-flow) since
     .timeline-list-head, .slots and .editor are three separate grid
     items - without it, .timeline-list-head and .editor would land on
     the same row instead of .timeline-list-head sitting above .slots. */
  .timeline-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 12px 24px;
    align-items: start;
  }
  .timeline-list-head {
    grid-column: 1;
    grid-row: 1;
  }
  .slots {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
  }
  .editor {
    grid-column: 2;
    grid-row: 1 / 3;
    position: sticky;
    top: 24px;
    /*margin-bottom: 0;*/
  }
  .timeline-info-column-break::after {
    content: "\A";
    white-space: pre;
  }
}

/* ---- Wider desktop (>= 1240px): Team nav becomes a 3rd column,
   sitting to the left of the slots+editor pair. Scoped to the timeline
   page specifically (via the body-timeline class set in render()) since
   .content is shared across every dashboard page. ---- */
@media (min-width: 1240px) {
  body.body-timeline .content {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: 24px;
  }
  /* Every item gets an explicit grid-row (not just grid-column) - without
     this, auto-placed items (no explicit row) refuse to overlap cells
     already explicitly reserved by other items (like the row-1 backdrop
     below), and get silently bumped down a row instead. That's what was
     pushing .timeline-info down with an empty row above it. */
  body.body-timeline .timeline-info {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  body.body-timeline .timeline-sections {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
  }
  body.body-timeline .timeline-body {
    grid-column: 2;
    grid-row: 2;
  }
  /* Empty/invisible outside the mobile drawer breakpoint - pin it to the
     first row (overlapping .timeline-info, harmless since it's empty) so
     it doesn't create its own implicit row/gap. */
  body.body-timeline .editor-drawer-backdrop {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* ---- Mobile bottom drawer for editor (< 1024px) ---- */
@media (max-width: 1023px) {
  /* Editor is hidden off-screen by default */
  .editor {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    max-height: 82vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(15, 42, 67, 0.15);
    padding: 0 16px 32px;
    margin-bottom: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    /* Drag handle pill at top */
    padding-top: 20px;
  }
  .editor::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #d0dde6;
    margin: 0 auto 16px;
    position: sticky;
    top: 0;
  }

  /* Slide up when any slot is selected */
  .content:has(.slot.selected) .editor {
    transform: translateY(0);
  }

  /* Real backdrop element — always in DOM, shown when a slot is selected */
  .editor-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(15, 42, 67, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .content:has(.slot.selected) .editor-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Clock panel — constrain width and prevent overflow outside drawer */
  .editor .clock-panel {
    width: 100%;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    box-sizing: border-box;
  }

  /* Saved location dropdown — full width, below its input */
  .editor .saved-location-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    width: auto;
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/*
   GUEST UPLOAD QR CODE PAGE
   Two states controlled by .guest-upload-page:
     .needs-create  — shows the "Step 1" create card
     .is-ready      — shows the designer / iframe card
   Mobile-first, single-column. No fixed positioning.
*/
.guest-upload-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: calc(100dvh - 96px); /* full viewport minus the fixed nav */
}

/* --- Main "Create" card (Step 1) --- */
.guest-upload-main.card {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
  width: 100%;
  max-width: 480px;
}

/* Summary row: heading + step badge */
.guest-upload-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.guest-upload-summary h2 {
  margin: 0;
  color: #2f3b4c;
  font-size: 18px;
  font-weight: 600;
  min-width: 0;
}
.guest-upload-desc {
  margin: 0 0 20px;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.55;
}
.guest-upload-ready-badge {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 12px;
  border-radius: 20px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Action button row */
.guest-upload-actions {
  margin-bottom: 16px;
}
.guest-upload-primary {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.guest-upload-primary:hover:not(:disabled) {
  background: var(--blue-dark);
}
.guest-upload-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status / feedback message */
.guest-upload-status {
  margin: 0 0 16px;
  color: #8ca0af;
  font-size: 13px;
  line-height: 1.5;
}

/* "Already have a link?" advanced/manual fallback */
.guest-upload-advanced {
  margin-top: 4px;
  border: 1px solid #e8f0f7;
  border-radius: 8px;
  overflow: hidden;
}
.guest-upload-advanced summary {
  padding: 10px 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s ease;
}
.guest-upload-advanced summary::-webkit-details-marker {
  display: none;
}
.guest-upload-advanced summary::after {
  content: " ›";
  opacity: 0.7;
}
.guest-upload-advanced[open] summary::after {
  content: " ↓";
}
.guest-upload-advanced summary:hover {
  background: #f5fafe;
}
.guest-upload-advanced label {
  display: block;
  padding: 0 14px 14px;
}
.guest-upload-advanced .field-label {
  display: block;
  margin-bottom: 6px;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.guest-upload-advanced .input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--dark);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.guest-upload-advanced .input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 40, 164, 0.1);
}

/* --- Designer card (is-ready state) --- */
.guest-upload-designer.card {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
  width: 100%;
}
/* The iframe needs the card's full outer width, not the width left over
   after the card's own 20px padding. Rather than fight box-sizing on the
   card itself (border-box keeps the card correctly sized but starves the
   iframe of ~40px; content-box gives the iframe that width back but then
   makes the card itself overflow its column), bleed this wrapper past the
   card's left/right/bottom padding with negative margins so the iframe's
   width:100% resolves against the full card width instead. */
.guest-upload-designer-frame-wrap {
  margin: 0 -20px -20px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}
.guest-upload-designer-head {
  margin-bottom: 16px;
}
.guest-upload-designer-head h2 {
  margin: 0 0 6px;
  color: #2f3b4c;
  font-size: 18px;
  font-weight: 600;
}
.guest-upload-designer-head p {
  margin: 0;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.5;
}

/* iframe — fills the wrapper's full bled width, height set by JS */
.guest-upload-designer-frame {
  display: block;
  width: 100%;
  min-height: 600px;
  border: 0;
  border-top: 1px solid #e8f0f7;
  border-radius: 0;
  background: #fbfdff;
}

/* Smooth reveal: hide create card when ready, hide designer when not */
.guest-upload-page.needs-create .guest-upload-designer {
  display: none;
}
.guest-upload-page.is-ready .guest-upload-main {
  display: none;
}

@media (min-width: 768px) {
  .guest-upload-page {
    min-height: calc(100dvh - 96px); /* matches 768px nav padding */
  }
  .guest-upload-primary {
    width: auto;
    padding: 0 32px;
  }
}

/*
   MISCELLANEOUS PAGE
   A stacked list of accordion-style section cards, each with a blue
   section heading, body copy, checkboxes / radio choices, and text
   inputs. Footer holds the submit button.
   Mobile-first, single-column.
*/
/* --- Page title & intro card --- */
.misc-main-title {
  position: static;
  margin: 0 0 16px;
  color: #2f3b4c;
  font-size: 22px;
  font-weight: 600;
}
.misc-info.card {
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
}
.misc-info.card h2 {
  margin: 0 0 10px;
  color: #2f3b4c;
  font-size: 18px;
  font-weight: 600;
}
.misc-info.card p {
  margin: 0;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.6;
}

/* --- Form section list --- */
.misc-form-list {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 32px;
}

/* --- Individual section card --- */
.misc-section {
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
  overflow: hidden;
}
.misc-section h3 {
  margin: 0;
  padding: 14px 20px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.misc-section-body {
  padding: 18px 20px;
}
.misc-section-body p {
  margin: 0 0 14px;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.6;
}
.misc-section-body p:last-child {
  margin-bottom: 0;
}
.misc-section-body strong {
  color: #2f3b4c;
  font-weight: 700;
}

/* --- Checkbox / radio choice rows --- */
.misc-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
}
.misc-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e8f0f7;
  border-radius: 8px;
  background: #fbfdff;
  color: #2f3b4c;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}
.misc-choice:hover {
  border-color: #c8ddec;
  background: #f5fafe;
}
.misc-choice input[type="checkbox"],
.misc-choice input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--dashboard-sky);
  cursor: pointer;
  flex: 0 0 17px;
}
/* Highlight the choice card when checked */
.misc-choice:has(input:checked) {
  border-color: var(--dashboard-sky);
  background: #eaf5fc;
  color: var(--dashboard-sky);
}

/* Standalone "I understand" choice (not in a .misc-choice-row) */
.misc-section-body > .misc-choice {
  margin-top: 14px;
}

/* --- Text inputs inside sections --- */
.misc-input {
  display: block;
  margin-top: 16px;
}
.misc-input > span {
  display: block;
  margin-bottom: 6px;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.misc-input input,
.misc-input textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--dark);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.misc-input input:focus,
.misc-input textarea:focus {
  outline: none;
  border-color: var(--dashboard-sky);
  box-shadow: 0 0 0 3px rgba(74, 166, 212, 0.18);
}
.misc-input textarea {
  min-height: 72px;
  resize: vertical;
}

/* --- Gratuity panel --- */
.misc-gratuity-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d7e8f5;
  border-radius: 10px;
  background: #f5fafe;
}
.misc-gratuity-panel > p {
  margin: 0 0 14px;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.55;
}
.misc-gratuity-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.misc-gratuity-input {
  flex: 1;
  min-width: 140px;
  margin-top: 0 !important;
}
.misc-money-input {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fff;
}
.misc-money-input > span {
  color: #8ca0af;
  font-size: 15px;
  font-weight: 600;
  flex: 0 0 auto;
}
.misc-money-input input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-size: 16px;
  font-weight: 600;
  color: #2f3b4c;
}
.misc-money-input input:focus {
  outline: none;
  box-shadow: none !important;
}
.misc-gratuity-add {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.misc-gratuity-add:hover:not(:disabled) {
  background: var(--blue);
}
.misc-gratuity-add:disabled,
.misc-gratuity-add.is-added {
  background: #20b45b;
  cursor: default;
}
.misc-gratuity-edit {
  width: 34px;
  height: 34px;
  border: 1px solid #d7e8f5;
  border-radius: 50%;
  background: #fff;
  color: #4f6574;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 34px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.misc-gratuity-edit:hover {
  border-color: var(--dashboard-sky);
  color: var(--dashboard-sky);
}
.misc-gratuity-edit svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.misc-gratuity-notice {
  width: 100%;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
}
.misc-gratuity-notice.is-error {
  color: var(--danger);
}
.misc-gratuity-panel.is-added {
  border-color: rgba(32, 180, 91, 0.4);
  background: #f0f9f4;
}

/* --- Sneak Peek upsell block --- */
.misc-sneak-peek {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e8f0f7;
  border-radius: 10px;
  background: #fbfdff;
}
.misc-sneak-peek p {
  margin: 0 0 12px !important;
  font-size: 13px !important;
}
.misc-sneak-peek-add {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.misc-sneak-peek-add:hover:not(:disabled) {
  background: var(--blue);
}
.misc-sneak-peek-add:disabled,
.misc-sneak-peek-add.is-added {
  background: #20b45b;
  cursor: default;
}
.misc-sneak-peek-undo {
  margin-left: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid #d7e8f5;
  border-radius: 50%;
  background: #fff;
  color: #4f6574;
  font-size: 16px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  vertical-align: middle;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.misc-sneak-peek-undo:hover {
  border-color: var(--dashboard-sky);
  color: var(--dashboard-sky);
}

/* --- Vendor grid --- */
.misc-vendor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
.misc-vendor-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e8f0f7;
  background: #fbfdff;
}
.misc-vendor-card h4 {
  margin: 0 0 12px;
  color: #2f3b4c;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.misc-vendor-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
/* Name field spans full width on any grid size */
.misc-vendor-fields .misc-input:first-child {
  grid-column: 1 / -1;
}
/* No extra top margin in the grid context */
.misc-vendor-fields .misc-input {
  margin-top: 0;
}

/* --- Planning call button --- */
.misc-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  height: 42px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease;
}
.misc-call-btn:hover {
  background: var(--blue-dark);
}

/* --- Vendors section: borderless wrapper --- */
.misc-vendors-section {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.misc-vendors-section h3 {
  border-radius: 12px 12px 0 0;
}
.misc-vendors-section .misc-section-body {
  padding: 0;
}
.misc-vendors-section .misc-section-body > p {
  padding: 16px 20px;
  margin: 0 0 12px;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
}

/* --- Submit footer --- */
.misc-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}
.misc-submit-warning {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7dc;
  color: #9d7417;
  font-size: 13px;
  line-height: 1.45;
}

/* --- Validation error states --- */
/* Section card: red left accent + faint red background */
.misc-section.is-invalid {
  background: #fff9f9;
}
.misc-section.is-invalid h3 {
  background: #c0392b;
}

/* Individual unchecked choice pill */
.misc-choice.is-invalid {
  border-color: var(--danger);
  background: #fff5f4;
  color: var(--danger);
}
.misc-choice.is-invalid input[type="checkbox"],
.misc-choice.is-invalid input[type="radio"] {
  accent-color: var(--danger);
  outline: 2px solid rgba(215, 91, 82, 0.4);
  outline-offset: 1px;
  border-radius: 2px;
}

/* Invalid text input (venue name) */
.misc-input input.is-invalid {
  border-color: var(--danger);
  background: #fff5f4;
  box-shadow: 0 0 0 3px rgba(215, 91, 82, 0.12);
}
.misc-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.misc-submit:hover {
  background: var(--blue-dark);
}

/* --- Responsive: widen vendor grid & choice rows at larger sizes --- */
@media (min-width: 480px) {
  .misc-vendor-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .misc-vendor-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .misc-footer {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
  .misc-submit {
    width: auto;
    padding: 0 32px;
  }
}

/*
   PAYMENTS & BALANCE (BILLING) PAGE
   Single-column on mobile; side-by-side history + checkout on desktop.
*/
/* Suppress legacy artboard-only elements, if they ever reappear */
.payment-top-bar,
.payment-left-menu {
  display: none !important;
}

/* --- Page shell --- */
.payment-page {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  transform: none !important;
}

/* --- Page title --- */
.payment-main-title {
  display: none;
  position: static;
  margin: 0 0 4px;
  color: #2f3b4c;
  font-size: 20px;
  font-weight: 600;
}

/*
   PAYMENT HISTORY CARD
*/
.payment-history-card {
  position: static;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
  width: auto !important;
  min-height: 0 !important;
}
.payment-history-card h3 {
  margin: 0 0 6px;
  color: #2f3b4c;
  font-size: 16px;
  font-weight: 600;
}
.payment-history-card > p {
  margin: 0 0 16px;
  color: #8ca0af;
  font-size: 13px;
  line-height: 1.5;
  width: auto !important;
}

/* History table */
.payment-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 14px;
}
.payment-history-table thead {
  border-bottom: 1px solid #e8f0f7;
}
.payment-history-table th {
  padding: 0 8px 10px 0;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
}
.payment-history-table th:last-child {
  text-align: right;
  padding-right: 0;
}
.payment-history-table td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid #f0f5fa;
  color: #4f6574;
  vertical-align: middle;
}
.payment-history-table td:last-child {
  text-align: right;
  padding-right: 0;
  color: #2f3b4c;
  font-weight: 600;
}
.payment-history-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Method tag badge */
.payment-history-method-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: #e3f7e9;
  border: 1px solid rgba(39, 154, 83, 0.22);
  color: #23834d;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Balance + total rows */
.payment-history-balance,
.payment-history-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e8f0f7;
  margin-top: 4px;
}
.payment-history-balance {
  flex-wrap: wrap;
  row-gap: 2px;
}
.payment-history-balance span,
.payment-history-total span {
  color: #8ca0af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.payment-history-balance strong {
  color: #2f3b4c;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.payment-history-balance em {
  width: 100%;
  font-style: normal;
  color: #8ca0af;
  font-size: 12px;
  order: 3;
}
.payment-history-total strong {
  color: #2f3b4c;
  font-size: 16px;
  font-weight: 700;
}

/*
   PAYMENT CHECKOUT SECTION
*/
.payment-checkout {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: auto !important;
}

/* Section headings */
.payment-amount-section h3,
.payment-method-section h3 {
  margin: 0 0 12px;
  color: #2f3b4c;
  font-size: 16px;
  font-weight: 600;
}
.payment-method-section > p {
  margin: -6px 0 12px;
  color: #8ca0af;
  font-size: 13px;
}

/* Amount input */
.payment-amount-input {
  display: block;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #d7e8f5;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04);
  width: auto !important;
}
.payment-amount-input > span {
  display: block;
  margin-bottom: 8px;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.payment-amount-input input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--dark);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.payment-amount-input input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 40, 164, 0.1);
}

/* Method card wrapper */
.payment-method-card {
  border-radius: 12px;
  border: 1px solid #d7e8f5;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
  overflow: hidden;
  width: auto !important;
  min-height: 0 !important;
}

/* Method selector row */
.payment-method-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid #e8f0f7;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.payment-method-head:last-of-type {
  border-bottom: 0;
}
.payment-method-head:hover {
  background: #f5fafe;
}
.payment-method-head.is-selected {
  background: #f0f7fc;
}
.payment-method-head strong {
  color: #2f3b4c;
  font-size: 15px;
  font-weight: 600;
}

/* Selection checkmark circle */
.pay-check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.pay-check.empty {
  background: #e8f0f7;
}

/* Card brand icons row */
.card-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.cc-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 25px;
  border: 1px solid #e8f0f7;
  border-radius: 4px;
  background: #fff;
  color: #4f6574;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.cc-logo.visa {
  color: #1a1f71;
}
.cc-logo.amex {
  color: #007bc1;
}
.cc-logo.discover {
  color: #e06020;
}
.cc-logo.mc {
  width: 40px;
  height: 25px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.cc-logo.mc svg {
  display: block;
  width: 40px;
  height: 25px;
}

/* PayPal logo text */
.paypal-logo {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}
.paypal-logo span {
  color: #003087;
}
.paypal-logo b {
  color: #009cde;
  font-weight: 800;
}

/* Zelle logo text */
.zelle-logo {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  color: #6d1ed4;
}
.zelle-logo span {
  font-size: 11px;
  vertical-align: super;
  font-weight: 400;
}

/*
   CREDIT CARD FIELDS
*/
.credit-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
  padding: 20px;
  border-top: 1px solid #e8f0f7;
  background: #fbfdff;
}
.credit-card-fields label {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.credit-card-fields input,
.credit-card-fields select {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.credit-card-fields input:focus,
.credit-card-fields select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 40, 164, 0.1);
}
.credit-card-fields select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8ca0af 50%),
    linear-gradient(135deg, #8ca0af 50%, transparent 50%);
  background-position: calc(100% - 14px) 16px, calc(100% - 9px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
/* Full-width fields */
.pay-field-wide {
  grid-column: 1 / -1;
}
/* Third-width: 3 per row — collapse to half on small screens */
.pay-field-third {
  grid-column: span 1;
}

/* Lookup field (searchable select) */
.payment-lookup {
  position: relative;
}
.payment-search-field {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.payment-search-field:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 40, 164, 0.1);
}
.payment-lookup-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 180px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #c8ddec;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 42, 67, 0.12);
}
.payment-lookup:focus-within .payment-lookup-menu {
  display: block;
}
.payment-lookup-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #f0f5fa;
  background: transparent;
  color: #2f3b4c;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
}
.payment-lookup-menu button:last-child {
  border-bottom: 0;
}
.payment-lookup-menu button:hover {
  background: #f0f7fc;
  color: var(--blue);
}
.payment-lookup-menu button.is-hidden {
  display: none;
}

/* Submit button inside card fields grid */
.payment-card-action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/*
   PAYMENT OPTION NOTES  (PayPal / Zelle expanded panels)
*/
.payment-option-note {
  padding: 20px;
  border-top: 1px solid #e8f0f7;
  background: #fbfdff;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.55;
}
.payment-option-note strong {
  display: block;
  margin-bottom: 8px;
  color: #2f3b4c;
  font-size: 15px;
  font-weight: 600;
}
.payment-option-note p {
  margin: 0 0 16px;
}
.payment-option-note p:last-of-type {
  margin-bottom: 0;
}
/* PayPal note: column layout so submit sits below copy */
.paypal-note {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.paypal-note strong,
.paypal-note p {
  align-self: stretch;
}

/*
   PAYMENT SUBMIT BUTTON
*/
.payment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  float: none !important;
  margin: 0 !important;
}
.payment-submit:hover:not(:disabled) {
  background: var(--blue-dark);
}
.payment-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/*
   PAYMENT RESULT DIALOG (success / error / info overlay)
*/
.payment-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 42, 67, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.payment-dialog {
  width: 100%;
  max-width: 360px;
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 42, 67, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.payment-dialog-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
}
.payment-dialog-title {
  margin: 0;
  color: #2f3b4c;
  font-size: 17px;
  font-weight: 700;
}
.payment-dialog-message {
  margin: 0;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.55;
}
.payment-dialog-close {
  margin-top: 4px;
  height: 40px;
  padding: 0 24px;
  border: 1px solid var(--dashboard-sky);
  border-radius: 8px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.payment-dialog-close:hover {
  border-color: var(--dashboard-sky);
  color: #fff;
  filter: brightness(0.93);
}

/*
   RESPONSIVE
*/
@media (min-width: 640px) {
  .payment-submit {
    width: auto;
  }
  /* Three card-field columns actually fit */
  .credit-card-fields {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .pay-field-wide {
    grid-column: 1 / -1;
  }
  .pay-field-third {
    grid-column: span 1;
  }
}

@media (min-width: 900px) {
  /* History + checkout side-by-side */
  .payment-page {
    flex-direction: row;
    align-items: flex-start;
  }
  .payment-history-card {
    flex: 0 0 300px;
    position: sticky;
    top: 24px;
  }
  .payment-checkout {
    flex: 1;
    min-width: 0;
  }
}

/*
   VIDEOGRAPHY PAGE  (also used by Content Creation — shared wrapper)
   Structure:
     .videography-page-wrap
       article.card.videography-details-card
         section.video-song-section
         section.video-sneak-section  (or .content-reel-section)
       div.videography-submit-row.videography-submit-outside

   A floating sticky clone button (.videography-submit-clone) and its
   paired undo circle (.videography-submit-undo) are appended to
   <body> by JS — styled at the bottom of this section.
*/

/* --- Page wrapper --- */
.videography-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Main card --- */
.videography-details-card {
  padding: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
  overflow: hidden;
}

/* Shared section base: every <section> inside the card gets a
   consistent heading + body padding pattern. */
.videography-details-card section {
  padding: 20px;
  border-top: 1px solid #e8f0f7;
}
.videography-details-card section:first-child {
  border-top: 0;
}
.videography-details-card section h2 {
  margin: 0 0 12px;
  color: #2f3b4c;
  font-size: 16px;
  font-weight: 600;
}
.videography-details-card section p {
  margin: 0 0 12px;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.6;
}
.videography-details-card section p:last-child {
  margin-bottom: 0;
}
.videography-details-card section a {
  color: var(--blue);
  word-break: break-all;
}
.videography-details-card section a:hover {
  text-decoration: none;
}
.videography-details-card section ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.7;
}
.videography-details-card section ul:last-child {
  margin-bottom: 0;
}

/*  SONG CHOICE SECTION  */
.video-song-section {}

/* Turnaround-time callout */
.video-turnaround-note {
  margin-top: 14px !important;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: #f5fafe;
  color: #4f6574 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
.video-turnaround-note strong {
  color: var(--blue);
}

/* Song URL input group */
.video-song-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.video-song-inputs label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.video-song-inputs input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--dark);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.video-song-inputs input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 40, 164, 0.1);
}

/*  SNEAK PEEK VIDEO SECTION  */
.video-sneak-actions {
  margin-top: 16px;
}
.video-sneak-actions .blue-btn {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  text-align: center;
}
.video-sneak-actions .blue-btn:hover:not(:disabled) {
  background: var(--blue-dark);
}
.video-sneak-actions .blue-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/*
   CONTENT CREATION  — reel options section
   (shares .videography-details-card and .video-song-section above)
*/
.content-reel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.content-reel-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e8f0f7;
  border-radius: 10px;
  background: #fbfdff;
}
.content-reel-option > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.content-reel-option strong {
  color: #2f3b4c;
  font-size: 14px;
  font-weight: 600;
}
.content-reel-option span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}
.content-reel-controls {
  flex: 0 0 auto;
}
/* Reuse .package-line-control styles already defined —
   .content-reel-qty inherits those; just ensure sizing fits */
.content-reel-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.content-reel-qty button {
  width: 30px;
  height: 30px;
  border: 1px solid #d7e8f5;
  border-radius: 50%;
  background: #fff;
  color: #4f6574;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.content-reel-qty button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.content-reel-qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.content-reel-qty strong {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #2f3b4c;
}
.content-reel-add-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.content-reel-add {
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.content-reel-add:hover:not(:disabled) {
  background: var(--blue-dark);
}
.content-reel-add.is-added {
  background: #20b45b;
  cursor: default;
}
.content-reel-add:disabled {
  background: #a9b6c2;
  opacity: 0.6;
  cursor: not-allowed;
}

/*
   SUBMIT ROW  (outside the card, below it)
*/
.videography-submit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.videography-submit-outside {
  justify-content: flex-end;
}

/* Submit button (inline, in-page) */
.videography-submit {
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.videography-submit:hover:not(:disabled) {
  background: var(--blue-dark);
}
.videography-submit.is-submitted {
  background: #20b45b;
  cursor: default;
}

/* Inline undo circles (in-page) */
.videography-inline-undo,
.content-creation-submit-undo {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d7e8f5;
  border-radius: 50%;
  background: #fff;
  color: #4f6574;
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  user-select: none;
}
.videography-inline-undo:hover,
.content-creation-submit-undo:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/*
   STICKY FLOATING SUBMIT CLONE  (appended to <body> by JS)
   Stays fixed at the bottom-right corner so the button is always
   reachable while scrolling through a long card.
*/
.videography-submit-clone {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--dashboard-sky);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(4, 40, 164, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.videography-submit-clone:hover:not(:disabled) {
  background: var(--blue-dark);
  box-shadow: 0 6px 24px rgba(4, 40, 164, 0.35);
}
.videography-submit-clone.is-submitted {
  background: #20b45b;
  cursor: default;
  box-shadow: 0 4px 16px rgba(32, 180, 91, 0.28);
}

/* Undo circle attached to the clone */
.videography-submit-undo {
  position: fixed;
  bottom: 32px;
  right: 24px; /* JS overrides this per-render */
  z-index: 300;
  width: 36px;
  height: 36px;
  border: 2px solid #d7e8f5;
  border-radius: 50%;
  background: #fff;
  color: #4f6574;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 42, 67, 0.1);
  transition: border-color 0.15s ease, color 0.15s ease;
  user-select: none;
}
.videography-submit-undo:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/*
   RESPONSIVE
*/
@media (min-width: 640px) {
  .video-song-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  .video-song-inputs label {
    /* column label sits above in grid context */
  }
  .video-sneak-actions .blue-btn {
    width: auto;
  }
  .content-reel-actions {
    flex-direction: row;
  }
  .content-reel-option {
    flex: 1;
  }
}

/*
   POPOVERS / POPUPS
   Each is a floating card with a directional "speech bubble" arrow
   (::before). Positioning (left/top/z-index) was 100% pixel-coordinate
   based in the old artboard system - those values are omitted here since
   your new layout will position these via the trigger element instead
   (e.g. CSS anchor positioning, or JS-computed offsets + a wrapper).
*/
/* --- Link popover (generic small action list bubble) --- */
.link-popover {
  width: 330px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(0, 86, 145, 0.22);
}
/* NOTE: a speech-bubble arrow (.link-popover::before) lived here but was
   removed - the live popover is a centered modal, and the arrow's visible
   border was commented out, so it rendered nothing. */
.link-popover strong {
  display: block;
  color: #333;
  font-size: 17px;
  margin-bottom: 14px;
}
.link-popover button {
  display: block;
  width: 100%;
  height: 42px;
  border: 0;
  background: #fff;
  color: #0428a4;
  text-align: left;
  font-size: 16px;
}
/* --- Confirm popover (generic yes/no delete confirmation) --- */
.confirm-popover {
  width: 360px;
  padding: 26px 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 86, 145, 0.32);
}
.confirm-popover strong {
  display: block;
  margin-bottom: 10px;
  color: #333;
  font-size: 22px;
  font-weight: 400;
}
.confirm-popover p {
  margin: 0 0 20px;
  color: #8193a2;
  font-size: 14px;
}
.confirm-popover div {
  display: flex;
  gap: 14px;
  align-items: center;
}
.confirm-popover .confirm-yes {
  width: 120px;
  height: 44px;
  background: #fd0747;
  color: #fff;
  font-size: 13px;
}
.confirm-popover [data-confirm-no] {
  border: 0;
  background: transparent;
  color: #8193a2;
  font-size: 15px;
}
/* Left-pointing arrow variant (e.g. anchored to a slot/card on its right) */
.confirm-popover-slot::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 42px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 18px solid #fff;
}
/* Left-pointing arrow variant, smaller (e.g. team-member row delete) */
.confirm-popover.confirm-popover-team::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 36px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 17px solid #fff;
}

/* --- Saved location dropdown (autocomplete-style list) --- */
.saved-location-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 74px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 86, 145, 0.22);
  z-index: 760;
  padding: 8px;
}
.saved-location-dropdown button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #c8ddec;
  background: #fff;
  color: #333;
  text-align: left;
  padding: 10px 12px;
}
.saved-location-dropdown button:hover {
  background: #f5fafe;
}
.saved-location-dropdown strong,
.saved-location-dropdown span {
  display: block;
}
.saved-location-dropdown strong {
  color: #0428a4;
  font-size: 14px;
  margin-bottom: 3px;
}
.saved-location-dropdown span {
  color: #8193a2;
  font-size: 12px;
  line-height: 1.35;
}

/* --- Generic message/alert dialog (used for payment confirmations) ---
   Canonical .payment-dialog-* rules live in the first definition block;
   this duplicate was removed so it no longer overrides those styles. */
.payment-dialog-message ul {
  margin: 0;
  padding-left: 20px;
  text-align: left;
}
.payment-dialog-message ul li {
  margin: 2px 0;
}

/* --- Payment form inline validation --- */
.payment-input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}
.payment-field-error-msg {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #ef4444;
  font-weight: 500;
}

/* --- PDF generation progress dialog --- */
.pdf-progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.pdf-progress-dialog {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.pdf-progress-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  border: 4px solid rgba(59, 130, 246, 0.18);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: pdf-progress-spin 0.8s linear infinite;
}
@keyframes pdf-progress-spin {
  to {
    transform: rotate(360deg);
  }
}
.pdf-progress-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111;
}
.pdf-progress-status {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/*
   TAGS, BADGES & PAYMENT ICONS
*/
.pay-method-tag {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e3f7e9;
  border: 1px solid rgba(39, 154, 83, 0.22);
  color: #23834d;
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.package-client-delta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.package-client-delta-heading {
  font-weight: 700;
  font-size: 15px !important;
  color: #2f3b4c !important;
  padding-top: 20px !important;
}
.package-client-delta-date {
  flex: 1 1 100%;
  order: 1;
  color: #8ca0af;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.package-client-delta-name {
  order: 2;
  flex: 1 1 auto;
  margin-top: 8px;
  color: #2f3b4c;
  font-weight: 600;
  font-size: 15px;
}
.package-client-delta-row .package-availability-badge {
  order: 3;
  margin-left: auto;
}
.package-client-delta-row .package-client-delta-note {
  order: 4;
}
.package-client-delta-row .package-client-delta-delete {
  order: 5;
}
.package-client-delta-row .package-client-delta-notice {
  order: 6;
}
.package-client-delta-notice,
.package-client-delta-note {
  display: block;
  flex: 1 1 100%;
  margin-top: 6px;
  color: #4f6574;
  font-size: 14px;
  line-height: 1.4;
}
.package-availability-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Payment method logos/icons */
.card-icons {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cc-logo {
  width: 38px;
  height: 23px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16) inset;
  background: #fff;
  font-style: normal;
}
.cc-logo.visa {
  color: #1434cb;
  font-style: italic;
  letter-spacing: 0.02em;
}
.cc-logo.amex {
  background: #2e77bb;
  color: #fff;
  font-size: 7px;
}
.cc-logo.discover {
  color: #f58220;
}
.cc-logo.mc {
  position: relative;
  background: #fff;
  color: transparent;
}
.cc-logo.mc i,
.cc-logo.mc b {
  display: block;
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  top: 4px;
  font-style: normal;
}
.cc-logo.mc i {
  left: 10px;
  background: #eb001b;
}
.cc-logo.mc b {
  left: 17px;
  background: #f79e1b;
  opacity: 0.92;
}
.paypal-logo {
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.04em;
}
.paypal-logo span {
  color: #003087;
}
.paypal-logo b {
  color: #009cde;
}
.zelle-logo {
  color: #6d1fd1;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.zelle-logo span {
  font-size: 9px;
  vertical-align: super;
  margin-left: 1px;
}
.quickpay-logo:empty,
.card-icons:empty {
  display: none;
}

/* Delete "x" affordance (used in slot/team-member delete buttons) */
.delete-x {
  color: #fd0747;
  font-size: 22px;
  line-height: 0.9;
  font-weight: 700;
}
.delete-text {
  color: #333;
  padding-bottom: 4px;
  background-image: radial-gradient(circle, #333 1.2px, transparent 1.3px);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  background-position: left bottom;
}

/*
   SMALL WIDGETS
*/
/* --- Time picker (clock icon opens a 3-column hour/minute/am-pm wheel) --- */
.clock-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 48px;
  width: 360px;
  max-height: none;
  overflow: visible;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 86, 145, 0.2);
  z-index: 20;
  padding: 14px;
}
.clock-panel.open {
  display: block;
}
.time-wheel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.wheel-col {
  height: 184px;
  overflow-y: auto;
  border: 1px solid #c8ddec;
  background: #f7fbff;
  scrollbar-width: thin;
}
.wheel-col.ampm {
  overflow: hidden;
}
.wheel-col strong {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  height: 34px;
  line-height: 34px;
  background: #fff;
  color: #8193a2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  border-bottom: 1px solid #c8ddec;
}
.clock-panel .wheel-col button {
  display: block;
  width: 100%;
  height: 36px;
  border: 0;
  border-bottom: 1px solid rgba(200, 221, 236, 0.7);
  background: transparent;
  color: #333;
  font-size: 15px;
  text-align: center;
}
.clock-panel .wheel-col button:hover,
.clock-panel .wheel-col button.active {
  background: #0428a4;
  color: #fff;
}
.clock-panel .wheel-col button.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}
.clock-panel .wheel-col button.is-disabled:hover {
  background: transparent;
  color: #333;
}
/* Note: the Event Timeline screen used a bigger variant of this widget
   (520px wide, 128/190/128 column split, 360px tall columns, 44px rows).
   Recreate as a `.clock-panel--lg` modifier if that scale is still needed. */

/* --- Photo booth availability calendar ---
   NOTE: an older display:none/block variant of these rules lived here and
   was removed - every property was overridden by (or identical to) the
   floating overlay variant below, which uses visibility/opacity so the
   open/close can fade. */
.booth-calendar-head {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 6px;
}
.booth-calendar-head button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f7fbff;
  color: #0428a4;
  text-align: center;
  font-size: 20px;
  line-height: 1;
}
.booth-calendar-head button:hover {
  background: #0428a4;
  color: #fff;
}
.booth-calendar-days,
.booth-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.booth-calendar-days span {
  color: #8aa0b1;
  font-size: 10px;
  text-align: center;
}
.booth-calendar-grid button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f7fbff;
  color: #31566e;
  text-align: center;
  font-size: 12px;
}
.booth-calendar-grid button:hover,
.booth-calendar-grid button.is-selected {
  background: #0428a4;
  color: #fff;
}

/* Chat Widget, Client Charge Confirm, Upgrade Choice Popup */
.li-assistant-widget {
  position: absolute;
  inset: 0;
  z-index: 9999;
  font-family: inherit;
  pointer-events: none;
}

html:has(body.li-assistant-open),
body.li-assistant-open {
  overflow: hidden;
}

/* --- Toggle button --- */
.li-assistant-toggle {
  position: absolute;
  top: 5px;
  right: 24px;
  z-index: 10002;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 9px;
  background: #fff;
  color: #2f91c4;
  padding: 0 11px 0 10px;
  display: none; /* shown via .li-assistant-widget:not(.is-collapsed) */
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.li-assistant-widget:not(.is-collapsed) .li-assistant-toggle {
  display: inline-flex;
}
.li-assistant-toggle:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.li-assistant-toggle-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 145, 196, 0.1);
  color: #2f91c4;
  font-size: 12px;
  line-height: 1;
}
.li-assistant-toggle-logo {
  width: 21px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.li-assistant-toggle-logo img {
  width: auto;
  height: 28px;
  max-width: none;
  display: block;
  object-fit: contain;
}

/* --- Backdrop fill strips (sit behind the slide-out panel) --- */
.li-assistant-backdrop {
  display: none;
}
.li-assistant-widget:not(.is-collapsed) .li-assistant-backdrop {
  display: block;
  position: fixed;
  top: var(--li-assistant-fill-top, 68px);
  right: 0;
  bottom: 0;
  width: calc(var(--li-assistant-width, min(336px, calc(100vw - 24px))) + 20px);
  background: #ebf5fd;
  z-index: 9999;
  pointer-events: none;
}
.li-assistant-widget:not(.is-collapsed)::before {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  width: var(--li-assistant-width, min(336px, calc(100vw - 24px)));
  height: 18px;
  background: rgba(248, 250, 252, 0.96);
  z-index: 10000;
  pointer-events: none;
}
.li-assistant-widget:not(.is-collapsed)::after {
  content: "";
  position: fixed;
  top: var(--li-assistant-fill-top, 68px);
  right: var(--li-assistant-width, min(336px, calc(100vw - 24px)));
  bottom: 18px;
  width: 20px;
  background: #ebf5fd;
  z-index: 10000;
  pointer-events: none;
}

/* --- Sliding panel --- */
.li-assistant-panel {
  position: fixed;
  top: 45px;
  right: 0;
  bottom: 18px;
  z-index: 10001;
  width: var(--li-assistant-width, min(336px, calc(100vw - 24px)));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px 0 0 22px;
  box-shadow: none;
  background: #fff;
  font-size: 16px;
  pointer-events: auto;
  transition: transform 0.2s ease;
}
.li-assistant-widget.is-collapsed .li-assistant-panel {
  transform: translateX(104%);
}
body.li-assistant-open .stage {
  transform: translateX(calc(-1 * var(--li-assistant-scroll-x, 0px)));
  width: calc(100vw - var(--li-assistant-width, min(336px, calc(100vw - 24px))) - 20px);
  transition: transform 0.08s linear;
}

/* --- Header --- */
.li-assistant-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 0 22px;
  background: #fff;
  color: #263b55;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}
.li-assistant-header strong,
.li-assistant-header small {
  display: block;
}
.li-assistant-header strong {
  font-size: 17px;
  line-height: 1.1;
}
.li-assistant-header small {
  margin-top: 3px;
  color: #7a8d9b;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.li-assistant-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(4, 40, 164, 0.06);
  color: #263b55;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.li-assistant-close:hover {
  background: rgba(4, 40, 164, 0.12);
}

/* --- Intro (empty-state) screen --- */
.li-assistant-intro {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #263b55;
}
.li-assistant-intro.is-hidden {
  display: none;
}
.li-assistant-intro-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 10px 24px rgba(4, 40, 164, 0.12);
  animation: liAssistantLogoFloat 2.8s ease-in-out infinite;
}
.li-assistant-intro-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  animation: liAssistantLogoPulse 2.8s ease-in-out infinite;
}
.li-assistant-intro-icon {
  display: none; /* superseded by .li-assistant-intro-logo */
}
.li-assistant-intro h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 700;
  color: #263b55;
}
.li-assistant-intro p {
  max-width: 310px;
  margin: 10px auto 0;
  font-size: 14px;
  line-height: 1.4;
  color: #7a8d9b;
}
@media (prefers-reduced-motion: reduce) {
  .li-assistant-intro-logo,
  .li-assistant-intro-logo img,
  .li-assistant-toggle-icon {
    animation: none;
  }
}

/* --- Messages --- */
.li-assistant-messages {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  background: #fff;
}
.li-assistant-messages:empty {
  display: none;
}
.li-assistant-message {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 90%;
  margin: 0 0 10px;
  font-size: 16px;
  white-space: pre-wrap;
}
.li-assistant-message.assistant {
  width: auto;
  max-width: 100%;
  padding: 0;
  color: #263b55;
  line-height: 1.5;
}
.li-assistant-message.assistant.is-waiting {
  width: fit-content;
  min-width: 46px;
  padding: 10px 13px;
  border-radius: 16px;
  background: #eef7fd;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.li-assistant-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d9aae;
  opacity: 0.38;
  animation: liAssistantTypingDot 1.15s ease-in-out infinite;
}
.li-assistant-typing-dot:nth-child(2) {
  animation-delay: 0.16s;
}
.li-assistant-typing-dot:nth-child(3) {
  animation-delay: 0.32s;
}
.li-assistant-message.user {
  position: relative;
  overflow: visible;
  max-width: 72%;
  margin-left: auto;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #263b55;
  border: 1px solid rgba(148, 163, 184, 0.34);
  line-height: 1.5;
}
.li-assistant-message.user::before,
.li-assistant-message.user::after {
  content: "";
  position: absolute;
  top: 8px;
  pointer-events: none;
}
.li-assistant-message.user::before {
  right: -7px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid rgba(148, 163, 184, 0.34);
}
.li-assistant-message.user::after {
  right: -6px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid #f1f5f9;
}

/* --- Composer / input form --- */
.li-assistant-form {
  flex: 0 0 auto;
  display: block;
  padding: 14px 16px 12px;
  border-top: 0;
  background: #fff;
}
.li-assistant-input-wrap {
  position: relative;
}
.li-assistant-input {
  display: block;
  width: 100%;
  resize: none;
  min-height: 94px;
  max-height: 170px;
  margin: 0;
  padding: 17px 50px 10px 12px;
  border: 1px solid #cfd8df;
  border-radius: 14px;
  font: inherit;
}
.li-assistant-input:focus {
  outline: 2px solid rgba(148, 163, 184, 0.24);
  border-color: #aebbc6;
}
.li-assistant-input:disabled {
  opacity: 0.65;
  cursor: wait;
}
.li-assistant-placeholder {
  position: absolute;
  left: 14px;
  top: 13px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  color: #8a9aa8;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.li-assistant-placeholder img {
  width: 14px;
  height: 19px;
  object-fit: contain;
  display: block;
}
.li-assistant-widget.has-assistant-text .li-assistant-placeholder {
  display: none;
}
.li-assistant-send {
  display: inline-flex;
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #c7efff;
  color: #0d2a3f;
  cursor: pointer;
}
.li-assistant-send:hover {
  background: #b7e8fb;
}
.li-assistant-send:disabled {
  background: #e6eef3;
  cursor: default;
}
.li-assistant-send svg {
  width: 21px;
  height: 21px;
  display: block;
  overflow: visible;
}
.li-assistant-send svg path {
  fill: none;
  stroke: #0d2a3f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.li-assistant-send:disabled svg path {
  stroke: #9aa9b4;
}
.li-assistant-disclaimer {
  margin-top: 8px;
  color: #8a9aa8;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

/* --- Bottom horizontal page-scrollbar substitute (desktop only) --- */
.li-assistant-page-scroll {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10003;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
}
.li-assistant-page-scroll-inner {
  height: 1px;
}
.li-assistant-widget.is-collapsed .li-assistant-page-scroll {
  display: none;
}

/* --- Mobile (<=1024px): full-screen panel, no side page-scroll bar --- */
@media (max-width: 1024px) {
  body.li-assistant-open {
    width: 100vw;
    max-width: 100vw;
  }
  body.li-assistant-open .stage {
    transform: none;
    width: auto;
  }
  .li-assistant-panel {
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: calc(100vh - 44px);
  }
  .li-assistant-page-scroll {
    display: none;
  }
  .li-assistant-toggle {
    top: 5px;
    right: 10px;
    height: 34px;
    background: #fff;
    border-color: rgba(255, 255, 255, 0.72);
    color: #2f91c4;
  }
  .li-assistant-toggle-icon {
    background: rgba(47, 145, 196, 0.1);
    color: #2f91c4;
  }
  .li-assistant-intro {
    padding-left: 24px;
    padding-right: 24px;
  }
  .li-assistant-form {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@keyframes liAssistantTypingDot {
  0%, 100% { opacity: 0.38; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
@keyframes liAssistantLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes liAssistantLogoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Client charge confirm dialog - centered overlay, matches the other
   Event Details popups (blurred backdrop + rounded white card). */
.client-charge-confirm {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 42, 67, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.client-charge-confirm-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 86, 145, 0.22);
}
.client-charge-confirm-card h2 {
  margin: 0 0 10px;
  color: #2f3b4c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.client-charge-confirm-card p {
  margin: 0 0 14px;
  color: #8193a2;
  font-size: 16px;
  line-height: 1.35;
}
.client-charge-confirm-card .client-charge-confirm-total {
  color: #333;
  font-weight: 600;
}
.client-charge-confirm-card .client-charge-confirm-total span {
  color: #1457ff;
}
.client-charge-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}
.client-charge-input button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(129, 147, 162, 0.45);
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.client-charge-input button:disabled {
  opacity: 0.35;
  cursor: default;
}
.client-charge-input h2 {
  margin: 0;
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 200;
}
.client-charge-input em {
  margin-left: auto;
  color: #333;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
}
.client-charge-confirm-card > div:last-child {
  display: flex;
  gap: 12px;
  align-items: center;
}
.client-charge-confirm-card [data-client-charge-approve] {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.client-charge-confirm-card [data-client-charge-approve]:hover {
  background: var(--blue-dark);
}
.client-charge-confirm-card [data-client-charge-cancel] {
  height: 44px;
  padding: 0 18px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  background: #fff;
  color: #4f6574;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.client-charge-confirm-card [data-client-charge-cancel]:hover {
  background: #f3f7fa;
  color: var(--blue);
}

/* Upgrade Choice Popup (book/booth/engagement/video/content-creator picker) */
/*
   Upgrade Choice Popup - base
*/
.upgrade-choice-popup:not([hidden]) {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  width: min(720px, calc(100vw - 64px));
  margin: 0;
  padding: 34px 34px 76px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(75, 139, 190, 0.24);
  box-shadow:
    0 20px 0 rgba(139, 178, 205, 0.18),
    0 34px 90px rgba(23, 49, 70, 0.28);
}
.upgrade-choice-backdrop:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(15, 42, 67, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.upgrade-choice-popup h4 {
  color: #2f607d;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.11em;
  margin: 0 0 16px;
}
.upgrade-choice-popup p {
  margin: 10px 0 4px;
  color: #6b7f8f;
  font-size: 14px;
  line-height: 1.35;
}
.upgrade-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Base choice card (shared by every choice type) */
.upgrade-choice-popup .upgrade-choice-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 24px 92px 58px 22px;
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(149, 183, 207, 0.42);
  background: #f2f8fc;
  box-shadow:
    0 12px 0 rgba(129, 173, 204, 0.14),
    0 16px 30px rgba(90, 130, 160, 0.12);
  color: #31566e;
  text-align: left;
}
.upgrade-choice-popup .upgrade-choice-card::after {
  content: "add to package";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: #0428a4;
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}
.upgrade-choice-popup .upgrade-choice-card strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #31566e;
  line-height: 1.25;
}
.upgrade-choice-popup .upgrade-choice-card span {
  display: block;
  position: absolute;
  top: 18px;
  right: 18px;
  color: #4b8bbe;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
  line-height: 1;
}
.upgrade-choice-popup .upgrade-choice-card small {
  display: block;
  margin-top: 6px;
  color: #6f8798;
  font-size: 13px;
  line-height: 1.25;
}

.upgrade-choice-pro {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(149, 183, 207, 0.35);
}
.upgrade-choice-pro p {
  margin: 0 0 14px;
  color: #31566e;
  font-size: 14px;
}

/*
   Book Choice Card (album, qty-based)
*/
.upgrade-choice-popup .upgrade-choice-card.book-choice {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  min-height: 146px;
  padding: 24px 92px 56px 22px;
  background: #fbfdff;
  border-color: rgba(149, 183, 207, 0.3);
  box-shadow:
    0 8px 0 rgba(129, 173, 204, 0.08),
    0 14px 24px rgba(90, 130, 160, 0.08);
  cursor: pointer;
}
.upgrade-choice-popup .upgrade-choice-card.book-choice::after {
  content: none;
}
.upgrade-choice-popup .upgrade-choice-card.book-choice.is-selected {
  outline: 2px solid rgba(4, 40, 164, 0.24);
  background: #f7fbff;
}
.upgrade-choice-popup .upgrade-choice-card.book-choice small {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.12;
}

/*
   Booth Choice + Calendar (photo booth availability)
*/
.upgrade-choice-popup .upgrade-choice-card.booth-choice {
  background: #fbfdff;
  border-color: rgba(149, 183, 207, 0.3);
  box-shadow:
    0 8px 0 rgba(129, 173, 204, 0.08),
    0 14px 24px rgba(90, 130, 160, 0.08);
  padding: 24px 92px 58px 22px;
  min-height: 250px;
  align-content: start;
}
.upgrade-choice-popup .upgrade-choice-card.booth-choice[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.upgrade-choice-popup .upgrade-choice-card.booth-choice ul {
  margin: 10px 0 0 17px;
  padding: 0;
  color: #6f8798;
  font-size: 13px;
  line-height: 1.28;
}
.upgrade-choice-popup .upgrade-choice-card.booth-choice::after {
  content: "select";
}
.upgrade-choice-popup .upgrade-choice-card.booth-choice.is-selected {
  background: #f7fbff;
  outline: 2px solid rgba(4, 40, 164, 0.34);
}
.upgrade-choice-popup .upgrade-choice-card.booth-choice.is-selected::after {
  content: "selected";
}
.upgrade-choice-popup .upgrade-choice-card.booth-choice[disabled]::after {
  content: "check date first";
  color: #8aa0b1;
}

.upgrade-choice-popup .booth-date-check {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 8px;
  background: #fbfdff;
  border: 1px solid rgba(149, 183, 207, 0.3);
  position: relative;
  z-index: 20;
}
.upgrade-choice-popup .booth-date-row {
  display: grid;
  grid-template-columns: 290px 126px;
  gap: 10px;
  align-items: end;
}
.upgrade-choice-popup .booth-date-check label span {
  display: block;
  color: #31566e;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  margin-bottom: 7px;
}
.upgrade-choice-popup .booth-date-display {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(149, 183, 207, 0.38);
  border-radius: 6px;
  background: #fff;
  color: #31566e;
  text-align: left;
  font-size: 14px;
}
.upgrade-choice-popup .booth-check-btn {
  width: 126px;
  height: 40px;
  border-radius: 6px;
  padding: 0 9px;
  font-size: 9px;
  letter-spacing: 0.055em;
  background: #0428a4;
  color: #fff;
}
.upgrade-choice-popup .booth-availability-help,
.upgrade-choice-popup .booth-availability-status {
  margin: 12px 0 0;
  color: #6f8798;
  font-size: 14px;
  line-height: 1.35;
}
.upgrade-choice-popup .booth-availability-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.upgrade-choice-popup .booth-availability-status.is-available {
  display: block;
  padding: 10px 12px;
  background: #eef9f1;
  border: 1px solid rgba(58, 169, 86, 0.25);
}
.upgrade-choice-popup .booth-availability-status.is-available strong {
  display: block;
  margin: 0 0 5px;
  color: #2e8b46;
}
.upgrade-choice-popup .booth-availability-status.is-available p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.34;
}
.booth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(4, 40, 164, 0.18);
  border-top-color: #0428a4;
  border-radius: 50%;
  animation: booth-spin 0.8s linear infinite;
}
@keyframes booth-spin {
  to { transform: rotate(360deg); }
}

/* Floating booth calendar overlay - anchor with a `position: relative`
   ancestor (currently .booth-date-check) */
.booth-calendar {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 14px;
  top: 78px;
  z-index: 200;
  width: 252px;
  padding: 12px;
  border: 1px solid rgba(149, 183, 207, 0.32);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(90, 130, 160, 0.16);
}
.booth-calendar.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.booth-calendar-head {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 6px;
}
.booth-calendar-head strong {
  margin: 0 0 10px;
  color: #31566e;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.booth-calendar-head button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f7fbff;
  color: #0428a4;
  font-size: 20px;
}
.booth-calendar-head button:hover {
  background: #0428a4;
  color: #fff;
}
.booth-calendar-days,
.booth-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.booth-calendar-days span {
  color: #8aa0b1;
  font-size: 10px;
  text-align: center;
}
.booth-calendar-grid button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f7fbff;
  color: #31566e;
  font-size: 12px;
}
.booth-calendar-grid button:hover,
.booth-calendar-grid button.is-selected {
  background: #0428a4;
  color: #fff;
}
.booth-calendar-head button:disabled,
.booth-calendar-grid button:disabled,
.booth-calendar-grid button.is-disabled {
  opacity: 0.28;
  cursor: not-allowed;
  background: #f3f7fa;
  color: #9caebb;
}

/*
   Engagement Choice
*/
.upgrade-choice-popup .upgrade-choice-card.engagement-choice {
  background: #fbfdff;
  border-color: rgba(149, 183, 207, 0.3);
  box-shadow:
    0 8px 0 rgba(129, 173, 204, 0.08),
    0 14px 24px rgba(90, 130, 160, 0.08);
  padding: 24px 92px 58px 22px;
  min-height: 200px;
}
.upgrade-choice-popup .upgrade-choice-card.engagement-choice ul {
  margin: 10px 0 0 17px;
  padding: 0;
  color: #6f8798;
  font-size: 13px;
  line-height: 1.28;
}
.upgrade-choice-popup .upgrade-choice-card.engagement-choice::after {
  content: "select";
}
.upgrade-choice-popup .upgrade-choice-card.engagement-choice.is-selected {
  background: #f7fbff;
  outline: 2px solid rgba(4, 40, 164, 0.34);
}
.upgrade-choice-popup .upgrade-choice-card.engagement-choice.is-selected::after {
  content: "selected";
}

/*
   Storage Package Choice
*/
.upgrade-choice-popup .upgrade-choice-card.storage-choice {
  background: #fbfdff;
  border-color: rgba(149, 183, 207, 0.3);
  box-shadow:
    0 8px 0 rgba(129, 173, 204, 0.08),
    0 14px 24px rgba(90, 130, 160, 0.08);
  padding: 24px 92px 58px 22px;
  min-height: 120px;
}
.upgrade-choice-popup .upgrade-choice-card.storage-choice::after {
  content: "select";
}
.upgrade-choice-popup .upgrade-choice-card.storage-choice.is-selected {
  background: #f7fbff;
  outline: 2px solid rgba(4, 40, 164, 0.34);
}
.upgrade-choice-popup .upgrade-choice-card.storage-choice.is-selected::after {
  content: "selected";
}

/*
   Video Choice / Photography Choice
*/
.upgrade-choice-popup .video-choice-grid {
  margin-bottom: 18px;
}
.upgrade-choice-popup .video-choice,
.upgrade-choice-popup .photography-choice {
  min-height: 300px;
  padding-bottom: 88px;
}
.upgrade-choice-popup .video-choice ul,
.upgrade-choice-popup .photography-choice ul {
  margin-top: 34px;
}
.upgrade-choice-popup .video-choice .content-hours,
.upgrade-choice-popup .photography-choice .content-hours {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  margin: 0;
}
.upgrade-choice-popup .video-choice.is-dependent-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.upgrade-choice-popup .video-choice.is-dependent-disabled::after {
  content: "select one videographer first";
  color: #8aa0b1;
}
.upgrade-choice-popup .video-price {
  display: block;
  margin-top: 6px;
  color: #0428a4;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.upgrade-choice-popup .video-price small {
  display: block;
  color: #8aa0b1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: line-through;
  margin-bottom: 3px;
}
.upgrade-choice-popup .video-edit-options {
  margin: 0 0 76px;
  padding: 16px;
  border: 1px solid rgba(149, 183, 207, 0.24);
  border-radius: 18px;
  background: #fbfdff;
}
.upgrade-choice-popup .video-edit-options h5 {
  margin: 0 0 12px;
  color: #31566e;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.upgrade-choice-popup .video-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.upgrade-choice-popup .photo-retouch-grid {
  grid-template-columns: repeat(3, 1fr);
}
.upgrade-choice-popup .video-edit-card {
  min-height: 74px;
  padding: 13px 10px;
  border: 1px solid rgba(149, 183, 207, 0.3);
  border-radius: 12px;
  background: #fff;
  color: #31566e;
  text-align: left;
  cursor: pointer;
}
.upgrade-choice-popup .video-edit-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.15;
}
.upgrade-choice-popup .video-edit-card span {
  display: block;
  margin-top: 6px;
  color: #0428a4;
  font-size: 14px;
  font-weight: 700;
}
.upgrade-choice-popup .video-edit-card.is-selected {
  background: #eaf5fc;
  border-color: rgba(4, 40, 164, 0.42);
  outline: 2px solid rgba(4, 40, 164, 0.18);
}
.upgrade-choice-popup .video-edit-card.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

/*
   Content Creator Choice
*/
.upgrade-choice-popup .content-choice {
  display: block;
  width: 100%;
  min-height: 360px;
  padding: 24px 92px 88px 22px;
  position: relative;
  cursor: pointer;
  background: #fbfdff;
  border-color: rgba(149, 183, 207, 0.3);
  box-shadow:
    0 8px 0 rgba(129, 173, 204, 0.08),
    0 14px 24px rgba(90, 130, 160, 0.08);
}
.upgrade-choice-popup .content-choice.is-selected {
  background: #f7fbff;
  outline: 2px solid rgba(4, 40, 164, 0.34);
}
.upgrade-choice-popup .content-choice.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.upgrade-choice-popup .content-choice ul {
  display: block;
  margin: 52px 0 0 17px;
  padding: 0;
  color: #6f8798;
  font-size: 13px;
  line-height: 1.28;
}
.upgrade-choice-popup .content-choice:first-child ul {
  margin-top: 78px;
}
.upgrade-choice-popup .content-choice::after {
  content: "select";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: #0428a4;
  font-size: 12px;
  text-transform: lowercase;
}
.upgrade-choice-popup .content-choice.is-selected::after {
  content: "selected";
}
.upgrade-choice-popup .content-choice.is-disabled::after,
.upgrade-choice-popup .content-choice[disabled]::after {
  content: "check date first";
  color: #8aa0b1;
}
.upgrade-choice-popup .content-choice .content-hours {
  display: flex;
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  margin: 0;
}
.upgrade-choice-popup .content-choice .content-hours button {
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

.upgrade-choice-popup .content-reel-choice-options {
  margin: 26px 0 16px;
  padding: 16px;
  border: 1px solid rgba(149, 183, 207, 0.24);
  border-radius: 18px;
  background: #fbfdff;
}
.upgrade-choice-popup .content-reel-choice-options h5 {
  margin: 0 0 12px;
  color: #31566e;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.upgrade-choice-popup .content-reel-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.upgrade-choice-popup .content-reel-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 90px 13px 14px;
  border: 1px solid rgba(149, 183, 207, 0.3);
  border-radius: 12px;
  background: #fff;
  color: #31566e;
  cursor: pointer;
}
.upgrade-choice-popup .content-reel-choice-card.is-selected {
  outline: 2px solid rgba(4, 40, 164, 0.28);
  background: #eaf5fc;
}
.upgrade-choice-popup .content-reel-choice-card strong {
  font-size: 15px;
  font-weight: 600;
}
.upgrade-choice-popup .content-reel-choice-total {
  position: absolute;
  top: 13px;
  right: 14px;
  max-width: 76px;
  color: #4b8bbe;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  line-height: 1.18;
}
.upgrade-choice-popup .content-reel-choice-price {
  font-size: 13px;
  color: #6f8798;
}

/*
   Quantity Steppers
*/
.upgrade-choice-popup .book-qty {
  position: absolute;
  left: 18px;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.upgrade-choice-popup .book-qty button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid #d7e8f5;
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
}
.upgrade-choice-popup .book-qty em {
  min-width: 16px;
  text-align: center;
  font-style: normal;
  color: #31566e;
  font-weight: 600;
  font-size: 13px;
}
.upgrade-choice-popup .content-reel-choice-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.upgrade-choice-popup .content-reel-choice-qty button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(149, 183, 207, 0.5);
  background: #fff;
  color: #31566e;
  font-size: 15px;
  padding: 0;
  cursor: pointer;
}
.upgrade-choice-popup .content-reel-choice-qty em {
  min-width: 18px;
  text-align: center;
  font-style: normal;
  font-weight: 600;
  color: #31566e;
}

/*
   Submit / Cancel
*/
.upgrade-choice-popup .upgrade-choice-submit {
  position: absolute;
  right: 126px;
  bottom: 22px;
  padding: 10px 20px;
  border-radius: 6px;
  border: 0;
  background: #0428a4;
  color: white;
  font-size: 13px;
}
.upgrade-choice-popup .upgrade-choice-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.upgrade-choice-popup .upgrade-choice-cancel {
  position: absolute;
  right: 28px;
  bottom: 22px;
  padding: 9px 18px;
  border: 1px solid rgba(85, 108, 125, 0.22);
  border-radius: 6px;
  background: #fff;
  color: #556c7d;
}

/* This block is placed after the base .upgrade-choice-submit/.upgrade-choice-cancel
   rules above so it wins the cascade (same specificity, later source order). */
@media (max-width: 580px) {
  .upgrade-choice-popup:not([hidden]) {
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 20px 20px 84px;
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
    border: 0;
  }
  .upgrade-choice-popup .booth-date-row {
    grid-template-columns: 1fr;
  }
  .upgrade-choice-popup .booth-check-btn {
    width: 100%;
  }
  .upgrade-choice-popup > .booth-availability-help {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.5;
  }
  .upgrade-choice-popup .upgrade-choice-grid {
    grid-template-columns: 1fr;
  }
  .upgrade-choice-popup .content-choice-grid {
    grid-template-columns: 1fr;
  }
  .upgrade-choice-popup .content-reel-choice-grid {
    grid-template-columns: 1fr;
  }
  .upgrade-choice-popup .video-edit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Submit/cancel become a sticky footer bar pinned to the viewport
     (not to the bottom of the scrollable content), so they stay
     reachable no matter how tall the popup content gets. */
  .upgrade-choice-popup .upgrade-choice-submit,
  .upgrade-choice-popup .upgrade-choice-cancel {
    position: fixed;
    top: auto;
    bottom: 0;
    width: 50%;
    margin: 0;
    padding: 18px 12px;
    border-radius: 0;
    font-size: 13px;
    text-align: center;
    z-index: 5;
  }
  .upgrade-choice-popup .upgrade-choice-submit {
    left: 0;
    right: auto;
  }
  .upgrade-choice-popup .upgrade-choice-cancel {
    left: auto;
    right: 0;
    border: 0;
    border-top: 1px solid rgba(85, 108, 125, 0.22);
    border-left: 1px solid rgba(85, 108, 125, 0.22);
  }
}

/* Photo Booth Design Studio (embedded monogram app via iframe) */
.photo-booth-studio-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.photo-booth-studio-toolbar {
  position: sticky;
  top: 76px;
  z-index: 900;
  display: flex;
  justify-content: flex-end;
  padding: 8px 0;
}
@media (min-width: 768px) {
  .photo-booth-studio-toolbar {
    top: 80px;
  }
}
.photo-booth-studio-frame {
  display: block;
  width: 100%;
  min-height: calc(100dvh - 76px);
  border: none !important;
  outline: none !important;
  background: transparent;
}
.photo-booth-studio-save {
  display: inline-block !important;
  height: 40px !important;
  padding: 0 28px !important;
  border: none !important;
  border-radius: 6px !important;
  background: #0428a4 !important;
  color: #fff !important;
  font: 600 14px/40px Arial, Helvetica, sans-serif !important;
  box-shadow: 0 2px 8px rgba(4, 40, 164, 0.3) !important;
  cursor: pointer !important;
}
.photo-booth-studio-save:hover {
  background: #1a3fb8 !important;
}
.photo-booth-studio-save:disabled {
  opacity: 0.75 !important;
  cursor: wait !important;
}
.photo-booth-studio-save.is-saved {
  background: #2ea66a !important;
  box-shadow: 0 2px 8px rgba(46, 166, 106, 0.3) !important;
}
.photo-booth-studio-save.is-failed {
  background: #d94452 !important;
  box-shadow: 0 2px 8px rgba(217, 68, 82, 0.3) !important;
}
/* Monogram toast rendered outside the iframe: fixed bottom-center overlay */
.photo-booth-toast {
  position: fixed !important;
  bottom: 2rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2000 !important;
  background: #0428a4 !important;
  color: #fff !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font: 500 14px/1.4 Arial, Helvetica, sans-serif !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2) !important;
  pointer-events: none !important;
  animation: pbToastIn 0.3s ease, pbToastOut 0.3s ease 4s forwards !important;
}
/* On wide screens the sidebar is permanently visible (260px), so shift the
   toast right by half the sidebar to sit on the content's visual center. */
@media (min-width: 1024px) {
  body:not(.is-ipad) .photo-booth-toast {
    left: calc(50% + 130px) !important;
  }
}
@keyframes pbToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes pbToastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
