:root{--navy:#102d4f;--ink:#142a43;--muted:#68798c;--border:#e5eaf1;--red:#c91d32;--bg:#f5f7fb}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 'Segoe UI',system-ui,sans-serif}
a{color:#1c527f;text-decoration:none}a:hover{text-decoration:underline}
header{height:70px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 34px;box-shadow:0 1px 8px #122e4b08}
header h1{font:600 20px Georgia,serif;color:var(--navy);margin:0}
header h1:before{content:"MG";display:inline-grid;place-items:center;background:var(--navy);color:white;width:38px;height:38px;border-radius:10px;font:700 13px 'Segoe UI',sans-serif;margin-right:12px;vertical-align:middle}
main{max-width:1300px;margin:0 auto;padding:28px 32px 60px 262px;min-height:calc(100vh - 70px)}
h2{font-size:26px;letter-spacing:-.6px;color:var(--navy);margin:4px 0 12px}h3{font-size:17px;color:var(--navy);margin:0 0 10px}
p{margin:8px 0 12px}.muted{color:var(--muted);font-size:13px}
.crmnav{position:fixed;top:70px;bottom:0;left:0;width:230px;background:var(--navy);padding:30px 15px;display:flex;flex-direction:column;gap:5px;z-index:10}
.crmnav:before{content:"WORKSPACE";color:#a9c2db;letter-spacing:2px;font-size:10px;font-weight:700;margin:0 12px 16px}
.crmnav a{color:#e4edf7;display:flex;align-items:center;min-height:47px;padding:10px 15px;border-radius:9px;font-weight:600;font-size:14px}
.crmnav a:hover{background:#244b73;color:#fff;text-decoration:none}
.crmnav a[href='/admin']:before{content:"▦";font-size:21px;margin-right:13px}
.crmnav a[href='/admin/contacts']:before{content:"♙";font-size:22px;margin-right:13px}
.crmnav a[href='/admin/tasks']:before{content:"☑";font-size:20px;margin-right:13px}
.crmnav a[href='/admin/boldtrail']:before{content:"⇄";font-size:20px;margin-right:13px}
.crmnav a[href='/']:before{content:"↗";font-size:20px;margin-right:13px}
.crmnav a[href='/']{margin-top:auto;border-top:1px solid #47617d;border-radius:0;padding-top:20px}
.logout{position:fixed;bottom:15px;left:15px;z-index:20;width:200px;margin:0}
.logout button{width:100%;background:#244b73;border:1px solid #527392;color:#fff;font-weight:600}
.logout button:hover{background:#345e87}
.card,.metric{background:#fff;border:1px solid var(--border);border-radius:13px;padding:21px 24px;margin:14px 0;box-shadow:0 3px 14px #17345607}
.card h3{margin-bottom:8px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:15px}
.grid>.card{margin:0}.grid>.card h2{font-size:33px;margin:6px 0}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:17px 0 22px}
.metric{display:flex;flex-direction:column;gap:8px;margin:0;text-decoration:none;color:var(--ink);border-top:4px solid #bdc9d8}
.metric:nth-child(1){border-top-color:#c91d32}.metric:nth-child(2){border-top-color:#2f669b}.metric:nth-child(3){border-top-color:#d89938}.metric:nth-child(4){border-top-color:#35916e}
.metric strong{font-size:32px;line-height:1.2;color:var(--navy)}.metric:hover,.card:hover{box-shadow:0 5px 18px #17345612}
.top{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;margin:4px 0 18px}
.top h2{margin:0}.pill{display:inline-block;background:#edf3f9;border-radius:30px;padding:4px 11px;color:#315576;font-size:12px;font-weight:650}
.follow-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.follow-grid .card{margin:0}
.follow-item{padding:11px 0;border-bottom:1px solid var(--border)}.follow-item:last-child{border-bottom:0}
.filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.filters>div:first-child{flex:2;min-width:190px}.filters>div:nth-child(2),.filters>div.sort{flex:1;min-width:150px}
.filters label{margin:0 0 5px}.filters button{height:43px}.filters>a{padding:11px}
label{display:block;font-size:13px;font-weight:650;margin:13px 0 6px;color:#354a61}
input,select,textarea{display:block;width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;color:var(--ink);background:white}
input:focus,select:focus,textarea:focus{outline:2px solid #9fc0e0;border-color:#2c699c}
button,.details{border:0;background:var(--red);color:white;border-radius:8px;padding:11px 17px;font-weight:700;cursor:pointer;display:inline-block}
button:hover,.details:hover{background:#a91124;color:white;text-decoration:none}
.smallbutton{padding:8px 13px}.lead{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}
.lead h3{margin:0 0 8px}.lead p{margin:5px 0}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.actions a{border:1px solid #d3dce7;border-radius:7px;padding:6px 12px;background:#f8fafc;font-weight:600}
.message{white-space:pre-wrap;background:#f7f9fc;padding:16px;border-radius:8px}
.fieldgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.rowlist{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
.inlinebuttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inlinebuttons form{margin:0}
.taskdone{opacity:.65}.taskdone strong{text-decoration:line-through}
.due,.warning{color:#b3242b;font-weight:700}.notice{padding:13px 16px;border-radius:9px;margin:15px 0;font-weight:600}
.notice-success{background:#e9f8ef;color:#17633c;border:1px solid #8fd0a8}
.notice-error{background:#fff0f0;color:#9a1b1b;border:1px solid #e0a0a0}
.login-shell{max-width:480px;margin:45px auto}.login-shell .card{padding:28px}
body:has(.login-shell) main{max-width:750px;padding:35px 20px;margin:auto;min-height:auto}
@media(max-width:1050px){main{padding-left:244px;padding-right:18px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){header{padding:0 18px}header h1{font-size:16px}.crmnav{position:static;width:auto;padding:10px 12px;flex-direction:row;flex-wrap:wrap;gap:6px;margin:-18px -16px 22px}.crmnav:before{display:none}.crmnav a{min-height:38px;padding:7px 10px;font-size:12px}.crmnav a:before{display:none}.crmnav a[href='/']{margin:0;border:0;padding:7px 10px}.logout{position:static;width:auto;margin:0 0 16px}.logout button{width:auto}main{padding:18px 16px 35px}.metrics,.follow-grid,.fieldgrid{grid-template-columns:1fr}.card,.metric{padding:17px}.filters{display:block}.filters>div{margin-bottom:12px}}


/* Modern CRM visual system — public Razor website is unaffected. */
:root{--navy:#14253e;--ink:#1b2c43;--muted:#718096;--border:#e4eaf2;--red:#c61c35;--bg:#f4f7fb;--accent:#3563b3}
body{font-family:Inter,'Segoe UI',system-ui,sans-serif;background:var(--bg);font-size:14px;line-height:1.5}
header{height:76px;background:#fff;padding:0 34px 0 264px;box-shadow:none;border-bottom:1px solid #e7ecf3}
header h1{font:700 18px Inter,'Segoe UI',sans-serif;letter-spacing:-.45px}
header h1:before{background:linear-gradient(145deg,#153b6a,#2867a2);box-shadow:0 4px 12px #123b6a25}
main{max-width:1680px;padding:34px 38px 70px 288px;min-height:calc(100vh - 76px)}
.crmnav{top:0;width:244px;background:#10243d;padding:102px 16px 84px;gap:6px;box-shadow:5px 0 25px #0a1d3410}
.crmnav:before{content:'MICHELE / WORKSPACE';font-size:10px;letter-spacing:1.6px;color:#8ca7c8;margin:0 12px 16px}
.crmnav a{min-height:46px;color:#c5d3e6;font-size:13px;font-weight:600;border-radius:10px;padding:11px 13px}
.crmnav a:hover{background:#203d5f;color:#fff}
.crmnav a[href='/admin']:before,.crmnav a[href='/admin/contacts']:before,.crmnav a[href='/admin/tasks']:before,.crmnav a[href='/admin/boldtrail']:before,.crmnav a[href='/']:before{width:22px;display:inline-block;margin-right:11px;text-align:center}
.logout{width:210px;left:16px;bottom:18px}.logout button{background:#203b5b;border-color:#365675;border-radius:9px}
h2{font-size:28px;font-weight:750;letter-spacing:-.9px;margin:0 0 5px}h3{font-size:16px;letter-spacing:-.3px}
.card,.metric{border-radius:15px;box-shadow:0 4px 16px #1d365408;border-color:#e4eaf2;padding:22px 24px}
.grid{gap:18px}.metrics{gap:18px}.metric{border-top:0;border-left:4px solid #cad4e2;min-height:125px}.metric:nth-child(1){border-left-color:#c91d32}.metric:nth-child(2){border-left-color:#3e75bc}.metric:nth-child(3){border-left-color:#d6a14a}.metric:nth-child(4){border-left-color:#2a9d7d}
.metric strong{font-size:34px}.top{margin-bottom:22px}.top h2{margin:0}
.pill{background:#edf2fa;color:#3d5c81;padding:5px 12px}
button,.details{background:#c51e38;border-radius:9px;padding:11px 17px;font-size:13px}
input,select,textarea{border-color:#d7e0ec;border-radius:9px;background:#fff}
input:focus,select:focus,textarea:focus{outline:3px solid #3563b325;border-color:#3563b3}
.crm-kicker{font-size:11px;text-transform:uppercase;letter-spacing:1.6px;color:#7a8ca4;font-weight:800;margin-bottom:8px}
.crm-subtitle{font-size:14px;color:#718096;margin:5px 0 0}
.crm-statgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}
.crm-stat{background:#fff;border:1px solid #e4eaf2;border-radius:15px;padding:19px 22px;box-shadow:0 3px 12px #1d365407;text-decoration:none;color:inherit}
.crm-stat span{font-size:12px;color:#70829b;font-weight:650}.crm-stat strong{display:block;font-size:30px;letter-spacing:-1px;color:#152d4e;margin:5px 0}.crm-stat small{font-size:11px;color:#7c8ba0}
.crm-toolbar{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(120px,1fr)) auto;gap:12px;align-items:end;margin:18px 0}
.crm-toolbar label{font-size:11px;color:#657791;margin:0 0 6px}.crm-toolbar input,.crm-toolbar select{height:43px;padding:9px 11px}
.crm-toolbar button{height:43px;white-space:nowrap}
.crm-tablewrap{overflow-x:auto;border:1px solid #e3eaf3;border-radius:14px;background:#fff;box-shadow:0 3px 15px #1d365408}
.crm-table{width:100%;border-collapse:collapse;min-width:850px;text-align:left}
.crm-table thead{background:#f8fafd}.crm-table th{padding:15px 17px;font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:#71839a;font-weight:750;border-bottom:1px solid #e4eaf2;white-space:nowrap}
.crm-table td{padding:14px 17px;border-bottom:1px solid #edf1f6;vertical-align:middle;font-size:13px}.crm-table tr:last-child td{border-bottom:0}.crm-table tbody tr:hover{background:#f9fbff}
.crm-person{display:flex;align-items:center;gap:12px;min-width:175px}.crm-avatar{width:37px;height:37px;flex:none;display:grid;place-items:center;border-radius:11px;background:#e9effa;color:#244e83;font-size:12px;font-weight:800}
.crm-person strong{font-size:13px;color:#1b2c43}.crm-person small{display:block;font-size:11px;color:#8796a8}
.crm-chip{display:inline-block;padding:5px 10px;background:#eff4fb;border-radius:7px;font-size:11px;font-weight:700;color:#436082;white-space:nowrap}.crm-chip.source{background:#eef8f4;color:#2d8264}
.crm-link{color:#2a5b97;font-weight:700;font-size:12px;white-space:nowrap}
.crm-pager{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:18px;color:#728198;font-size:12px}
.crm-pageactions{display:flex;align-items:center;gap:8px}.crm-pageactions a,.crm-pageactions span{padding:8px 12px;background:#fff;border:1px solid #dfe6f0;border-radius:8px}.crm-pageactions span{color:#aab5c4;background:#f7f9fc}
.crm-sectiontitle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}
.crm-sectiontitle h3{margin:0}.crm-note{font-size:12px;color:#718096}
@media(max-width:1200px){.crm-statgrid{grid-template-columns:repeat(2,1fr)}.crm-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-toolbar>div:first-child{grid-column:span 2}}
@media(max-width:720px){header{height:68px;padding:0 16px}header h1{font-size:15px}.crmnav{position:static;width:auto;padding:12px;flex-direction:row;flex-wrap:wrap;margin:-18px -16px 18px;box-shadow:none}.crmnav:before{display:none}.crmnav a{min-height:36px;padding:7px 10px}.crmnav a:before{display:none!important}.crmnav a[href='/']{margin:0;padding:7px 10px}.logout{position:static;width:auto;margin-bottom:12px}.logout button{width:auto}main{padding:18px 16px 36px}.crm-statgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.crm-stat{padding:14px}.crm-stat strong{font-size:25px}.crm-toolbar{grid-template-columns:1fr}.crm-toolbar>div:first-child{grid-column:auto}.crm-table td,.crm-table th{padding:12px}.card{padding:16px}}
body:has(.login-shell) header{padding-left:34px}body:has(.login-shell) main{padding:35px 20px;max-width:750px}


/* RE/MAX-inspired SaaS workspace — scoped to the CRM's HTML page. */
:root{--navy:#071c38;--ink:#102544;--red:#c91532;--bg:#f2f5fa;--border:#e2e8f1}
body{background:var(--bg);font-family:'Segoe UI',Arial,sans-serif;color:var(--ink)}
header{height:72px;padding:0 34px 0 272px;background:#fff;border-bottom:1px solid #e2e8f1}
header h1{font:700 17px 'Segoe UI',sans-serif;color:#0d294c}
header h1:before{border-radius:50%;background:#143b69;width:36px;height:36px}
main{max-width:none;margin:0;padding:28px 40px 70px 290px}
.crmnav{top:0;bottom:0;width:250px;background:linear-gradient(175deg,#081b36,#102e57);padding:24px 14px 90px;gap:5px;box-shadow:none}
.crmnav:before{display:none}
.navbrand{display:flex;align-items:center;gap:12px;color:#fff;padding:7px 12px 29px;border-bottom:1px solid #ffffff24;margin-bottom:20px}
.navbrand .navmark{display:grid;place-items:center;width:42px;height:42px;border:2px solid #ffffff45;border-radius:50%;font-weight:850;letter-spacing:-1px;background:#c91532}
.navbrand strong{display:block;letter-spacing:1.3px;font-size:13px}.navbrand small{display:block;color:#a8bed8;font-size:9px;letter-spacing:1.8px}
.navlabel{font-size:10px;color:#89a6c8;letter-spacing:2px;font-weight:800;margin:0 13px 10px}
.crmnav a{color:#d4e0f0;font-size:14px;border-radius:9px;min-height:48px;padding:12px 15px}
.crmnav a:before{display:none!important}.crmnav a:hover{background:#ffffff1b;color:#fff}
.crmnav a.nav-home{background:linear-gradient(95deg,#b60926,#e32643);color:#fff;box-shadow:0 7px 20px #0002}
.crmnav a.site-link{margin-top:auto;border-top:1px solid #ffffff28;border-radius:0;padding-top:21px}
.logout{left:15px;width:220px;bottom:16px}.logout button{background:#ffffff15;border:1px solid #ffffff35;color:#fff}
.hero{position:relative;overflow:hidden;background:radial-gradient(circle at 83% 5%,#3d709e 0,transparent 33%),linear-gradient(105deg,#071b38 0%,#123c6b 64%,#24588b 100%);border-radius:18px;padding:34px 42px;color:#fff;min-height:202px;box-shadow:0 10px 28px #0e335021;margin-bottom:29px}
.hero:after{content:'';position:absolute;right:-65px;bottom:-145px;width:420px;height:280px;border:42px solid #ffffff12;transform:rotate(-24deg);border-radius:50%}
.hero-overline{font-size:10px;letter-spacing:2.1px;font-weight:800;color:#b7d3ef;margin-bottom:12px}
.hero h2{color:#fff;font-size:34px;line-height:1.2;letter-spacing:-1.3px;margin:0 0 6px}.hero-dot{color:#e52b48}
.hero p{font-size:14px;color:#d7e6f6;margin:0}.hero-actions{display:flex;gap:10px;margin-top:22px;position:relative;z-index:1}
.hero-actions a{padding:9px 15px;border-radius:8px;font-weight:700;font-size:12px;background:#fff;color:#15365b}.hero-actions a+a{background:#ffffff1c;color:#fff;border:1px solid #ffffff40}
.dashboard-heading,.lead-section-title{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 16px}.dashboard-heading h2,.lead-section-title h2{font-size:23px;margin:2px 0 0}.crm-kicker{font-size:10px;letter-spacing:1.9px;color:#6c86a7;font-weight:850}
.overview-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:19px}
.overview-stat{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:135px;background:#fff;border:1px solid #e1e7f0;border-radius:13px;padding:18px 15px;text-decoration:none!important;color:#596c84;box-shadow:0 5px 16px #102a4b09;overflow:hidden}
.overview-stat:before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:#246ab1}
.overview-stat.new-stat:before,.overview-stat.closed-stat:before{background:#c91532}.overview-stat.active-stat:before{background:#1a9d78}.overview-stat.task-stat:before{background:#e0a122}.overview-stat.due-stat:before{background:#7b60b7}
.stat-icon{font-size:18px;color:#2b6db3}.overview-stat strong{font-size:29px;line-height:1.25;letter-spacing:-1px;color:#0c2646}.overview-stat>span:last-child{font-size:11px;font-weight:650}
.dash-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:17px;margin-bottom:17px}.dash-bottom{grid-template-columns:1.2fr 1fr}
.card{border-radius:14px;border:1px solid #e1e7f0;box-shadow:0 5px 17px #0b2d5009;padding:23px 25px;margin:0}
.panel-title{display:flex;align-items:start;justify-content:space-between;gap:15px;padding-bottom:13px;border-bottom:1px solid #edf0f5}.panel-title h3{font-size:19px;margin:2px 0 0}.panel-title>a{font-size:12px;font-weight:750;white-space:nowrap;color:#1e5e9d}
.directory-number{font-size:54px;line-height:1.2;font-weight:800;letter-spacing:-2px;color:#0b2b50;margin-top:18px}.directory-number small{display:block;font-size:12px;font-weight:650;letter-spacing:0;color:#76879c}
.directory-actions{display:flex;gap:9px;margin-top:20px}.directory-actions a,.bt-action{padding:9px 13px;border-radius:8px;background:#0f3159;color:#fff;font-size:12px;font-weight:750}.directory-actions a+a{background:#f2f6fb;color:#1b4f80;border:1px solid #dfe8f2}
.task-preview{display:flex;align-items:center;gap:13px;padding:12px 0;border-bottom:1px solid #eef1f5}.task-preview strong{font-size:13px}.task-preview small{display:block;color:#8291a3;font-size:11px}.task-square{font-size:23px;color:#8297b0}.task-date{margin-left:auto;color:#8a99ac;font-size:11px}.panel-foot{font-size:11px;color:#7a8ba0;padding-top:14px}
.empty-state{padding:38px 12px;text-align:center;color:#8391a3}.schedule-group{display:flex;align-items:center;gap:10px;margin-top:16px}.schedule-group strong{font-size:13px}.schedule-empty{margin:8px 0}.schedule-item{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #edf0f5;font-size:12px}
.integration-panel{background:linear-gradient(140deg,#fff,#f8fbff)}.bt-logo{font-size:23px;color:#c91532;margin-top:20px}.bt-logo strong{color:#0b315c}.integration-panel p{color:#667b93;font-size:13px;max-width:470px;margin:12px 0 20px}.bt-action{display:inline-block}
.lead-section-title{margin:29px 0 15px}.metrics{gap:12px}.metric{border-radius:12px}.crm-table-wrap{overflow-x:auto}
@media(max-width:1400px){.overview-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:950px){main{padding:22px 20px 50px 272px}.dash-grid,.dash-bottom{grid-template-columns:1fr}.hero{padding:28px}}
@media(max-width:720px){header{padding:0 15px;height:65px}.crmnav{position:static;width:auto;padding:12px;flex-direction:row;flex-wrap:wrap;margin:-18px -16px 18px}.navbrand,.navlabel{display:none}.crmnav a{min-height:36px;padding:7px 10px}.crmnav a.site-link{margin:0;border:0;padding:7px 10px}.logout{position:static;width:auto;margin-bottom:12px}main{padding:18px 16px 35px}.hero{padding:23px;min-height:0}.hero h2{font-size:27px}.overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-heading,.lead-section-title{align-items:start}.overview-stat{min-height:115px}}
body:has(.login-shell) header{padding-left:34px}body:has(.login-shell) main{padding:35px 20px;max-width:750px}


/* RE/MAX / SaaS command center — dashboard V3 */
:root{--navy:#0b2345;--red:#c91532;--bg:#f4f6fa}
body{background:#f4f6fa;font-family:Inter,'Segoe UI',Arial,sans-serif}
header{height:64px;padding-left:255px;justify-content:space-between}
header h1{font-family:Inter,'Segoe UI',sans-serif;font-size:15px;font-weight:800}
.header-sub{font-size:10px;color:#8192a7;letter-spacing:1px;font-weight:700}.header-right{font-size:11px;color:#7e8ea2;font-weight:700}
main{max-width:none;padding:18px 28px 65px 248px}
.crmnav{background:linear-gradient(180deg,#071a34,#102f58)!important;width:220px!important}
.crmnav a{font-weight:600}.crmnav a.nav-home{background:#c91532!important}
.crm-command{max-width:1600px;margin:0 auto}
.crm-banner{height:165px;display:flex;align-items:center;position:relative;overflow:hidden;border-radius:14px;background:linear-gradient(90deg,#071a34 0%,#09284b 53%,#102f57b8 76%,#071a34a6 100%),url('/images/autumn-hero.jpg') center 55%/cover;color:white;padding:12px 35px 0 0;box-shadow:0 8px 23px #102e5115}
.crm-headshot{align-self:flex-end;height:170px;width:185px;object-fit:contain;object-position:bottom;flex-shrink:0;filter:drop-shadow(0 2px 9px #0005)}
.crm-banner-name{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;text-align:center;line-height:1.25;z-index:1}
.crm-script{font-family:'Brush Script MT','Segoe Script',cursive;font-size:clamp(28px,3.3vw,52px);font-style:italic;white-space:nowrap}.crm-banner-tag{font-size:13px;font-weight:800;letter-spacing:5px}.crm-banner-name em{font-size:14px;margin-top:9px;color:#f2f5fa}
.crm-banner-broker{font-size:27px;font-weight:900;line-height:1.15;letter-spacing:1px;min-width:205px;border-left:1px solid #ffffff88;padding-left:24px;z-index:1}.crm-banner-broker small{font-size:14px;font-weight:500;letter-spacing:0}
.crm-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0 17px}.crm-welcome h2{margin:0;font-size:26px}.crm-welcome p{margin:3px 0;color:#728198;font-size:13px}
.crm-quickactions{display:flex;gap:10px}.crm-quickactions a{border:1px solid #d9e2ee;padding:10px 16px;background:white;border-radius:9px;font-size:12px;font-weight:750}.crm-quickactions a.crm-primary{background:#c91532;color:#fff;border-color:#c91532}
.crm-kpi-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}
.crm-kpi{min-height:103px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;background:#fff;border:1px solid #e2e8f0;border-left:3px solid var(--accent);border-radius:12px;padding:13px 16px;color:#506078;text-decoration:none!important;box-shadow:0 4px 14px #142f5008}
.crm-kpi-icon{color:var(--accent);font-size:19px;line-height:1}.crm-kpi strong{font-size:27px;line-height:1.25;color:#0d2240}.crm-kpi>span:last-child{font-size:11px;font-weight:700}
.crm-panels-top{display:grid;grid-template-columns:1.1fr 1.2fr .95fr;gap:15px;margin-bottom:15px;align-items:stretch}.crm-panels-bottom{display:grid;grid-template-columns:1.65fr .9fr;gap:15px;margin-bottom:28px}
.crm-panel{min-width:0;background:#fff;border:1px solid #e1e7ef;border-radius:13px;padding:17px 19px;box-shadow:0 4px 14px #102a4a0b}
.crm-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.crm-panel-head h3{margin:0;font-size:17px}.crm-panel-head a{font-size:11px;font-weight:800;white-space:nowrap}.crm-panel-caption{font-size:11px;color:#8290a2;margin:3px 0 17px}
.crm-donut-layout{display:flex;gap:17px;align-items:center}.crm-donut{width:175px;height:175px;border-radius:50%;flex-shrink:0;display:grid;place-items:center}.crm-donut>div{background:white;border-radius:50%;width:108px;height:108px;display:flex;align-items:center;justify-content:center;flex-direction:column}.crm-donut strong{font-size:26px;line-height:1.2;color:#10284a}.crm-donut small{font-size:11px;color:#8290a0}
.crm-legend{flex:1;min-width:0}.crm-legend>div{display:flex;align-items:center;gap:7px;font-size:11px;padding:6px 0}.crm-legend>div>span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-legend-dot{height:10px;width:10px;border-radius:50%;flex-shrink:0}.crm-legend strong{font-size:11px}
.crm-panel-foot{border-top:1px solid #edf1f5;padding-top:12px;margin-top:16px;color:#7c8da2;font-size:11px}
.crm-activity-empty{min-height:175px;background:linear-gradient(180deg,#f7faff,#fff);border:1px dashed #cbd8e7;border-radius:11px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:18px}.crm-activity-empty>span{font-size:27px;color:#2378ce}.crm-activity-empty strong{font-size:13px}.crm-activity-empty p{font-size:11px;color:#8190a2;max-width:300px}.crm-activity-empty a{font-size:11px;font-weight:750}
.crm-task-list{min-height:169px}.crm-task-item,.crm-upcoming{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f5;color:#172b47;text-decoration:none!important}.crm-task-item strong,.crm-upcoming strong{display:block;font-size:12px}.crm-task-item small,.crm-upcoming small{display:block;font-size:10px;color:#8290a2}.crm-task-item time,.crm-upcoming time{margin-left:auto;color:#8a98aa;font-size:10px;white-space:nowrap}.crm-check{font-size:22px;color:#8192a6}.crm-task-add{display:block;font-size:11px;font-weight:800;margin-top:14px}.crm-blank{color:#8493a6;font-size:12px;padding:32px 0;text-align:center}
.crm-listing-stats{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 14px}.crm-listing-stats span{border:1px solid #e5eaf1;border-radius:7px;padding:8px 12px;font-size:11px}.crm-listing-stats strong{font-size:16px;margin-right:4px;color:#132b4a}
.crm-property-row{display:flex;align-items:center;gap:16px;border:1px solid #e6ecf3;border-radius:10px;padding:12px}.crm-property-placeholder{height:82px;width:126px;display:grid;place-items:center;background:linear-gradient(135deg,#dce9f5,#afc8dd);border-radius:8px;font-size:35px;color:#366d99}.crm-property-row>div:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1}.crm-property-row strong{font-size:14px}.crm-property-row small{font-size:11px;color:#8190a2}.crm-property-row b{font-size:17px}.crm-status{font-size:10px;color:#168453;background:#e8f8f0;padding:7px 9px;border-radius:6px}
.crm-pipeline-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.crm-pipeline-tile{display:flex;flex-direction:column;gap:3px;border:1px solid #e2e8f0;border-radius:12px;background:white;padding:18px}.crm-pipeline-tile strong{font-size:29px;color:#0b274b}.crm-pipeline-tile span{font-size:12px;color:#74869c}
@media(max-width:1350px){.crm-panels-top{grid-template-columns:1fr 1fr}.crm-panels-top>.crm-panel:last-child{grid-column:1/-1}.crm-kpi-row{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.crm-panels-top,.crm-panels-bottom{grid-template-columns:1fr}.crm-panels-top>.crm-panel:last-child{grid-column:auto}.crm-banner-broker{display:none}.crm-headshot{width:140px}.crm-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-welcome{flex-wrap:wrap}}
@media(max-width:720px){header{padding-left:15px}.header-right,.header-sub{display:none}main{padding:18px 16px}.crm-banner{height:130px}.crm-headshot{width:90px;height:130px}.crm-script{font-size:22px}.crm-banner-tag{font-size:9px;letter-spacing:2px}.crm-banner-name em{font-size:10px}.crm-pipeline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Contact profile – isolated from the public website */
.cp-back{margin:0 0 18px;font-size:13px;color:#778ba3}.cp-back span{margin:0 10px;color:#b4c0d0}
.cp-shortcuts{margin:-4px 0 20px;flex-wrap:wrap}.cp-shortcuts a{display:inline-flex;align-items:center;padding:11px 16px;border-radius:11px;background:#fff;border:1px solid #dce5f1;color:#123d71;text-decoration:none;font-weight:700}.cp-shortcuts a:hover{background:#edf4ff}.cp-task-panel{margin-bottom:20px}.cp-task-list{display:grid;gap:8px}.cp-task-row{display:grid;grid-template-columns:115px 1fr 140px;gap:12px;align-items:center;padding:14px 10px;border-bottom:1px solid #e5ecf5}.cp-task-row span{font-size:13px;color:#637992}.cp-task-state{font-weight:700}@media(max-width:700px){.cp-task-row{grid-template-columns:1fr}.cp-shortcuts{gap:8px}}
.cp-hero{display:flex;align-items:center;gap:24px;padding:30px 34px;border-radius:20px;background:linear-gradient(112deg,#091d39,#163e6d 75%,#24608b);color:white;box-shadow:0 15px 34px #0b23401c;margin-bottom:20px}
.cp-avatar{width:84px;height:84px;flex:0 0 84px;display:grid;place-items:center;border-radius:22px;background:#ffffff24;border:1px solid #ffffff4d;font-size:30px;font-weight:800}
.cp-overline{font-size:11px;letter-spacing:2px;font-weight:800;color:#9dbce2}.cp-intro h2{color:white;margin:5px 0;font-size:32px}.cp-intro p{margin:0 0 15px;color:#c9d8ed}
.cp-badges{display:flex;gap:8px;flex-wrap:wrap}.cp-badges span{padding:5px 11px;border:1px solid #ffffff40;background:#ffffff17;border-radius:20px;font-size:12px}.cp-badges .cp-synced{background:#0e9f6e40;border-color:#64d8a5}
.cp-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.cp-panel,.cp-edit{background:white;border:1px solid #e1e8f2;border-radius:17px;padding:26px;box-shadow:0 6px 20px #152b4610}
.cp-panel-title{font-size:11px;letter-spacing:1.6px;color:#617c9d;font-weight:800;margin-bottom:14px}.cp-detail{padding:11px 0;border-bottom:1px solid #edf1f6;display:flex;justify-content:space-between;gap:18px;align-items:start}.cp-detail:last-of-type{border-bottom:0}.cp-detail span{color:#70829a;font-size:13px}.cp-detail strong{font-size:14px;text-align:right;overflow-wrap:anywhere}.cp-detail small{font-weight:400;color:#8090a5}.cp-bt-link{display:inline-block;margin-top:18px;font-weight:700}.cp-empty{color:#75869b}
.cp-edit-head{margin-bottom:18px}.cp-edit-head h3{margin:5px 0;font-size:22px}.cp-edit-head p{margin:0;color:#7a8aa0}.cp-edit form{padding:0;border:0;box-shadow:none}.cp-actions{display:flex;gap:18px;align-items:center;margin-top:14px}
@media(max-width:800px){.cp-summary{grid-template-columns:1fr}.cp-hero{padding:22px;gap:16px}.cp-avatar{width:62px;height:62px;flex-basis:62px;font-size:22px}.cp-intro h2{font-size:25px}}

.cp-timeline{margin-top:18px}.cp-timeline-list{display:flex;flex-direction:column;gap:0;margin-top:14px}.cp-timeline-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:14px;padding:17px 0;border-top:1px solid #e8eef6;align-items:start}.cp-timeline-row strong{color:#0b2545}.cp-timeline-row p{margin:5px 0;color:#6a7e99;font-size:13px}.cp-timeline-row time{font-size:12px;color:#7185a0;white-space:nowrap}.cp-timeline-dot{width:11px;height:11px;border-radius:50%;background:#d20c32;box-shadow:0 0 0 4px #fce9ee;margin-top:5px}.cp-timeline-row a{font-size:13px;font-weight:700}@media(max-width:700px){.cp-timeline-row{grid-template-columns:18px 1fr}.cp-timeline-row time{grid-column:2;white-space:normal}}

/* Appointment attendee search */
.cal-attendee-picker{margin:12px 0}.cal-attendee-selected{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0}.cal-attendee-chip{display:inline-flex;align-items:center;gap:8px;background:#e9f1fb;color:#163d69;border:1px solid #b9d1ea;border-radius:24px;padding:5px 9px 5px 13px;font-size:12px;font-weight:700}.cal-attendee-remove{border:0;background:transparent;color:#163d69;padding:0 3px;font-size:20px;line-height:1;cursor:pointer}.cal-attendee-results{max-height:215px;overflow:auto;border:1px solid #dce5f0;border-radius:9px;background:white;padding:7px;margin-top:7px}.cal-attendee-result{display:flex;flex-direction:column;align-items:flex-start;width:100%;background:white;color:#193b60;border:0;padding:9px 12px;border-radius:6px;text-align:left;cursor:pointer}.cal-attendee-result:hover,.cal-attendee-result:focus{background:#eaf2fc;color:#193b60}.cal-attendee-result small{font-size:11px;color:#6e8094}.cal-attendee-results>.muted{display:block;padding:8px 10px}

/* Attendee search contrast fix: override dark form/button theme only inside picker. */
.cal-attendee-picker .cal-attendee-results{background:#ffffff!important;border:1px solid #cbd5e1!important;padding:6px!important;max-height:260px;overflow-y:auto}
.cal-attendee-picker .cal-attendee-results .cal-attendee-result{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;min-height:54px!important;width:100%!important;margin:0!important;padding:10px 13px!important;background:#ffffff!important;color:#152b46!important;border:0!important;border-bottom:1px solid #e6edf5!important;border-radius:5px!important;box-shadow:none!important;text-align:left!important;line-height:1.35!important}
.cal-attendee-picker .cal-attendee-results .cal-attendee-result strong{color:#122c4c!important;font-size:14px!important;font-weight:750!important;line-height:1.35!important}
.cal-attendee-picker .cal-attendee-results .cal-attendee-result small{color:#53677f!important;font-size:12px!important;line-height:1.35!important;font-weight:500!important}
.cal-attendee-picker .cal-attendee-results .cal-attendee-result:hover,.cal-attendee-picker .cal-attendee-results .cal-attendee-result:focus-visible{background:#eaf2ff!important;color:#122c4c!important;outline:2px solid #8eb5e6;outline-offset:-2px}
.cal-attendee-picker .cal-attendee-results .cal-attendee-result:last-child{border-bottom:0!important}
.cal-attendee-picker .cal-attendee-chip{background:#eaf2ff!important;color:#163d69!important}
.cal-attendee-picker .cal-attendee-chip .cal-attendee-remove{background:transparent!important;color:#163d69!important;border:0!important;box-shadow:none!important;padding:0 4px!important}

/* Contact appointment workspace */
.cp-calendar-panel{background:#fff;border:1px solid #dce6f1;border-radius:15px;padding:22px 25px;margin:18px 0;box-shadow:0 4px 16px #102a4b0a;color:#1b2c43}
.cp-calendar-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.cp-calendar-heading h3{margin:4px 0}.cp-calendar-heading p{color:#65788e;font-size:13px}
.cp-calendar-new{background:#143c69;color:#fff!important;padding:11px 15px;border-radius:9px;font-weight:700;white-space:nowrap}.cp-calendar-new:hover{background:#205788;text-decoration:none}
.cp-calendar-panel h4{margin:20px 0 8px;color:#173f6b;font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.cp-calendar-entry{display:grid;grid-template-columns:minmax(170px,220px) minmax(150px,1fr) minmax(130px,1fr);gap:12px;align-items:center;padding:13px 12px;border:1px solid #e6edf5;border-radius:9px;margin:7px 0;background:#f8fafd;color:#1b2c43;text-decoration:none}
.cp-calendar-entry:hover{background:#eef5ff;text-decoration:none}.cp-calendar-entry strong{font-size:14px}.cp-calendar-entry small,.cp-calendar-date{color:#60768e;font-size:12px}.cp-calendar-empty{font-size:13px;color:#70829a}.cp-calendar-all{display:inline-block;margin-top:12px;font-weight:700}
@media(max-width:780px){.cp-calendar-entry{grid-template-columns:1fr;gap:3px}.cp-calendar-panel{padding:16px}}

/* Contact next-action overview: scoped to contact workspace. */
.cp-next-panel{background:#fff;border:1px solid #dfe8f3;border-radius:15px;padding:22px 24px;margin:18px 0;box-shadow:0 4px 14px #102a4a0b}
.cp-next-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.cp-next-head h3{margin:3px 0;font-size:19px;color:#102b4c}.cp-next-head p{margin:0;color:#718096;font-size:12px}
.cp-next-head>a{padding:9px 13px;background:#143e69;color:#fff;border-radius:8px;font-size:12px;font-weight:750}
.cp-next-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cp-next-tile{background:#f7faff;border:1px solid #e4ecf6;border-radius:11px;padding:15px;display:flex;flex-direction:column;gap:6px;min-width:0}
.cp-next-tile>span{font-size:11px;color:#637a96;text-transform:uppercase;letter-spacing:.5px;font-weight:800}
.cp-next-tile strong{font-size:26px;color:#142d4c;line-height:1.2}.cp-next-tile strong.cp-next-empty{font-size:14px}
.cp-next-tile strong.cp-next-alert{color:#b52234}.cp-next-tile a{font-size:14px;font-weight:800;color:#174c84;overflow-wrap:anywhere}
.cp-next-tile small{font-size:11px;color:#718096}.cp-task-link{text-decoration:none!important;color:inherit}.cp-task-link:hover{background:#f4f8ff}
@media(max-width:850px){.cp-next-grid{grid-template-columns:1fr}.cp-next-panel{padding:17px}}

/* Contact profile: client schedule contrast fix (light card inside dark workspace). */
.cp-calendar-panel{background:#ffffff!important;color:#172b47!important}
.cp-calendar-panel .cp-overline{color:#436b9b!important;opacity:1!important}
.cp-calendar-panel .cp-calendar-heading h3{color:#122e52!important;opacity:1!important;font-weight:800!important}
.cp-calendar-panel .cp-calendar-heading p{color:#52677f!important;opacity:1!important}
.cp-calendar-panel h4{color:#244d7c!important;opacity:1!important;font-weight:800!important}
.cp-calendar-panel .cp-calendar-empty{color:#52677f!important;opacity:1!important}
.cp-calendar-panel .cp-calendar-all{color:#155a9a!important;opacity:1!important}
.cp-calendar-panel .cp-calendar-entry{background:#f5f8fd!important;color:#142d4b!important;border-color:#dce6f1!important}
.cp-calendar-panel .cp-calendar-entry strong{color:#122e52!important;opacity:1!important}
.cp-calendar-panel .cp-calendar-date,.cp-calendar-panel .cp-calendar-entry small{color:#536b85!important;opacity:1!important}
.cp-calendar-panel .cp-calendar-entry:hover{background:#e8f1ff!important}

/* Contact Next Steps panel: explicit contrast against light surfaces. */
.cp-next-panel, .cp-next-panel .cp-next-head { color:#17324f; }
.cp-next-panel .cp-next-head h3, .cp-next-panel h3 { color:#102b4c !important; opacity:1; }
.cp-next-panel .cp-next-head p, .cp-next-panel p { color:#526981 !important; opacity:1; }
.cp-next-panel .cp-next-head .cp-overline, .cp-next-panel .cp-overline { color:#456d9c !important; }
.cp-next-panel .cp-next-tile { color:#17324f; }
.cp-next-panel .cp-next-tile > span { color:#425f81 !important; }
.cp-next-panel .cp-next-tile strong { color:#142d4c !important; }
.cp-next-panel .cp-next-tile strong.cp-next-alert { color:#a51c30 !important; }
.cp-next-panel .cp-next-tile small { color:#526981 !important; }
.cp-next-panel .cp-next-tile a { color:#174c84 !important; }

/* Contact timeline: readable category filters and chronological entries. */
.cp-activity-filters{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 10px;align-items:center}
.cp-activity-filter{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #cdd9e8;border-radius:999px;background:#f5f8fc;color:#173b62!important;font-size:12px;font-weight:750;text-decoration:none!important}
.cp-activity-filter span{background:#e4edf7;color:#234b73;padding:1px 7px;border-radius:999px;font-size:11px}
.cp-activity-filter:hover{background:#e7f0fb}
.cp-activity-filter.is-active{background:#123b68;color:#fff!important;border-color:#123b68}
.cp-activity-filter.is-active span{background:#ffffff30;color:#fff}
.cp-timeline-category{display:inline-block;font-size:10px;letter-spacing:.5px;text-transform:uppercase;font-weight:800;color:#35618d;background:#eaf2fc;border-radius:5px;padding:3px 7px;margin:0 0 7px}
.cp-timeline-row{grid-template-columns:18px minmax(0,1fr) auto;gap:12px}
.cp-timeline-row strong{display:block;color:#142d4d!important;font-size:13px}
.cp-timeline-row p{color:#54677e!important;overflow-wrap:anywhere}
.cp-timeline-row time{color:#637a95!important}
.cp-timeline-communications .cp-timeline-dot{background:#208a71;box-shadow:0 0 0 4px #e0f6ef}
.cp-timeline-appointments .cp-timeline-dot{background:#276bb2;box-shadow:0 0 0 4px #e2effc}
.cp-timeline-follow-ups .cp-timeline-dot{background:#bd7a19;box-shadow:0 0 0 4px #fff0d6}
.cp-timeline-system .cp-timeline-dot{background:#8293aa;box-shadow:0 0 0 4px #e9eef4}
.cp-activity-more{display:block;margin-top:16px;padding:11px 14px;text-align:center;background:#edf4fc;border:1px solid #d6e3f2;border-radius:8px;font-weight:750;color:#164775!important}
.cp-activity-empty,.cp-activity-limit{color:#5b708a!important;padding:16px 0;font-size:13px}
@media(max-width:700px){.cp-timeline-row{grid-template-columns:16px minmax(0,1fr)}.cp-timeline-row time{grid-column:2}.cp-activity-filter{font-size:11px;padding:7px 9px}}
