/* === REPLACE: myflask/static/dot/dot.css (2025-09-30 tidy) === */

/* === SEARCH: dot_dim_and_topbar (2025-10-09) START === */


/* === HOTFIX 2025-10-30: stable viewport gutter === */
html { scrollbar-gutter: stable both-edges; }




/* Page wrapper; we’ll put .dimmed on this when on the Grow/Dashboard view */
.ira-wrap {
  position: relative;
  min-height: calc(100vh - 56px);
}


/* Optional: subtle saturation when dimmed */
.ira-wrap.dimmed {
  filter: saturate(.9);
}

/* Top bar always sits above the dim overlay */
.dot-topbar {
  position: sticky;
  top: 0;
  z-index: 100; /* must be higher than .ira-wrap::before */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 12px;
  background: var(--dot-topbar-bg, #ffffff);
  color: var(--dot-topbar-fg, #111111);
}

.dot-topbar a { color: inherit; text-decoration: none; }
.dot-topbar .brand { font-weight: 600; letter-spacing: .2px; }
.dot-topbar .muted { color: var(--dot-topbar-muted, #6b7280); }
.small { font-size: .875rem; }
.only-desktop { display: none; }
@media (min-width: 900px) { .only-desktop { display: inline; } }

/* Mobile menu */

.dot-burger{
  display: inline-flex;         /* show it by default */
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  font-size: 26px;              /* match admin size */
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  color: #d33 !important;       /* red */
  cursor: pointer;
  margin: 0 8px 0 0;            /* space before brand */
  z-index: 6501;
}

.dot-topbar__right {
  display: flex;
  gap: 14px;
  align-items: center;
  z-index: 6500; /* sits above the fixed bar */
}


@media (max-width: 900px) {
  .dot-burger { display: inline-flex; margin-left: 0; }  /* keep left on mobile */
  .dot-topbar__right {
    position: fixed;
    right: 10px;
    top: 56px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    background: var(--dot-topbar-bg, #ffffff);
    color: var(--dot-topbar-fg, #111111);
    z-index: 110;
  }
  .dot-topbar__right.is-open { display: flex; }
}

/* Dark theme support (works with either html[data-theme="dark"] or body.dark) */
html[data-theme="dark"] .dot-topbar,
body.dark .dot-topbar {
  --dot-topbar-bg: #0f1115;
  --dot-topbar-fg: #f2f5f8;
  --dot-topbar-muted: #9aa4b2;
}

/* === SEARCH: dot_dim_and_topbar (2025-10-09) END === */

@media (min-width: 901px) {
  #dotMobileMenu {
    display: flex !important;
    position: static !important;
    opacity: 1 !important;
  }
}




/* Skip link (a11y) */
.skip-link {
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus { position:static; width:auto; height:auto; padding:4px 8px; }

/* Red Hamburger Bars  */
.dot-burger{ color:#d33 !important; }
.dot-burger:hover{ color:#a00 !important; }




/* === PATCH 2025-10-29: DOT burger parity with Admin (left, red, same size) === */
.dot-topbar { justify-content: flex-start; }        /* brand area grows from the left */
.dot-topbar__left { display: flex; align-items: center; gap: 8px; }
.dot-topbar__right { margin-left: auto; }           /* push menu cluster to the far right */



/* Optional: show on desktop too; comment this block out if you want mobile-only */
@media (min-width: 901px){
  .dot-burger{ display: inline-flex; }
}



/* Base layout */
body.dot {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  padding: 16px;
  /* match Bootstrap container widths on desktop, still responsive */
  max-width: min(92vw, 1140px);
  margin: 0 auto;
  background: #fafafa;
}
@media (min-width: 1400px){
  body.dot { max-width: 1320px; }  /* optional: Bootstrap xl+ parity */
}


.pb-xxl { padding-bottom: 120px; }
.mb-xxl { margin-bottom: 120px; }

.card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  background: #fff;
}
.center { text-align: center; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.span-2 { grid-column: 1 / -1; }
.row { display: flex; gap: 10px; align-items: center; }




/* === HOTFIX 2025-10-30: prevent min-content clamping in flex rows === */
.row > * { min-width: 0; }

/* Keep the Photo-size slider elastic in the profile card header row */
#profileCard #avatarSizeRange{
  flex: 1 1 260px;
  min-width: 220px;
  width: 100%;
}


/* Keep the Photo-size slider elastic in the profile card header row */
#profileCard #avatarSizeRange{
  flex: 1 1 260px;
  min-width: 220px;
  width: 100%;
}
#profileCard #avatarSizeVal{ white-space: nowrap; }



.flex-1 { flex:1; }
.ml-auto { margin-left:auto; }
.small { font-size:12px; }
.muted { color:#666; }
.hint { color:#666; font-size:12px; }
.divider { height:1px; background:#eee; margin:12px 0; }

label { display:block; margin-top:8px; font-weight:600; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-top: 6px;
  background: #fff;
  font: inherit;
}


button, .btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background:#fff;
  color:#111;            /* NEW: ensure contrast in any theme */
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  font: inherit;
}
.btn-primary { border-color:#111; background:#fff; color:#111; font-weight:700; }

.btn-ghost { background: transparent; }

/* Topbar */

.dot-topbar{
  position:sticky; top:0; z-index:6000;
  background:#fff; border-bottom:1px solid #eee;
  padding:10px 12px; display:flex; justify-content:space-between; align-items:center
}

/* Mobile: keep the DOT menu visible while scrolling */
@media (max-width: 900px){
  .dot-topbar{
    position: sticky;
    top: 0;
    left: 0; right: 0;
  }
  /* No spacer needed when sticky */
  .dot-topbar-spacer{ display: none; height: 0; width: 0; }
}








.dot-topbar a{ color:#111; text-decoration:none; margin:0 8px }
.dot-topbar .brand{ font-weight:800; letter-spacing:.02em }
.dot-topbar .link.danger{ border:none; background:transparent; color:#b00020; cursor:pointer }
/* Give pages with sticky topbar a touch more bottom padding */
.dot .pb-xxl{ padding-bottom:140px }



/* Switcher (dashboard tiles) */


.switch-card img{
  width:100%;
  height:auto;
  display:block;
  margin:6px auto 0;
  border-radius:12px;
}


/* Letterbox the DOT hero network image */
.switch-card .hero-network {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;      /* avoids dark gutters */
  border-radius: 10px;   /* you already have inline radius; this is just parity */
}

/* === PATCH 2025-10-25: bold CTAs (Quick ReWrite / Quick Display) === */
.tile-cta .small,
.qrw-cta .small,
.qd-cta .small { font-weight: 800 !important; }

/* === PATCH 2025-10-25: switch-card tile padding + CTA containment === */
.switch-card{
  padding: 8px;                 /* light, consistent padding around image */
  border-radius: 12px;
}
.switch-card .tile-cta{
  margin-top: 6px;
  padding: 0 4px;               /* keep CTAs visually “inside” the tile area */
  text-align: center;
}
.switcher{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 8px;               /* parity across hosts */
}

/* === PATCH 2025-10-25: keep CTAs inside the white tile === */
.switch-card{
  background: #fff;                 /* make the whole tile a white card */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;                    /* space around image + CTAs */
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  overflow: hidden;                 /* clip to rounded corners */
}

/* image stays inside the card */
.switch-card .hero-network{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;              /* your current choice */
  background: #fff;
}

/* CTAs belong visually to the same card */
.switch-card .tile-cta{
  margin-top: 8px;
  padding: 0 6px;                   /* subtle inset so they don't kiss the edge */
  text-align: center;
}

/* ensure bold label weight everywhere (parity with admin) */
.tile-cta .small,
.qrw-cta .small,
.qd-cta .small{ font-weight: 800 !important; }


/* === SEARCH: dot_dim_overlay START (2025-10-08) === */
.ira-wrap.dimmed::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  pointer-events:none;
  z-index:8; /* under modals to keep them clickable */
}
/* Optionally soften everything behind */
.ira-wrap.dimmed{
  filter:saturate(.9);
}
/* === SEARCH: dot_dim_overlay END (2025-10-08) === */

.switcher{
  max-width: 1140px;       /* matches body.dot desktop width */
  margin-left: auto;
  margin-right: auto;
}



/* Muted look for the cross-link tile (Google Reviews) on the DOT dashboard */
.switch-card--muted {
  opacity: .72;
  filter: grayscale(.35);
  transition: opacity .12s ease, filter .12s ease, transform .08s ease, box-shadow .08s ease;
}
.switch-card--muted .brand { color: #666; }

.switch-card--muted:hover {
  opacity: .86;
  filter: grayscale(.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

/* Dark theme tweaks */
body.dot.theme-dark .switch-card--muted { opacity: .68; filter: grayscale(.4); }
body.dot.theme-dark .switch-card--muted .brand { color: #9aa7bd; }



/* Avatar */
.avatar { width:96px; height:96px; border-radius:50%; object-fit:cover; border:1px solid #eee; }

/* Logos */
.logo { width:24px; height:24px; object-fit:contain; }
.logo.mega { width:64px; height:64px; object-fit:contain; }

/* Dashboard: Actions grid */
.actions-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
.action-card { border:1px solid #eee; border-radius:12px; padding:12px; background:#fff; display:flex; gap:12px; align-items:flex-start; }

/* Pastel wrappers for grouped sections */
.action-group {
  padding: 10px;
  border-radius: 12px;
  margin: 10px 0 12px;
}

/* Pick tasteful light pastels for each category */
.action-group--contact   { background: #F0F7FF; } /* blue-ish */
.action-group--social    { background: #F9F0FF; } /* purple-ish */
.action-group--messaging { background: #F0FFF7; } /* green-ish */
.action-group--reviews   { background: #FFF7F0; } /* orange-ish */
.action-group--payments  { background: #FFF0F5; } /* pink-ish */
.action-group--scheduling{ background: #F0FFFA; } /* teal-ish */
.action-group--maps      { background: #F0F5FF; } /* indigo-ish */
.action-group--developer { background: #F5F5F5; } /* neutral */




/* Toggle switch */
.toggle { position:relative; display:inline-flex; align-items:center; gap:8px; }
.toggle input { position:absolute; opacity:0; width:0; height:0; }
.toggle-ui { width:44px; height:26px; background:#d9d9d9; border-radius:13px; position:relative; transition:background .2s ease; box-shadow:inset 0 0 1px rgba(0,0,0,.2); }
.toggle-ui::after { content:""; position:absolute; top:2px; left:2px; width:22px; height:22px; background:#fff; border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:left .2s ease; }
.toggle input:checked + .toggle-ui { background:#0a66ff; }
.toggle input:checked + .toggle-ui::after { left:20px; }

/* Public layout wrapper */
.dot-public-wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px; }

/* vCard card (CENTERED variant only) */
.vcard-card {
  display: block;
  text-align: center;
  padding: 22px 20px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
  max-width: 720px;
  margin: 0 auto 14px;
}
.vcard-card__avatar { margin-bottom: 12px; }
.vcard-card__avatar img,
.vcard-card__avatar--placeholder {
  width: 112px; height: 112px; border-radius: 14px;
  object-fit: cover; border: 1px solid #eee; display: inline-block; background: #f7f7f7;
}
.vcard-card__meta { max-width: 720px; margin: 0 auto; }
.vcard-card__name { font-weight: 800; font-size: 24px; line-height: 1.15; }
.vcard-card__tagline { margin-top: 6px; color: #666; font-weight: 500; text-align: center; }
.vcard-card__title { color: #444; margin-top: 6px; font-weight: 600; }
.vcard-card__links {
  margin-top: 10px; display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center;

}
.vcard-card__links .chip { background: #fff; border: 1px solid #ddd; }

/* === INSERT 2025-10-08: plain (non-link) chips === */
.vcard-card__links .chip.is-plain {
  pointer-events: none;
  cursor: default;
  color: #333;
  background: #f8f8f8;
  border: 1px solid #e5e7eb;
}
body.dot.theme-dark .vcard-card__links .chip.is-plain {
  color: #e5e7eb;
  background: #0b1220;
  border-color: #334155;
}
/* === END INSERT === */


.vcard-card__address { margin-top: 8px; color: #555; font-size: 14px; }

/* Public actions stack (cards are vertical) */
.actions-stack { display:grid; gap:12px; margin-top:16px; }
.dot-public-wrap .actions-stack .action-card {
  display: block !important;       /* override dashboard flex */
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  margin: 0;
}
.action-card__label {
  text-align: center;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
}
.action-card__url {
  text-align: center;
  margin-top: 6px;
  word-break: break-all;
  font-size: clamp(14px, 1.8vw, 16px);
}
.dot-public-wrap .actions-stack .action-card .row {
  display:flex; justify-content:center; gap:10px; margin-top:8px;
}

/* Action logos (multi + single public) */
.action-logo {
  display: inline-block;
  width: min(30%, 140px);
  height: auto;
  object-fit: contain;
}
@media (max-width: 480px) {
  .action-logo { width: min(30vw, 140px); }
}

/* Make "Intro title" visibly smaller */
.action-card input[name^="links"][name$="[title]"] { font-size: .95rem; }

@media (max-width: 576px) {
  /* Stack the action row header neatly on phones */
  .action-card .row { flex-wrap: wrap; align-items: flex-start; gap: 6px; }
  .action-card .row > strong { width: 100%; }   /* intro label on its own line */

  /* Compose rows become 1 column; lock floats to the right edge */
  .compose-locked, .compose-unlocked { display: grid; grid-template-columns: 1fr !important; }
  .compose-lock { justify-self: end; }
}

/* Prevent horizontal overflow: long URLs/handles wrap instead of causing X-scroll */
.action-card, .action-card * { max-width: 100%; }
.action-card__url { overflow-wrap: anywhere; word-break: break-word; }


@media (max-width: 576px) {
  details.card > summary.row { flex-wrap: wrap; gap: 8px; }
  details.card > summary.row .ml-auto { margin-left: 0; width: 100%; }
}





/* Send-to rows */
.send-row { margin-top:10px; }
/* generic grid (used in some contexts); specialized override for public below */



/* === PATCH 2025-10-05: desktop spacing/alignment for Email + Phone rows === */
.send-row__grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr auto;  /* Email | Phone | Send button */
  gap: 12px;                             /* <- add breathing room */
  align-items: end;                       /* align at input baseline */
}
.send-row__grid .iti { width: 100%; }     /* allow phone widget to fill its cell */


.dot-public-wrap .actions-stack .action-card .send-row__grid { grid-template-columns: 1fr auto; }
.dot-public-wrap .actions-stack .action-card .send-row__grid .input { width: 100%; }




/* === PATCH 2025-10-18: Multi-link groups — FINAL (stack everywhere) === */
.action-group .dot-collapsible__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow: visible;
}
.action-group .action-card {
  width: 100%;
  min-width: 0;
}
/* Neutralize any legacy "has-hscroll" class just in case it’s still in markup */
.action-group.has-hscroll .dot-collapsible__body {
  display: grid !important;
  grid-template-columns: 1fr !important;
  overflow-x: visible !important;
  -webkit-overflow-scrolling: auto !important;
  scroll-snap-type: none !important;
}
.action-group.has-hscroll .action-card {
  min-width: 0 !important;
  scroll-snap-align: unset !important;
}



/* Make read-only ID fields look intentional (still copyable) */
.id-input[readonly] {
  background: #f6f6f6;
  color: #555;
  border-color: #e5e7eb;
  cursor: default;
}

/* Visually shorter username inputs on larger screens (full width on phones) */
.id-input--short { max-width: 22ch; }
@media (max-width: 576px) { .id-input--short { max-width: 100%; } }

/* Hide the “raw avatar URL” line on the dashboard */
.avatar-url-row { display: block !important; }

/* Guard: never allow page-level sideways scroll on small/medium screens */
@media (max-width: 1200px) { html, body { overflow-x: hidden; } }



/*
kills any fallback background-image (like the Sample_User_Icon) only in the header avatar, */
/* while leaving the vCard monogram/placeholder logic untouched. */
.profile-header img.avatar { background-image: none !important; }




/* Harden against long words/URLs causing horizontal overflow */
.action-card,
.action-card * { max-width: 100%; }
.action-card__url { overflow-wrap: anywhere; word-break: break-word; }

/* Small/medium screens and webviews: ensure the page itself doesn't scroll sideways */
@media (max-width: 1200px) {
  html, body { overflow-x: hidden; }
}



/* Keep single-column on smaller screens */
@media (max-width: 700px) {
  .send-row__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .dot-public-wrap .actions-stack .action-card .send-row__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .dot-public-wrap .actions-stack .action-card .send-row__grid button.btn { justify-self: end; }
}

/* Single action page */
.single-action-wrap { max-width: 720px; margin: 0 auto; padding: 40px 16px; text-align: center; }
.single-title { font-size: 26px; margin: 10px 0 2px; }
.single-sub { color:#666; margin-bottom: 14px; }
.single-logo { display:block; margin: 0 auto 12px; width: 96px; height: 96px; }
.primary-link { display:inline-block; padding: 12px 18px; border-radius: 10px; background:#0a66ff; color:#fff; text-decoration:none; }
.single-actions { margin-top: 12px; display:flex; gap:8px; justify-content:center; }

.public-login-crumb { text-align:center; margin: 28px 0 12px; color:#888; }
.public-login-crumb a { color:#888; text-decoration:none; }

/* Responsive */
@media (max-width: 900px) {
  .grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .actions-grid { grid-template-columns: 1fr; }
  .send-row__grid { grid-template-columns: 1fr; }
}



/* === [2025-10-04] Unified collapsible summary chevrons === */
details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-weight: 700;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: none; } /* retire old red triangle */
.dot-caret { margin-left: 12px; transition: transform .18s ease; color:#555; }
details[open] > summary .dot-caret { transform: rotate(180deg); }




/* Small polish */
.card.center button[type="submit"] { white-space:nowrap; }
.card.center button[type="submit"] span { position:relative; z-index:2; }

/* Utilities */


/* === INSERT: text zoom utility (2025-10-30) === */
body.dot{
  --dot-font-scale: 1;                 /* 1.0 = 100% */
  font-size: calc(16px * var(--dot-font-scale));
}

/* Optional: inputs/buttons follow, but don’t balloon past 1.3x */
body.dot input, 
body.dot select, 
body.dot textarea,
body.dot .btn{
  font-size: calc(1rem * clamp(1, var(--dot-font-scale), 1.3));
}


/* === INSERT: ensure zoom row sits above any overlays (2025-10-30) === */
.text-zoom-controls { position: relative; z-index: 9; }



/* === INSERT: copyline styles (2025-10-10) START === */
.copyline{
  display:flex; gap:10px; align-items:center;
  border:1px solid #eee; border-radius:12px;
  padding:10px 12px; background:#fff; margin:10px 0 14px;
}
.copyline__text{ flex:1; font-size:14px; color:#333; }
body.dot.theme-dark .copyline{
  background:#111827; border-color:#1f2937; color:#e5e7eb;
}
body.dot.theme-dark .copyline__text{ color:#e5e7eb; }
/* === INSERT: copyline styles (2025-10-10) END === */

.text-center { text-align: center; }
.switch-card .brand { font-weight:800; letter-spacing:.02em; margin-bottom:6px; }


.only-desktop { display: inline; }
@media (max-width: 900px) {
  .only-desktop { display: none !important; }
}


/* Make off rows look muted without disabling form submission */
input.readonly {
  background: #f6f6f6;
  color: #888;
}

/* clickable switch-card links */
.switch-card.text-decoration-none { transition: transform .08s ease, box-shadow .08s ease; }
.switch-card.text-decoration-none:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }


/* === discreet login crumb (top-right) === */
.dot-login-crumb{
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 30;
  background: rgba(255,255,255,.9);
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #374151;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.dot-login-crumb:hover{
  background:#fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}



/* === Backgrounds for Dot pages (2025-10-02, mobile-viz update) === */
/* Apply to ANY page that adds .bg-oui to <body> */
body.bg-oui {
  background-image: url("/static/images/ouimobilebackground.webp");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

/* Tablet/Desktop: swap in the wider art and recenter */
@media (min-width: 768px) {
  body.bg-oui {
    background-image: url("/static/images/ouidesktopbackground.webp");
    background-position: center center;
  }
}
/* Readability overlay — value comes from --oui-bg-overlay (with gradient fallback) */
body.bg-oui::before {
  content: "";
  position: fixed; inset: 0;
  background: var(--oui-bg-overlay,
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.55) 100%)
  );
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 768px) {
  body.bg-oui::before {
    background: var(--oui-bg-overlay,
      linear-gradient(180deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.82) 100%)
    );
  }
}




/* Make content sit above overlay */
body.bg-oui .dot-public-wrap,
body.bg-oui .switcher,
body.bg-oui .card,
body.bg-oui .vcard-card,
body.bg-oui .actions-stack,
body.bg-oui .dot-topbar,
body.bg-oui .public-login-crumb,
body.bg-oui .dot-login-crumb { position: relative; z-index: 1; }
/* Lift the refer-a-pal content above the overlay */
body.bg-oui .ira-wrap,
body.bg-oui .dot-footer-cta,
body.bg-oui .ira-lead,
body.bg-oui .ira-form { position: relative; z-index: 1; }


/* Ensure the nav popover can be shown on any page */
.dot-topbar__right.is-open { display: flex !important; }




/* Edge space on small screens so background is actually visible */
@media (max-width: 600px) {
  .dot-public-wrap {
    width: 90vw;           /* creates visible side gutters */
    max-width: 820px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Stack small utility */
.row.stack-sm { display:flex; gap:10px; align-items:end; }
@media (max-width: 480px) {
  .row.stack-sm { flex-wrap: wrap; }
  .row.stack-sm > * { width:100%; }
  .row.stack-sm button[type="submit"] { width:100%; }
}



.dot-loading {
  position: fixed; inset:0; background: rgba(255,255,255,.6);
  display:none; align-items:center; justify-content:center; z-index:9999;
}
.dot-loading.show { display:flex; }
.dot-spinner {
  width:36px; height:36px; border:4px solid #ddd; border-top-color:#e11;
  border-radius:50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }



/* === PATCH 2025-10-07: compose lockable inputs — larger, labeled lock === */
.compose {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}



.compose-locked,
.compose-unlocked {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto; /* prefix | input | lock */
  align-items: center;
  gap: 8px;
}

/* Desktop: long prefixes don’t push the lock off-screen */
.compose-locked .compose-prefix {
  max-width: 100%;
  white-space: nowrap;              /* single line on desktop */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ensure the input can shrink */
.compose-locked .id-input { min-width: 0; }



/* Phone: stack prefix, then ID, then lock; let prefix wrap */
@media (max-width: 576px) {
  .compose-locked,
  .compose-unlocked {
    grid-template-columns: 1fr;
    grid-template-areas:
      "prefix"
      "input"
      "lock";
  }

  .compose-locked .compose-prefix {   /* ← fixed */
    grid-area: prefix;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .compose-locked .id-input {
    grid-area: input;
    width: auto;
    justify-self: start;
    max-width: 18ch; /* “a little smaller” on phones */
  }

  .compose-locked .compose-lock {
    grid-area: lock;
    justify-self: end;
  }
}








/* Username/handle inputs are modest on desktop too */
.id-input--short { max-width: 22ch; }

/* Read-only state looks intentional (still copyable) */
.id-input[readonly] {
  background: #f6f6f6;
  color: #555;
  border-color: #e5e7eb;
  cursor: default;
}





/* Big, high-contrast lock button with a text label */
.compose .compose-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 18px;    /* larger icon */
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.compose .compose-lock::after {
  content: attr(title);            /* shows “Lock” / “Unlock” */
  font-size: 13px;
  font-weight: 600;
  margin-left: 4px;
}
.compose .compose-lock:focus-visible {
  outline: 2px solid #8ab4f8;
  outline-offset: 3px;
  border-radius: 8px;
}





/* Larger tap target on touch screens */
@media (pointer: coarse) {
  .compose .compose-lock {
    padding: 10px 14px;
    font-size: 20px;
  }
}





/* Dim a multi-link row when toggled OFF */
.action-card.is-off { opacity: .6; }

/* === [2025-10-04] DOT pastel backgrounds for .action-group markup === */
body.dot .action-group { border-radius: 12px; padding: 12px; margin: 12px 0; }

body.dot .action-group--contact    { background: #f6fafe; }  /* light blue   */
body.dot .action-group--social     { background: #fff6fb; }  /* light pink   */
body.dot .action-group--messaging  { background: #f7fff6; }  /* light green  */
body.dot .action-group--reviews    { background: #fffaf2; }  /* light orange */
body.dot .action-group--payments   { background: #f5f9ff; }  /* light steel  */
body.dot .action-group--scheduling { background: #f8f6ff; }  /* light purple */
body.dot .action-group--maps       { background: #f2fffb; }  /* light teal   */
body.dot .action-group--developer  { background: #f9f9f9; }  /* light gray   */
body.dot .action-group--wristband { background: #fff6fb; } /* light pinkish */












/* === PATCH 2025-11-17: multilink_group_backgrounds_v2 START === */
/* Base: keep pastel card colors from earlier definitions */
body.dot .action-group--social,
body.dot .action-group--messaging,
body.dot .action-group--reviews,
body.dot .action-group--payments,
body.dot .action-group--scheduling,
body.dot .action-group--maps,
body.dot .action-group--music,
body.dot .action-group--professional {
  position: relative;
  overflow: hidden;                 /* keep corners clean */
  background-repeat: no-repeat;
  background-position: right 18px top 18px;
  background-size: 180px auto;      /* desktop “sticker” size */
}

/* Make sure inner content stays above the art */
body.dot .action-group--social > *,
body.dot .action-group--messaging > *,
body.dot .action-group--reviews > *,
body.dot .action-group--payments > *,
body.dot .action-group--scheduling > *,
body.dot .action-group--maps > *,
body.dot .action-group--music > *,
body.dot .action-group--professional > * {
  position: relative;
  z-index: 1;
}

/* Individual images (Multi-link Display groups) */
body.dot .action-group--social {
  background-image: url("/static/images/social_bk.webp");
}

body.dot .action-group--messaging {
  background-image: url("/static/images/messaging_bk.webp");
}

body.dot .action-group--reviews {
  background-image: url("/static/images/reviews_bk.webp");
}

body.dot .action-group--payments {
  background-image: url("/static/images/payments_bk.webp");
}

body.dot .action-group--scheduling {
  background-image: url("/static/images/scheduling_bk.webp");
}

body.dot .action-group--maps {
  background-image: url("/static/images/mapsndlocations_bk.webp");
}

body.dot .action-group--music {
  background-image: url("/static/images/music_bk.webp");
}

body.dot .action-group--professional {
  background-image: url("/static/images/professional_bk.webp");
}

/* RESPONSIVE TUNING */

/* Tablets / small laptops: shrink the stickers a bit */
@media (max-width: 900px) {
  body.dot .action-group--social,
  body.dot .action-group--messaging,
  body.dot .action-group--reviews,
  body.dot .action-group--payments,
  body.dot .action-group--scheduling,
  body.dot .action-group--maps,
  body.dot .action-group--music,
  body.dot .action-group--professional {
    background-size: 140px auto;
    background-position: right 14px top 14px;
  }
}

/* Phones: smaller art, center top, add a little extra top padding so it doesn’t fight with the summary row */
@media (max-width: 600px) {
  body.dot .action-group--social,
  body.dot .action-group--messaging,
  body.dot .action-group--reviews,
  body.dot .action-group--payments,
  body.dot .action-group--scheduling,
  body.dot .action-group--maps,
  body.dot .action-group--music,
  body.dot .action-group--professional {
    background-size: 96px auto;
    background-position: center 10px;
    padding-top: 32px;   /* give the little badge room above the fields */
  }
}
/* Contact & Developer stay as simple pastel/neutral cards */
/* === PATCH 2025-11-17: multilink_group_backgrounds_v2 END === */




/* Ensure promo images/text never look washed out */
.dot-footer-cta img { opacity: 1 !important; background:#fff; } /* forces solid */
.ira-hero img { background:#fff; } /* same for Refer-a-Pal hero */



/* Kill legacy red disclosure triangles (old theme override) */
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { content: ""; }
details > summary::before { content: none !important; }
summary { list-style: none; display:flex; align-items:center; justify-content:space-between; }

/* Caret icon behavior */
.dot-caret { margin-left: 10px; transition: transform .18s ease; color: #666; }
details[open] > summary .dot-caret { transform: rotate(180deg); }

/* Share form responsive grid */
.share-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

/* Mobile stack */

  .only-desktop { display: none !important; }
  .share-form { grid-template-columns: 1fr; }




.share-form .share-field { display: flex; flex-direction: column; gap: 6px; }
.share-form .share-field span { font-size: 14px; color: var(--muted, #666); }


/* Red-outlined submit cards */
.dot-submit-card {
  border: 2px solid #d33;
  border-radius: 12px;
  padding: 12px;
  background: #fff;           /* ensure contrast on dark/colored sections */
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.dot-submit-card .btn,
.card.center .btn,
.card.center button {
  font-weight: 600;
  padding: 10px 18px;
}



/* Footer CTA - random promo */
.dot-footer-cta {
  margin: 22px auto 60px;
  text-align: center;
  max-width: 820px;
}
.dot-footer-cta .promo-wrap {
  display: grid;
  justify-items: center;
  gap: 12px; /* slightly larger gap */
}
.dot-footer-cta img {
  width: 100%;
  height: auto;
  max-height: 25vh;    /* ~25% of screen height */
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

/* Stronger contrast for promo text */
.dot-footer-cta .promo-text {
  font-size: clamp(15px, 2.6vw, 20px);
  color: #111;                /* darker text */
  line-height: 1.45;
  background: rgba(255,255,255,.92); /* subtle card */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  display: inline-block;
  max-width: 820px;
}

/* Desktop: align email + intl-tel-input heights */
@media (min-width: 681px) {
  .ira-grid input[type="email"],
  .ira-grid .iti input[type="tel"],
  .ira-grid .iti__tel-input {
    height: 44px;
  }
  .ira-grid .iti { width: 100%; display: block; }
}

/* === PATCH 2025-10-05: refer/share row – desktop alignment + spacing === */
.ira-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto; /* Email | Phone | Submit */
  gap: 12px;                           /* leave a visible gap */
  align-items: end;                     /* bottom-align inputs and button */
}

/* Optional: Refer-a-Pal form layout */
.ira-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 700px) { .ira-grid { grid-template-columns: 1fr; } }

/* Mobile: stack naturally */
@media (max-width: 680px) {
  .ira-grid { grid-template-columns: 1fr; }
}

/* Uniform inner wrappers and full-width phone input (intl-tel-input) */
.ira-grid .share-field { display: flex; flex-direction: column; gap: 6px; }
.ira-grid .iti { width: 100%; display: block; }





/* === PATCH 2025-10-05: universal spacing for any "send" rows === */
.send-row__grid { gap: 12px; } /* was 8px; gives breathing room so fields do not touch */
/* === END PATCH === */


/* === PATCH 2025-10-05: /h hero section === */
.h-wrap { max-width: 900px; margin: 0 auto; padding: 28px 16px; }
.h-hero { text-align: center; margin: 8px auto 16px; }
.h-hero img { width: 100%; height: auto; max-width: 820px; border-radius: 14px; background:#fff; }
.h-title { font-weight: 900; font-size: clamp(26px, 4.2vw, 40px); margin: 8px 0 6px; letter-spacing: .2px; }
.h-sub { color:#444; font-size: clamp(14px, 2.2vw, 18px); margin: 6px auto 14px; max-width: 720px; }
.h-ctas { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin: 8px 0 2px; }
.h-cta { padding: 12px 18px; border-radius: 10px; border:1px solid #111; background:#fff; color:#111; text-decoration:none; font-weight:700; }
.h-cta.primary { background:#0a66ff; color:#fff; border-color:#0a66ff; }
/* === END PATCH === */

/* === PATCH 2025-10-05: align & space email/phone inputs on desktop === */
@media (min-width: 900px) {
  .send-row__grid {
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;                 /* more breathing room */
    align-items: end;
  }
  
  /* Match heights so baselines align nicely */
  .send-row__grid input[type="email"],
  .send-row__grid .iti input[type="tel"],
  .send-row__grid .iti__tel-input {
    height: 44px;
}

  /* If your refer-a-pal form uses .share-form */
  .share-form {
    grid-template-columns: 1fr 1fr;
    gap: 12px;                 /* leave visible gap */
    align-items: end;
  }
  .share-form input[type="email"],
  .share-form input[type="tel"] {
    height: 44px;
  }
}
/* === END PATCH === */

/* SEARCH: ouisnap_logo_size */
.accordion-button .ouisnap-logo { height: 1.6rem; width: auto; margin-right: .5rem; }
@media (min-width: 992px) { .accordion-button .ouisnap-logo { height: 1.8rem; } }


/* === PATCH 2025-10-06: DOT caret visibility (begin) === */
details > summary::-webkit-details-marker { display: none; }

.dot .dot-caret {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  flex-shrink: 0;
  color: #2b2f36;              /* darker for contrast */
  opacity: .95;
  transition: transform .20s ease, color .20s ease, opacity .20s ease;
  filter: drop-shadow(0 0 0.5px rgba(0,0,0,.25));
}
.dot .dot-caret path {
  stroke: currentColor;         /* ensure inherits .dot-caret color */
  stroke-width: 2.4;            /* bolder line */
}

details[open] > summary .dot-caret { transform: rotate(180deg); }
summary:hover .dot-caret,
.dot-collapsible__summary:hover .dot-caret { color: #111; opacity: 1; }

summary { cursor: pointer; }
summary:focus-visible {
  outline: 2px solid #8ab4f8;   /* keyboard-visible focus ring */
  outline-offset: 3px;
  border-radius: 6px;
}

@media (pointer: coarse) {
  .dot .dot-caret { width: 24px; height: 24px; }
}
/* === PATCH 2025-10-06: DOT caret visibility (end) === */

/* === PATCH 2025-10-06: dashboard bottom breathing room === */
.dot.pb-xxl { padding-bottom: 100px; }    /* a little more than 120px */
@media (max-width: 600px) {
  .dot.pb-xxl { padding-bottom: 100px; }  /* extra on small screens */
}

/* === PATCH 2025-10-29: DOT burger unified (parity with main) === */
.dot-burger{
  display: inline-flex;                 /* visible on all widths */
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  font-size: 28px;                      /* ↑ match main dashboard size */
  line-height: 1;
  padding: 6px 10px;                    /* a touch wider to match hit area */
  border-radius: 6px;
  color: #d33 !important;               /* red */
  cursor: pointer;
  margin: 0 10px 0 0;                   /* space before brand */
  z-index: 6501;
}


@media (max-width: 900px) {
  .dot-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 6000; }
  .dot-burger { display: inline-flex; margin-left: 0; }   /* keep left */
  .dot-topbar__right {
    display: none;
    position: fixed;
    right: 8px;
    top: 56px;
    background: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    z-index: 6500;
    min-width: 220px;
  }
  .dot-topbar__right.is-open { display: block; }
  .dot-topbar__right a,
  .dot-topbar__right button.link {
    display: block;
    padding: 10px 10px;
    line-height: 1.25;
  }
}








/* === HAMBURGER – single source of truth === */

/* Keep the red submit card compact inside the share form grid */
.share-form .dot-submit-card {
  grid-column: 1 / -1;      /* stay on its own row */
  justify-self: center;     /* center horizontally in the grid */
  display: inline-block;    /* shrink to fit its contents */
}

/* === FIX 2025-10-06: ensure hamburger menu overlays everything === */

/* === PATCH 2025-10-08: force SweetAlert above sticky UI === */
.swal2-container { z-index: 7000 !important; }
.swal2-popup     { z-index: 7001 !important; }


body.bg-oui .dot-topbar {
  position: sticky !important;   /* re-enable sticky; override overlay block */
  top: 0 !important;
  z-index: 5000 !important;      /* above cards/switchers etc. */
  overflow: visible;              /* make sure the dropdown isn't clipped */
}

.dot-topbar__right {
  z-index: 6000 !important;       /* dropdown itself above the bar */
}

/* On small screens the dropdown panel is absolutely positioned off the bar. */
@media (max-width: 900px) {
  .dot-topbar__right {
    position: absolute;
    right: 8px;
    top: calc(100% + 8px);
  }
}

input.readonly { background:#f6f6f6; color:#888; }

/* Ensure SweetAlert toasts overlay sticky bars & dropdowns */
.swal2-container { z-index: 7000 !important; }
.swal2-popup     { z-index: 7001 !important; }


/* ===========================
   DOT Dark Theme (cookie-driven)
   =========================== */
body.dot.theme-dark {
  background: #0f172a;
  color: #e5e7eb;
}
body.dot.theme-dark .card,
body.dot.theme-dark .vcard-card,
body.dot.theme-dark .action-card,
body.dot.theme-dark .switch-card,
body.dot.theme-dark .dot-submit-card {
  background: #111827;
  color: #e5e7eb;
  border-color: #1f2937;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
body.dot.theme-dark input,
body.dot.theme-dark select,
body.dot.theme-dark textarea {
  background: #0b1220;
  color: #e5e7eb;
  border-color: #334155;
}
body.dot.theme-dark input.readonly {
  background: #0a0f1a;
  color: #9aa7bd;
}
body.dot.theme-dark .btn {
  background: #0b1220;
  color: #e5e7eb;
  border-color: #334155;
}
body.dot.theme-dark .btn-primary {
  background: #0a66ff;
  border-color: #0a66ff;
  color: #fff;
}
body.dot.theme-dark .dot-topbar {
  background: #0b1220;
  border-bottom-color: #1f2937;
}
body.dot.theme-dark .action-group { filter: brightness(.95) saturate(1.02); }
body.dot.theme-dark .dot-footer-cta .promo-text { background: rgba(17,24,39,.9); border-color: #1f2937; color: #f1f5f9; }

/* Toggle switch contrast */
body.dot.theme-dark .toggle-ui { background:#334155; }
body.dot.theme-dark .toggle input:checked + .toggle-ui { background:#0a66ff; }

/* Ensure SweetAlert text contrasts */
body.dot.theme-dark .swal2-popup { background:#0b1220; color:#e5e7eb; }


/* Plain (non-link) chips for vCard */
.vcard-card__links .chip.is-plain {
  pointer-events: none;
  cursor: default;
  color: #333;
  background: #f8f8f8;
  border: 1px solid #e5e7eb;
}
body.dot.theme-dark .vcard-card__links .chip.is-plain {
  color: #e5e7eb;
  background: #0b1220;
  border-color: #334155;
}


/* Make plain chips visually match linked chips’ weight */
.vcard-card__links .chip.is-plain { font-weight: 600; }



/* === INSERT: dot_admin_strip_styles (2025-10-09) START === */
.dot-admin-strip{
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: var(--dot-topbar-bg, #ffffff);
  color: var(--dot-topbar-fg, #111111);
}
.dot-admin-strip__line{ font-size: .9rem; line-height: 1.35; }
.dot-admin-strip .muted{ color: var(--dot-topbar-muted, #6b7280); }
.dot-admin-strip a{ color: inherit; text-decoration: underline dotted; }
.dot-admin-strip .rb-badge{
  display:inline-block;
  margin-left:8px;
  padding:2px 6px;
  border-radius:6px;
  font-size:.75rem;
  background:#e1f2fb;
  color:#0b5cab;
}
html[data-theme="dark"] .dot-admin-strip,
body.dark .dot-admin-strip{
  border-color:#1f2430;
}
/* === INSERT: dot_admin_strip_styles (2025-10-09) END === */

/* === [2025-10-12] INSERT: analytics table responsive + mobile cards START === */

.analytics-table { table-layout: fixed; width: 100%; }
.analytics-table th, .analytics-table td {
  word-break: break-word;
  white-space: normal;
}

/* Hide IP by default; reveal only when toggled */
.analytics-recent .col-ip { display: none; }
.analytics-recent.show-ips .col-ip { display: table-cell; }

/* Mobile: use cards, hide table */
@media (max-width: 700px) {
  .analytics-recent { display: none; }
  .analytics-mobile-list { display: grid; gap: 12px; }
}

/* Desktop: show table, hide cards */
@media (min-width: 701px) {
  .analytics-mobile-list { display: none; }
}

.analytics-mobile-list .aml-card {
  border: 1px solid #eee; border-radius: 12px; background: #fff;
  padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
body.dot.theme-dark .analytics-mobile-list .aml-card {
  background: #111827; border-color: #1f2937; box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.analytics-mobile-list .aml-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 10px;
  align-items: start; padding: 4px 0; border-bottom: 1px dashed #eee;
}
.analytics-mobile-list .aml-row:last-child { border-bottom: 0; }
.analytics-mobile-list .aml-label { font-weight: 700; color: #444; }
.analytics-mobile-list .aml-val   { color: #111; }
body.dot.theme-dark .analytics-mobile-list .aml-label { color: #c7d2fe; }
body.dot.theme-dark .analytics-mobile-list .aml-val   { color: #e5e7eb; }

.analytics-mobile-list .aml-actions {
  display: flex; gap: 10px; margin-top: 10px; justify-content: flex-end;
}

#btnToggleIPs { padding: 6px 10px; font-size: 12px; }
/* === [2025-10-12] INSERT: analytics table responsive + mobile cards END === */

/* === [2025-10-12] INSERT: analytics IP toggle START === */
.analytics-table { table-layout: fixed; width: 100%; }
.analytics-table th, .analytics-table td { word-break: break-word; white-space: normal; }

/* Hide IP col by default; reveal when toggled on the wrapper */
.analytics-recent .col-ip { display: none; }
.analytics-recent.show-ips .col-ip { display: table-cell; }
/* === [2025-10-12] INSERT: analytics IP toggle END === */

/* === [2025-10-12] INSERT: analytics mobile cards START === */
@media (max-width: 700px) {
  .analytics-recent { display: none; }
  .analytics-mobile-list { display: grid; gap: 12px; }
}
@media (min-width: 701px) {
  .analytics-mobile-list { display: none; }
}
/* compact styles */
.analytics-mobile-list .aml-card {
  border: 1px solid #eee; border-radius: 12px; background: #fff;
  padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.analytics-mobile-list .aml-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 10px;
  align-items: start; padding: 4px 0; border-bottom: 1px dashed #eee;
}
.analytics-mobile-list .aml-row:last-child { border-bottom: 0; }
.analytics-mobile-list .aml-label { font-weight: 700; color: #444; }
.analytics-mobile-list .aml-val { color: #111; }
/* === [2025-10-12] INSERT: analytics mobile cards END === */

  .text-nowrap { white-space: nowrap; }


  /* === [2025-10-13] INSERT: stop "Note" wrapping START === */
.analytics-table th.col-note,
.analytics-table td.col-note {
  white-space: nowrap;            /* prevent Not/e */
  word-break: keep-all;           /* stronger than normal */
}

.analytics-table th.col-note {
  width: 1%;                      /* keep the header compact */
}

.note-chip {                      /* keep the chip on one line */
  white-space: nowrap;
}

/* If your table still forces breaks under severe shrink, allow the ROW to wrap but keep header text intact */
@media (max-width: 900px) {
  .analytics-table td.col-note .note-cell {
    white-space: normal;          /* allow button to drop under chip on smaller widths */
  }
}
/* === [2025-10-13] INSERT: stop "Note" wrapping END === */



/* Comfortable vertical rhythm on the dashboard */
.dot .card { margin-bottom: 14px; }




/* === [2025-10-24] Contacts responsive fixes START === */
.contacts-wrap { max-width: 960px; margin: 0 auto; padding: 8px; }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .contacts-grid { grid-template-columns: 1fr; }
}

/* Prevent overflow/truncation inside grid/flex items */
.contacts-grid > * { min-width: 0; }

/* Forms stack cleanly on phones */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* If you show tables of contacts, keep them scrollable, not clipped */
.contacts-table { display: block; width: 100%; overflow-x: auto; }
/* === [2025-10-24] Contacts responsive fixes END === */



/* contacts list responsive */
@media (max-width: 480px){
  .contacts-grid,
  .contacts-toolbar,
  .contacts-row{
    display:block !important;
    width:100% !important;
  }
  .contacts-row > *{
    display:block !important;
    width:100% !important;
    margin:6px 0;
    overflow-wrap:anywhere;
  }
}


/* Public CRM inputs & stacking improvements (2025-10-26) */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.grid-2 .span-2 { grid-column:1 / -1; }
@media (max-width:480px){ .grid-2 { grid-template-columns: 1fr; } }

/* Narrowly scope stronger responsiveness + spacing to CRM only */
#crmPublicForm .crm-grid {
  /* Auto-fit columns that are at least 260px wide; stack when space is tight
     (works even on desktop when the card gets narrow) */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 12px !important;              /* a bit more breathing room so fields don't touch */
}

#crmPublicForm label {
  display: flex;
  flex-direction: column;
  gap: 6px;                           /* inner spacing between caption and input */
  min-width: 0;                       /* prevent label content from forcing overflow */
}

#crmPublicForm input[type="text"],
#crmPublicForm input[type="file"],
#crmPublicForm textarea,
#crmPublicForm select {
  width: 100%;
  box-sizing: border-box;             /* avoid any overlap from padding/border */
}

/* === CRM two-column (image | fields) — responsive (2025-10-31) === */
#crmPublicForm .crm-two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;   /* image | fields */
  gap: 12px;
  align-items: start;
}
#crmPublicForm .crm-col-img{
  display: flex;
  justify-content: center;
}
#crmPublicForm .crm-col-fields{
  display: grid;
  gap: 10px;
}

/* Image sizing: small and neat on desktop, full-width on small phones */
.crm-video-img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100px;              /* ~60% smaller look on larger screens */
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 700px){
  #crmPublicForm .crm-two-col{ grid-template-columns: 1fr; } /* stack */
  /* keep the image small on phones */
  .crm-video-img{ max-width: min(60vw, 120px); }
}

@media (max-width: 360px){
  .crm-video-img{ max-width: 100px; }
}





/* Media label icon */
.crm-media-label { display: inline-flex; align-items: center; gap: 6px; }
.crm-media-icon  { width: 14px; height: 14px; flex: 0 0 auto; fill: currentColor; opacity: .85; }

/* Phone-size refinement: keep the submit button neatly separated */
@media (max-width: 480px){
  #crmPublicForm .span-2 { margin-top: 2px; }
}


/* backbar styling */
.backbar {
  display:flex; gap:10px; justify-content:center; margin:16px 0;
}
.btn-black {
  display:inline-block; background:#111; color:#fff; padding:8px 14px; border-radius:8px; text-decoration:none;
}
.btn-black:hover { opacity:0.9; }

/* === PATCH 2025-10-25: Reviews (muted) tile – match hero-network sizing === */
.switch-card--muted img{
  width:100% !important;
  height:264px !important;    /* same visual rhythm as .hero-network */
  max-height:30vh !important;
  object-fit:contain !important;
  background:#fff;
  border-radius:10px;
}

/* Safety hook: force no clamp on Reviews image */
.hero-reviews{
  max-width:none !important;
  width:100% !important;
}


/* === INSERT: floating save dock (2025-10-27) START === */
.save-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  transform: translateY(120%);
  transition: transform .22s ease, opacity .2s ease, visibility .2s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 4100; /* above cards, below SweetAlert */
  pointer-events: none; /* dock ignores clicks when hidden */
}

.save-dock.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Center the dock content with same max-width as body.dot */
.save-dock__inner {
  max-width: min(92vw, 1140px);
  margin: 0 auto;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
}

/* Glassy card look */
.save-dock__inner {
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  background: color-mix(in srgb, #ffffff 78%, transparent);
  border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -8px 28px rgba(0,0,0,.10);
}

/* Big friendly button */
.save-dock__btn {
  min-width: 140px;
  font-weight: 800;
  border-color: #111;
}

/* Mobile-first adjustments: turn into a compact “pill” on small screens */
@media (max-width: 560px) {
  .save-dock__inner {
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  }
  .save-dock__btn {
    width: 100%;
    max-width: 440px;
  }
}

/* Ultra-compact for very narrow devices */
@media (max-width: 360px) {
  .save-dock__btn {
    min-width: 0;
    width: 100%;
  }
}
/* === INSERT: floating save dock (2025-10-27) END === */


/* Subtle disabled state while fetching another avatar */
button.is-loading { opacity: .6; pointer-events: none; }



/* === PATCH 2025-10-29C: Hamburger only on mobile/tablet (<900px) === */
.dot-burger { display: none !important; }
@media (max-width: 900px){ .dot-burger { display: inline-flex !important; } }
@media (min-width: 901px){ .dot-burger { display: none !important; } }


/* Keep the topbar sticky on all widths (avoid height jumps that toggle the scrollbar). */
@media (max-width: 900px){
  .dot-topbar { position: sticky !important; top: 0 !important; }
  .dot-topbar-spacer { display: none !important; }
}

/* content-visibility:auto can "blink" large groups while resizing; disable it under 1200px. */
@supports (content-visibility: auto){
  @media (max-width: 1200px){
    #multiBlock .dot-collapsible__body{
      content-visibility: visible !important;
      contain-intrinsic-size: auto !important;
    }
  }
}


/* === DOT: avatarSuggest layout — unified breakpoints (2025-10-30) === */
/* Phones (<=575px): you already stack via existing rules. */

/* Stack 576–710 */
@media (min-width:576px) and (max-width:710px){
  #avatarSuggest .row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px 10px;
    align-items: stretch;
  }
  #avatarSuggest .row > *{ min-width: 0; }
  #avatarSuggest .btn{ width: 100%; white-space: normal; }
  #avatarSuggest .small{ white-space: normal; }
}

/* Leave 711–731 as-is (no override) */

/* Stack 732–1164 */
@media (min-width:732px) and (max-width:1164px){
  #avatarSuggest .row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px 10px;
    align-items: stretch;
  }
  #avatarSuggest .row > *{ min-width: 0; }
  #avatarSuggest .btn{ width: 100%; white-space: normal; }
  #avatarSuggest .small{ white-space: normal; }
}

/* Wide desktop >=1165: clean 3-column grid */
@media (min-width:1165px){
  #avatarSuggest .row{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 8px 10px;
    align-items: center;
  }
  #avatarSuggest .row > * { min-width: 0; }
  #avatarSuggest .btn { width: 100%; white-space: normal; }
  #avatarSuggest .small { white-space: normal; }
  #avatarSuggest .avatar.thumb{ flex: 0 0 auto; }
  #avatarSuggest .flex-1{ flex: 1 1 auto; min-width: 260px; }
}


/* === INSERT: avatarSuggest button layout for wide screens (2025-10-30) === */
@media (min-width:1165px){
  #avatarSuggest .row{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 8px 10px;
    align-items: center;
  }
  #avatarSuggest .row > * { min-width: 0; }
  #avatarSuggest .btn { width: 100%; white-space: normal; }
  #avatarSuggest .small { white-space: normal; }
  #avatarSuggest .avatar.thumb{ flex: 0 0 auto; }
  #avatarSuggest .flex-1{ flex: 1 1 auto; min-width: 260px; }
}

/* === STACK 576–710 === */
@media (min-width:576px) and (max-width:710px){
  #avatarSuggest .row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
    align-items: stretch;
  }
  #avatarSuggest .row > *{ min-width: 0; }
  #avatarSuggest .btn{ width: 100%; white-space: normal; }
  #avatarSuggest .small{ white-space: normal; }
}

/* === STACK ≥732 (and up, including desktop) === */
@media (min-width:732px){
  #avatarSuggest .row{
    display: grid !important;
    grid-template-columns: 1fr !important;  /* force single column */
    gap: 8px;
    align-items: stretch;
  }
  #avatarSuggest .row > *{ min-width: 0; }
  #avatarSuggest .btn{ width: 100%; white-space: normal; }
  #avatarSuggest .small{ white-space: normal; }
}







/* Keep viewport width stable when vertical scrollbar toggles. */
html { scrollbar-gutter: stable both-edges; }
/* Follow --dot-font-scale */
body.dot .tile-cta,
body.dot .tile-cta * { font-size: calc(1rem * var(--dot-font-scale)); }

body.dot details > summary,
body.dot details > summary * { font-size: calc(1rem * var(--dot-font-scale)); }

body.dot #photoQrControls,
body.dot #avatarSuggest,
body.dot #identityFields { font-size: calc(1rem * var(--dot-font-scale)); }

body.dot .small,
body.dot .hint,
body.dot .muted { font-size: calc(0.875rem * var(--dot-font-scale)); }



/* === INSERT: avatarSuggest vertical stack 576–710 (2025-10-30) === */
@media (min-width:576px) and (max-width:710px){
  #avatarSuggest .row{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }
  #avatarSuggest .row > *{ min-width: 0; }
  #avatarSuggest .btn{ width: 100%; white-space: normal; }
  #avatarSuggest .small{ white-space: normal; }
}

/* === INSERT: avatarSuggest vertical stack 732–1164 (2025-10-30) === */
@media (min-width:732px) and (max-width:1164px){
  #avatarSuggest .row{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }
  #avatarSuggest .row > *{ min-width: 0; }
  #avatarSuggest .btn{ width: 100%; white-space: normal; }
  #avatarSuggest .small{ white-space: normal; }
}


/* TEMP DEBUG: visualize how the slider row flexes */
/* #profileCard .row { outline: 1px dashed rgba(255,0,0,.25); } */
/* #profileCard .row > * { outline: 1px dashed rgba(0,128,255,.25); } */


/* === INSERT: compose-warn-trim (2025-11-08) === */
.compose-warn-trim { font-size: 12px; color: #b45309; }


/* Mobile-first responsive cards for Contacts */
.contacts-table { width: 100%; border-collapse: collapse; }

@media (max-width: 680px){
  .contacts-table thead { display: none; }

  .contacts-table tbody { display: block; }
.contacts-table tr {
  position: relative;    
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
}


  /* Put the bulk checkbox in the top-right of each card */
  .contacts-table .col-bulk {
    position: absolute;
    right: 14px;
    margin-top: -2px;
    width: auto;
    text-align: right;
  }

  .contacts-table td {
    display: grid;
    grid-template-columns: 110px 1fr;   /* label | value */
    gap: 8px;
    align-items: start;
    padding: 6px 0;
    border-bottom: none;
    /* remove table look */
  }

  .contacts-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #444;
  }

  /* Media should use full card width on mobile */
  .contacts-table .media-cell img,
  .contacts-table .media-cell video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }
}

/* Optional: slight polish for media on desktop (portrait-friendly) */
@media (min-width: 681px){
  .contacts-table .media-cell img,
  .contacts-table .media-cell video {
    max-width: 240px;       /* your existing max-width */
    max-height: 220px;      /* show a bit taller for portrait */
    object-fit: cover;
  }
}

/* Optional: sticky first column (“When”) on wide tables to aid scanning */
@media (min-width: 1100px){
  .contacts-table thead th:nth-child(2),
  .contacts-table tbody td:nth-child(2){
    position: sticky;
    left: 36px;            /* width of bulk col */
    background: #fff;
    z-index: 1;            /* keep above row */
  }
}

@media (min-width: 681px){
  .contacts-table .media-cell img,
  .contacts-table .media-cell video {
    max-width: 240px;
    max-height: 220px;
    object-fit: cover;
  }
}





/* === PATCH 2025-11-12: force DOT toggles to be pill-only === */
body.dot .toggle input[type="checkbox"]{
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* JS-driven fallback: when .is-on is present, show ON state */
body.dot .toggle .toggle-ui.is-on{
  background:#0d6efd !important;
  box-shadow:inset 0 0 0 1px #0b5ed7 !important;
}
body.dot .toggle .toggle-ui.is-on::after{
  left:auto !important;
  right:3px !important;
  transform:none !important;
}
