:root{--bg:#f5f7fb;--card:#fff;--line:#e4e9f2;--ink:#10233f;--muted:#6b7c93;--blue:#1677ff;--cyan:#16b8e6;--green:#22a559;--amber:#e89b17;--red:#d94452;--nav:#0c1f3b;--shadow:0 8px 28px rgba(24,46,81,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}.app{display:grid;grid-template-columns:235px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,#091b34,#102a4d);color:white;padding:22px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:10px;align-items:center;padding:4px 6px 22px}.brand img{width:38px;height:38px;object-fit:contain}.brand b{font-size:19px;display:block}.brand span{font-size:12px;color:#9fb4cf}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav button{border:0;background:transparent;color:#c8d6e7;text-align:left;padding:11px 13px;border-radius:9px;cursor:pointer;font-weight:600}.sidebar nav button:hover,.sidebar nav button.active{background:#183b67;color:white}.sidefoot{margin-top:auto;border-top:1px solid #26476c;padding:16px 8px;color:#afc1d8}.sidefoot small{display:block;margin-top:12px}.mini-status{display:flex;gap:8px;align-items:center;font-size:12px}.mini-status span{width:8px;height:8px;border-radius:50%;background:#aab}.mini-status span.green{background:#2ecc71}.mini-status span.red{background:#ff5964}.mini-status span.amber{background:#ffb020}main{min-width:0}header{height:82px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:14px 30px;position:sticky;top:0;z-index:5}header h1{font-size:23px;margin:0}header p{margin:3px 0 0;color:var(--muted);font-size:13px}.header-actions{display:flex;gap:10px;align-items:center}.header-actions input{width:290px}input,select,textarea{border:1px solid #d5deeb;border-radius:8px;padding:10px 11px;background:white;color:var(--ink)}textarea{min-height:84px;resize:vertical}.primary,.ghost{border-radius:8px;padding:10px 14px;font-weight:700;cursor:pointer}.primary{background:var(--blue);border:1px solid var(--blue);color:white}.ghost{background:white;border:1px solid #ced9e8;color:#244564}.primary:hover{filter:brightness(.97)}#content{padding:26px 30px 60px}.grid{display:grid;gap:16px}.grid.kpi{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:18px}.card{background:var(--card);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);padding:18px}.kpi .card{box-shadow:none}.eyebrow{text-transform:uppercase;letter-spacing:.09em;color:#71849b;font-size:11px;font-weight:800}.metric{font-size:29px;font-weight:800;margin-top:6px}.metric.small{font-size:22px}.muted{color:var(--muted)}.section-title{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.section-title h2{font-size:18px;margin:0}.section-title p{margin:4px 0 0;color:var(--muted);font-size:13px}.two{grid-template-columns:1.3fr .7fr}.three{grid-template-columns:repeat(3,1fr)}.today-list,.clean-list{display:flex;flex-direction:column}.rowitem{display:grid;grid-template-columns:1.6fr 1fr auto;gap:14px;align-items:center;padding:13px 2px;border-bottom:1px solid #edf1f6}.rowitem:last-child{border-bottom:0}.rowitem strong{display:block}.pill{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;background:#edf4ff;color:#2463ab}.pill.green{background:#e9f8ef;color:#20874b}.pill.amber{background:#fff4dd;color:#9a6500}.pill.red{background:#fdecef;color:#b12d3c}.pill.gray{background:#eef1f5;color:#66778b}.score{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:#1266c5;font-weight:800}.bar-row{display:grid;grid-template-columns:135px 1fr 55px;gap:10px;align-items:center;margin:11px 0}.bar-track{height:11px;border-radius:20px;background:#edf1f6;overflow:hidden}.bar-fill{height:100%;border-radius:20px;background:linear-gradient(90deg,var(--blue),var(--cyan))}.funnel{display:flex;align-items:end;gap:9px;height:220px;padding-top:15px}.funnel-col{flex:1;text-align:center}.funnel-bar{background:linear-gradient(180deg,#4e8ff7,#176fd7);border-radius:8px 8px 3px 3px;min-height:4px}.funnel-col b{display:block;font-size:12px;margin-top:7px}.funnel-col span{font-size:10px;color:var(--muted)}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:13px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:10px}.toolbar .left,.toolbar .right{display:flex;gap:8px;align-items:center}.toolbar input{min-width:260px}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:#62748c;font-size:11px;text-transform:uppercase;letter-spacing:.06em;background:#fafbfd;padding:12px;border-bottom:1px solid var(--line)}td{padding:12px;border-bottom:1px solid #edf1f6;vertical-align:middle}tr:last-child td{border-bottom:0}tr:hover td{background:#fbfdff}.linkbtn{background:none;border:0;color:#146ecf;padding:0;font-weight:700;cursor:pointer}.pipeline{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:12px;overflow:auto}.column{background:#edf2f8;border-radius:12px;padding:12px;min-height:430px}.column h3{font-size:13px;margin:0 0 12px;display:flex;justify-content:space-between}.deal{background:white;border:1px solid #e0e6ef;border-radius:10px;padding:12px;margin-bottom:10px;box-shadow:0 3px 10px rgba(30,52,82,.05)}.deal b{display:block}.deal small{color:var(--muted)}.deal .value{margin-top:8px;font-weight:800}.hero-today{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#0c2f5d,#125db3);color:white;border-radius:15px;padding:24px 26px;margin-bottom:18px}.hero-today h2{margin:0 0 5px;font-size:24px}.hero-today p{margin:0;color:#cde0f6}.sender-chip{padding:9px 13px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:999px;font-weight:800}.sender-chip.green{color:#baffcf}.sender-chip.red{color:#ffc4c8}.sender-chip.amber{color:#ffe2a0}.action-cards{grid-template-columns:repeat(4,1fr)}.action-card{padding:17px;border-left:4px solid #d9e7f7}.action-card.blue{border-color:#1677ff}.action-card.green{border-color:#22a559}.action-card.amber{border-color:#e89b17}.action-card.cyan{border-color:#16b8e6}.action-card b{font-size:25px}.area-card{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.healthbox{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.healthitem{padding:14px;background:#f8fafc;border:1px solid #e6ebf2;border-radius:10px}.healthitem b{font-size:20px;display:block}.sweep-form{display:grid;grid-template-columns:1fr 1fr 120px auto;gap:8px}.empty{padding:28px;text-align:center;color:var(--muted)}dialog{border:0;border-radius:14px;box-shadow:0 30px 80px rgba(0,0,0,.22);width:min(760px,92vw);padding:0}dialog::backdrop{background:rgba(14,29,50,.45)}dialog form{padding:22px}.dialog-head{display:flex;justify-content:space-between;align-items:start}.dialog-head h2{margin:0}.dialog-head p{margin:4px 0 20px;color:var(--muted)}.iconbtn{border:0;background:none;font-size:26px;cursor:pointer}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.formgrid label{font-size:12px;font-weight:700;color:#50657e}.formgrid input,.formgrid select,.formgrid textarea{width:100%;display:block;margin-top:5px}.span2{grid-column:1/-1}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}#toast{position:fixed;right:20px;bottom:20px;background:#10233f;color:white;padding:11px 15px;border-radius:8px;opacity:0;pointer-events:none;transition:.2s;z-index:20}#toast.show{opacity:1}@media(max-width:1050px){.app{grid-template-columns:82px 1fr}.brand div,.sidebar nav button{font-size:0}.sidebar nav button:after{font-size:12px}.sidebar{padding:18px 10px}.brand img{margin:auto}.grid.kpi,.action-cards{grid-template-columns:repeat(2,1fr)}.two,.area-card{grid-template-columns:1fr}.header-actions input{display:none}}@media(max-width:700px){.app{display:block}.sidebar{display:none}header{padding:12px 16px}.header-actions .ghost{display:none}#content{padding:16px}.grid.kpi,.action-cards,.three{grid-template-columns:1fr 1fr}.sweep-form{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.span2{grid-column:auto}}

/* v3.13.1 visual polish */
.sidebar{padding:24px 20px;background:linear-gradient(180deg,#071a33 0%,#0d315a 100%)}
.brand{display:block;padding:4px 6px 28px}.brandline{display:flex;align-items:center;gap:13px}.brandline img{width:52px;height:52px;object-fit:contain;display:block}.brandline b{font-size:26px;letter-spacing:-.02em;color:#fff}.brand>span{display:block;margin:5px 0 0 65px;color:#9fc1e5;font-size:12px;letter-spacing:.04em}
.sidebar nav{gap:10px}
.sidebar nav button{padding:14px 16px;border-radius:12px;font-size:15px;transition:.16s ease}
.sidebar nav button:hover,.sidebar nav button.active{background:linear-gradient(90deg,#174d83,#1d5a99);box-shadow:inset 3px 0 #22a9ff;color:#fff}
header{height:96px;padding:18px 34px}
header h1{font-size:30px;letter-spacing:-.02em}
header p{font-size:15px}
#content{padding:34px 34px 64px}
.hero-today{padding:30px 34px;border-radius:18px;background:linear-gradient(135deg,#0b2850 0%,#1257aa 72%,#087ce0 100%);box-shadow:0 14px 34px rgba(16,73,145,.16)}
.hero-today h2{font-size:34px;letter-spacing:-.02em;margin-bottom:7px}
.hero-today p{font-size:16px}
.sender-chip{padding:11px 17px}
.grid.action-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:28px}
.action-card{position:relative;min-height:150px;padding:24px;border-radius:16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;overflow:hidden;box-shadow:0 8px 22px rgba(30,66,112,.07)}
.action-card .eyebrow{display:block;line-height:1.35;margin:0 0 6px;font-size:11px;letter-spacing:.1em;white-space:normal}
.action-card b{display:block;font-size:44px;line-height:1;margin:0 0 8px;letter-spacing:-.035em;color:#0c2342}
.action-card .muted{font-size:14px;line-height:1.35}
.action-card.blue{border-left:4px solid #1677ff}.action-card.green{border-left:4px solid #22a559}.action-card.amber{border-left:4px solid #e89b17}.action-card.cyan{border-left:4px solid #16b8e6}
.card{border-radius:16px}
.grid.kpi{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.kpi .card{padding:21px;min-height:115px}.kpi .metric{margin-top:10px;line-height:1.05}
.header-actions input{width:360px;padding:13px 15px;border-radius:12px}.primary,.ghost{border-radius:11px;padding:12px 17px}
@media(max-width:1100px){.grid.action-cards{grid-template-columns:repeat(2,1fr)}.grid.kpi{grid-template-columns:repeat(2,1fr)}.header-actions input{width:240px}}
.analytics-site{margin-bottom:20px}.ga-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.ga-kpis .card{box-shadow:none;background:#f9fbfe;border-color:#e6edf6;min-height:104px}.analytics-grid{margin-top:0}@media(max-width:1100px){.ga-kpis{grid-template-columns:repeat(2,1fr)}}

/* v3.13.2 desktop density + branding */
.app{grid-template-columns:220px 1fr}.sidebar{padding:18px 14px}.brand{padding:2px 4px 16px;display:block}.brand-logo{display:block;width:178px;height:auto;object-fit:contain}.sidebar nav{gap:3px}.sidebar nav button{padding:9px 12px;font-size:14px}.sidefoot{padding:12px 6px}header{height:70px;padding:10px 24px}header h1{font-size:21px}.header-actions{gap:8px}.header-actions input{width:250px;padding:9px 10px}.primary,.ghost,.m365-status{padding:9px 12px}.m365-status{border-radius:8px;border:1px solid #ced9e8;background:#fff;color:#244564;font-weight:700;cursor:pointer;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m365-status.connected{border-color:#b9e7ca;background:#edf9f2;color:#1b7e46}.m365-status.warn{border-color:#f1d69f;background:#fff8e9;color:#8a5b00}#content{padding:20px 24px 44px}.hero-today{padding:18px 22px;margin-bottom:14px;border-radius:13px}.hero-today h2{font-size:21px}.hero-today p{font-size:14px}.sender-chip{padding:7px 11px}.grid{gap:12px}.grid.kpi{gap:12px;margin-bottom:14px}.card{padding:15px;border-radius:11px}.action-cards{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}.action-card{min-height:112px;padding:15px 16px}.action-card .eyebrow{display:block;margin-bottom:9px}.action-card b{display:block;font-size:30px;line-height:1;margin:0 0 8px}.action-card .muted{font-size:13px}.section-title{margin:18px 0 10px}.section-title h2{font-size:17px}.metric{font-size:26px}.metric.small{font-size:20px}.rowitem{padding:11px 2px}.healthitem b{font-size:20px}.table-wrap{border-radius:11px}.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-card{display:flex;justify-content:space-between;gap:16px;align-items:center}.integration-card h3{margin:0 0 4px;font-size:16px}.integration-card p{margin:0;color:var(--muted);font-size:13px}.integration-actions{display:flex;gap:8px;align-items:center}.status-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:7px;background:#aab}.status-dot.green{background:#22a559}.status-dot.amber{background:#e89b17}.status-dot.red{background:#d94452}
@media(max-width:1100px){.header-actions input{display:none}.m365-status{max-width:150px}.action-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
