/* Billing Outreach, v2 "calm workspace".
   The aubergine rail and top bar stay. The content area is a quiet canvas: Inter, white cards with a
   hairline border and 12px radius, one green primary, few weights, generous spacing. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* canvas */
  --page: #F5F6F8; --surface: #FFFFFF; --border: #E4E6EB; --border-strong: #CBD0D8; --hairline: #EEF0F3;
  --ink: #111827; --ink-2: #4B5563; --ink-3: #6B7280;
  /* workspace chrome (unchanged) */
  --ws: #3B1140; --ws-deep: #30103A; --ws-hover: #4B2450; --ws-active: #1A66B0;
  --ws-ink: #D4C9D6; --ws-ink-strong: #FFFFFF; --ws-line: rgba(255,255,255,0.14);
  /* roles */
  --link: #1358A3; --primary: #0F7B5F; --primary-hover: #0C6A52; --primary-soft: #E6F4EE;
  --danger: #D61F5C; --warn: #E9B52A; --presence: #2EA574; --select: #EEF4FB; --hover: #F7F8FA; --focus: #1264A3;
  /* semantic tints */
  --green-bg: #E3F2EA; --green: #0B6B4D; --amber-bg: #FFF4D6; --amber: #8A5A00; --red-bg: #FCE4EA; --red: #B8143F;
  --blue-bg: #E1EFF9; --blue: #0B5A96; --gray-bg: #EEF0F3; --gray: #4B5563; --plum-bg: #EFE6F0; --plum: #5B2A5E;
  --r: 8px; --r-card: 12px;
  --shadow-card: 0 1px 2px rgba(16,24,40,0.05); --shadow: 0 12px 32px rgba(16,24,40,0.14);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.5; color: var(--ink);
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.icon { width: 16px; height: 16px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); font-size: 13px; }
.sr { position: absolute; left: -9999px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- workspace chrome ---------- */
.topbar { height: 44px; background: var(--ws-deep); display: grid; grid-template-columns: 260px minmax(0,1fr) 260px; align-items: center; color: #fff; }
.topbar .crumbs { padding-left: 16px; font-size: 13px; color: var(--ws-ink); display: flex; gap: 6px; align-items: center; }
.topbar .search { justify-self: center; width: min(640px, 70%); height: 28px; border-radius: 6px; background: rgba(255,255,255,0.2); display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #fff; font-size: 13px; }
.topbar .search:hover { background: rgba(255,255,255,0.28); }
.topbar .search input { background: transparent; border: 0; outline: 0; color: #fff; width: 100%; min-width: 0; }
.topbar .search input::placeholder { color: rgba(255,255,255,0.85); }
.topbar .right { justify-self: end; display: flex; gap: 12px; align-items: center; padding-right: 16px; }
.icon-btn { width: 28px; height: 28px; border-radius: 6px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,0.18); }
.avatar { width: 28px; height: 28px; border-radius: 6px; background: #E8D7C3; color: #3B1140; font-weight: 700; font-size: 11px; display: grid; place-items: center; position: relative; }
.avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--presence); border: 2px solid var(--ws-deep); }

.shell { display: grid; grid-template-columns: 260px minmax(0,1fr); min-height: calc(100vh - 44px); }
.sidebar { background: var(--ws); color: var(--ws-ink); display: flex; flex-direction: column; }
.ws-head { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 10px; border-bottom: 1px solid var(--ws-line); color: #fff; font-weight: 700; font-size: 17px; }
.ws-menu { position: relative; min-width: 0; }
.ws-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; color: #fff; max-width: 200px; }
.ws-menu summary::-webkit-details-marker { display: none; }
.ws-menu summary:hover, .ws-menu[open] summary { background: var(--ws-hover); }
.ws-menu summary .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-menu .menu-body { left: 0; right: auto; top: 42px; min-width: 248px; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--hairline); margin-bottom: 4px; }
.menu-head strong { display: block; font-size: 15px; color: var(--ink); }
.menu-head span { font-size: 13px; color: var(--ink-3); }
.menu-sep { height: 1px; background: var(--hairline); margin: 4px 0; }
.compose { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ws); border: 0; display: grid; place-items: center; text-decoration: none; flex: none; }
.sec { padding: 12px 8px 2px; }
.sec-h { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; color: var(--ws-ink); font-size: 14px; }
.sec-h:hover { background: var(--ws-hover); color: #fff; }
.sec-h .chev { width: 12px; height: 12px; }
.item { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 26px; border-radius: 6px; color: var(--ws-ink); font-size: 15px; }
.item:hover { background: var(--ws-hover); color: #fff; text-decoration: none; }
.item.active { background: var(--ws-active); color: #fff; }
.item .icon { width: 15px; height: 15px; opacity: 0.9; }
.item .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.sub { padding-left: 34px; font-size: 14px; }
.badge { margin-left: auto; min-width: 20px; height: 18px; border-radius: 9px; padding: 0 6px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.18); color: #fff; }
.badge.red { background: var(--danger); }
.sidebar .foot { margin-top: auto; padding: 12px 16px 16px; font-size: 12px; color: var(--ws-ink); border-top: 1px solid var(--ws-line); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: 36px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); min-width: 180px; padding: 6px; z-index: 30; display: flex; flex-direction: column; color: var(--ink); font-size: 14px; font-weight: 400; }
.menu-body a, .menu-body button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--ink); background: none; border: 0; font: inherit; }
.menu-body a:hover, .menu-body button:hover { background: var(--hover); text-decoration: none; }
.menu-body .icon { color: var(--ink-3); }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .sidebar { display: none; } .topbar { grid-template-columns: 1fr minmax(0, 2fr) auto; } }

/* ---------- content canvas ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.content { padding: 28px 32px 56px; max-width: 1120px; width: 100%; margin: 0 auto; }
.content.wide { max-width: 1480px; }
.page-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-h h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.page-h .sub { color: var(--ink-2); font-size: 14px; flex-basis: 100%; margin-top: 2px; }
.page-h .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.page-h .meta { color: var(--ink-3); font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.card-pad { padding: 20px 24px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h2 { font-size: 16px; font-weight: 600; }
.card-h .right { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.btn { height: 38px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--border-strong); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.btn-danger { color: var(--red); border-color: #F3B8C8; }
.btn-danger:hover { background: var(--red-bg); }
.help { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); background: #fff; color: var(--ink-3); font-size: 12px; font-weight: 600; padding: 0; display: inline-grid; place-items: center; }
.help:hover { color: var(--link); border-color: var(--link); text-decoration: none; }
.pill { height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-red { background: var(--red-bg); color: var(--red); }
.pill-blue { background: var(--blue-bg); color: var(--blue); }
.pill-gray { background: var(--gray-bg); color: var(--gray); }
.pill-plum { background: var(--plum-bg); color: var(--plum); }
.tag-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--plum-bg); color: var(--plum); }
.kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip:hover { background: var(--hover); text-decoration: none; color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.cold { color: var(--red); border-color: #F3B8C8; background: #FFF5F8; }
.soft { background: var(--page); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; }
.progress { height: 6px; background: var(--hairline); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--primary); }
.warn { border: 1px solid #F3DD9A; background: #FFF8E1; color: #5A4300; border-radius: var(--r); padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.tip { background: #FFF8E1; border: 1px solid #F3DD9A; border-radius: var(--r-card); padding: 12px 14px; display: flex; gap: 10px; color: #5A4300; font-size: 14px; }
.presence { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--presence); vertical-align: 0; margin-right: 6px; }
.presence.off { background: var(--border-strong); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 12px; align-items: center; z-index: 20; }
.toast button { background: transparent; border: 0; color: #9BD6F2; font-weight: 600; }
.toast[hidden] { display: none; }
.toast.error { background: var(--danger); }
.toast.info { background: var(--ws-active); }
.empty { padding: 40px 24px; text-align: center; color: var(--ink-2); }
.empty h2 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 48px; border-top: 1px solid var(--hairline); }
.row:first-of-type { border-top: 0; }
.row .copy { flex: 1; min-width: 0; }
.row .copy strong { display: block; font-weight: 600; }
.row .copy .subtle { display: block; }

/* message-like timeline rows */
.msg { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.msg:first-child { border-top: 0; }
.msg .who { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 11px; color: #fff; }
.msg .head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg .head strong { font-weight: 600; font-size: 14px; }
.msg .head time { color: var(--ink-3); font-size: 12px; }
.msg p { font-size: 14px; color: var(--ink-2); }
.who.call { background: #1361A3; } .who.mail { background: #0F7B5F; } .who.sys { background: #9CA3AF; } .who.vm { background: #E9B52A; color: #3B1140; } .who.win { background: #2EA574; }

/* tabs inside a card */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 12px; }
.tab { height: 42px; padding: 0 10px; border: 0; background: transparent; color: var(--ink-3); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.panel { display: none; padding: 18px 20px; }
.panel.active { display: block; }

/* forms */
input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="password"], input[type="file"], select, textarea {
  width: 100%; min-height: 38px; border: 1px solid var(--border-strong); border-radius: var(--r); padding: 6px 12px; background: #fff; font: inherit; color: inherit;
}
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' 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 10px center; background-size: 14px; padding-right: 30px; }
textarea { min-height: 80px; resize: vertical; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 13px; }
.field .help-text { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 13px; color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.inline-form { display: inline; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 16px; font-size: 14px; }
.checks label { display: flex; align-items: center; gap: 8px; }
.checks ul { list-style: none; margin: 0; padding: 0; display: contents; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 0; }
.login-body { background: var(--page); min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 420px; padding: 28px; }

/* ---------- Today ---------- */
.hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; padding: 28px 32px; }
.hero h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.hero .line { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.hero .cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 200px; }
.hero.due { border-color: #F3B8C8; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.kpi { padding: 18px 22px; }
.kpi .label { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.kpi .value { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: 6px; }
.kpi .value small { font-size: 15px; color: var(--ink-3); font-weight: 500; }
.kpi .bar { height: 5px; background: var(--hairline); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.kpi .bar span { display: block; height: 100%; background: var(--primary); }
.kpi .sub { display: block; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.follow { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0,1fr) auto; gap: 14px; align-items: center; min-height: 54px; border-top: 1px solid var(--hairline); }
.follow .pill { white-space: nowrap; }
.follow:first-of-type { border-top: 0; }
.follow strong { font-weight: 600; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.link-row .mark { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.link-row .copy { flex: 1; min-width: 0; font-size: 14px; }
.link-row .copy strong { font-weight: 600; }
.setup { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; }
.setup .steps { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.setup .steps a { color: var(--ink); font-weight: 500; }
.setup .steps .done { color: var(--ink-3); text-decoration: line-through; }

.today-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(320px,1fr); gap: 16px; align-items: start; }

/* ---------- Call queue ---------- */
.queue-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(360px,1fr); gap: 20px; align-items: start; }
.qbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.qbar select { width: auto; min-height: 36px; font-weight: 600; }
.qbar .prog { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.qbar .prog .progress { width: 140px; }
.lead-name { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.lead-sub { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.phone-box { display: flex; align-items: center; gap: 20px; margin-top: 20px; padding: 18px 22px; background: var(--page); border: 1px solid var(--border); border-radius: var(--r-card); }
.phone { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.phone-meta { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.call-btn { margin-left: auto; height: 48px; padding: 0 26px; font-size: 16px; border-radius: 10px; }
.ask { margin-top: 16px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ask .eyebrow { font-size: 11px; }
.outcomes-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.outcomes-h h2 { font-size: 16px; font-weight: 600; white-space: nowrap; }
.outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.o-form { display: contents; }
.outcome { width: 100%; min-height: 66px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; text-align: left; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.outcome:hover { background: var(--hover); border-color: var(--ink-3); }
.outcome.good { border-color: #9BD3BD; background: #F3FAF6; }
.outcome.good:hover { background: var(--green-bg); }
.outcome .t { font-weight: 600; display: block; font-size: 15px; }
.outcome .s { font-size: 13px; color: var(--ink-3); display: block; line-height: 1.3; }
.outcome.sm { min-height: 50px; padding: 8px 12px; }
.outcome.sm .t { font-size: 14px; }
.more { margin-top: 12px; }
.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--r); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: var(--hover); color: var(--ink); }
.more summary .icon { width: 14px; height: 14px; transition: transform 0.15s; }
.more[open] summary .icon { transform: rotate(180deg); }
.more .outcome-grid { margin-top: 10px; }
.callnote { margin-top: 16px; }
.callnote .notes { min-height: 46px; field-sizing: content; max-height: 220px; }
.qactions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.sched { display: none; gap: 8px; align-items: center; flex-wrap: wrap; width: 100%; margin-top: 8px; }
.sched.open { display: flex; }
.sched input { width: auto; min-height: 34px; font-size: 13px; }
.need-panel { border: 1px solid #9BD3BD; background: #F3FAF6; border-radius: var(--r-card); padding: 16px 18px; margin: 0 0 12px; }
.need-panel[hidden] { display: none; }
.notes { width: 100%; resize: vertical; border: 1px solid var(--border-strong); border-radius: var(--r); padding: 10px 12px; min-height: 92px; }
.script p { margin-bottom: 12px; font-size: 15px; line-height: 1.6; }
.script .quote { background: var(--page); border-left: 3px solid var(--border-strong); padding: 10px 12px; border-radius: 0 var(--r) var(--r) 0; }
.fact { display: grid; grid-template-columns: minmax(100px, 45%) 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.detail .fact { grid-template-columns: 100px 1fr; }
.fact:first-child { border-top: 0; }
.fact span:first-child { color: var(--ink-3); }
.reason { display: flex; gap: 8px; font-size: 14px; padding: 3px 0; }
.reason .icon { color: var(--primary); margin-top: 3px; width: 14px; height: 14px; }
.lbl-up { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.finish { max-width: 520px; margin: 48px auto; padding: 36px; text-align: center; }
.finish .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.finish h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }

/* ---------- Leads ---------- */
.tabsrow { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.vtab { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; color: var(--ink-2); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vtab:hover { background: #E9EBEF; text-decoration: none; color: var(--ink); }
.vtab.on { background: var(--ink); color: #fff; font-weight: 600; }
.vtab .c { opacity: 0.7; font-weight: 400; }
.vtab.add { border: 1px dashed var(--border-strong); color: var(--ink-3); background: transparent; }
.vtab.add:hover { color: var(--ink); border-style: solid; }
.filterbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filterbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filterbar input, .filterbar select { width: auto; min-height: 36px; font-size: 14px; }
.filterbar input[type="search"] { width: 240px; }
.filterbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.leads-grid { display: grid; grid-template-columns: minmax(0,1fr) 380px; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; overflow: hidden; min-height: 640px; box-shadow: var(--shadow-card); }
.table-wrap { overflow: auto; border-right: 1px solid var(--border); }
table { border-collapse: collapse; width: 100%; font-size: 14px; white-space: nowrap; }
th { height: 40px; text-align: left; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--border); background: #FAFBFC; position: sticky; top: 0; }
td { height: 54px; padding: 6px 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
tbody tr:hover { background: var(--hover); }
tbody tr.sel { background: var(--select); }
td.r, th.r { text-align: right; }
.namebtn { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; text-align: left; cursor: pointer; white-space: normal; line-height: 1.3; }
.namebtn:hover { color: var(--link); }
.psub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; white-space: normal; max-width: 320px; line-height: 1.3; }
.flag { color: var(--amber); width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; }
.detail { display: flex; flex-direction: column; min-width: 0; }
.detail-top { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.detail-top h2 { font-size: 18px; font-weight: 600; margin: 10px 0 2px; line-height: 1.3; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.detail .panel { padding: 10px 20px 20px; }

/* custom tab builder */
dialog.tabdlg { border: 0; border-radius: 14px; padding: 0; width: min(640px, 92vw); box-shadow: var(--shadow); color: var(--ink); }
dialog.tabdlg::backdrop { background: rgba(17,24,39,0.45); }
.dlg-h { padding: 22px 24px 0; display: flex; align-items: center; gap: 10px; }
.dlg-h h2 { font-size: 18px; font-weight: 600; }
.dlg-h p { color: var(--ink-3); font-size: 14px; }
.dlg-b { padding: 16px 24px 8px; max-height: 70vh; overflow: auto; }
.dlg-f { display: flex; gap: 8px; align-items: center; padding: 14px 24px 20px; border-top: 1px solid var(--hairline); }
.dlg-f .spacer { flex: 1; }

/* ---------- Pipeline ---------- */
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters select, .filters input { width: auto; min-height: 36px; font-size: 14px; }
.board-wrap { overflow-x: auto; padding-bottom: 8px; }
.board { display: flex; gap: 14px; align-items: flex-start; min-width: max-content; }
.col { width: 240px; background: #ECEEF2; border-radius: var(--r-card); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.col-h { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 4px; font-weight: 600; font-size: 14px; }
.col-h .count { color: var(--ink-3); font-weight: 500; }
.dotc { width: 8px; height: 8px; border-radius: 50%; }
.kcard { display: block; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--ink); box-shadow: var(--shadow-card); }
.kcard:hover { border-color: var(--ink-3); text-decoration: none; }
.kcard .n { font-weight: 600; display: block; line-height: 1.3; font-size: 14px; }
.kcard .m { font-size: 12.5px; color: var(--ink-3); display: block; margin: 3px 0 8px; }
.kcard .f { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.more-link { font-size: 13px; font-weight: 600; padding: 2px 4px; }
.col.closed { width: 180px; }
.drawer { position: fixed; top: 44px; right: 0; bottom: 0; width: 420px; background: #fff; border-left: 1px solid var(--border); box-shadow: var(--shadow); z-index: 10; display: flex; flex-direction: column; }
.drawer[hidden] { display: none; }
.drawer-h { display: flex; align-items: center; gap: 8px; padding: 18px 20px 0; }
.drawer-h h2 { font-size: 18px; font-weight: 600; }
.drawer .tabs { padding: 0 12px; margin-top: 8px; }
.drawer-body { padding: 16px 20px; overflow: auto; font-size: 14px; }
.stage { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.stage:first-child { border-top: 0; }
.stage strong { font-weight: 600; }
.tipwrap { position: relative; }
.tooltip { position: absolute; top: 40px; left: 0; width: 300px; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 8px; box-shadow: var(--shadow); z-index: 8; font-size: 13px; line-height: 1.45; }
.tooltip[hidden] { display: none; }
.tooltip::before { content: ""; position: absolute; top: -6px; left: 24px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ink); }
.tooltip .sub { display: block; margin-top: 6px; color: #C9C9C9; font-size: 12px; }

/* ---------- misc pages ---------- */
.check-row { display: grid; grid-template-columns: 1fr 160px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.check-row:first-child { border-top: 0; }
.check-row select, .check-row input { min-height: 32px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.kbd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 14px; }
.report-table td.r, .report-table th.r { text-align: right; }
.dme-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.map-table td { vertical-align: middle; }
.map-table select { min-height: 32px; }
.muted-link { color: var(--ink-2); }
.step { width: 24px; height: 24px; border-radius: 50%; background: var(--plum-bg); color: var(--plum); font-weight: 600; display: grid; place-items: center; flex: none; font-size: 13px; }
.how { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hairline); }
.check:first-of-type { border-top: 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.check label { font-weight: 600; }
.check .subtle { display: block; }
.check.done label { color: var(--ink-3); text-decoration: line-through; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat .label { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- v2.1: Today buckets + timeline ---------- */
.buckets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.bucket { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; color: var(--ink); }
.bucket:hover { text-decoration: none; border-color: var(--ink-3); }
.bucket .n { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.bucket.due { border-color: #F3B8C8; }
.strip { display: flex; padding: 0; overflow: hidden; }
.strip a { flex: 1; padding: 14px 20px; border-left: 1px solid var(--hairline); color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.strip a:first-child { border-left: 0; }
.strip a:hover { background: var(--hover); text-decoration: none; }
.strip .n { font-size: 22px; font-weight: 600; }
.strip .eyebrow { display: flex; align-items: center; gap: 6px; }
.tl { display: grid; grid-template-columns: 128px 10px 32px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--hairline); }
.tl:first-of-type { border-top: 0; }
.tl .t { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.tl .dot { width: 8px; height: 8px; border-radius: 50%; justify-self: center; }
.tl .ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.tl .copy a { color: var(--ink); }
.tl.later .copy strong { font-weight: 500; }
.foot2 { margin-top: 12px; background: var(--page); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--ink-2); }
.pill-blue, .pill-red, .pill-gray { }

/* ---------- v2.1: two-step call ---------- */
.steps-h { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.stepbtn { height: 34px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-3); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.stepbtn .n { width: 22px; height: 22px; border-radius: 50%; background: var(--gray-bg); color: var(--ink-3); font-size: 12px; display: grid; place-items: center; }
.stepbtn.on { color: var(--ink); background: var(--page); border-color: var(--border); }
.stepbtn.on .n { background: var(--ink); color: #fff; }
.step-panel[hidden] { display: none; }
.outcome.answered { border-style: dashed; }
.caption { margin-top: 12px; font-size: 13px; color: var(--ink-2); background: var(--page); border-radius: 8px; padding: 8px 12px; }
.script-more { margin-top: 14px; }
.script-more summary { cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.phone { white-space: nowrap; }
@media (max-width: 1200px) { .phone { font-size: 24px; } }

/* ---------- v2.1: Where builder + dot statuses ---------- */
.where { padding: 14px 16px; margin-bottom: 14px; }
.where[hidden] { display: none; }
.rule { display: grid; grid-template-columns: 64px 180px 150px minmax(0,1fr) 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rule .lbl { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.rule select, .rule input { min-height: 36px; font-size: 14px; }
.rule .op { height: 36px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 12px; display: flex; align-items: center; color: var(--ink-2); font-size: 14px; background: var(--page); }
.rule .x { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); font-size: 18px; }
.rule .x:hover { background: var(--hover); color: var(--ink); }
.wa { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.wa .spacer { flex: 1; }
.linkbtn { border: 0; background: none; color: var(--link); font-weight: 600; font-size: 13px; padding: 0; }
.savenew { display: inline-flex; gap: 6px; align-items: center; }
.btn-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.st { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 14px; }
.st i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--border-strong); }
.st-new { background: #1A66B0 !important; } .st-attempted { background: #5B2A5E !important; } .st-connected { background: #0F7B5F !important; }
.st-meeting { background: #E9B52A !important; } .st-proposal { background: #D61F5C !important; } .st-won { background: #2EA574 !important; }
