/* ════════════════════════════════════════════════════════════════════
   hq-design-v2.css — Phase 1 design refresh overlay for HQ
   ────────────────────────────────────────────────────────────────────
   Strict scoping rule: every selector starts with `body.hq-redesign`
   or `.hqd-` (only used inside elements that JS appends as descendants
   of body.hq-redesign). This file MUST NOT leak styles outside HQ.

   Phase 1 scope: visual polish (gradient titles, sidebar polish, mesh
   wash, smart-insight tile component class), AI dock shell, FAB,
   ⌘K palette overlay. Module-by-module insight wiring is Phase 2+.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Brand tokens (extend existing) ────────────────────────────── */
body.hq-redesign{
  --rose:#E879A6;
  --rose-dk:#BE5C82;
  --peach:#F4A672;
  --blue:#6478F0;
  --gold-lt:#E5C896;
  --navy-soft:#2D2FA8;

  /* AI dock + FAB gradient stops */
  --hqd-ai-1:#6B5BE6;
  --hqd-ai-2:#A472E8;
  --hqd-ai-3:#E879A6;
}

/* ─── Mesh background wash on the canvas ───────────────────────── */
body.hq-redesign .module-content{
  position:relative;
}
body.hq-redesign .module-content::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(ellipse 60% 40% at 12% 8%, rgba(200,169,110,.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 92% 92%, rgba(45,47,168,.04) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 18%, rgba(232,121,166,.03) 0%, transparent 55%);
  opacity:.9;
}
body.hq-redesign .module-content > *{position:relative;z-index:1;}

/* ─── Animated gradient title (.gtxt shimmer) ───────────────────── */
body.hq-redesign .mod-header h2{
  background:linear-gradient(120deg,
    var(--gold-dk) 0%,
    var(--gold) 28%,
    var(--terracotta) 55%,
    var(--navy-soft) 80%,
    var(--gold-dk) 100%);
  background-size:280% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  animation:hqd-gtxt 9s linear infinite;
}
@keyframes hqd-gtxt{
  0%   { background-position:0% 50%; }
  100% { background-position:280% 50%; }
}
@media (prefers-reduced-motion:reduce){
  body.hq-redesign .mod-header h2{
    animation:none;
    background-position:0 50%;
  }
}

/* ─── Page briefing line (opt-in) ───────────────────────────────── */
body.hq-redesign .hqd-page-briefing{
  font-size:13px;
  font-weight:500;
  color:var(--text-secondary,#3D3C6B);
  line-height:1.55;
  margin:-12px 0 18px;
  max-width:760px;
  letter-spacing:-.005em;
}
body.hq-redesign .hqd-page-briefing strong{
  color:var(--navy);
  font-weight:800;
}
/* Long-tail briefings sit above the module's existing markup (no strip
   ahead of them), so they get a top margin and a subtle gold-tint left
   accent to mark them as wayfinding rather than data. */
body.hq-redesign .hqd-page-briefing--lt{
  margin:0 0 22px;
  padding:14px 16px 14px 18px;
  background:linear-gradient(135deg, rgba(200,169,110,.06), rgba(45,47,168,.04));
  border:1px solid rgba(200,169,110,.18);
  border-radius:12px;
  border-left:3px solid var(--gold,#C8A96E);
  color:#3D3C6B;
}
body.hq-redesign .hqd-page-briefing--lt strong{
  color:var(--navy,#1B1A6B);
}

/* ─── Sidebar polish ────────────────────────────────────────────── */
body.hq-redesign .si{
  position:relative;
  transition:background .18s ease, color .18s ease;
}
body.hq-redesign .si:hover{
  background:rgba(255,255,255,.08);
}
/* Override hq.html's .si.active rule that adds border-left + padding-left
   shift — that shift was rubbing the title against the icon. Use an
   inset box-shadow as the active indicator instead so layout doesn't
   move. The Phase 24 icon ::before stays exactly where it was on hover. */
body.hq-redesign .si.active{
  background:rgba(200,169,110,.18) !important;
  border-left:none !important;
  box-shadow:inset 3px 0 0 var(--gold, #C8A96E);
}
/* Restore default 20px left padding on top-level active items
   (hq.html shifts to 17px to balance an old 3px border) */
body.hq-redesign .sidebar-group-items > .si.active,
body.hq-redesign .sidebar > .si.active{
  padding-left:20px !important;
}
/* Sub-items keep their deeper indent */
body.hq-redesign .si-sub .si.active{
  padding-left:28px !important;
}
body.hq-redesign .si-star{
  transition:color .18s ease, transform .18s ease;
}
body.hq-redesign .si.active .si-star{
  color:var(--gold);
}
body.hq-redesign .si .si-star:hover{
  transform:scale(1.18);
}

/* ─── Smart-insight tile component ─────────────────────────────── */
body.hq-redesign .hqd-insight-strip{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
  margin:0 0 22px;
}
@media (max-width:1080px){
  body.hq-redesign .hqd-insight-strip{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width:600px){
  body.hq-redesign .hqd-insight-strip{
    grid-template-columns:1fr;
  }
}
body.hq-redesign .hqd-insight-tile{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border,#E2DDD4);
  border-radius:12px;
  padding:18px 18px 20px;
  box-shadow:0 1px 2px rgba(17,17,40,.04), 0 2px 8px rgba(17,17,40,.03);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.hq-redesign .hqd-insight-tile::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.55;
  background:radial-gradient(ellipse 70% 55% at 100% 0%, rgba(200,169,110,.10) 0%, transparent 65%);
}
body.hq-redesign .hqd-insight-tile:hover{
  transform:translateY(-2px);
  border-color:#D7D1C3;
  box-shadow:0 6px 18px rgba(17,17,40,.07), 0 2px 6px rgba(17,17,40,.05);
}
body.hq-redesign .hqd-insight-tile--clickable{
  cursor:pointer;
  user-select:none;
}
body.hq-redesign .hqd-insight-tile--clickable::after{
  content:'→';
  position:absolute;
  top:14px;
  right:16px;
  font-size:14px;
  font-weight:800;
  color:#9A9AAB;
  opacity:0;
  transform:translateX(-4px);
  transition:opacity .18s ease, transform .18s ease, color .18s ease;
  z-index:2;
}
body.hq-redesign .hqd-insight-tile--clickable:hover::after,
body.hq-redesign .hqd-insight-tile--clickable:focus-visible::after{
  opacity:1;
  transform:translateX(0);
  color:var(--navy,#1B1A6B);
}
body.hq-redesign .hqd-insight-tile--clickable:hover{
  border-color:var(--gold,#C8A96E);
}
body.hq-redesign .hqd-insight-tile--clickable:focus-visible{
  outline:2px solid var(--gold,#C8A96E);
  outline-offset:2px;
}
body.hq-redesign .hqd-insight-tile > *{position:relative;z-index:1;}
body.hq-redesign .hqd-insight-tile__eyebrow{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:var(--muted,#7B7A9A);
}
body.hq-redesign .hqd-insight-tile__value{
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:28px;
  font-weight:900;
  line-height:1.05;
  letter-spacing:-.025em;
  color:var(--navy);
  margin-top:6px;
}
body.hq-redesign .hqd-insight-tile__sub{
  font-size:12px;
  color:var(--muted,#7B7A9A);
  margin-top:6px;
  line-height:1.4;
}
/* Variants: each adds its own mesh accent via ::before override */
body.hq-redesign .hqd-insight-tile--gold::before{
  background:radial-gradient(ellipse 75% 60% at 100% 0%, rgba(200,169,110,.16) 0%, transparent 65%);
}
body.hq-redesign .hqd-insight-tile--mint::before{
  background:radial-gradient(ellipse 75% 60% at 100% 0%, rgba(52,211,153,.14) 0%, transparent 65%);
}
body.hq-redesign .hqd-insight-tile--coral::before{
  background:radial-gradient(ellipse 75% 60% at 100% 0%, rgba(232,122,93,.14) 0%, transparent 65%);
}
body.hq-redesign .hqd-insight-tile--rose::before{
  background:radial-gradient(ellipse 75% 60% at 100% 0%, rgba(232,121,166,.14) 0%, transparent 65%);
}
body.hq-redesign .hqd-insight-tile--peach::before{
  background:radial-gradient(ellipse 75% 60% at 100% 0%, rgba(244,166,114,.16) 0%, transparent 65%);
}
body.hq-redesign .hqd-insight-tile--blue::before{
  background:radial-gradient(ellipse 75% 60% at 100% 0%, rgba(100,120,240,.14) 0%, transparent 65%);
}
body.hq-redesign .hqd-insight-tile--gold .hqd-insight-tile__value{color:var(--gold-dk);}
body.hq-redesign .hqd-insight-tile--mint .hqd-insight-tile__value{color:#059669;}
body.hq-redesign .hqd-insight-tile--coral .hqd-insight-tile__value{color:#B33A1A;}
body.hq-redesign .hqd-insight-tile--rose .hqd-insight-tile__value{color:var(--rose-dk);}
body.hq-redesign .hqd-insight-tile--peach .hqd-insight-tile__value{color:#A6601E;}
body.hq-redesign .hqd-insight-tile--blue .hqd-insight-tile__value{color:var(--navy-soft);}

/* ════════════════════════════════════════════════════════════════
   AI DOCK
   ════════════════════════════════════════════════════════════════ */
.hqd-ai-dock{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:80;
  font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  color:#fff;
  user-select:none;
}

/* Collapsed: shimmer pill */
.hqd-ai-dock[data-state="collapsed"] .hqd-ai-panel{display:none;}
.hqd-ai-dock[data-state="collapsed"] .hqd-ai-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:44px;
  padding:0 16px 0 14px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  font-weight:800;
  font-size:13px;
  color:#fff;
  letter-spacing:-.005em;
  background:linear-gradient(120deg,
    var(--hqd-ai-1) 0%,
    var(--hqd-ai-2) 50%,
    var(--hqd-ai-3) 100%);
  background-size:220% 220%;
  box-shadow:0 8px 22px rgba(107,91,230,.32), 0 2px 6px rgba(0,0,0,.08);
  animation:hqd-ai-shimmer 6s ease-in-out infinite;
  transition:transform .15s ease, box-shadow .15s ease;
}
.hqd-ai-dock[data-state="collapsed"] .hqd-ai-pill:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(107,91,230,.42), 0 2px 6px rgba(0,0,0,.10);
}
.hqd-ai-dock[data-state="collapsed"] .hqd-ai-pill .hqd-ai-icon{
  display:inline-grid;
  place-items:center;
  width:24px;height:24px;
  font-size:0;
  position:relative;
}
/* Phase 34: SVG sparkle icon (was empty after Phase 24 emoji strip) */
.hqd-ai-dock[data-state="collapsed"] .hqd-ai-pill .hqd-ai-icon::before{
  content:'';
  width:18px; height:18px;
  background-color:#fff;
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1'/><circle cx='12' cy='12' r='3.5'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1'/><circle cx='12' cy='12' r='3.5'/></svg>");
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-size:contain; mask-size:contain;
}
@keyframes hqd-ai-shimmer{
  0%,100% { background-position:0% 50%; }
  50%     { background-position:100% 50%; }
}
@media (prefers-reduced-motion:reduce){
  .hqd-ai-dock[data-state="collapsed"] .hqd-ai-pill{animation:none;}
}

/* Expanded: panel */
.hqd-ai-dock[data-state="expanded"] .hqd-ai-pill{display:none;}
.hqd-ai-dock[data-state="expanded"] .hqd-ai-panel{
  display:flex;
  flex-direction:column;
  width:380px;
  height:460px;
  max-height:calc(100vh - 40px);
  background:#fff;
  color:#17182A;
  border-radius:16px;
  box-shadow:0 20px 50px rgba(17,17,40,.22), 0 4px 14px rgba(17,17,40,.10);
  overflow:hidden;
  border:1px solid rgba(200,169,110,.18);
}
.hqd-ai-panel__header{
  flex-shrink:0;
  padding:14px 16px;
  background:linear-gradient(120deg,
    var(--hqd-ai-1) 0%,
    var(--hqd-ai-2) 50%,
    var(--hqd-ai-3) 100%);
  background-size:220% 220%;
  animation:hqd-ai-shimmer 9s ease-in-out infinite;
  color:#fff;
  display:flex;
  align-items:center;
  gap:10px;
}
@media (prefers-reduced-motion:reduce){
  .hqd-ai-panel__header{animation:none;}
}
.hqd-ai-panel__title{
  font-weight:900;
  font-size:14px;
  flex:1;
  letter-spacing:-.01em;
}
.hqd-ai-panel__title small{
  display:block;
  font-size:10px;
  font-weight:600;
  opacity:.78;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-top:1px;
}
.hqd-ai-panel__close{
  width:28px;height:28px;
  border-radius:8px;
  border:0;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  display:grid;place-items:center;
  transition:background .15s ease;
}
.hqd-ai-panel__close:hover{background:rgba(255,255,255,.28);}
.hqd-ai-panel__body{
  flex:1;
  overflow-y:auto;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#FAFAFD;
}
.hqd-ai-msg{
  max-width:88%;
  padding:9px 13px;
  border-radius:12px;
  font-size:13px;
  line-height:1.5;
  white-space:pre-wrap;
  word-wrap:break-word;
}
.hqd-ai-msg--bot{
  align-self:flex-start;
  background:#fff;
  border:1px solid #ECE9E0;
  color:#17182A;
  border-top-left-radius:4px;
}
.hqd-ai-msg--user{
  align-self:flex-end;
  background:linear-gradient(135deg, var(--hqd-ai-1), var(--hqd-ai-2));
  color:#fff;
  border-top-right-radius:4px;
}
.hqd-ai-msg--thinking{
  opacity:.7;
  font-style:italic;
  position:relative;
}
.hqd-ai-msg--thinking::after{
  content:'';
  display:inline-block;
  width:14px;height:14px;
  border:2px solid rgba(139,92,246,.2);
  border-top-color:rgba(139,92,246,.85);
  border-radius:50%;
  margin-left:8px;
  vertical-align:middle;
  animation:hqd-spin .7s linear infinite;
}
@keyframes hqd-spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce){
  .hqd-ai-msg--thinking::after{animation:none;}
}

/* AI-generated recipe card (rendered inline in the dock) */
.hqd-ai-recipe-card{
  align-self:stretch;
  background:#fff;
  border:1.5px solid #ECE9E0;
  border-radius:12px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:border-color .15s, box-shadow .15s;
}
.hqd-ai-recipe-card:hover{
  border-color:rgba(139,92,246,.35);
  box-shadow:0 4px 14px rgba(20,16,68,.06);
}
.hqd-ai-recipe-card__head{
  display:flex;
  align-items:center;
  gap:8px;
}
.hqd-ai-recipe-card__cat{
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding:3px 9px;
  border-radius:6px;
}
.hqd-ai-recipe-card__name{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:15px;
  font-weight:800;
  color:#1B1A6B;
  line-height:1.3;
}
.hqd-ai-recipe-card__desc{
  font-size:12px;
  color:#474758;
  line-height:1.5;
}
.hqd-ai-recipe-card__macros{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:5px;
}
.hqd-ai-recipe-card__macro{
  background:#F7F5EE;
  border-radius:8px;
  padding:7px 4px;
  text-align:center;
}
.hqd-ai-recipe-card__macro-val{
  font-size:14px;
  font-weight:900;
  color:#1B1A6B;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  line-height:1.1;
}
.hqd-ai-recipe-card__macro-lbl{
  font-size:9px;
  font-weight:700;
  color:#7B7B95;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-top:2px;
}
.hqd-ai-recipe-card__add{
  width:100%;
  padding:9px;
  font-size:12px;
  font-weight:800;
  color:#8B5CF6;
  background:rgba(139,92,246,.06);
  border:1.5px solid rgba(139,92,246,.3);
  border-radius:8px;
  cursor:pointer;
  font-family:'Inter',sans-serif;
  letter-spacing:.02em;
  transition:background .15s, border-color .15s;
}
.hqd-ai-recipe-card__add:hover:not(:disabled){
  background:rgba(139,92,246,.12);
  border-color:rgba(139,92,246,.5);
}
.hqd-ai-recipe-card__add:disabled{
  cursor:default;
  color:#10B981;
  background:rgba(16,185,129,.08);
  border-color:rgba(16,185,129,.3);
}

/* Opt-in page briefing one-liner — modules add this above their grid:
   <div class="hqd-page-briefing">3 items below threshold. Salmon …</div> */
body.hq-redesign .hqd-page-briefing{
  font-size:13px;
  color:#56566F;
  line-height:1.55;
  max-width:760px;
  margin:-4px 0 18px;
  font-weight:500;
}
body.hq-redesign .hqd-page-briefing strong{
  color:#1B1A6B;
  font-weight:700;
}

.hqd-ai-suggestions{
  flex-shrink:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:8px 12px 0;
  background:#FAFAFD;
  border-top:1px solid #ECE9E0;
}
.hqd-ai-suggestion{
  font-family:'Inter',sans-serif;
  font-size:11px;
  font-weight:600;
  line-height:1.35;
  text-align:left;
  padding:6px 10px;
  border-radius:99px;
  background:rgba(139,92,246,.06);
  border:1px solid rgba(139,92,246,.18);
  color:#5B21B6;
  cursor:pointer;
  transition:background .15s, border-color .15s, transform .15s;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hqd-ai-suggestion:hover{
  background:rgba(139,92,246,.12);
  border-color:rgba(139,92,246,.4);
  transform:translateY(-1px);
}
.hqd-ai-suggestion:active{
  transform:translateY(0);
}
@media (prefers-reduced-motion:reduce){
  .hqd-ai-suggestion{transition:none;}
  .hqd-ai-suggestion:hover{transform:none;}
}

.hqd-ai-panel__footer{
  flex-shrink:0;
  padding:10px 12px;
  border-top:1px solid #ECE9E0;
  background:#fff;
  display:flex;
  gap:8px;
  align-items:flex-end;
}
.hqd-ai-input{
  flex:1;
  border:1px solid #E2DDD4;
  border-radius:10px;
  padding:9px 12px;
  font-family:inherit;
  font-size:13px;
  resize:none;
  max-height:80px;
  outline:none;
  color:#17182A;
  background:#FAFAFD;
}
.hqd-ai-input:focus{
  border-color:var(--hqd-ai-2);
  box-shadow:0 0 0 3px rgba(164,114,232,.18);
}
.hqd-ai-send{
  border:0;
  background:linear-gradient(135deg, var(--hqd-ai-1), var(--hqd-ai-3));
  color:#fff;
  font-weight:800;
  font-size:13px;
  padding:0 14px;
  height:36px;
  border-radius:10px;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .15s ease;
}
.hqd-ai-send:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(107,91,230,.32);}
.hqd-ai-send:disabled{opacity:.5;cursor:default;transform:none;box-shadow:none;}

/* ════════════════════════════════════════════════════════════════
   FAB (floating action button)
   ════════════════════════════════════════════════════════════════ */
.hqd-fab{
  position:fixed;
  right:20px;
  bottom:80px; /* sits above the collapsed AI pill */
  z-index:79;
  height:48px;
  padding:0 18px 0 14px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  background:linear-gradient(135deg, #1B1A6B 0%, #2D2FA8 60%, #C8A96E 130%);
  color:#fff;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:800;
  font-size:13px;
  letter-spacing:-.005em;
  display:inline-flex;
  align-items:center;
  gap:7px;
  box-shadow:0 8px 22px rgba(27,26,107,.30), 0 2px 6px rgba(0,0,0,.08);
  transition:transform .12s ease, box-shadow .15s ease, opacity .15s ease;
}
.hqd-fab:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(27,26,107,.40), 0 2px 6px rgba(0,0,0,.10);
}
.hqd-fab[hidden]{display:none !important;}
.hqd-fab__plus{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;height:22px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  flex-shrink:0;
  /* SVG icon child centers geometrically — no glyph baseline drift */
}
.hqd-fab__plus > svg{
  display:block;
  color:#fff;
}
/* When AI dock is expanded, lift the FAB so it doesn't sit on the panel */
body.hq-redesign[data-hqd-ai="expanded"] .hqd-fab{
  bottom:500px;
}
@media (max-width:768px){
  body.hq-redesign[data-hqd-ai="expanded"] .hqd-fab{
    /* On small screens the panel is bigger; just tuck the FAB to bottom-left */
    left:20px;
    right:auto;
    bottom:20px;
  }
}

/* ════════════════════════════════════════════════════════════════
   ⌘K command palette (HQDesignV2 namespace, distinct from legacy cmdk)
   ════════════════════════════════════════════════════════════════ */
.hqd-cmdk-overlay{
  position:fixed;
  inset:0;
  z-index:200;
  background:rgba(15,14,71,.50);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding-top:15vh;
}
.hqd-cmdk-overlay[data-open="true"]{display:flex;}
.hqd-cmdk-modal{
  width:600px;
  max-width:calc(100vw - 24px);
  max-height:70vh;
  background:#fff;
  border-radius:14px;
  box-shadow:0 24px 60px rgba(15,14,71,.30), 0 6px 18px rgba(15,14,71,.18);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  font-family:'Plus Jakarta Sans',sans-serif;
}
.hqd-cmdk-search{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 18px;
  border-bottom:1px solid #ECE9E0;
}
.hqd-cmdk-search__icon{
  font-size:15px;
  color:#7B7A9A;
}
.hqd-cmdk-search input{
  flex:1;
  border:0;
  outline:none;
  font-family:inherit;
  font-size:15px;
  color:#17182A;
  background:transparent;
}
.hqd-cmdk-list{
  flex:1;
  overflow-y:auto;
  padding:6px 0 10px;
}
.hqd-cmdk-group__lbl{
  font-size:10px;
  font-weight:700;
  color:#7B7A9A;
  text-transform:uppercase;
  letter-spacing:.10em;
  padding:10px 18px 4px;
}
.hqd-cmdk-item{
  display:flex;
  align-items:center;
  gap:11px;
  padding:9px 18px;
  cursor:pointer;
  font-size:13px;
  color:#17182A;
  border:0;
  background:transparent;
  width:100%;
  text-align:left;
  font-family:inherit;
}
.hqd-cmdk-item:hover,
.hqd-cmdk-item[aria-selected="true"]{
  background:rgba(45,47,168,.07);
}
.hqd-cmdk-item__icon{
  width:26px;height:26px;
  border-radius:7px;
  background:#F5F3EE;
  display:grid;place-items:center;
  flex-shrink:0;
  font-size:13px;
}
.hqd-cmdk-item__label{
  flex:1;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:600;
}
.hqd-cmdk-item__hint{
  font-size:11px;
  color:#7B7A9A;
  font-weight:500;
  flex-shrink:0;
}
.hqd-cmdk-empty{
  padding:24px 18px;
  text-align:center;
  font-size:13px;
  color:#7B7A9A;
}
.hqd-cmdk-footer{
  flex-shrink:0;
  padding:8px 18px;
  border-top:1px solid #ECE9E0;
  background:#FAFAFD;
  display:flex;
  align-items:center;
  gap:14px;
  font-size:11px;
  color:#7B7A9A;
}
.hqd-kbd{
  display:inline-flex;
  align-items:center;
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:10.5px;
  font-weight:700;
  color:#3D3C6B;
  background:#fff;
  border:1px solid #E2DDD4;
  border-radius:5px;
  padding:2px 6px;
  margin-right:4px;
}

/* ─── Small-screen tweaks for floating UI ───────────────────────── */
@media (max-width:768px){
  .hqd-ai-dock{right:14px;bottom:14px;}
  .hqd-ai-dock[data-state="expanded"] .hqd-ai-panel{
    width:calc(100vw - 28px);
    height:60vh;
  }
  .hqd-fab{right:14px;bottom:70px;}
}

/* Auth-gate — hide floating chrome on the login/create-account screens.
   The JS sets data-hqd-authed="false" while #login-screen or
   #create-account-screen is visible. */
body.hq-redesign[data-hqd-authed="false"] .hqd-ai-dock,
body.hq-redesign[data-hqd-authed="false"] .hqd-fab,
body.hq-redesign[data-hqd-authed="false"] .hqd-cmdk-overlay{
  display:none !important;
}

/* ─── Recipe Lab — Board (kanban) view (Phase 12) ────────────────── */
body.hq-redesign .hqd-recipe-board-wrap{
  width:100%;
  margin-top:8px;
}
body.hq-redesign .hqd-recipe-board{
  display:flex;
  flex-direction:row;
  gap:14px;
  align-items:flex-start;
  overflow-x:auto;
  padding:4px 4px 16px;
  scroll-snap-type:x proximity;
}
body.hq-redesign .hqd-recipe-col{
  flex:0 0 280px;
  display:flex;
  flex-direction:column;
  border:1px solid #E2DDD4;
  border-radius:14px;
  padding:10px;
  background:#FFFDFB;
  scroll-snap-align:start;
  max-height:78vh;
}
body.hq-redesign .hqd-recipe-col__header{
  position:sticky; top:0;
  display:flex; align-items:center; gap:8px;
  padding:10px 8px 10px;
  margin:-10px -10px 8px;
  background:linear-gradient(180deg,#FFFDFB 0%, rgba(255,253,251,0.92) 100%);
  border-radius:14px 14px 0 0;
  z-index:1;
}
body.hq-redesign .hqd-recipe-col__emoji{ font-size:16px; line-height:1; }
body.hq-redesign .hqd-recipe-col__title{
  font-family:'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight:800;
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
  flex:1 1 auto;
}
body.hq-redesign .hqd-recipe-col__count{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:22px; height:20px; padding:0 7px;
  border-radius:999px;
  background:rgba(61,60,107,0.08);
  color:#3D3C6B;
  font-size:11px; font-weight:700;
}
body.hq-redesign .hqd-recipe-board-add{
  border:1px dashed rgba(61,60,107,0.3);
  background:transparent;
  color:#3D3C6B;
  border-radius:8px;
  padding:3px 8px;
  font-size:11px; font-weight:700;
  cursor:pointer;
  opacity:.7;
  transition:opacity .15s ease, background .15s ease;
}
body.hq-redesign .hqd-recipe-board-add:hover{
  opacity:1;
  background:rgba(168,136,78,0.08);
  border-color:#A8884E;
  color:#A8884E;
}
body.hq-redesign .hqd-recipe-col__body{
  display:flex; flex-direction:column; gap:8px;
  min-height:60px;
  padding:4px 2px;
  overflow-y:auto;
  flex:1 1 auto;
  border-radius:8px;
  transition:background .15s ease, outline-color .15s ease;
  outline:2px dashed transparent;
}
body.hq-redesign .hqd-recipe-col__body--drag-over{
  outline-color:#A8884E;
  background:rgba(168,136,78,0.08);
}
body.hq-redesign .hqd-recipe-empty-col{
  font-style:italic;
  color:rgba(61,60,107,0.45);
  font-size:12px;
  padding:14px 8px;
  text-align:center;
  border:1px dashed rgba(61,60,107,0.18);
  border-radius:10px;
}

body.hq-redesign .hqd-recipe-card--board{
  position:relative;
  background:#fff;
  border:1.5px solid #E2DDD4;
  border-radius:12px;
  padding:12px;
  cursor:grab;
  display:flex;
  flex-direction:column;
  gap:8px;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  user-select:none;
}
body.hq-redesign .hqd-recipe-card--board:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(61,60,107,0.10);
  border-color:#A8884E;
}
body.hq-redesign .hqd-recipe-card--board:active{ cursor:grabbing; }
body.hq-redesign .hqd-recipe-card--dragging{
  opacity:.4;
  transform:rotate(2deg);
}
body.hq-redesign .hqd-recipe-card--live{
  background:linear-gradient(180deg,#FFFDFB 0%, rgba(168,136,78,0.06) 100%);
  border-color:rgba(168,136,78,0.55);
}
body.hq-redesign .hqd-recipe-card__live-pill{
  position:absolute;
  top:8px; right:8px;
  background:#A8884E;
  color:#fff;
  font-size:9px; font-weight:800;
  letter-spacing:.08em;
  padding:2px 7px;
  border-radius:999px;
}
body.hq-redesign .hqd-recipe-card__name{
  font-family:'Plus Jakarta Sans', system-ui, sans-serif;
  font-size:14px;
  font-weight:700;
  color:#3D3C6B;
  line-height:1.25;
  padding-right:36px;
}
body.hq-redesign .hqd-recipe-card__cat-chip{
  display:inline-flex; align-items:center; gap:6px;
  font-size:10px;
  letter-spacing:.08em;
  font-weight:700;
  color:#6B6890;
}
body.hq-redesign .hqd-recipe-card__cat-dot{
  display:inline-block;
  width:8px; height:8px;
  border-radius:999px;
}
body.hq-redesign .hqd-recipe-card__macros{
  display:flex; flex-direction:row; gap:6px; flex-wrap:wrap;
}
body.hq-redesign .hqd-recipe-card__macro-pill{
  font-size:11px;
  color:#6B6890;
  background:rgba(61,60,107,0.05);
  border-radius:6px;
  padding:2px 7px;
}
body.hq-redesign .hqd-recipe-card__foot{
  display:flex; align-items:center; justify-content:space-between;
  gap:6px;
  font-size:11px;
  color:#6B6890;
}
body.hq-redesign .hqd-recipe-card__avatar{
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px;
  border-radius:999px;
  color:#fff;
  font-size:10px; font-weight:800;
  flex:0 0 20px;
}
body.hq-redesign .hqd-recipe-card__avatar--empty{
  background:rgba(61,60,107,0.12);
}
body.hq-redesign .hqd-recipe-card__age{ flex:1 1 auto; }
body.hq-redesign .hqd-recipe-card__price{
  color:#A8884E;
  font-weight:800;
}

body.hq-redesign .hqd-recipe-toast{
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%) translateY(12px);
  background:#3D3C6B;
  color:#fff;
  font-size:13px;
  font-weight:600;
  padding:10px 18px;
  border-radius:999px;
  box-shadow:0 10px 30px rgba(61,60,107,0.25);
  z-index:95;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
body.hq-redesign .hqd-recipe-toast--visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
body.hq-redesign .hqd-recipe-toast--error{
  background:#9B2C2C;
}

@media (prefers-reduced-motion: reduce){
  body.hq-redesign .hqd-recipe-card--board{ transition:none; }
  body.hq-redesign .hqd-recipe-card--board:hover{ transform:none; }
  body.hq-redesign .hqd-recipe-card--dragging{ transform:none; }
  body.hq-redesign .hqd-recipe-toast{ transition:none; }
}

/* ─── Orders — Board (kanban) view (Phase 13) ────────────────────── */
/* Reuses Phase 12 column / card / toast structure. Only additions are
   the order-specific card rows (status pill, total, pickup, allergen).
   The Kanban toggle button itself uses the existing .fbtn /.active
   styling from hq.html — no extra styles needed there. */
body.hq-redesign #hqd-orders-view-board.fbtn{
  /* Slight gold accent already comes from .fbtn.active gradient.
     Keep emoji from clipping on Safari. */
  white-space:nowrap;
}
body.hq-redesign .hqd-order-card{
  /* Reuses .hqd-recipe-card--board base. Just relax the right padding
     since we have a status pill on the left and a total on the right
     in their own row instead of an absolutely-positioned LIVE pill. */
  padding-top:10px;
}
body.hq-redesign .hqd-order-card__top{
  display:flex; align-items:center; justify-content:space-between;
  gap:8px;
}
body.hq-redesign .hqd-order-card__status-pill{
  display:inline-block;
  font-size:9px; font-weight:800;
  letter-spacing:.08em;
  color:#fff;
  padding:2px 7px;
  border-radius:999px;
  white-space:nowrap;
}
body.hq-redesign .hqd-order-card__total{
  font-size:14px;
  font-weight:800;
  color:#A8884E;
  font-variant-numeric:tabular-nums;
  flex:0 0 auto;
}
body.hq-redesign .hqd-order-card .hqd-recipe-card__name{
  /* Card name no longer needs right-padding for an absolute pill. */
  padding-right:0;
}
body.hq-redesign .hqd-order-card__meta{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-size:11px;
  color:#6B6890;
}
body.hq-redesign .hqd-order-card__id{
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:10px;
  font-weight:700;
  color:#3D3C6B;
  background:rgba(61,60,107,0.06);
  padding:2px 6px;
  border-radius:6px;
  letter-spacing:.04em;
}
body.hq-redesign .hqd-order-card__items-count{
  font-size:11px;
  color:#6B6890;
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.hq-redesign .hqd-order-card__pickup-row{
  font-size:11px;
  color:#3D3C6B;
  font-weight:600;
  background:rgba(61,60,107,0.04);
  border-radius:6px;
  padding:4px 8px;
}
body.hq-redesign .hqd-order-card__allergen{
  display:inline-block;
  font-size:10px;
  font-weight:700;
  color:#9B2C2C;
  background:rgba(220,38,38,0.08);
  border:1px solid rgba(220,38,38,0.25);
  padding:2px 7px;
  border-radius:999px;
  align-self:flex-start;
}
body.hq-redesign .hqd-order-card__catering{
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  color:#3D3FE2;
  background:rgba(61,63,226,0.08);
  padding:2px 6px;
  border-radius:999px;
  flex:0 0 auto;
}
body.hq-redesign .hqd-order-card__foot{
  /* Override age flex from recipe footer when catering pill is present
     so age sits on the right. */
  justify-content:flex-end;
}
body.hq-redesign .hqd-order-card__foot .hqd-recipe-card__age{
  flex:0 0 auto;
  text-align:right;
}

/* ════════════════════════════════════════════════════════════════════
   Phase 14: Keyboard shortcuts help overlay
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign .hqd-shortcuts-help{
  position:fixed;
  inset:0;
  z-index:96;
  background:rgba(20,16,68,.55);
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding-top:12vh;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
body.hq-redesign .hqd-shortcuts-help[data-open="true"]{
  display:flex;
}
body.hq-redesign .hqd-shortcuts-help__card{
  width:560px;
  max-width:calc(100vw - 32px);
  max-height:78vh;
  overflow:auto;
  background:#fff;
  border-radius:14px;
  box-shadow:0 24px 80px rgba(20,16,68,.32), 0 4px 16px rgba(20,16,68,.12);
  display:flex;
  flex-direction:column;
}
body.hq-redesign .hqd-shortcuts-help__hdr{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 22px 14px;
  border-bottom:1px solid #ECE9E0;
}
body.hq-redesign .hqd-shortcuts-help__title{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:16px;
  font-weight:800;
  color:var(--navy,#1B1A6B);
  letter-spacing:-.01em;
}
body.hq-redesign .hqd-shortcuts-help__close{
  background:none;
  border:1.5px solid var(--border,#E2DDD4);
  border-radius:8px;
  width:32px;
  height:32px;
  font-size:18px;
  font-weight:800;
  color:#6B6B85;
  cursor:pointer;
  font-family:inherit;
  line-height:1;
}
body.hq-redesign .hqd-shortcuts-help__close:hover{
  background:#FAFAFD;
  color:var(--navy,#1B1A6B);
}
body.hq-redesign .hqd-shortcuts-help__body{
  padding:14px 22px 4px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
body.hq-redesign .hqd-shortcuts-help__section{
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.hq-redesign .hqd-shortcuts-help__section-title{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#7B7A9A;
  margin-bottom:4px;
}
body.hq-redesign .hqd-shortcuts-help__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
}
body.hq-redesign .hqd-shortcuts-help__keys{
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}
body.hq-redesign .hqd-shortcuts-help__desc{
  font-size:13px;
  color:#3D3C6B;
  text-align:right;
}
body.hq-redesign .hqd-kbd{
  display:inline-block;
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:11px;
  font-weight:700;
  color:var(--navy,#1B1A6B);
  background:#F7F5EE;
  border:1px solid #E2DDD4;
  border-bottom-width:2px;
  border-radius:6px;
  padding:3px 8px;
  min-width:22px;
  text-align:center;
  line-height:1;
}
body.hq-redesign .hqd-shortcuts-help__foot{
  padding:14px 22px 18px;
  border-top:1px solid #ECE9E0;
  margin-top:6px;
  background:#FAFAFD;
  font-size:12px;
  color:#6B6B85;
  text-align:center;
  border-radius:0 0 14px 14px;
}

/* ════════════════════════════════════════════════════════════════════
   Phase 15: Empty-state polish
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign .hqd-empty-state{
  display:flex;
  align-items:center;
  gap:28px;
  padding:28px 32px;
  margin:0 0 24px;
  background:linear-gradient(135deg,
    rgba(200,169,110,.06) 0%,
    rgba(45,47,168,.04) 50%,
    rgba(232,121,166,.05) 100%);
  border:1px solid rgba(200,169,110,.18);
  border-radius:16px;
  position:relative;
  overflow:hidden;
}
body.hq-redesign .hqd-empty-state::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(200,169,110,.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(45,47,168,.05) 0%, transparent 55%);
  opacity:.9;
}
body.hq-redesign .hqd-empty-state > *{position:relative;z-index:1;}

body.hq-redesign .hqd-empty-state__art{
  flex-shrink:0;
  width:120px;
  height:120px;
}
body.hq-redesign .hqd-empty-state__art svg{
  width:100%;
  height:100%;
  display:block;
}

body.hq-redesign .hqd-empty-state__body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.hq-redesign .hqd-empty-state__eyebrow{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:var(--gold-dk,#A8884E);
  margin-bottom:2px;
}
body.hq-redesign .hqd-empty-state__title{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:22px;
  font-weight:900;
  letter-spacing:-.02em;
  color:var(--navy,#1B1A6B);
  line-height:1.15;
}
body.hq-redesign .hqd-empty-state__copy{
  font-size:13px;
  line-height:1.55;
  color:#3D3C6B;
  margin-top:4px;
  max-width:560px;
}
body.hq-redesign .hqd-empty-state__actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
body.hq-redesign .hqd-empty-state__cta{
  font-family:'Inter',sans-serif;
  font-weight:700;
  font-size:13px;
  padding:10px 18px;
  border-radius:10px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  letter-spacing:.005em;
}
body.hq-redesign .hqd-empty-state__cta--primary{
  color:#fff;
  background:linear-gradient(135deg, var(--navy,#1B1A6B) 0%, var(--navy-soft,#2D2FA8) 60%, var(--gold-dk,#A8884E) 100%);
  border:none;
  box-shadow:0 4px 14px rgba(20,16,68,.18);
}
body.hq-redesign .hqd-empty-state__cta--primary:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(20,16,68,.24);
}
body.hq-redesign .hqd-empty-state__cta--secondary{
  color:var(--navy,#1B1A6B);
  background:#fff;
  border:1.5px solid rgba(20,16,68,.18);
}
body.hq-redesign .hqd-empty-state__cta--secondary:hover{
  border-color:var(--gold,#C8A96E);
  background:rgba(200,169,110,.06);
}
@media (prefers-reduced-motion:reduce){
  body.hq-redesign .hqd-empty-state__cta{transition:none;}
  body.hq-redesign .hqd-empty-state__cta--primary:hover{transform:none;}
}

@media (max-width:760px){
  body.hq-redesign .hqd-empty-state{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
    padding:24px 22px;
  }
  body.hq-redesign .hqd-empty-state__art{
    width:88px;
    height:88px;
  }
  body.hq-redesign .hqd-empty-state__title{font-size:19px;}
}

/* ════════════════════════════════════════════════════════════════════
   Phase 16: Mobile responsive pass
   Tightens every v2 component for narrow viewports. HQ's existing
   mobile sidebar (collapses to floating + button at bottom-left) is
   left alone — these rules just make sure the v2 overlay plays nice.
   ════════════════════════════════════════════════════════════════════ */

/* ── Module canvas: tighter padding so insight strips have room ── */
@media (max-width:768px){
  body.hq-redesign .module-content{
    padding-bottom:88px; /* leave room for AI dock + HQ's mobile FAB */
  }

  /* Insight tile copy compresses; sub-line clamps to 2 lines */
  body.hq-redesign .hqd-insight-tile{
    padding:14px 14px 16px;
  }
  body.hq-redesign .hqd-insight-tile__value{
    font-size:24px;
  }
  body.hq-redesign .hqd-insight-tile__sub{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  body.hq-redesign .hqd-insight-tile--clickable::after{
    /* Always visible on touch — no hover state to reveal it */
    opacity:1;
    transform:translateX(0);
    color:var(--gold-dk,#A8884E);
  }

  /* Page briefing breathes more on mobile so it's readable */
  body.hq-redesign .hqd-page-briefing{
    margin:-6px 0 16px;
    font-size:14px;
  }
  body.hq-redesign .hqd-page-briefing--lt{
    padding:12px 14px;
  }
}

/* ── AI dock: full-width sheet on mobile, smaller pill ── */
@media (max-width:768px){
  body.hq-redesign .hqd-ai-dock{
    right:14px;
    bottom:80px; /* sit above HQ's bottom-left mobile FAB so they don't collide */
  }
  body.hq-redesign .hqd-ai-pill{
    padding:10px 14px;
    font-size:12px;
  }
  body.hq-redesign .hqd-ai-pill .hqd-ai-icon{
    margin-right:4px;
  }
  /* Expanded panel becomes a nearly-fullscreen sheet from the right */
  body.hq-redesign .hqd-ai-dock[data-state="expanded"]{
    right:8px;
    left:8px;
    bottom:8px;
  }
  body.hq-redesign .hqd-ai-dock[data-state="expanded"] .hqd-ai-panel{
    width:100%;
    height:78vh;
    max-height:78vh;
    border-radius:18px;
  }
  /* Suggestion chips wrap tighter */
  body.hq-redesign .hqd-ai-suggestion{
    font-size:11px;
    padding:5px 9px;
  }
}
@media (max-width:480px){
  body.hq-redesign .hqd-ai-dock[data-state="expanded"]{
    /* Edge-to-edge on phones */
    right:0; left:0; bottom:0; top:6vh;
  }
  body.hq-redesign .hqd-ai-dock[data-state="expanded"] .hqd-ai-panel{
    height:100%;
    max-height:100%;
    border-radius:18px 18px 0 0;
  }
}

/* ── FAB: hide label, just show + icon, smaller bubble ── */
@media (max-width:768px){
  body.hq-redesign .hqd-fab{
    right:14px;
    bottom:14px;
    width:48px;
    min-width:48px;
    height:48px;
    padding:0;
    border-radius:50%;
    justify-content:center;
  }
  body.hq-redesign .hqd-fab__label{display:none;}
  body.hq-redesign .hqd-fab__plus{margin:0;width:24px;height:24px;background:transparent;}
  body.hq-redesign .hqd-fab__plus > svg{width:18px;height:18px;}
}

/* ── ⌘K palette: full-screen sheet on mobile ── */
@media (max-width:600px){
  body.hq-redesign .hqd-cmdk-modal{
    width:100%;
    max-width:100%;
    margin:0;
    border-radius:0;
    height:100%;
    max-height:100%;
    top:0;
  }
  body.hq-redesign .hqd-cmdk-overlay{
    padding:0;
  }
  body.hq-redesign .hqd-cmdk-input{
    font-size:16px; /* iOS won't zoom on focus */
  }
}

/* ── Keyboard shortcuts help: full-screen on phone ── */
@media (max-width:600px){
  body.hq-redesign .hqd-shortcuts-help{
    padding-top:0;
    align-items:stretch;
  }
  body.hq-redesign .hqd-shortcuts-help__card{
    width:100%;
    max-width:100%;
    max-height:100vh;
    border-radius:0;
  }
}

/* ── Recipe Lab + Orders kanban: narrower columns, snap-scroll ── */
@media (max-width:900px){
  body.hq-redesign .hqd-recipe-board{
    padding-bottom:8px;
    scroll-snap-type:x mandatory;
  }
  body.hq-redesign .hqd-recipe-col{
    flex:0 0 240px;
    scroll-snap-align:start;
  }
}
@media (max-width:480px){
  body.hq-redesign .hqd-recipe-col{
    flex:0 0 86vw;
  }
  body.hq-redesign .hqd-recipe-card--board{
    padding:11px 12px;
  }
}

/* ── Recipe / order toast: bottom-center, narrower ── */
@media (max-width:600px){
  body.hq-redesign .hqd-recipe-toast{
    left:12px;
    right:12px;
    transform:none;
    width:auto;
    max-width:none;
    text-align:center;
  }
}

/* ── Empty-state polish: tighter, smaller art at very-narrow ── */
@media (max-width:480px){
  body.hq-redesign .hqd-empty-state{
    padding:20px 16px;
    gap:14px;
  }
  body.hq-redesign .hqd-empty-state__art{
    width:72px;
    height:72px;
  }
  body.hq-redesign .hqd-empty-state__title{font-size:18px;}
  body.hq-redesign .hqd-empty-state__copy{font-size:12.5px;}
  body.hq-redesign .hqd-empty-state__cta{
    flex:1 0 auto;
    text-align:center;
    padding:11px 14px;
  }
}

/* ── Long-tail briefing: easier-to-read on mobile ── */
@media (max-width:600px){
  body.hq-redesign .hqd-page-briefing--lt{
    font-size:13px;
    padding:13px 14px;
  }
}

/* ── HQ already shows the bottom-left round + on mobile via
       .sidebar-expand-btn; lift our AI dock so it doesn't sit on top. */
@media (max-width:768px){
  body.hq-redesign.sidebar-collapsed .hqd-ai-dock{
    bottom:80px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Phase 17: Touch DnD shim — visual support
   ════════════════════════════════════════════════════════════════════ */
/* The touch shim attaches `touch-action: none` only while a card is
   being dragged (via JS state), not on the card itself, so vertical
   board scrolling still works in normal interaction. The ghost element
   below mirrors a Phase 12 card visual but disconnected from layout. */
body.hq-redesign .hqd-touch-ghost{
  /* All inline styles applied by JS so the ghost can sit independent
     of the column scroll context. We add a couple of niceties here. */
  border-radius:12px;
  filter:saturate(1.05);
  /* Disable any inherited transitions that might fight the JS-driven
     position updates on the ghost. */
  transition:none !important;
}
/* While a card is dragging via touch, prevent text selection that can
   pop up when long-pressing on iOS. */
body.hq-redesign .hqd-recipe-card--board.hqd-recipe-card--dragging,
body.hq-redesign .hqd-recipe-card--board.hqd-recipe-card--dragging *{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
/* Subtle "lift the column" cue on touch devices when a column is the
   active drop target — slightly stronger than the desktop hover state
   so finger-aim feels confirmed. */
@media (hover:none) and (pointer:coarse){
  body.hq-redesign .hqd-recipe-col__body--drag-over{
    background:rgba(200,169,110,.16);
    outline:2px dashed var(--gold,#C8A96E);
    outline-offset:-3px;
    border-radius:10px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Phase 18: Customer Spotlights rail
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign .hqd-cu-spotlights{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
  margin:0 0 24px;
}
@media (max-width:1080px){
  body.hq-redesign .hqd-cu-spotlights{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width:600px){
  body.hq-redesign .hqd-cu-spotlights{
    grid-template-columns:1fr;
  }
}
body.hq-redesign .hqd-cu-spot{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px 14px 14px;
  background:#fff;
  border:1px solid var(--border,#E2DDD4);
  border-radius:14px;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}
body.hq-redesign .hqd-cu-spot::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.45;
}
body.hq-redesign .hqd-cu-spot--gold::before{
  background:radial-gradient(ellipse 60% 100% at 100% 0%, rgba(200,169,110,.18) 0%, transparent 60%);
}
body.hq-redesign .hqd-cu-spot--coral::before{
  background:radial-gradient(ellipse 60% 100% at 100% 0%, rgba(232,122,93,.16) 0%, transparent 60%);
}
body.hq-redesign .hqd-cu-spot--mint::before{
  background:radial-gradient(ellipse 60% 100% at 100% 0%, rgba(52,211,153,.18) 0%, transparent 60%);
}
body.hq-redesign .hqd-cu-spot--navy::before{
  background:radial-gradient(ellipse 60% 100% at 100% 0%, rgba(45,47,168,.10) 0%, transparent 60%);
}
body.hq-redesign .hqd-cu-spot:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(20,16,68,.10), 0 2px 8px rgba(20,16,68,.05);
  border-color:var(--gold,#C8A96E);
}
body.hq-redesign .hqd-cu-spot:focus-visible{
  outline:2px solid var(--gold,#C8A96E);
  outline-offset:2px;
}
body.hq-redesign .hqd-cu-spot > *{position:relative;z-index:1;}

body.hq-redesign .hqd-cu-spot__avatar{
  flex-shrink:0;
  width:54px;
  height:54px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:18px;
  font-weight:900;
  color:#fff;
  letter-spacing:-.02em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25), 0 2px 8px rgba(20,16,68,.12);
}
body.hq-redesign .hqd-cu-spot__initials{line-height:1;}

body.hq-redesign .hqd-cu-spot__body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
body.hq-redesign .hqd-cu-spot__head{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
body.hq-redesign .hqd-cu-spot__tag{
  font-size:9px;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  padding:2px 7px;
  border-radius:99px;
  background:var(--navy,#1B1A6B);
  color:#fff;
  line-height:1.4;
}
body.hq-redesign .hqd-cu-spot--gold .hqd-cu-spot__tag{
  background:linear-gradient(135deg, var(--gold,#C8A96E), var(--gold-dk,#A8884E));
}
body.hq-redesign .hqd-cu-spot--coral .hqd-cu-spot__tag{
  background:linear-gradient(135deg, #E87A5D, #C87555);
}
body.hq-redesign .hqd-cu-spot--mint .hqd-cu-spot__tag{
  background:linear-gradient(135deg, #34D399, #10B981);
}
body.hq-redesign .hqd-cu-spot__segment{
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted,#7B7A9A);
  padding:2px 7px;
  border-radius:99px;
  background:#F7F5EE;
  border:1px solid var(--border,#E2DDD4);
}
body.hq-redesign .hqd-cu-spot__name{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:14px;
  font-weight:800;
  color:var(--navy,#1B1A6B);
  letter-spacing:-.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-top:1px;
}
body.hq-redesign .hqd-cu-spot__meta{
  font-size:11px;
  color:var(--muted,#7B7A9A);
}
body.hq-redesign .hqd-cu-spot__last{font-weight:600;}
body.hq-redesign .hqd-cu-spot__ltv{
  display:flex;
  align-items:baseline;
  gap:6px;
  margin-top:4px;
}
body.hq-redesign .hqd-cu-spot__ltv-value{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:17px;
  font-weight:900;
  color:var(--gold-dk,#A8884E);
  letter-spacing:-.01em;
}
body.hq-redesign .hqd-cu-spot__ltv-label{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  color:var(--muted,#7B7A9A);
  letter-spacing:.06em;
}
@media (prefers-reduced-motion:reduce){
  body.hq-redesign .hqd-cu-spot{transition:none;}
  body.hq-redesign .hqd-cu-spot:hover{transform:none;}
}

/* ════════════════════════════════════════════════════════════════════
   Phase 19: Recipe Lab list/grid polish
   Pure CSS overlay on the existing .recipe-card and .recipe-list-row
   classes rendered by hq.js — bring them visually in line with the
   Phase 12 kanban cards so all 3 view modes feel cohesive.
   ════════════════════════════════════════════════════════════════════ */

/* ── Grid card ───────────────────────────────────────────────────── */
body.hq-redesign .recipe-card{
  border-radius:14px;
  border:1.5px solid var(--border, #E2DDD4);
  /* The existing inline border-left:4px is per-stage color from
     renderRecipes; promote it to a subtle gradient ring on hover. */
  box-shadow:0 1px 2px rgba(17,17,40,.04), 0 2px 8px rgba(17,17,40,.04);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position:relative;
  overflow:hidden;
}
body.hq-redesign .recipe-card::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.55;
  background:radial-gradient(ellipse 70% 55% at 100% 0%, rgba(200,169,110,.08) 0%, transparent 65%);
  z-index:0;
}
body.hq-redesign .recipe-card > *{position:relative; z-index:1;}
body.hq-redesign .recipe-card:hover{
  transform:translateY(-3px);
  border-color:var(--gold, #C8A96E);
  box-shadow:0 12px 28px rgba(20,16,68,.10), 0 2px 8px rgba(20,16,68,.05);
}

/* Title — Plus Jakarta Sans bump, slightly tighter tracking */
body.hq-redesign .recipe-card-title{
  font-family:'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size:15.5px;
  font-weight:800;
  letter-spacing:-.012em;
  color:var(--navy, #1B1A6B);
}

/* Macro chips: pill-shaped, brand-toned bg, no separator dots */
body.hq-redesign .recipe-card-meta{
  gap:6px;
}
body.hq-redesign .recipe-card-meta > span[style*="color:var(--border)"]{display:none;}
body.hq-redesign .recipe-card-stat{
  font-size:10px;
  font-weight:700;
  color:var(--ink-2, #6B6B85);
  background:#F7F5EE;
  border:1px solid var(--border, #E2DDD4);
  padding:3px 9px;
  border-radius:99px;
  text-transform:lowercase;
  letter-spacing:.01em;
}

/* Footer action buttons hover treatment */
body.hq-redesign .recipe-card:hover .recipe-card-actions{
  opacity:1;
}
body.hq-redesign .recipe-card-actions button{
  border-radius:6px;
  transition:background .15s ease, color .15s ease;
}
body.hq-redesign .recipe-card-actions button:hover{
  background:rgba(200,169,110,.12);
  color:var(--gold-dk, #A8884E);
}
body.hq-redesign .recipe-card-actions .danger:hover{
  background:rgba(220,38,38,.10);
  color:#DC2626;
}

/* Photo: subtle bottom shadow so card body floats on it */
body.hq-redesign .recipe-card > img{
  border-radius:14px 14px 0 0;
  filter:saturate(1.04);
}

/* Boost the "Live" gold pill with a gradient + glow, matching Kanban */
body.hq-redesign .recipe-card-footer span[style*="background:var(--gold)"]{
  background:linear-gradient(135deg, var(--gold, #C8A96E), var(--gold-dk, #A8884E)) !important;
  box-shadow:0 2px 8px rgba(200,169,110,.40);
  text-shadow:0 1px 0 rgba(0,0,0,.08);
}

/* ── List row ────────────────────────────────────────────────────── */
body.hq-redesign .recipe-list-row{
  border-radius:12px !important;
  border:1.5px solid var(--border, #E2DDD4) !important;
  box-shadow:0 1px 2px rgba(17,17,40,.04) !important;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease !important;
}
body.hq-redesign .recipe-list-row:hover{
  background:#FAFAFD !important;
  border-color:var(--gold, #C8A96E) !important;
  transform:translateX(2px);
  box-shadow:0 4px 14px rgba(20,16,68,.06) !important;
}
body.hq-redesign .recipe-list-row > div:nth-child(2) > div:first-child{
  /* Recipe name in list row */
  font-family:'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--navy, #1B1A6B);
}
/* Macro pills inside list row — same lowercase pill style as grid */
body.hq-redesign .recipe-list-row span[style*="background:#D1FAE5"],
body.hq-redesign .recipe-list-row span[style*="background:var(--gold)"]{
  background:linear-gradient(135deg, var(--gold, #C8A96E), var(--gold-dk, #A8884E)) !important;
  box-shadow:0 2px 6px rgba(200,169,110,.35);
}

/* Stage badge inside grid card — soften */
body.hq-redesign .recipe-card-footer .badge{
  font-weight:800;
  letter-spacing:.04em;
  border-radius:99px;
  padding:3px 10px;
}

@media (prefers-reduced-motion:reduce){
  body.hq-redesign .recipe-card,
  body.hq-redesign .recipe-list-row{transition:none;}
  body.hq-redesign .recipe-card:hover,
  body.hq-redesign .recipe-list-row:hover{transform:none;}
}

/* ── Filter pills (Status/Category/Stage) — Phase 19 polish ───── */
/* The Phase #575 toolbar already styles these; just make the active
   pill visually pop with a gold ring. */
body.hq-redesign #recipe-status-pills button.active,
body.hq-redesign #recipe-cat-pills button.active{
  box-shadow:0 0 0 3px rgba(200,169,110,.25);
}
body.hq-redesign #recipe-stage-pills button.active{
  box-shadow:0 0 0 2px rgba(45,47,168,.18);
}

/* ════════════════════════════════════════════════════════════════════
   Phase 20: Settings module polish
   Pure CSS overlay on the existing .settings-section / .settings-tabs /
   .stab classes — Settings finally feels like the rest of HQ. No JS
   changes; every selector scoped to body.hq-redesign #mod-settings.
   ════════════════════════════════════════════════════════════════════ */

/* ── Tab bar ─────────────────────────────────────────────────────── */
body.hq-redesign #mod-settings .settings-tabs{
  display:flex;
  gap:4px;
  border-bottom:1.5px solid var(--border, #E2DDD4);
  padding:0 4px;
  position:sticky;
  top:0;
  background:linear-gradient(180deg, rgba(247,245,238,.96) 0%, rgba(247,245,238,.85) 100%);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  z-index:5;
  margin:-4px -4px 22px;
  padding-top:6px;
}
body.hq-redesign #mod-settings .stab{
  padding:11px 16px;
  font-family:'Inter',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.005em;
  color:var(--muted, #7B7A9A);
  border:none;
  background:transparent;
  cursor:pointer;
  border-bottom:2px solid transparent;
  margin-bottom:-1.5px;
  transition:color .18s ease, border-color .18s ease, transform .18s ease;
  border-radius:8px 8px 0 0;
}
body.hq-redesign #mod-settings .stab:hover{
  color:var(--navy, #1B1A6B);
  background:rgba(255,255,255,.5);
}
body.hq-redesign #mod-settings .stab.active{
  color:var(--gold-dk, #A8884E);
  border-bottom-color:var(--gold, #C8A96E);
  background:#fff;
}
body.hq-redesign #mod-settings .stab.active::after{
  content:'';
  display:block;
  height:2px;
  width:100%;
  background:linear-gradient(90deg, var(--gold, #C8A96E), var(--gold-dk, #A8884E));
  position:relative;
  bottom:-13px;
  border-radius:2px;
}

/* ── Section cards ───────────────────────────────────────────────── */
body.hq-redesign #mod-settings .settings-section{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1.5px solid var(--border, #E2DDD4);
  border-radius:14px;
  box-shadow:0 1px 2px rgba(17,17,40,.04), 0 4px 16px rgba(17,17,40,.04);
  padding:26px 28px;
  margin-bottom:18px;
  transition:border-color .18s ease, box-shadow .18s ease;
}
body.hq-redesign #mod-settings .settings-section::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:radial-gradient(ellipse 50% 40% at 100% 0%, rgba(200,169,110,.06) 0%, transparent 65%);
}
body.hq-redesign #mod-settings .settings-section > *{position:relative; z-index:1;}
body.hq-redesign #mod-settings .settings-section:hover{
  border-color:rgba(200,169,110,.32);
}
body.hq-redesign #mod-settings .settings-section h3{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.018em;
  color:var(--navy, #1B1A6B);
  margin:0 0 6px;
  display:flex;
  align-items:center;
  gap:10px;
}
body.hq-redesign #mod-settings .settings-section h3::before{
  content:'';
  display:inline-block;
  width:4px;
  height:18px;
  border-radius:2px;
  background:linear-gradient(180deg, var(--navy-soft, #2D2FA8) 0%, var(--gold, #C8A96E) 100%);
}
/* Subtle subtitle slot — modules that have a <p> right after h3 */
body.hq-redesign #mod-settings .settings-section h3 + p{
  font-size:13px;
  color:var(--muted, #7B7A9A);
  line-height:1.6;
  margin:0 0 18px;
  max-width:680px;
}

/* ── Form fields — keep base styling but tighten spacing ────────── */
body.hq-redesign #mod-settings .fg{margin-bottom:14px;}
body.hq-redesign #mod-settings .fg label{
  font-family:'Inter',sans-serif;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted, #7B7A9A);
  margin-bottom:6px;
}
body.hq-redesign #mod-settings .fc{
  border-radius:10px;
  border-width:1.5px;
}
body.hq-redesign #mod-settings .fc:focus{
  border-color:var(--gold, #C8A96E);
  box-shadow:0 0 0 4px rgba(200,169,110,.16);
}
body.hq-redesign #mod-settings .form-row{gap:18px;}

/* ── Save buttons ─────────────────────────────────────────────────── */
body.hq-redesign #mod-settings .settings-section .btn-primary{
  background:linear-gradient(135deg, var(--navy, #1B1A6B) 0%, var(--navy-soft, #2D2FA8) 60%, var(--gold-dk, #A8884E) 100%);
  border:none;
  color:#fff;
  padding:11px 22px;
  border-radius:10px;
  font-weight:800;
  letter-spacing:.005em;
  box-shadow:0 4px 14px rgba(20,16,68,.18);
  transition:transform .15s ease, box-shadow .15s ease;
}
body.hq-redesign #mod-settings .settings-section .btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(20,16,68,.24);
}

/* ── License row + team row uniformity ──────────────────────────── */
body.hq-redesign #mod-settings .license-item{
  background:#FAFAFD;
  border:1px solid var(--border, #E2DDD4);
  border-radius:10px;
  padding:12px 14px;
}

/* ── API key reveal — make the "How to get your API key" callout
       feel like a tip, not flat instructions ───────────────────────── */
body.hq-redesign #mod-settings .settings-section [style*="background:var(--bg)"]:not(.btn-primary){
  background:linear-gradient(135deg, rgba(139,92,246,.04), rgba(45,47,168,.05)) !important;
  border-color:rgba(45,47,168,.18) !important;
  border-radius:12px !important;
  position:relative;
}
body.hq-redesign #mod-settings .settings-section [style*="background:var(--bg)"]:not(.btn-primary) strong{
  color:var(--navy, #1B1A6B);
}

/* ── Updates Log table polish ───────────────────────────────────── */
body.hq-redesign #mod-settings #stab-updates-panel table{
  border-radius:12px;
  overflow:hidden;
}

@media (prefers-reduced-motion:reduce){
  body.hq-redesign #mod-settings .stab,
  body.hq-redesign #mod-settings .settings-section,
  body.hq-redesign #mod-settings .settings-section .btn-primary{transition:none;}
  body.hq-redesign #mod-settings .settings-section .btn-primary:hover{transform:none;}
}

@media (max-width:768px){
  body.hq-redesign #mod-settings .settings-tabs{
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  body.hq-redesign #mod-settings .stab{
    flex:0 0 auto;
    scroll-snap-align:start;
  }
  body.hq-redesign #mod-settings .settings-section{
    padding:20px 18px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Phase 21: Settings overview KPI card
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign #mod-settings .hqd-settings-ov{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg, #1B1A6B 0%, #2D2FA8 50%, #14134F 100%);
  color:#fff;
  border-radius:18px;
  padding:24px 28px;
  margin-bottom:22px;
  box-shadow:0 18px 48px rgba(20,16,68,.22), 0 4px 14px rgba(20,16,68,.12);
}
body.hq-redesign #mod-settings .hqd-settings-ov::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(200,169,110,.20) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(232,121,166,.10) 0%, transparent 60%);
}
body.hq-redesign #mod-settings .hqd-settings-ov > *{position:relative; z-index:1;}

body.hq-redesign #mod-settings .hqd-settings-ov__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
body.hq-redesign #mod-settings .hqd-settings-ov__brand{
  display:flex;
  align-items:center;
  gap:14px;
}
body.hq-redesign #mod-settings .hqd-settings-ov__logo{
  width:44px;
  height:44px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--gold,#C8A96E), var(--gold-dk,#A8884E));
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:14px;
  font-weight:900;
  color:#1B1A6B;
  letter-spacing:-.02em;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
body.hq-redesign #mod-settings .hqd-settings-ov__brand-text{
  display:flex;
  flex-direction:column;
  gap:3px;
}
body.hq-redesign #mod-settings .hqd-settings-ov__brand-name{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:20px;
  font-weight:900;
  letter-spacing:-.02em;
  color:#fff;
  line-height:1.05;
}
body.hq-redesign #mod-settings .hqd-settings-ov__brand-sub{
  font-size:12px;
  font-weight:500;
  color:rgba(255,255,255,.72);
  display:flex;
  align-items:center;
  gap:5px;
}
body.hq-redesign #mod-settings .hqd-settings-ov__brand-sub strong{
  color:#fff;
  font-weight:700;
}
body.hq-redesign #mod-settings .hqd-pulse-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#34D399;
  box-shadow:0 0 0 0 rgba(52,211,153,.6);
  animation:hqd-settings-pulse 2.2s infinite;
  margin-right:4px;
}
@keyframes hqd-settings-pulse{
  0%   { box-shadow:0 0 0 0 rgba(52,211,153,.55); }
  70%  { box-shadow:0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow:0 0 0 0 rgba(52,211,153,0); }
}
@media (prefers-reduced-motion:reduce){
  body.hq-redesign #mod-settings .hqd-pulse-dot{animation:none;}
}

body.hq-redesign #mod-settings .hqd-settings-ov__pills{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
body.hq-redesign #mod-settings .hqd-settings-ov__pill{
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  padding:5px 11px;
  border-radius:99px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.92);
}
body.hq-redesign #mod-settings .hqd-settings-ov__pill--ok{
  background:rgba(52,211,153,.20);
  border-color:rgba(52,211,153,.50);
  color:#A7F3D0;
}
body.hq-redesign #mod-settings .hqd-settings-ov__pill--off{
  background:rgba(232,121,166,.18);
  border-color:rgba(232,121,166,.40);
  color:#FBCFE8;
}
body.hq-redesign #mod-settings .hqd-settings-ov__pill--ver{
  font-family:ui-monospace, Menlo, Consolas, monospace;
  font-size:10px;
  letter-spacing:.02em;
  color:rgba(255,255,255,.68);
}

body.hq-redesign #mod-settings .hqd-settings-ov__stats{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:10px;
}
@media (max-width:900px){
  body.hq-redesign #mod-settings .hqd-settings-ov__stats{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}
@media (max-width:520px){
  body.hq-redesign #mod-settings .hqd-settings-ov__stats{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
body.hq-redesign #mod-settings .hqd-settings-ov__stat{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:11px 13px 13px;
  display:flex;
  flex-direction:column;
  gap:2px;
  position:relative;
  overflow:hidden;
}
body.hq-redesign #mod-settings .hqd-settings-ov__stat::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.55;
}
body.hq-redesign #mod-settings .hqd-settings-ov__stat--gold::before{
  background:radial-gradient(ellipse 70% 100% at 100% 0%, rgba(200,169,110,.18) 0%, transparent 65%);
}
body.hq-redesign #mod-settings .hqd-settings-ov__stat--mint::before{
  background:radial-gradient(ellipse 70% 100% at 100% 0%, rgba(52,211,153,.16) 0%, transparent 65%);
}
body.hq-redesign #mod-settings .hqd-settings-ov__stat--rose::before{
  background:radial-gradient(ellipse 70% 100% at 100% 0%, rgba(232,121,166,.14) 0%, transparent 65%);
}
body.hq-redesign #mod-settings .hqd-settings-ov__stat--coral::before{
  background:radial-gradient(ellipse 70% 100% at 100% 0%, rgba(232,122,93,.16) 0%, transparent 65%);
}
body.hq-redesign #mod-settings .hqd-settings-ov__stat--navy::before{
  background:radial-gradient(ellipse 70% 100% at 100% 0%, rgba(45,47,168,.14) 0%, transparent 65%);
}
body.hq-redesign #mod-settings .hqd-settings-ov__stat > *{position:relative; z-index:1;}
body.hq-redesign #mod-settings .hqd-settings-ov__stat-val{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:22px;
  font-weight:900;
  color:#fff;
  letter-spacing:-.02em;
  line-height:1;
}
body.hq-redesign #mod-settings .hqd-settings-ov__stat-lbl{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:rgba(255,255,255,.62);
  margin-top:6px;
}

@media (max-width:768px){
  body.hq-redesign #mod-settings .hqd-settings-ov{
    padding:20px 18px;
    border-radius:14px;
  }
  body.hq-redesign #mod-settings .hqd-settings-ov__brand-name{font-size:18px;}
}

/* ════════════════════════════════════════════════════════════════════
   Phase 22: Long-press FAB fan-out menu + Sound feedback toggle
   ════════════════════════════════════════════════════════════════════ */

/* ── FAB fan-out menu ──────────────────────────────────────────── */
body.hq-redesign .hqd-fab-menu{
  position:fixed;
  right:14px;
  bottom:80px;
  z-index:79;
  background:#fff;
  border:1px solid var(--border, #E2DDD4);
  border-radius:14px;
  box-shadow:0 18px 48px rgba(20,16,68,.18), 0 4px 14px rgba(20,16,68,.10);
  padding:10px;
  width:240px;
  opacity:0;
  pointer-events:none;
  transform:translateY(8px) scale(.96);
  transform-origin:bottom right;
  transition:opacity .18s ease, transform .18s ease;
}
body.hq-redesign .hqd-fab-menu[data-open="true"]{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
body.hq-redesign .hqd-fab-menu__hint{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted, #7B7A9A);
  padding:4px 10px 6px;
  border-bottom:1px solid var(--border, #E2DDD4);
  margin-bottom:6px;
}
body.hq-redesign .hqd-fab-menu__list{
  display:flex;
  flex-direction:column;
  gap:1px;
}
body.hq-redesign .hqd-fab-menu__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 10px;
  border:none;
  background:transparent;
  font-family:'Inter',sans-serif;
  font-size:13px;
  font-weight:600;
  color:var(--ink, #2C2C3A);
  text-align:left;
  cursor:pointer;
  border-radius:8px;
  transition:background .15s ease, color .15s ease;
}
body.hq-redesign .hqd-fab-menu__item:hover{
  background:linear-gradient(135deg, rgba(200,169,110,.10), rgba(45,47,168,.06));
  color:var(--navy, #1B1A6B);
}
body.hq-redesign .hqd-fab-menu__item:focus-visible{
  outline:2px solid var(--gold, #C8A96E);
  outline-offset:1px;
}
body.hq-redesign .hqd-fab-menu__item-icon{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  background:#F7F5EE;
  border-radius:6px;
  border:1px solid var(--border, #E2DDD4);
  flex-shrink:0;
}
body.hq-redesign .hqd-fab-menu__item-label{
  flex:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (prefers-reduced-motion:reduce){
  body.hq-redesign .hqd-fab-menu{transition:none;}
}
@media (max-width:768px){
  body.hq-redesign .hqd-fab-menu{
    right:14px;
    bottom:70px;
    width:calc(100vw - 28px);
    max-width:280px;
  }
}

/* While AI dock expanded, lift the menu so it doesn't sit on the panel */
body.hq-redesign[data-hqd-ai="expanded"] .hqd-fab-menu{
  bottom:500px;
}
@media (max-width:768px){
  body.hq-redesign[data-hqd-ai="expanded"] .hqd-fab-menu{
    bottom:auto;
    top:80px;
    left:14px;
    right:14px;
    max-width:none;
    width:auto;
  }
}

/* ── Sound feedback toggle (in Settings → AI Assistant tab) ──── */
body.hq-redesign .hqd-sound-toggle-wrap{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:24px;
  padding:18px 20px;
  background:linear-gradient(135deg, rgba(45,47,168,.04), rgba(232,121,166,.05));
  border:1px solid rgba(45,47,168,.18);
  border-radius:12px;
}
body.hq-redesign .hqd-sound-toggle__head{flex:1; min-width:0;}
body.hq-redesign .hqd-sound-toggle__title{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:15px;
  font-weight:800;
  color:var(--navy, #1B1A6B);
  margin-bottom:4px;
}
body.hq-redesign .hqd-sound-toggle__sub{
  font-size:12px;
  color:var(--muted, #7B7A9A);
  line-height:1.55;
}
body.hq-redesign .hqd-sound-toggle__btn{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px;
  background:transparent;
  border:none;
  cursor:pointer;
  font-family:'Inter',sans-serif;
  flex-shrink:0;
}
body.hq-redesign .hqd-sound-toggle__track{
  position:relative;
  display:inline-block;
  width:42px;
  height:24px;
  background:#E2DDD4;
  border-radius:99px;
  transition:background .18s ease;
}
body.hq-redesign .hqd-sound-toggle__dot{
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
  transition:transform .18s ease;
}
body.hq-redesign .hqd-sound-toggle__btn[aria-pressed="true"] .hqd-sound-toggle__track{
  background:linear-gradient(135deg, var(--gold, #C8A96E), var(--gold-dk, #A8884E));
}
body.hq-redesign .hqd-sound-toggle__btn[aria-pressed="true"] .hqd-sound-toggle__dot{
  transform:translateX(18px);
}
body.hq-redesign .hqd-sound-toggle__label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ink-2, #6B6B85);
  min-width:28px;
}
body.hq-redesign .hqd-sound-toggle__btn[aria-pressed="true"] .hqd-sound-toggle__label{
  color:var(--gold-dk, #A8884E);
}

/* Dynamic shortcut section in help overlay (Phase 22) */
body.hq-redesign .hqd-shortcuts-help__section--dynamic{
  background:linear-gradient(135deg, rgba(200,169,110,.08), rgba(45,47,168,.04));
  border:1px solid rgba(200,169,110,.20);
  border-radius:10px;
  padding:12px 14px;
  margin-bottom:6px;
}
body.hq-redesign .hqd-shortcuts-help__section--dynamic .hqd-shortcuts-help__section-title{
  color:var(--gold-dk, #A8884E);
}

/* ════════════════════════════════════════════════════════════════════
   Phase 23: Order detail timeline + Customer detail order feed
   ════════════════════════════════════════════════════════════════════ */

/* ── Order timeline ───────────────────────────────────────────────── */
body.hq-redesign .hqd-order-timeline{
  background:linear-gradient(135deg, rgba(200,169,110,.06), rgba(45,47,168,.04));
  border:1px solid rgba(200,169,110,.18);
  border-radius:14px;
  padding:18px 20px 14px;
  margin-bottom:18px;
}
body.hq-redesign .hqd-order-timeline__title{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:var(--gold-dk, #A8884E);
  margin-bottom:14px;
}

body.hq-redesign .hqd-order-timeline__steps{
  display:flex;
  align-items:flex-start;
  gap:6px;
  position:relative;
}
body.hq-redesign .hqd-order-timeline__step{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
  min-width:0;
}
body.hq-redesign .hqd-order-timeline__connector{
  flex:1;
  height:2px;
  background:#E2DDD4;
  align-self:flex-start;
  margin-top:13px;
  border-radius:1px;
  transition:background .25s ease;
}
body.hq-redesign .hqd-order-timeline__connector--done{
  background:linear-gradient(90deg, var(--gold, #C8A96E) 0%, var(--gold-dk, #A8884E) 100%);
}
body.hq-redesign .hqd-order-timeline__dot{
  width:28px;
  height:28px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1.5px solid #E2DDD4;
  font-size:13px;
  line-height:1;
  flex-shrink:0;
  transition:background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
body.hq-redesign .hqd-order-timeline__step--done .hqd-order-timeline__dot{
  background:linear-gradient(135deg, var(--gold, #C8A96E), var(--gold-dk, #A8884E));
  border-color:var(--gold-dk, #A8884E);
  box-shadow:0 4px 12px rgba(200,169,110,.32);
}
body.hq-redesign .hqd-order-timeline__dot-empty{
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#D5D2C7;
}
body.hq-redesign .hqd-order-timeline__label{
  font-size:11px;
  font-weight:700;
  color:var(--ink-2, #6B6B85);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
body.hq-redesign .hqd-order-timeline__step--done .hqd-order-timeline__label{
  color:var(--navy, #1B1A6B);
}
body.hq-redesign .hqd-order-timeline__ts{
  font-size:10px;
  font-weight:600;
  color:var(--muted, #7B7A9A);
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
body.hq-redesign .hqd-order-timeline__ts--pending{opacity:.4;}

/* Refunded / cancelled state — inline alert instead of a checklist */
body.hq-redesign .hqd-order-timeline__refunded{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:14px 16px;
  background:rgba(220,38,38,.07);
  border:1px solid rgba(220,38,38,.20);
  border-radius:10px;
}
body.hq-redesign .hqd-order-timeline__refunded-icon{
  font-size:20px;
  color:#DC2626;
  flex-shrink:0;
  font-weight:800;
}
body.hq-redesign .hqd-order-timeline__refunded-title{
  font-size:14px;
  font-weight:800;
  color:#B91C1C;
  margin-bottom:2px;
}
body.hq-redesign .hqd-order-timeline__refunded-sub{
  font-size:12px;
  color:#9F1D1D;
}

@media (max-width:520px){
  body.hq-redesign .hqd-order-timeline__label{font-size:10px;}
  body.hq-redesign .hqd-order-timeline__ts{font-size:9px;}
}
@media (prefers-reduced-motion:reduce){
  body.hq-redesign .hqd-order-timeline__dot,
  body.hq-redesign .hqd-order-timeline__connector{transition:none;}
}

/* ── Customer detail order feed ─────────────────────────────────── */
body.hq-redesign .hqd-customer-feed{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--border, #E2DDD4);
}
body.hq-redesign .hqd-customer-feed__title{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:var(--gold-dk, #A8884E);
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:8px;
}
body.hq-redesign .hqd-customer-feed__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:18px;
  padding:0 6px;
  border-radius:99px;
  background:rgba(200,169,110,.18);
  color:var(--gold-dk, #A8884E);
  font-size:10px;
  font-weight:800;
  letter-spacing:0;
}
body.hq-redesign .hqd-customer-feed__list{
  display:flex;
  flex-direction:column;
  gap:6px;
  position:relative;
}
body.hq-redesign .hqd-customer-feed__list::before{
  content:'';
  position:absolute;
  left:14px;
  top:6px;
  bottom:6px;
  width:1.5px;
  background:linear-gradient(180deg, transparent 0%, var(--gold, #C8A96E) 12%, rgba(200,169,110,.5) 88%, transparent 100%);
  pointer-events:none;
  z-index:0;
}
body.hq-redesign .hqd-customer-feed__row{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:10px 14px 10px 0;
  background:transparent;
  border:none;
  width:100%;
  cursor:pointer;
  font-family:'Inter',sans-serif;
  text-align:left;
  position:relative;
  z-index:1;
  transition:transform .15s ease;
}
body.hq-redesign .hqd-customer-feed__row:hover{
  transform:translateX(2px);
}
body.hq-redesign .hqd-customer-feed__row-marker{
  width:30px;
  height:30px;
  border-radius:50%;
  background:#fff;
  border:2px solid var(--gold, #C8A96E);
  flex-shrink:0;
  position:relative;
  margin-left:0;
  box-shadow:0 0 0 4px rgba(247,245,238,.95);
}
body.hq-redesign .hqd-customer-feed__row-marker::after{
  content:'';
  position:absolute;
  inset:5px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--gold, #C8A96E), var(--gold-dk, #A8884E));
}
body.hq-redesign .hqd-customer-feed__row--mint .hqd-customer-feed__row-marker{
  border-color:var(--mint, #34D399);
}
body.hq-redesign .hqd-customer-feed__row--mint .hqd-customer-feed__row-marker::after{
  background:linear-gradient(135deg, var(--mint, #34D399), var(--mint-dk, #10B981));
}
body.hq-redesign .hqd-customer-feed__row--coral .hqd-customer-feed__row-marker{
  border-color:#DC2626;
}
body.hq-redesign .hqd-customer-feed__row--coral .hqd-customer-feed__row-marker::after{
  background:linear-gradient(135deg, #EF4444, #B91C1C);
}
body.hq-redesign .hqd-customer-feed__row-body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
body.hq-redesign .hqd-customer-feed__row-head{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
body.hq-redesign .hqd-customer-feed__row-status{
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--navy, #1B1A6B);
}
body.hq-redesign .hqd-customer-feed__row-when{
  font-size:11px;
  color:var(--muted, #7B7A9A);
  font-weight:600;
}
body.hq-redesign .hqd-customer-feed__row-meta{
  font-size:11px;
  color:var(--muted, #7B7A9A);
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
body.hq-redesign .hqd-customer-feed__row-ref{
  font-family:ui-monospace, Menlo, Consolas, monospace;
  font-weight:700;
  color:var(--ink-2, #6B6B85);
}
body.hq-redesign .hqd-customer-feed__row-total{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:14px;
  font-weight:900;
  color:var(--gold-dk, #A8884E);
  flex-shrink:0;
  text-align:right;
}
body.hq-redesign .hqd-customer-feed__empty{
  font-size:12px;
  color:var(--muted, #7B7A9A);
  font-style:italic;
  padding:12px 0;
}
body.hq-redesign .hqd-customer-feed__more{
  margin-top:8px;
  padding:8px 14px;
  font-size:11px;
  color:var(--muted, #7B7A9A);
  text-align:center;
  border-top:1px dashed var(--border, #E2DDD4);
}
@media (prefers-reduced-motion:reduce){
  body.hq-redesign .hqd-customer-feed__row{transition:none;}
  body.hq-redesign .hqd-customer-feed__row:hover{transform:none;}
}

/* ════════════════════════════════════════════════════════════════════
   Phase 24: Sidebar icons (CSS-only, inline SVG via mask-image)
   Each [data-mod] gets a monoline 18px icon prepended via ::before.
   The base color is white at 70% opacity (matches .si default text);
   .si.active swaps in a gold tint via background-color (mask-image
   preserves shape, background-color paints it).
   We only target the desktop sidebar — mobile bottom-nav has its own.
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign .sidebar .si[data-mod]::before{
  content:'';
  display:inline-block;
  width:18px;
  height:18px;
  flex-shrink:0;
  background-color:rgba(255,255,255,.7);
  -webkit-mask-position:center center;
          mask-position:center center;
  -webkit-mask-repeat:no-repeat;
          mask-repeat:no-repeat;
  -webkit-mask-size:contain;
          mask-size:contain;
  transition:background-color .2s ease;
}
body.hq-redesign .sidebar .si[data-mod]:hover::before{
  background-color:#fff;
}
body.hq-redesign .sidebar .si.active[data-mod]::before{
  background-color:var(--gold, #C8A96E);
}
/* Generic fallback dot — used by any module without an explicit SVG */
body.hq-redesign .sidebar .si[data-mod]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><circle cx='12' cy='12' r='4'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><circle cx='12' cy='12' r='4'/></svg>");
}

/* Per-module SVG icons. 1.5px stroke, currentColor, 24x24 viewBox. */
body.hq-redesign .sidebar .si[data-mod="overview"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='13' width='4' height='7'/><rect x='10' y='9' width='4' height='11'/><rect x='16' y='5' width='4' height='15'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='13' width='4' height='7'/><rect x='10' y='9' width='4' height='11'/><rect x='16' y='5' width='4' height='15'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="recipes"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 3h6M10 3v6L5 19a2 2 0 0 0 1.7 3h10.6A2 2 0 0 0 19 19l-5-10V3'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 3h6M10 3v6L5 19a2 2 0 0 0 1.7 3h10.6A2 2 0 0 0 19 19l-5-10V3'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="projects"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="tasks"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='4' width='16' height='16' rx='3'/><path d='m8 12 3 3 5-6'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='4' width='16' height='16' rx='3'/><path d='m8 12 3 3 5-6'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="documents"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z'/><path d='M14 3v5h5'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z'/><path d='M14 3v5h5'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="orders"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 7h12l-1 13a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2L6 7Z'/><path d='M9 7V5a3 3 0 0 1 6 0v2'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 7h12l-1 13a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2L6 7Z'/><path d='M9 7V5a3 3 0 0 1 6 0v2'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="customers"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21a8 8 0 0 1 16 0'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21a8 8 0 0 1 16 0'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="finmerch"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v18M16 7H10a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6H7'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v18M16 7H10a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6H7'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="catering"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8'/><circle cx='12' cy='12' r='3'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8'/><circle cx='12' cy='12' r='3'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="emailAlerts"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='18' height='13' rx='2'/><path d='m3 7 9 6 9-6'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='18' height='13' rx='2'/><path d='m3 7 9 6 9-6'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="support"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a4 4 0 0 1-4 4h-1l-4 3v-3H8a4 4 0 0 1-4-4V9a4 4 0 0 1 4-4h9a4 4 0 0 1 4 4Z'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a4 4 0 0 1-4 4h-1l-4 3v-3H8a4 4 0 0 1-4-4V9a4 4 0 0 1 4-4h9a4 4 0 0 1 4 4Z'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="marketResearch"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='10' cy='10' r='6'/><path d='m20 20-5-5'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='10' cy='10' r='6'/><path d='m20 20-5-5'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="marketingAI"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='m12 3 2.5 5.5L20 11l-5.5 2.5L12 19l-2.5-5.5L4 11l5.5-2.5L12 3Z'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='m12 3 2.5 5.5L20 11l-5.5 2.5L12 19l-2.5-5.5L4 11l5.5-2.5L12 3Z'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="blogs"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4l11-11-4-4L4 16v4Z'/><path d='m13 6 4 4'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4l11-11-4-4L4 16v4Z'/><path d='m13 6 4 4'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="popups"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v6m0 0c3 0 6 4 6 12H6c0-8 3-12 6-12Z'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v6m0 0c3 0 6 4 6 12H6c0-8 3-12 6-12Z'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="gbp"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="leads"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4h18l-7 9v7l-4-2v-5L3 4Z'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4h18l-7 9v7l-4-2v-5L3 4Z'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="qrTracker"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='7'/><rect x='14' y='3' width='7' height='7'/><rect x='3' y='14' width='7' height='7'/><path d='M14 14h3v3h-3zM20 14v3M14 20h3'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='7'/><rect x='14' y='3' width='7' height='7'/><rect x='3' y='14' width='7' height='7'/><path d='M14 14h3v3h-3zM20 14v3M14 20h3'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="flyerMap"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='m3 6 6-3 6 3 6-3v15l-6 3-6-3-6 3V6Z'/><path d='M9 3v15M15 6v15'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='m3 6 6-3 6 3 6-3v15l-6 3-6-3-6 3V6Z'/><path d='M9 3v15M15 6v15'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="messages"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5h16v11H8l-4 4V5Z'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5h16v11H8l-4 4V5Z'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="suppliers"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7h11v10H3zM14 11h4l3 3v3h-7'/><circle cx='7' cy='18' r='2'/><circle cx='17' cy='18' r='2'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7h11v10H3zM14 11h4l3 3v3h-7'/><circle cx='7' cy='18' r='2'/><circle cx='17' cy='18' r='2'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="kitchenComparison"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='13' r='7'/><path d='M12 6V3M9 3h6'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='13' r='7'/><path d='M12 6V3M9 3h6'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="calendar"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M3 9h18M8 3v4M16 3v4'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M3 9h18M8 3v4M16 3v4'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="contacts"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='4' width='16' height='16' rx='2'/><circle cx='12' cy='10' r='3'/><path d='M7 18a5 5 0 0 1 10 0'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='4' width='16' height='16' rx='2'/><circle cx='12' cy='10' r='3'/><path d='M7 18a5 5 0 0 1 10 0'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="events"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8a2 2 0 0 1 0-4h16a2 2 0 0 1 0 4M4 8h16v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8Z'/><path d='M12 8v12'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8a2 2 0 0 1 0-4h16a2 2 0 0 1 0 4M4 8h16v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8Z'/><path d='M12 8v12'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="ladders"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 3v18M17 3v18M7 8h10M7 13h10M7 18h10'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 3v18M17 3v18M7 8h10M7 13h10M7 18h10'/></svg>");
}
body.hq-redesign .sidebar .si[data-mod="settings"]::before{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 0 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 0 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3h.1a1.7 1.7 0 0 0 1-1.5V3a2 2 0 0 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8v.1a1.7 1.7 0 0 0 1.5 1H21a2 2 0 0 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 0 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 0 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3h.1a1.7 1.7 0 0 0 1-1.5V3a2 2 0 0 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8v.1a1.7 1.7 0 0 0 1.5 1H21a2 2 0 0 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z'/></svg>");
}

/* ════════════════════════════════════════════════════════════════════
   Phase 24: Recipe Lab grid card upgrade + remove button
   Builds on the Phase 19 overlay; bumps title size, adds a top-right
   remove button, photo gradient mask, and a gold "LIVE" pill on the
   photo for published recipes. JS in hq-design-v2.js applies a
   data-hqd-enhanced attribute via MutationObserver — the LIVE pill
   only renders when JS adds the .hqd-recipe-card--live class.
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign .recipe-card[data-hqd-enhanced]{
  /* Stronger lift on hover (Phase 19 had -3px) */
}
body.hq-redesign .recipe-card[data-hqd-enhanced]:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 32px rgba(20,16,68,.12),
             0 0 0 2px rgba(200,169,110,.35),
             0 2px 8px rgba(20,16,68,.05);
}

/* Title bumped to 17px Plus Jakarta 900 once enhanced */
body.hq-redesign .recipe-card[data-hqd-enhanced] .recipe-card-title{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:17px;
  font-weight:900;
  letter-spacing:-.014em;
  line-height:1.25;
}

/* Photo gradient mask: dark vignette at bottom so any title/pill
   overlay sits cleanly even on busy photos */
body.hq-redesign .recipe-card[data-hqd-enhanced] > img{
  border-radius:14px 14px 0 0;
  filter:saturate(1.06);
}
body.hq-redesign .recipe-card[data-hqd-enhanced]::after{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:110px;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(17,17,40,0) 55%, rgba(17,17,40,.18) 100%);
  z-index:1;
}
/* When the card has no photo, suppress the gradient mask */
body.hq-redesign .recipe-card[data-hqd-enhanced]:not(:has(> img))::after{
  display:none;
}

/* Remove (×) button — top-right, ~28x28, gold ring, red on hover */
body.hq-redesign .hqd-recipe-card-remove{
  position:absolute;
  top:8px;
  right:8px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  border:1.5px solid var(--gold, #C8A96E);
  color:var(--navy, #1B1A6B);
  font-size:18px;
  font-weight:700;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
  padding:0;
  box-shadow:0 2px 6px rgba(20,16,68,.12);
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  opacity:.85;
}
body.hq-redesign .recipe-card[data-hqd-enhanced]:hover .hqd-recipe-card-remove{
  opacity:1;
}
body.hq-redesign .hqd-recipe-card-remove:hover{
  background:#DC2626;
  color:#fff;
  border-color:#DC2626;
  transform:scale(1.08);
}
body.hq-redesign .hqd-recipe-card-remove:focus-visible{
  outline:2px solid var(--gold, #C8A96E);
  outline-offset:2px;
}

/* Gold "LIVE" pill on the top-LEFT of the photo (only added when
   JS marks the card with .hqd-recipe-card--live). Existing footer
   pill stays intact. */
body.hq-redesign .hqd-recipe-card-live-pill{
  position:absolute;
  top:8px;
  left:8px;
  z-index:5;
  background:linear-gradient(135deg, var(--gold, #C8A96E), var(--gold-dk, #A8884E));
  color:#fff;
  padding:3px 9px;
  border-radius:99px;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:0 2px 8px rgba(200,169,110,.5), 0 0 0 1px rgba(255,255,255,.4) inset;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
}

/* Action row — make buttons feel like a polished group, not form-y */
body.hq-redesign .recipe-card[data-hqd-enhanced] .recipe-card-actions{
  background:rgba(247,245,238,.6);
  border-radius:8px;
  padding:2px 4px;
  border:1px solid rgba(226,221,212,.7);
}
body.hq-redesign .recipe-card[data-hqd-enhanced] .recipe-card-actions button{
  font-size:10.5px;
  padding:3px 7px;
}
body.hq-redesign .recipe-card[data-hqd-enhanced] .recipe-card-divider{
  height:10px;
}

@media (prefers-reduced-motion:reduce){
  body.hq-redesign .recipe-card[data-hqd-enhanced]{transition:none;}
  body.hq-redesign .recipe-card[data-hqd-enhanced]:hover{transform:none;}
  body.hq-redesign .hqd-recipe-card-remove{transition:none;}
  body.hq-redesign .hqd-recipe-card-remove:hover{transform:none;}
}

/* ════════════════════════════════════════════════════════════════════
   Recipe Lab Grid v2 (Phase 25)
   Premium SaaS-grade card grid that replaces hq.js's legacy markup
   inside #recipe-grid. Scoped strictly to body.hq-redesign so list
   view + board view + legacy fallback are untouched.
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign #recipe-grid .hqd-recipe-grid-v2{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin:0 0 18px;
}
@media (max-width:1279px){
  body.hq-redesign #recipe-grid .hqd-recipe-grid-v2{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
  }
}
@media (max-width:719px){
  body.hq-redesign #recipe-grid .hqd-recipe-grid-v2{
    grid-template-columns:1fr;
    gap:12px;
  }
}

/* Section header for the grouped (category=all) view */
body.hq-redesign .hqd-rc-v2-section{
  display:flex;
  align-items:center;
  gap:10px;
  margin:24px 0 12px;
  padding-bottom:8px;
  border-bottom:1px solid var(--border, #E2DDD4);
}
body.hq-redesign .hqd-rc-v2-section--first{ margin-top:4px; }
body.hq-redesign .hqd-rc-v2-section__dot{
  width:10px; height:10px; border-radius:50%; flex-shrink:0;
  box-shadow:0 0 0 3px rgba(255,255,255,.6), 0 1px 4px rgba(0,0,0,.08);
}
body.hq-redesign .hqd-rc-v2-section__title{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:14px; font-weight:800;
  color:var(--navy, #1B1A6B);
  margin:0; letter-spacing:-0.01em;
}
body.hq-redesign .hqd-rc-v2-section__count{
  font-size:11px; font-weight:700;
  color:var(--muted, #7A7689);
  background:var(--bg-deep, #F5F2EA);
  padding:2px 8px; border-radius:99px;
  border:1px solid var(--border, #E2DDD4);
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
}

/* ── The card itself — STRICTLY uniform sizing ─────────────────────
   Every v2 card renders at exactly 400px tall with the same internal
   layout so the grid feels consistent regardless of content length. */
body.hq-redesign #recipe-grid .hqd-recipe-card-v2{
  position:relative;
  display:flex;
  flex-direction:column;
  height:470px;
  min-height:470px;
  max-height:470px;
  align-self:start;
  background:#fff;
  border:1.5px solid var(--border, #E2DDD4);
  border-radius:16px;
  overflow:hidden;
  cursor:pointer;
  outline:none;
  box-shadow:
    0 1px 2px rgba(20,18,40,.04),
    0 4px 14px rgba(20,18,40,.05);
  transition:
    transform .22s cubic-bezier(.2,.7,.2,1),
    box-shadow .22s cubic-bezier(.2,.7,.2,1),
    border-color .18s ease;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
}
body.hq-redesign #recipe-grid .hqd-recipe-card-v2::before{
  /* Gradient mesh wash overlay for hover */
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(200,169,110,.10), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(27,26,107,.08), transparent 70%);
  opacity:.35;
  pointer-events:none;
  transition:opacity .22s ease;
  z-index:1;
}
body.hq-redesign #recipe-grid .hqd-recipe-card-v2:hover{
  transform:translateY(-3px);
  border-color:var(--gold, #C8A96E);
  box-shadow:
    0 6px 16px rgba(20,18,40,.08),
    0 18px 36px rgba(20,18,40,.10),
    0 0 0 1px rgba(200,169,110,.25);
}
body.hq-redesign #recipe-grid .hqd-recipe-card-v2:hover::before{ opacity:.85; }
body.hq-redesign #recipe-grid .hqd-recipe-card-v2:focus-visible{
  outline:2px solid var(--gold, #C8A96E);
  outline-offset:2px;
}

/* ── Hero — fixed height (was aspect-ratio, but that varied by card
       width which made cards feel inconsistent across breakpoints) */
body.hq-redesign .hqd-rc-v2__hero{
  position:relative;
  width:100%;
  height:210px;
  flex-shrink:0;
  overflow:hidden;
  background:#1B1A6B;
}
body.hq-redesign .hqd-rc-v2__photo{
  width:100%; height:100%;
  object-fit:cover; display:block;
}
body.hq-redesign .hqd-rc-v2__hero--no-photo{
  display:flex; align-items:center; justify-content:center;
}
body.hq-redesign .hqd-rc-v2__monogram{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:64px; font-weight:900;
  color:rgba(255,255,255,.22);
  letter-spacing:-.04em;
  user-select:none;
  text-shadow:0 2px 12px rgba(0,0,0,.12);
}
body.hq-redesign .hqd-rc-v2__scrim{
  position:absolute; inset:auto 0 0 0;
  height:55%;
  background:linear-gradient(to top, rgba(20,18,40,.45) 0%, rgba(20,18,40,0) 100%);
  pointer-events:none;
  z-index:1;
}

/* Stage chip — top-left */
body.hq-redesign .hqd-rc-v2__stage{
  position:absolute;
  top:10px; left:10px;
  z-index:3;
  padding:4px 10px;
  border-radius:99px;
  font-size:9.5px; font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  box-shadow:0 2px 8px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.18) inset;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
}

/* LIVE / DRAFT pill — top-right */
body.hq-redesign .hqd-rc-v2__status{
  position:absolute;
  top:10px; right:10px;
  z-index:3;
  padding:4px 10px;
  border-radius:99px;
  font-size:9.5px; font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
}
body.hq-redesign .hqd-rc-v2__status--live{
  background:linear-gradient(135deg, #E8C485 0%, #C8A96E 50%, #A8884E 100%);
  color:#fff;
  box-shadow:
    0 2px 10px rgba(200,169,110,.55),
    0 0 0 1px rgba(255,255,255,.45) inset;
}
body.hq-redesign .hqd-rc-v2__status--draft{
  background:rgba(255,255,255,.18);
  color:#fff;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 0 0 1px rgba(255,255,255,.28) inset;
}

/* × remove — top-right corner, ALWAYS visible (delete affordance) */
body.hq-redesign .hqd-rc-v2__remove{
  position:absolute;
  top:10px; right:10px;
  z-index:5;
  width:30px; height:30px;
  border-radius:50%;
  background:rgba(255,255,255,.96);
  color:var(--navy, #1B1A6B);
  border:1.5px solid rgba(220,38,38,.30);
  cursor:pointer;
  font-size:0;
  display:grid; place-items:center;
  padding:0;
  opacity:.85;
  transform:scale(1);
  transition:opacity .18s ease, transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow:0 2px 8px rgba(20,16,68,.14);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
body.hq-redesign #recipe-grid .hqd-recipe-card-v2:hover .hqd-rc-v2__remove,
body.hq-redesign #recipe-grid .hqd-recipe-card-v2:focus-within .hqd-rc-v2__remove{
  opacity:1;
}
body.hq-redesign .hqd-rc-v2__remove:hover{
  background:#DC2626;
  color:#fff;
  border-color:#DC2626;
  transform:scale(1.08);
  box-shadow:0 4px 14px rgba(220,38,38,.45);
  opacity:1;
}
/* When LIVE pill is also present, shift × down to clear it */
body.hq-redesign .hqd-recipe-card-v2:has(.hqd-rc-v2__pill--live) .hqd-rc-v2__remove{
  top:48px;
}

/* ── Body ──────────────────────────────────────────────────────── */
body.hq-redesign .hqd-rc-v2__body{
  position:relative;
  z-index:2;
  flex:1;
  display:flex;
  flex-direction:column;
  padding:18px;
  gap:8px;
  min-height:0;
}
body.hq-redesign .hqd-rc-v2__name{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-weight:800;
  font-size:18px;
  line-height:1.2;
  color:var(--navy, #1B1A6B);
  letter-spacing:-0.018em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:break-word;
}
body.hq-redesign .hqd-rc-v2__desc{
  font-size:13px;
  line-height:1.5;
  color:var(--ink-2, #4A4659);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Macro pills */
body.hq-redesign .hqd-rc-v2__macros{
  display:flex; flex-wrap:wrap;
  gap:5px;
  margin-top:2px;
}
body.hq-redesign .hqd-rc-v2__macro{
  padding:3px 9px;
  border-radius:99px;
  font-size:11px;
  font-weight:700;
  letter-spacing:-0.005em;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  white-space:nowrap;
}
body.hq-redesign .hqd-rc-v2__macro--protein{
  background:rgba(15,118,110,.10);
  color:#0F766E;
  box-shadow:0 0 0 1px rgba(15,118,110,.18) inset;
}
body.hq-redesign .hqd-rc-v2__macro--cal{
  background:rgba(27,26,107,.08);
  color:var(--navy, #1B1A6B);
  box-shadow:0 0 0 1px rgba(27,26,107,.16) inset;
}
body.hq-redesign .hqd-rc-v2__macro--fiber{
  background:rgba(200,169,110,.16);
  color:#8A6E3A;
  box-shadow:0 0 0 1px rgba(200,169,110,.32) inset;
}
body.hq-redesign .hqd-rc-v2__macro--carbs{
  background:rgba(220,111,98,.12);
  color:#B5453A;
  box-shadow:0 0 0 1px rgba(220,111,98,.26) inset;
}

/* Footer row */
body.hq-redesign .hqd-rc-v2__foot{
  margin-top:auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:8px;
  padding-top:10px;
  border-top:1px dashed rgba(226,221,212,.7);
}
body.hq-redesign .hqd-rc-v2__foot-l{
  display:flex; align-items:center; gap:6px;
  min-width:0; flex:1;
}
body.hq-redesign .hqd-rc-v2__cat-dot{
  width:7px; height:7px; border-radius:50%;
  flex-shrink:0;
  box-shadow:0 0 0 2px rgba(255,255,255,.85), 0 1px 3px rgba(0,0,0,.12);
}
body.hq-redesign .hqd-rc-v2__cat-name{
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted, #7A7689);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.hq-redesign .hqd-rc-v2__sep{ color:var(--muted, #7A7689); font-size:11px; }
body.hq-redesign .hqd-rc-v2__owner{
  font-size:11px;
  font-weight:600;
  color:var(--muted, #7A7689);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.hq-redesign .hqd-rc-v2__price{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-weight:800;
  font-size:14px;
  color:var(--gold-dk, #A8884E);
  white-space:nowrap;
  letter-spacing:-.01em;
}
body.hq-redesign .hqd-rc-v2__no-price{
  font-size:11px;
  color:var(--muted, #7A7689);
  font-style:italic;
}

/* Hover-revealed action row */
body.hq-redesign .hqd-rc-v2__actions{
  display:flex;
  align-items:center;
  gap:2px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid rgba(226,221,212,.55);
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:max-height .22s ease, opacity .18s ease, padding .18s ease, margin .18s ease;
}
body.hq-redesign #recipe-grid .hqd-recipe-card-v2:hover .hqd-rc-v2__actions,
body.hq-redesign #recipe-grid .hqd-recipe-card-v2:focus-within .hqd-rc-v2__actions{
  max-height:36px;
  opacity:1;
}
body.hq-redesign .hqd-rc-v2__act{
  flex:1;
  background:transparent;
  border:none;
  color:var(--navy, #1B1A6B);
  font-size:10.5px;
  font-weight:700;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  letter-spacing:.02em;
  padding:5px 4px;
  border-radius:6px;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s ease, color .15s ease;
}
body.hq-redesign .hqd-rc-v2__act:hover{
  background:rgba(200,169,110,.14);
  color:var(--gold-dk, #A8884E);
}
body.hq-redesign .hqd-rc-v2__act:focus-visible{
  outline:2px solid var(--gold, #C8A96E);
  outline-offset:1px;
}

/* Empty state inside #recipe-grid (for filter-yields-zero) */
body.hq-redesign #recipe-grid .hqd-rc-v2-empty{
  grid-column:1 / -1;
  padding:48px 24px;
  text-align:center;
  background:#fff;
  border:1.5px dashed var(--border, #E2DDD4);
  border-radius:16px;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
}
body.hq-redesign .hqd-rc-v2-empty__glyph{
  font-size:40px;
  color:var(--gold, #C8A96E);
  line-height:1;
}
body.hq-redesign .hqd-rc-v2-empty__title{
  font-size:16px; font-weight:800;
  color:var(--navy, #1B1A6B);
  margin:0;
  letter-spacing:-.01em;
}
body.hq-redesign .hqd-rc-v2-empty__sub{
  font-size:13px;
  color:var(--muted, #7A7689);
  font-style:italic;
  margin:0;
  max-width:420px;
  line-height:1.5;
}
body.hq-redesign .hqd-rc-v2-empty__btn{
  margin-top:6px;
  padding:8px 18px;
  border-radius:99px;
  background:var(--navy, #1B1A6B);
  color:#fff;
  border:none;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-weight:700;
  font-size:12px;
  letter-spacing:.02em;
  cursor:pointer;
  transition:background .15s ease, transform .15s ease;
}
body.hq-redesign .hqd-rc-v2-empty__btn:hover{
  background:#2C2A8B;
  transform:translateY(-1px);
}

@media (prefers-reduced-motion:reduce){
  body.hq-redesign #recipe-grid .hqd-recipe-card-v2,
  body.hq-redesign .hqd-rc-v2__remove,
  body.hq-redesign .hqd-rc-v2__actions,
  body.hq-redesign .hqd-rc-v2__act,
  body.hq-redesign .hqd-rc-v2-empty__btn{ transition:none; }
  body.hq-redesign #recipe-grid .hqd-recipe-card-v2:hover{ transform:none; }
  body.hq-redesign .hqd-rc-v2__remove:hover{ transform:none; }
  body.hq-redesign .hqd-rc-v2-empty__btn:hover{ transform:none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Phase 29 — Overview Command Center
   Premium hero (replaces #hq-v2-hero content), 2-column command-center
   row (Today's plan + Today's activity feed), and a 4-up Quick actions
   row. All scoped under body.hq-redesign / .hqd- prefix.
   ═══════════════════════════════════════════════════════════════════ */

/* Hide the legacy fitness-fact card on desktop. Mobile keeps it. */
@media (min-width: 768px){
  body.hq-redesign #fitness-fact{ display:none !important; }
}

/* ── Hero replacement ─────────────────────────────────────────────── */
body.hq-redesign #hq-v2-hero{
  display:block !important; /* override the hq-v2-hero.js inline flex */
  margin:0 0 18px;
  font-family:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,sans-serif;
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  padding:18px 22px 16px;
  border-radius:18px;
  background:
    linear-gradient(135deg, rgba(214,176,99,.08) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #FBF7EF 100%);
  border:1px solid rgba(232,227,216,.9);
  box-shadow:0 1px 2px rgba(17,17,40,.04), 0 8px 28px rgba(17,17,40,.05);
  position:relative;
  overflow:hidden;
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(27,26,107,.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(214,176,99,.06) 0%, transparent 60%);
  pointer-events:none;
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero__left{
  flex:1 1 460px;
  min-width:0;
  position:relative;
  z-index:1;
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero__right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  position:relative;
  z-index:1;
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero__greet{
  font-size:clamp(24px, 2.8vw, 32px);
  font-weight:900;
  letter-spacing:-0.025em;
  line-height:1.1;
  margin:0 0 6px;
  /* Reuse the .gtxt shimmer gradient from Phase 1 */
  background:linear-gradient(120deg,
    var(--gold-dk) 0%,
    var(--gold) 28%,
    var(--terracotta) 55%,
    var(--navy-soft) 80%,
    var(--gold-dk) 100%);
  background-size:280% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  animation:hqd-gtxt 9s linear infinite;
}
@media (prefers-reduced-motion:reduce){
  body.hq-redesign #hq-v2-hero .hqd-overview-hero__greet{ animation:none; background-position:0 50%; }
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero__sub{
  font-size:14px;
  font-weight:500;
  color:#6B6B85;
  line-height:1.45;
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero__sub strong{
  color:#1B1A6B;
  font-weight:800;
}

/* Premium segmented range pills */
body.hq-redesign #hq-v2-hero .hqd-overview-hero__range{
  display:inline-flex;
  gap:2px;
  background:#fff;
  border:1px solid #E8E3D8;
  border-radius:999px;
  padding:3px;
  box-shadow:0 1px 2px rgba(17,17,40,.05), inset 0 1px 0 rgba(255,255,255,.6);
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero__range-btn{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  background:transparent;
  padding:7px 14px;
  font-size:12px;
  font-weight:700;
  font-family:inherit;
  color:#3D3E5C;
  border-radius:999px;
  cursor:pointer;
  letter-spacing:0.01em;
  transition:background .18s ease, color .18s ease, transform .15s ease, box-shadow .18s ease;
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero__range-btn:hover{
  background:rgba(27,26,107,.06);
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero__range-btn.on{
  background:linear-gradient(135deg, #1B1A6B 0%, #2D2FA8 100%);
  color:#F4D58A;
  box-shadow:0 1px 2px rgba(17,17,40,.18), inset 0 1px 0 rgba(255,255,255,.12);
}

/* Live status pill (pulse dot + microcopy) */
body.hq-redesign #hq-v2-hero .hqd-overview-hero__status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:11.5px;
  font-weight:600;
  color:#6B6B85;
  letter-spacing:0.005em;
}
body.hq-redesign #hq-v2-hero .hqd-overview-hero__status .hqd-pulse-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#34D399;
  box-shadow:0 0 0 0 rgba(52,211,153,.6);
  animation:hqd-settings-pulse 2.2s infinite;
}
@media (prefers-reduced-motion:reduce){
  body.hq-redesign #hq-v2-hero .hqd-overview-hero__status .hqd-pulse-dot{ animation:none; }
}
@media (max-width: 720px){
  body.hq-redesign #hq-v2-hero .hqd-overview-hero{ padding:14px 16px 14px; gap:12px; }
  body.hq-redesign #hq-v2-hero .hqd-overview-hero__right{ align-items:stretch; align-self:stretch; }
  body.hq-redesign #hq-v2-hero .hqd-overview-hero__range{ align-self:stretch; justify-content:center; }
  body.hq-redesign #hq-v2-hero .hqd-overview-hero__range-btn{ flex:1; padding:7px 0; }
  body.hq-redesign #hq-v2-hero .hqd-overview-hero__status{ justify-content:flex-start; }
}

/* ── Command Center 2-column row ──────────────────────────────────── */
body.hq-redesign #hqd-overview-cc{
  margin:0 0 18px;
  font-family:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,sans-serif;
}
body.hq-redesign #hqd-overview-cc .hqd-command-center{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:14px;
}
@media (max-width: 768px){
  body.hq-redesign #hqd-overview-cc .hqd-command-center{
    grid-template-columns:1fr;
  }
}
body.hq-redesign #hqd-overview-cc .hqd-cc-card{
  position:relative;
  border-radius:16px;
  border:1px solid rgba(232,227,216,.9);
  padding:16px 18px 14px;
  background:#fff;
  box-shadow:0 1px 2px rgba(17,17,40,.04), 0 6px 22px rgba(17,17,40,.04);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-card--plan{
  cursor:pointer;
  background:
    linear-gradient(180deg, rgba(214,176,99,.07) 0%, rgba(255,255,255,0) 70%),
    #ffffff;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-card--plan:hover{
  transform:translateY(-1px);
  border-color:rgba(214,176,99,.5);
  box-shadow:0 2px 4px rgba(17,17,40,.05), 0 14px 36px rgba(17,17,40,.07);
}
body.hq-redesign #hqd-overview-cc .hqd-cc-card--plan:focus-visible{
  outline:2px solid var(--gold, #D6B063);
  outline-offset:2px;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-card--activity{
  background:
    linear-gradient(180deg, rgba(27,26,107,.04) 0%, rgba(255,255,255,0) 60%),
    #ffffff;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-card__hdr{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-card__title{
  font-size:13.5px;
  font-weight:800;
  color:#17182A;
  margin:0;
  letter-spacing:-0.01em;
  text-transform:uppercase;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-card__hint{
  font-size:11px;
  font-weight:700;
  color:#6B6B85;
  letter-spacing:0.02em;
  text-transform:uppercase;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-card__body{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Today's plan rows */
body.hq-redesign #hqd-overview-cc .hqd-cc-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(251,247,239,.55);
  border:1px solid rgba(232,227,216,.55);
}
body.hq-redesign #hqd-overview-cc .hqd-cc-row__dot{
  width:8px; height:8px; border-radius:50%;
  background:#D6B063;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-row__dot--gold{ background:#D6B063; }
body.hq-redesign #hqd-overview-cc .hqd-cc-row__dot--mint{ background:#34D399; }
body.hq-redesign #hqd-overview-cc .hqd-cc-row__dot--coral{ background:#F08F6E; }
body.hq-redesign #hqd-overview-cc .hqd-cc-row__dot--rose{ background:#E879A6; }
body.hq-redesign #hqd-overview-cc .hqd-cc-row__lbl{
  font-size:12.5px;
  font-weight:700;
  color:#3D3E5C;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-row__val{
  font-size:12.5px;
  font-weight:600;
  color:#17182A;
  white-space:nowrap;
  text-align:right;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-row__val strong{
  font-weight:800;
  color:#1B1A6B;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-row__late{
  color:#DC2626;
  font-weight:700;
}

/* Activity feed */
body.hq-redesign #hqd-overview-cc .hqd-cc-act__body{
  max-height:360px;
  overflow-y:auto;
  gap:0;
  padding-right:4px;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-act__body::-webkit-scrollbar{ width:6px; }
body.hq-redesign #hqd-overview-cc .hqd-cc-act__body::-webkit-scrollbar-thumb{
  background:rgba(27,26,107,.18);
  border-radius:3px;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-act__row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  padding:9px 6px;
  border-bottom:1px solid rgba(232,227,216,.55);
  background:transparent;
  border-left:0; border-right:0; border-top:0;
  cursor:pointer;
  text-align:left;
  transition:background .15s ease;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-act__row:last-child{ border-bottom:0; }
body.hq-redesign #hqd-overview-cc .hqd-cc-act__row:hover,
body.hq-redesign #hqd-overview-cc .hqd-cc-act__row:focus-visible{
  background:rgba(27,26,107,.04);
  outline:none;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-act__dot{
  width:9px; height:9px; border-radius:50%;
  background:#1B1A6B;
  box-shadow:0 0 0 3px rgba(27,26,107,.08);
}
body.hq-redesign #hqd-overview-cc .hqd-cc-act__dot--mint{ background:#34D399; box-shadow:0 0 0 3px rgba(52,211,153,.15); }
body.hq-redesign #hqd-overview-cc .hqd-cc-act__dot--coral{ background:#F08F6E; box-shadow:0 0 0 3px rgba(240,143,110,.18); }
body.hq-redesign #hqd-overview-cc .hqd-cc-act__dot--rose{ background:#E879A6; box-shadow:0 0 0 3px rgba(232,121,166,.15); }
body.hq-redesign #hqd-overview-cc .hqd-cc-act__dot--gold{ background:#D6B063; box-shadow:0 0 0 3px rgba(214,176,99,.18); }
body.hq-redesign #hqd-overview-cc .hqd-cc-act__dot--navy{ background:#1B1A6B; box-shadow:0 0 0 3px rgba(27,26,107,.12); }
body.hq-redesign #hqd-overview-cc .hqd-cc-act__msg{
  font-size:12.5px;
  font-weight:500;
  color:#17182A;
  line-height:1.4;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-act__time{
  font-size:11px;
  font-weight:600;
  color:#8A8AA0;
  white-space:nowrap;
}
body.hq-redesign #hqd-overview-cc .hqd-cc-act__empty{
  padding:24px 8px;
  font-size:12.5px;
  color:#8A8AA0;
  text-align:center;
  line-height:1.5;
}

/* ── Quick actions row ────────────────────────────────────────────── */
body.hq-redesign #hqd-overview-cc .hqd-quick-actions{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:10px;
}
@media (max-width: 768px){
  body.hq-redesign #hqd-overview-cc .hqd-quick-actions{
    grid-template-columns:repeat(2, 1fr);
  }
}
body.hq-redesign #hqd-overview-cc .hqd-qa-card{
  appearance:none;
  -webkit-appearance:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 10px;
  background:#fff;
  border:1px solid rgba(232,227,216,.9);
  border-radius:12px;
  cursor:pointer;
  font-family:inherit;
  color:#17182A;
  box-shadow:0 1px 2px rgba(17,17,40,.03);
  transition:transform .15s ease, border-color .15s ease, box-shadow .18s ease, color .15s ease;
}
body.hq-redesign #hqd-overview-cc .hqd-qa-card:hover{
  transform:translateY(-1px);
  border-color:var(--gold, #D6B063);
  color:#1B1A6B;
  box-shadow:0 2px 4px rgba(17,17,40,.05), 0 10px 28px rgba(17,17,40,.06);
}
body.hq-redesign #hqd-overview-cc .hqd-qa-card:focus-visible{
  outline:2px solid var(--gold, #D6B063);
  outline-offset:2px;
}
body.hq-redesign #hqd-overview-cc .hqd-qa-card__icon{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#1B1A6B;
}
body.hq-redesign #hqd-overview-cc .hqd-qa-card__icon svg{
  width:100%;
  height:100%;
  display:block;
}
body.hq-redesign #hqd-overview-cc .hqd-qa-card__label{
  font-size:12px;
  font-weight:700;
  letter-spacing:0.005em;
}
@media (prefers-reduced-motion:reduce){
  body.hq-redesign #hqd-overview-cc .hqd-cc-card--plan,
  body.hq-redesign #hqd-overview-cc .hqd-qa-card{ transition:none; }
  body.hq-redesign #hqd-overview-cc .hqd-cc-card--plan:hover,
  body.hq-redesign #hqd-overview-cc .hqd-qa-card:hover{ transform:none; }
}

/* ════════════════════════════════════════════════════════════════════
   Phase 29 add-on: Recipe edit modal — floating Save in header,
   hide bottom bar, premium polish
   ════════════════════════════════════════════════════════════════════ */

/* Hide the legacy bottom save bar */
body.hq-redesign #recipe-detail-panel #rp-save-footer{
  display:none !important;
}

/* Free up the bottom of the panel since the bar is gone */
body.hq-redesign .detail-panel#recipe-detail-panel{
  padding-bottom:24px !important;
}

/* Floating Save button injected by JS in the sticky header */
body.hq-redesign .hqd-rp-save-floating{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 18px;
  background:linear-gradient(135deg, var(--navy, #1B1A6B) 0%, var(--navy-soft, #2D2FA8) 60%, var(--gold-dk, #A8884E) 100%);
  color:#fff;
  border:none;
  border-radius:10px;
  font-family:'Inter', sans-serif;
  font-size:13px;
  font-weight:800;
  letter-spacing:.005em;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(20,16,68,.18);
  transition:transform .15s ease, box-shadow .15s ease;
  white-space:nowrap;
  margin-left:auto;
}
body.hq-redesign .hqd-rp-save-floating:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(20,16,68,.24);
}
body.hq-redesign .hqd-rp-save-floating:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
}
body.hq-redesign .hqd-rp-save-floating::before{
  content:'';
  width:14px; height:14px;
  background-color:currentColor;
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-size:contain; mask-size:contain;
  flex-shrink:0;
}

/* Make the sticky header into a horizontal flex row that hosts the
   floating save next to the close button + title */
body.hq-redesign #recipe-detail-panel > div[style*="position:sticky"] > .det-close{
  display:flex;
  align-items:center;
  gap:12px;
}
body.hq-redesign #recipe-detail-panel > div[style*="position:sticky"]{
  display:flex;
  flex-direction:column;
}
body.hq-redesign #recipe-detail-panel > div[style*="position:sticky"] > .det-close > *{
  flex-shrink:0;
}

/* Tighter overall padding so panel reads as compact, not cavernous */
body.hq-redesign .detail-panel#recipe-detail-panel{
  padding:14px 22px 22px !important;
}
body.hq-redesign #recipe-detail-panel > div[style*="position:sticky"]{
  padding:14px 22px 0 !important;
  margin:-14px -22px 0 !important;
}

/* Dense form rows: reduce gaps further */
body.hq-redesign #recipe-detail-panel .fg{
  margin-bottom:9px !important;
}
body.hq-redesign #recipe-detail-panel .fg label{
  margin-bottom:4px !important;
}
body.hq-redesign #recipe-detail-panel .fc{
  padding:7px 11px !important;
  font-size:12.5px !important;
}
body.hq-redesign #recipe-detail-panel textarea.fc{
  min-height:54px !important;
}

/* Section headers more compact */
body.hq-redesign #recipe-detail-panel h3,
body.hq-redesign #recipe-detail-panel h4{
  margin:14px 0 8px !important;
  font-size:13px !important;
}

/* Photo upload + tag pickers tighter */
body.hq-redesign #recipe-detail-panel #r-diet-tags,
body.hq-redesign #recipe-detail-panel #r-allergen-tags{
  gap:4px !important;
}

/* Tab body has padding-top:0 so it hugs the tabs */
body.hq-redesign #recipe-detail-panel #rp-tab-bar + div,
body.hq-redesign #recipe-detail-panel [id^="rp-panel-"]{
  padding-top:8px !important;
}

@media (max-width:768px){
  body.hq-redesign .hqd-rp-save-floating{
    padding:8px 14px;
    font-size:12px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Mobile fixes: scroll lock, save button visibility, safe-area scroll
   ════════════════════════════════════════════════════════════════════ */

/* detail-panel: use dynamic viewport height so iOS chrome doesn't clip
   content. The bottom padding has to clear iOS Safari's bottom toolbar
   (~50px) plus the home-bar safe-area inset; otherwise the last form
   field hides under the chrome and the user can't reach Save / read
   the trailing notes. */
@media (max-width:768px){
  .detail-panel{
    height:100dvh;
    padding-bottom:max(120px, calc(72px + env(safe-area-inset-bottom, 0px))) !important;
    overscroll-behavior:contain;
  }
}

/* Tab bar: enable momentum touch-scroll horizontally on iOS, lock to
   horizontal-only panning so the tabs can't drift vertically under touch. */
#rp-tab-bar{
  -webkit-overflow-scrolling:touch;
  overflow-y:hidden;
  touch-action:pan-x;
  overscroll-behavior-y:contain;
}

/* Recipe-import editor launch button: collapse to "IMPORT" badge only on
   narrow screens so it doesn't crowd the header action row. */
@media (max-width:600px){
  #hqri-editor-launch .hqri-launch-label{
    display:none !important;
  }
  #hqri-editor-launch{
    padding:8px 10px !important;
  }
}

/* Save button on narrow screens: collapse to icon-only so it stays in frame */
@media (max-width:480px){
  body.hq-redesign .hqd-rp-save-floating{
    padding:8px 10px;
    gap:0;
    /* hide label text, keep the ✓ icon pseudo-element */
    font-size:0 !important;
    letter-spacing:0;
  }
  body.hq-redesign .hqd-rp-save-floating::before{
    width:18px;
    height:18px;
  }
  /* allow title to shrink so back-btn + save-btn are always reachable */
  body.hq-redesign #recipe-detail-panel > div[style*="position:sticky"] > .det-close > *{
    flex-shrink:1 !important;
  }
  body.hq-redesign #recipe-detail-panel > div[style*="position:sticky"] > .det-close{
    overflow:hidden;
  }
  /* title text truncates rather than pushing save off-screen */
  body.hq-redesign #rp-header-title{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    min-width:0;
  }
  /* save button must never shrink below its icon size */
  body.hq-redesign .hqd-rp-save-floating{
    flex-shrink:0 !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Phase 30: Recipe Lab grid persistence + polish
   When Phase 25 v2 cards are present, suppress any leftover Phase 24
   enhancements on legacy .recipe-card markup (the legacy cards should
   never coexist with v2 cards now, but if they ever do due to a render
   race, suppress the legacy × so we don't show two close buttons).
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign #recipe-grid:has(.hqd-recipe-card-v2) .recipe-card{
  display:none !important;
}

/* The Phase 25 v2 card is the only thing #recipe-grid should display
   in grid mode. Reset the grid container's class to avoid hq.js's
   .card-grid styles fighting our flex/grid layout. */
body.hq-redesign #recipe-grid.card-grid:has(.hqd-recipe-card-v2){
  display:block !important;
}

/* ════════════════════════════════════════════════════════════════════
   PHASE 32 — Workspace v2: Projects / Tasks / Documents
   Shared visual DNA for all three modules. Strictly uniform sizing
   (Phase 31 lesson — height + min-height + max-height all locked).
   ════════════════════════════════════════════════════════════════════ */

/* Shared card chrome */
body.hq-redesign .hqd-ws-v2-card{
  position:relative;
  background:#fff;
  border:1.5px solid var(--border, #E2DDD4);
  border-radius:14px;
  outline:none;
  cursor:pointer;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  box-shadow:
    0 1px 2px rgba(20,18,40,.04),
    0 4px 14px rgba(20,18,40,.05);
  transition:
    transform .22s cubic-bezier(.2,.7,.2,1),
    box-shadow .22s cubic-bezier(.2,.7,.2,1),
    border-color .18s ease;
}
body.hq-redesign .hqd-ws-v2-card:hover{
  transform:translateY(-3px);
  border-color:var(--gold, #C8A96E);
  box-shadow:
    0 6px 16px rgba(20,18,40,.08),
    0 18px 36px rgba(20,18,40,.10),
    0 0 0 1px rgba(200,169,110,.25);
}
body.hq-redesign .hqd-ws-v2-card:focus-visible{
  outline:2px solid var(--gold, #C8A96E);
  outline-offset:2px;
}

/* Always-visible × remove */
body.hq-redesign .hqd-ws-v2__remove{
  position:absolute;
  top:10px; right:10px;
  width:28px; height:28px;
  border-radius:50%;
  border:1.5px solid var(--gold, #C8A96E);
  background:#fff;
  color:#1B1A6B;
  font-size:18px;
  font-weight:700;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
  padding:0;
  transition:background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
body.hq-redesign .hqd-ws-v2__remove:hover{
  background:#DC2626;
  color:#fff;
  border-color:#DC2626;
  transform:scale(1.08);
}
body.hq-redesign .hqd-ws-v2__remove:focus-visible{
  outline:2px solid #DC2626;
  outline-offset:2px;
}

/* Shared chip */
body.hq-redesign .hqd-ws-v2-chip{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
  padding:4px 10px;
  border-radius:999px;
  text-transform:uppercase;
  white-space:nowrap;
}

/* Shared avatar */
body.hq-redesign .hqd-ws-v2-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px; height:26px;
  border-radius:50%;
  background:#1B1A6B;
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.02em;
  border:2px solid #fff;
  box-shadow:0 1px 2px rgba(20,18,40,.12);
  margin-left:-6px;
}
body.hq-redesign .hqd-ws-v2-avatar:first-child{ margin-left:0; }
body.hq-redesign .hqd-ws-v2-avatar--more{
  background:#F1ECE0;
  color:#1B1A6B;
}

/* Shared empty state */
body.hq-redesign .hqd-ws-v2-empty{
  background:#fff;
  border:1.5px dashed var(--border, #E2DDD4);
  border-radius:14px;
  padding:48px 24px;
  text-align:center;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
}
body.hq-redesign .hqd-ws-v2-empty__glyph{
  font-size:36px;
  color:var(--gold, #C8A96E);
  line-height:1;
  margin-bottom:12px;
}
body.hq-redesign .hqd-ws-v2-empty__title{
  font-size:18px;
  font-weight:800;
  color:#1B1A6B;
  margin:0 0 6px;
}
body.hq-redesign .hqd-ws-v2-empty__sub{
  font-size:13px;
  color:var(--muted, #6B7280);
  margin:0 0 16px;
}
body.hq-redesign .hqd-ws-v2-empty__btn{
  font-family:inherit;
  font-size:13px;
  font-weight:700;
  background:#1B1A6B;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:8px 18px;
  cursor:pointer;
  transition:background .15s ease, transform .15s ease;
}
body.hq-redesign .hqd-ws-v2-empty__btn:hover{
  background:#C8A96E;
  transform:translateY(-1px);
}

/* ── Projects v2 ─────────────────────────────────────────────────── */
body.hq-redesign #project-board-wrap .hqd-project-grid-v2{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  width:100%;
}
@media (max-width:1100px){
  body.hq-redesign #project-board-wrap .hqd-project-grid-v2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:680px){
  body.hq-redesign #project-board-wrap .hqd-project-grid-v2{ grid-template-columns:1fr; }
}
body.hq-redesign .hqd-project-card-v2{
  display:flex;
  flex-direction:column;
  height:280px;
  min-height:280px;
  max-height:280px;
  padding:18px 18px 16px;
  align-self:start;
}
body.hq-redesign .hqd-project-card-v2__top{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:14px;
  /* Reserve space for absolute × button (28px + 10px right + 8px gap) */
  padding-right:46px;
  min-height:24px;
}
body.hq-redesign .hqd-project-card-v2__body{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
body.hq-redesign .hqd-project-card-v2__name{
  font-size:18px;
  font-weight:800;
  color:#1B1A6B;
  line-height:1.25;
  letter-spacing:-.01em;
  margin-bottom:6px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-project-card-v2__desc{
  font-size:13px;
  color:var(--muted, #6B7280);
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-project-card-v2__prog{
  margin-top:14px;
}
body.hq-redesign .hqd-project-card-v2__prog-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  font-weight:700;
  color:var(--muted, #6B7280);
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:6px;
}
body.hq-redesign .hqd-project-card-v2__prog-val{
  color:#1B1A6B;
}
body.hq-redesign .hqd-project-card-v2__bar{
  height:6px;
  background:#F1ECE0;
  border-radius:99px;
  overflow:hidden;
}
body.hq-redesign .hqd-project-card-v2__bar-fill{
  height:100%;
  background:linear-gradient(90deg, #1B1A6B 0%, #C8A96E 100%);
  border-radius:99px;
  transition:width .35s cubic-bezier(.2,.7,.2,1);
}
body.hq-redesign .hqd-project-card-v2__foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--border, #E2DDD4);
}
body.hq-redesign .hqd-project-card-v2__due{
  font-size:12px;
  font-weight:700;
}
body.hq-redesign .hqd-project-card-v2__due--overdue{ color:#DC2626; }
body.hq-redesign .hqd-project-card-v2__due--soon{ color:#B45309; }
body.hq-redesign .hqd-project-card-v2__due--muted{ color:var(--muted, #6B7280); }
body.hq-redesign .hqd-project-card-v2__avatars{
  display:flex;
  align-items:center;
}

/* ── Tasks v2 ────────────────────────────────────────────────────── */
body.hq-redesign #task-list .hqd-task-list-v2,
body.hq-redesign #task-archived-list .hqd-task-list-v2{
  display:flex;
  flex-direction:column;
  gap:8px;
}
body.hq-redesign .hqd-task-row-v2{
  display:flex;
  align-items:center;
  gap:14px;
  height:70px;
  min-height:70px;
  max-height:70px;
  padding:0 60px 0 16px;
  border-radius:12px;
  position:relative;
}
body.hq-redesign .hqd-task-row-v2::before{
  content:'';
  position:absolute;
  left:0; top:0; bottom:0;
  width:3px;
  background:transparent;
  border-radius:12px 0 0 12px;
  transition:background .18s ease;
}
body.hq-redesign .hqd-task-row-v2:hover::before{
  background:var(--gold, #C8A96E);
}
body.hq-redesign .hqd-task-row-v2:hover{
  background:#FCFAF6;
}
body.hq-redesign .hqd-task-row-v2--done{ opacity:.78; }
body.hq-redesign .hqd-task-row-v2--archived{ opacity:.85; }

body.hq-redesign .hqd-task-row-v2__check{
  flex-shrink:0;
  width:28px; height:28px;
  border-radius:50%;
  border:2px solid var(--gold, #C8A96E);
  background:#fff;
  cursor:pointer;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease, transform .15s ease;
}
body.hq-redesign .hqd-task-row-v2__check:hover{
  background:rgba(200,169,110,.14);
  transform:scale(1.06);
}
body.hq-redesign .hqd-task-row-v2__check--on{
  background:var(--gold, #C8A96E);
  border-color:var(--gold, #C8A96E);
}
body.hq-redesign .hqd-task-row-v2__tick{
  color:#fff;
  font-size:14px;
  font-weight:800;
  line-height:1;
}

body.hq-redesign .hqd-task-row-v2__mid{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}
body.hq-redesign .hqd-task-row-v2__title-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
body.hq-redesign .hqd-task-row-v2__title{
  font-size:14px;
  font-weight:600;
  color:#1B1A6B;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
body.hq-redesign .hqd-task-row-v2--done .hqd-task-row-v2__title{
  text-decoration:line-through;
  color:var(--muted, #6B7280);
}
body.hq-redesign .hqd-task-row-v2__prio{
  display:inline-flex;
  align-items:center;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:2px 8px;
  border-radius:99px;
}
body.hq-redesign .hqd-task-row-v2__sub{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
body.hq-redesign .hqd-task-row-v2__proj-chip{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:700;
  padding:2px 9px;
  border-radius:99px;
  border:1px solid currentColor;
  background:rgba(27,26,107,.04);
  max-width:200px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.hq-redesign .hqd-task-row-v2__sub-meta{
  font-size:11px;
  font-weight:700;
  color:var(--muted, #6B7280);
}
body.hq-redesign .hqd-task-row-v2__right{
  flex-shrink:0;
  display:flex;
  align-items:center;
}
body.hq-redesign .hqd-task-row-v2__due{
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
body.hq-redesign .hqd-task-row-v2__due--overdue{ color:#DC2626; }
body.hq-redesign .hqd-task-row-v2__due--soon{ color:#B45309; }
body.hq-redesign .hqd-task-row-v2__due--muted{ color:var(--muted, #6B7280); }
/* × button on task rows lives at right edge, vertically centered */
body.hq-redesign .hqd-task-row-v2 .hqd-ws-v2__remove{
  top:50%;
  right:14px;
  transform:translateY(-50%);
}
body.hq-redesign .hqd-task-row-v2 .hqd-ws-v2__remove:hover{
  transform:translateY(-50%) scale(1.08);
}

/* ── Documents v2 ────────────────────────────────────────────────── */
body.hq-redesign #doc-list .hqd-doc-grid-v2{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  width:100%;
}
@media (max-width:1100px){
  body.hq-redesign #doc-list .hqd-doc-grid-v2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:680px){
  body.hq-redesign #doc-list .hqd-doc-grid-v2{ grid-template-columns:1fr; }
}
body.hq-redesign .hqd-doc-card-v2{
  display:flex;
  flex-direction:column;
  height:180px;
  min-height:180px;
  max-height:180px;
  padding:16px 16px 14px;
  align-self:start;
}
body.hq-redesign .hqd-doc-card-v2__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:12px;
  padding-right:42px;
  min-height:28px;
}
body.hq-redesign .hqd-doc-card-v2__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px; height:30px;
  border-radius:8px;
  background:rgba(27,26,107,.06);
}
body.hq-redesign .hqd-doc-card-v2__body{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  overflow:hidden;
}
body.hq-redesign .hqd-doc-card-v2__title{
  font-size:16px;
  font-weight:800;
  color:#1B1A6B;
  line-height:1.3;
  letter-spacing:-.01em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-doc-card-v2__mid{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
body.hq-redesign .hqd-doc-card-v2__proj-chip{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:700;
  padding:2px 9px;
  border-radius:99px;
  background:rgba(27,26,107,.08);
  color:#1B1A6B;
  max-width:160px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.hq-redesign .hqd-doc-card-v2__notes{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:700;
  padding:2px 9px;
  border-radius:99px;
  background:rgba(200,169,110,.16);
  color:#7A5F2C;
}
body.hq-redesign .hqd-doc-card-v2__file{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:700;
  padding:2px 9px;
  border-radius:99px;
  background:rgba(16,185,129,.14);
  color:#047857;
}
body.hq-redesign .hqd-doc-card-v2__foot{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--border, #E2DDD4);
}
body.hq-redesign .hqd-doc-card-v2__by{
  font-size:11px;
  font-weight:700;
  color:var(--muted, #6B7280);
  text-transform:uppercase;
  letter-spacing:.04em;
}

/* Reduce-motion respect */
@media (prefers-reduced-motion: reduce){
  body.hq-redesign .hqd-ws-v2-card{ transition:none; }
  body.hq-redesign .hqd-ws-v2-card:hover{ transform:none; }
  body.hq-redesign .hqd-project-card-v2__bar-fill{ transition:none; }
  body.hq-redesign .hqd-task-row-v2__check{ transition:none; }
  body.hq-redesign .hqd-ws-v2__remove{ transition:none; }
}

/* ════════════════════════════════════════════════════════════════════
   Phase 32 fix: Recipe Lab card cleanup
   - Title/description clipping fix (text was being cropped at corners
     by absolute-positioned LIVE pill / × that anchored to the photo
     and bled into the body)
   - × removed from cards entirely (replaced by Delete button inside
     the recipe editor next to Save)
   ════════════════════════════════════════════════════════════════════ */

/* Hide all card-corner × buttons (legacy + v2) — disabled at JS level
   too but belt-and-suspenders */
body.hq-redesign .hqd-recipe-card-remove,
body.hq-redesign .hqd-rc-v2__remove{
  display:none !important;
}

/* Title clipping fix v3 — give explicit min-heights so 2 full lines
   ALWAYS render with full descender room, no matter what the parent
   flex layout does. */
body.hq-redesign #recipe-grid .hqd-recipe-card-v2 .hqd-rc-v2__body{
  padding:18px 18px 16px 18px !important;
  gap:4px !important;
  overflow:visible !important;
}
body.hq-redesign #recipe-grid .hqd-recipe-card-v2 .hqd-rc-v2__name + .hqd-rc-v2__desc{
  margin-top:2px !important;
}
body.hq-redesign #recipe-grid .hqd-recipe-card-v2 .hqd-rc-v2__name{
  display:-webkit-box !important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:break-word;
  line-height:1.35 !important;
  font-size:17px !important;
  margin:0;
  /* 2 lines × 17px × 1.35 = 45.9px — give 48px to clear descenders */
  min-height:48px !important;
  max-height:48px !important;
  padding:0 !important;
  flex-shrink:0;
}
body.hq-redesign #recipe-grid .hqd-recipe-card-v2 .hqd-rc-v2__desc{
  display:-webkit-box !important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.5 !important;
  font-size:12.5px !important;
  margin:0;
  /* 2 lines × 12.5px × 1.5 = 37.5px — give 40px */
  min-height:40px !important;
  max-height:40px !important;
  padding:0 !important;
  flex-shrink:0;
}

/* Delete button inside recipe editor (next to Save) */
body.hq-redesign .hqd-rp-delete-floating{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 16px;
  background:#fff;
  color:#B91C1C;
  border:1.5px solid rgba(220,38,38,.30);
  border-radius:10px;
  font-family:'Inter', sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.005em;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space:nowrap;
  margin-left:8px;
}
body.hq-redesign .hqd-rp-delete-floating:hover{
  background:#DC2626;
  color:#fff;
  border-color:#DC2626;
  transform:translateY(-1px);
  box-shadow:0 4px 14px rgba(220,38,38,.35);
}
body.hq-redesign .hqd-rp-delete-floating:disabled{
  opacity:.5;
  cursor:not-allowed;
}
body.hq-redesign .hqd-rp-delete-floating::before{
  content:'';
  width:13px; height:13px;
  background-color:currentColor;
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6M14 11v6'/><path d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6M14 11v6'/><path d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/></svg>");
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-size:contain; mask-size:contain;
  flex-shrink:0;
}

@media (max-width:768px){
  body.hq-redesign .hqd-rp-delete-floating{
    padding:8px 12px;
    font-size:12px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Phase 33: Restore notes FAB hide + top-nav notes button styling
   (lost in a rebase — Tommy reported the floating Notes FAB returned
   to covering the AI dock.)
   ════════════════════════════════════════════════════════════════════ */

@media (min-width:769px){
  body.hq-redesign .notes-fab{
    display:none !important;
  }
}

body.hq-redesign .hqd-notes-nav-btn{
  background:transparent;
  border:none;
  cursor:pointer;
  padding:6px 8px;
  border-radius:8px;
  font-size:0;
  line-height:1;
  color:var(--muted, #7B7A9A);
  transition:all .15s;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px; height:32px;
}
body.hq-redesign .hqd-notes-nav-btn::before{
  content:'';
  width:18px; height:18px;
  background-color:currentColor;
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M14 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/><path d='m18 2 4 4-9 9H9v-4z'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M14 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/><path d='m18 2 4 4-9 9H9v-4z'/></svg>");
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-size:contain; mask-size:contain;
}
body.hq-redesign .hqd-notes-nav-btn:hover{
  background:var(--bg, #F7F5EE);
  color:var(--navy, #1B1A6B);
}
body.hq-redesign .hqd-notes-nav-btn__badge{
  position:absolute;
  top:-2px; right:-2px;
  min-width:16px; height:16px;
  padding:0 4px;
  border-radius:99px;
  background:#EF4444;
  color:#fff;
  font-size:9px;
  font-weight:800;
  display:none;
  align-items:center;
  justify-content:center;
  line-height:1;
}
body.hq-redesign .hqd-notes-nav-btn__badge[data-count]:not([data-count="0"]):not([data-count=""]){
  display:flex;
}

/* ════════════════════════════════════════════════════════════════════
   PHASE 34 — Marketing & ops modules
   Catering / Email / Blog / Pop-ups / Leads / QR / Suppliers
   Reuse the .hqd-ws-v2-card / .hqd-ws-v2-chip / .hqd-ws-v2-empty
   chrome from Phase 32. NO × buttons (Phase 32 lesson).
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. Catering ───────────────────────────────────────────────── */
body.hq-redesign #mod-catering .hqd-cat-grid-v2{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  width:100%;
}
@media (max-width:1100px){
  body.hq-redesign #mod-catering .hqd-cat-grid-v2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:680px){
  body.hq-redesign #mod-catering .hqd-cat-grid-v2{ grid-template-columns:1fr; }
}
body.hq-redesign .hqd-cat-card-v2{
  display:flex;
  flex-direction:column;
  height:280px;
  min-height:280px;
  max-height:280px;
  padding:18px 18px 16px;
  align-self:start;
}
body.hq-redesign .hqd-cat-card-v2__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:14px;
  min-height:24px;
}
body.hq-redesign .hqd-cat-card-v2__cd{
  font-size:11px;
  font-weight:700;
  color:var(--muted, #6B7280);
  text-transform:uppercase;
  letter-spacing:.04em;
}
body.hq-redesign .hqd-cat-card-v2__cd--soon{
  color:#DC2626;
}
body.hq-redesign .hqd-cat-card-v2__body{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
body.hq-redesign .hqd-cat-card-v2__name{
  font-size:18px;
  font-weight:800;
  color:#1B1A6B;
  line-height:1.25;
  letter-spacing:-.01em;
  margin-bottom:4px;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-cat-card-v2__company{
  font-size:12px;
  color:var(--muted, #6B7280);
  margin-bottom:10px;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-cat-card-v2__mid{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
}
body.hq-redesign .hqd-cat-card-v2__type,
body.hq-redesign .hqd-cat-card-v2__guests,
body.hq-redesign .hqd-cat-card-v2__date{
  font-size:11px;
  font-weight:700;
  background:#F1ECE0;
  color:#1B1A6B;
  padding:3px 9px;
  border-radius:99px;
}
body.hq-redesign .hqd-cat-card-v2__foot{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--border, #E2DDD4);
}
body.hq-redesign .hqd-cat-card-v2__quote{
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:18px;
  font-weight:900;
  color:var(--gold, #C8A96E);
  letter-spacing:-.01em;
}
body.hq-redesign .hqd-cat-card-v2__contact{
  font-size:11px;
  color:var(--muted, #6B7280);
  text-align:right;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:60%;
}

/* ── 2. Email subscribers ─────────────────────────────────────── */
body.hq-redesign #mod-emailAlerts .hqd-email-list-v2{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
}
body.hq-redesign .hqd-email-row-v2{
  display:flex;
  align-items:center;
  gap:14px;
  height:68px;
  min-height:68px;
  max-height:68px;
  padding:12px 16px;
  cursor:default;
}
body.hq-redesign .hqd-email-row-v2:hover{
  transform:none;
  border-color:var(--border, #E2DDD4);
  box-shadow:
    0 1px 2px rgba(20,18,40,.04),
    0 4px 14px rgba(20,18,40,.05);
}
body.hq-redesign .hqd-email-row-v2__av{
  flex:0 0 auto;
  width:36px; height:36px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:14px;
  font-weight:800;
}
body.hq-redesign .hqd-email-row-v2__mid{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
body.hq-redesign .hqd-email-row-v2__email{
  font-size:13.5px;
  font-weight:700;
  color:#1B1A6B;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.hq-redesign .hqd-email-row-v2__meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
body.hq-redesign .hqd-email-row-v2__src,
body.hq-redesign .hqd-email-row-v2__recipe{
  font-size:11px;
  color:var(--muted, #6B7280);
}
body.hq-redesign .hqd-email-row-v2__cat{
  text-transform:none;
  letter-spacing:0;
  font-size:10.5px;
  padding:2px 8px;
}
body.hq-redesign .hqd-email-row-v2__date{
  flex:0 0 auto;
  font-size:11.5px;
  color:var(--muted, #6B7280);
  font-weight:600;
  white-space:nowrap;
}

/* ── 3. Blog ─────────────────────────────────────────────────── */
body.hq-redesign #blog-list .hqd-blog-grid-v2{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  width:100%;
}
@media (max-width:1100px){
  body.hq-redesign #blog-list .hqd-blog-grid-v2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:680px){
  body.hq-redesign #blog-list .hqd-blog-grid-v2{ grid-template-columns:1fr; }
}
body.hq-redesign .hqd-blog-card-v2{
  display:flex;
  flex-direction:column;
  height:280px;
  min-height:280px;
  max-height:280px;
  padding:0;
  overflow:hidden;
  align-self:start;
}
body.hq-redesign .hqd-blog-card-v2__hero{
  position:relative;
  height:130px;
  min-height:130px;
  max-height:130px;
  background:linear-gradient(135deg, #1B1A6B 0%, #C8A96E 100%);
}
body.hq-redesign .hqd-blog-card-v2__hero--draft{
  background:linear-gradient(135deg, #94A3B8 0%, #475569 100%);
}
body.hq-redesign .hqd-blog-card-v2__hero--scheduled{
  background:linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
}
body.hq-redesign .hqd-blog-card-v2__hero--published{
  background:linear-gradient(135deg, #34D399 0%, #1B1A6B 100%);
}
body.hq-redesign .hqd-blog-card-v2__status{
  position:absolute;
  top:12px; left:12px;
}
body.hq-redesign .hqd-blog-card-v2__body{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  padding:14px 18px 16px;
  min-height:0;
}
body.hq-redesign .hqd-blog-card-v2__title{
  font-size:16px;
  font-weight:800;
  color:#1B1A6B;
  line-height:1.3;
  letter-spacing:-.01em;
  margin-bottom:6px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-blog-card-v2__excerpt{
  font-size:12.5px;
  color:var(--muted, #6B7280);
  line-height:1.5;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-bottom:auto;
}
body.hq-redesign .hqd-blog-card-v2__foot{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  font-size:11px;
  color:var(--muted, #6B7280);
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--border, #E2DDD4);
}
body.hq-redesign .hqd-blog-card-v2__views{
  margin-left:auto;
  font-weight:800;
  color:var(--gold, #C8A96E);
}

/* ── 4. Pop-ups ──────────────────────────────────────────────── */
body.hq-redesign #popups-list .hqd-popup-grid-v2{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  width:100%;
  margin-bottom:6px;
}
@media (max-width:1100px){
  body.hq-redesign #popups-list .hqd-popup-grid-v2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:680px){
  body.hq-redesign #popups-list .hqd-popup-grid-v2{ grid-template-columns:1fr; }
}
body.hq-redesign .hqd-popup-card-v2{
  display:flex;
  flex-direction:column;
  height:280px;
  min-height:280px;
  max-height:280px;
  padding:18px 18px 16px;
  align-self:start;
}
body.hq-redesign .hqd-popup-card-v2__top{
  display:flex;
  margin-bottom:14px;
  min-height:24px;
}
body.hq-redesign .hqd-popup-card-v2__body{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
body.hq-redesign .hqd-popup-card-v2__title{
  font-size:18px;
  font-weight:800;
  color:#1B1A6B;
  line-height:1.25;
  letter-spacing:-.01em;
  margin-bottom:8px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-popup-card-v2__pages{
  font-size:12px;
  color:var(--muted, #6B7280);
  margin-bottom:10px;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-popup-card-v2__sched{
  display:flex;
  flex-direction:column;
  gap:3px;
  font-size:11px;
  color:var(--muted, #6B7280);
}
body.hq-redesign .hqd-popup-card-v2__foot{
  display:flex;
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--border, #E2DDD4);
  font-size:11px;
  font-weight:600;
  color:var(--muted, #6B7280);
}

/* ── 5. Leads ────────────────────────────────────────────────── */
body.hq-redesign #leads-list .hqd-leads-list-v2{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
}
body.hq-redesign .hqd-leads-row-v2{
  display:flex;
  align-items:center;
  gap:14px;
  height:72px;
  min-height:72px;
  max-height:72px;
  padding:12px 18px;
  cursor:default;
}
body.hq-redesign .hqd-leads-row-v2:hover{
  transform:none;
  border-color:var(--border, #E2DDD4);
  box-shadow:
    0 1px 2px rgba(20,18,40,.04),
    0 4px 14px rgba(20,18,40,.05);
}
body.hq-redesign .hqd-leads-row-v2__av{
  flex:0 0 auto;
  width:38px; height:38px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:13px;
  font-weight:800;
}
body.hq-redesign .hqd-leads-row-v2__mid{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
body.hq-redesign .hqd-leads-row-v2__name{
  font-size:14px;
  font-weight:800;
  color:#1B1A6B;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.hq-redesign .hqd-leads-row-v2__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:11px;
  color:var(--muted, #6B7280);
}
body.hq-redesign .hqd-leads-row-v2__src{
  font-weight:700;
  color:#1B1A6B;
}
body.hq-redesign .hqd-leads-row-v2__qr{
  background:rgba(200,169,110,.18);
  color:#8B6E2E;
  font-weight:700;
  padding:1px 8px;
  border-radius:99px;
}
body.hq-redesign .hqd-leads-row-v2__stats{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  gap:2px;
  align-items:flex-end;
  text-align:right;
}
body.hq-redesign .hqd-leads-row-v2__visits{
  font-size:12.5px;
  font-weight:800;
  color:var(--gold, #C8A96E);
}
body.hq-redesign .hqd-leads-row-v2__date{
  font-size:11px;
  color:var(--muted, #6B7280);
}

/* ── 6. QR Tracker ──────────────────────────────────────────── */
/* The outer #qr-tracker-grid has class .contact-grid which sets
   display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr))
   in hq.html. When v2 inserts its own .hqd-qr-grid-v2 wrapper as a
   single child, the outer grid creates 3-4 empty columns and stuffs
   the v2 wrapper into column 1 — cards crowded left, rest empty.
   Force the outer wrapper back to block flow when the v2 grid is
   present so the inner v2 grid owns the layout. */
body.hq-redesign #qr-tracker-grid:has(.hqd-qr-grid-v2){
  display:block !important;
  grid-template-columns:none !important;
  gap:0 !important;
}
body.hq-redesign #qr-tracker-grid.hqd-qr-grid-v2,
body.hq-redesign #qr-tracker-grid .hqd-qr-grid-v2{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  width:100%;
}
@media (max-width:1100px){
  body.hq-redesign #qr-tracker-grid .hqd-qr-grid-v2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:680px){
  body.hq-redesign #qr-tracker-grid .hqd-qr-grid-v2{ grid-template-columns:1fr; }
}
body.hq-redesign .hqd-qr-card-v2{
  display:flex;
  flex-direction:column;
  /* Was a hard 280px lock — actual content is ~120px so cards
     stretched into half-empty rectangles. Switch to a min-height
     that fits short content tight + lets long names breathe. */
  min-height:170px;
  height:auto;
  max-height:none;
  padding:16px 18px 14px;
  align-self:start;
  gap:8px;
}
body.hq-redesign .hqd-qr-card-v2__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}
body.hq-redesign .hqd-qr-card-v2__glyph{
  width:48px; height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
}
body.hq-redesign .hqd-qr-card-v2__body{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
body.hq-redesign .hqd-qr-card-v2__name{
  font-size:17px;
  font-weight:800;
  color:#1B1A6B;
  line-height:1.25;
  letter-spacing:-.01em;
  margin-bottom:4px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-qr-card-v2__sub{
  font-size:12px;
  color:var(--muted, #6B7280);
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-qr-card-v2__foot{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--border, #E2DDD4);
}
body.hq-redesign .hqd-qr-card-v2__scans{
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:26px;
  font-weight:900;
  color:var(--gold, #C8A96E);
  line-height:1;
}
body.hq-redesign .hqd-qr-card-v2__scans-lbl{
  font-size:10px;
  font-weight:800;
  color:var(--muted, #6B7280);
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-top:2px;
}
body.hq-redesign .hqd-qr-card-v2__last{
  font-size:11px;
  color:var(--muted, #6B7280);
  text-align:right;
}

/* ── 7. Suppliers ───────────────────────────────────────────── */
body.hq-redesign #supplier-grid .hqd-sup-list-v2{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  /* Parent #supplier-grid keeps the .contact-grid `display:grid` layout
     for the legacy seed-state UI. When the v2 list is present, span every
     column so the row-card list takes the full module width instead of
     being stuffed into one 290px grid track. */
  grid-column: 1 / -1;
}
/* Same fix for the v2 empty-state — must occupy the full grid row,
   otherwise the empty card hugs one 290px column. */
body.hq-redesign #supplier-grid .hqd-sup-empty-v2{
  grid-column: 1 / -1;
}
body.hq-redesign .hqd-sup-row-v2{
  display:flex;
  align-items:center;
  gap:14px;
  height:72px;
  min-height:72px;
  max-height:72px;
  padding:12px 18px;
}
body.hq-redesign .hqd-sup-row-v2__av{
  flex:0 0 auto;
  width:40px; height:40px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:13px;
  font-weight:800;
}
body.hq-redesign .hqd-sup-row-v2__mid{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
body.hq-redesign .hqd-sup-row-v2__name{
  font-size:14px;
  font-weight:800;
  color:#1B1A6B;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.hq-redesign .hqd-sup-row-v2__meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  font-size:11.5px;
  color:var(--muted, #6B7280);
}
body.hq-redesign .hqd-sup-row-v2__cat{
  background:rgba(27,26,107,.10);
  color:#1B1A6B;
  text-transform:none;
  letter-spacing:0;
}
body.hq-redesign .hqd-sup-row-v2__local{
  background:rgba(5,150,105,.16);
  color:#065F46;
  text-transform:none;
  letter-spacing:.02em;
  font-size:10px;
}
body.hq-redesign .hqd-sup-row-v2__email{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:200px;
}
body.hq-redesign .hqd-sup-row-v2__loc{
  color:var(--muted, #6B7280);
}
body.hq-redesign .hqd-sup-row-v2__status{
  flex:0 0 auto;
  margin-left:auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  body.hq-redesign .hqd-cat-card-v2,
  body.hq-redesign .hqd-blog-card-v2,
  body.hq-redesign .hqd-popup-card-v2,
  body.hq-redesign .hqd-qr-card-v2,
  body.hq-redesign .hqd-email-row-v2,
  body.hq-redesign .hqd-leads-row-v2,
  body.hq-redesign .hqd-sup-row-v2{ transition:none; }
}

/* ════════════════════════════════════════════════════════════════════
   Phase 34 add-on: Recipe Lab filter toolbar collapse toggle
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign #mod-recipes .recipe-toolbar{
  position:relative;
}

/* ── Per-filter dropdown menus (replaces single big toggle) ── */
body.hq-redesign .hqd-rldd-row{
  position:relative;
  display:inline-flex !important;
  margin-right:8px !important;
  margin-bottom:6px !important;
}
body.hq-redesign .hqd-rldd-trigger{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:32px;
  padding:0 12px;
  border-radius:8px;
  border:1.5px solid var(--border, #E2DDD4);
  background:#fff;
  cursor:pointer;
  font-family:'Inter', sans-serif;
  font-size:12px;
  font-weight:700;
  color:var(--navy, #1B1A6B);
  letter-spacing:.01em;
  box-shadow:0 1px 3px rgba(20,16,68,.05);
  transition:border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-rldd-trigger:hover{
  border-color:var(--gold, #C8A96E);
  background:rgba(200,169,110,.05);
  transform:translateY(-1px);
  box-shadow:0 3px 10px rgba(200,169,110,.18);
}
body.hq-redesign .hqd-rldd-row[data-hqd-open="1"] .hqd-rldd-trigger{
  border-color:var(--gold, #C8A96E);
  background:linear-gradient(135deg, rgba(200,169,110,.08), rgba(200,169,110,.16));
  box-shadow:0 0 0 3px rgba(200,169,110,.18);
}
body.hq-redesign .hqd-rldd-icon{
  display:inline-block;
  width:14px; height:14px;
  background-color:var(--navy, #1B1A6B);
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><line x1='3' y1='6' x2='21' y2='6'/><line x1='3' y1='12' x2='21' y2='12'/><line x1='3' y1='18' x2='21' y2='18'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><line x1='3' y1='6' x2='21' y2='6'/><line x1='3' y1='12' x2='21' y2='12'/><line x1='3' y1='18' x2='21' y2='18'/></svg>");
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-size:contain; mask-size:contain;
}
body.hq-redesign .hqd-rldd-name{
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:10.5px;
  font-weight:800;
  color:var(--muted, #7B7A9A);
}
body.hq-redesign .hqd-rldd-sep{
  color:var(--muted, #7B7A9A);
  margin:0 1px 0 -2px;
  font-weight:700;
  opacity:.6;
}
body.hq-redesign .hqd-rldd-active{
  color:var(--navy, #1B1A6B);
  font-weight:800;
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.hq-redesign .hqd-rldd-caret{
  display:inline-block;
  width:10px; height:10px;
  background-color:var(--navy, #1B1A6B);
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-size:contain; mask-size:contain;
  margin-left:2px;
  transition:transform .2s ease;
}
body.hq-redesign .hqd-rldd-row[data-hqd-open="1"] .hqd-rldd-caret{
  transform:rotate(180deg);
}
body.hq-redesign .hqd-rldd-pop{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  z-index:50;
  display:none;
  min-width:300px;
  max-width:min(760px, 92vw);
  padding:12px;
  background:#fff;
  border:1.5px solid var(--gold, #C8A96E);
  border-radius:12px;
  box-shadow:0 12px 32px rgba(20,16,68,.18), 0 4px 10px rgba(20,16,68,.08);
}
body.hq-redesign .hqd-rldd-row[data-hqd-open="1"] .hqd-rldd-pop{
  display:block;
}
body.hq-redesign .hqd-rldd-pop > div[id$="-pills"]{
  display:flex !important;
  flex-wrap:wrap;
  gap:6px !important;
  margin-bottom:0 !important;
}
body.hq-redesign .hqd-rl-filter-toggle{
  position:absolute;
  top:8px;
  right:0;
  height:32px;
  padding:0 14px 0 12px;
  border-radius:8px;
  border:1.5px solid var(--gold, #C8A96E);
  background:#fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:7px;
  z-index:6;
  font-family:'Inter', sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--navy, #1B1A6B);
  box-shadow:0 1px 4px rgba(20,16,68,.06);
  transition:background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-rl-filter-toggle .hqd-rl-ft-icon{
  display:inline-block;
  width:12px; height:12px;
  background-color:var(--navy, #1B1A6B);
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-size:contain; mask-size:contain;
  transition:transform .2s ease;
}
body.hq-redesign .recipe-toolbar[data-hqd-collapsed="true"] .hqd-rl-filter-toggle .hqd-rl-ft-icon{
  transform:rotate(-90deg);
}
body.hq-redesign .hqd-rl-filter-toggle:hover{
  background:linear-gradient(135deg, rgba(200,169,110,.08), rgba(200,169,110,.14));
  border-color:var(--gold, #C8A96E);
  transform:translateY(-1px);
  box-shadow:0 3px 10px rgba(200,169,110,.22);
}

/* When collapsed, hide all the toolbar inner rows except the toggle. */
body.hq-redesign .recipe-toolbar[data-hqd-collapsed="true"] > *:not(.hqd-rl-filter-toggle){
  display:none !important;
}
body.hq-redesign .recipe-toolbar[data-hqd-collapsed="true"]{
  padding:8px 48px 8px 14px !important;
  min-height:48px;
}
body.hq-redesign .recipe-toolbar[data-hqd-collapsed="true"]::after{
  content:'Filters collapsed';
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:11px;
  font-weight:700;
  color:var(--muted, #7B7A9A);
  letter-spacing:.04em;
  text-transform:uppercase;
}

/* ════════════════════════════════════════════════════════════════════
   PHASE 35 — Ops modules v2 cards
   Invoices / Support / PT Appts / Events / Tier Ladders / Updates Log
   Ads accounts polish / Messages list polish.
   Reuses .hqd-ws-v2-card / .hqd-ws-v2-chip / .hqd-ws-v2-empty.
   ════════════════════════════════════════════════════════════════════ */

/* ── Shared 3-up grid + uniform sizing lock ── */
body.hq-redesign .hqd-inv-grid-v2,
body.hq-redesign .hqd-sup-grid-v2,
body.hq-redesign .hqd-pt-grid-v2,
body.hq-redesign .hqd-evt-grid-v2,
body.hq-redesign .hqd-ladder-grid-v2{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  width:100%;
}
@media (max-width:1100px){
  body.hq-redesign .hqd-inv-grid-v2,
  body.hq-redesign .hqd-sup-grid-v2,
  body.hq-redesign .hqd-pt-grid-v2,
  body.hq-redesign .hqd-evt-grid-v2,
  body.hq-redesign .hqd-ladder-grid-v2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:680px){
  body.hq-redesign .hqd-inv-grid-v2,
  body.hq-redesign .hqd-sup-grid-v2,
  body.hq-redesign .hqd-pt-grid-v2,
  body.hq-redesign .hqd-evt-grid-v2,
  body.hq-redesign .hqd-ladder-grid-v2{ grid-template-columns:1fr; }
}

/* ── Invoices ── */
body.hq-redesign .hqd-inv-card-v2{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px 18px 14px;
  height:188px;
  min-height:188px;
  max-height:188px;
  align-self:start;
}
body.hq-redesign .hqd-inv-card-v2__top{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
body.hq-redesign .hqd-inv-card-v2__num{
  font-family:ui-monospace,Menlo,monospace;
  font-size:13px;
  font-weight:800;
  color:#1B1A6B;
  letter-spacing:.02em;
}
body.hq-redesign .hqd-inv-card-v2__client{
  font-size:15px;
  font-weight:800;
  color:#1B1A6B;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.hq-redesign .hqd-inv-card-v2__meta{
  font-size:11.5px;
  color:#6B7280;
  font-weight:600;
}
body.hq-redesign .hqd-inv-card-v2__foot{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:8px;
  border-top:1px solid var(--border, #E2DDD4);
}
body.hq-redesign .hqd-inv-card-v2__amount{
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:18px;
  font-weight:900;
  color:#1B1A6B;
  letter-spacing:-.01em;
}
body.hq-redesign .hqd-inv-card-v2__actions{ display:flex; gap:6px; }
body.hq-redesign .hqd-inv-card-v2__btn,
body.hq-redesign .hqd-pt-card-v2__btn,
body.hq-redesign .hqd-evt-card-v2__btn{
  font-family:inherit;
  font-size:11.5px;
  font-weight:700;
  background:#fff;
  color:#1B1A6B;
  border:1.5px solid var(--border, #E2DDD4);
  border-radius:8px;
  padding:5px 11px;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
body.hq-redesign .hqd-inv-card-v2__btn:hover,
body.hq-redesign .hqd-pt-card-v2__btn:hover,
body.hq-redesign .hqd-evt-card-v2__btn:hover{
  border-color:var(--gold, #C8A96E);
  background:#FFFCF4;
}
body.hq-redesign .hqd-pt-card-v2__btn--danger{
  color:#DC2626;
  border-color:rgba(220,38,38,.3);
}
body.hq-redesign .hqd-pt-card-v2__btn--danger:hover{
  background:#FEF2F2;
  border-color:#DC2626;
}

/* ── Support ── */
body.hq-redesign .hqd-sup-card-v2{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:16px 18px 14px;
  height:184px;
  min-height:184px;
  max-height:184px;
  align-self:start;
}
body.hq-redesign .hqd-sup-card-v2__top{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
body.hq-redesign .hqd-sup-card-v2__num{
  font-family:ui-monospace,Menlo,monospace;
  font-size:11.5px;
  font-weight:800;
  color:#1B1A6B;
  letter-spacing:.04em;
}
body.hq-redesign .hqd-sup-card-v2__name{
  font-size:14px;
  font-weight:800;
  color:#1B1A6B;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.hq-redesign .hqd-sup-card-v2__email{
  font-size:11.5px;
  color:#6B7280;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.hq-redesign .hqd-sup-card-v2__mid{
  display:flex; flex-wrap:wrap; gap:6px; margin-top:auto;
}
body.hq-redesign .hqd-sup-card-v2__issue{
  background:#F1ECE0; color:#1B1A6B;
}
body.hq-redesign .hqd-sup-card-v2__order{
  font-size:11px; color:#6B7280; font-family:ui-monospace,Menlo,monospace;
  background:#F8F7F4; padding:3px 8px; border-radius:6px;
}
body.hq-redesign .hqd-sup-card-v2__date{
  font-size:11px; color:#6B7280; padding-top:8px;
  border-top:1px solid var(--border, #E2DDD4);
}

/* ── PT Appointments ── */
body.hq-redesign .hqd-pt-card-v2{
  display:flex; flex-direction:column; gap:10px;
  padding:14px 16px;
  height:198px;
  min-height:198px;
  max-height:198px;
  align-self:start;
}
body.hq-redesign .hqd-pt-card-v2__top{
  display:flex; align-items:center; gap:10px;
}
body.hq-redesign .hqd-pt-card-v2__av{
  flex-shrink:0;
  width:40px; height:40px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:800;
  letter-spacing:.02em;
}
body.hq-redesign .hqd-pt-card-v2__namewrap{ flex:1; min-width:0; }
body.hq-redesign .hqd-pt-card-v2__name{
  font-size:14px; font-weight:800; color:#1B1A6B;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.hq-redesign .hqd-pt-card-v2__email{
  font-size:11.5px; color:#6B7280;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.hq-redesign .hqd-pt-card-v2__status{ flex-shrink:0; }
body.hq-redesign .hqd-pt-card-v2__mid{
  display:flex; flex-wrap:wrap; gap:6px; align-items:center;
  font-size:12px; color:#1B1A6B; font-weight:600;
}
body.hq-redesign .hqd-pt-card-v2__date{
  background:#F1ECE0; color:#1B1A6B;
  padding:3px 9px; border-radius:6px; font-weight:700;
}
body.hq-redesign .hqd-pt-card-v2__time{
  font-family:ui-monospace,Menlo,monospace;
  font-size:11.5px;
  color:#1B1A6B;
}
body.hq-redesign .hqd-pt-card-v2__dur{ color:#6B7280; }
body.hq-redesign .hqd-pt-card-v2__foot{
  margin-top:auto;
  display:flex; gap:6px; flex-wrap:wrap;
  padding-top:8px;
  border-top:1px solid var(--border, #E2DDD4);
}

/* ── Events ── */
body.hq-redesign .hqd-evt-card-v2{
  display:flex; flex-direction:column;
  height:268px; min-height:268px; max-height:268px;
  align-self:start;
  overflow:hidden;
}
body.hq-redesign .hqd-evt-card-v2__hero{
  position:relative;
  height:120px;
  background:linear-gradient(135deg,#1B1A6B,#3D3A8C);
  border-bottom:1px solid var(--border, #E2DDD4);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  flex-shrink:0;
}
body.hq-redesign .hqd-evt-card-v2__img{
  width:100%; height:100%; object-fit:cover;
}
body.hq-redesign .hqd-evt-card-v2__glyph{
  font-size:32px; color:rgba(255,255,255,.4);
}
body.hq-redesign .hqd-evt-card-v2__status{
  position:absolute; top:10px; right:10px;
}
body.hq-redesign .hqd-evt-card-v2__body{
  flex:1; display:flex; flex-direction:column; gap:6px;
  padding:14px 16px; min-height:0;
}
body.hq-redesign .hqd-evt-card-v2__name{
  font-size:15px; font-weight:800; color:#1B1A6B;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.hq-redesign .hqd-evt-card-v2__meta{
  font-size:12px; color:#6B7280; font-weight:600;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden;
}
body.hq-redesign .hqd-evt-card-v2__foot{
  margin-top:auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:8px;
  padding-top:8px;
  border-top:1px solid var(--border, #E2DDD4);
}
body.hq-redesign .hqd-evt-card-v2__actions{ display:flex; gap:6px; }

/* ── Tier Ladders ── */
body.hq-redesign .hqd-ladder-stack-v2{ display:block; }
body.hq-redesign .hqd-ladder-stack-v2__head{
  font-size:14px; font-weight:800; color:#1B1A6B;
  letter-spacing:-.01em;
  margin:0 0 12px;
}
body.hq-redesign .hqd-ladder-stack-v2__head--mute{
  color:#6B7280;
  margin-top:24px;
  font-weight:700;
}
body.hq-redesign .hqd-ladder-grid-v2{ margin-bottom:8px; }
body.hq-redesign .hqd-ladder-card-v2{
  display:flex; flex-direction:column; gap:10px;
  padding:14px 16px;
  height:auto;
  min-height:160px;
  align-self:start;
  cursor:default;
}
body.hq-redesign .hqd-ladder-card-v2:hover{
  transform:none;
  box-shadow:
    0 1px 2px rgba(20,18,40,.04),
    0 4px 14px rgba(20,18,40,.05);
  border-color:var(--border, #E2DDD4);
}
body.hq-redesign .hqd-ladder-card-v2__top{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
body.hq-redesign .hqd-ladder-card-v2__id{
  font-family:ui-monospace,Menlo,monospace;
  font-size:13px; font-weight:800; color:#1B1A6B;
  background:#F1ECE0;
  padding:3px 8px;
  border-radius:6px;
}
body.hq-redesign .hqd-ladder-card-v2__label{
  font-size:13px; color:#6B7280; font-weight:600;
}
body.hq-redesign .hqd-ladder-card-v2__tiers{
  display:flex; flex-wrap:wrap; gap:6px;
}
body.hq-redesign .hqd-ladder-card-v2__tier{
  display:inline-flex; align-items:center; gap:5px;
  background:#F8F7F4;
  border:1px solid var(--border, #E2DDD4);
  padding:3px 10px;
  border-radius:99px;
  font-size:11.5px;
}
body.hq-redesign .hqd-ladder-card-v2__tier-label{
  font-weight:700; color:#1B1A6B;
}
body.hq-redesign .hqd-ladder-card-v2__tier-key{
  font-family:ui-monospace,Menlo,monospace;
  font-size:10px; color:#6B7280;
}
body.hq-redesign .hqd-ladder-card-v2__foot{
  margin-top:auto;
  display:flex; flex-direction:column; gap:4px;
  padding-top:8px;
  border-top:1px solid var(--border, #E2DDD4);
}
body.hq-redesign .hqd-ladder-card-v2__count{
  font-size:11.5px; color:#6B7280; font-weight:600;
}
body.hq-redesign .hqd-ladder-card-v2__note{
  font-size:11px; color:#6B7280; font-style:italic;
}

/* ── Updates Log ── */
body.hq-redesign .hqd-upd-stack-v2{
  display:flex; flex-direction:column; gap:14px;
}
body.hq-redesign .hqd-upd-card-v2{
  background:rgba(255,255,255,.04);
  backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:18px 20px;
  font-family:'Plus Jakarta Sans',sans-serif;
}
body.hq-redesign .hqd-upd-card-v2__top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
body.hq-redesign .hqd-upd-card-v2__ver{
  font-size:15px; font-weight:900; color:#fff;
  letter-spacing:-.01em;
}
body.hq-redesign .hqd-upd-card-v2__date{
  font-size:11px; color:rgba(255,255,255,.45);
  font-weight:600;
}
body.hq-redesign .hqd-upd-card-v2__items{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:6px;
}
body.hq-redesign .hqd-upd-card-v2__item{
  display:flex; gap:10px; align-items:flex-start;
  font-size:12.5px; color:rgba(255,255,255,.78);
  line-height:1.55;
}
body.hq-redesign .hqd-upd-card-v2__bullet{
  color:#C8A96E;
  font-size:14px;
  line-height:1.4;
  flex-shrink:0;
}
body.hq-redesign .hqd-upd-card-v2__text{ flex:1; }

/* ── Ads accounts polish ── */
body.hq-redesign .hqd-ad-acct-v2{
  border-radius:14px !important;
  border:1.5px solid var(--border, #E2DDD4) !important;
}
body.hq-redesign .hqd-ad-acct-v2:hover{
  transform:translateY(-3px);
  border-color:var(--gold, #C8A96E) !important;
  box-shadow:
    0 6px 16px rgba(20,18,40,.08),
    0 18px 36px rgba(20,18,40,.10),
    0 0 0 1px rgba(200,169,110,.25) !important;
}

/* ── Messages list polish ── */
body.hq-redesign .hqd-msg-conv-v2{
  border-radius:10px;
  transition:background .15s ease;
}
body.hq-redesign .hqd-msg-conv-v2:hover{
  background:#F8F7F4;
}
body.hq-redesign .hqd-msg-conv-v2.active{
  background:#F1ECE0;
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce){
  body.hq-redesign .hqd-inv-card-v2,
  body.hq-redesign .hqd-sup-card-v2,
  body.hq-redesign .hqd-pt-card-v2,
  body.hq-redesign .hqd-evt-card-v2,
  body.hq-redesign .hqd-ladder-card-v2,
  body.hq-redesign .hqd-ad-acct-v2{ transition:none; }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 36 — Tools / form-heavy modules polish
   Calendar, Site Content, Sales Control, Analytics,
   Label Generator, Flyer Map, Kitchen Comparison
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. CALENDAR ─────────────────────────────────────────────── */
body.hq-redesign .hqd-cal-nav-v2{
  display:flex; align-items:center; gap:14px;
  padding:14px 18px;
  background:linear-gradient(180deg,#FFFFFF 0%, #FAF8F2 100%);
  border:1.5px solid var(--border, #E2DDD4);
  border-radius:16px;
  box-shadow:0 2px 8px rgba(20,18,40,.04);
  margin-bottom:18px;
}
body.hq-redesign .hqd-cal-title-v2{
  font-size:18px !important;
  font-weight:900 !important;
  letter-spacing:-.01em;
  background:linear-gradient(135deg,#1B1A6B 0%, #C8A96E 110%);
  -webkit-background-clip:text;
          background-clip:text;
  -webkit-text-fill-color:transparent;
}
body.hq-redesign .hqd-cal-grid-v2{
  border:1.5px solid var(--border, #E2DDD4) !important;
  border-radius:16px !important;
  overflow:hidden;
  background:#fff;
  box-shadow:0 4px 12px rgba(20,18,40,.04);
}
body.hq-redesign .hqd-cal-grid-v2 .cal-dh{
  background:linear-gradient(180deg,#FAF8F2,#F1ECE0) !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#6B7280 !important;
  padding:10px 8px !important;
  border-bottom:1.5px solid var(--border,#E2DDD4) !important;
}
body.hq-redesign .hqd-cal-grid-v2 .cal-day{
  min-height:96px !important;
  padding:8px !important;
  background:#fff !important;
  border:1px solid #F1ECE0 !important;
  transition:background .15s ease, box-shadow .15s ease;
  position:relative;
}
body.hq-redesign .hqd-cal-grid-v2 .cal-day:hover{
  background:#FBF9F3 !important;
  box-shadow:inset 0 0 0 1.5px rgba(200,169,110,.35);
  cursor:pointer;
}
body.hq-redesign .hqd-cal-grid-v2 .cal-day.other-month{
  background:#FAF8F2 !important;
  opacity:.55;
}
body.hq-redesign .hqd-cal-grid-v2 .cal-day.today{
  background:linear-gradient(180deg,#FFF8E9,#FBF1D8) !important;
  box-shadow:inset 0 0 0 2px #C8A96E;
}
body.hq-redesign .hqd-cal-grid-v2 .cal-day.today .cal-day-n{
  color:#1B1A6B !important;
  font-weight:900 !important;
}
body.hq-redesign .hqd-cal-grid-v2 .cal-day-n{
  font-size:13px !important;
  font-weight:700 !important;
  color:#1B1A6B !important;
  margin-bottom:4px;
}
body.hq-redesign .hqd-cal-grid-v2 .cal-ev-pill{
  font-size:10.5px !important;
  font-weight:700 !important;
  padding:3px 7px !important;
  border-radius:6px !important;
  margin-bottom:3px;
  letter-spacing:.01em;
  box-shadow:0 1px 2px rgba(20,18,40,.08);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.hq-redesign .hqd-cal-evlist-v2 .ev-item{
  border:1.5px solid var(--border,#E2DDD4) !important;
  border-radius:14px !important;
  background:#fff !important;
  padding:12px 14px !important;
  margin-bottom:10px !important;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
body.hq-redesign .hqd-cal-evlist-v2 .ev-item:hover{
  transform:translateY(-2px);
  border-color:#C8A96E !important;
  box-shadow:0 6px 16px rgba(20,18,40,.08);
}
body.hq-redesign .hqd-cal-evlist-v2 .ev-date-badge{
  background:linear-gradient(180deg,#FAF8F2,#F1ECE0) !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  border-radius:10px !important;
}
body.hq-redesign .hqd-cal-evlist-v2 .ev-date-day{
  color:#1B1A6B !important;
  font-weight:900 !important;
}
body.hq-redesign .hqd-cal-evlist-v2 .ev-title{
  font-weight:800 !important;
  color:#1B1A6B !important;
}

/* ── 2. SITE CONTENT polish ──────────────────────────────────── */
body.hq-redesign .hqd-sc-v2 .sc-panel.hqd-sc-panel-v2{
  background:linear-gradient(180deg,#FFFFFF 0%, #FBF9F3 100%);
  border:1.5px solid var(--border,#E2DDD4);
  border-radius:18px;
  padding:24px 26px;
  box-shadow:0 2px 10px rgba(20,18,40,.04);
}
body.hq-redesign .hqd-sc-v2 .sc-panel.hqd-sc-panel-v2 h3{
  font-size:18px !important;
  letter-spacing:-.01em;
  background:linear-gradient(135deg,#1B1A6B 0%, #C8A96E 120%);
  -webkit-background-clip:text;
          background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-bottom:18px !important;
  padding-bottom:12px;
  border-bottom:1.5px solid rgba(200,169,110,.25);
}
body.hq-redesign .hqd-sc-v2 .sc-panel.hqd-sc-panel-v2 .fc{
  border-radius:10px;
  border:1.5px solid var(--border,#E2DDD4);
  transition:border-color .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-sc-v2 .sc-panel.hqd-sc-panel-v2 .fc:focus{
  border-color:#C8A96E;
  box-shadow:0 0 0 3px rgba(200,169,110,.18);
  outline:none;
}
body.hq-redesign .hqd-sc-v2 .sc-panel.hqd-sc-panel-v2 .btn-primary{
  border-radius:12px;
  padding:11px 22px;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 4px 12px rgba(27,26,107,.18);
  transition:transform .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-sc-v2 .sc-panel.hqd-sc-panel-v2 .btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(27,26,107,.24);
}
body.hq-redesign .hqd-sc-v2 .fbtn{
  border-radius:99px !important;
  font-weight:700 !important;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
body.hq-redesign .hqd-sc-v2 .fbtn.active{
  background:linear-gradient(135deg,#1B1A6B,#2B2A8B) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 3px 10px rgba(27,26,107,.24);
}

/* ── 3. SALES CONTROL polish ─────────────────────────────────── */
body.hq-redesign .hqd-sales-v2 .stat-card{
  border-radius:16px !important;
  background:linear-gradient(180deg,#FFFFFF 0%, #FBF9F3 100%) !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  box-shadow:0 2px 8px rgba(20,18,40,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-sales-v2 .stat-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(20,18,40,.08);
}
body.hq-redesign .hqd-sales-v2 .stab{
  font-weight:800 !important;
  letter-spacing:.01em;
  position:relative;
}
body.hq-redesign .hqd-sales-v2 .stab.active{
  color:#1B1A6B !important;
}
body.hq-redesign .hqd-sales-v2 .stab.active::after{
  content:'';
  position:absolute; left:8px; right:8px; bottom:-2px;
  height:3px;
  background:linear-gradient(90deg,#1B1A6B,#C8A96E);
  border-radius:3px 3px 0 0;
}
body.hq-redesign .hqd-sales-v2 .ing-table{
  border-radius:14px;
  overflow:hidden;
}
body.hq-redesign .hqd-sales-v2 .ing-table thead th{
  background:linear-gradient(180deg,#FAF8F2,#F1ECE0) !important;
  font-size:11px !important;
  font-weight:800 !important;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#6B7280 !important;
}
body.hq-redesign .hqd-sales-v2 .ing-table tbody tr{
  transition:background .15s ease;
}
body.hq-redesign .hqd-sales-v2 .ing-table tbody tr:hover{
  background:#FBF9F3 !important;
}

/* ── 4. ANALYTICS polish ─────────────────────────────────────── */
body.hq-redesign .hqd-analytics-v2 .hqd-an-stat-v2{
  border-radius:18px !important;
  background:linear-gradient(180deg,#FFFFFF 0%, #FBF9F3 100%) !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  box-shadow:0 2px 10px rgba(20,18,40,.04);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  height:auto;
  min-height:108px;
  align-self:start;
}
body.hq-redesign .hqd-analytics-v2 .hqd-an-stat-v2:hover{
  transform:translateY(-3px);
  border-color:#C8A96E !important;
  box-shadow:0 10px 22px rgba(20,18,40,.10);
}
body.hq-redesign .hqd-analytics-v2 .hqd-an-stat-v2 .stat-val{
  background:linear-gradient(135deg,#1B1A6B 0%, #C8A96E 130%);
  -webkit-background-clip:text;
          background-clip:text;
  -webkit-text-fill-color:transparent;
  font-weight:900 !important;
  letter-spacing:-.02em;
}
body.hq-redesign .hqd-analytics-v2 .hqd-an-card-v2{
  border-radius:18px !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  background:#fff !important;
  box-shadow:0 2px 10px rgba(20,18,40,.04);
  padding:20px 22px !important;
}
body.hq-redesign .hqd-analytics-v2 .hqd-an-card-v2 h4{
  font-size:13px !important;
  font-weight:800 !important;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#6B7280 !important;
  margin-bottom:14px;
}
body.hq-redesign .hqd-analytics-v2 .analytics-bar{
  background:linear-gradient(180deg,#C8A96E,#1B1A6B) !important;
  border-radius:6px 6px 2px 2px !important;
  transition:opacity .15s ease;
}
body.hq-redesign .hqd-analytics-v2 .analytics-bar-col:hover .analytics-bar{
  opacity:.85;
}
body.hq-redesign .hqd-analytics-v2 .analytics-rank-bar{
  background:linear-gradient(90deg,#1B1A6B,#C8A96E) !important;
  border-radius:99px !important;
}
body.hq-redesign .hqd-analytics-v2 .analytics-period-bar{
  border-radius:14px;
  background:linear-gradient(180deg,#FFFFFF,#FBF9F3);
  border:1.5px solid var(--border,#E2DDD4);
  padding:10px 14px;
}
body.hq-redesign .hqd-analytics-v2 .vtab{
  border-radius:99px;
  font-weight:700;
}
body.hq-redesign .hqd-analytics-v2 .vtab.active{
  background:linear-gradient(135deg,#1B1A6B,#2B2A8B) !important;
  color:#fff !important;
  box-shadow:0 3px 10px rgba(27,26,107,.24);
}

/* ── 5. LABEL GENERATOR polish ───────────────────────────────── */
body.hq-redesign .hqd-lbl-v2 select,
body.hq-redesign .hqd-lbl-v2 input[type="text"],
body.hq-redesign .hqd-lbl-v2 input[type="number"]{
  border-radius:10px !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  transition:border-color .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-lbl-v2 select:focus,
body.hq-redesign .hqd-lbl-v2 input[type="text"]:focus,
body.hq-redesign .hqd-lbl-v2 input[type="number"]:focus{
  border-color:#C8A96E !important;
  box-shadow:0 0 0 3px rgba(200,169,110,.18) !important;
  outline:none !important;
}
body.hq-redesign .hqd-lbl-v2 .btn-primary{
  border-radius:12px !important;
  padding:11px 22px !important;
  font-weight:800 !important;
  box-shadow:0 4px 12px rgba(27,26,107,.18);
  transition:transform .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-lbl-v2 .btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(27,26,107,.24);
}
body.hq-redesign .hqd-lbl-v2 #lbl-preview-area,
body.hq-redesign .hqd-lbl-v2 #pl-preview-area{
  background:linear-gradient(180deg,#FBF9F3,#F1ECE0);
  border:1.5px dashed rgba(200,169,110,.45);
  border-radius:18px;
  padding:24px;
  min-height:300px;
}
body.hq-redesign .hqd-lbl-v2 [id^="lbl-tab-"],
body.hq-redesign .hqd-lbl-v2 [id^="pl-tab-"]{
  letter-spacing:.02em;
}

/* ── 6. FLYER MAP polish ─────────────────────────────────────── */
body.hq-redesign .hqd-fm-v2 .hqd-fm-filter-v2{
  background:linear-gradient(180deg,#FFFFFF,#FBF9F3) !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  border-radius:14px !important;
  box-shadow:0 2px 8px rgba(20,18,40,.04);
}
body.hq-redesign .hqd-fm-v2 .hqd-fm-filter-v2 select,
body.hq-redesign .hqd-fm-v2 .hqd-fm-filter-v2 input[type="date"]{
  border:1.5px solid var(--border,#E2DDD4) !important;
  transition:border-color .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-fm-v2 .hqd-fm-filter-v2 select:focus,
body.hq-redesign .hqd-fm-v2 .hqd-fm-filter-v2 input[type="date"]:focus{
  border-color:#C8A96E !important;
  box-shadow:0 0 0 3px rgba(200,169,110,.18) !important;
  outline:none;
}
body.hq-redesign .hqd-fm-v2 .hqd-fm-map-v2{
  border-radius:18px !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  box-shadow:0 4px 16px rgba(20,18,40,.08);
}
body.hq-redesign .hqd-fm-v2 #fm-stats .stat-card,
body.hq-redesign .hqd-fm-v2 #fm-stats > div{
  border-radius:14px;
  background:linear-gradient(180deg,#FFFFFF,#FBF9F3);
  border:1.5px solid var(--border,#E2DDD4);
  box-shadow:0 2px 8px rgba(20,18,40,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-fm-v2 #fm-stats > div:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(20,18,40,.08);
}

/* ── 7. KITCHEN COMPARISON polish ────────────────────────────── */
body.hq-redesign .hqd-kc-v2 .stab{
  font-weight:800 !important;
  letter-spacing:.01em;
  position:relative;
}
body.hq-redesign .hqd-kc-v2 .stab.active{
  color:#1B1A6B !important;
}
body.hq-redesign .hqd-kc-v2 .stab.active::after{
  content:'';
  position:absolute; left:8px; right:8px; bottom:-2px;
  height:3px;
  background:linear-gradient(90deg,#1B1A6B,#C8A96E);
  border-radius:3px 3px 0 0;
}
body.hq-redesign .hqd-kc-v2 #kc-content table{
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(20,18,40,.04);
}
body.hq-redesign .hqd-kc-v2 #kc-content thead th{
  background:linear-gradient(180deg,#FAF8F2,#F1ECE0) !important;
  font-size:11px !important;
  font-weight:800 !important;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#6B7280 !important;
}
body.hq-redesign .hqd-kc-v2 #kc-content tbody tr{
  transition:background .15s ease;
}
body.hq-redesign .hqd-kc-v2 #kc-content tbody tr:hover{
  background:#FBF9F3 !important;
}

/* Reduced motion overrides for Phase 36 */
@media (prefers-reduced-motion: reduce){
  body.hq-redesign .hqd-cal-evlist-v2 .ev-item,
  body.hq-redesign .hqd-sales-v2 .stat-card,
  body.hq-redesign .hqd-analytics-v2 .hqd-an-stat-v2,
  body.hq-redesign .hqd-fm-v2 #fm-stats > div,
  body.hq-redesign .hqd-sc-v2 .sc-panel.hqd-sc-panel-v2 .btn-primary,
  body.hq-redesign .hqd-lbl-v2 .btn-primary{
    transition:none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Customer Lab v2 — premium card grid with hero strip + LTV foot
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign #customer-list:has(.hqd-cu-grid-v2){
  background:transparent !important;
}
/* Sibling-overlay strategy: hide legacy list once we've taken over,
   v2 grid lives as a sibling and survives any hq.js innerHTML wipes. */
body.hq-redesign #customer-list[data-hqd-cu-hidden="1"]{
  display:none !important;
}
body.hq-redesign .hqd-cu-grid-v2-sibling,
body.hq-redesign .hqd-cu-empty-v2-sibling{
  margin-top:8px;
}
body.hq-redesign .hqd-cu-grid-v2{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
  gap:16px;
  padding:4px 0;
}
body.hq-redesign .hqd-cu-card-v2{
  position:relative;
  display:flex;
  flex-direction:column;
  height:280px;
  min-height:280px;
  max-height:280px;
  align-self:start;
  background:#fff;
  border:1.5px solid var(--border, #E2DDD4);
  border-radius:16px;
  overflow:hidden;
  cursor:pointer;
  outline:none;
  box-shadow:
    0 1px 2px rgba(20,18,40,.04),
    0 4px 14px rgba(20,18,40,.05);
  transition:
    transform .22s cubic-bezier(.2,.7,.2,1),
    box-shadow .22s cubic-bezier(.2,.7,.2,1),
    border-color .18s ease;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
}
body.hq-redesign .hqd-cu-card-v2:hover{
  transform:translateY(-3px);
  border-color:var(--gold, #C8A96E);
  box-shadow:
    0 6px 16px rgba(20,18,40,.08),
    0 18px 36px rgba(20,18,40,.10),
    0 0 0 1px rgba(200,169,110,.25);
}
body.hq-redesign .hqd-cu-card-v2:focus-visible{
  outline:2px solid var(--gold, #C8A96E);
  outline-offset:2px;
}

/* Hero strip — gradient drawn from the avatar's brand color */
body.hq-redesign .hqd-cu-card-v2__hero{
  position:relative;
  height:60px;
  flex-shrink:0;
  display:flex;
  align-items:flex-end;
  padding:0 18px;
  overflow:visible;
}
body.hq-redesign .hqd-cu-card-v2__hero::after{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.18), transparent 60%);
  pointer-events:none;
}
body.hq-redesign .hqd-cu-card-v2__avatar{
  position:relative;
  z-index:2;
  width:60px; height:60px;
  border-radius:50%;
  display:grid; place-items:center;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-weight:900;
  font-size:20px;
  color:#fff;
  letter-spacing:.02em;
  border:3px solid #fff;
  box-shadow:0 4px 14px rgba(20,16,68,.18), 0 0 0 1px rgba(200,169,110,.18);
  transform:translateY(50%);
  flex-shrink:0;
}

/* Body */
body.hq-redesign .hqd-cu-card-v2__body{
  flex:1;
  padding:38px 18px 12px 18px;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-height:0;
  overflow:hidden;
}
body.hq-redesign .hqd-cu-card-v2__name{
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-weight:800;
  font-size:16px;
  line-height:1.25;
  color:var(--navy, #1B1A6B);
  letter-spacing:-0.018em;
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.hq-redesign .hqd-cu-card-v2__email{
  font-size:11.5px;
  color:var(--muted, #7B7A9A);
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin:0;
}
body.hq-redesign .hqd-cu-card-v2__badges{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:6px;
  max-height:48px;
  overflow:hidden;
}
body.hq-redesign .hqd-cu-card-v2__chip{
  display:inline-block;
  padding:2px 9px;
  border-radius:99px;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.03em;
  white-space:nowrap;
  background:#F3F4F6;
  color:#374151;
  text-transform:uppercase;
}

/* Foot — three-column LTV / Recency / Joined */
body.hq-redesign .hqd-cu-card-v2__foot{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
  padding:12px 18px 16px 18px;
  border-top:1px solid #F1EEE5;
  background:linear-gradient(to bottom, #FBF8F1 0%, #FFFFFF 100%);
  flex-shrink:0;
}
body.hq-redesign .hqd-cu-card-v2__col{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
body.hq-redesign .hqd-cu-card-v2__col-lbl{
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted, #7B7A9A);
}
body.hq-redesign .hqd-cu-card-v2__col-val{
  font-size:13px;
  font-weight:800;
  color:var(--navy, #1B1A6B);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
}
body.hq-redesign .hqd-cu-card-v2__col-val--spend{
  background:linear-gradient(135deg, #C8A96E 0%, #A8884E 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  font-size:16px;
  letter-spacing:-.01em;
}
body.hq-redesign .hqd-cu-card-v2__col-val--joined{
  font-weight:700;
  color:var(--muted, #7B7A9A);
  font-size:12px;
}

/* Empty state */
body.hq-redesign .hqd-cu-empty-v2{
  margin:24px auto;
  max-width:480px;
}

/* Polish the customer stats row above the grid */
body.hq-redesign #customer-stats-row .stat-card{
  border-radius:14px !important;
  border:1.5px solid var(--border, #E2DDD4) !important;
  background:linear-gradient(180deg, #FFFFFF 0%, #FBF8F1 100%) !important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow:0 1px 3px rgba(20,16,68,.04);
}
body.hq-redesign #customer-stats-row .stat-card:hover{
  transform:translateY(-2px);
  border-color:var(--gold, #C8A96E) !important;
  box-shadow:0 6px 18px rgba(20,16,68,.10);
}
body.hq-redesign #customer-stats-row .stat-val{
  font-family:'Plus Jakarta Sans','Inter',sans-serif !important;
  font-weight:900 !important;
  letter-spacing:-.02em !important;
}
body.hq-redesign #customer-stats-row .stat-lbl{
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  color:var(--muted, #7B7A9A) !important;
}

/* Polish customer filter pill row */
body.hq-redesign #mod-customers .fbtn{
  border-radius:99px !important;
  font-weight:700 !important;
  letter-spacing:.01em !important;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease !important;
}
body.hq-redesign #mod-customers .fbtn:hover{
  transform:translateY(-1px);
  border-color:var(--gold, #C8A96E) !important;
  box-shadow:0 3px 10px rgba(200,169,110,.18);
}
body.hq-redesign #mod-customers .fbtn.active{
  background:linear-gradient(135deg, #1B1A6B 0%, #2D2A8A 100%) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 4px 14px rgba(27,26,107,.32) !important;
}

@media (prefers-reduced-motion: reduce){
  body.hq-redesign .hqd-cu-card-v2,
  body.hq-redesign #customer-stats-row .stat-card,
  body.hq-redesign #mod-customers .fbtn{ transition:none !important; }
  body.hq-redesign .hqd-cu-card-v2:hover{ transform:none; }
}

/* ════════════════════════════════════════════════════════════════════
   PHASE 38 — Recipe tab radius lock + Email Sender v2 + Finmerch SaaS
   1. #rp-tab-bar .fbtn — square top corners, classy underline.
   2. #mod-emailAlerts.hqd-ea-v2 — premium tab strip, stat cards,
      Compose / Menu Blast hero, search input above subscriber list.
   3. #mod-finmerch.hqd-fmx-v2 — sticky tab bar with bolder active,
      group dividers, hero heading per pane, sticky-head SKU table,
      gold focus rings on inputs/selects.
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. RECIPE EDITOR TABS — lock square top corners ───────────── */
body.hq-redesign #rp-tab-bar{
  display:flex !important;
  gap:2px !important;
  border-bottom:2px solid var(--border, #E2DDD4) !important;
  margin-bottom:2px !important;
  padding:0 !important;
  background:transparent !important;
}
body.hq-redesign #rp-tab-bar .fbtn,
body.hq-redesign #recipe-detail-panel #rp-tab-bar .fbtn{
  /* Lock to a classic tabbed-panel shape — square top, square bottom. */
  border-radius:8px 8px 0 0 !important;
  border:1px solid var(--border, #E2DDD4) !important;
  border-bottom:0 !important;
  background:#FAF8F3 !important;
  color:var(--muted, #6B7280) !important;
  font-weight:700 !important;
  letter-spacing:.01em !important;
  padding:8px 14px !important;
  font-size:12px !important;
  margin-bottom:-1px !important;
  position:relative !important;
  box-shadow:none !important;
  transition:background .15s ease, color .15s ease, border-color .15s ease !important;
}
body.hq-redesign #rp-tab-bar .fbtn:hover,
body.hq-redesign #recipe-detail-panel #rp-tab-bar .fbtn:hover{
  background:#fff !important;
  color:var(--gold-dk, #8B6E2E) !important;
  border-color:var(--gold, #C8A96E) !important;
}
body.hq-redesign #rp-tab-bar .fbtn.active,
body.hq-redesign #recipe-detail-panel #rp-tab-bar .fbtn.active{
  background:#fff !important;
  color:var(--navy, #1B1A6B) !important;
  border-color:var(--border, #E2DDD4) !important;
  border-bottom:2px solid #fff !important;
  font-weight:800 !important;
  z-index:2 !important;
  box-shadow:0 -2px 0 0 var(--navy, #1B1A6B) inset !important;
}
body.hq-redesign #rp-tab-bar .fbtn.active::after{
  content:'';
  position:absolute;
  left:0; right:0; top:0;
  height:3px;
  background:linear-gradient(90deg, var(--navy,#1B1A6B), var(--gold,#C8A96E));
  border-radius:8px 8px 0 0;
}

/* ── 2. EMAIL SENDER v2 ────────────────────────────────────────── */
/* Tab strip — premium underline with gradient on active. */
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 .hqd-ea-tabbar{
  border-bottom:1px solid var(--border, #E2DDD4) !important;
  margin-bottom:24px !important;
  position:relative;
  z-index:5;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 .stab{
  position:relative;
  padding:14px 18px !important;
  font-size:13px !important;
  font-weight:700 !important;
  color:var(--muted, #6B7280) !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  cursor:pointer !important;
  transition:color .15s ease !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 .stab:hover{
  color:var(--navy, #1B1A6B) !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 .stab.active{
  color:#7E22CE !important;
  font-weight:800 !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 .stab.active::after{
  content:'';
  position:absolute;
  left:10px; right:10px; bottom:-1px;
  height:3px;
  border-radius:3px 3px 0 0;
  background:linear-gradient(90deg,#7E22CE 0%,#EC4899 100%);
  box-shadow:0 1px 6px rgba(126,34,206,.35);
}

/* Stats grid v2 */
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 .hqd-ea-stats .stat-card{
  border:1.5px solid var(--border, #E2DDD4) !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:0 1px 2px rgba(20,18,40,.04), 0 4px 14px rgba(20,18,40,.05) !important;
  transition:transform .15s ease, box-shadow .15s ease !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 .hqd-ea-stats .stat-card:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(20,18,40,.10) !important;
}

/* Search row above subscriber list */
body.hq-redesign .hqd-ea-search-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
body.hq-redesign .hqd-ea-search{
  flex:1;
  max-width:380px;
  padding:9px 14px !important;
  font-size:13px !important;
  border:1.5px solid var(--border, #E2DDD4) !important;
  border-radius:99px !important;
  background:#fff !important;
  transition:border-color .15s ease, box-shadow .15s ease !important;
}
body.hq-redesign .hqd-ea-search:focus{
  outline:none !important;
  border-color:var(--gold, #C8A96E) !important;
  box-shadow:0 0 0 4px rgba(200,169,110,.18) !important;
}
body.hq-redesign .hqd-ea-search-count{
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted, #6B7280);
}

/* Compose pane polish */
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-send > div{
  border:1.5px solid var(--border, #E2DDD4) !important;
  border-radius:18px !important;
  padding:28px !important;
  box-shadow:0 1px 2px rgba(20,18,40,.04), 0 6px 20px rgba(20,18,40,.06) !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-send h3{
  font-size:18px !important;
  font-weight:900 !important;
  background:linear-gradient(90deg,#7E22CE 0%,#EC4899 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-bottom:20px !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-send .fc:focus,
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-send select:focus,
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-send input:focus,
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-send textarea:focus{
  outline:none !important;
  border-color:var(--gold, #C8A96E) !important;
  box-shadow:0 0 0 4px rgba(200,169,110,.18) !important;
}

/* Send button + badge */
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-send-btn{
  background:linear-gradient(135deg,#7E22CE 0%,#EC4899 100%) !important;
  color:#fff !important;
  border:none !important;
  padding:13px 32px !important;
  border-radius:99px !important;
  font-weight:900 !important;
  font-size:14px !important;
  letter-spacing:.02em !important;
  box-shadow:0 6px 20px rgba(126,34,206,.32) !important;
  cursor:pointer !important;
  transition:transform .15s ease, box-shadow .15s ease !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-send-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(126,34,206,.42) !important;
}
body.hq-redesign .hqd-ea-send-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 14px;
  border-radius:99px;
  background:rgba(126,34,206,.10);
  color:#7E22CE;
  font-size:11.5px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  border:1px solid rgba(126,34,206,.20);
  margin-left:6px;
}

/* Menu Blast hero pane upgrade */
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu > div{
  background:linear-gradient(135deg,#1B1A6B 0%,#2D2A8A 100%) !important;
  border:none !important;
  border-radius:20px !important;
  padding:40px 32px !important;
  color:#fff !important;
  box-shadow:0 12px 40px rgba(27,26,107,.25) !important;
  position:relative;
  overflow:hidden;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu > div::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 90% 10%, rgba(200,169,110,.18), transparent 60%);
  pointer-events:none;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu h3{
  color:#fff !important;
  font-size:24px !important;
  font-weight:900 !important;
  letter-spacing:-.01em !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu p{
  color:rgba(255,255,255,.72) !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu #menu-blast-meals,
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu #menu-blast-bakery{
  color:#fff !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu #menu-blast-recipients{
  color:var(--gold, #C8A96E) !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu div[style*="text-align:center"] > div:last-child{
  color:rgba(255,255,255,.55) !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu .btn{
  border:1px solid rgba(255,255,255,.20) !important;
  background:rgba(255,255,255,.08) !important;
  color:#fff !important;
  backdrop-filter:blur(8px);
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu .btn-primary,
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu #menu-blast-btn{
  background:linear-gradient(135deg, var(--gold,#C8A96E), var(--gold-lt,#E5C98F)) !important;
  color:#1B1A6B !important;
  border:none !important;
  font-weight:900 !important;
  box-shadow:0 6px 20px rgba(200,169,110,.32) !important;
}
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu #menu-blast-status,
body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-pane-menu #menu-blast-last{
  color:rgba(255,255,255,.55) !important;
}

/* ── 3. FINMERCH SaaS polish ──────────────────────────────────── */
body.hq-redesign #mod-finmerch.hqd-fmx-v2 > div:first-child{
  /* The top tab bar block. Tighten and elevate. */
  border:1.5px solid var(--border, #E2DDD4) !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,#FAF8F3 0%,#fff 100%) !important;
  box-shadow:0 2px 8px rgba(20,18,40,.05) !important;
  position:sticky !important;
  top:0 !important;
  z-index:20 !important;
  overflow:hidden !important;
}
/* Group label (Finance / Sales / Ops) */
body.hq-redesign #mod-finmerch.hqd-fmx-v2 > div:first-child > div > div:first-child{
  background:linear-gradient(180deg,rgba(27,26,107,.06),rgba(27,26,107,.02)) !important;
  font-size:10px !important;
  font-weight:900 !important;
  letter-spacing:.14em !important;
  color:var(--navy,#1B1A6B) !important;
  border-right:1.5px solid var(--border,#E2DDD4) !important;
}
/* Group divider — make finance/sales/ops feel distinct */
body.hq-redesign #mod-finmerch.hqd-fmx-v2 > div:first-child > div{
  border-bottom:1.5px solid var(--border, #E2DDD4) !important;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 > div:first-child > div:last-child{
  border-bottom:0 !important;
}
/* Tab buttons — bolder hierarchy */
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .stab[id^="fm-tab-"]{
  padding:13px 16px !important;
  font-size:12.5px !important;
  font-weight:700 !important;
  color:var(--muted,#6B7280) !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  position:relative;
  transition:color .15s ease, background .15s ease !important;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .stab[id^="fm-tab-"]:hover{
  color:var(--navy,#1B1A6B) !important;
  background:rgba(200,169,110,.06) !important;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .stab[id^="fm-tab-"].active{
  color:#fff !important;
  font-weight:800 !important;
  background:linear-gradient(135deg,#1B1A6B 0%,#2D2A8A 100%) !important;
  box-shadow:inset 0 -3px 0 var(--gold,#C8A96E) !important;
}

/* Hero heading per pane */
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .hqd-fmx-hero{
  margin:0 0 22px 0;
  padding:18px 22px;
  background:#fff;
  border:1.5px solid var(--border, #E2DDD4);
  border-radius:14px;
  box-shadow:0 1px 2px rgba(20,18,40,.04);
  position:relative;
  overflow:hidden;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .hqd-fmx-hero::before{
  content:'';
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background:linear-gradient(180deg, var(--navy,#1B1A6B), var(--gold,#C8A96E));
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .hqd-fmx-hero__eyebrow{
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold-dk, #8B6E2E);
  margin-bottom:4px;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .hqd-fmx-hero__title{
  font-size:24px;
  font-weight:900;
  letter-spacing:-.01em;
  background:linear-gradient(90deg, #1B1A6B 0%, #C8A96E 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  line-height:1.15;
  margin-bottom:4px;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .hqd-fmx-hero__sub{
  font-size:13px;
  color:var(--muted, #6B7280);
  font-weight:500;
}

/* Inline pricing sub-tab strip (.fm-stab) — bolder active state */
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .fm-stab{
  border-radius:99px !important;
  font-weight:700 !important;
  padding:7px 16px !important;
  border:1.5px solid var(--border, #E2DDD4) !important;
  background:#fff !important;
  color:var(--muted,#6B7280) !important;
  transition:all .15s ease !important;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .fm-stab:hover{
  border-color:var(--gold,#C8A96E) !important;
  color:var(--navy,#1B1A6B) !important;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .fm-stab.active{
  background:linear-gradient(135deg,#1B1A6B 0%,#2D2A8A 100%) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 4px 14px rgba(27,26,107,.30) !important;
}

/* SKU DB table — sticky head, zebra rows, gold-tinted hover */
body.hq-redesign #mod-finmerch.hqd-fmx-v2 #fm-pane-skus table{
  border-collapse:separate !important;
  border-spacing:0 !important;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 #fm-pane-skus thead th{
  position:sticky !important;
  top:0 !important;
  z-index:3 !important;
  background:linear-gradient(180deg,#FAF8F3 0%,#F1ECE0 100%) !important;
  font-size:10.5px !important;
  font-weight:900 !important;
  letter-spacing:.10em !important;
  text-transform:uppercase !important;
  color:var(--navy,#1B1A6B) !important;
  border-bottom:1.5px solid var(--gold,#C8A96E) !important;
  padding:12px 14px !important;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 #fm-pane-skus tbody tr:nth-child(even) td{
  background:#FAF8F3 !important;
}
body.hq-redesign #mod-finmerch.hqd-fmx-v2 #fm-pane-skus tbody tr:hover td{
  background:rgba(200,169,110,.12) !important;
}

/* Uniform gold focus ring on all finmerch inputs/selects/textareas */
body.hq-redesign #mod-finmerch.hqd-fmx-v2 input:not([type="checkbox"]):not([type="radio"]):focus,
body.hq-redesign #mod-finmerch.hqd-fmx-v2 select:focus,
body.hq-redesign #mod-finmerch.hqd-fmx-v2 textarea:focus,
body.hq-redesign #mod-finmerch.hqd-fmx-v2 .fc:focus{
  outline:none !important;
  border-color:var(--gold,#C8A96E) !important;
  box-shadow:0 0 0 4px rgba(200,169,110,.18) !important;
}

@media (prefers-reduced-motion: reduce){
  body.hq-redesign #mod-emailAlerts.hqd-ea-v2 .hqd-ea-stats .stat-card,
  body.hq-redesign #mod-emailAlerts.hqd-ea-v2 #ea-send-btn,
  body.hq-redesign #mod-finmerch.hqd-fmx-v2 .stab[id^="fm-tab-"],
  body.hq-redesign #mod-finmerch.hqd-fmx-v2 .fm-stab{ transition:none !important; }
}


/* ════════════════════════════════════════════════════════════════════
   Overlay open-state fix
   #leads-link-builder-ov and #create-customer-ov ship in hq.html with
   inline style="display:none;" which beats the class rule
   .overlay.open { display:flex } via specificity. The "+ Trackable
   link" / "Create customer" buttons add the .open class but the modal
   stays hidden. Force-show with !important when .open is present.
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign #leads-link-builder-ov.open,
body.hq-redesign #create-customer-ov.open,
body.hq-redesign #leads-link-history-ov.open{
  display:flex !important;
}

/* History overlay shares the link-builder chrome (ov-card/ov-hdr/
   ov-body) but at a wider max-width and with no inline custom card
   chrome since rows render as a table. */
body.hq-redesign #leads-link-history-ov .ov-card{
  position:relative;
  background:#fff;
  border:1.5px solid var(--border, #E2DDD4);
  border-radius:20px;
  width:100%;
  max-width:920px;
  max-height:calc(100vh - 60px);
  margin:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(20,16,68,.18), 0 12px 28px rgba(20,16,68,.10);
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  animation:hqdLBin .25s cubic-bezier(.2,.7,.2,1);
}
body.hq-redesign #leads-link-history-ov .ov-hdr{
  padding:20px 24px 16px 24px;
  border-bottom:1px solid var(--border, #E2DDD4);
  background:linear-gradient(180deg, #FBF8F1 0%, #ffffff 100%);
  display:flex;align-items:center;justify-content:space-between;
  flex-shrink:0;
}
body.hq-redesign #leads-link-history-ov .ov-hdr h3{
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:18px;font-weight:900;letter-spacing:-.02em;
  color:var(--navy, #1B1A6B);margin:0;
}
body.hq-redesign #leads-link-history-ov .btn-close{
  position:relative;width:32px;height:32px;border:none;
  background:rgba(20,16,68,.05);border-radius:50%;cursor:pointer;
  font-size:18px;font-weight:700;color:var(--navy, #1B1A6B);
  display:grid;place-items:center;line-height:1;padding:0;
  transition:background .15s ease, color .15s ease, transform .15s ease;
}
body.hq-redesign #leads-link-history-ov .btn-close:hover{
  background:#DC2626;color:#fff;transform:scale(1.06);
}
body.hq-redesign #leads-link-history-ov .ov-body{
  padding:22px 24px 24px 24px;overflow-y:auto;flex:1;background:#fff;
}
body.hq-redesign #leads-link-history-ov input,
body.hq-redesign #leads-link-history-ov select{
  font-family:'Plus Jakarta Sans',sans-serif !important;
  font-size:13.5px !important;font-weight:600;
  color:var(--navy, #1B1A6B);
  background:#FBF8F1;
  border:1.5px solid var(--border, #E2DDD4) !important;
  border-radius:10px !important;
}

/* Saved-links panel inside the link builder: stays on the white
   ov-body background with dark text (the panel sits BELOW the navy
   #lb-link-card and must not inherit any of its colors). */
body.hq-redesign #leads-link-builder-ov #lb-saved-wrap{
  background:#fff !important;
  color:var(--navy, #1B1A6B) !important;
}
body.hq-redesign #leads-link-builder-ov #lb-saved-wrap *{
  /* default text color back to navy/ink — guards against any
     bleed from neighboring rules */
  color:var(--navy, #1B1A6B);
}
body.hq-redesign #leads-link-builder-ov #lb-saved-wrap [style*="color:var(--muted"]{
  color:var(--muted, #7B7A9A) !important;
}

/* ════════════════════════════════════════════════════════════════════
   Trackable link builder — premium modal chrome
   The HTML uses .ov-card / .ov-hdr / .ov-body / .btn-close / .fl
   classes that have ZERO CSS in hq.html. Modal rendered as bare HTML.
   Style them now, scoped tight enough to not leak.
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign #leads-link-builder-ov .ov-card,
body.hq-redesign #create-customer-ov .ov-card{
  position:relative;
  background:#fff;
  border:1.5px solid var(--border, #E2DDD4);
  border-radius:20px;
  width:100%;
  max-width:560px;
  max-height:calc(100vh - 60px);
  margin:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(20,16,68,.18), 0 12px 28px rgba(20,16,68,.10);
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  animation:hqdLBin .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes hqdLBin{
  from{transform:translateY(20px) scale(.96);opacity:0;}
  to{transform:translateY(0) scale(1);opacity:1;}
}
body.hq-redesign #leads-link-builder-ov .ov-hdr{
  padding:20px 24px 16px 24px;
  border-bottom:1px solid var(--border, #E2DDD4);
  background:linear-gradient(180deg, #FBF8F1 0%, #ffffff 100%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-shrink:0;
}
body.hq-redesign #leads-link-builder-ov .ov-hdr h3{
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.02em;
  color:var(--navy, #1B1A6B);
  margin:0;
}
body.hq-redesign #leads-link-builder-ov .btn-close,
body.hq-redesign #create-customer-ov .btn-close{
  position:relative;
  top:auto; right:auto;
  width:32px;height:32px;
  border:none;
  background:rgba(20,16,68,.05);
  border-radius:50%;
  cursor:pointer;
  font-size:18px;
  font-weight:700;
  color:var(--navy, #1B1A6B);
  display:grid;
  place-items:center;
  line-height:1;
  padding:0;
  transition:background .15s ease, color .15s ease, transform .15s ease;
}
body.hq-redesign #leads-link-builder-ov .btn-close:hover,
body.hq-redesign #create-customer-ov .btn-close:hover{
  background:#DC2626;
  color:#fff;
  transform:scale(1.06);
}
body.hq-redesign #leads-link-builder-ov .ov-body{
  padding:22px 24px 24px 24px;
  overflow-y:auto;
  flex:1;
  background:#ffffff;
}
body.hq-redesign #leads-link-builder-ov .ov-body > div{
  margin-bottom:0;
}
body.hq-redesign #leads-link-builder-ov label.fl,
body.hq-redesign #leads-link-builder-ov .fl{
  display:block;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted, #7B7A9A);
  margin-bottom:6px;
}
body.hq-redesign #leads-link-builder-ov .fl span{
  text-transform:none;
  letter-spacing:.01em;
  font-weight:600;
  font-size:11px;
  color:var(--muted, #7B7A9A);
  margin-left:4px;
}
body.hq-redesign #leads-link-builder-ov input,
body.hq-redesign #leads-link-builder-ov select{
  font-family:'Plus Jakarta Sans',sans-serif !important;
  font-size:13.5px !important;
  font-weight:600;
  color:var(--navy, #1B1A6B);
  background:#FBF8F1;
  border:1.5px solid var(--border, #E2DDD4) !important;
  border-radius:10px !important;
  padding:11px 14px !important;
  width:100%;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
body.hq-redesign #leads-link-builder-ov input::placeholder{
  color:rgba(20,16,68,.35);
  font-weight:500;
}
body.hq-redesign #leads-link-builder-ov input:focus,
body.hq-redesign #leads-link-builder-ov select:focus{
  outline:none !important;
  border-color:var(--gold, #C8A96E) !important;
  background:#fff;
  box-shadow:0 0 0 4px rgba(200,169,110,.18) !important;
}
/* Generated-link preview card */
body.hq-redesign #leads-link-builder-ov #lb-link-card{
  background:linear-gradient(135deg, var(--navy, #1B1A6B) 0%, #2D2A8A 100%) !important;
  border:1.5px solid rgba(200,169,110,.4) !important;
  border-radius:14px !important;
  padding:18px !important;
  color:#fff !important;
  margin-top:18px;
}
body.hq-redesign #leads-link-builder-ov #lb-link-card > div:first-child{
  color:rgba(255,255,255,.65) !important;
}
body.hq-redesign #leads-link-builder-ov #lb-output{
  color:#fff !important;
  font-family:ui-monospace,Menlo,monospace !important;
  font-size:12.5px !important;
  background:rgba(255,255,255,.10);
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  margin-top:6px;
  word-break:break-all;
  line-height:1.55;
}
body.hq-redesign #leads-link-builder-ov #lb-link-card .btn{
  border-radius:99px !important;
  font-family:'Plus Jakarta Sans',sans-serif !important;
  font-size:12.5px !important;
  font-weight:800 !important;
  letter-spacing:.005em;
  padding:9px 16px !important;
  border:none !important;
  cursor:pointer !important;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
body.hq-redesign #leads-link-builder-ov #lb-link-card .btn-primary{
  background:linear-gradient(135deg, var(--gold, #C8A96E) 0%, var(--gold-lt, #E8C87A) 100%) !important;
  color:var(--navy-deep, #0F0E47) !important;
  box-shadow:0 4px 14px rgba(200,169,110,.32);
}
body.hq-redesign #leads-link-builder-ov #lb-link-card .btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(200,169,110,.42);
}
body.hq-redesign #leads-link-builder-ov #lb-link-card .btn-ghost{
  background:rgba(255,255,255,.10) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.20) !important;
}
body.hq-redesign #leads-link-builder-ov #lb-link-card .btn-ghost:hover{
  background:rgba(255,255,255,.18) !important;
  transform:translateY(-1px);
}
/* Hide the custom URL row when "custom" isn't selected (smarter UX) */
body.hq-redesign #leads-link-builder-ov[data-dest="custom"] #lb-custom-row{display:block;}
body.hq-redesign #leads-link-builder-ov #lb-custom-row{display:none;}

/* ════════════════════════════════════════════════════════════════════
   QR Tracker — fix cramped cards
   The legacy renderer writes .con-card markup into #qr-tracker-grid
   (.contact-grid 260px-min columns). Card content needs more horizontal
   room; tighten the inline metric row + bump min-col so 3-up looks right
   on full HD and 2-up on common laptop widths.
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign #mod-qrTracker #qr-tracker-grid.contact-grid{
  grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap:16px !important;
}
body.hq-redesign #mod-qrTracker #qr-tracker-stats{
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap:14px !important;
}
body.hq-redesign #mod-qrTracker #qr-tracker-stats > div{
  border-radius:14px !important;
  border:1.5px solid var(--border, #E2DDD4) !important;
  background:linear-gradient(180deg, #fff 0%, #FBF8F1 100%) !important;
  box-shadow:0 1px 3px rgba(20,16,68,.04);
}
body.hq-redesign #mod-qrTracker #qr-tracker-grid .con-card{
  border-radius:14px !important;
  border:1.5px solid var(--border, #E2DDD4) !important;
  background:#fff !important;
  padding:18px !important;
  display:flex !important;
  flex-direction:column;
  gap:10px;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  min-width:0;
}
body.hq-redesign #mod-qrTracker #qr-tracker-grid .con-card:hover{
  transform:translateY(-2px);
  border-color:var(--gold, #C8A96E) !important;
  box-shadow:0 6px 18px rgba(20,16,68,.08);
}
body.hq-redesign #mod-qrTracker #qr-tracker-grid .con-card > div{
  margin-bottom:0 !important; /* let the flex-gap own spacing */
}
/* Inline metric row — 3 metrics that previously overflowed */
body.hq-redesign #mod-qrTracker #qr-tracker-grid .con-card > div:nth-child(2){
  display:grid !important;
  grid-template-columns:repeat(3, 1fr) !important;
  gap:10px !important;
  padding:10px 12px;
  background:#FBF8F1;
  border:1px solid var(--border, #E2DDD4);
  border-radius:10px;
}
body.hq-redesign #mod-qrTracker #qr-tracker-grid .con-card > div:nth-child(2) > div{
  min-width:0;
}
/* Action button row — wrap properly, smaller pills */
body.hq-redesign #mod-qrTracker #qr-tracker-grid .con-card > div:last-child{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  margin-top:auto;
  padding-top:6px;
  border-top:1px dashed var(--border, #E2DDD4);
}
body.hq-redesign #mod-qrTracker #qr-tracker-grid .con-card .btn{
  padding:6px 12px !important;
  font-size:11px !important;
  border-radius:8px !important;
  flex:1 1 auto;
  min-width:80px;
  text-align:center;
  font-weight:700;
}
body.hq-redesign #mod-qrTracker #qr-tracker-grid .con-card .btn-primary{
  background:linear-gradient(135deg, var(--navy, #1B1A6B) 0%, #2D2A8A 100%) !important;
  color:#fff !important;
}
@media (prefers-reduced-motion: reduce){
  body.hq-redesign #mod-qrTracker #qr-tracker-grid .con-card{transition:none;}
  body.hq-redesign #mod-qrTracker #qr-tracker-grid .con-card:hover{transform:none;}
}

/* ════════════════════════════════════════════════════════════════════
   Recipe Lab card flicker fix
   hq.js's renderRecipes() writes legacy .recipe-card markup into
   #recipe-grid; ~30ms later the v2 MutationObserver replaces them with
   .hqd-recipe-card-v2. The user briefly sees the legacy cards in that
   gap — looks like the wrong layout flashing in until the page is
   reloaded.
   Hide the legacy direct-child cards in v2 mode so only the replacement
   ever shows. The v2 cards live inside a .hqd-recipe-grid-v2 row
   wrapper, so this rule never touches them.
   ════════════════════════════════════════════════════════════════════ */
body.hq-redesign #recipe-grid > .recipe-card{ display:none !important; }
/* ═══════════════════════════════════════════════════════════════
   PHASE 37 — Finmerch shell + Marketing AI + Market Research + GBP
   Pattern B taggers — premium chrome over legacy markup.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. FINMERCH SHELL ─────────────────────────────────────────── */

/* Module padding breathes more so sticky tab bar can hover. */
body.hq-redesign .hqd-fmx-v2{
  padding-top:4px;
}

/* Outer tab bar — already has border + radius inline; elevate it. */
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-tabbar-v2{
  border:1.5px solid var(--border,#E2DDD4) !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,#FFFFFF 0%, #FBF9F3 100%) !important;
  box-shadow:0 4px 14px rgba(20,18,40,.05);
  position:sticky;
  top:8px;
  z-index:5;
}
/* Group rail labels (Finance / Sales / Ops) */
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-tabbar-v2 > div > div:first-child{
  background:linear-gradient(180deg,#FAF8F2,#F1ECE0) !important;
  color:#1B1A6B !important;
  font-weight:900 !important;
  letter-spacing:.11em !important;
}
/* Tabs themselves */
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-tabbar-v2 .stab{
  font-weight:800 !important;
  letter-spacing:.01em;
  position:relative;
  transition:background .15s ease, color .15s ease;
}
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-tabbar-v2 .stab:hover:not(.active){
  background:rgba(27,26,107,.04) !important;
  color:#1B1A6B !important;
}
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-tabbar-v2 .stab.active{
  background:linear-gradient(180deg,#1B1A6B 0%, #14135A 100%) !important;
  color:#fff !important;
  box-shadow:inset 0 -3px 0 #C8A96E;
}

/* Pane wrappers — generous breathing room above content */
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-pane-v2{
  padding-top:6px;
}

/* Pricing sub-tab strip (inside pricing pane) */
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-subtabs-v2{
  border-bottom:1.5px solid var(--border,#E2DDD4) !important;
  margin-bottom:22px !important;
  gap:4px !important;
}
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-subtabs-v2 .stab{
  font-weight:800 !important;
  position:relative;
  padding:10px 18px !important;
}
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-subtabs-v2 .stab.active{
  color:#1B1A6B !important;
  background:transparent !important;
}
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-subtabs-v2 .stab.active::after{
  content:'';
  position:absolute;
  left:14px; right:14px; bottom:-2px;
  height:3px;
  background:linear-gradient(90deg,#1B1A6B,#C8A96E);
  border-radius:3px 3px 0 0;
}

/* Section headings inside finmerch panes — upgrade plain inline-styled
   "section title" divs that use color:var(--navy) and font-weight 800+ */
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-pane-v2 input.fc:focus,
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-pane-v2 select.fc:focus,
body.hq-redesign .hqd-fmx-v2 .hqd-fmx-pane-v2 textarea.fc:focus{
  border-color:#C8A96E !important;
  box-shadow:0 0 0 3px rgba(200,169,110,.18) !important;
}

/* SKU table polish */
body.hq-redesign .hqd-fmx-v2 #sku-db-content table{
  border-collapse:separate !important;
  border-spacing:0;
}
body.hq-redesign .hqd-fmx-v2 #sku-db-content table thead th{
  background:linear-gradient(180deg,#FAF8F2,#F1ECE0) !important;
  font-size:11px !important;
  font-weight:800 !important;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#6B7280 !important;
  border-bottom:1.5px solid var(--border,#E2DDD4) !important;
}
body.hq-redesign .hqd-fmx-v2 #sku-db-content table tbody tr{
  transition:background .12s ease;
}
body.hq-redesign .hqd-fmx-v2 #sku-db-content table tbody tr:hover{
  background:#FBF9F3 !important;
}

/* ── 2. MARKETING AI ───────────────────────────────────────────── */

body.hq-redesign .hqd-mai-v2 .view-tabs{
  gap:6px !important;
  flex-wrap:wrap;
  border-bottom:1.5px solid var(--border,#E2DDD4) !important;
  padding-bottom:2px;
}
body.hq-redesign .hqd-mai-v2 .view-tabs .vtab{
  font-weight:800 !important;
  position:relative;
  padding:10px 16px !important;
  border-radius:10px 10px 0 0 !important;
  transition:background .15s ease, color .15s ease;
}
body.hq-redesign .hqd-mai-v2 .view-tabs .vtab:hover:not(.active){
  background:rgba(139,92,246,.06) !important;
  color:#1B1A6B !important;
}
body.hq-redesign .hqd-mai-v2 .view-tabs .vtab.active{
  color:#1B1A6B !important;
  background:transparent !important;
}
body.hq-redesign .hqd-mai-v2 .view-tabs .vtab.active::after{
  content:'';
  position:absolute;
  left:12px; right:12px; bottom:-2px;
  height:3px;
  background:linear-gradient(90deg,#8B5CF6,#EC4899);
  border-radius:3px 3px 0 0;
}

/* mktai-card — polished panels */
body.hq-redesign .hqd-mai-v2 .hqd-mai-card-v2{
  border-radius:16px !important;
  background:linear-gradient(180deg,#FFFFFF 0%, #FBF9F3 100%) !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  box-shadow:0 2px 10px rgba(20,18,40,.04);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  padding:18px 20px !important;
}
body.hq-redesign .hqd-mai-v2 .hqd-mai-card-v2:hover{
  border-color:#C8A96E !important;
  box-shadow:0 10px 24px rgba(20,18,40,.09);
}

/* AI suggestion chips */
body.hq-redesign .hqd-mai-v2 .hqd-mai-chip-v2{
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:#fff !important;
  font-size:11.5px !important;
  font-weight:700 !important;
  padding:6px 12px !important;
  border-radius:99px !important;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, transform .12s ease;
}
body.hq-redesign .hqd-mai-v2 .hqd-mai-chip-v2:hover{
  background:rgba(200,169,110,.18) !important;
  border-color:#C8A96E !important;
  transform:translateY(-1px);
}

/* Stat cards on dashboard */
body.hq-redesign .hqd-mai-v2 .hqd-mai-stats-v2 .stat-card,
body.hq-redesign .hqd-mai-v2 .hqd-mai-stats-v2 > div{
  border-radius:16px !important;
  background:linear-gradient(180deg,#FFFFFF 0%, #FBF9F3 100%) !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  box-shadow:0 2px 8px rgba(20,18,40,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-mai-v2 .hqd-mai-stats-v2 .stat-card:hover,
body.hq-redesign .hqd-mai-v2 .hqd-mai-stats-v2 > div:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(20,18,40,.08);
}

/* Module header BETA badge already gradient — keep, but make h2 bolder */
body.hq-redesign .hqd-mai-v2 .mod-header h2{
  letter-spacing:-.01em;
}

/* ── 3. MARKET RESEARCH ────────────────────────────────────────── */

body.hq-redesign .hqd-mr-v2 .view-tabs{
  gap:6px !important;
  border-bottom:1.5px solid var(--border,#E2DDD4) !important;
}
body.hq-redesign .hqd-mr-v2 .view-tabs .vtab{
  font-weight:800 !important;
  position:relative;
  padding:10px 18px !important;
  transition:background .15s ease, color .15s ease;
}
body.hq-redesign .hqd-mr-v2 .view-tabs .vtab:hover:not(.active){
  background:rgba(27,26,107,.04) !important;
  color:#1B1A6B !important;
}
body.hq-redesign .hqd-mr-v2 .view-tabs .vtab.active{
  color:#1B1A6B !important;
}
body.hq-redesign .hqd-mr-v2 .view-tabs .vtab.active::after{
  content:'';
  position:absolute;
  left:14px; right:14px; bottom:-2px;
  height:3px;
  background:linear-gradient(90deg,#1B1A6B,#C8A96E);
  border-radius:3px 3px 0 0;
}

body.hq-redesign .hqd-mr-v2 .hqd-mr-insight-v2{
  border-radius:16px !important;
  background:linear-gradient(180deg,#FFFFFF 0%, #FBF9F3 100%) !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  box-shadow:0 2px 10px rgba(20,18,40,.04);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  padding:18px 20px !important;
}
body.hq-redesign .hqd-mr-v2 .hqd-mr-insight-v2:hover{
  transform:translateY(-3px);
  border-color:#C8A96E !important;
  box-shadow:0 10px 22px rgba(20,18,40,.09);
}
body.hq-redesign .hqd-mr-v2 .hqd-mr-insight-v2 h4{
  font-size:13px !important;
  font-weight:900 !important;
  color:#1B1A6B !important;
  margin:0 0 10px !important;
  letter-spacing:-.01em;
}

body.hq-redesign .hqd-mr-v2 #mr-market-stats .stat-card,
body.hq-redesign .hqd-mr-v2 #mr-market-stats > div{
  border-radius:16px !important;
  background:linear-gradient(180deg,#FFFFFF 0%, #FBF9F3 100%) !important;
  border:1.5px solid var(--border,#E2DDD4) !important;
  box-shadow:0 2px 8px rgba(20,18,40,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}
body.hq-redesign .hqd-mr-v2 #mr-market-stats .stat-card:hover,
body.hq-redesign .hqd-mr-v2 #mr-market-stats > div:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(20,18,40,.08);
}

/* ── 4. GOOGLE BUSINESS PROFILE ────────────────────────────────── */

body.hq-redesign .hqd-gbp-v2 .vtab{
  font-weight:800 !important;
  position:relative;
  padding:10px 18px !important;
  transition:background .15s ease, color .15s ease;
}
body.hq-redesign .hqd-gbp-v2 .vtab:hover:not(.active){
  background:rgba(66,133,244,.06) !important;
  color:#1B1A6B !important;
}
body.hq-redesign .hqd-gbp-v2 .vtab.active{
  color:#1B1A6B !important;
}
body.hq-redesign .hqd-gbp-v2 .vtab.active::after{
  content:'';
  position:absolute;
  left:14px; right:14px; bottom:-2px;
  height:3px;
  background:linear-gradient(90deg,#4285F4,#34A853);
  border-radius:3px 3px 0 0;
}

/* GBP status badge stays vivid; lift the "Sync Now" button */
body.hq-redesign .hqd-gbp-v2 #gbp-sync-btn{
  border-radius:10px !important;
  font-weight:800 !important;
}

/* Reduced motion — Phase 37 */
@media (prefers-reduced-motion: reduce){
  body.hq-redesign .hqd-fmx-v2 .hqd-fmx-tabbar-v2 .stab,
  body.hq-redesign .hqd-fmx-v2 #sku-db-content table tbody tr,
  body.hq-redesign .hqd-mai-v2 .hqd-mai-card-v2,
  body.hq-redesign .hqd-mai-v2 .hqd-mai-chip-v2,
  body.hq-redesign .hqd-mai-v2 .hqd-mai-stats-v2 .stat-card,
  body.hq-redesign .hqd-mr-v2 .hqd-mr-insight-v2,
  body.hq-redesign .hqd-mr-v2 #mr-market-stats .stat-card,
  body.hq-redesign .hqd-mai-v2 .view-tabs .vtab,
  body.hq-redesign .hqd-mr-v2 .view-tabs .vtab,
  body.hq-redesign .hqd-gbp-v2 .vtab{
    transition:none;
  }
}

/* Mobile — let finmerch sticky tab bar release on small screens so
   it doesn't gobble vertical space. */
@media (max-width:720px){
  body.hq-redesign .hqd-fmx-v2 .hqd-fmx-tabbar-v2{
    position:static;
  }
}
