:root {
  --bg: #f0f3ee;
  --paper: #fbfcf9;
  --ink: #121713;
  --soft: #667068;
  --line: #dce2db;
  --green: #2c774b;
  --green-soft: #dff2e4;
  --mint: #9fe2b1;
  --amber: #a76618;
  --shadow: 0 18px 48px rgba(24,35,27,.10);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--bg); }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 16px; top: -90px; z-index: 100; min-height: 44px; padding: 12px 16px; display: flex; align-items: center; border-radius: 12px; color: white; background: var(--ink); }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.topbar { width: calc(100% - 32px); max-width: 1480px; min-height: 74px; margin: 16px auto 0; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 22px; color: #f5f8f5; background: var(--ink); box-shadow: var(--shadow); }
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand strong { font-size: 20px; letter-spacing: -.06em; }
.brand span { color: #aeb8b0; font-size: 14px; }
.sync { color: #c2cbc4; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; line-height: 1.45; }
.sync strong { color: white; font-weight: 500; }
.sync-light, .read-only-dot { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #69d590; box-shadow: 0 0 0 4px rgba(105,213,144,.12); }

.tabs { position: sticky; top: 10px; z-index: 30; width: max-content; max-width: calc(100% - 24px); margin: 14px auto 0; padding: 6px; display: flex; gap: 4px; overflow-x: auto; border: 1px solid rgba(217,224,217,.95); border-radius: 999px; background: rgba(251,252,249,.96); box-shadow: 0 12px 32px rgba(22,31,24,.10); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; color: var(--soft); background: transparent; font-size: 14px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.tabs button[aria-current="page"] { color: white; background: var(--ink); }
.tabs button[data-view="crm"][aria-current="page"] { background: var(--green); }

main { width: min(1480px,100%); margin: 0 auto; padding: 70px clamp(16px,4vw,56px) 100px; }
.state { max-width: 650px; margin: 12vh auto; text-align: center; }
.state h1 { margin: 20px 0 8px; font-size: clamp(34px,6vw,62px); letter-spacing: -.06em; }
.state p { color: var(--soft); }
#retry { min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; color: white; background: var(--ink); cursor: pointer; }
.loader { width: 38px; height: 38px; margin: auto; border: 3px solid #d6dcd6; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page-head { margin-bottom: 58px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 48px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.page-head h1 { max-width: 920px; margin: 0; font-size: clamp(58px,8vw,118px); line-height: .84; letter-spacing: -.085em; }
.lede { max-width: 720px; margin: 24px 0 0; color: var(--soft); font-size: clamp(17px,2vw,22px); line-height: 1.5; }
.verified { min-width: 210px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.verified span { display: block; margin-bottom: 7px; color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.verified strong { font-size: 13px; }

.section { margin-top: 78px; }
.section-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(32px,4vw,54px); line-height: .95; letter-spacing: -.055em; }
.section-heading > span { color: var(--soft); font-size: 13px; }

.focus-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(260px,.55fr); gap: 18px; align-items: stretch; }
.focus-main { min-width: 0; }
.next-call-card, .queue-card, .pipeline-card { width: 100%; border: 0; text-align: left; cursor: pointer; }
.next-call-card { min-height: 430px; padding: clamp(28px,4vw,54px); display: flex; flex-direction: column; align-items: flex-start; border-radius: 30px; color: #f6faf6; background: var(--ink); box-shadow: 0 26px 70px rgba(18,27,20,.19); }
.card-topline { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #b9c3bb; font-size: 12px; }
.badge { min-height: 27px; padding: 5px 10px; display: inline-flex; align-items: center; border-radius: 999px; color: #334138; background: #e9eee9; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.badge.overdue { color: #6e3a08; background: #ffe8c7; }
.badge.today, .badge.scheduled, .badge.upcoming { color: #195b34; background: var(--green-soft); }
.badge.closed_crm { color: #4f5a52; background: #e8ede8; }
.call-company { max-width: 900px; margin-top: auto; font-size: clamp(48px,7vw,92px); line-height: .88; letter-spacing: -.075em; }
.call-contact { margin-top: 18px; color: #bdc7bf; font-size: clamp(18px,2vw,24px); }
.call-context { max-width: 760px; margin-top: 24px; color: #d8dfd9; font-size: 16px; line-height: 1.55; white-space: pre-line; }
.card-cta { margin-top: 34px; min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; color: var(--ink); background: var(--mint); font-weight: 800; }

.focus-brief { margin-top: 66px; padding: 26px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.focus-brief div { min-height: 92px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 18px; background: #edf2ed; }
.focus-brief span { color: var(--soft); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.focus-brief strong { font-size: 36px; letter-spacing: -.06em; }
.focus-brief p { margin: 6px 4px 0; color: var(--soft); font-size: 12px; line-height: 1.45; }
.empty-focus { min-height: 300px; padding: 40px; display: grid; place-content: center; border: 1px dashed #aeb8af; border-radius: 28px; text-align: center; background: var(--paper); }
.empty-focus strong { font-size: 32px; }
.empty-focus p { color: var(--soft); }

.queue-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.queue-card { min-height: 210px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 12px 30px rgba(25,35,27,.07); }
.queue-card .call-company { margin-top: 28px; color: var(--ink); font-size: 28px; line-height: .95; }
.queue-card .call-contact { margin-top: 9px; color: var(--soft); font-size: 15px; }
.queue-card .card-cta { margin-top: auto; min-height: auto; padding: 20px 0 0; color: var(--green); background: transparent; font-size: 13px; }
.empty { padding: 28px; border: 1px dashed #b8c1b9; border-radius: 20px; color: var(--soft); background: rgba(251,252,249,.7); }

.crm-toolbar { margin-bottom: 20px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.crm-toolbar label { flex: 1; }
.crm-toolbar input { width: min(480px,100%); min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; outline: none; }
.crm-toolbar input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(44,119,75,.12); }
.crm-toolbar > div { color: var(--soft); font-size: 12px; }
.read-only-dot { width: 7px; height: 7px; background: #e6a34e; box-shadow: 0 0 0 4px rgba(230,163,78,.12); }
.crm-stage-picker { display: none; }
.pipeline-grid { width: 100%; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: start; gap: 8px; }
.pipeline-column { width: 100%; min-width: 0; min-height: 330px; padding: 9px; border: 1px solid var(--line); border-radius: 18px; background: #e7ece7; }
.pipeline-column header { min-height: 52px; padding: 3px 3px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pipeline-column header h2 { min-width: 0; margin: 0; font-size: 14px; line-height: 1.05; overflow-wrap: anywhere; }
.pipeline-column header span { width: 25px; min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-size: 10px; font-weight: 800; }
.pipeline-cards { display: grid; gap: 8px; }
.pipeline-card { min-height: 144px; min-width: 0; padding: 13px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #d7ddd7; border-radius: 14px; background: var(--paper); box-shadow: 0 8px 20px rgba(25,35,27,.06); overflow-wrap: anywhere; }
.pipeline-card:hover, .queue-card:hover { border-color: #a8b6ab; transform: translateY(-2px); }
.pipeline-card-meta { color: var(--green); font-size: 9px; line-height: 1.25; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pipeline-card strong { margin-top: 13px; font-size: 16px; line-height: 1.05; }
.pipeline-card > span:not(.pipeline-card-meta):not(.pipeline-card-foot) { margin-top: 6px; color: var(--soft); font-size: 11px; }
.pipeline-card-foot { width: 100%; margin-top: auto; padding-top: 13px; display: flex; justify-content: space-between; gap: 4px; color: var(--soft); font-size: 9px; line-height: 1.25; }
.pipeline-card-foot b { color: var(--green); }
.column-empty { color: #4f5951; font-size: 12px; }
.crm-search-empty { margin-top: 14px; }

.analytics-toolbar { margin-bottom: 14px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.analytics-toolbar > div:last-child { display: grid; justify-items: end; gap: 5px; text-align: right; }
.analytics-toolbar > div:last-child strong { font-size: 13px; }
.analytics-toolbar > div:last-child span { color: var(--soft); font-size: 11px; }
.analytics-history-lock { display: grid; gap: 4px; }
.analytics-history-lock span { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.analytics-history-lock strong { font-size: 14px; }
.sample-warning { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--amber); color: #5d4019; background: #fff1db; font-size: 13px; font-weight: 700; }
.analytics-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.analytics-kpi { min-height: 190px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.analytics-kpi > span { color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.analytics-kpi > strong { margin-top: auto; font-size: clamp(54px,6vw,82px); line-height: .8; letter-spacing: -.08em; }
.analytics-kpi p { margin: 20px 0 4px; color: var(--soft); font-size: 12px; }
.analytics-kpi small { color: var(--ink); font-size: 12px; font-weight: 800; }
.analytics-kpi.featured { color: white; background: var(--ink); }
.analytics-kpi.featured > span { color: var(--mint); }
.analytics-kpi.featured p { color: #bdc7bf; }
.analytics-kpi.featured small { color: white; }
.analytics-support { margin-top: 10px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.analytics-support article { min-width: 0; min-height: 82px; padding: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.analytics-support span { color: var(--soft); font-size: 10px; line-height: 1.25; }
.analytics-support strong { color: var(--green); font-size: 25px; }
.journey-section { padding: clamp(22px,3vw,38px); border: 1px solid var(--line); border-radius: 30px; background: var(--paper); }
.analytics-tree-only { margin-top: 0; }
#view[data-view="analytics"] .page-head { margin-bottom: 30px; }
.journey-heading { align-items: end; }
.journey-heading h2 { max-width: 860px; }
.journey-heading > span { padding: 10px 13px; border-radius: 999px; color: white; background: var(--ink); font-size: 11px; font-weight: 850; white-space: nowrap; }
.journey-board { padding: 16px; border: 1px solid #c8d0c9; border-radius: 24px; background-color: #e9eeea; background-image: radial-gradient(circle, rgba(37,70,49,.18) 1px, transparent 1.2px); background-size: 20px 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.journey-board-toolbar { margin-bottom: 8px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(184,195,187,.85); border-radius: 14px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); }
.journey-board-copy { max-width: 700px; display: grid; gap: 5px; }
.journey-board-copy > p { margin: 0; color: var(--soft); font-size: 11px; line-height: 1.45; }
.journey-board-copy > small { color: var(--green); font-size: 9px; font-weight: 800; }
.journey-board-copy > .journey-sample-note { color: #80571d; }
.journey-board-actions { display: grid; justify-items: end; gap: 9px; }
.tree-period-switch { padding: 4px; display: inline-flex; gap: 4px; border-radius: 999px; background: #dfe6e0; }
.tree-period-switch button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; color: #465047; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.tree-period-switch button[aria-pressed="true"] { color: white; background: var(--ink); }
.journey-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.journey-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font-size: 9px; font-weight: 800; white-space: nowrap; }
.journey-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--green); }
.journey-legend i.outcome { background: var(--amber); }
.journey-legend i.unobserved { border: 1px dashed #7c8780; background: transparent; }
.probability-tree { min-width: 0; padding: 22px 4px 8px; }
.probability-tree ul { position: relative; margin: 0; padding: 30px 0 0; display: flex; justify-content: center; list-style: none; }
.probability-tree li { position: relative; min-width: 0; padding: 30px clamp(3px,.45vw,7px) 0; text-align: center; list-style: none; }
.probability-tree .tree-root { padding-top: 0; }
.probability-tree .tree-root > li { padding-top: 0; }
.probability-tree li::before, .probability-tree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 30px; border-top: 2px solid #7d8d81; }
.probability-tree li::after { right: auto; left: 50%; border-left: 2px solid #7d8d81; }
.probability-tree li:only-child::before, .probability-tree li:only-child::after { display: none; }
.probability-tree li:only-child { padding-top: 0; }
.probability-tree li:first-child::before, .probability-tree li:last-child::after { border: 0; }
.probability-tree li:last-child::before { border-right: 2px solid #7d8d81; border-radius: 0 12px 0 0; }
.probability-tree li:first-child::after { border-radius: 12px 0 0 0; }
.probability-tree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 30px; border-left: 2px solid #7d8d81; }
.journey-node { width: clamp(96px,10.2vw,154px); min-height: 184px; margin: 0 auto; padding: 12px; display: flex; flex-direction: column; border: 2px solid #8cb698; border-radius: 13px; color: var(--ink); background: #fff; box-shadow: 0 8px 18px rgba(25,42,30,.1); text-align: left; }
.journey-node-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.journey-node-top span { color: var(--green); font-size: 7px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.journey-node-top i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.journey-node h3 { margin: 12px 0 10px; font-size: clamp(11px,1.05vw,15px); line-height: 1.06; letter-spacing: -.025em; overflow-wrap: anywhere; }
.journey-node-score { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.journey-node-score strong { font-size: clamp(13px,1.2vw,17px); white-space: nowrap; }
.journey-node-score b { padding: 5px 6px; border-radius: 7px; color: white; background: var(--green); font-size: 8px; white-space: nowrap; }
.journey-node > p { margin: 5px 0 10px; color: var(--soft); font-size: 7px; line-height: 1.25; }
.journey-node footer { padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 5px; border-top: 1px solid var(--line); }
.journey-node footer span { color: var(--soft); font-size: 7px; }
.journey-node footer strong { font-size: 9px; }
.journey-node.root { border-color: var(--ink); color: white; background: var(--ink); }
.journey-node.root .journey-node-top span, .journey-node.root > p, .journey-node.root footer span { color: #c9d2cb; }
.journey-node.root .journey-node-top i { background: var(--mint); box-shadow: 0 0 0 3px rgba(187,255,204,.16); }
.journey-node.root .journey-node-score b { color: var(--ink); background: var(--mint); }
.journey-node.root footer { border-color: #3c463e; }
.journey-node.outcome { border-color: #e7a72f; background: #fff2c9; box-shadow: 0 8px 18px rgba(91,61,13,.12); }
.journey-node.outcome .journey-node-top span { color: #8a5a08; }
.journey-node.outcome .journey-node-top i, .journey-node.outcome .journey-node-score b { background: #875500; }
.journey-node.unobserved, .journey-node.not-observed { border-style: dashed; border-color: #909a93; color: #657068; background: rgba(247,249,247,.8); box-shadow: none; }
.journey-node.unobserved .journey-node-top span, .journey-node.not-observed .journey-node-top span { color: #737e76; }
.journey-node.unobserved .journey-node-top i, .journey-node.not-observed .journey-node-top i { background: #929b94; box-shadow: none; }
.journey-node.unobserved .journey-node-score b, .journey-node.not-observed .journey-node-score b { background: #59635c; }
.journey-node.terminal.not-observed { border-style: solid; border-color: #647188; color: var(--ink); background: #edf1f8; box-shadow: 0 8px 18px rgba(38,49,68,.1); }
.journey-node.terminal .journey-node-top span { color: #455269; }
.journey-node.terminal .journey-node-top i, .journey-node.terminal .journey-node-score b { background: #455269; }
.journey-node.terminal .journey-node-score strong { font-size: clamp(10px,1vw,13px); }
.journey-node.terminal footer strong { color: #455269; }
.analytics-split { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 14px; }
.analytics-panel { min-width: 0; padding: clamp(22px,3vw,34px); border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.analytics-panel .section-heading { margin-bottom: 18px; }
.analytics-panel .section-heading h2 { font-size: clamp(30px,3vw,44px); }
.analytics-funnel, .analytics-outcomes { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.analytics-funnel li, .analytics-outcomes li { min-width: 0; padding: 14px 15px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; border-radius: 15px; background: #edf2ed; }
.analytics-funnel li > div, .analytics-outcomes li > div { min-width: 0; display: grid; gap: 4px; }
.analytics-funnel li strong, .analytics-outcomes li strong { font-size: 14px; }
.analytics-funnel li span, .analytics-outcomes li span { color: var(--soft); font-size: 10px; line-height: 1.35; }
.analytics-funnel li p { margin: 0; display: grid; justify-items: end; gap: 3px; }
.analytics-funnel li b, .analytics-outcomes li > b { font-size: 14px; white-space: nowrap; }
.analytics-funnel li small { color: var(--green); font-size: 10px; font-weight: 800; }
.analytics-timeline { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 10px; }
.analytics-timeline article { min-height: 180px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.analytics-timeline time { color: var(--green); font-size: 11px; font-weight: 850; }
.analytics-timeline > article > strong { margin-top: 10px; font-size: 30px; letter-spacing: -.05em; }
.analytics-timeline dl { margin: auto 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.analytics-timeline dl div { padding: 9px; border-radius: 10px; background: #edf2ed; }
.analytics-timeline dd { font-size: 18px; font-weight: 850; }
.analytics-proof { padding: clamp(26px,4vw,44px); display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); align-items: center; gap: 30px; border-radius: 28px; color: white; background: var(--ink); }
.analytics-proof h2 { margin: 0; font-size: clamp(36px,4vw,58px); letter-spacing: -.06em; }
.analytics-proof > div:first-child > p:not(.eyebrow) { max-width: 620px; color: #bdc7bf; line-height: 1.5; }
.analytics-proof .eyebrow { color: var(--mint); }
.analytics-proof-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.analytics-proof-grid > div { min-height: 64px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 14px; background: #252b26; }
.analytics-proof-grid span { color: #d9e0da; font-size: 12px; }
.analytics-proof-grid strong { color: var(--mint); font-size: 28px; }
.analytics-call-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.analytics-call { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.analytics-call-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.analytics-call-head time { color: var(--soft); font-size: 11px; }
.analytics-call h3 { margin: 24px 0 4px; font-size: 28px; line-height: 1; letter-spacing: -.05em; overflow-wrap: anywhere; }
.analytics-contact { margin: 0; color: var(--soft); font-size: 13px; }
.analytics-result { margin-top: 22px; display: block; color: var(--green); font-size: 16px; }
.analytics-call > p:not(.analytics-contact) { color: var(--soft); font-size: 13px; line-height: 1.5; }
.analytics-flags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.analytics-flags span { padding: 7px 9px; border-radius: 999px; color: #274c35; background: var(--green-soft); font-size: 9px; font-weight: 800; }

.sop-opening { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.5fr); gap: 16px; }
.sop-opening > div { padding: clamp(28px,4vw,54px); border-radius: 28px; color: white; background: var(--ink); box-shadow: var(--shadow); }
.sop-opening h2 { margin: 0 0 30px; font-size: clamp(36px,5vw,62px); letter-spacing: -.06em; }
.sop-opening blockquote { margin: 0; font-size: clamp(24px,3.3vw,46px); line-height: 1.08; font-weight: 800; letter-spacing: -.045em; }
.copy-button { min-height: 48px; margin-top: 34px; padding: 0 20px; border: 0; border-radius: 999px; color: var(--ink); background: var(--mint); font-weight: 800; cursor: pointer; }
.sop-opening > div:first-child > .eyebrow, .meeting-card.featured > .eyebrow, .icebreaker-card > .eyebrow { color: var(--mint); }
.sop-opening > .sop-rail { padding: 26px; display: grid; align-content: start; gap: 10px; border: 1px solid var(--line); border-radius: 28px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.sop-rail span { margin-top: 10px; color: #173e27; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.sop-rail strong { padding: 16px; border-radius: 14px; background: #edf2ed; font-size: 14px; line-height: 1.4; }
.sop-list { display: grid; gap: 10px; }
.sop-step { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); overflow: clip; }
.sop-step summary { min-height: 76px; padding: 14px 20px; display: grid; grid-template-columns: 42px minmax(0,1fr) 30px; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.sop-step summary::-webkit-details-marker { display: none; }
.sop-step summary > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font: 11px ui-monospace, monospace; }
.sop-step summary div { display: grid; gap: 4px; }
.sop-step summary small { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.sop-step summary strong { font-size: 16px; }
.sop-step summary > b { font-size: 24px; transition: transform .2s ease; }
.sop-step[open] summary > b { transform: rotate(45deg); }
.sop-step-body { padding: 0 20px 24px 76px; display: grid; gap: 12px; }
.sop-step-body > p { max-width: 880px; margin: 0 0 10px; color: var(--soft); line-height: 1.6; }
.sop-step-body blockquote { margin: 0; padding: 18px; border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; background: #edf4ee; font-weight: 700; line-height: 1.5; }
.sop-step-body > div { padding: 14px 16px; display: grid; gap: 5px; border-radius: 14px; background: #f0f3ef; }
.sop-step-body > div span, .detail-block > span { color: var(--green); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.sop-step-body > div strong { font-size: 13px; line-height: 1.45; }
.sop-objections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.sop-objection { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.sop-objection > div { display: flex; align-items: center; justify-content: space-between; }
.sop-objection h3 { margin: 24px 0 12px; font-size: 24px; letter-spacing: -.04em; }
.sop-objection p { min-height: 68px; color: var(--soft); line-height: 1.5; }
.sop-objection > span { color: var(--green); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.sop-objection blockquote { margin: 10px 0 0; font-size: 14px; line-height: 1.55; }

.mini-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.mini-kpis article { min-height: 140px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.mini-kpis span { color: var(--soft); font-size: 12px; }
.mini-kpis strong { font-size: 52px; letter-spacing: -.07em; }
.meeting-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.meeting-card { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.meeting-card.featured { min-height: 350px; padding: clamp(30px,4vw,54px); color: white; background: var(--ink); box-shadow: var(--shadow); }
.meeting-card > div { display: flex; flex-wrap: wrap; gap: 7px; }
.meeting-card time { display: block; margin-top: 22px; font-size: 17px; font-weight: 750; }
.meeting-card h3 { margin: 8px 0 4px; font-size: clamp(28px,4vw,54px); letter-spacing: -.06em; }
.meeting-card > p:not(.eyebrow) { color: var(--soft); }
.meeting-card.featured > p:not(.eyebrow) { color: #bdc6bf; }
.meeting-card dl { margin: 26px 0 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.meeting-card dl div { padding: 12px; border-radius: 12px; background: #edf2ed; }
.meeting-card.featured dl div { background: #252b26; }
dt { color: var(--soft); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.meeting-card.featured dt { color: #aeb8b0; }
dd { margin: 5px 0 0; font-size: 12px; }

.meeting-prep { margin-top: 78px; }
.meeting-prep-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; }
.location-card, .icebreaker-card, .offer-choice { padding: clamp(24px,4vw,38px); border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.location-card h3 { margin: 0; font-size: clamp(28px,4vw,46px); line-height: .95; letter-spacing: -.055em; }
.location-card > p:not(.eyebrow) { margin: 14px 0 22px; color: var(--soft); line-height: 1.5; }
.icebreaker-card { color: white; background: var(--ink); }
.icebreaker-card blockquote { margin: 0; font-size: clamp(24px,3.3vw,40px); line-height: 1.13; font-weight: 800; letter-spacing: -.045em; }
.icebreaker-card small { margin-top: 28px; display: block; color: #aeb8b0; line-height: 1.5; }
.prep-missing { color: var(--amber); font-size: 13px; font-weight: 750; }
.offer-choice { margin-top: 14px; }
.section-heading.compact { align-items: center; }
.section-heading.compact h3 { margin: 0; font-size: clamp(28px,4vw,46px); letter-spacing: -.055em; }
.offer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.offer-option { padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: #edf2ed; }
.offer-option > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offer-option > div > span { font-size: 24px; font-weight: 850; letter-spacing: -.04em; }
.offer-option p { color: var(--soft); line-height: 1.5; }
.offer-option blockquote { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid #d2d9d2; font-weight: 750; line-height: 1.45; }

#deal-dialog { width: min(980px,calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: var(--paper); box-shadow: 0 40px 120px rgba(8,13,9,.35); overflow: auto; }
#deal-dialog::backdrop { background: rgba(11,16,12,.72); }
#deal-dialog-content { padding: clamp(22px,4vw,42px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.dialog-head h2 { max-width: 740px; margin: 0; font-size: clamp(40px,6vw,72px); line-height: .9; letter-spacing: -.07em; }
.dialog-head p:not(.eyebrow) { margin: 14px 0 0; color: var(--soft); font-size: 18px; }
.dialog-close { width: 48px; min-width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 28px; line-height: 1; cursor: pointer; }
.dialog-status { margin-top: 24px; display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 12px; }
.deal-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.primary-action, .secondary-action { min-height: 50px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; text-decoration: none; font-weight: 800; }
.primary-action { color: white; background: var(--green); }
.primary-action.disabled { color: var(--soft); background: #e5eae5; }
.secondary-action { border: 1px solid var(--line); background: white; }
.dialog-grid, .dialog-branches { margin-top: 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.detail-block { padding: 18px; border-radius: 17px; background: #edf2ed; }
.detail-block p { margin: 8px 0 0; line-height: 1.55; white-space: pre-line; }
.script-block { margin-top: 12px; padding: clamp(24px,4vw,38px); color: white; background: var(--ink); }
.script-block > span { color: var(--mint); }
.script-block p { font-size: clamp(22px,3vw,36px); line-height: 1.15; font-weight: 800; }
#deal-dialog footer { margin-top: 26px; padding-top: 18px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: var(--soft); font-size: 10px; }

button, a, input, select, summary, [tabindex="0"] { transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid rgba(44,119,75,.55); outline-offset: 3px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  main { padding-top: 48px; }
  .page-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
  .page-head h1 { font-size: clamp(54px,15vw,86px); }
  .verified { min-width: 0; }
  .focus-grid, .sop-opening { grid-template-columns: 1fr; }
  .focus-brief { margin-top: 0; grid-template-columns: repeat(3,1fr); }
  .focus-brief p { grid-column: 1 / -1; }
  .sop-objections { grid-template-columns: 1fr; }
  .analytics-split, .analytics-proof { grid-template-columns: 1fr; }
  .analytics-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics-support { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .crm-stage-picker { margin-bottom: 14px; padding: 16px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
  .crm-stage-picker label { color: var(--soft); font-size: 12px; font-weight: 750; }
  .crm-stage-picker select { width: 100%; min-height: 50px; padding: 0 44px 0 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; font: inherit; font-weight: 750; }
  .pipeline-grid { display: block; }
  .pipeline-column { display: none; min-height: 0; }
  .pipeline-column.is-selected-stage { display: block; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .pipeline-grid { gap: 6px; }
  .pipeline-column { min-height: 310px; padding: 6px; border-radius: 15px; }
  .pipeline-column header { min-height: 48px; padding: 2px 2px 8px; }
  .pipeline-column header h2 { font-size: 12px; }
  .pipeline-column header span { width: 22px; min-width: 22px; height: 22px; font-size: 9px; }
  .pipeline-card { min-height: 136px; padding: 10px; border-radius: 12px; }
  .pipeline-card-meta { font-size: 8px; letter-spacing: 0; }
  .pipeline-card strong { margin-top: 10px; font-size: 14px; }
  .pipeline-card > span:not(.pipeline-card-meta):not(.pipeline-card-foot) { font-size: 10px; }
  .pipeline-card-foot { padding-top: 10px; font-size: 8px; }
}

@media (min-width: 901px) {
  #view[data-view="crm"] .page-head { margin-bottom: 28px; }
  #view[data-view="crm"] .page-head h1 { font-size: clamp(56px,6.5vw,92px); }
  #view[data-view="crm"] .lede { margin-top: 16px; }
  #view[data-view="crm"] .crm-toolbar { margin-bottom: 14px; }
}

@media (max-width: 820px) {
  .journey-board { padding: 12px; }
  .journey-board-toolbar { align-items: flex-start; flex-direction: column; }
  .journey-board-copy, .journey-board-actions { width: 100%; }
  .journey-board-actions { justify-items: start; }
  .tree-period-switch { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tree-period-switch button { padding: 0 6px; }
  .journey-legend { justify-content: flex-start; }
  .probability-tree { padding: 14px 0 2px; }
  .probability-tree ul, .probability-tree .tree-root { margin: 0; padding: 0; display: block; }
  .probability-tree ul ul { margin-left: 4px; padding: 8px 0 0 8px; border-left: 2px solid #7d8d81; }
  .probability-tree ul ul::before { display: none; }
  .probability-tree li, .probability-tree li:only-child { padding: 8px 0 0 8px; text-align: left; }
  .probability-tree .tree-root > li { padding: 0; }
  .probability-tree li::after { display: none; }
  .probability-tree ul ul > li::before, .probability-tree ul ul > li:only-child::before { display: block; top: 24px; right: auto; left: 0; width: 8px; height: 0; border: 0; border-top: 2px solid #7d8d81; border-radius: 0; }
  .probability-tree .tree-root > li::before { display: none; }
  .journey-node { width: 100%; min-height: 0; padding: 14px; }
  .journey-node h3 { font-size: 16px; }
  .journey-node-score strong { font-size: 18px; }
  .journey-node-top span, .journey-node > p, .journey-node footer span { font-size: 9px; }
  .journey-node footer strong { font-size: 11px; }
}

@media (max-width: 620px) {
  .topbar { width: calc(100% - 16px); min-height: 66px; margin-top: 8px; padding: 0 16px; border-radius: 18px; }
  .brand span { display: none; }
  .brand strong { font-size: 18px; }
  .sync { font-size: 9px; }
  .tabs { top: 6px; max-width: calc(100% - 16px); margin-top: 8px; }
  .tabs button { min-width: 44px; min-height: 46px; padding: 0 10px; font-size: 11px; }
  main { padding: 44px 13px 80px; }
  .page-head { margin-bottom: 38px; }
  .page-head h1 { font-size: clamp(52px,18vw,76px); }
  .lede { margin-top: 18px; font-size: 17px; }
  .verified { padding: 16px 18px; }
  .section { margin-top: 58px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .section-heading h2 { font-size: 36px; }
  .focus-main .section-heading { padding: 0 2px; }
  .focus-brief { grid-template-columns: 1fr 1fr; padding: 14px; }
  .focus-brief div { min-height: 86px; }
  .focus-brief div:nth-child(3) { grid-column: 1 / -1; }
  .next-call-card { min-height: 420px; padding: 26px; border-radius: 24px; }
  .card-topline { align-items: flex-start; flex-direction: column; }
  .call-company { font-size: 52px; }
  .call-context { font-size: 14px; }
  .card-cta { width: 100%; justify-content: space-between; }
  .queue-list { grid-template-columns: 1fr; }
  .queue-card { min-height: 190px; }
  .crm-toolbar { align-items: stretch; flex-direction: column; }
  .crm-toolbar input { width: 100%; }
  .pipeline-column { width: 100%; }
  .analytics-toolbar { align-items: stretch; flex-direction: column; }
  .analytics-toolbar > div:last-child { justify-items: start; text-align: left; }

  .analytics-kpi { min-height: 160px; padding: 16px; border-radius: 18px; }
  .analytics-kpi > strong { font-size: 56px; }
  .analytics-kpi p { margin-top: 16px; }
  .analytics-support { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journey-section { padding: 20px 12px; border-radius: 22px; }
  .journey-board { padding: 9px; border-radius: 18px; }
  .journey-board-toolbar { padding: 11px; }
  .analytics-panel { padding: 18px 14px; border-radius: 21px; }
  .analytics-panel .section-heading h2 { font-size: 33px; }
  .analytics-funnel li, .analytics-outcomes li { padding: 12px; gap: 8px; }
  .analytics-funnel li strong, .analytics-outcomes li strong { font-size: 13px; }
  .analytics-timeline { grid-template-columns: 1fr; }
  .analytics-proof { padding: 26px 20px; border-radius: 23px; }
  .analytics-proof-grid { min-width: 0; grid-template-columns: 1fr; }
  .analytics-call-list { grid-template-columns: 1fr; }
  .analytics-call { padding: 20px; }
  .analytics-call-head { align-items: flex-start; flex-direction: column; }
  .sop-opening > div { border-radius: 23px; }
  .sop-opening blockquote { font-size: 28px; }
  .sop-step summary { grid-template-columns: 38px minmax(0,1fr) 24px; padding: 12px 14px; }
  .sop-step-body { padding: 0 14px 18px; }
  .sop-step-body > p { padding-left: 48px; }
  .mini-kpis { grid-template-columns: 1fr 1fr; }
  .mini-kpis article:last-child { grid-column: 1 / -1; }
  .meeting-grid { grid-template-columns: 1fr; }
  .meeting-prep-grid, .offer-grid { grid-template-columns: 1fr; }
  .meeting-card dl { grid-template-columns: 1fr; }
  #deal-dialog { width: 100%; max-width: none; max-height: calc(100dvh - 12px); margin: auto 0 0; border-radius: 24px 24px 0 0; }
  #deal-dialog-content { padding: 22px 16px 30px; }
  .dialog-head h2 { font-size: 46px; }
  .dialog-status { align-items: flex-start; flex-direction: column; }
  .deal-actions { display: grid; grid-template-columns: 1fr; }
  .dialog-grid, .dialog-branches { grid-template-columns: 1fr; }
  .script-block p { font-size: 25px; }
  #deal-dialog footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
