/* =====================================================================
   Growingli · light, liquid-glass look
   A periwinkle sky band at the top of every screen, white cards on a
   cool grey canvas, frosted glass for anything that floats, one joyful
   pink → violet → orange gradient reserved for the brand and the big
   moments. Motion is critically damped by default; overshoot only where
   something was "thrown" (toggles, checks, the tab-bar orb).
   ===================================================================== */
:root {
  color-scheme: light;
  --bg: #eef3ec;
  --surface: #ffffff;
  --surface-2: #f4f7f2;
  --surface-3: #e8eee5;
  --line: rgba(16, 40, 22, 0.08);
  --line-2: rgba(16, 40, 22, 0.14);
  --text: #0e1a12;
  --text-2: #4c5a50;
  --text-3: #85928a;
  --ink: #102016;
  --ink-2: #1d3325;

  /* Brand */
  /* Accent: the sky. */
  --violet: #1f6fd6;
  --violet-2: #4f9be8;
  --violet-soft: rgba(31, 111, 214, 0.1);
  --violet-line: rgba(31, 111, 214, 0.3);
  --joy: linear-gradient(135deg, #ff7a3d 0%, #ff2e7e 38%, #c13bff 72%, #6a4dff 100%);
  --joy-soft: linear-gradient(135deg, rgba(255, 122, 61, 0.12), rgba(255, 46, 126, 0.12) 40%, rgba(193, 59, 255, 0.12) 75%, rgba(106, 77, 255, 0.12));
  --sky: linear-gradient(180deg, #5560ee 0%, #5f63f3 38%, #7268f6 64%, #a59bfc 84%, rgba(238, 240, 248, 0) 100%);

  /* Status (text colours are tuned for 4.5:1 on white) */
  --green: #0e9f5a;
  --green-2: #12b76a;
  --green-ink: #ffffff;
  --green-soft: rgba(18, 183, 106, 0.12);
  --green-line: rgba(18, 183, 106, 0.32);
  --amber: #b45309;
  --amber-2: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --red: #d92d20;
  --red-2: #f04438;
  --red-soft: rgba(240, 68, 56, 0.1);
  --blue: #175cd3;
  --blue-2: #2e90fa;
  --blue-soft: rgba(46, 144, 250, 0.12);

  /* Legacy names some screens still use */
  --glass: var(--surface-2);
  --glass-2: var(--surface-3);
  --glass-3: #e3e6f1;

  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --r-xs: 10px;

  --shadow-1: 0 1px 2px rgba(20, 22, 60, 0.05), 0 6px 18px -10px rgba(40, 44, 120, 0.16);
  --shadow-2: 0 1px 2px rgba(20, 22, 60, 0.04), 0 18px 44px -18px rgba(40, 44, 120, 0.24);
  --shadow-3: 0 2px 6px rgba(20, 22, 60, 0.06), 0 34px 80px -28px rgba(40, 44, 120, 0.4);
  --shadow: var(--shadow-2);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --blur: blur(26px) saturate(180%);

  /* Liquid glass: a bright rim where light catches the edge, a soft inner floor, real blur behind. */
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.42));
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  --glass-on-color: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14));

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wide: "Archivo", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --script: "Mrs Saint Delafield", "Snell Roundhand", cursive;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.5 var(--font);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(31, 111, 214, 0.2); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 2px; border-radius: 10px; }
.num-tab, .tile .num, .time-box b, .table td { font-variant-numeric: tabular-nums; }

/* The meadow (sky, clouds, low hills) behind the top of every screen; js/meadow.js draws it into the canvas.
   The gradient underneath is what shows before it's drawn, or if WebGL isn't available. */
.bg-glow {
  position: absolute; inset: 0 0 auto; height: 680px; pointer-events: none; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, #2c72c9 0%, #4f93df 45%, #9ccbf2 70%, #5fa04a 82%, #3f8a35 100%);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 160px), transparent); mask-image: linear-gradient(#000 calc(100% - 160px), transparent);
}
.meadow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease); }
.meadow.ready { opacity: 1; }
#app { position: relative; z-index: 1; min-height: 100vh; }

/* ============ Keyframes ============ */
@keyframes float { 50% { transform: translateY(-7px); } }
@keyframes ring { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes slide { from { transform: translateX(-120%); } to { transform: translateX(280%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: -460px 0; } to { background-position: 460px 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { 0% { transform: scale(0.82); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(18, 183, 106, 0); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(18deg); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes sheen { from { transform: translateX(-100%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
@keyframes materialize { from { opacity: 0; transform: translateY(-50%) scale(0.94); filter: blur(8px); } to { opacity: 1; transform: translateY(-50%) scale(1); filter: none; } }
@keyframes sheetIn { from { transform: translateX(48px); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes island { from { opacity: 0; transform: translateY(-14px) scaleX(0.4) scaleY(0.6); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes beam { 0%, 100% { opacity: 0.55; transform: rotate(-18deg) scaleY(1); } 50% { opacity: 0.9; transform: rotate(-18deg) scaleY(1.08); } }
@keyframes orbit { from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); } to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); } }
@keyframes grow { from { transform: scaleX(0); } }

/* ============ Splash / loaders ============ */
.splash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 24px; }
.splash-stage { position: relative; width: 260px; height: 260px; display: grid; place-items: center; }
.splash-beam {
  position: absolute; left: 50%; top: -30%; width: 120px; height: 160%; margin-left: -60px; border-radius: 50%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.85) 45%, transparent 85%); filter: blur(18px);
  animation: beam 3.2s var(--ease-in-out) infinite; pointer-events: none;
}
.splash-logo {
  position: relative; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-3), 0 0 0 10px rgba(255, 255, 255, 0.35);
  animation: pop 0.7s var(--ease) both;
}
.splash-logo img, .splash-logo svg { width: 62px; height: 62px; }
.splash-ring { position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.9); animation: ring 2s var(--ease) infinite; }
.splash-faces { position: absolute; inset: 0; }
.splash-faces .avatar {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  animation: pop 0.6s var(--ease) both, float 4s var(--ease-in-out) infinite; animation-delay: var(--d), calc(var(--d) + 0.6s);
}
.splash-text { color: var(--text-2); margin: 0; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; animation: fade 0.6s 0.3s var(--ease) both; }
.splash-bar { width: 168px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.7); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(20, 22, 56, 0.05); }
.splash-bar span { display: block; height: 100%; width: 42%; border-radius: inherit; background: var(--joy); animation: slide 1.25s var(--ease-in-out) infinite; }
.splash-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--violet); }

/* A ring that spins in the brand gradient (or in the current text colour inside buttons). */
.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: none; animation: spin 0.8s linear infinite;
  background: conic-gradient(from 90deg, transparent 0 15%, currentColor);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.4px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.4px), #000 calc(100% - 2px));
}
.spinner.lg {
  width: 40px; height: 40px;
  background: conic-gradient(from 90deg, rgba(107, 92, 255, 0) 0 10%, #6a4dff 40%, #c13bff 65%, #ff2e7e 85%, #ff7a3d);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}

/* Loading placeholders: frosted glass with a soft light sweeping across. */
.skeleton {
  position: relative; overflow: hidden; border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.42));
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 10px 30px -18px rgba(16, 38, 84, 0.35);
}
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.75) 45%, rgba(214, 232, 255, 0.55) 55%, transparent 80%);
  animation: glass-sweep 1.6s var(--ease) infinite;
}
@keyframes glass-sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* ============ Icons ============ */
.ic { flex: none; display: inline-block; vertical-align: middle; transition: transform 0.35s var(--spring); }
.ic.draw * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s var(--ease) forwards; }
.ic.draw *:nth-child(2) { animation-delay: 0.12s; }
.ic.draw *:nth-child(3) { animation-delay: 0.24s; }
.ic.spin { animation: spin 1s linear infinite; }
.ic.twinkle { animation: twinkle 2.6s var(--ease-in-out) infinite; }
.ic.wiggle { animation: wiggle 0.6s var(--ease); }
.brand { flex: none; display: inline-block; }

/* ============ Brand ============ */
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: "Outfit", var(--font-display); font-weight: 700; letter-spacing: -0.015em; color: var(--text); line-height: 1; }
.wordmark img { flex: none; }
.wordmark-img { display: block; flex: none; max-width: 100%; height: auto; }
.wordmark.light { color: #fff; }

/* ============ App shell ============ */
.shell { display: grid; grid-template-columns: 284px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 16px; margin: 16px 0 16px 16px; height: calc(100vh - 32px);
  display: flex; flex-direction: column; padding: 20px 14px 14px; border-radius: var(--r-xl);
  background: var(--glass-fill); box-shadow: var(--glass-rim), var(--shadow-2);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.logo { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; }
.logo b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.logo small { display: block; font-size: 10.5px; letter-spacing: 0.2em; color: var(--text-2); font-weight: 700; }
.nav-label { font-size: 11px; letter-spacing: 0.08em; color: var(--text-3); font-weight: 700; padding: 18px 12px 8px; text-transform: uppercase; }
.nav { display: grid; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--text-2); font-weight: 600; transition: background 0.25s var(--ease), color 0.25s, box-shadow 0.25s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.55); color: var(--text); }
.nav a:active { transform: scale(0.98); }
.nav a:hover .ic { transform: scale(1.1) rotate(-6deg); }
.nav a.active { background: #fff; color: var(--text); box-shadow: var(--shadow-1); }
.nav a.active .ic { color: var(--violet); }
.nav .count { margin-left: auto; font-size: 12px; color: var(--text-3); font-weight: 700; background: var(--surface-3); padding: 1px 8px; border-radius: 99px; }
.nav-orb { display: none; }
.tab-bubble, .nav-more, .more-sheet, .more-scrim { display: none; }
/* The client list scrolls on its own; soft edges instead of a hard cut when it's scrolled. */
.side-clients { overflow-y: auto; flex: 1 1 auto; min-height: 132px; margin: 0 -4px; padding: 4px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
.side-clients::-webkit-scrollbar { display: none; }
.side-client { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 600; transition: background 0.2s, color 0.2s; }
.side-client:hover { background: rgba(255, 255, 255, 0.55); color: var(--text); }
.side-client.active { background: #fff; color: var(--text); box-shadow: var(--shadow-1); }
.side-client .avatar { width: 34px; height: 34px; }
.side-client .dot { margin-left: auto; }
.side-user { display: flex; align-items: center; gap: 11px; padding: 12px 8px 2px; border-top: 1px solid var(--line); margin-top: 10px; }
.side-user b { display: block; font-size: 14.5px; }
.side-user small { color: var(--text-3); font-weight: 600; font-size: 12.5px; }
.side-user .icon-btn { margin-left: auto; }

.main { padding: 24px 36px 90px; min-width: 0; }
.main-inner { max-width: 1160px; margin: 0 auto; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
/* Floating glass capsules on the sky band (Deposit / Swap / More in the references). */
.topbar-group {
  display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; color: #fff;
  background: var(--glass-on-color); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 8px 24px -12px rgba(30, 30, 120, 0.4);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
}
.topbar-group .chip-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  color: #fff; font-weight: 650; font-size: 14px; transition: background 0.2s, transform 0.15s var(--ease); text-shadow: 0 1px 1px rgba(40, 30, 120, 0.15);
}
.topbar-group .chip-btn:hover { background: rgba(255, 255, 255, 0.2); }
.topbar-group .chip-btn:active { transform: scale(0.96); }
.topbar-group .chip-btn[disabled] { cursor: default; }
.topbar-group .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); }
.topbar-group .chip-btn.warn .ic { color: #ffe08a; }
.muted-sm { color: var(--text-3); font-size: 13px; font-weight: 600; }
.mob-me, .mob-logo { display: none; }

.page { animation: rise 0.55s var(--ease) backwards; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.06em; font-weight: 700; color: var(--text-2); text-transform: uppercase; }
.eyebrow.boxed { color: var(--violet); padding: 6px 12px; border-radius: 99px; background: var(--violet-soft); letter-spacing: 0.04em; text-transform: none; font-size: 13px; }
h1.title { font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 48px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 750; margin: 14px 0 10px; }
/* The second half of a headline is lighter, like the cents in "$2,452.6". */
h1.title em, .accent { font-style: normal; font-weight: 750; color: var(--violet-2); }
.lead { color: var(--text-2); font-size: 16.5px; line-height: 1.55; max-width: 700px; margin: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page > .page-head:first-child h1.title, .page > .page-head:first-child .lead, .page > .page-head:first-child .eyebrow { color: #fff; }
.page > .page-head:first-child h1.title em { color: rgba(255, 255, 255, 0.72); }
.page > .page-head:first-child .eyebrow.boxed { background: rgba(255, 255, 255, 0.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.page > .page-head:first-child .lead { color: #fff; }
.page > .page-head:first-child .back-link { color: #fff; }
h2.section { font-size: 18px; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
h2.section .ic { color: var(--violet); }
h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }

/* ============ Surfaces ============ */
.card {
  position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-2);
}
/* The page header sits straight on the sky band: big white type, glass buttons. */
.card.hero { padding: 6px 2px 30px; border-radius: 0; background: none; box-shadow: none; color: #fff; overflow: visible; }
.card.hero .eyebrow.boxed { background: rgba(255, 255, 255, 0.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.card.hero h1.title { color: #fff; text-shadow: 0 2px 24px rgba(60, 40, 160, 0.18); }
.card.hero h1.title em { color: rgba(255, 255, 255, 0.72); }
.card.hero .lead, .card.hero .muted { color: #fff; text-shadow: 0 1px 2px rgba(30, 20, 110, 0.25); }
.card.hero .faint, .card.hero .small { color: rgba(255, 255, 255, 0.92); }
.card.hero .art { display: none; }
.card.hero .btn:not(.primary):not(.danger) {
  color: #fff; background: var(--glass-on-color); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 8px 24px -12px rgba(30, 30, 120, 0.4);
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
}
.card.hero .btn:not(.primary):not(.danger):hover { background: rgba(255, 255, 255, 0.3); }
.card.hero .pill { background: rgba(255, 255, 255, 0.92); }
.card.hover { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); cursor: pointer; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.card.hover:active { transform: translateY(-1px) scale(0.99); transition-duration: 0.12s; }
.tile { position: relative; background: var(--surface); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow-1); }
.tile .label { font-size: 12.5px; font-weight: 650; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.tile .label .ic { color: var(--violet); }
.tile .num { font-family: var(--font-display); font-size: 34px; font-weight: 750; letter-spacing: -0.04em; margin-top: 6px; line-height: 1.1; }
.tile .hint { color: var(--text-3); font-size: 13px; font-weight: 600; }

.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.mt { margin-top: 20px; }
.mt-sm { margin-top: 12px; }
.mt-lg { margin-top: 34px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.mono { font-family: var(--mono); font-size: 13px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* "$2,452.6 USD": the figure in heavy white, the unit lighter, a small note after it. */
.hero-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 16px 0 10px; font-family: var(--font-display); color: #fff; }
.hero-num b { font-size: clamp(64px, 8vw, 96px); line-height: 0.95; font-weight: 750; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; text-shadow: 0 6px 30px rgba(60, 40, 160, 0.25); }
.hero-num span { font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.7); }
.hero-num small { flex-basis: 100%; font-family: var(--font); font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.92); letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .btn { height: 46px; border-radius: 999px; padding: 0 20px 0 16px; }

/* Promo card with a gradient rim and a coloured glow underneath ("Points Draw" in the references). */
.card.promo {
  border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--joy) border-box;
  box-shadow: 0 24px 40px -26px rgba(255, 46, 126, 0.55), 0 30px 50px -30px rgba(106, 77, 255, 0.6), var(--shadow-1);
}
.card.promo > .row:first-of-type .pill { margin-right: 34px; }
.promo-sticker {
  position: absolute; right: -12px; top: -24px; font-size: 42px; line-height: 1; transform: rotate(10deg); filter: drop-shadow(0 8px 14px rgba(60, 30, 140, 0.3));
  animation: bob 4.5s var(--ease-in-out) infinite; pointer-events: none;
}

/* Anything placed straight on the sky band: white type, glass controls. */
.on-sky { color: #fff; }
.on-sky h1.title { color: #fff; text-shadow: 0 2px 24px rgba(60, 40, 160, 0.18); }
.on-sky .muted, .on-sky .faint { color: rgba(255, 255, 255, 0.92); }
.on-sky .pill { background: rgba(255, 255, 255, 0.94); }
.on-sky .pf { background: var(--glass-on-color); color: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.on-sky .pf.on { color: #fff; background: rgba(255, 255, 255, 0.28); }
.on-sky .pf.off::after { border-color: #9a93ff; }
.on-sky .btn:not(.primary):not(.danger) {
  color: #fff; background: var(--glass-on-color); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 8px 24px -12px rgba(30, 30, 120, 0.4);
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
}
.back-link { width: fit-content; opacity: 0.9; transition: opacity 0.2s, transform 0.2s var(--ease); }
.back-link:hover { opacity: 1; transform: translateX(-2px); }

/* Live / Test mode, with a coloured wash that tells you which one you're in at a glance. */
.mode-card { overflow: hidden; }
.mode-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 200px at 0% 0%, rgba(245, 158, 11, 0.14), transparent 70%); }
.mode-card.is-live::before { background: radial-gradient(420px 200px at 0% 0%, rgba(18, 183, 106, 0.16), transparent 70%); }
.mobile-only { display: none; }

/* ============ Buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px;
  border-radius: var(--r-sm); border: 0; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(20, 22, 56, 0.05);
  font-weight: 650; font-size: 15px; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform 0.18s var(--ease), background 0.2s, box-shadow 0.25s var(--ease), opacity 0.2s, color 0.2s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(0.97); transition-duration: 0.08s; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
/* Primary is solid ink, like "Continue" and "Apply for card". */
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 24px -10px rgba(19, 19, 31, 0.55); }
.btn.primary:hover { background: var(--ink-2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 14px 30px -10px rgba(19, 19, 31, 0.6); }
/* A light sweep crosses primary buttons on hover. */
.btn.primary::after, .btn.joy::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); transform: translateX(-100%) skewX(-18deg);
}
.btn.primary:hover::after, .btn.joy:hover::after { animation: sheen 0.9s var(--ease); }
.btn.joy { background: var(--joy); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px -10px rgba(220, 50, 160, 0.6); }
.btn.joy:hover { filter: saturate(1.1) brightness(1.04); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: rgba(20, 22, 56, 0.05); color: var(--text); }
.btn.danger { color: var(--red); background: var(--red-soft); box-shadow: none; }
.btn.danger:hover { background: rgba(240, 68, 56, 0.16); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; gap: 7px; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.btn:hover .ic { transform: translateX(2px); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 0; background: none; color: var(--text-2); cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.icon-btn:hover { background: rgba(20, 22, 56, 0.06); color: var(--text); }
.icon-btn:active { transform: scale(0.92); }

/* ============ Pills / status ============ */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.grey { background: var(--surface-3); color: var(--text-2); }
/* Text for screen readers only. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Client accounts: platforms not chosen yet, one tap to add. */
.add-platforms { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); }
/* A group of pills: always spaced, also when they wrap onto a second line. */
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.table .pills { flex-wrap: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.green { background: var(--green-2); animation: pulse 2.2s infinite; }
.dot.amber { background: var(--amber-2); }
.dot.red { background: var(--red-2); }

/* Pills and the danger button sitting on the sky get a solid white base, so their colour reads. */
.on-sky .pill, .card.hero .pill, .page > .page-head:first-child .pill { background: #fff; box-shadow: 0 4px 12px -6px rgba(8, 30, 90, 0.45); }
.on-sky .btn.danger, .card.hero .btn.danger { background: #fff; box-shadow: 0 6px 16px -8px rgba(8, 30, 90, 0.45); }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field-label { font-weight: 650; font-size: 14px; color: var(--text); }
.field .help { color: var(--text-3); font-size: 13px; font-weight: 550; margin-top: -2px; }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r-sm); border: 0; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; font-weight: 550;
  transition: box-shadow 0.25s var(--ease), background 0.25s;
}
.textarea { height: auto; min-height: 100px; padding: 13px 16px; resize: vertical; line-height: 1.55; }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 4px rgba(31, 111, 214, 0.14); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); font-weight: 500; }
.select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23565a72' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9l5-5 5 5M7 15l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.error-text { color: var(--red); font-weight: 650; font-size: 14px; display: flex; gap: 8px; align-items: center; animation: rise 0.3s var(--ease); }

.choice {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 0; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; text-align: left; transition: box-shadow 0.25s var(--ease), background 0.25s, transform 0.18s var(--ease);
}
.choice:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.choice:active { transform: scale(0.985); }
.choice.on { background: var(--violet-soft); box-shadow: inset 0 0 0 1.5px var(--violet); }
.choice .check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s, transform 0.3s var(--spring); flex: none; }
.choice.on .check { background: var(--violet); border-color: var(--violet); color: #fff; transform: scale(1.06); }
.choice b { display: block; font-weight: 650; }
.choice small { color: var(--text-3); font-weight: 550; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 650; font-size: 14px; cursor: pointer; color: var(--text-2);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s var(--ease);
}
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.chip:active { transform: scale(0.96); }
.chip.on { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(19, 19, 31, 0.5); }
.chip .x { opacity: 0.6; }

/* iOS switch */
.switch { position: relative; width: 51px; height: 31px; border-radius: 99px; background: #e3e5ee; border: 0; cursor: pointer; transition: background 0.3s var(--ease); flex: none; padding: 0; }
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16); transition: transform 0.35s var(--spring), width 0.2s var(--ease);
}
.switch:active::after { width: 32px; }
.switch.on { background: #34c759; }
.switch.on::after { transform: translateX(20px); }
.switch.on:active::after { transform: translateX(15px); }

/* Segmented control: a white thumb on a soft track ("Virtual Card / Physical Card"). */
.segmented { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface-3); gap: 2px; flex-wrap: wrap; }
.segmented button {
  border: 0; background: none; padding: 9px 16px; border-radius: 11px; font-weight: 650; color: var(--text-2); cursor: pointer;
  transition: background 0.25s var(--ease), color 0.2s, box-shadow 0.25s; display: inline-flex; align-items: center; gap: 8px;
}
.segmented button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(20, 22, 56, 0.08), 0 4px 12px -4px rgba(20, 22, 56, 0.16); }
.segmented button:not(.on):hover { color: var(--text); }

/* ============ Tabs ============ */
.tabs { display: flex; gap: 4px; padding: 4px; margin: 22px 0 22px; border-radius: 16px; background: var(--glass-fill); box-shadow: var(--glass-rim), var(--shadow-1);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 16px; font-weight: 650; color: var(--text-2); border-radius: 12px; white-space: nowrap; display: flex; gap: 8px; align-items: center; transition: background 0.25s var(--ease), color 0.2s, box-shadow 0.25s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); background: #fff; box-shadow: var(--shadow-1); }
.tabs a.active .ic { color: var(--violet); }

/* ============ Avatars / clients ============ */
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; display: grid; place-items: center;
  box-shadow: 0 0 0 2.5px #fff, 0 6px 16px -6px rgba(40, 44, 120, 0.35); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 76px; height: 76px; box-shadow: 0 0 0 3.5px #fff, 0 10px 24px -8px rgba(40, 44, 120, 0.4); }
.avatar.sm { width: 32px; height: 32px; box-shadow: 0 0 0 2px #fff, 0 3px 8px -3px rgba(40, 44, 120, 0.3); }
.client-card { padding: 22px; min-height: 210px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
/* A soft wash of colour in the corner; each card gets its own from the brand gradient. */
.client-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px 180px at 0% 0%, rgba(31, 111, 214, 0.12), transparent 70%); }
.client-card:nth-child(3n+2)::before { background: radial-gradient(320px 180px at 0% 0%, rgba(255, 46, 126, 0.1), transparent 70%); }
.client-card:nth-child(3n+3)::before { background: radial-gradient(320px 180px at 0% 0%, rgba(255, 122, 61, 0.11), transparent 70%); }
.client-card .name { font-size: 20px; font-weight: 750; letter-spacing: -0.03em; }
.platform-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pf { position: relative; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }
.pf.on { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px -2px rgba(20, 22, 56, 0.12); }
.pf.off::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--red-2); border: 2px solid #fff; }
.stat-inline { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.stat-inline b { color: var(--text); font-weight: 750; }

/* ============ Lists (transaction rows) ============ */
.list { display: flex; flex-direction: column; }
.list-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 4px; min-width: 0; }
.list-item + .list-item::before { content: ""; position: absolute; top: 0; left: 56px; right: 4px; height: 1px; background: var(--line); }
.list-item.click { cursor: pointer; border-radius: 16px; padding-left: 10px; padding-right: 10px; transition: background 0.2s, transform 0.15s var(--ease); }
.list-item.click:hover { background: var(--surface-2); }
.list-item.click:active { transform: scale(0.99); }
.list-item.click:hover::before, .list-item.click:hover + .list-item::before { opacity: 0; }
.time-box { width: 62px; flex: none; text-align: center; padding: 8px 0; border-radius: 14px; background: var(--surface-2); }
.time-box b { display: block; font-size: 15px; font-weight: 750; letter-spacing: -0.02em; }
.time-box small { color: var(--text-3); font-weight: 650; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.state-icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.state-icon.green { background: var(--green-soft); color: var(--green); }
.state-icon.amber { background: var(--amber-soft); color: var(--amber); }
.state-icon.red { background: var(--red-soft); color: var(--red); }
.state-icon.blue { background: var(--blue-soft); color: var(--blue); }
.state-icon.grey { background: var(--surface-3); color: var(--text-2); }
.day-head { font-size: 13px; letter-spacing: -0.01em; color: var(--text-3); font-weight: 650; margin: 22px 0 4px; }

/* ============ Week strip ============ */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day-col { border-radius: var(--r-md); background: var(--surface-2); padding: 12px 10px; min-height: 120px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.3s var(--ease); }
.day-col.today { background: #fff; box-shadow: inset 0 0 0 1.5px var(--violet), 0 10px 24px -14px rgba(31, 111, 214, 0.6); }
.day-col .d { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; }
.day-col.today .d { color: var(--violet); }
.day-col .n { font-size: 22px; font-weight: 750; line-height: 1; letter-spacing: -0.03em; }
.slot { font-size: 12.5px; font-weight: 700; padding: 6px 8px; border-radius: 10px; display: flex; align-items: center; gap: 6px; }
.slot.posted { background: var(--green-soft); color: var(--green); }
.slot.scheduled { background: var(--blue-soft); color: var(--blue); }
.slot.missed { background: var(--red-soft); color: var(--red); }
.slot.open { background: #fff; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.slot.partial { background: var(--amber-soft); color: var(--amber); }

/* ============ Empty / illustration ============ */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 20px; }
.empty img { width: min(280px, 76%); animation: bob 5.5s var(--ease-in-out) infinite; }
.empty h3 { font-size: 21px; margin-top: 6px; letter-spacing: -0.025em; }
.empty p { color: var(--text-2); max-width: 440px; margin: 0 0 10px; }

/* ============ Stepper / wizard ============ */
.wizard { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.steps { padding: 14px; position: sticky; top: 24px; }
.step { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 14px; color: var(--text-3); font-weight: 650; cursor: default; transition: color 0.2s, background 0.2s; }
.step.done { color: var(--text-2); cursor: pointer; }
.step.done:hover { background: var(--surface-2); }
.step.current { color: var(--text); background: var(--surface-2); }
.step .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 13px; flex: none; transition: all 0.35s var(--spring); }
.step.current .num { box-shadow: inset 0 0 0 2px var(--violet); color: var(--violet); }
.step.done .num { background: var(--ink); box-shadow: none; color: #fff; }
.wizard-body { padding: 30px; min-height: 520px; display: flex; flex-direction: column; overflow: hidden; }
.wizard-body .art-side { position: absolute; right: 22px; top: 24px; width: 160px; opacity: 0.95; pointer-events: none; }
.wizard-foot { margin-top: auto; padding-top: 26px; display: flex; gap: 12px; align-items: center; }
.step-title { font-size: 27px; font-weight: 750; letter-spacing: -0.035em; margin: 6px 0 4px; max-width: calc(100% - 180px); }
.step-sub { color: var(--text-2); margin: 0 0 24px; max-width: calc(100% - 180px); }

.progress-steps { display: flex; flex-direction: column; gap: 12px; }
.progress-steps .ps { display: flex; gap: 12px; align-items: center; font-weight: 650; color: var(--text-3); transition: color 0.3s; }
.progress-steps .ps.active { color: var(--text); }
.progress-steps .ps.done { color: var(--text-2); }
.progress-steps .ps .mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 12.5px; }
.progress-steps .ps.done .mark { background: var(--green-soft); box-shadow: none; color: var(--green); animation: pop 0.4s var(--spring); }
.progress-steps .ps.active .mark { box-shadow: inset 0 0 0 1.5px var(--violet-line); color: var(--violet); }

/* ============ Folder picker ============ */
.folder-box { border-radius: var(--r-md); background: var(--surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.folder-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; box-shadow: 0 1px 0 var(--line); font-weight: 650; min-width: 0; }
.folder-list { max-height: 300px; overflow-y: auto; }
.folder-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; transition: background 0.15s; font-weight: 600; }
.folder-item + .folder-item { box-shadow: inset 0 1px 0 var(--line); }
.folder-item:hover { background: rgba(255, 255, 255, 0.8); }
.folder-item.selected { background: var(--violet-soft); }
.folder-item .ic.folder-ic { color: var(--violet); }

/* ============ Sheets: drawer / modal / toast ============ */
.overlay { position: fixed; inset: 0; background: rgba(24, 24, 60, 0.22); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); z-index: 50; animation: fade 0.35s var(--ease); }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(560px, calc(100vw - 20px)); z-index: 51; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-3); animation: sheetIn 0.5s var(--ease);
}
.modal {
  position: fixed; left: 0; right: 0; top: 50%; margin: 0 auto; transform: translateY(-50%); max-height: calc(100vh - 32px); overflow-y: auto; width: min(520px, calc(100vw - 32px)); z-index: 51;
  background: #fff; border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-3); animation: materialize 0.45s var(--ease);
}
.modal img { width: 180px; margin: -6px auto 0; }
.caption-box { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--r-md); padding: 16px; font-weight: 500; line-height: 1.6; box-shadow: inset 0 0 0 1px var(--line); }
/* Toasts arrive like the Dynamic Island: a black capsule growing out of the top. */
.toasts { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.toast {
  display: flex; gap: 10px; align-items: center; padding: 12px 18px 12px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: #fff;
  background: rgba(10, 10, 16, 0.94); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: island 0.55s var(--spring); transform-origin: top center; pointer-events: auto;
}
.toast .ic { flex: none; }
.toast.ok .ic { color: #3ce08a; }
.toast.err .ic { color: #ff6b62; }

.banner { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r-md); font-weight: 600; flex-wrap: wrap; box-shadow: var(--shadow-1); }
.banner.amber { background: #fff8eb; color: #8a4b06; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3), var(--shadow-1); }
.banner.red { background: #fff1f0; color: #a3261c; box-shadow: inset 0 0 0 1px rgba(240, 68, 56, 0.25), var(--shadow-1); }
.banner.green { background: #ecfdf3; color: #066a3c; box-shadow: inset 0 0 0 1px rgba(18, 183, 106, 0.3), var(--shadow-1); }

.checklist .ci { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.checklist .ci + .ci::before { content: ""; position: absolute; top: 0; left: 44px; right: 0; height: 1px; background: var(--line); }
.checklist .mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text-3); }
.checklist .ci.done .mark { box-shadow: none; background: var(--green-2); color: #fff; animation: pop 0.4s var(--spring); }
.checklist .ci.done .t { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-3); }

/* ============ Sign in ============ */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 96px 20px 32px; }
.auth-wrap { position: relative; width: min(440px, 100%); }
.auth-card { width: 100%; padding: 58px 34px 32px; text-align: left; box-shadow: var(--shadow-3); border-radius: var(--r-xl); }
.auth-card h1.title em { color: var(--violet-2); }
/* The mark in a white disc, sitting on the card's top edge. */
.auth-logo {
  position: absolute; left: 50%; top: -42px; width: 84px; height: 84px; margin-left: -42px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.45), var(--shadow-2); transition: transform 0.4s var(--spring); z-index: 2;
}
.auth-logo:hover { transform: rotate(-8deg) scale(1.04); }
.auth-sticker { position: absolute; right: -8px; bottom: -4px; font-size: 26px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(40, 30, 120, 0.25)); animation: pop 0.6s 0.3s var(--spring) both; }
.auth-faces { position: absolute; left: 0; right: 0; top: -96px; height: 120px; pointer-events: none; }
.auth-faces .avatar {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  animation: pop 0.6s var(--ease) both, float 4.5s var(--ease-in-out) infinite; animation-delay: var(--d), calc(var(--d) + 0.6s);
}
@media (max-width: 520px) { .auth-faces .avatar:nth-child(n + 4) { display: none; } .auth-card { padding: 54px 22px 26px; } }

/* ============ Video step log ============ */
.now-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--joy-soft); color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet-line); }
.now-card .strong { color: var(--text); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--surface-3); border-radius: 2px; }
.tl { position: relative; display: flex; gap: 14px; padding: 7px 0; animation: rise 0.4s var(--ease) both; }
.tl-mark { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text-2); }
.tl-mark.green { color: #fff; background: var(--green-2); box-shadow: none; }
.tl-mark.amber { color: var(--amber); box-shadow: inset 0 0 0 1.5px rgba(245, 158, 11, 0.45); }
.tl-mark.red { color: #fff; background: var(--red-2); box-shadow: none; }
.tl-text { font-weight: 600; line-height: 1.45; padding-top: 3px; }
.tl.running .tl-text { color: var(--text); }
.tl-time { font-size: 12px; color: var(--text-3); font-weight: 600; margin-top: 2px; }

/* ============ Avatar picker ============ */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 10px; }
.avatar-opt { position: relative; display: grid; place-items: center; padding: 7px; border-radius: 20px; border: 0; background: var(--surface-2); cursor: pointer; transition: transform 0.3s var(--spring), box-shadow 0.25s, background 0.25s; }
.avatar-opt:hover { transform: translateY(-3px) scale(1.03); background: #fff; box-shadow: var(--shadow-1); }
.avatar-opt:active { transform: scale(0.95); }
.avatar-opt.on { background: var(--violet-soft); box-shadow: inset 0 0 0 2px var(--violet); }
.avatar-opt .avatar { width: 52px; height: 52px; }
.avatar-tick { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; animation: pop 0.35s var(--spring); box-shadow: 0 0 0 2px #fff; }

/* ============ Public connect page ============ */
.connect-wrap { max-width: 680px; margin: 0 auto; padding: 36px 16px 60px; }
.card.hero.connect-hero { padding-right: 2px; }
.connect-row { gap: 14px; flex-wrap: wrap; }

/* ============ Workspaces ============ */
.agency-mark { display: grid; place-items: center; border-radius: 30%; background: var(--joy); color: #fff; font-weight: 800; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.ws-switch { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; padding: 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), var(--shadow-1); }
.ws-switch b { font-size: 14px; }
.ws-switch small { color: var(--text-3); font-size: 12px; text-transform: capitalize; font-weight: 600; }
.ws-select { background: var(--surface-2); color: var(--text); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 12.5px; max-width: 92px; cursor: pointer; }

/* ============ Sign-in extras ============ */
.google-btn { width: 100%; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; font-weight: 650; }
.google-btn:hover { background: var(--surface-2); }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* ============ Admin ============ */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; letter-spacing: 0.02em; color: var(--text-3); font-weight: 650; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; transition: background 0.15s; }
.table tr.clickable:hover { background: var(--surface-2); }
.table td .truncate { max-width: 260px; }
.tile .num.amber { color: var(--amber); }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart-axis { stroke: var(--line-2); stroke-width: 1; }
.chart-bar { fill: var(--violet); opacity: 0.7; transition: opacity 0.15s; }
.chart-bar.on { opacity: 1; }
.chart-label { fill: var(--text-3); font-size: 11px; font-weight: 600; }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink); color: #fff; border-radius: 12px; padding: 7px 11px; font-size: 13px; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4); }
.chart-tip small { display: block; color: rgba(255, 255, 255, 0.6); font-weight: 600; }

/* ============ Onboarding ============ */
.onboard { min-height: 100vh; display: flex; flex-direction: column; width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
.onboard-top { display: flex; align-items: center; gap: 20px; padding: 24px 0 10px; }
.onboard-top .wordmark { color: #fff; }
.onboard-progress { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.4); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.onboard-progress span { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width 0.7s var(--ease); box-shadow: 0 0 14px rgba(255, 255, 255, 0.9); }
.onboard-top .btn.ghost { color: #fff; background: var(--glass-on-color); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.onboard-top .btn.ghost:hover { background: rgba(255, 255, 255, 0.3); }
.onboard-body { flex: 1; padding: 30px 0 24px; }
.onboard-body > * { background: #fff; border-radius: var(--r-xl); padding: 34px; box-shadow: var(--shadow-3); animation: rise 0.55s var(--ease) backwards; }
.onboard-body .card { box-shadow: inset 0 0 0 1px var(--line); }
.onboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.onboard-art { width: 100%; max-width: 330px; margin: 0 auto; animation: float 5.5s var(--ease-in-out) infinite; }
.onboard-narrow { max-width: 760px; margin: 0 auto; }
.onboard-done { max-width: 640px; margin: 0 auto; text-align: center; }
.onboard-done .onboard-art { max-width: 240px; margin-bottom: 8px; }
.onboard-foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 16px 0 24px; background: linear-gradient(transparent, var(--bg) 40%); }
.pf-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pf-tile {
  position: relative; display: grid; justify-items: center; gap: 10px; padding: 22px 12px; border-radius: var(--r-lg); background: var(--surface-2); border: 0;
  font-weight: 650; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.25s, background 0.25s;
}
.pf-tile:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-2); }
.pf-tile:active { transform: scale(0.97); }
.pf-tile.on { background: #fff; box-shadow: inset 0 0 0 2px var(--violet), 0 14px 30px -16px rgba(31, 111, 214, 0.55); }
.pf-tile .check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: transform 0.35s var(--spring); }
.pf-tile.on .check { background: var(--violet); box-shadow: none; color: #fff; transform: scale(1.08); }

/* ============ Uploads ============ */
.dropzone {
  display: grid; justify-items: center; gap: 8px; text-align: center; padding: 30px 18px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2);
  background: var(--surface-2); cursor: pointer; transition: all 0.25s var(--ease); color: var(--text-2);
}
.dropzone:hover, .dropzone.over { border-color: var(--violet); background: var(--violet-soft); color: var(--text); transform: scale(1.005); }
.upbar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.upbar span { display: block; height: 100%; background: var(--joy); border-radius: inherit; transition: width 0.25s var(--ease); }
.storage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.storage-grid .choice:disabled { opacity: 0.5; cursor: not-allowed; }

/* A save bar that floats over the bottom of long forms. */
.savebar { position: sticky; bottom: 16px; z-index: 5; background: var(--glass-fill); box-shadow: var(--glass-rim), var(--shadow-3); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

.review-label { width: 150px; flex: none; }

/* ============ Support chat ============ */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  display: grid; place-items: center; background: var(--joy);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -6px 14px rgba(90, 20, 160, 0.3), 0 14px 30px -10px rgba(200, 40, 150, 0.65);
  transition: transform 0.4s var(--spring), box-shadow 0.3s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); }
.chat-fab:active { transform: scale(0.92); }
.chat-fab-icon { display: grid; transition: transform 0.45s var(--spring); }
.chat-fab.is-open .chat-fab-icon { transform: rotate(90deg); }
.chat-badge {
  position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; background: #f04438; box-shadow: 0 0 0 2.5px #fff; animation: pop 0.4s var(--spring);
}
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 46; width: min(390px, calc(100vw - 24px)); height: min(640px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: #fff; box-shadow: var(--shadow-3), 0 0 0 1px rgba(20, 22, 56, 0.04);
  transform-origin: calc(100% - 30px) calc(100% + 40px); animation: chatIn 0.5s var(--spring);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(0.86); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.chat-head {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px 30px 18px; color: #fff;
  background: radial-gradient(240px 120px at 85% -20%, rgba(255, 255, 255, 0.45), transparent 70%), linear-gradient(180deg, #2c6fd0, #4f93df 70%, #7cb8ef);
}
.chat-head b { display: block; font-family: var(--wide); font-stretch: 112%; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; opacity: 0.95; }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #ffd166; box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.3); }
.chat-status i.on { background: #3ce08a; box-shadow: 0 0 0 3px rgba(60, 224, 138, 0.3); animation: pulse 2.2s infinite; }
.chat-team { display: flex; flex: none; }
.chat-team img { width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px #fff; margin-left: -10px; }
.chat-team img:first-child { margin-left: 0; }
.chat-close { width: 36px; height: 36px; border-radius: 12px; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); transition: background 0.2s; }
.chat-close:hover { background: rgba(255, 255, 255, 0.3); }
.chat-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 22px; }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 4px; background: #fff; }
.chat-loading { height: 100%; display: grid; place-items: center; }
.chat-hello { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 22px 8px 12px; }
.chat-hello img { width: 64px; height: 64px; animation: float 4s var(--ease-in-out) infinite; }
.chat-hello h3 { font-family: var(--wide); font-stretch: 112%; font-size: 22px; font-weight: 850; letter-spacing: -0.03em; }
.chat-hello p { margin: 0 0 6px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.chat-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chat-suggest .chip { height: auto; min-height: 36px; padding: 8px 13px; font-size: 13px; text-align: left; }

.chat-log { display: flex; flex-direction: column; padding-bottom: 8px; }
.chat-day { display: flex; justify-content: center; margin: 14px 0 8px; }
.chat-day span { font-size: 11.5px; font-weight: 700; color: var(--text-3); background: var(--surface-2); padding: 4px 10px; border-radius: 99px; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; animation: msgIn 0.35s var(--ease) both; }
.chat-row.grouped + * .chat-row, .chat-row.grouped { margin-bottom: -6px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.chat-row.right { justify-content: flex-end; }
.chat-row.pending { opacity: 0.6; }
.chat-face { flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 1.5px var(--line-2); }
.chat-face img { width: 100%; height: 100%; }
.chat-face.ai { background: linear-gradient(135deg, #eef4ff, #f6efff); box-shadow: 0 0 0 1.5px rgba(31, 111, 214, 0.25); padding: 4px; }
.chat-face.spacer { visibility: hidden; }
.chat-stack { display: grid; gap: 3px; max-width: 80%; }
.chat-row.right .chat-stack { justify-items: end; }
.chat-name { font-size: 11.5px; font-weight: 700; color: var(--text-3); padding: 0 6px; }
.chat-bubble { padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-row.left .chat-bubble { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 6px; }
.chat-row.left.ai .chat-bubble { background: linear-gradient(135deg, #eef4ff, #f4f0ff); box-shadow: inset 0 0 0 1px rgba(31, 111, 214, 0.12); }
.chat-row.right .chat-bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.chat-row.right.ai .chat-bubble { background: linear-gradient(135deg, #2c6fd0, #5b8ff0); }
.chat-time { font-size: 11px; font-weight: 600; color: var(--text-3); padding: 0 6px; }
.chat-bubble.typing { display: inline-flex; gap: 4px; padding: 13px 16px; }
.chat-bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #7aa3e6; animation: typing 1.2s var(--ease-in-out) infinite; }
.chat-bubble.typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-composer textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 132px; padding: 11px 16px; border-radius: 22px; border: 0; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 14.5px; line-height: 1.45; color: var(--text); transition: box-shadow 0.2s, background 0.2s;
}
.chat-composer textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 4px rgba(31, 111, 214, 0.12); }
.chat-send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: var(--ink); transition: transform 0.3s var(--spring), opacity 0.2s, background 0.2s;
}
.chat-send:not(:disabled):hover { transform: scale(1.06); }
.chat-send:not(:disabled):active { transform: scale(0.9); }
.chat-send:disabled { opacity: 0.35; cursor: default; }

/* ============ Admin support inbox ============ */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 300px); min-height: 360px; padding: 0; overflow: hidden; }
.inbox-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.inbox-tools { display: grid; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.inbox-tools .segmented { width: 100%; }
.inbox-tools .segmented button { flex: 1; justify-content: center; padding: 7px 10px; font-size: 13px; }
.inbox-rows { flex: 1; overflow-y: auto; padding: 6px; }
.inbox-row { display: flex; gap: 11px; width: 100%; padding: 11px 10px; border: 0; border-radius: 16px; background: none; text-align: left; cursor: pointer; transition: background 0.2s; color: var(--text); }
.inbox-row:hover { background: var(--surface-2); }
.inbox-row.on { background: var(--violet-soft); box-shadow: inset 0 0 0 1px var(--violet-line); }
.inbox-row .avatar { width: 40px; height: 40px; }
.inbox-row .who { display: flex; align-items: center; gap: 6px; }
.inbox-row .who b { flex: 1; min-width: 0; font-size: 14px; }
.inbox-row .when { font-size: 11.5px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.inbox-row .snip { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inbox-row.unread .snip { color: var(--text); font-weight: 650; }
.inbox-row .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #f04438; color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.inbox-convo { display: flex; flex-direction: column; min-height: 0; }
.inbox-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inbox-convo .chat-body { padding: 4px 22px; }
.inbox-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--text-2); padding: 30px; }
.inbox-empty img { width: 72px; margin: 0 auto 10px; }
.nav .count.alert { background: #f04438; color: #fff; }
.avail { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-2); }
.avail b { display: block; font-size: 14px; }
.avail small { color: var(--text-3); font-weight: 600; font-size: 12px; }

@media (max-width: 900px) {
  .chat-fab { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 84px); right: 16px; width: 54px; height: 54px; }
  .chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; z-index: 60; transform-origin: bottom right; }
  .chat-head { padding-top: max(18px, env(safe-area-inset-top)); }
  .inbox { grid-template-columns: minmax(0, 1fr); height: auto; }
  .inbox-list { border-right: 0; max-height: 46vh; border-bottom: 1px solid var(--line); }
  .inbox-convo { min-height: 70vh; }
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.split { grid-template-columns: minmax(0, 1fr); }
  .wizard { grid-template-columns: minmax(0, 1fr); }
  .steps { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 10px; }
  .steps .step { flex: none; }
  .steps .step span.lbl { display: none; }
  .steps .step.current span.lbl { display: inline; }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Phones: the sidebar becomes a floating liquid-glass tab bar; a glass bubble slides to the active tab. */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: auto; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; right: 12px; margin: 0; height: 66px;
    flex-direction: row; align-items: center; padding: 0 6px; border-radius: 30px; z-index: 40;
    background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; isolation: isolate;
  }
  /* The bar itself: frosted glass with a bright rim (and a round notch for the orb). */
  .sidebar::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
    -webkit-backdrop-filter: blur(24px) saturate(1.9); backdrop-filter: blur(24px) saturate(1.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 16px 36px -12px rgba(16, 38, 84, 0.42);
  }
  .sidebar.has-orb::before {
    -webkit-mask: radial-gradient(circle 40px at 50% -10px, transparent 97%, #000 100%);
            mask: radial-gradient(circle 40px at 50% -10px, transparent 97%, #000 100%);
  }
  .sidebar .logo, .sidebar .nav-label, .sidebar .side-clients, .sidebar .side-user, .sidebar .ws-switch { display: none; }
  .sidebar .nav { position: relative; display: flex; width: 100%; justify-content: space-between; align-items: center; height: 100%; }
  .sidebar .nav > a, .sidebar .nav > .nav-more {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 1; min-width: 0; height: 54px;
    padding: 0; border: 0; border-radius: 22px; background: none; box-shadow: none; font: inherit; font-size: 10.5px; font-weight: 650; letter-spacing: 0;
    color: rgba(22, 30, 52, 0.58); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.3s var(--ease), transform 0.35s var(--spring);
  }
  .sidebar .nav > a:active, .sidebar .nav > .nav-more:active { transform: scale(0.94); }
  .sidebar .nav > a.active, .sidebar .nav > .nav-more.active { color: var(--violet); background: none; box-shadow: none; }
  .sidebar .nav > a.active .ic { color: var(--violet); }
  .sidebar .nav a .count { display: none; }
  .sidebar .nav a.count.alert, .sidebar .nav a .count.alert { display: grid; position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; }
  .sidebar .nav a.nav-team, .sidebar .nav a.nav-more-item { display: none; }
  .sidebar .nav > .nav-more { display: flex; }
  /* The glass lens under the active tab: slides with a spring, squishes on press. */
  .tab-bubble {
    display: block; position: absolute; left: 0; top: 50%; height: 54px; margin-top: -27px; border-radius: 22px; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 244, 255, 0.78));
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(31, 111, 214, 0.1), 0 0 0 1px rgba(31, 111, 214, 0.1), 0 6px 16px -6px rgba(16, 48, 110, 0.35);
    transition: transform 0.55s cubic-bezier(0.3, 1.5, 0.5, 1), width 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.2s;
  }
  .tab-bubble.squish { animation: squish 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
  @keyframes squish { 30% { scale: 1.14 0.86; } 60% { scale: 0.96 1.05; } }
  .more-scrim { display: block; position: fixed; inset: 0; z-index: 38; background: rgba(10, 20, 40, 0.18); animation: fade 0.2s ease both; }
  .more-sheet {
    display: grid; gap: 2px; position: fixed; right: 12px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 76px); z-index: 41; min-width: 220px; padding: 8px;
    border-radius: 24px; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(24px) saturate(1.9); backdrop-filter: blur(24px) saturate(1.9);
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 22px 44px -14px rgba(16, 38, 84, 0.45);
    transform-origin: bottom right; animation: sheet-pop 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) both;
  }
  @keyframes sheet-pop { from { opacity: 0; transform: scale(0.6) translateY(20px); } }
  .more-sheet a, .more-sheet button {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 0; border-radius: 16px; background: none; font: inherit; font-size: 15px; font-weight: 650;
    color: var(--text); text-align: left; cursor: pointer;
  }
  .more-sheet a.on { background: var(--violet-soft); color: var(--violet); }
  .more-sheet a:active, .more-sheet button:active { background: rgba(31, 111, 214, 0.08); }
  /* Switching pages on a phone: a quick, clean fade (the blur looked smeary and cost frames). */
  .page { animation: page-in 0.28s var(--ease) backwards; }
  @keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
  .nav-orb {
    display: grid; place-items: center; position: relative; top: -24px; flex: none; margin: 0 8px;
    width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: var(--joy);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -6px 14px rgba(90, 20, 160, 0.35), 0 12px 26px -8px rgba(220, 40, 150, 0.7);
    transition: transform 0.35s var(--spring);
  }
  .nav-orb::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); }
  .nav-orb:active { transform: scale(0.9); }
  .main { padding: 12px 16px 120px; }
  .mobile-only { display: flex; }
  /* Phone header: your face on the left, the logo in the middle, status on the right. */
  .topbar { position: relative; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin-bottom: 18px; min-height: 44px; }
  .mob-me { display: block; flex: none; }
  .mob-me .avatar { width: 40px; height: 40px; }
  .mob-logo { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .topbar > .topbar-group:first-of-type { margin-left: auto; }
  .topbar .chip-btn.desk, .topbar .lbl { display: none; }
  .topbar .chip-btn { padding: 8px 12px; }
  .checklist .ci { flex-wrap: wrap; }
  .checklist .ci .t { flex: 1 1 calc(100% - 50px); min-width: 0; }
  .checklist .ci .btn { margin-left: 44px; }
  .checklist .ci .spacer { display: none; }
  .hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-actions .btn { min-width: 0; padding: 0 8px; font-size: 13.5px; gap: 6px; height: 44px; }
  .hero-actions .btn .ic { width: 16px; height: 16px; }
  .wizard-body .art-side { display: none; }
  .step-title, .step-sub { max-width: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .card.hero { padding-bottom: 22px; }
}
@media (max-width: 760px) {
  .onboard-grid { grid-template-columns: minmax(0, 1fr); }
  .onboard-grid .onboard-art { display: none; }
  .onboard-body > * { padding: 24px; }
  .pf-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .num { font-size: 28px; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .wizard-body { padding: 20px; }
  .topbar { justify-content: flex-start; }
  .connect-row .btn { width: 100%; }
  .review-row { flex-wrap: wrap; }
  .review-label { width: 100%; }
}

/* ============ Type: wide, heavy display + a looping script word ============ */
h1.title, .hero-num b, .tile .num, .step-title, .empty h3, .auth-card h1.title { font-family: var(--wide); font-stretch: 118%; font-weight: 850; letter-spacing: -0.04em; }
.hero-num b { font-stretch: 125%; font-weight: 900; }
h1.title em, .card.hero h1.title em, .page > .page-head:first-child h1.title em, .on-sky h1.title em, .auth-card h1.title em {
  font-family: var(--script); font-stretch: normal; font-weight: 400; font-size: 1.55em; line-height: 0.7; letter-spacing: 0; padding: 0 0.1em 0 0.05em;
  background: linear-gradient(100deg, #ffb347 0%, #ff7a3d 20%, #ff2e7e 50%, #c13bff 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(120, 20, 90, 0.28)); text-shadow: none;
}

/* ============ Accessibility preferences ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .page, .modal, .drawer, .toast { animation: fade 0.2s ease both !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .sidebar, .tabs, .savebar, .ws-switch { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar-group, .card.hero .btn:not(.primary):not(.danger) { background: rgba(60, 50, 160, 0.55); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .overlay { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(24, 24, 60, 0.45); }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(20, 22, 56, 0.2); --line-2: rgba(20, 22, 56, 0.35); --text-2: #383b52; --text-3: #5d6178; }
}

/* "Connected as": the channel/page a platform posts to */
.connected-as { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 4px 0 2px; font-size: 13.5px; color: var(--text-2); }
.connected-as img, .connected-as-initial { flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.15); }
.connected-as-initial { display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-size: 11px; font-weight: 800; }
.connected-as b { color: var(--text); font-weight: 700; min-width: 0; }
.connected-as span.truncate { color: var(--text-3); min-width: 0; }
a.connected-as.link { width: fit-content; max-width: 100%; padding: 2px 8px 2px 2px; margin-left: -2px; border-radius: 999px; transition: background 0.2s; }
a.connected-as.link:hover { background: var(--surface-2); }
a.connected-as.link:hover b { text-decoration: underline; text-underline-offset: 2px; }
a.connected-as.link > svg { flex: none; color: var(--text-3); }
.pf-link { cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.pf-link:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.35); }

/* Agency chat: a team member has the conversation open */
.chat-connected { position: sticky; top: 8px; z-index: 2; display: flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 16px); margin: 8px auto 4px; padding: 7px 13px; border-radius: 99px; background: rgba(236, 253, 243, 0.94); color: #067647; font-size: 12.5px; font-weight: 650; box-shadow: 0 0 0 1px rgba(6, 118, 71, 0.16), 0 4px 14px rgba(6, 118, 71, 0.12); backdrop-filter: blur(8px); animation: chat-in 0.35s ease both; }
.chat-connected-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #17b26a; box-shadow: 0 0 0 0 rgba(23, 178, 106, 0.5); animation: chat-pulse 1.8s ease-out infinite; }
@keyframes chat-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes chat-pulse { 70% { box-shadow: 0 0 0 7px rgba(23, 178, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 178, 106, 0); } }
@media (prefers-reduced-motion: reduce) { .chat-connected, .chat-connected-dot { animation: none; } }

/* ============ Phones: support inbox is two screens (list, then the conversation) ============ */
.inbox-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .support-page .inbox { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .support-page .inbox-list { max-height: none; border-bottom: 0; }
  .support-page .inbox-convo { min-height: 0; }
  .support-page:not(.has-convo) .inbox > .inbox-empty { display: none; }
  .support-page.has-convo > .page-head, .support-page.has-convo > .banner, .support-page.has-convo .inbox-list { display: none; }
  .support-page.has-convo .inbox { border-radius: 24px; }
  .main:has(.support-page.has-convo) { padding-bottom: 0; }
  .inbox-head { flex-wrap: nowrap; gap: 10px; padding: 10px 12px; }
  .inbox-head .inbox-back { flex: none; margin-left: -4px; }
  .inbox-head > .pill { display: none; }
  .inbox-actions { flex-wrap: nowrap; gap: 6px; }
  .inbox-actions .btn { padding: 0 10px; font-size: 0; gap: 0; }
  .inbox-actions .btn .ic { margin: 0; }
  .inbox-convo .chat-body { padding: 4px 12px; }
  /* 16px stops iPhones zooming into the box when you tap it. */
  .chat-composer textarea { font-size: 16px; }
  .chat-composer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .chat-panel { height: 100dvh; }
}

/* ============ Client analytics ============ */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.acct-card { padding: 16px; border-radius: 20px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; margin: 14px 0 10px; }
.acct-stats b { display: block; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.03em; }
.acct-stats span { font-size: 11.5px; font-weight: 650; color: var(--text-3); }
.spark { position: relative; }
.spark svg { display: block; width: 100%; height: 56px; overflow: visible; cursor: crosshair; touch-action: pan-y; }
.spark-area { fill: var(--violet); opacity: 0.1; }
.spark-line { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-cross { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.spark-tip { position: absolute; bottom: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 9px; background: var(--text); color: #fff; font-size: 12px; pointer-events: none; z-index: 2; }
.spark-empty { height: 56px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.6); }
.vchart { position: relative; height: 220px; padding-left: 44px; }
.vchart-grid { position: absolute; inset: 0 0 0 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.vchart-grid div { border-top: 1px solid var(--line); height: 0; position: relative; }
.vchart-grid div:last-child { border-top-color: var(--text-3); }
.vchart-grid span { position: absolute; left: 0; top: -9px; font-size: 11px; font-weight: 600; color: var(--text-3); background: var(--surface); padding-right: 6px; }
.vchart-bars { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.vbar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; padding: 0; border: 0; background: none; cursor: pointer; min-width: 6px; }
.vbar i { display: block; width: 100%; max-width: 34px; margin: 0 auto; border-radius: 4px 4px 0 0; background: var(--violet); opacity: 0.85; transition: opacity 0.15s, filter 0.15s; }
.vbar:hover i, .vbar.on i { opacity: 1; filter: brightness(1.08); }
.vchart-bars:has(.vbar.on) .vbar:not(.on) i { opacity: 0.45; }
.vtip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 3; display: grid; gap: 2px; width: max-content; max-width: 220px; padding: 8px 11px; border-radius: 12px; background: var(--text); color: #fff; font-size: 12.5px; text-align: left; pointer-events: none; box-shadow: var(--shadow-2); }
.vtip.left { left: auto; right: 0; transform: none; }
.vtip b { font-size: 13px; max-width: 200px; }
.vtip small { opacity: 0.7; }
.highlights { display: grid; gap: 12px; }
.highlights > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); min-width: 0; }
.highlights span { font-size: 12px; font-weight: 650; color: var(--text-3); }
.highlights b { font-size: 16px; min-width: 0; }
.highlights small { color: var(--text-2); font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vtable th.r, .vtable td.r { text-align: right; }
.vtable td .truncate { max-width: 300px; display: block; }
.vt-platforms { display: flex; flex-wrap: wrap; gap: 5px; }
.vt-pf { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 650; color: var(--text); text-decoration: none; white-space: nowrap; }
.vt-pf[href]:hover { box-shadow: inset 0 0 0 1px var(--violet-line); color: var(--violet); }
.rank { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-size: 12px; font-weight: 800; }
@media (max-width: 900px) {
  .acct-stats b { font-size: 18px; }
  .vchart { height: 180px; }
  .vtable { font-size: 13px; }
  .vtable th, .vtable td { padding: 10px 12px; }
  .vtable td .truncate { max-width: 180px; }
}

/* Client report: a white page on screen, the only thing on paper. */
.report-overlay { position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: rgba(20, 28, 48, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 20px 16px 40px; animation: fade 0.2s ease both; }
.report-actions { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; max-width: 820px; margin: 0 auto 12px; }
.report { max-width: 820px; margin: 0 auto; padding: 40px 44px; border-radius: 18px; background: #fff; color: #111827; font-size: 13.5px; line-height: 1.5; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid #111827; }
.report-head b { display: block; font-size: 16px; }
.report-head small, .report-period small { color: #6b7280; font-weight: 600; }
.report-period { text-align: right; }
.report-client { gap: 16px; margin: 24px 0 18px; }
.report-client h1 { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; margin: 0 0 6px; }
.report-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: #f3f4f6; font-size: 12px; font-weight: 600; }
.report-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.report-kpis div { padding: 14px; border-radius: 12px; background: #f3f6fb; }
.report-kpis b { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.03em; }
.report-kpis span { font-size: 11.5px; font-weight: 650; color: #6b7280; }
.report h2 { font-size: 15px; margin: 26px 0 8px; letter-spacing: -0.01em; }
.report table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.report th { text-align: left; font-size: 11px; color: #6b7280; font-weight: 700; padding: 7px 8px; border-bottom: 1px solid #e5e7eb; }
.report td { padding: 7px 8px; border-bottom: 1px solid #f0f1f3; }
.report ul { margin: 0; padding-left: 18px; }
.report footer { margin-top: 30px; padding-top: 12px; border-top: 1px solid #e5e7eb; font-size: 11.5px; color: #6b7280; }
@media (max-width: 700px) {
  .report { padding: 24px 18px; }
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-head { flex-direction: column; align-items: flex-start; }
  .report-period { text-align: left; }
  .report table { display: block; overflow-x: auto; }
}
@media print {
  body.printing-report * { visibility: hidden; }
  body.printing-report .report, body.printing-report .report * { visibility: visible; }
  body.printing-report .report-overlay { position: absolute; inset: 0; padding: 0; background: none; backdrop-filter: none; overflow: visible; }
  body.printing-report .report { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; padding: 0; box-shadow: none; border-radius: 0; }
  body.printing-report .report-actions { display: none; }
  .report-kpis div, .report-chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Analytics loading: platforms orbit the logo inside a glass panel. */
.an-loader {
  display: flex; align-items: center; gap: 26px; padding: 26px 30px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.45));
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 24px 50px -24px rgba(16, 38, 84, 0.45);
}
.an-orbit { position: relative; flex: none; width: 132px; height: 132px; }
.an-core {
  position: absolute; inset: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.5), 0 12px 30px -8px rgba(193, 59, 255, 0.55); animation: an-breathe 2.4s ease-in-out infinite;
}
.an-ring { position: absolute; inset: 8px; border-radius: 50%; border: 1.5px dashed rgba(31, 111, 214, 0.3); }
.an-planet { position: absolute; inset: 0; transform: rotate(var(--a)); animation: an-spin 6s linear infinite; }
.an-planet > span {
  position: absolute; left: 50%; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -17px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.92); color: var(--text); box-shadow: inset 0 1px 0 #fff, 0 6px 14px -6px rgba(16, 38, 84, 0.45);
  transform: rotate(calc(-1 * var(--a))); animation: an-counter 6s linear infinite;
}
@keyframes an-spin { to { transform: rotate(calc(var(--a) + 360deg)); } }
@keyframes an-counter { from { transform: rotate(calc(-1 * var(--a))); } to { transform: rotate(calc(-1 * var(--a) - 360deg)); } }
@keyframes an-breathe { 50% { transform: scale(1.07); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.35), 0 16px 36px -8px rgba(255, 46, 126, 0.55); } }
.an-copy { display: grid; gap: 6px; min-width: 0; }
.an-copy b { font-family: var(--wide); font-stretch: 112%; font-size: 21px; letter-spacing: -0.02em; animation: an-line 0.5s var(--ease) both; }
.an-copy small { color: var(--text-2); font-weight: 600; }
@keyframes an-line { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
@media (max-width: 700px) {
  .an-loader { flex-direction: column; text-align: center; padding: 22px 18px; gap: 16px; }
  .an-copy b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .an-planet, .an-planet > span, .an-core, .an-copy b { animation: none; } }
.an-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.an-pf button { display: inline-flex; align-items: center; gap: 6px; }
.by-cp { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 4px; border-radius: 99px; background: var(--violet-soft); color: var(--violet); font-size: 11px; font-weight: 700; }
@media (max-width: 700px) {
  .an-pf { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .an-pf button span { display: none; }
  .an-pf button { flex: 1; justify-content: center; }
}

/* Analytics: one section per platform, progress while numbers load */
.pf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px 10px; }
.pf-mini { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pf-mini div { display: grid; text-align: right; }
.pf-mini b { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.03em; }
.pf-mini span { font-size: 11.5px; font-weight: 650; color: var(--text-3); }
.vt-title { display: block; color: var(--text); text-decoration: none; }
.vt-title[href]:hover { color: var(--violet); }
.an-progress { display: grid; gap: 10px; padding: 14px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7); box-shadow: inset 0 1px 0 #fff, 0 10px 30px -18px rgba(16, 38, 84, 0.4); }
.an-bar { height: 8px; border-radius: 99px; background: rgba(31, 111, 214, 0.12); overflow: hidden; }
.an-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), #6fb6ff); transition: width 0.6s var(--ease); }
.highlights.row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-mail { display: grid; gap: 10px; max-width: 820px; margin: 0 auto 12px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4); }
.report-note { display: flex; align-items: center; gap: 10px; max-width: 820px; margin: 0 auto 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.9); font-size: 13.5px; font-weight: 600; }
.report h2 small { font-size: 12px; color: #6b7280; font-weight: 600; }
@media (max-width: 900px) {
  .highlights.row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-mini div { text-align: left; }
  .pf-head { padding: 16px 16px 8px; }
  .report-actions { flex-wrap: wrap; }
}
/* Off-screen white page the report PDF is drawn from. */
.pdf-stage { position: fixed; left: -10000px; top: 0; width: 820px; background: #fff; z-index: -1; }
.pdf-stage .report { box-shadow: none; border-radius: 0; margin: 0; max-width: none; }
.report-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.report .r { text-align: right; }
.report-videos .report-video tr:last-child td { border-bottom: 1px solid #e5e7eb; }
.report-videos .rv-title { vertical-align: top; width: 40%; }
.report-videos .rv-title b { display: block; font-weight: 650; line-height: 1.35; }
.report-videos .rv-title small { color: #6b7280; font-weight: 600; }
.report-videos .rv-pf { white-space: nowrap; }
.report-videos .rv-pf svg { vertical-align: -2px; margin-right: 5px; }
.report-videos .faint { color: #9ca3af; }
/* The PDF always uses the desktop layout, even when it's made on a phone. */
.pdf-stage .report { padding: 40px 44px; }
.pdf-stage .report-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pdf-stage .report-head { flex-direction: row; align-items: center; }
.pdf-stage .report-period { text-align: right; }
.pdf-stage .report table { display: table; }

/* Safe and official (connect page, accounts) */
.safe-card { display: grid; gap: 16px; }
.safe-shield { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #e5f7ec; color: #0c7a3c; flex: none; }
.safe-pfs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.safe-pfs > div { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: 16px; background: var(--surface-2); text-align: center; }
.safe-pfs .pf { width: 42px; height: 42px; border-radius: 13px; }
.safe-pfs b { font-size: 13.5px; }
.safe-pfs small { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 750; color: #0c7a3c; }
.safe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.safe-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.safe-list li > svg { flex: none; margin-top: 2px; color: #0c7a3c; }
.safe-inline { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #ecf9f1; color: #245c3c; font-size: 13.5px; line-height: 1.45; }
.safe-inline > svg { flex: none; color: #0c7a3c; margin-top: 1px; }
.safe-inline b { color: #0c5a2e; }

/* Share a Google Drive folder */
.chip.on-soft { background: #e8f0fe; color: #1a56c4; box-shadow: inset 0 0 0 1px rgba(26, 86, 196, 0.25); }
.share-steps .ci { align-items: flex-start; }
.share-steps .ci .mark { flex: none; }

/* Auto-DM */
.adm-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.adm-modes .choice { text-align: left; }
.adm-post, .adm-reply { align-items: flex-start; }
@media (max-width: 760px) {
  .adm-modes { grid-template-columns: minmax(0, 1fr); }
  .adm-post { flex-wrap: wrap; }
}
.adm-video { align-items: center; flex-wrap: wrap; gap: 12px; }
.adm-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .adm-controls { width: 100%; } }

/* Content calendar (app tab and the client's calendar link): calm, airy, minimal */
.cal { display: grid; gap: 22px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cal-head .icon-btn { width: 36px; height: 36px; }
.cal-title { margin: 0 6px; min-width: 200px; text-align: center; font-family: var(--font-display); font-size: 26px; font-weight: 750; letter-spacing: -0.035em; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -6px; }
.cal-key { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.cal-key i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cal-key b { color: var(--text); font-weight: 750; }
.cal-key.scheduled, .cal-ev.scheduled { --c: #3b6fe0; --bg: #f3f6fe; }
.cal-key.preparing, .cal-ev.preparing { --c: #e08a0b; --bg: #fdf7ee; }
.cal-key.posted, .cal-ev.posted { --c: #12a15f; --bg: #f1f9f5; }
.cal-key.attention, .cal-ev.attention { --c: #dc2626; --bg: #fdf3f3; }
.cal-key.test, .cal-ev.test { --c: #9a9eb0; --bg: #f5f6f8; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.cal-dow { padding: 0 4px 2px; font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.cal-day { min-height: 128px; padding: 10px 10px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(15, 30, 60, 0.06); display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cal-day.empty { background: transparent; box-shadow: none; }
.cal-day.past { background: #fcfcfd; }
.cal-num { display: inline-grid; place-items: center; align-self: flex-start; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 99px; font-size: 14px; font-weight: 650; color: var(--text); flex: none; }
.cal-day.past .cal-num { color: var(--text-3); font-weight: 600; }
.cal-day.today { background: #f7f9ff; box-shadow: inset 0 0 0 1.5px rgba(31, 111, 214, 0.35); }
.cal-day.today .cal-num { background: var(--violet); color: #fff; font-weight: 700; }

/* A video: a status dot and the time, the title on its own lines, small quiet platform icons underneath. */
.cal-ev { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 0; padding: 8px 10px 9px; border-radius: 11px; background: var(--bg); box-shadow: inset 2px 0 0 color-mix(in srgb, var(--c) 55%, transparent); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.cal-ev:hover { transform: translateY(-1px); box-shadow: inset 2px 0 0 var(--c), 0 8px 18px -12px rgba(15, 30, 60, 0.35); }
.cal-ev:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; }
.cal-ev-time { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--c); letter-spacing: 0.01em; }
.cal-ev-time::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.cal-ev-title { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.cal-ev-pf { order: 3; display: flex; gap: 5px; margin-top: 2px; color: var(--text-3); opacity: 0.7; }
.cal-ev-pf svg { width: 10px; height: 10px; }
.cal-more { all: unset; cursor: pointer; align-self: flex-start; padding: 2px 4px; font-size: 11.5px; font-weight: 700; color: var(--violet); }

.cal-agenda { display: none; }
@media (max-width: 760px) {
  .cal { gap: 18px; }
  .cal-grid { display: none; }
  .cal-agenda { display: grid; gap: 20px; }
  .cal-agenda-day { display: grid; gap: 8px; }
  .cal-agenda-date { font-size: 13px; font-weight: 650; color: var(--text-2); padding-left: 2px; }
  .cal-agenda-day.today .cal-agenda-date { color: var(--violet); font-weight: 750; }
  .cal-agenda .cal-ev { padding: 12px 14px 13px; gap: 5px; border-radius: 14px; }
  .cal-agenda .cal-ev-title { font-size: 15px; -webkit-line-clamp: 3; }
  .cal-agenda .cal-ev-time { font-size: 12px; }
  .cal-agenda .cal-ev-pf svg { width: 12px; height: 12px; }
  .cal-title { min-width: 0; font-size: 21px; }
  .cal-legend { gap: 8px; margin-top: -4px; }
}
.cal-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.calendar-page { max-width: 1180px; margin: 0 auto; padding: 22px 16px 60px; }

/* ----- client groups ----- */
.cat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.seg-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.seg-chips button {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text-2); font: inherit; font-weight: 650; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s var(--ease);
}
.seg-chips button:hover { color: var(--text); }
.seg-chips button:active { transform: scale(0.96); }
.seg-chips button b { font-weight: 700; font-size: 12px; opacity: 0.55; }
.seg-chips button.on { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(19, 19, 31, 0.5); }
.seg-chips button.on b { opacity: 0.75; }
.cat-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); min-width: 200px; }
.cat-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); width: 100%; }
.cat-section + .cat-section { margin-top: 28px; }
.cat-head { display: flex; align-items: baseline; gap: 8px; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 12px; }
.cat-head span { font-size: 13px; font-weight: 650; color: var(--text-3); }
.cat-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--violet-soft); color: var(--violet); margin-right: 6px; vertical-align: 1px; }
@media (max-width: 640px) { .cat-search { width: 100%; } }

/* ----- disconnect guide ----- */
.revoke { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.revoke ol { margin: 0 0 10px; padding-left: 20px; font-size: 14px; color: var(--text-2); }
.revoke ol li { margin: 4px 0; }
.revoke-note { display: flex; gap: 7px; align-items: flex-start; margin: 0 0 10px; }
.revoke-note svg { flex: none; margin-top: 2px; }

/* ----- team activity ----- */
.team-log .log-row { gap: 12px; }
.log-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }

/* ----- agency branding on pages clients see ----- */
.brand-bar {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin: 0 auto 24px; padding: 26px 22px 22px;
  border-radius: 26px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); max-width: 680px; position: relative; overflow: hidden;
}
.brand-bar.has-color::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand); }
.brand-bar-logo { display: block; height: 76px; width: auto; max-width: min(300px, 80%); object-fit: contain; }
.brand-bar-mark { width: 76px; height: 76px; font-size: 36px; }
.brand-bar.has-color .brand-bar-mark { background: var(--brand); }
.brand-bar-text b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.025em; color: var(--text); line-height: 1.15; }
.brand-bar-text small { display: block; margin-top: 4px; font-size: 13px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 560px) { .brand-bar-logo { height: 60px; } .brand-bar-text b { font-size: 21px; } }
/* The agency's colour on its client pages: main buttons and labels. */
:root[style*="--brand"] .connect-wrap .btn.primary, :root[style*="--brand"] .calendar-page .btn.primary { background: var(--brand); box-shadow: 0 10px 24px -12px var(--brand); }
.calendar-page .brand-bar { max-width: 1180px; flex-direction: row; justify-content: center; text-align: left; }
@media (max-width: 560px) { .calendar-page .brand-bar { flex-direction: column; text-align: center; } }

/* brand colour picker */
.color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform 0.15s var(--ease); padding: 0; }
.color-dot:hover { transform: scale(1.08); }
.color-dot.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.color-row input[type="color"] { width: 38px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }

/* ----- Guide ----- */
.mob-guide { display: none; }
@media (max-width: 860px) { .mob-guide { display: inline-flex; flex: none; } }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.guide-toc { position: sticky; top: 16px; display: grid; gap: 2px; padding: 10px; max-height: calc(100vh - 32px); overflow: auto; }
.guide-toc a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; line-height: 1.3; }
.guide-toc a:hover { background: var(--surface-2); color: var(--text); }
.guide-toc a.on { background: var(--violet-soft); color: var(--violet); }
.guide-toc a .ic { flex: none; }
.guide-body { display: grid; gap: 16px; min-width: 0; }
.guide-section { scroll-margin-top: 16px; }
.guide-section h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; letter-spacing: -0.02em; margin: 0 0 14px; }
.guide-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); flex: none; }
.guide-section p { color: var(--text-2); line-height: 1.6; margin: 0 0 12px; }
.guide-section h4 { font-size: 15px; margin: 18px 0 8px; }
.guide-steps { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 10px; }
.guide-steps li { counter-increment: g; position: relative; padding-left: 38px; line-height: 1.55; color: var(--text-2); }
.guide-steps li::before { content: counter(g); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; }
.guide-steps li b { color: var(--text); }
.guide-btn { display: inline-block; padding: 1px 9px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 650; font-size: 0.93em; color: var(--text); white-space: nowrap; }
.guide-path { font-weight: 650; color: var(--text); }
.guide-tip { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--violet-soft); color: var(--text); font-size: 14px; line-height: 1.55; margin-top: 6px; }
.guide-tip .ic { flex: none; margin-top: 2px; color: var(--violet); }
.guide-tip.warn { background: rgba(245, 158, 11, 0.12); }
.guide-tip.warn .ic { color: #b45309; }
.guide-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 16px; counter-reset: f; }
.guide-flow-step { padding: 14px; border-radius: 16px; background: var(--surface-2); display: grid; gap: 4px; position: relative; }
.guide-flow-step span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-1); color: var(--violet); margin-bottom: 4px; }
.guide-flow-step b { font-size: 14px; }
.guide-flow-step small { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.guide-grid > div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.guide-grid > div > b { grid-column: span 1; }
.guide-grid > div > b:first-child { grid-column: 1 / -1; }
.guide-grid > div small { grid-column: 1 / -1; color: var(--text-3); font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
.guide-tree { background: var(--ink); color: #e6e8f0; border-radius: 14px; padding: 14px 16px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; margin: 0 0 10px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 12px; display: block; overflow-x: auto; }
.guide-table th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.guide-table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.guide-table code { font-size: 12.5px; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.guide-table .pill { white-space: nowrap; }
.guide-routine { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.guide-routine > div { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.guide-routine > div > b { display: block; margin-bottom: 10px; }
.guide-routine .guide-steps { margin: 0; }
.guide-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.guide-faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.guide-faq summary::after { content: "+"; color: var(--text-3); font-weight: 700; }
.guide-faq details[open] summary::after { content: "–"; }
.guide-faq p { margin: 8px 0 0; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; max-height: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .guide-toc { grid-template-columns: 1fr; } .guide-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .topbar .mob-guide { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.88); color: var(--text); } }

/* Coming-soon card (features in closed beta) */
.soon-card { text-align: center; padding: 34px 24px; display: grid; justify-items: center; gap: 10px; }
.soon-card img { width: 180px; margin-bottom: 4px; }
.soon-card h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -0.02em; }
.soon-card p { max-width: 520px; margin: 0; line-height: 1.6; }

/* Facebook Page picker */
.fbp-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; padding: 2px; }
.choice.fbp { align-items: center; gap: 12px; }
.fbp-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.fbp-initial { display: grid; place-items: center; font-weight: 800; color: #fff; background: #1877f2; }
.choice.fbp b { display: block; }
.fbp-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 9px; border: 0; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.fbp-link:hover { color: var(--text); }
.fbp-link.warn { background: rgba(245, 158, 11, 0.16); color: #92400e; }
.choice.fbp .fbp-img { width: 44px !important; height: 44px !important; min-width: 44px; max-width: 44px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: 0; }
.choice.fbp > div { flex: 1; text-align: left; }

/* Sign-up agreement line */
.agree-row { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.agree-row input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--violet, #5b5bd6); cursor: pointer; }
.agree-row a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.google-terms { margin: 10px 0 6px; text-align: center; line-height: 1.5; }
.google-terms a { color: inherit; text-decoration: underline; }

/* Billing */
.state-icon.violet { background: var(--violet-soft); color: var(--violet); }
.pill.violet { background: var(--violet-soft); color: var(--violet); }
.meter { display: grid; gap: 6px; }
.meter-track { height: 8px; border-radius: 99px; background: rgba(15, 23, 42, 0.07); overflow: hidden; }
.meter-track span { display: block; height: 100%; border-radius: 99px; background: var(--violet); transition: width 0.6s var(--spring, ease); }
.meter-track.amber span { background: var(--amber); }
.meter-track.red span { background: var(--red); }
.bill-price { display: flex; align-items: baseline; gap: 4px; }
.bill-price b { font-size: 30px; letter-spacing: -0.03em; }
.bill-price span { color: var(--text-3); font-weight: 600; }
.bill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.bill-plan { position: relative; background: #fff; border-radius: var(--r-xl, 22px); padding: 22px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 10px; }
.bill-plan h3 { margin: 0; font-size: 18px; }
.bill-plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; font-size: 13px; color: var(--text-2); flex: 1; }
.bill-plan li { display: flex; gap: 7px; align-items: flex-start; }
.bill-plan li svg { flex: none; margin-top: 2px; color: var(--green); }
.bill-plan.featured { box-shadow: 0 0 0 2px var(--violet), var(--shadow-1); }
.bill-plan.current { box-shadow: 0 0 0 2px var(--green), var(--shadow-1); }
.bill-badge { position: absolute; top: 18px; right: 18px; }
.seg { border: 0; cursor: pointer; padding: 9px 14px; border-radius: 99px; font: inherit; font-weight: 650; font-size: 13.5px; background: rgba(15, 23, 42, 0.05); color: var(--text-2); }
.seg.on { background: var(--ink); color: #fff; }
.topup-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 480px; margin: 12px 0; }
.topup-block { border: 0; cursor: pointer; border-radius: 16px; padding: 14px 10px; background: var(--violet-soft); color: var(--text); display: grid; gap: 3px; font: inherit; text-align: center; }
.topup-block b { font-size: 15px; }
.topup-block span { color: var(--violet); font-weight: 700; }
.topup-block:disabled { opacity: 0.6; cursor: default; }
.soon-inline { padding: 14px 16px; border-radius: 16px; background: rgba(15, 23, 42, 0.04); }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-pick label { display: grid; gap: 1px; padding: 10px 12px; border-radius: 14px; background: rgba(15, 23, 42, 0.04); cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; font-size: 13px; }
.plan-pick label.on { background: var(--violet-soft); box-shadow: inset 0 0 0 1.5px var(--violet); }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick b { font-size: 13.5px; }
.plan-pick span { color: var(--text-3); font-size: 12px; }

/* Plan chooser (sign-up and Billing): two Creator cards + Agency box → popup with Agency tiers */
.modal.wide { width: min(1240px, calc(100vw - 24px)); padding: 26px; background: #f5f6fa; }
.pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pp-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pp-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-1); text-align: left; }
.pp-card.featured { box-shadow: 0 0 0 2px var(--violet), var(--shadow-1); }
.pp-card.current { box-shadow: 0 0 0 2px var(--green), var(--shadow-1); }
.pp-card h3 { margin: 0; font-size: 21px; letter-spacing: -0.03em; }
.pp-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.pp-sub { margin: 0; color: var(--text-3); font-size: 13.5px; }
.pp-price { display: flex; align-items: baseline; gap: 5px; margin: 10px 0 6px; }
.pp-price b { font-size: 36px; letter-spacing: -0.045em; font-weight: 800; }
.pp-price span { color: var(--text-3); font-weight: 650; }
.pp-price .from { font-size: 13px; }
.pp-features { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 7px; align-content: start; font-size: 13.5px; color: var(--text-2); flex: 1; }
.pp-features li { display: flex; gap: 8px; align-items: flex-start; }
.pp-features li svg { flex: none; margin-top: 2px; color: var(--green); }
.pp-card .btn { justify-content: center; width: 100%; }
.pp-badge { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 99px; background: var(--violet); color: #fff; font-size: 11.5px; font-weight: 750; }
.pp-badge.green { background: var(--green); }
.pp-badge.gold { background: linear-gradient(135deg, #b8860b, #e0b84f); }
.pp-badge.dark { background: var(--ink); }
.agency-box { background: linear-gradient(165deg, #fff 40%, #eef3ff); }
.pp-note { text-align: center; color: var(--text-3); font-size: 13px; margin: 16px 0 0; }
.pp-modal-title { margin: 0; font-size: 28px; letter-spacing: -0.04em; }
.pp-modal-title em { color: var(--violet-2, var(--violet)); }
.pp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 8px; }
.pp-facts div { background: rgba(15, 23, 42, 0.045); border-radius: 12px; padding: 8px 10px; }
.pp-facts dt { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.pp-facts dd { margin: 2px 0 0; font-weight: 750; font-size: 15px; }
.pp-card.tier .pp-price b { font-size: 30px; }
.pp-card.talk { background: linear-gradient(165deg, #fff 40%, #f1f1f6); }
.pp-topups { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.pp-topups-head { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 9px; }
.pp-topup-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-topup-btns button { border: 0; cursor: pointer; padding: 10px 6px; border-radius: 12px; background: rgba(15, 23, 42, 0.055); font: inherit; font-weight: 700; font-size: 12.5px; color: var(--text); }
.pp-topup-btns button.on { background: var(--ink); color: #fff; }
.pp-panel { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--violet-soft); font-size: 13.5px; }
.pp-panel p { margin: 8px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.pp-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(15, 23, 42, 0.12); }
.pp-row span { font-weight: 750; color: var(--violet); }
.pp-soon { display: inline-block; padding: 4px 10px; border-radius: 99px; background: #fff; font-weight: 750; font-size: 12px; color: var(--violet); }
@media (max-width: 1100px) { .pp-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pp-tiers { grid-template-columns: minmax(0, 1fr); } .modal.wide { padding: 18px 14px; } }

/* Sign-up step 1: choose a plan */
.signup-plans { min-height: 100vh; padding: 48px 16px 56px; }
.signup-plans-inner { width: min(1120px, 100%); margin: 0 auto; }
.signup-plans-head { text-align: center; margin-bottom: 28px; color: #fff; }
.signup-plans-head .title { color: #fff; margin: 14px 0 6px; }
.signup-plans-head .title em { color: rgba(255, 255, 255, 0.85); }
.signup-plans-head p { margin: 0; color: rgba(255, 255, 255, 0.9); }
.chosen-plan { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--violet-soft); margin-bottom: 18px; }
.chosen-plan div { flex: 1; min-width: 0; }
.chosen-plan b { display: block; font-size: 14.5px; }
.chosen-plan span { color: var(--text-3); font-size: 12.5px; }
.chosen-plan button { border: 0; background: #fff; border-radius: 99px; padding: 7px 12px; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--violet); }
.pp-trial { margin: 8px 0 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--violet); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* WhatsApp help */
.wa-help { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; background: #e9f9ef; color: #0b3d22; }
.wa-help b { display: block; font-size: 14.5px; }
.wa-help span { font-size: 12.5px; color: #2b6a45; }
.wa-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; flex: none; }
.wa-nums { display: flex; gap: 8px; flex-wrap: wrap; }
.wa-btn { padding: 8px 12px; border-radius: 99px; background: #fff; color: #0b3d22; font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(11, 61, 34, 0.15); white-space: nowrap; }
.wa-btn:hover { background: #25d366; color: #fff; }
.wa-help.compact { padding: 10px 12px; }
/* Pay-first screen */
.pay-first { min-height: 100vh; padding: 40px 16px 56px; }
.pay-first-inner { width: min(1120px, 100%); margin: 0 auto; display: grid; gap: 18px; }
.pay-first-head { text-align: center; color: #fff; }
.pay-first-head .title { color: #fff; margin: 14px 0 6px; }
.pay-first-head .title em { color: rgba(255, 255, 255, 0.85); }
.pay-first-head p { margin: 0; color: rgba(255, 255, 255, 0.92); }
.pay-first .card.slim { padding: 16px 18px; }
/* plan-locked storage choices */
.choice.locked { opacity: 0.75; }
.choice .lock-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--violet); background: var(--violet-soft); padding: 2px 8px; border-radius: 99px; margin-left: 6px; }

.wa-btn { display: inline-flex; align-items: center; gap: 6px; }
.wa-btn svg { color: #25d366; }
.wa-btn:hover svg { color: #fff; }
.wa-ico svg { color: #fff; }

/* Mobile-number popup ("complete your verification"): sits above the plans popup. */
.overlay:has(+ .modal .phone-popup) { z-index: 70; }
.modal:has(.phone-popup) { z-index: 71; width: min(440px, calc(100vw - 32px)); }
.phone-popup { text-align: left; }
.phone-popup-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #fff4dd; color: #b26b00; }

/* ── Book a free demo call ─────────────────────────────────────────── */
.demo-top {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 750; font-size: 14px; color: #fff; background: linear-gradient(135deg, #ff7a3d, #e5357a 55%, #8b4dff);
  box-shadow: 0 10px 26px -10px rgba(229, 53, 122, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform 0.15s var(--ease), box-shadow 0.2s;
  animation: demoPulse 2.8s ease-in-out infinite;
}
.demo-top:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(229, 53, 122, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.demo-top:active { transform: scale(0.96); }
.demo-top .lbl-demo-short { display: none; }
@keyframes demoPulse { 0%, 100% { box-shadow: 0 10px 26px -10px rgba(229, 53, 122, 0.7), 0 0 0 0 rgba(229, 53, 122, 0.35); } 50% { box-shadow: 0 10px 26px -10px rgba(229, 53, 122, 0.7), 0 0 0 7px rgba(229, 53, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .demo-top { animation: none; } }
@media (max-width: 860px) {
  .topbar .demo-top { display: none; }
  .demo-top .lbl-demo { display: none; }
  .sidebar .demo-side { display: none !important; }
}
.demo-side {
  display: flex; align-items: center; gap: 11px; width: 100%; margin-top: 12px; padding: 12px; border: 0; border-radius: 18px; cursor: pointer; font: inherit; color: #fff;
  background: linear-gradient(135deg, #ff7a3d, #e5357a 55%, #8b4dff); box-shadow: 0 12px 26px -14px rgba(229, 53, 122, 0.8); transition: transform 0.15s var(--ease);
}
.demo-side:hover { transform: translateY(-1px); }
.demo-side b { display: block; font-size: 14px; line-height: 1.25; }
.demo-side small { display: block; font-size: 12px; opacity: 0.9; }
.demo-side-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.22); }
.chat-demo {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 12px; padding: 12px 14px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; text-align: left; color: #fff;
  background: linear-gradient(135deg, #ff7a3d, #e5357a 55%, #8b4dff);
}
.chat-demo span { flex: 1; min-width: 0; }
.chat-demo b { display: block; font-size: 14px; }
.chat-demo small { display: block; font-size: 12px; opacity: 0.9; }
.modal:has(.demo-modal) { width: min(560px, calc(100vw - 24px)); z-index: 72; }
.overlay:has(+ .modal .demo-modal) { z-index: 71; }
.demo-modal { position: relative; }
.demo-close { position: absolute; top: -10px; right: -10px; }
.demo-head { display: flex; align-items: center; gap: 12px; }
.demo-badge { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff7a3d, #e5357a 55%, #8b4dff); }
.demo-badge.ok { background: linear-gradient(135deg, #5cc46a, #2f9d55); }
.demo-free { font-weight: 800; letter-spacing: 0.04em; }
.demo-points { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 7px; border-radius: 16px; background: var(--surface-2); }
.demo-points li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.demo-points .ic { flex: none; color: #2f9d55; margin-top: 1px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-grid .field { margin: 0; }
@media (max-width: 560px) { .demo-grid { grid-template-columns: 1fr; } }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-done { display: grid; gap: 16px; justify-items: start; }
.demo-wa { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #eafaf0; color: #14652f; font-size: 14px; font-weight: 600; width: 100%; box-sizing: border-box; }
@media (max-height: 900px) {
  .demo-side { padding: 9px 10px; margin-top: 8px; }
  .demo-side small { display: none; }
  .demo-side-ic { width: 30px; height: 30px; }
  .side-clients { min-height: 56px; }
}

/* Overview: "Not sure where to start?" demo card */
.demo-card {
  position: relative; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px 26px; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #ff7a3d, #e5357a 55%, #8b4dff) border-box; border: 2px solid transparent;
  box-shadow: 0 18px 40px -24px rgba(229, 53, 122, 0.55), var(--shadow-1);
}
.demo-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 122, 61, 0.1), transparent 55%), radial-gradient(90% 90% at 100% 100%, rgba(139, 77, 255, 0.1), transparent 60%); }
.demo-card > * { position: relative; }
.demo-card-art { flex: none; display: grid; justify-items: center; gap: 8px; }
.demo-card-ring { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff7a3d, #e5357a 55%, #8b4dff); box-shadow: 0 14px 28px -12px rgba(229, 53, 122, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.demo-card-team { display: flex; margin-top: -18px; }
.demo-card-team img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: #f1eefc; margin-left: -8px; }
.demo-card-team img:first-child { margin-left: 0; }
.demo-card-body { flex: 1; min-width: 240px; display: grid; gap: 6px; }
.demo-eyebrow { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; color: #c0266a; background: #ffe9f2; }
.demo-card h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.demo-card h2 em { font-style: italic; background: linear-gradient(90deg, #e5357a, #8b4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-card p { margin: 0; color: var(--text-2, #5b6270); font-size: 14.5px; line-height: 1.5; max-width: 520px; }
.demo-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.demo-facts span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: #2b3340; }
.demo-facts .ic { color: #2f9d55; }
.demo-cta {
  flex: none; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 750; color: #fff; background: linear-gradient(135deg, #ff7a3d, #e5357a 55%, #8b4dff);
  box-shadow: 0 14px 28px -12px rgba(229, 53, 122, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform 0.15s var(--ease), box-shadow 0.2s;
}
.demo-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(229, 53, 122, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.demo-cta:active { transform: scale(0.97); }
@media (max-width: 700px) { .demo-card { padding: 20px; gap: 16px; } .demo-cta { width: 100%; justify-content: center; } .demo-card-art { display: none; } }

/* Demo form: option buttons */
.demo-opt {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: #2b3340; background: #fff; border: 1.5px solid #e3e6ec; transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
}
.demo-opt:hover { border-color: #f0a7c6; background: #fff8fb; }
.demo-opt:active { transform: scale(0.97); }
.demo-opt.on { border-color: #e5357a; background: #fff0f6; color: #b0215c; box-shadow: 0 0 0 3px rgba(229, 53, 122, 0.12); }
.demo-opt.on .ic { color: #e5357a; }
.demo-cta.wide { width: 100%; justify-content: center; }
.demo-cta[disabled] { opacity: 0.75; cursor: default; }

/* Admin: Upload-Post capacity card */
.cap-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 16px; }
@media (max-width: 760px) { .cap-grid { grid-template-columns: 1fr; gap: 18px; } }
.cap-num { display: flex; align-items: baseline; gap: 6px; }
.cap-num b { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.cap-num span { font-size: 22px; font-weight: 700; color: var(--text-3, #8a90a0); }
.cap-num.sm b { font-size: 36px; }
.cap-bar { height: 10px; border-radius: 999px; background: #eceef3; overflow: hidden; margin: 10px 0 8px; }
.cap-bar i { display: block; height: 100%; border-radius: 999px; transition: width 0.6s var(--ease); }
.cap-bar.green i { background: linear-gradient(90deg, #5cc46a, #2f9d55); }
.cap-bar.amber i { background: linear-gradient(90deg, #ffc65c, #f08c1a); }
.cap-bar.red i { background: linear-gradient(90deg, #ff7b7b, #e03a3a); }
.cap-bar.grey i { background: #c9cdd6; }
.cap-plats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cap-plat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2, #f4f5f8); font-size: 13px; font-weight: 600; }
.cap-agencies { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.cap-agencies summary { cursor: pointer; }

/* How to name video files (upload box) */
.fname-guide { border-radius: 14px; background: var(--surface-2); padding: 0 14px; }
.fname-guide summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 11px 0; font-weight: 650; font-size: 14px; }
.fname-guide summary::-webkit-details-marker { display: none; }
.fname-guide summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--text-3); }
.fname-guide[open] summary::after { content: "–"; }
.fname-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 12px; font-size: 13.5px; }
.fname-cols ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 5px; color: var(--text-2); }
.fname-cols b { display: inline-flex; align-items: center; gap: 5px; }
.fname-cols .ok-t { color: #17803d; } .fname-cols .no-t { color: #b42318; }
@media (max-width: 640px) { .fname-cols { grid-template-columns: minmax(0, 1fr); } }

/* Buttons that open a live post */
.btn.xs { height: 26px; padding: 0 9px; font-size: 12.5px; gap: 5px; border-radius: 9px; vertical-align: middle; margin: 2px 2px; }
.open-post { gap: 6px; }
.post-links { display: flex; gap: 4px; flex-wrap: wrap; }
.post-link { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--surface-2); color: var(--text); transition: transform 0.2s var(--ease), background 0.2s; }
.post-link:hover { transform: translateY(-1px); background: var(--surface-3, #e6e9ef); }

/* Custom thumbnail (video drawer) */
.thumb-box { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.thumb-img { flex: none; width: 128px; height: 72px; border-radius: 10px; object-fit: cover; background: #000; box-shadow: var(--shadow-1); }
.thumb-empty { display: grid; place-items: center; background: #fff; color: var(--text-3); border: 1.5px dashed var(--line); box-shadow: none; }
@media (max-width: 480px) { .thumb-box { flex-direction: column; } }

/* Affiliate programme */
.aff-terms { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.aff-terms li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; }
.aff-terms li > svg { flex: none; color: var(--green); margin-top: 1px; }
.aff-link { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.aff-url { font-size: 18px; font-weight: 700; margin-top: 4px; }
.mob-only-card { display: none !important; margin-bottom: 16px; }
@media (max-width: 900px) { .mob-only-card { display: flex !important; } }

/* What's new */
.upd-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding: 10px 12px 10px 16px; border-radius: 18px;
  background: linear-gradient(100deg, #fff7e0, #ffe9f2 55%, #efe7ff); box-shadow: var(--shadow-1); font-size: 14.5px; }
.upd-banner-ic { font-size: 20px; }
.upd-btn { position: relative; }
.upd-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center;
  background: #e5357a; color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.upd-modal { max-width: 460px; }
.upd-title { margin: 0 0 12px; font-size: 22px; }
.upd-item + .upd-item { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.upd-head { margin: 12px 0 4px; font-weight: 700; font-size: 14px; }
.upd-modal ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--text-2); font-size: 14.5px; }
/* The updates bell: in the top-bar group on desktop, next to the avatar on phones. */
.mob-upd { display: none !important; }
@media (max-width: 860px) {
  .desk-upd { display: none !important; }
  .topbar .mob-upd { display: inline-flex !important; flex: none; width: 40px; height: 40px; padding: 0; justify-content: center; align-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.88); color: var(--text); }
}
@media (max-width: 860px) {
  .topbar .mob-me .avatar { width: 36px; height: 36px; }
  .topbar .mob-upd, .topbar .mob-guide { width: 36px; height: 36px; }
  .topbar { gap: 6px; }
}

/* Posting-safety popup */
.modal:has(.notice-modal) { width: min(560px, calc(100vw - 24px)); z-index: 73; }
.overlay:has(+ .modal .notice-modal) { z-index: 72; }
.notice-modal { display: grid; gap: 14px; }
.notice-badge { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; }
.notice-badge.warn { background: linear-gradient(135deg, #ffb547, #f0761a); }
.notice-badge.info { background: linear-gradient(135deg, #5b9dff, #3b6fe0); }
.notice-item { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; }
.notice-item.dup { background: #fff6e8; box-shadow: inset 0 0 0 1.5px #ffd9a1; }
.notice-item.gap { background: #eef4ff; box-shadow: inset 0 0 0 1.5px #cfe0ff; }
.notice-item b { font-size: 15px; }
.notice-item p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: #3b4352; }
.notice-gap-row { display: flex; gap: 10px; align-items: flex-start; }
.notice-gap-row .ic { flex: none; margin-top: 2px; color: #3b6fe0; }

/* Admin agency page: people and social accounts in full */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.person { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface-2, #f6f7f9); box-shadow: inset 0 0 0 1px var(--line); }
.person-row { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.person-row > .ic { flex: none; color: var(--text-3, #8a90a0); }
.person-val { flex: 1; min-width: 0; font-weight: 650; color: var(--text); word-break: break-all; text-decoration: none; }
a.person-val:hover { text-decoration: underline; }
.icon-btn.sm { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-3, #8a90a0); background: #f1f2f5; text-decoration: none; max-width: 100%; }
.acct-chip span { overflow-wrap: anywhere; }
.acct-chip.on { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2, #e3e6ec); }
a.acct-chip.on:hover { box-shadow: inset 0 0 0 1.5px #9db7ff; color: #1f4fd6; }
.acct-chip.warn { color: #9a5a00; background: #fff4dd; }

/* Thumbnail rule: before posting = every platform, after = YouTube only */
.thumb-rule { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #eef7f0; font-size: 13px; line-height: 1.45; }
.thumb-rule > div { display: flex; gap: 7px; align-items: flex-start; }
.thumb-rule .ic { flex: none; margin-top: 2px; color: #2f9d55; }
.thumb-rule > div:nth-child(2) .ic { color: #b26b00; }
.thumb-rule.late { background: #fff6e8; }
.thumb-rule.late > div:first-child { opacity: 0.6; }

/* Content rules: blocked videos */
.notice-badge.bad { background: linear-gradient(135deg, #ff6b6b, #d92d3a); }
.notice-item.blocked { background: #fff0f0; box-shadow: inset 0 0 0 1.5px #ffc2c2; }
.blocked-list { margin: 8px 0 4px; padding: 0; list-style: none; display: grid; gap: 6px; }
.blocked-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.75); font-size: 13.5px; line-height: 1.4; }
.blocked-list li b { font-size: 13px; }
.blocked-list li span { opacity: .85; overflow-wrap: anywhere; }
.btn.warn, .on-sky .btn.warn:not(.primary):not(.danger) { color: #8a4b00; background: #ffe7b8; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 6px 16px -8px rgba(138, 75, 0, 0.45); }
.btn.warn:hover { background: #ffdc94; }
.access-link { padding: 12px 14px; border-radius: 12px; background: rgba(15, 30, 80, 0.06); overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }

/* ---------- 21-day free trial (GROW21) ---------- */
.trial-offer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r-md); color: #3b1d6e;
  background: linear-gradient(120deg, #fff4ec 0%, #fdeaf4 48%, #efe9ff 100%); box-shadow: inset 0 0 0 1.5px rgba(139, 77, 255, 0.28), var(--shadow-1); }
.trial-offer-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff7a3d, #e5357a 55%, #8b4dff); }
.trial-offer.compact .trial-offer-ic { width: 42px; height: 42px; border-radius: 13px; }
.trial-offer-body { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; }
.trial-offer-body b { font-size: 17px; line-height: 1.25; }
.trial-offer-body > span:last-child { font-size: 13px; color: #5b4a7a; }
.trial-offer-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #c0297a; }
.trial-code { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-weight: 800; letter-spacing: 0.06em; color: #6a2ee0; cursor: pointer;
  padding: 2px 8px; border-radius: 8px; border: 1.5px dashed rgba(106, 46, 224, 0.55); background: rgba(255, 255, 255, 0.7); }
.trial-code:hover { background: #fff; }
.trial-nudge { position: relative; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.trial-nudge .trial-offer { width: 100%; }
.banner.trial-banner { color: #4a1f86; background: linear-gradient(120deg, #fff4ec, #fdeaf4 50%, #efe9ff); box-shadow: inset 0 0 0 1px rgba(139, 77, 255, 0.3), var(--shadow-1); }
.banner.trial-banner .ic { color: #c0297a; }
.trial-code-inline { letter-spacing: 0.06em; padding: 1px 7px; border-radius: 7px; border: 1.5px dashed rgba(106, 46, 224, 0.5); background: rgba(255, 255, 255, 0.65); }
.trial-banner-cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: #6a2ee0; }
.pp-trial-ribbon { display: flex; align-items: center; gap: 7px; margin: 2px 0 10px; padding: 7px 11px; border-radius: 10px; font-size: 13px; color: #4a1f86;
  background: linear-gradient(120deg, #fff1e8, #fde6f2 55%, #ece5ff); box-shadow: inset 0 0 0 1px rgba(139, 77, 255, 0.25); }
.pp-trial-ribbon .ic { color: #c0297a; }
.trial-signup { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 12px 14px; border: 0; border-radius: 14px; font: inherit; color: #4a1f86;
  background: linear-gradient(120deg, #fff1e8, #fde6f2 55%, #ece5ff); box-shadow: inset 0 0 0 1.5px rgba(139, 77, 255, 0.3); }
.trial-signup span { flex: 1; min-width: 0; }
.trial-signup b { display: block; font-size: 15px; }
.trial-signup small { display: block; font-size: 12px; color: #6b5a8a; }
.trial-signup > .ic:first-child { color: #c0297a; }

/* ---------- "How to use" SOP video (YouTube) ---------- */
.sop-side { display: flex; align-items: center; gap: 11px; width: 100%; margin-top: 12px; padding: 11px 12px; border-radius: 18px; text-decoration: none; color: var(--ink, #14161c);
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 0, 0, 0.22), 0 10px 24px -16px rgba(200, 0, 0, 0.45); transition: transform 0.15s var(--ease); }
.sop-side:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px rgba(255, 0, 0, 0.4), 0 12px 26px -14px rgba(200, 0, 0, 0.5); }
.sop-side > span:nth-child(2) { flex: 1; }
.sop-side b { display: block; font-size: 14px; line-height: 1.25; }
.sop-side small { display: block; font-size: 12px; color: var(--muted, #667); }
.sop-side > .ic { color: var(--muted, #889); }
.sop-side-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: #ff0000; }
.sop-top { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 14px;
  color: #c4000f; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 0, 0, 0.3), var(--shadow-1); white-space: nowrap; flex: none; }
.sop-top .brand, .sop-top svg { color: #ff0000; }
.sop-top:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 0, 0, 0.55), var(--shadow-1); }
@media (max-width: 860px) {
  .sop-top { height: 34px; width: 34px; padding: 0; justify-content: center; }
  .sop-top .lbl-sop { display: none; }
  .sidebar .sop-side { display: none !important; }
}
@media (max-height: 900px) {
  .sop-side { padding: 8px 10px; margin-top: 8px; }
  .sop-side small { display: none; }
  .sop-side-ic { width: 30px; height: 30px; }
}
.plat-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.plat-lang { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.plat-lang-name { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
/* Admin: data for any period */
.range-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.range-chips .chip { font-size: 13px; }
.range-card .is-loading { opacity: 0.55; transition: opacity 0.2s; }
.chart-bar.posted { fill: var(--green); opacity: 0.9; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--violet-2); display: inline-block; }
.legend-dot.posted { background: var(--green); margin-left: 6px; }

/* Blocked / held video: watch it right in the drawer */
.video-preview { border-radius: 14px; overflow: hidden; background: #0b0d12; display: flex; justify-content: center; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.35); }
.video-preview video, .video-preview img { display: block; width: 100%; max-height: min(62vh, 560px); object-fit: contain; background: #0b0d12; }
.video-preview.off { background: var(--surface-2, #f3f4f6); color: var(--muted, #6b7280); gap: 10px; align-items: center; padding: 18px; font-size: 14px; box-shadow: none; }
.blocked-list .seek-btn { justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(185,28,28,.25); background: #fff; color: #b91c1c; font: 600 12px/1.4 inherit; font-family: inherit; cursor: pointer; }
.blocked-list .seek-btn:hover { background: #fee2e2; }
.offer-sum { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(122, 59, 255, 0.07); }
.offer-sum > div { display: flex; justify-content: space-between; font-size: 14px; }
.offer-sum .total { padding-top: 6px; border-top: 1px solid rgba(15, 30, 80, 0.1); font-size: 16px; }
.offer-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.offer-facts > div { display: grid; gap: 2px; padding: 12px 10px; border-radius: 14px; background: rgba(15, 30, 80, 0.05); text-align: center; }
.offer-facts b { font-size: 22px; }
.offer-facts span { font-size: 12.5px; opacity: .75; }
.offer-list { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 4px; }

/* Password box with a show/hide eye */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; width: 100%; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted, #5b6478); cursor: pointer; }
.pw-eye:hover { background: rgba(15, 30, 80, 0.06); color: inherit; }

/* Admin → Demo calls: Google Calendar, the coming days (block a slot or a day), weekly hours */
.booking-admin { display: grid; gap: 14px; margin-bottom: 18px; }
.booking-admin > .card { margin: 0; }
.gcal-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, #4285f4, #34a853); }
.btn.disabled { opacity: 0.5; pointer-events: none; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); }
.slot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.slot-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.dot.open { background: #e3f6ea; box-shadow: inset 0 0 0 1px #8fd3a8; } .dot.blocked { background: #eceff3; box-shadow: inset 0 0 0 1px #c6ccd6; }
.dot.busy { background: repeating-linear-gradient(135deg, #fde8e6 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px #f2b8b2; } .dot.booked { background: #e6f0fd; box-shadow: inset 0 0 0 1px #9cc2f3; }
.cal-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cal-day { padding: 12px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.cal-day.off { background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, #eef0f4 8px 16px); }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.cal-day-head .link { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--violet); font-weight: 650; }
.cal-slots { display: flex; flex-wrap: wrap; gap: 5px; }
.slot-btn { display: inline-grid; justify-items: center; min-width: 64px; min-height: 34px; padding: 5px 8px; border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 650; line-height: 1.15; transition: transform 0.15s var(--ease), background 0.2s; }
.slot-btn small { font-size: 10.5px; font-weight: 600; opacity: 0.8; }
.slot-btn:not([disabled]):hover { transform: translateY(-1px); }
.slot-btn:not([disabled]):active { transform: scale(0.96); }
.slot-btn.open { background: #e3f6ea; color: #0e7f4a; box-shadow: inset 0 0 0 1px #8fd3a8; }
.slot-btn.blocked { background: #eceff3; color: var(--text-3); box-shadow: inset 0 0 0 1px #c6ccd6; text-decoration: line-through; }
.slot-btn.busy { background: repeating-linear-gradient(135deg, #fde8e6 0 4px, #fff 4px 8px); color: #b42318; box-shadow: inset 0 0 0 1px #f2b8b2; cursor: default; }
.slot-btn.booked { background: #e6f0fd; color: #1f5fbf; box-shadow: inset 0 0 0 1px #9cc2f3; cursor: default; }
.slot-btn.past { background: transparent; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.week-hours { display: grid; gap: 8px; }
.week-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.week-day { display: flex; align-items: center; gap: 8px; font-weight: 700; min-height: 40px; }
.week-ranges { display: grid; gap: 6px; justify-items: start; }
.week-ranges .input { width: 130px; height: 40px; }
.week-ranges .link { background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--violet); font-weight: 650; }
@media (max-width: 560px) { .week-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .week-ranges .input { width: 112px; } }
