@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f3f5fa;
  --panel: #ffffff;
  --ink: #1d2433;
  --ink-2: #5b6474;
  --ink-3: #98a1b0;
  --line: #eceff5;
  --brand: #2f6bff;
  --brand-ink: #1f4fd1;
  --brand-soft: #eaf1ff;
  --navy: #0f2a44;
  --navy-2: #163a5c;
  --sun: #ffc83d;
  --sun-2: #ffb703;
  --sun-soft: #fff7dc;
  --red: #e5484d;
  --red-soft: #fff0f0;
  --orange: #e8890c;
  --orange-soft: #fff4e2;
  --green: #1f9d68;
  --green-soft: #e5f7ee;
  --violet: #7c5cff;
  --violet-soft: #f1edff;
  --mint: #12a5a0;
  --mint-soft: #e2f7f6;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 6px 20px rgba(20, 30, 60, 0.05);
  --shadow-hover: 0 2px 4px rgba(20, 30, 60, 0.06), 0 12px 28px rgba(20, 30, 60, 0.09);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { letter-spacing: -0.2px; }

/* ---------- layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex-shrink: 0; color: #fff;
  background: radial-gradient(500px 360px at 0% 0%, #1e4f7d 0%, transparent 70%), var(--navy);
  display: flex; flex-direction: column; padding: 28px 18px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 34px; }
.logo {
  width: 42px; height: 42px; border-radius: 14px; background: var(--sun); color: #1d1600;
  font-weight: 800; display: grid; place-items: center; font-size: 15px; box-shadow: 0 4px 14px rgba(255, 184, 3, 0.35);
}
.brand-name { font-weight: 800; font-size: 15px; }
.brand-sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav a {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; color: rgba(255, 255, 255, 0.7); font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav a.active { background: var(--sun); color: #1d1600; box-shadow: 0 6px 18px rgba(255, 184, 3, 0.25); }
.nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 8px; }
.nav svg, .tabbar svg { width: 19px; height: 19px; flex-shrink: 0; }

.agent-card {
  margin-top: auto; border-radius: 18px; padding: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; gap: 12px;
}
.agent-top { display: flex; align-items: center; gap: 10px; }
.agent-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; position: relative; flex-shrink: 0;
}
.oscar-face { width: 100%; height: 100%; border-radius: 50%; display: block; }
.agent-avatar .pulse { position: absolute; right: -1px; bottom: -1px; border: 2px solid var(--navy); }
.agent-name { font-weight: 700; }
.agent-status { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.agent-line { font-size: 12px; color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.07); border-radius: 10px; padding: 8px 10px; }
.agent-line .muted { color: rgba(255, 255, 255, 0.5); }
.pulse { width: 11px; height: 11px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
.pulse.paused { background: #fbbf24; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 30px 48px 10px; min-height: 84px; }
.topbar-title { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.view { padding: 22px 48px 90px; max-width: 1440px; width: 100%; }

/* ---------- primitives ---------- */
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 28px 30px; }
.card h2 { font-size: 16.5px; margin: 0 0 6px; font-weight: 750; }
.card .sub { color: var(--ink-2); margin: 0 0 24px; font-size: 13.5px; max-width: 640px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }

.btn {
  border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 12px; padding: 10px 18px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: 0.15s;
}
.btn:hover { border-color: #d8dde7; transform: translateY(-1px); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(15, 42, 68, 0.25); }
.btn.primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: #1d1600; box-shadow: 0 4px 12px rgba(255, 184, 3, 0.3); }
.btn.sun:hover { background: var(--sun-2); border-color: var(--sun-2); }
.btn.call { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(31, 157, 104, 0.28); }
.btn.call:hover { background: #188556; }
.btn.ghost { border-color: transparent; background: var(--bg); }
.btn.small { padding: 7px 14px; font-size: 12.5px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.6; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
  background: var(--bg); color: var(--ink-2); white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.urgent { background: var(--red-soft); color: var(--red); }
.chip.hot { background: var(--orange-soft); color: var(--orange); }
.chip.booked { background: var(--green-soft); color: var(--green); }
.chip.message, .chip.info { background: var(--brand-soft); color: var(--brand-ink); }
.chip.spam { background: var(--bg); color: var(--ink-3); }
.chip.lang { background: var(--violet-soft); color: var(--violet); }
.chip.ai { background: var(--violet-soft); color: var(--violet); }
.chip.value { background: var(--sun-soft); color: #8a6100; }

.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.tile { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }

.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d4dbe6; border-radius: 99px; transition: 0.15s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:disabled + span { opacity: 0.5; cursor: default; }

select, input[type='text'], textarea {
  font: inherit; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fbfcfe; color: var(--ink); width: 100%;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { min-height: 76px; resize: vertical; }
label.lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 22px 0 8px; }

/* ---------- hello + stats ---------- */
.hello {
  display: flex; align-items: center; gap: 24px; padding: 32px 36px; margin-bottom: 32px; border-radius: 24px;
  background: linear-gradient(120deg, #fff7dc 0%, #fdf3e0 40%, #e9f0f8 100%);
}
.hello.has-ask { flex-direction: column; align-items: stretch; gap: 22px; }
.hello-row { display: flex; align-items: center; gap: 24px; }
.ask { display: flex; flex-direction: column; gap: 12px; }
.ask-thread { display: none; flex-direction: column; gap: 14px; max-height: 440px; overflow-y: auto; padding: 18px; background: rgba(255, 255, 255, 0.7); border-radius: 20px; scroll-behavior: smooth; }
.ask-thread.open { display: flex; }
.ask-msg.me { align-self: flex-end; max-width: 78%; background: var(--navy); color: #fff; padding: 10px 15px; border-radius: 18px 18px 6px 18px; font-size: 14px; }
.ask-msg.bot { display: flex; gap: 10px; align-items: flex-start; max-width: 92%; }
.ask-bubble { background: #fff; border-radius: 6px 18px 18px 18px; padding: 12px 16px; font-size: 14px; box-shadow: var(--shadow); min-width: 0; }
.ask-bubble p { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
.ask-bubble p:last-child { margin-bottom: 0; }
.ask-bubble ul { margin: 0 0 8px; padding-left: 18px; }
.ask-bubble li { margin: 3px 0; }
.ask-bubble .ai-draft { margin: 8px 0; }
.ask-box { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 8px 8px 8px 10px; box-shadow: 0 6px 24px rgba(47, 76, 160, 0.12); border: 2px solid transparent; transition: border-color 0.15s; }
.ask-box:focus-within { border-color: var(--brand); }
.ask-box textarea { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; line-height: 1.45; padding: 8px 4px; background: transparent; color: var(--ink); resize: none; max-height: 140px; overflow-y: auto; }
.ask-box textarea::placeholder { color: var(--ink-3); }
.ask-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
.ask-avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.ask-send { gap: 6px; }
.ask-send svg { width: 16px; height: 16px; }
.ask-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ask-chips.inline { margin-top: 10px; }
.ask-chip { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(29, 36, 51, 0.08); border-radius: 99px; padding: 7px 13px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.ask-chip:hover { background: #fff; color: var(--brand); }
.ask-chips.inline .ask-chip { background: var(--bg); }
.hello h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.hello p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.hello-oscar { position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; box-shadow: 0 6px 18px rgba(255, 184, 3, 0.35); }
.hello-wave { position: absolute; right: -8px; bottom: -4px; font-size: 22px; transform-origin: 70% 80%; animation: wave 2.4s ease-in-out 0.4s 2; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.hello-emoji { font-size: 34px; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); display: grid; place-items: center; flex-shrink: 0; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-bottom: 32px; }
.stat { padding: 24px 26px; display: flex; gap: 18px; align-items: center; }
.stat .tile { width: 48px; height: 48px; font-size: 22px; border-radius: 16px; }
.stat .k { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.25; margin: 2px 0; }
.stat .s { font-size: 12px; color: var(--ink-3); }

.alert-card {
  display: flex; gap: 20px; align-items: center; background: var(--panel); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 36px;
  box-shadow: var(--shadow); border-left: 6px solid var(--red);
}
.alert-card .tile { background: var(--red-soft); }
.alert-card b { display: block; font-size: 15px; }
.alert-card .muted { font-size: 13.5px; margin-top: 2px; }

/* ---------- inbox ---------- */
.inbox { display: grid; grid-template-columns: minmax(380px, 0.95fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button {
  border: 0; background: var(--panel); border-radius: 99px; padding: 9px 18px; font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  white-space: nowrap; box-shadow: var(--shadow);
}
.filters button.active { background: var(--navy); color: #fff; }
.filters button .n { opacity: 0.55; margin-left: 5px; }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink-2); margin: 4px 6px 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.group-title .n { background: var(--red); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; }
.group-title .n.calm { background: #d4dbe6; color: var(--ink-2); }
.list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.item {
  display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 18px; cursor: pointer; background: var(--panel);
  box-shadow: var(--shadow); transition: box-shadow 0.15s, transform 0.15s; border: 2px solid transparent;
}
.item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.item.selected { border-color: var(--brand); }
.item .body { flex: 1; min-width: 0; }
.item .top { display: flex; align-items: baseline; gap: 8px; }
.item .name { font-weight: 750; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .time { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; font-weight: 600; }
.item .headline { color: var(--ink-2); font-size: 14px; margin: 4px 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item.done { background: #fbfcfe; box-shadow: none; border-color: var(--line); }
.item.done:hover { box-shadow: var(--shadow); }

.detail { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }
.detail::-webkit-scrollbar { width: 0; }
.dcard { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.dcard h4 { margin: 0 0 20px; font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.dcard h4 .em { font-size: 16px; }
.person { display: flex; gap: 18px; align-items: center; }
.person h3 { margin: 0; font-size: 21px; font-weight: 800; }
.pills { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 6px; }
.pill-i { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.pill-i svg { width: 14px; height: 14px; color: var(--ink-3); }
.summary-box { background: var(--bg); border-radius: 16px; padding: 16px 18px; margin: 22px 0 24px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.fact .k { font-size: 11.5px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.fact .v { font-weight: 600; font-size: 14px; margin-top: 4px; }
.fact.wide { grid-column: 1 / -1; }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 20px; position: relative; font-size: 13.5px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 30px; bottom: 4px; width: 2px; background: var(--line); }
.steps .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.steps .ok { background: var(--green-soft); color: var(--green); }
.steps .no { background: var(--red-soft); color: var(--red); }
.steps span.t { padding-top: 2px; }

.request { border-radius: var(--radius); padding: 24px 28px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--orange-soft); }
.request .tile { background: #fff; }
.request.booked { background: var(--green-soft); }
.request b { display: block; font-size: 14.5px; }
.request .rtext { flex: 1 1 180px; min-width: 0; }
.request .rtext .small { color: var(--ink-2); }
.photos { display: flex; gap: 12px; }
.photo { width: 88px; height: 70px; border-radius: 12px; background: linear-gradient(135deg, #dfe8f5, #eef2f8); display: grid; place-items: center; color: var(--ink-3); font-size: 22px; }

.sms-wrap { background: linear-gradient(180deg, #f4f6fa, #eef1f6); border-radius: 18px; padding: 22px; }
.sms-meta { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-bottom: 10px; font-weight: 600; }
.sms { background: #fff; color: #111; border-radius: 20px 20px 20px 6px; padding: 14px 18px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; max-width: 94%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

.player { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 16px; padding: 12px 16px; }
.player .play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3); }
.player .play svg { width: 14px; height: 14px; margin-left: 2px; }
.wave { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; background: #c2cde0; border-radius: 3px; }
.toggle-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: 13px; background: none; border: 0; color: var(--brand); padding: 0; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bubble { max-width: 84%; padding: 11px 15px; border-radius: 18px; font-size: 13.5px; }
.bubble.caller { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 6px; }
.bubble.ai { align-self: flex-end; background: var(--brand-soft); color: #18306e; border-bottom-right-radius: 6px; }
.bubble .who { display: block; font-size: 11px; font-weight: 800; opacity: 0.6; margin-bottom: 1px; }
.bubble .fix { display: none; font-size: 11.5px; font-weight: 700; margin-top: 4px; }
.bubble.ai:hover .fix { display: block; }

.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); }
.empty .big { font-size: 34px; display: block; margin-bottom: 8px; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: 96px repeat(6, minmax(0, 1fr)); }
.cal .hd { padding: 22px 14px 16px; font-weight: 800; font-size: 13.5px; }
.cal .hd small { display: block; color: var(--ink-3); font-weight: 600; }
.cal .hd.today { color: var(--brand); }
.cal .hd.today small { color: var(--brand); }
.cal .win { padding: 18px 16px; color: var(--ink-3); font-size: 12px; font-weight: 700; border-top: 1px solid var(--line); }
.cal .cell { border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 12px; min-height: 140px; display: flex; flex-direction: column; gap: 10px; }
.cal .cell.today { background: #f7faff; }
.cal .cell.closed { background: repeating-linear-gradient(135deg, #fafbfd, #fafbfd 8px, #f3f5f9 8px, #f3f5f9 16px); }
.job { border-radius: 14px; padding: 12px 13px; font-size: 12px; }
.job.Jake { background: var(--brand-soft); }
.job.Marcus { background: var(--mint-soft); }
.job b { display: block; font-size: 12.5px; }
.job .row { gap: 6px; margin-top: 8px; }
.free { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.legend i.busy-swatch, .job.busy { background: repeating-linear-gradient(135deg, #f1f3f7, #f1f3f7 6px, #e8ebf1 6px, #e8ebf1 12px); }
.legend i.busy-swatch { border: 2px solid #d4dbe6; }
.job.busy { color: var(--ink-2); }
.sync-pill { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--bg); border-radius: 99px; padding: 4px 12px 4px 4px; }
.sync-pill .app-logo.xs { width: 22px; height: 22px; font-size: 10px; border-radius: 99px; }

/* ---------- nav groups ---------- */
.nav-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); padding: 18px 16px 4px; }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- inbox: search, follow-ups, checklist ---------- */
.inbox-tools { display: flex; gap: 12px; margin-bottom: 14px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 14px; padding: 0 14px; box-shadow: var(--shadow); border: 1.5px solid transparent; }
.search:focus-within { border-color: var(--brand); }
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; width: 100%; font: inherit; color: var(--ink); border: 0; outline: 0; background: transparent; box-shadow: none !important; padding: 12px 0; }
.search.big { margin-top: 18px; padding: 4px 18px; border-radius: 16px; }
.search.big input { font-size: 16px; }
.search-note { margin: -4px 0 14px; }
.due { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 8px 2px 3px; border-radius: 99px; background: var(--bg); color: var(--ink-2); }
.due.overdue { background: var(--red-soft); color: var(--red); }
.due.soon { background: var(--orange-soft); color: var(--orange); }
.due.done { background: var(--green-soft); color: var(--green); padding-left: 8px; }
.due.big { font-size: 13px; padding: 6px 12px; }
.due-text.overdue { color: var(--red); }
.due-text.soon { color: var(--orange); }
.alert-owner { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.follow-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.follow-owner { display: flex; flex-direction: column; gap: 6px; min-width: 200px; flex: 1; max-width: 280px; }
.outcomes { display: flex; gap: 8px; flex-wrap: wrap; }
.fu-log { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; }
.list-links { display: flex; gap: 18px; margin-top: 14px; }
.list-links .toggle-link { margin-top: 0; color: var(--ink-2); }
.golive { margin-bottom: 28px; border: 2px solid var(--sun); }
.golive h2 { margin: 0; }
.golive-head { gap: 18px; }
.golive-bar { width: 160px; height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.golive-bar span { display: block; height: 100%; background: var(--sun); border-radius: 99px; }
.golive-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.gstep { font: inherit; text-align: left; display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 2px solid transparent; background: var(--bg); color: var(--ink); font-size: 13.5px; }
.gstep.open { background: #fff; border-color: var(--navy); }
.gbody { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gdetail { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding: 14px 18px; border-radius: 14px; background: var(--sun-soft); font-size: 14px; }
.gdetail p { margin: 0; flex: 1; min-width: 220px; }
.gmark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; font-weight: 800; background: #fff; color: var(--ink-2); border: 2px solid var(--line); }
.gstep.done .gmark { background: var(--green); border-color: var(--green); color: #fff; }
.gstep.done b { color: var(--ink-2); }
.gstep.pending .gmark { background: var(--orange-soft); border-color: #f6d3a3; }
.gstep.locked { opacity: 0.75; }

/* ---------- setup: caller lists ---------- */
.cl-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.cl-add { display: flex; gap: 8px; margin-top: 14px; }
.cl-add input { flex: 1; min-width: 0; }

/* ---------- team ---------- */
.members { display: grid; gap: 10px; }
.member { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 2px solid transparent; cursor: pointer; flex-wrap: wrap; }
.member.selected { border-color: var(--navy); background: #fff; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.roles > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--line); font-size: 13.5px; }
.invite { margin: 0 0 18px; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.person-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.person-pick button { font: inherit; font-weight: 700; font-size: 13px; border: 0; background: var(--bg); color: var(--ink-2); padding: 8px 14px; border-radius: 99px; }
.person-pick button.active { background: var(--navy); color: #fff; }
.matrix { display: grid; gap: 6px; }
.mx-head, .mx-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 64px); gap: 6px; align-items: center; }
.mx-head span { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-align: center; }
.mx-row { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.mx-cell { height: 36px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-weight: 800; color: #fff; }
.mx-cell.on { background: var(--navy); border-color: var(--navy); }
.quiet-row { display: flex; align-items: center; gap: 10px; }
.esc { display: grid; gap: 10px; margin-bottom: 16px; }
.esc-step { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.esc-n { width: 26px; height: 26px; border-radius: 50%; background: var(--sun-soft); color: #8a6100; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }

/* ---------- coach: callbacks ---------- */
.follow-card { margin-bottom: 28px; }
.follow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 0.6fr)) minmax(0, 1.6fr); gap: 16px; align-items: center; }
.fstat { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 16px; background: var(--bg); }
.fstat b { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.fstat span { font-size: 12.5px; color: var(--ink-2); }
.obar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; }
.o-booked { background: var(--green); }
.o-lost { background: #c9d1dc; }
.o-noanswer { background: var(--orange); }
.o-voicemail { background: var(--violet); }
.olegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.olegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.olegend small { color: var(--ink-3); }
.follow-people { margin-top: 18px; }

/* ---------- monthly report ---------- */
.report-grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr); gap: 28px; align-items: start; }
.add-chip { border: 1.5px dashed var(--line); background: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.email { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.email-meta { padding: 18px 26px; background: #fbfcfe; border-bottom: 1px solid var(--line); font-size: 13px; display: grid; gap: 3px; }
.email-subject { font-weight: 800; font-size: 15.5px; margin-top: 6px; }
.email-body { padding: 30px 34px 36px; max-width: 640px; }
.email-body h3 { font-size: 15px; margin: 26px 0 6px; }
.email-body p { margin: 0; color: var(--ink-2); }
.email-body .btn { margin-top: 26px; }
.email-hero { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: 20px; background: radial-gradient(500px 220px at 90% 0%, #1e4f7d 0%, transparent 70%), var(--navy); color: #fff; }
.email-hero h2 { margin: 4px 0 0; font-size: 19px; line-height: 1.35; font-weight: 800; }
.email-hero .kick { color: var(--sun); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.email-face { width: 64px; height: 64px; flex-shrink: 0; }
.rkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.rk { display: flex; flex-direction: column; padding: 14px; border-radius: 14px; background: var(--bg); }
.rk b { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; }
.rk span { font-size: 12.5px; font-weight: 600; }
.rk small { font-size: 11.5px; color: var(--ink-3); }
.roi { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--sun-soft); font-size: 14.5px; }
.up { color: var(--green); font-size: 13px; }

/* ---------- help ---------- */
.help-hero { padding: 36px 40px; margin-bottom: 28px; border-radius: 24px; color: #fff; background: radial-gradient(800px 300px at 90% 0%, #1e4f7d 0%, transparent 70%), var(--navy); }
.help-hero h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.help-hero .search { max-width: 640px; box-shadow: none; }
.help-hero .search input { color: var(--ink); }
.help-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.help-status a { color: var(--sun); }
.help-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.help-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-cat { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 18px; border: 0; background: var(--panel); box-shadow: var(--shadow); transition: 0.15s; }
.help-cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.help-cat span { font-size: 22px; margin-bottom: 6px; }
.help-cat small { color: var(--ink-3); font-size: 12px; }
.articles { display: grid; gap: 8px; }
.article { border-radius: 14px; background: var(--bg); }
.article-head { width: 100%; font: inherit; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 0; background: none; }
.article-head > span { font-size: 18px; color: var(--ink-3); font-weight: 700; }
.article.open { background: #fff; box-shadow: 0 0 0 2px var(--line); }
.article-body { padding: 0 16px 16px; font-size: 14px; color: var(--ink-2); }
.article-body p { margin: 0 0 10px; }
.support { overflow: hidden; display: flex; flex-direction: column; }
.support-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dot-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34d399; margin-right: 6px; }
.support-thread { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; height: 260px; overflow-y: auto; background: #fbfcfe; }
.smsg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; }
.smsg.agent { align-self: flex-start; background: #fff; box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.smsg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.support-form { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.slots { display: grid; gap: 12px; }
.slot-day { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.slot-day > b { min-width: 86px; }
.slot-times { display: flex; gap: 6px; flex-wrap: wrap; }
.slot-times button { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.slot-times button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.booked-call { padding: 16px 18px; border-radius: 14px; background: var(--green-soft); }

/* ---------- more (mobile) ---------- */
.more-list { display: grid; gap: 10px; }
.more-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--ink); }
.more-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; }
.more-ic svg { width: 19px; height: 19px; }

/* ---------- billing ---------- */
.bill-hero { display: flex; align-items: center; gap: 22px; padding: 28px 32px; margin-bottom: 28px; border-radius: 24px; color: #fff; background: radial-gradient(700px 300px at 90% 0%, #1e4f7d 0%, transparent 70%), var(--navy); }
.bill-hero h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.bill-hero p { margin: 0; color: rgba(255, 255, 255, 0.75); max-width: 680px; }
.bill-hero b { color: #fff; }
.bill-hero-icon { width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 200, 61, 0.16); display: grid; place-items: center; font-size: 28px; flex-shrink: 0; }
.bill-meter-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bill-meter-top > b { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.bill-meter { position: relative; height: 12px; border-radius: 99px; background: var(--bg); margin: 12px 0 22px; }
.bill-meter span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--navy-2), var(--navy)); }
.bill-meter i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--sun-2); border-radius: 2px; }
.bill-days { display: flex; gap: 12px; align-items: flex-end; height: 110px; margin-bottom: 6px; }
.bill-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 12px; }
.bill-track { flex: 1; min-height: 0; width: 100%; max-width: 56px; display: flex; align-items: flex-end; }
.bill-track span { width: 100%; border-radius: 10px 10px 4px 4px; background: var(--sun); }
.bill-day small { color: var(--ink-3); font-weight: 600; }
.inv { display: grid; gap: 2px; }
.inv-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.inv-row.total { border-bottom: 0; font-size: 16px; padding-top: 14px; }
.inv-row.total b { font-size: 20px; }
.pay-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg); margin-top: 12px; }
.card-brand { width: 50px; height: 34px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; font-style: italic; font-size: 13px; display: grid; place-items: center; letter-spacing: 0.5px; flex-shrink: 0; }
.bill-facts { display: grid; gap: 8px; margin-top: 14px; }
.bill-facts > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.bill-toggle { display: flex; padding: 4px; gap: 4px; background: var(--bg); border-radius: 99px; flex-shrink: 0; }
.bill-toggle button { font: inherit; font-weight: 700; font-size: 13px; border: 0; background: transparent; color: var(--ink-2); padding: 8px 16px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; }
.bill-toggle button span { font-size: 11px; color: #8a6100; background: var(--sun-soft); padding: 2px 7px; border-radius: 99px; }
.bill-toggle button.active { background: var(--navy); color: #fff; }
.bplans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bplan { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 18px; border: 1.5px solid var(--line); background: #fbfcfe; }
.bplan.current { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(15, 42, 68, 0.08); }
.bplan h3 { margin: 0; font-size: 17px; }
.bplan-for { margin: 0; min-height: 40px; }
.bplan-price { margin-top: 8px; }
.bplan-price b { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; }
.bplan-price span { color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.bplan-list { margin: 12px 0 18px; padding: 0; list-style: none; display: grid; gap: 7px; align-content: start; font-size: 13.5px; flex: 1; }
.bplan-list li::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 8px; }
.bplan .btn { align-self: flex-start; }
.bplan-confirm { font-size: 13.5px; padding: 14px 16px; border-radius: 14px; background: var(--sun-soft); }
.bplan-confirm ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.bill-cancel .sub { max-width: 720px; }

/* ---------- schedule: calendars and apps ---------- */
.integ-head { margin: 44px 0 20px; }
.integ-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 6px; }
.integ-head p { margin: 0; color: var(--ink-2); max-width: 680px; }
.cal-facts { display: grid; gap: 10px; margin: 18px 0 12px; }
.cal-facts > div { display: flex; flex-direction: column; gap: 1px; background: var(--bg); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.cal-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-pick { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; background: var(--bg); border-radius: 99px; padding: 6px 13px; cursor: pointer; }
.cal-pick input { accent-color: var(--navy); margin: 0; }
.fs-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.zapier-card .app-top h2 { font-size: 18px; }
.zap-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 32px; margin-top: 26px; }
.zaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.zap { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fbfcfe; }
.zap.on { border-color: #bfe6d2; background: #f5fbf8; }
.zap-apps { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.zap-arrow { color: var(--ink-3); font-weight: 800; font-size: 12px; }
.oscar-logo { overflow: hidden; padding: 0; }
.zap-text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.45; }
.zap-on { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.zap-side .chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.key { font-size: 12.5px; background: var(--bg); padding: 3px 8px; border-radius: 6px; margin: 0 4px; }

/* ---------- setup ---------- */
.setup { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.subnav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 6px; }
.subnav a { padding: 12px 16px; border-radius: 12px; color: var(--ink-2); font-weight: 650; display: flex; gap: 10px; align-items: center; }
.subnav a:hover { background: var(--panel); }
.subnav a.active { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.reason { border-radius: 18px; margin-bottom: 14px; background: #fbfcfe; border: 1.5px solid var(--line); transition: 0.15s; }
.reason.open { background: #fff; border-color: #d8e2f7; box-shadow: var(--shadow); }
.reason-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; }
.reason-head .t { font-weight: 750; }
.reason-head .a { font-size: 12.5px; color: var(--ink-2); }
.reason-body { padding: 4px 22px 26px 80px; display: none; }
.reason.open .reason-body { display: block; }
.q { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); border-radius: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.q .num { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ink-2); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0 10px; font-size: 13.5px; margin-top: -10px; }
table.t th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 4px 14px; }
table.t td { padding: 16px 18px; background: var(--bg); vertical-align: middle; }
table.t td:first-child { border-radius: 12px 0 0 12px; }
table.t td:last-child { border-radius: 0 12px 12px 0; }
.banner { display: flex; gap: 18px; align-items: center; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(120deg, #fff7dc, #e9f0f8); margin-bottom: 28px; font-size: 13.5px; }
.banner .tile { background: #fff; }
.ring { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ring .step { background: var(--bg); border-radius: 12px; padding: 6px 12px 6px 6px; font-weight: 700; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.ring .arrow { color: var(--ink-3); }
.oncall { background: #fbfcfe; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.grid.tight { gap: 0 18px; }
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; row-gap: 12px; margin-top: 6px; }
.flow-step { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 13px; min-width: 0; flex: 1 1 130px; }
.flow-step b { display: block; font-size: 13px; }
.flow-step.key { background: var(--brand-soft); color: #18306e; }
.flow-step.alt-step { background: var(--orange-soft); color: #7a4600; }
.fs-em { font-size: 18px; line-height: 1.2; }
.fs-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.flow-step.key .fs-sub { color: #3b5694; }
.flow-step.alt-step .fs-sub { color: #8f5a12; }
.flow-arrow { flex: 0 0 22px; align-self: center; height: 2px; background: #d4dbe6; position: relative; margin: 0 4px; }
.flow-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: #d4dbe6; border-right: 0; }
.flow.vertical { flex-direction: column; flex-wrap: nowrap; row-gap: 0; }
.flow.vertical .flow-step { flex: none; }
.flow.vertical .flow-arrow { flex: 0 0 16px; width: 2px; height: 16px; margin: 0 0 0 26px; align-self: flex-start; }
.flow.vertical .flow-arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top-color: #d4dbe6; border-bottom: 0; }
.flow-alt { margin: 8px 0 0 26px; padding-left: 14px; border-left: 2px dashed #f0c48a; }
.flow:not(.vertical) .flow-alt { display: none; }
.reason-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.9fr); gap: 28px; align-items: start; }
.reason-preview { position: sticky; top: 20px; background: #fbfcfe; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; }
.reason-preview .kick { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.reason.open .reason-body { padding-left: 22px; }
.chip.say { background: #fff; border: 1px dashed #c9d3e4; font-style: italic; }
.chip.notify { cursor: pointer; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; }
.chip.notify.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.plan-meter { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 22px; border-radius: 16px; background: linear-gradient(120deg, #fff7dc, #e9f0f8); margin-bottom: 20px; font-size: 14px; }
.rflow { display: grid; gap: 10px; }
.rflow-row { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fbfcfe; border: 1.5px solid var(--line); cursor: pointer; transition: 0.15s; }
.rflow-row:hover { border-color: #c9d6f2; background: #fff; }
.rflow-name { font-weight: 750; font-size: 14px; min-width: 190px; }
.rflow-pill { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--bg); white-space: nowrap; }
.rflow-pill.key { background: var(--brand-soft); color: var(--brand-ink); }
.rflow-pill.alt { background: var(--orange-soft); color: var(--orange); }
.rflow-arrow { width: 20px; height: 2px; background: #d4dbe6; margin: 0 6px; }
.builtin { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.builtin:first-of-type { border-top: 0; }
.toggle-row.align-top { align-items: flex-start; }
.toggle-row.align-top .switch { margin-top: 2px; }
.field-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg); border-radius: 12px; margin-bottom: 8px; font-size: 13.5px; }
.field-row .num, .dest .num { width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ink-2); flex-shrink: 0; }
.field-row select { width: auto; max-width: 150px; margin: 0; padding: 7px 10px; font-size: 13px; }
.tips ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.tips b { color: var(--ink); }
.rule-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.plan-badge { background: var(--violet-soft); color: var(--violet); }
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg button { flex: 1 1 200px; text-align: left; font: inherit; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; cursor: pointer; }
.seg button b { display: block; font-size: 14px; }
.seg button span { font-size: 12.5px; color: var(--ink-2); }
.seg button.active { border-color: var(--brand); background: #f6f9ff; }
.dests { display: grid; gap: 0; }
.dest { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border-radius: 14px; flex-wrap: wrap; }
.dest-name { min-width: 70px; font-size: 14px; }
.dest input { flex: 1 1 150px; width: auto; margin: 0; padding: 8px 12px; font-size: 13.5px; }
.dest select { width: auto; margin: 0; padding: 8px 10px; font-size: 13px; }
.dest-then { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-3); padding: 6px 0 6px 22px; }
.loopcheck { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.loopcheck.ok { background: var(--green-soft); color: #135c3d; }
.loopcheck.bad { background: var(--red-soft); color: var(--red); }
.card-inset { margin-top: 16px; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--line); background: #fbfcfe; font-size: 14px; }
.versions { display: grid; gap: 10px; }
.ver { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.ver.current { background: var(--green-soft); }
.ver-n { font-weight: 800; font-size: 13px; color: var(--ink-2); background: #fff; border-radius: 10px; padding: 6px 10px; flex-shrink: 0; }
.mode-card { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; transition: 0.15s; }
.mode-card.active { border-color: var(--brand); background: #f6f9ff; }
.mode-card input { margin-top: 3px; accent-color: var(--brand); }
.toggle-row { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: var(--bg); border-radius: 14px; margin-top: 12px; font-weight: 600; }

/* ---------- test ---------- */
.scen { display: flex; gap: 18px; padding: 22px 26px; align-items: flex-start; background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.badge { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; background: var(--bg); }
.badge.pass { background: var(--green-soft); color: var(--green); }
.badge.fail { background: var(--red-soft); color: var(--red); }
.checks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fixbox { margin-top: 16px; background: var(--sun-soft); border-radius: 14px; padding: 14px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.phone-test { text-align: center; padding: 36px 28px; background: linear-gradient(160deg, #eef4ff, #f4efff); }
.phone-test .em { font-size: 34px; }
.phone-test .num { font-size: 28px; font-weight: 800; letter-spacing: 0.5px; margin: 8px 0 20px; }
.score { font-size: 38px; font-weight: 800; letter-spacing: -1px; }

/* ---------- top bar bits ---------- */
.busy-toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 9px 14px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); cursor: pointer; }
.busy-on { background: var(--sun-soft); color: #8a6100; }
.clock { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* ---------- mobile ---------- */
.tabbar, .sheet, .sheet-backdrop { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px;
  border-radius: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: 0.2s; z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- analytics & coach ---------- */
.coach-top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 28px; margin-bottom: 28px; align-items: stretch; }
.score-card { display: flex; gap: 30px; align-items: center; background: linear-gradient(135deg, #eef3ff 0%, #f6f2ff 60%, #fff8e8 100%); }
.gauge-wrap { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 12; }
.g-bg { stroke: rgba(29, 36, 51, 0.08); }
.g-fg { stroke-linecap: round; transition: stroke-dasharray 0.6s ease; }
.gauge.great .g-fg { stroke: var(--green); }
.gauge.good .g-fg { stroke: var(--brand); }
.gauge.work .g-fg { stroke: var(--orange); }
.gauge-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-num b { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.gauge-num span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.sc-copy { flex: 1; min-width: 0; }
.kick { font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.sc-grade { font-size: 28px; font-weight: 800; margin: 4px 0 6px; letter-spacing: -0.5px; }
.sc-grade.great, .cat-v.great { color: var(--green); }
.sc-grade.good, .cat-v.good { color: var(--brand); }
.sc-grade.work, .cat-v.work { color: var(--orange); }
.up { color: var(--green); }
.down { color: var(--red); }
.trend { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 16px; }
.tb { flex: 1; background: rgba(47, 107, 255, 0.18); border-radius: 6px 6px 3px 3px; position: relative; min-height: 8px; }
.tb.now { background: var(--brand); }
.tb span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.tb.now span { color: var(--brand); }
.cats { display: grid; gap: 16px; }
.cat-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 7px; font-size: 13.5px; }
.cat-sub { display: block; font-weight: 500; margin-top: 1px; }
.cat-v { font-size: 16px; }
.bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.bar > div { height: 100%; border-radius: 99px; }
.bar .great { background: var(--green); }
.bar .good { background: var(--brand); }
.bar .work { background: var(--orange); }
.coach-kpis { margin-bottom: 28px; }
.coach-mid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); gap: 28px; margin-bottom: 40px; align-items: start; }
.fixes { display: grid; gap: 14px; }
.fix { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; transition: background 0.2s; }
.fix.done { background: #f6fbf8; border-color: #cdebdc; }
.fix-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; }
.fix p { margin: 8px 0 14px; color: var(--ink-2); font-size: 13.5px; }
.fix-bottom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fix-what { flex: 1 1 220px; font-size: 13px; font-weight: 600; }
.fix-bottom .chip { text-decoration: none; color: var(--ink-2); }
.impact { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.4px; }
.impact.high { background: var(--orange-soft); color: var(--orange); }
.impact.medium { background: var(--brand-soft); color: var(--brand-ink); }
.impact.low { background: var(--bg); color: var(--ink-2); }
.applied { color: var(--green); font-weight: 700; font-size: 13px; }
.wins ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.wins li { position: relative; padding-left: 34px; font-size: 14px; }
.wins li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.section-title { font-size: 19px; font-weight: 800; margin: 0 0 18px; }
.audit-item { color: inherit; text-decoration: none; align-items: center; }
.score-badge { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.score-badge.great { background: var(--green-soft); color: var(--green); }
.score-badge.good { background: var(--brand-soft); color: var(--brand-ink); }
.score-badge.work { background: var(--orange-soft); color: var(--orange); }
.score-badge.big { width: auto; height: auto; padding: 10px 16px; font-size: 26px; line-height: 1.1; text-align: center; }
.score-badge.big small { display: block; font-size: 11px; font-weight: 700; }
.audit-col { position: sticky; top: 20px; }
.ad-head { display: flex; align-items: center; gap: 14px; }
.ad-head h3 { margin: 0; font-size: 18px; }
.coach-note { background: var(--sun-soft); border-radius: 14px; padding: 14px 16px; margin: 20px 0 6px; font-size: 14px; font-weight: 600; }
.ad-title { font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-3); margin: 24px 0 12px; }
.rubric { display: grid; gap: 8px; }
.rub { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg); font-size: 13.5px; }
.rub-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.rub-t { flex: 1; font-weight: 600; }
.rub-r { font-size: 12px; font-weight: 700; }
.rub.pass .rub-ic { background: var(--green-soft); color: var(--green); }
.rub.pass .rub-r { color: var(--green); }
.rub.partial .rub-ic { background: var(--orange-soft); color: var(--orange); }
.rub.partial .rub-r { color: var(--orange); }
.rub.fail .rub-ic { background: var(--red-soft); color: var(--red); }
.rub.fail .rub-r { color: var(--red); }
.rub.na { opacity: 0.55; }
.rub.na .rub-ic { background: #fff; color: var(--ink-3); }
.ad-transcript { display: flex; flex-direction: column; gap: 10px; }
.note { align-self: stretch; font-size: 12.5px; font-weight: 600; padding: 9px 12px; border-radius: 10px; border-left: 3px solid; }
.note.good { background: var(--green-soft); border-color: var(--green); color: #135c3d; }
.note.issue { background: var(--orange-soft); border-color: var(--orange); color: #7a4600; }

/* ---------- connect AI ---------- */
.ai-hero { align-items: flex-start; }
.url-pill { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 16px; max-width: 640px; }
.url-pill code { flex: 1 1 240px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.apps { margin-bottom: 32px; align-items: start; }
.app-card.connected { box-shadow: 0 0 0 2px var(--green-soft), var(--shadow); }
.app-top { display: flex; align-items: center; gap: 14px; }
.app-logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex-shrink: 0; }
.app-logo.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.app-logo.xs { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.ai-steps { margin: 18px 0; padding-left: 20px; display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.code { background: #111827; color: #e5e7eb; border-radius: 12px; padding: 14px 16px; font-size: 12px; line-height: 1.6; overflow-x: auto; margin: 0 0 16px; }

.ai-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 28px; align-items: start; margin-bottom: 28px; }
.ai-demo { display: grid; grid-template-columns: 230px minmax(0, 1fr); overflow: hidden; min-height: 560px; }
.ai-prompts { background: var(--bg); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.side-title { font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.ai-prompt { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; transition: border-color 0.15s, transform 0.15s; }
.ai-prompt:hover { border-color: var(--brand); transform: translateY(-1px); }
.ai-chat { display: flex; flex-direction: column; min-width: 0; }
.ai-chat-head { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.ai-chat-head .chip { margin-left: auto; }
.ai-chat-body { flex: 1; height: 500px; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.ai-msg { max-width: 88%; font-size: 14px; line-height: 1.6; }
.ai-msg.user { align-self: flex-end; background: var(--brand); color: #fff; padding: 11px 16px; border-radius: 18px; border-bottom-right-radius: 6px; font-weight: 500; }
.ai-msg.bot { align-self: flex-start; background: var(--bg); padding: 14px 18px; border-radius: 18px; border-bottom-left-radius: 6px; }
.ai-msg.bot p { margin: 0 0 8px; }
.ai-msg.bot p:last-child { margin-bottom: 0; }
.ai-msg.bot ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; }
.ai-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ai-tool { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); padding: 4px 10px; border-radius: 8px; }
.ai-tool.done { color: var(--green); }
.ai-typing { display: flex; gap: 5px; padding: 6px 0; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.ai-draft { background: var(--panel); border: 1px dashed #c9d3e3; border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.ai-acted { margin-top: 12px; color: var(--green); font-weight: 700; font-size: 13px; }
.ai-empty { margin: auto; text-align: center; max-width: 300px; display: grid; gap: 8px; justify-items: center; }
.perms { display: grid; gap: 10px; }
.perms .toggle-row { cursor: pointer; }
.activity { display: grid; gap: 16px; }
.act { display: flex; gap: 12px; align-items: flex-start; }
.tech summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.tech summary::-webkit-details-marker { display: none; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 20px; }
.tool { display: flex; flex-direction: column; gap: 2px; }
.tool code { font-size: 13px; font-weight: 700; color: var(--brand-ink); }

@media (max-width: 1280px) {
  .ai-grid { grid-template-columns: minmax(0, 1fr); }
  .coach-top, .coach-mid { grid-template-columns: minmax(0, 1fr); }
  .reason-grid { grid-template-columns: minmax(0, 1fr); }
  .reason-preview { position: static; }
  .zap-grid { grid-template-columns: minmax(0, 1fr); }
  .golive-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid, .report-grid, .help-grid { grid-template-columns: minmax(0, 1fr); }
  .follow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foutcomes { grid-column: 1 / -1; }

  .topbar { padding: 26px 32px 8px; }
  .view { padding: 18px 32px 80px; }
  .stats { gap: 16px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px; }
  .stat .tile { width: 40px; height: 40px; font-size: 18px; border-radius: 13px; }
  .stat .v { font-size: 22px; }
  .inbox { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .dcard { padding: 24px; }
  .setup { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .subnav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .subnav a { background: var(--panel); box-shadow: var(--shadow); padding: 9px 16px; border-radius: 99px; font-size: 13.5px; }
  .subnav a.active { background: var(--navy); color: #fff; }
  .cal-wrap { overflow-x: auto; }
  .cal { grid-template-columns: 80px repeat(6, minmax(140px, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .topbar { padding: 16px 16px 0; }
  .topbar-title { font-size: 21px; }
  .view { padding: 14px 16px 110px; }
  .dcard { padding: 22px 20px; }
  .item { padding: 16px 18px; gap: 14px; }
  .alert-card { padding: 20px; margin-bottom: 28px; }
  .hello { margin-bottom: 24px; }
  .stats { margin-bottom: 24px; }
  .topbar { min-height: 0; }
  .request { padding: 20px; }
  .hello { padding: 22px 20px; gap: 16px; }
  .hello h1 { font-size: 18px; }
  .hello-emoji { font-size: 26px; width: 48px; height: 48px; }
  .hello-oscar { width: 50px; height: 50px; }
  .hello-wave { font-size: 18px; }
  .hello-row { gap: 16px; }
  .ask-box { align-items: flex-end; padding: 8px; }
  .ask-box textarea { font-size: 15px; }
  .ask-box .ask-avatar { display: none; }
  .ask-send span { display: none; }
  .ask-send { padding: 10px 12px; }
  .ask > .ask-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
  .ask-chip { white-space: nowrap; }
  .ask-thread { padding: 12px; max-height: 60vh; }
  .ask-msg.bot { max-width: 100%; }
  .ask-msg.bot > .ask-avatar { display: none; }
  .stats { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 16px 18px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .stat .tile { width: 34px; height: 34px; font-size: 16px; border-radius: 11px; }
  .stat .v { font-size: 19px; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox > .detail { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .g2, .g3, .setup { grid-template-columns: minmax(0, 1fr); }
  .table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
  .table-scroll table.t { min-width: 640px; }
  .score-card { flex-direction: column; text-align: center; }
  .rflow-name { min-width: 100%; }
  .zaps { grid-template-columns: minmax(0, 1fr); }
  .bplans { grid-template-columns: minmax(0, 1fr); }
  .bplan-for { min-height: 0; }
  .inbox-tools #export span, .inbox-tools #export { flex-shrink: 0; }
  .golive-steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .golive-bar { width: 100%; order: 3; }
  .golive-head { flex-wrap: wrap; }
  .roles, .help-cats, .rkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .mx-head, .mx-row { grid-template-columns: minmax(0, 1fr) repeat(4, 44px); gap: 4px; }
  .mx-head span { font-size: 10px; }
  .follow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fstat { padding: 12px; }
  .fstat b { font-size: 18px; }
  .help-hero { padding: 24px 20px; }
  .help-hero h1 { font-size: 22px; }
  .email-body { padding: 20px 18px 26px; }
  .email-meta { padding: 14px 18px; }
  .email-hero { flex-direction: column; align-items: flex-start; padding: 18px; }
  .cl-add { flex-wrap: wrap; }
  .member select { order: 5; }
  .quiet-row { flex-wrap: wrap; }
  .bill-hero { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 14px; }
  .bill-hero h2 { font-size: 18px; }
  .zap { flex-wrap: wrap; }
  .sync-pill { margin-left: 0; }
  .integ-head { margin-top: 32px; }
  .reason.open .reason-body { padding: 4px 16px 22px; }
  .flow:not(.vertical) { flex-direction: column; flex-wrap: nowrap; row-gap: 0; }
  .flow:not(.vertical) .flow-step { flex: none; }
  .flow:not(.vertical) .flow-arrow { flex: 0 0 14px; width: 2px; height: 14px; margin: 0 0 0 26px; align-self: flex-start; }
  .flow:not(.vertical) .flow-arrow::after { display: none; }
  .dest-then { padding-left: 12px; }
  .audit-col { position: static; }
  .cat-sub { display: none; }
  .ai-demo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ai-prompts { flex-direction: row; overflow-x: auto; padding: 16px; }
  .ai-prompts .side-title { display: none; }
  .ai-prompt { flex: 0 0 auto; max-width: 220px; }
  .ai-chat-body { height: 420px; padding: 18px; }
  .tools { grid-template-columns: 1fr; }
  .subnav { position: static; flex-direction: row; overflow-x: auto; }
  .cal-wrap { overflow-x: auto; }
  .cal { grid-template-columns: 70px repeat(6, minmax(130px, 1fr)); }
  .facts { grid-template-columns: 1fr; }
  .reason-body { padding-left: 22px; }
  .card-pad { padding: 22px 20px; }
  .busy-toggle .lbl-text, .clock { display: none; }
  .alert-card { flex-wrap: wrap; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); box-shadow: 0 -4px 20px rgba(15, 42, 68, 0.2);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 20;
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: rgba(255, 255, 255, 0.6); font-weight: 700; position: relative; }
  .tabbar a.active { color: var(--sun); }
  .tabbar .count { position: absolute; top: -3px; left: 54%; background: var(--red); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 6px; }
  .sheet-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(20, 30, 60, 0.35); z-index: 30; }
  .sheet.open {
    display: flex; flex-direction: column; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; top: 36px; background: var(--bg); z-index: 31;
    border-radius: 24px 24px 0 0; overflow-y: auto; padding: 0 12px calc(16px + env(safe-area-inset-bottom));
  }
  .sheet .grab { width: 44px; height: 5px; border-radius: 99px; background: #cfd6e1; margin: 10px auto 0; flex-shrink: 0; }
}
