/* ─────────────────────────────────────────────────────────────
 * Pivt Media — Client Portal
 * Light theme, built on colors_and_type.css tokens.
 * ───────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
#root { min-height: 100vh; }
a { color: inherit; }
button { font-family: inherit; }

/* Density tokens — flipped by the [data-density] attr via tweaks */
:root {
  --pane-pad: clamp(28px, 3.5vw, 56px);
  --card-pad: 28px;
  --stack: 20px;
}
[data-density="compact"] {
  --pane-pad: clamp(20px, 2.5vw, 36px);
  --card-pad: 20px;
  --stack: 14px;
}

/* Accent intensity — controls ambient blob opacity */
:root { --ambient-strength: 0.42; --hscale: 1; }
[data-accent="bold"]  { --ambient-strength: 0.7; }
[data-accent="quiet"] { --ambient-strength: 0.22; }

/* Ambient motion toggle */
[data-ambient="off"] .ambient span,

/* ── Ambient background blobs ─────────────────────────────────── */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.ambient span {
  position: absolute; border-radius: 9999px; filter: blur(90px);
  opacity: var(--ambient-strength); will-change: transform;
}
.ambient .b1 {
  width: 46vw; height: 46vw; left: -12vw; top: -16vw;
  background: radial-gradient(closest-side, #5E3394 0%, #7A3AAA 50%, transparent 78%);
  animation: drift-1 18s ease-in-out infinite;
}
.ambient .b2 {
  width: 50vw; height: 50vw; right: -16vw; top: 8vh;
  background: radial-gradient(closest-side, #C4605A 0%, #D88060 45%, transparent 78%);
  animation: drift-2 22s ease-in-out infinite;
}
.ambient .b3 {
  width: 42vw; height: 42vw; left: 30vw; bottom: -18vw;
  background: radial-gradient(closest-side, #8E4080 0%, #5E3394 50%, transparent 78%);
  animation: drift-3 26s ease-in-out infinite; opacity: calc(var(--ambient-strength) * 0.8);
}
@keyframes drift-1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(8vw,6vh) scale(1.12)} }
@keyframes drift-2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-7vw,4vh) scale(1.1)} }
@keyframes drift-3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-6vw,-8vh) scale(1.08)} }

/* ── Fade-and-lift on mount ───────────────────────────────────── */
.lift { animation: lift 600ms var(--ease-out) both; }
@keyframes lift { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lift-2 { animation-delay: 70ms; }
.lift-3 { animation-delay: 140ms; }
.lift-4 { animation-delay: 210ms; }

/* ─────────────────────────────────────────────────────────────
 * LOGIN — hero split
 * ───────────────────────────────────────────────────────────── */
/* ── Login — new-website hero look: full-bleed water shader, grid overlay,
      ink editorial block (left) + dark glass form card (right) ─────────── */
.login-stage {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center;
  /* Static fallback (site's reduced-motion gradient) — shows whenever the
     shader declines to mount (reduced motion, ambient off, CDN/WebGL fail). */
  background: linear-gradient(to right, #F5F3EF 0%, #F5F3EF 55%, rgba(94,51,148,0.85) 85%, #C4605A 100%);
}
.login-shader { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.login-gridlines {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(12,12,12,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,12,12,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}
.login-content {
  position: relative; z-index: 4;
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(32px, 6vh, 72px) clamp(24px, 5vw, 72px);
}
.login-editorial { color: var(--ink); }
.login-logo { height: 44px; width: auto; object-fit: contain; display: block; margin-bottom: clamp(28px, 5vh, 56px); }
.login-eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body-alt); font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple);
  background: rgba(94,51,148,0.06); border: 1px solid rgba(94,51,148,0.32);
  border-radius: 999px; padding: 8px 16px;
}
.lec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.login-display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem); line-height: 1.0; letter-spacing: -0.03em;
  color: var(--ink); margin: 26px 0 0; max-width: 12ch; text-wrap: balance;
}
.login-lede {
  font-family: var(--font-body-alt); font-size: 1.15rem; line-height: 1.55;
  color: var(--ink); opacity: 0.78; max-width: 44ch; margin-top: 22px;
}

/* Dark glass form card — DarkGlassChip surface, rectangular form-sized */
.login-glass-card {
  position: relative;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,0.06), rgba(20,15,25,0) 60%),
    rgba(20,15,25,0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
  padding: clamp(28px, 4vw, 44px);
  max-width: 460px; width: 100%; justify-self: end;
  color: #fff;
}
.lgc-chip {
  font-family: var(--font-pixel); font-weight: 500; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.lgc-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.025em; line-height: 1.05;
  margin: 0 0 10px; color: #fff;
}
.lgc-lead { font-family: var(--font-body-alt); color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.5; margin-bottom: 28px; }

.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-error { color: #FFB3A7; font-size: 14px; min-height: 18px; }
.login-foot-note { margin-top: 24px; font-size: 13px; font-family: var(--font-body-alt); color: rgba(255,255,255,0.6); }
.login-foot-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Glass variants of the shared field styles (scoped to the card) */
.login-glass-card .field-label { color: rgba(255,255,255,0.78); }
.login-glass-card .field-input {
  background: rgba(255,255,255,0.08); color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.login-glass-card .field-input::placeholder { color: rgba(255,255,255,0.4); }
.login-glass-card .field-input:focus {
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
}
.login-glass-card .pw-toggle { color: rgba(255,255,255,0.6); }
.login-glass-card .pw-toggle:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* ── Form fields ──────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-700); }
.field-input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--border); background: var(--white);
  border-radius: var(--r-input); padding: 15px 18px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  outline: none; transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field-input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--purple); box-shadow: 0 0 0 4px rgba(94,51,148,0.10);
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235E3394' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
.field-hint { font-size: 13px; color: var(--muted); }

/* ─────────────────────────────────────────────────────────────
 * SHELL — topbar + layout
 * ───────────────────────────────────────────────────────────── */
.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(20px, 3vw, 40px);
  background: rgba(255,255,255,0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar img.tb-logo { height: 30px; width: auto; display: block; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.tb-user { display: flex; align-items: center; gap: 10px; }
.tb-avatar {
  width: 36px; height: 36px; border-radius: 9999px; background: var(--gradient);
  color: #fff; display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  flex: 0 0 auto; aspect-ratio: 1; line-height: 1; overflow: hidden; box-sizing: border-box;
}
.tb-user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.tb-user-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.tb-user-role { font-size: 12px; color: var(--muted); }

/* Role toggle — segmented pill */
.role-toggle { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--border); border-radius: 9999px; background: var(--white); }
.role-btn {
  border: 0; background: transparent; cursor: pointer; border-radius: 9999px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--grey-500);
  font-family: var(--font-display); transition: color var(--dur-base), background var(--dur-base);
}
.role-btn.active { background: var(--ink); color: var(--white); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 9999px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; display: grid; place-items: center;
  color: var(--grey-700); transition: border-color var(--dur-base), color var(--dur-base);
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ── Notification bell + panel ─────────────────────────────────────────── */
.pm-notif { position: relative; display: inline-flex; }
.pm-notif-btn { position: relative; }
.pm-notif-count {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9999px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--white); box-sizing: border-box;
}
.pm-notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: min(92vw, 360px);
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(12,12,12,0.16); overflow: hidden;
  animation: pmNotifIn 160ms ease both;
}
@keyframes pmNotifIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.pm-notif-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink);
}
.pm-notif-list { max-height: min(60vh, 420px); overflow-y: auto; }
.pm-notif-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 34px 20px; color: var(--muted); font-size: 14px;
}
.pm-notif-empty svg { stroke: var(--purple); }
.pm-notif-item {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 16px;
  border-bottom: 1px solid var(--border); transition: background var(--dur-base);
}
.pm-notif-item:last-child { border-bottom: 0; }
.pm-notif-item.unread { background: #FBF6FF; }
.pm-notif-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9999px; display: grid; place-items: center;
  background: var(--grey-50); color: var(--purple);
}
.pm-notif-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.pm-notif-body {
  font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pm-notif-time { font-size: 12px; color: var(--grey-500); margin-top: 4px; }
.pm-notif-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 9999px; background: var(--coral); margin-top: 6px; }
.ws-file-x {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9999px; border: 1px solid var(--border);
  background: var(--white); color: var(--grey-500); cursor: pointer; display: grid; place-items: center;
  transition: color var(--dur-base), border-color var(--dur-base);
}
.ws-file-x:hover { color: var(--coral); border-color: var(--coral); }

/* ── Wizard layout ────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: 320px 1fr; flex: 1; align-items: start; }
.stepnav { position: sticky; top: 60px; padding: var(--pane-pad); align-self: start; max-height: calc(100vh - 60px); overflow-y: auto; }
.stepnav-head { margin-bottom: 22px; }
.stepnav-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stepnav-progress-num { font-family: var(--font-display); font-weight: 900; font-size: 32px; letter-spacing: -0.03em; line-height: 1; margin-top: 8px; }
.stepnav-progress-num .pct {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.progress-track { height: 6px; border-radius: 999px; background: var(--grey-100); overflow: hidden; margin-top: 14px; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--gradient); transition: width var(--dur-slow) var(--ease-out); }

.steps { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.step {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px;
  cursor: pointer; transition: background var(--dur-base); border: 1px solid transparent;
}
.step:hover { background: var(--grey-50); }
.step.active { background: var(--white); border-color: var(--border); }
.step-dot {
  width: 30px; height: 30px; border-radius: 9999px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  border: 1.5px solid var(--grey-300); color: var(--grey-500); background: var(--white);
  transition: all var(--dur-base);
}
.step.active .step-dot { border-color: var(--ink); color: var(--ink); }
.step.done .step-dot { background: var(--gradient); border-color: transparent; color: #fff; }
.step-label { font-size: 14px; font-weight: 500; color: var(--grey-700); line-height: 1.2; }
.step.active .step-label { color: var(--ink); font-weight: 600; }
.step-dot svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Locked steps (linear funnel gates) ───────────────────────── */
.step.locked { opacity: 0.55; cursor: not-allowed; }
.step.locked:hover { background: transparent; }
.step.locked .step-dot { border-color: var(--grey-200, #e2e2e8); color: var(--grey-400, #9a9aa5); background: var(--grey-50); }
.step.locked .step-dot svg { stroke: var(--grey-400, #9a9aa5); width: 13px; height: 13px; stroke-width: 2; }
.step.locked .step-label { color: var(--grey-400, #9a9aa5); }

/* Lock toast — shown when a locked step is clicked */
.lock-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  padding: 11px 18px; border-radius: 9999px; box-shadow: 0 12px 34px rgba(0,0,0,.28);
  z-index: 9999; max-width: 90vw; animation: lockToastIn var(--dur-base) ease;
}
.lock-toast svg { stroke: #fff; flex-shrink: 0; }
@keyframes lockToastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* Agency at-a-glance gate badges */
.gate-badges { flex-shrink: 0; }
@media (max-width: 600px) { .gate-badges { display: none; } }

/* ── Content pane ─────────────────────────────────────────────── */
.pane { padding: var(--pane-pad); max-width: 920px; }
.pane-head { margin-bottom: 32px; }
.pane-num { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: var(--purple); letter-spacing: 0.04em; }
.pane-title { font-family: var(--font-display); font-weight: 900; font-size: calc(clamp(28px, 2.8vw, 42px) * var(--hscale)); letter-spacing: -0.02em; line-height: 1.02; margin: 10px 0 0; }
.pane-lead { font-size: 16px; line-height: 1.55; color: var(--grey-700); margin-top: 16px; max-width: 60ch; }

.pane-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border);
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: var(--card-pad); transition: border-color var(--dur-base);
}
.card.hoverable:hover { border-color: #C9A8FF; }
.cards { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stack { display: flex; flex-direction: column; gap: var(--stack); }

.mini-num { font-family: var(--font-display); font-weight: 900; font-size: 13px; color: var(--purple); }
.card-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grey-50); color: var(--purple); margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 8px; }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--grey-700); }
.card strong { color: var(--ink); font-weight: 600; }

/* ── Badges ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 9px; border-radius: 999px;
  text-transform: uppercase; white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge.green { background: #EAF7EF; color: #1B7A43; }
.badge.amber { background: #FBF1E3; color: #9A5B16; }
.badge.purple { background: #F0E9FA; color: var(--purple); }
.badge.coral { background: #FBE9E7; color: #B0453E; }
.badge.grey { background: var(--grey-100); color: var(--grey-500); }
.dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }

/* ── Checklist ────────────────────────────────────────────────── */
.phase-label {
  display: inline-block; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple);
  background: #F0E9FA; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.check {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--border); border-radius: 18px; cursor: pointer;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.check:hover { border-color: #C9A8FF; }
.check-box {
  width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--grey-300);
  flex-shrink: 0; display: grid; place-items: center; transition: all var(--dur-base); margin-top: 1px;
}
.check.checked .check-box { background: var(--gradient); border-color: transparent; }
.check-box svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity var(--dur-base); }
.check.checked .check-box svg { opacity: 1; }
.check-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.check.checked .check-title { color: var(--grey-500); text-decoration: line-through; text-decoration-color: var(--grey-300); }
.check-note { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ── Document / agreement ─────────────────────────────────────── */
.doc { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.doc-head { padding: 26px 30px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.doc-body { padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.doc-sec h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); margin: 0 0 8px; }
.doc-sec p { font-size: 15px; line-height: 1.65; color: var(--grey-700); }
.doc-sign { padding: 26px 30px; border-top: 1px solid var(--border); background: var(--grey-50); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* ── Payment / invoice ────────────────────────────────────────── */
.invoice { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.invoice-top { padding: 30px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.invoice-amount { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px,3.6vw,52px); letter-spacing: -0.03em; line-height: 1; }
.invoice-amount .cur { font-size: 0.5em; vertical-align: super; color: var(--grey-500); margin-right: 2px; }
.invoice-meta { font-size: 14px; color: var(--grey-500); margin-top: 8px; }
.pay-panel { border-top: 1px solid var(--border); padding: 30px; background: var(--grey-50); }
.pay-mock {
  border: 1px solid var(--border); border-radius: 14px; background: var(--white);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--grey-700);
}
.pay-mock .stripe-chip { width: 38px; height: 26px; border-radius: 6px; background: linear-gradient(135deg,#5E3394,#C4605A); flex-shrink: 0; }
.pay-secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 16px; }
.pay-secure svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ── Questionnaire ────────────────────────────────────────────── */
.q-sec { margin-bottom: 14px; }
.q-sec-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.q-grid { display: grid; gap: 22px; }

/* ── Credentials ──────────────────────────────────────────────── */
.cred-card { background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.cred-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cred-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.cred-logo svg { width: 21px; height: 21px; fill: currentColor; }
.cred-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.secure-banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px;
  background: #F0E9FA; border: 1px solid rgba(94,51,148,0.15); margin-bottom: 26px;
}
.secure-banner svg { width: 22px; height: 22px; stroke: var(--purple); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.secure-banner .sb-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.secure-banner .sb-sub { font-size: 13px; color: var(--grey-700); margin-top: 2px; }

/* ── Service blocks ───────────────────────────────────────────── */
.service { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 26px 0; border-top: 1px solid var(--border); }
.service-arch {
  height: 160px; border-radius: 9999px 9999px 24px 24px; overflow: hidden; position: relative;
  background: var(--gradient);
}
.service-arch.alt { background: linear-gradient(140deg,#8E4080,#D88060); }
.service-arch.alt2 { background: linear-gradient(140deg,#5E3394,#A84880); }
.service-arch.alt3 { background: linear-gradient(140deg,#A84880,#D88060); }
.service h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.service p { font-size: 15px; line-height: 1.6; color: var(--grey-700); margin-top: 8px; max-width: 52ch; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-family: var(--font-display); font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--grey-700); }

/* ── Password input with show/hide toggle ────────────────────── */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { width: 100%; padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: none; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.pw-toggle:hover { color: var(--ink); background: var(--grey-50); }
.pw-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Service image cards (Our Services — matches the website bento) ── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.svc-card { background: var(--white); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; }
.svc-media { position: relative; aspect-ratio: 16 / 11; background-size: cover; background-position: center; display: grid; place-items: center; }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.34)); }
.svc-chip {
  position: relative; z-index: 1; text-align: center; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(15px, 2.1vw, 20px);
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15;
  padding: 14px 20px; border-radius: 16px;
  background: rgba(12, 10, 20, 0.42); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}
.svc-body { padding: 18px 20px 20px; }
.svc-body p { font-size: 14px; line-height: 1.6; color: var(--grey-700); }

/* ── Client Workspace (post-onboarding dashboard) ─────────────── */
.ws { max-width: 1000px; margin: 0 auto; padding: 6px var(--space-gutter, 20px) 60px; }
.ws-hero {
  /* mini website-hero band: live shader background (ShaderBand), ink text.
     The gradient below is the no-WebGL/reduced-motion fallback. */
  background: linear-gradient(to right, #F5F3EF 0%, #F5F3EF 55%, rgba(94,51,148,0.85) 85%, #C4605A 100%);
  color: var(--ink); border-radius: 26px; padding: 32px 34px; margin-bottom: 24px;
  border: 1px solid var(--border);
}
.ws-hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ws-hero-eyebrow { font-family: var(--font-pixel); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }
.ws-hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; margin-top: 8px; }
.ws-hero-focus { margin-top: 12px; font-size: 15px; opacity: 0.8; max-width: 60ch; font-family: var(--font-body-alt); }
.ws-hero-badge { font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; color: #fff; font-family: var(--font-pixel); letter-spacing: 0.06em; text-transform: uppercase; }
.ws-tabs { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.ws-tab { font-size: 13px; font-weight: 500; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); color: var(--grey-700); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
@media (hover: hover) { .ws-tab:hover { border-color: #C9A8FF; color: var(--purple); } }
.ws-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ws-section-title { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 14px; }

.ws-timeline { padding: 6px 8px; }
.ws-mile { display: flex; align-items: center; gap: 16px; padding: 12px 8px; position: relative; }
.ws-mile:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 40px; bottom: -10px; width: 2px; background: var(--border); }
.ws-mile-dot { width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center; border: 2px solid var(--grey-300); background: var(--white); position: relative; z-index: 1; }
.ws-mile.done .ws-mile-dot { background: var(--gradient); border-color: transparent; }
.ws-mile.done .ws-mile-dot svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ws-mile.active .ws-mile-dot { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(140,82,255,.12); }
.ws-mile-body { flex: 1; min-width: 0; }
.ws-mile-title { font-weight: 600; font-size: 15px; }
.ws-mile.upcoming .ws-mile-title { color: var(--muted); }
.ws-mile-date { font-size: 13px; color: var(--muted); margin-top: 2px; }

.ws-deliv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ws-deliv-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.ws-deliv-meta { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.ws-deliv-actions { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }

/* ── Legal ────────────────────────────────────────────────────── */
.legal-body h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.legal-body p { font-size: 15px; line-height: 1.7; color: var(--grey-700); margin-bottom: 10px; }

/* ─────────────────────────────────────────────────────────────
 * AGENCY VIEW
 * ───────────────────────────────────────────────────────────── */
.agency { padding: var(--pane-pad); max-width: 1200px; margin: 0 auto; width: 100%; }
.agency-tabs { display: flex; gap: 6px; margin: 26px 0 30px; flex-wrap: wrap; }
.atab { border: 1px solid var(--border); background: var(--white); border-radius: 999px; padding: 10px 20px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--grey-500); cursor: pointer; transition: background-color var(--dur-base), border-color var(--dur-base), color var(--dur-base); }
@media (hover: hover) { .atab:hover { border-color: var(--ink); color: var(--ink); } }
.atab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 24px; }
.stat-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: 38px; letter-spacing: -0.03em; line-height: 1; margin-top: 12px; }
.stat-num.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-sub { font-size: 13px; color: var(--grey-500); margin-top: 8px; }

.ctable { background: var(--white); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.ctable-head, .crow { display: grid; grid-template-columns: 2fr 1.1fr 0.8fr 1.1fr 1fr; gap: 16px; align-items: center; padding: 16px 24px; }
.ctable-head { background: var(--grey-50); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crow { border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--dur-base); }
.crow:last-child { border-bottom: 0; }
.crow:hover { background: var(--grey-50); }
.crow-name { display: flex; align-items: center; gap: 12px; }
.crow-name .tb-avatar {
  width: 38px; height: 38px; min-width: 38px; min-height: 38px; flex: 0 0 38px;
  display: grid; place-items: center; color: #fff; font-size: 14px; border-radius: 50%;
}
.crow-name b { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
/* scope the sub-label styling to NON-avatar spans so it can't bleed onto .tb-avatar
   (a bare `.crow-name span` was overriding the avatar's display/color/size) */
.crow-name span:not(.tb-avatar) { font-size: 13px; color: var(--muted); display: block; }
.mini-progress { height: 6px; border-radius: 999px; background: var(--grey-100); overflow: hidden; }
.mini-progress > div { height: 100%; background: var(--gradient); border-radius: 999px; }

/* ── Misc utilities ───────────────────────────────────────────── */
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.t-grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.spacer-s { height: 12px; } .spacer-m { height: 24px; } .spacer-l { height: 40px; }

/* Pill arrow svg (matches site) */
.arrow-svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-base) var(--ease-out); }
.pill:hover .arrow-svg { transform: translateX(3px); }
.pill.sm { padding: 10px 18px; font-size: 14px; }
.pill[disabled] { opacity: 0.4; cursor: not-allowed; }
.pill:disabled:hover { background-image: none; -webkit-text-fill-color: currentColor; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .login-content { grid-template-columns: 1fr; gap: 36px; align-content: center; }
  .login-glass-card { justify-self: stretch; max-width: 520px; }
  .login-logo { margin-bottom: 28px; }
  .layout { grid-template-columns: 1fr; }
  .stepnav { position: static; max-height: none; border-bottom: 1px solid var(--border); }
  .steps { flex-direction: row; overflow-x: auto; }
  .step { flex-shrink: 0; }
  .step-label { display: none; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .ctable-head { display: none; }
  .crow { grid-template-columns: 1fr; gap: 8px; }
  .service { grid-template-columns: 1fr; }
}

/* ── Phone ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar img.tb-logo { height: 26px; }
  .tb-user-meta { display: none; }
  .role-toggle { padding: 3px; }
  .role-btn { padding: 7px 12px; font-size: 12px; }
  .tb-avatar { width: 32px; height: 32px; font-size: 13px; }
  .icon-btn { width: 38px; height: 38px; }

  .login-content { padding: 36px 22px 48px; }
  .login-display { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .login-lede { font-size: 1rem; }
  .login-glass-card { padding: 26px 22px; border-radius: 22px; }

  .pane-title { font-size: calc(clamp(25px, 7vw, 32px) * var(--hscale)); }
  .pane-lead { font-size: 15px; }
  .pane-head { margin-bottom: 24px; }

  .step-dot { width: 26px; height: 26px; font-size: 12px; }
  .stepnav-progress-num { font-size: 28px; }

  .pane-foot { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .pane-foot .pill { width: 100%; justify-content: center; }

  .stat-grid { grid-template-columns: 1fr; }

  /* Smooth horizontal tab strips on phones: momentum scroll, hidden scrollbar,
     gentle snap, contained overscroll, bigger tap targets. Both tab rows. */
  .agency-tabs, .ws-tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 6px;
  }
  .agency-tabs::-webkit-scrollbar, .ws-tabs::-webkit-scrollbar { display: none; }
  .atab, .ws-tab { flex-shrink: 0; scroll-snap-align: start; }
  .atab { padding: 11px 18px; }
  .ws-tab { padding: 10px 18px; }
  .invoice-top, .doc-sign { padding: 22px; }
  .doc-head, .doc-body, .pay-panel { padding: 22px; }
}

/* ── Large monitors — keep content tidy & centered ───────────── */
@media (min-width: 1500px) {
  .layout { max-width: 1560px; margin-inline: auto; }
  .agency { max-width: 1360px; }
  .pane { max-width: 1040px; }
  :root { --pane-pad: 64px; }
}
@media (min-width: 1920px) {
  .layout { max-width: 1720px; }
}

/* ─────────────────────────────────────────────────────────────
   Website-ported visuals — animated gradient word, grid texture,
   glass chip (pivt-website design language)
   ───────────────────────────────────────────────────────────── */

/* Signature animated gradient word (two-cycle gradient = seamless loop) */
.gradient-word {
  background: linear-gradient(90deg, #5E3394 0%, #C4605A 25%, #5E3394 50%, #C4605A 75%, #5E3394 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradient-flow 6s linear infinite;
}
/* Light variant for white text on the brand-gradient panels */
.gradient-word--light {
  background: linear-gradient(90deg, #FFFFFF 0%, #F6CDBC 25%, #FFFFFF 50%, #E3CDFF 75%, #FFFFFF 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradient-flow 7s linear infinite;
}
@keyframes gradient-flow { to { background-position: 200% center; } }
@media (prefers-reduced-motion: reduce) {
  .gradient-word, .gradient-word--light { animation: none; }
}
[data-ambient="off"] .gradient-word,
[data-ambient="off"] .gradient-word--light { animation: none; }

/* Dark glass chip (DarkGlassChip language, Unbounded instead of pixel font) */
.glass-chip {
  position: relative; overflow: hidden;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 13px 20px;
  background: rgba(12, 12, 12, 0.32);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(12, 12, 12, 0.25);
  color: #fff;
}
.glass-chip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 22% 0%, rgba(255, 255, 255, 0.22), transparent 55%);
}
.glass-chip span {
  position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.6;
}
/* Shader band layer — fills a hero band; ShaderBand appends the canvas here */
.band-shader { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }

/* Workspace hero band: shader + grid texture + glass status badge, ink text */
.ws-hero { position: relative; overflow: hidden; }
.ws-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit;
  background-image:
    linear-gradient(to right, rgba(12, 12, 12, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 12, 12, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}
.ws-hero-row { position: relative; z-index: 1; }
.ws-hero-badge {
  background: rgba(20, 15, 25, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(12, 12, 12, 0.22);
}

/* Agency hero band — same language as the workspace hero */
.ag-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(to right, #F5F3EF 0%, #F5F3EF 55%, rgba(94,51,148,0.85) 85%, #C4605A 100%);
  border: 1px solid var(--border);
  border-radius: 26px; padding: 30px 34px;
}
.ag-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit;
  background-image:
    linear-gradient(to right, rgba(12, 12, 12, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 12, 12, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}
.ag-hero-inner { position: relative; z-index: 1; }

/* Pixel-font data labels (website language: Pixelify for UI/data labels) */
.pane-num { font-family: var(--font-pixel); font-weight: 500; letter-spacing: 0.08em; }
.stat-label { font-family: var(--font-pixel); font-weight: 500; letter-spacing: 0.08em; }
.stepnav-eyebrow { font-family: var(--font-pixel); font-weight: 500; letter-spacing: 0.08em; }

/* ── Toast notifications (PM_TOAST / ToastHost) — native port of the sonner toast.
   Card matches .card surface; left accent + icon use the badge tone colors. ── */
.pm-toast-host {
  position: fixed; right: 24px; bottom: 24px; z-index: 10000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  width: min(92vw, 380px); pointer-events: none;
}
.pm-toast {
  --toast-accent: var(--purple);
  pointer-events: auto; position: relative;
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--border); border-left: 3px solid var(--toast-accent);
  border-radius: 13px; padding: 12px 12px 12px 14px;
  box-shadow: 0 14px 34px rgba(12, 12, 12, 0.16);
  animation: pmToastIn 300ms var(--ease-out) both;
}
.pm-toast--success { --toast-accent: #1B7A43; }
.pm-toast--error   { --toast-accent: #B0453E; }
.pm-toast--warning { --toast-accent: #9A5B16; }
.pm-toast--default { --toast-accent: var(--purple); }
.pm-toast--leaving { animation: pmToastOut 300ms var(--ease-in) both; }

.pm-toast-icon { color: var(--toast-accent); flex-shrink: 0; margin-top: 1px; display: inline-flex; line-height: 0; }
.pm-toast-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-toast-title {
  font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.25;
  color: var(--ink);
}
.pm-toast--success .pm-toast-title,
.pm-toast--error .pm-toast-title,
.pm-toast--warning .pm-toast-title { color: var(--toast-accent); }
.pm-toast-msg { font-size: 12.5px; line-height: 1.35; color: var(--muted); word-break: break-word; }

.pm-toast-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: 4px; }
.pm-toast-action {
  border: 1px solid var(--toast-accent); color: var(--toast-accent); background: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 11.5px;
  padding: 5px 11px; border-radius: 9999px; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.pm-toast-x {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  padding: 3px; border-radius: 9999px; display: inline-flex; line-height: 0;
  transition: background var(--dur-fast), color var(--dur-fast);
}
@media (hover: hover) {
  .pm-toast-action:hover { background: color-mix(in srgb, var(--toast-accent) 12%, transparent); }
  .pm-toast-x:hover { background: var(--grey-100); color: var(--ink); }
}

@keyframes pmToastIn  { from { opacity: 0; transform: translateY(50px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes pmToastOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(50px) scale(0.95); } }
@keyframes pmToastFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
  .pm-toast-host { left: 12px; right: 12px; bottom: 12px; width: auto; align-items: stretch; }
  .pm-toast { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-toast { animation: pmToastFade 160ms ease both; }
  .pm-toast--leaving { animation: pmToastFade 160ms ease reverse both; }
}

/* Hero aside: status badge + "Request something" button, stacked top-right */
.ws-hero-aside { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }

/* Lightweight modal (client "Request something") — dialog reuses .card surface */
.pm-modal-overlay {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(12, 12, 12, 0.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: pmToastFade 160ms ease both;
}
.pm-modal { width: min(92vw, 460px); max-height: 88vh; overflow: auto; }
@media (max-width: 640px) {
  .ws-hero-aside { align-items: flex-start; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL REBRAND OVERRIDES (2026-07)
   The portal moved from the purple/coral water-shader look to the live
   website's light editorial-orange system (Archivo · JetBrains Mono · Press
   Start 2P, accent #ff5c00, barcode logo). Palette is remapped in
   colors_and_type.css; this block sits LAST to override the handful of rules
   that hard-coded the old brand hexes, restyle the login + hero bands (no more
   shader), and switch data labels to the mono/editorial voice.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Slightly tighter, more editorial radii + kill the ambient blob strength. */
:root { --r-card: 18px; --r-input: 12px; --ambient-strength: 0; }

/* Page canvas — light editorial gradient (mirrors the site's globals.css). */
body {
  background: linear-gradient(180deg, #ececeb 0%, #f4f4f3 40%, #e8e8e6 100%);
  background-attachment: fixed;
}
.ambient { display: none !important; }        /* retire the purple gradient blobs */

/* Data/eyebrow labels → JetBrains Mono, uppercase — the site's "code label" voice. */
.t-eyebrow, .stepnav-eyebrow, .pane-num, .mini-num, .ws-hero-eyebrow,
.ws-section-title, .q-sec-title, .doc-sec h4, .stat-label, .phase-label,
.lgc-chip, .login-eyebrow-chip, .ws-hero-badge {
  font-family: var(--font-mono) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Tinted purple chips/banners → light orange. */
.phase-label { background: rgba(255, 92, 0, 0.10); color: var(--accent); }
.secure-banner { background: rgba(255, 92, 0, 0.07); border-color: rgba(255, 92, 0, 0.20); }
.badge.purple { background: rgba(255, 92, 0, 0.12); color: var(--accent-hot); }
.lgc-chip, .login-eyebrow-chip { background: rgba(255, 92, 0, 0.10); color: var(--accent); }

/* Lilac hover borders → accent. */
.card.hoverable:hover, .check:hover { border-color: var(--accent); }
@media (hover: hover) { .ws-tab:hover { border-color: var(--accent); color: var(--accent); } }

/* Fake Stripe chip + service arches → orange family. */
.pay-mock .stripe-chip { background: linear-gradient(135deg, #ff5c00, #e04e00); }
.service-arch.alt  { background: linear-gradient(140deg, #ff7a2e, #e04e00); }
.service-arch.alt2 { background: linear-gradient(140deg, #ff5c00, #c94600); }
.service-arch.alt3 { background: linear-gradient(140deg, #ff8a3d, #ff5c00); }

/* Animated gradient word → orange loop. Use background-IMAGE (not the shorthand)
   so background-clip: text from the base rule keeps clipping to the glyphs. */
.gradient-word {
  background-image: linear-gradient(90deg, #ff5c00 0%, #e04e00 25%, #ff7a2e 50%, #e04e00 75%, #ff5c00 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.progress-fill { background: var(--accent); }

/* ── Login (editorial) ──────────────────────────────────────────────────── */
.login-stage { background: linear-gradient(180deg, #f4f4f3 0%, #e8e8e6 100%); }
.login-logo { height: 128px; width: auto; object-fit: contain; margin-bottom: 6px; }
.login-quote {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.55;
  letter-spacing: 0.05em; color: var(--ink); opacity: 0.5; margin: 0 0 22px;
}
.login-glass-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.login-notice {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5;
  background: rgba(255, 92, 0, 0.08); border: 1px solid rgba(255, 92, 0, 0.25);
  color: var(--accent-hot); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px;
}
@media (max-width: 640px) { .login-logo { height: 100px; } }

/* ── Hero bands (client + agency) → editorial surface, no shader ─────────── */
.ws-hero, .ag-hero {
  background: var(--surface-2) !important;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.ws-hero-title { color: var(--ink); }

/* Topbar barcode logo — cropped mark, sized to read clearly next to the nav. */
.topbar img.tb-logo { height: 50px; width: auto; }

/* Login card — flip the old white-on-glass text to dark editorial ink. */
.login-glass-card { color: var(--ink); }
.lgc-chip {
  display: inline-block; width: auto; font-family: var(--font-mono) !important;
  font-size: 12px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lgc-title { color: var(--ink); }
.lgc-lead { color: var(--muted); }
.login-error { color: var(--accent-hot); }
.login-foot-note { color: var(--muted); }
.login-foot-note a { color: var(--accent-hot); }
.login-glass-card .field-label { color: var(--ink); }
.login-glass-card .field-input {
  background: var(--white); color: var(--ink); border-color: var(--line);
}
.login-glass-card .field-input::placeholder { color: rgba(18,18,18,0.4); }
.login-glass-card .field-input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,92,0,0.12);
}
.login-glass-card .pw-toggle { color: var(--muted); }
.login-glass-card .pw-toggle:hover { color: var(--ink); background: var(--surface-2); }

/* ── Native booking widget (booking.jsx) ─────────────────────────────────── */
.bk-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.bk-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.bk-days {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  margin-bottom: 14px; scrollbar-width: thin;
}
.bk-day {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--white);
  border-radius: 10px; padding: 8px 14px; cursor: pointer; text-align: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink);
  transition: border-color .15s, background .15s, color .15s;
}
.bk-day:hover { border-color: var(--accent); }
.bk-day .bk-day-wd {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 2px;
}
.bk-day.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.bk-day.active .bk-day-wd { color: rgba(255,255,255,.85); }
.bk-slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px; margin-bottom: 16px;
}
.bk-slot {
  border: 1px solid var(--line); background: var(--white); border-radius: 10px;
  padding: 9px 6px; cursor: pointer; font-family: var(--font-mono);
  font-size: 13px; color: var(--ink);
  transition: border-color .15s, background .15s, color .15s;
}
.bk-slot:hover { border-color: var(--accent); color: var(--accent); }
.bk-slot.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.bk-confirm {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px;
}

/* ── Agency marketing analytics tab (agency.jsx) ─────────────────────────── */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mk-stage { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mk-stage-name {
  flex: 0 0 150px; font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mk-stage-bar-wrap { flex: 1; background: var(--surface-2); border-radius: 6px; height: 18px; overflow: hidden; }
.mk-stage-bar { height: 100%; background: var(--accent); border-radius: 6px; min-width: 2px; transition: width .3s; }
.mk-stage-num { flex: 0 0 auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.mk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mk-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--white); }
.mk-kpi-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.mk-kpi-value { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin-top: 4px; }
