:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#18283b;background:#f5f7fa;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:#285c8d}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.16;margin-bottom:7px}h2{font-size:18px;letter-spacing:-.4px;margin-bottom:8px}h3{font-size:15px;margin-bottom:5px}.muted{color:#7c8999}.small{font-size:12px}.tiny{font-size:11px}.strong{font-weight:700}.spaced{letter-spacing:1.3px;text-transform:uppercase}.mono{font-variant-numeric:tabular-nums}.right{text-align:right}.hide{display:none!important}
.boot{height:100vh;display:grid;place-content:center;justify-items:center;color:#607286;gap:15px}.spinner{height:30px;width:30px;border-radius:50%;border:3px solid #dae5ed;border-top-color:#2c638d;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.auth-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(350px,45%) 1fr;background:white}.auth-panel{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px 36px}.auth-inner{max-width:400px;width:100%}.auth-logo{display:block;width:240px;max-width:90%;margin:0 auto 28px}.auth-side{background:linear-gradient(135deg,#112b45,#1c4668 64%,#39749c);color:white;display:flex;flex-direction:column;justify-content:center;padding:9%;position:relative;overflow:hidden}.auth-side:after{content:"";position:absolute;width:500px;height:500px;border:1px solid #ffffff22;border-radius:50%;bottom:-260px;right:-160px;box-shadow:0 0 0 80px #ffffff07,0 0 0 160px #ffffff07}.auth-side h1{font-size:46px;max-width:520px;line-height:1.12}.auth-side p{font-size:17px;color:#c5d9e7;max-width:470px}.auth-kicker{font-size:11px;letter-spacing:2px;font-weight:800;color:#9fc1d7;margin-bottom:22px}.auth-footer{margin-top:30px;color:#7c8999;text-align:center;font-size:12px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field label{font-size:12px;color:#4c6075;font-weight:700}.field input,.field textarea,.field select,.search-input{width:100%;border:1px solid #d9e2e9;border-radius:9px;background:#fff;color:#152b40;padding:11px 12px;outline:0;min-height:42px}.field textarea{resize:vertical;min-height:90px}.field input:focus,.field textarea:focus,.field select:focus,.search-input:focus{border-color:#4c83ae;box-shadow:0 0 0 3px #4c83ae22}.field small{color:#8897a7}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-grid .wide{grid-column:1/-1}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;border:1px solid transparent;padding:10px 15px;font-weight:700;font-size:13px;min-height:40px;white-space:nowrap;transition:transform .12s,background .12s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:#173e5f;color:#fff}.btn-primary:hover{background:#235a83}.btn-light{background:#edf4f9;color:#244e6c}.btn-outline{background:#fff;border-color:#d9e2e9;color:#36536b}.btn-danger{background:#fff2f2;border-color:#ffd5d5;color:#ac3940}.btn-plain{border:0;background:transparent;color:#346789;padding:7px 4px}.btn-block{width:100%}.btn-sm{padding:6px 10px;min-height:32px;font-size:12px}.btn-icon{width:36px;height:36px;padding:0;background:white;border:1px solid #d9e2e9;color:#4c6075}.hint{padding:11px 13px;border:1px solid #d8e7f3;border-radius:10px;background:#f2f8fc;color:#48657c;font-size:12px}.error{background:#fff1f1;color:#a43138;border:1px solid #ffd6d9;padding:11px;border-radius:9px;font-size:13px;margin:10px 0}.success{background:#effaf4;color:#28784d;border:1px solid #cfeedd;padding:11px;border-radius:9px;font-size:13px;margin:10px 0}
.shell{display:flex;min-height:100vh}.sidebar{width:250px;flex-shrink:0;background:#fff;border-right:1px solid #e7edf2;display:flex;flex-direction:column;padding:26px 16px 18px;position:sticky;top:0;height:100vh;z-index:20}.brand{padding:6px 13px 26px;border-bottom:1px solid #e8eef3}.brand img{width:175px;max-width:100%;display:block}.brand-title{font-weight:800;font-size:13px;color:#183e5b;margin-top:9px}.brand-sub{font-size:9px;letter-spacing:1.7px;color:#6d879b;font-weight:700}.nav-label{color:#a1adba;font-size:10px;letter-spacing:1.6px;font-weight:800;margin:26px 12px 10px}.nav{display:flex;flex-direction:column;gap:4px}.nav button{border:0;background:transparent;color:#6b7c8d;display:flex;align-items:center;gap:12px;width:100%;text-align:left;border-radius:10px;padding:11px 12px;font-weight:650}.nav button.active{background:#eaf3f9;color:#1b5279}.nav button:hover:not(.active){background:#f6f8fa;color:#234e6b}.nav svg,.header svg,.btn svg{width:17px;height:17px;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding:16px 8px 0;border-top:1px solid #e8eef3}.profile{display:flex;align-items:center;gap:10px;margin-bottom:10px}.avatar{height:37px;width:37px;border-radius:10px;background:#eaf2f8;color:#1d547d;display:grid;place-items:center;font-weight:800}.profile .name{font-weight:750;font-size:12px}.profile .email{font-size:10px;color:#8797a4;max-width:160px;overflow:hidden;text-overflow:ellipsis}.main{flex:1;min-width:0}.header{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8edf2;padding:0 38px;background:#fff}.header-left{font-weight:800;color:#26465f;font-size:15px}.header-right{display:flex;gap:12px;align-items:center}.header-badge{display:flex;align-items:center;gap:7px;border:1px solid #e1eaf0;padding:7px 12px;border-radius:100px;color:#527086;font-size:12px;background:white}.dot{height:7px;width:7px;background:#49a27b;border-radius:50%}.main-content{padding:34px 38px 70px;max-width:1480px;margin:auto}.page-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.page-top p{color:#81909e;margin-bottom:0}.page-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.eyebrow{font-size:10px;color:#7b96a8;font-weight:800;letter-spacing:1.6px;text-transform:uppercase;margin-bottom:8px}
.hero{background:linear-gradient(115deg,#142e48,#285e82);border-radius:17px;padding:27px 30px;display:flex;justify-content:space-between;align-items:center;gap:20px;color:white;margin-bottom:23px;overflow:hidden;position:relative}.hero:after{content:"";position:absolute;right:55px;top:-150px;width:330px;height:330px;border:1px solid #ffffff22;border-radius:50%;box-shadow:0 0 0 55px #ffffff08,0 0 0 115px #ffffff06}.hero h2{font-size:23px;color:white;position:relative;z-index:1}.hero p{color:#c8dce9;margin:0;position:relative;z-index:1}.hero .btn{position:relative;z-index:1;background:#fff;color:#1d496a}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.stat{background:#fff;border:1px solid #e6edf2;border-radius:13px;padding:19px 20px;box-shadow:0 5px 18px #142e4506}.stat-label{font-size:12px;color:#7e8e9e;font-weight:650}.stat-value{font-size:30px;letter-spacing:-1.1px;font-weight:800;margin:9px 0 5px;color:#183c59}.stat-foot{font-size:11px;color:#8c9ba9}.stat-icon{float:right;width:33px;height:33px;border-radius:10px;display:grid;place-items:center;background:#edf4f9;color:#316a91}.stat-icon svg{width:17px;height:17px}
.columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);gap:19px}.card{background:#fff;border:1px solid #e6edf2;border-radius:13px;box-shadow:0 5px 18px #142e4505;min-width:0}.card-head{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f5}.card-head h2{margin:0;font-size:16px}.card-body{padding:20px 22px}.table-scroll{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:left}.data-table th{font-size:10px;color:#9aa8b4;letter-spacing:1px;text-transform:uppercase;font-weight:800;background:#fafbfd;white-space:nowrap}.data-table th,.data-table td{padding:14px 16px;border-bottom:1px solid #edf1f5}.data-table tr:last-child td{border-bottom:0}.data-table td{font-size:12px;color:#4c5d6c}.data-table td strong{color:#203e55}.data-table tbody tr:hover{background:#fafcfd}.initials{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#edf3f7;color:#2a6389;font-weight:800;font-size:11px;margin-right:10px}.namecell{display:flex;align-items:center;white-space:nowrap}.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:99px;background:#eff4f8;color:#426d88;font-size:10px;font-weight:750}.tag.red{background:#fff0ef;color:#a84a4c}.tag.green{background:#ecf9f1;color:#2d8457}.tag.gold{background:#fff8e6;color:#9a7022}.tag.gray{background:#f3f5f7;color:#66788a}.empty{padding:45px 24px;text-align:center;color:#8c9ba9}.empty strong{display:block;color:#4c6579;font-size:14px;margin-bottom:5px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:15px 20px;border-bottom:1px solid #edf1f5}.toolbar .search-input{max-width:320px;min-width:170px;flex:1}.toolbar select{border:1px solid #d9e2e9;border-radius:9px;background:white;padding:10px 12px;color:#435c71;min-height:42px}.toolbar .spacer{flex:1}.activity-item{display:flex;gap:11px;padding:13px 0;border-bottom:1px solid #f0f3f6}.activity-item:last-child{border-bottom:0}.activity-icon{width:33px;height:33px;border-radius:10px;background:#edf4f8;color:#356b91;display:grid;place-items:center;flex-shrink:0}.activity-icon svg{width:16px;height:16px}.activity-item .title{font-weight:700;color:#28455c;font-size:12px}.activity-item .sub{font-size:11px;color:#8495a4;margin-top:3px}.list-actions{display:flex;gap:5px;flex-wrap:wrap}.filter-tabs{display:flex;gap:5px;padding:5px;background:#edf2f6;border-radius:10px;width:max-content;max-width:100%;overflow:auto}.filter-tabs button{border:0;background:transparent;border-radius:7px;padding:8px 13px;font-size:12px;font-weight:700;color:#7c8b9a}.filter-tabs button.active{background:white;color:#285d82;box-shadow:0 1px 4px #00000010}.callout{border:1px solid #dbe8f0;border-radius:13px;background:#f5fafd;padding:20px 22px;color:#47697e}.callout h3{color:#244f6b}.callout p{margin:0;font-size:13px}.footer-note{margin-top:26px;font-size:11px;color:#a2adb7;text-align:center}
.overlay{position:fixed;inset:0;background:#102a4099;z-index:80;display:flex;align-items:center;justify-content:center;padding:22px;overflow:auto}.modal{width:100%;max-width:600px;max-height:92vh;overflow:auto;border-radius:17px;background:#fff;box-shadow:0 24px 100px #0004}.modal.wide{max-width:760px}.modal-head{padding:22px 25px;border-bottom:1px solid #edf1f5;display:flex;align-items:center;justify-content:space-between}.modal-head h2{margin:0}.modal-body{padding:22px 25px}.modal-foot{padding:16px 25px;border-top:1px solid #edf1f5;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.close{border:0;background:#f0f4f7;color:#516c80;width:33px;height:33px;border-radius:9px;font-size:19px}.toast{position:fixed;bottom:22px;right:24px;z-index:150;background:#173c57;color:#fff;padding:13px 18px;border-radius:11px;box-shadow:0 10px 35px #0002;font-weight:650;font-size:12px;max-width:min(400px,calc(100vw - 30px))}.toast.bad{background:#9e343b}.csv-preview{max-height:210px;overflow:auto;border:1px solid #e3eaf0;border-radius:9px}.csv-preview table{font-size:11px}.csv-preview td,.csv-preview th{padding:7px 10px}.import-map{display:grid;grid-template-columns:1fr 1fr;gap:10px}.import-map label{font-size:12px;color:#667b8c}.import-map select{width:100%;border:1px solid #dbe4ea;border-radius:7px;padding:8px;background:white}.qr{max-width:190px;max-height:190px;display:block;margin:12px auto;border:1px solid #e1e7ec;padding:8px}.mobile-toggle{display:none}.backdrop{display:none}
@media(max-width:1150px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.columns{grid-template-columns:1fr}.header{padding:0 25px}.main-content{padding:28px 25px 60px}}
@media(max-width:800px){.auth-wrap{grid-template-columns:1fr}.auth-side{display:none}.auth-panel{min-height:100vh}.sidebar{position:fixed;transform:translateX(-100%);transition:transform .2s;box-shadow:0 0 30px #0001}.sidebar.open{transform:translateX(0)}.backdrop.open{display:block;position:fixed;inset:0;background:#142d4670;z-index:19}.mobile-toggle{display:inline-flex}.header{height:65px;padding:0 18px}.header-left{display:flex;align-items:center;gap:9px}.header-badge{display:none}.main-content{padding:24px 16px 50px}.page-top{flex-direction:column}.page-actions{width:100%}.page-actions .btn{flex:1}.hero{padding:24px;align-items:flex-start;flex-direction:column}.hero h2{font-size:20px}.stats{gap:10px}.stat{padding:15px}.stat-value{font-size:25px}.columns{gap:12px}.card-head{padding:16px}.card-body{padding:16px}.toolbar{padding:12px}.toolbar .search-input{max-width:none}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.overlay{padding:10px}.modal{max-height:96vh}.modal-head,.modal-body,.modal-foot{padding:16px}.import-map{grid-template-columns:1fr}}
@media(max-width:390px){.stats{grid-template-columns:1fr 1fr}.stat-label{font-size:10px}.stat-icon{display:none}.page-actions .btn{font-size:11px;padding:9px}}

.hero-eyebrow{color:#b7d5e7}.flex1{flex:1}.mt5{margin-top:5px}.mt12{margin-top:12px}.mt14{margin-top:14px}.mt18{margin-top:18px}.mt20{margin-top:20px}.mb12{margin-bottom:12px}.mb15{margin-bottom:15px}.mb18{margin-bottom:18px}.padded-activity{padding:15px 20px}.hr-rule{border:0;border-top:1px solid #e8edf2;margin:18px 0}
.card-head>svg{width:18px;height:18px;color:#7e8e9e;flex-shrink:0}

.notification-dot{display:inline-block;width:7px;height:7px;background:#b15d2c;border-radius:50%;margin-left:-5px;vertical-align:top}.mb18{margin-bottom:18px}.mt14{margin-top:14px}.mt20{margin-top:20px}textarea[rows='9']{min-height:210px}

/* Login v2.2: trusted-device session option and persistent inline errors. */
.remember-row{display:flex;align-items:flex-start;gap:10px;cursor:pointer;margin:3px 0 17px;color:#29445b;font-size:12px}
.remember-row input{width:16px;height:16px;margin:2px 0 0;accent-color:#173e5f;flex-shrink:0}
.remember-row span{display:flex;flex-direction:column;gap:1px}
.remember-row strong{font-size:12px;font-weight:700}
.remember-row small{font-size:11px;color:#7c8999}
.login-error{margin:0 0 14px}
.login-error[hidden]{display:none}
.login-version{margin-top:9px;color:#95a2af;text-align:center;font-size:10px}

/* Consolidated Crane CRM upgrade: clickable dashboard, contact lifecycle, rich editor. */
.stat-click{display:block;width:100%;text-align:left;font:inherit;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.stat-click:hover,.stat-click:focus-visible{transform:translateY(-2px);box-shadow:0 8px 25px #142e4514;outline:2px solid #c4dce9;outline-offset:2px}
.dashboard-search{padding:18px 20px;margin-bottom:18px}
.dashboard-search label{display:block;font-weight:800;font-size:12px;color:#29465c;margin-bottom:8px}
.dashboard-search input{width:100%;max-width:620px}
.dashboard-search-results{display:flex;flex-direction:column;gap:3px;max-width:620px}
.search-result{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:0;border-bottom:1px solid #eef2f5;background:#fff;text-align:left;color:#234b68;cursor:pointer;font-weight:700}
.search-result:hover{background:#edf5f9}.search-result span{color:#8293a2;font-size:11px;font-weight:400}
.text-link{padding:0;border:0;background:transparent;color:#235e84;cursor:pointer;font:inherit;text-align:left;text-decoration:underline;text-decoration-color:#a6c3d6;text-underline-offset:3px}
.text-link:hover{color:#12374f}
.field input[type=checkbox],.checkbox-row input[type=checkbox],.checkbox-group input[type=checkbox]{width:17px!important;height:17px!important;min-height:17px!important;accent-color:#235e84;flex:0 0 17px;margin:0}
.checkbox-row{display:flex!important;gap:10px;align-items:flex-start;cursor:pointer;font-size:12px;color:#35566d;line-height:1.5}
.checkbox-group{display:flex;gap:16px;flex-wrap:wrap;padding:10px 0}
.field [hidden],#phaseDetailField[hidden]{display:none!important}
.rich-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:9px 0;border:1px solid #e2eaf0;border-radius:10px;padding:9px;background:#f8fafc}
.rich-toolbar select{max-width:155px;border:1px solid #dbe4ea;border-radius:7px;padding:7px;background:#fff;font-size:12px}
.rich-toolbar input[type=color]{width:30px;height:27px;border:0;background:none;vertical-align:middle;padding:0;cursor:pointer}
.rich-toolbar label{display:flex;align-items:center;gap:6px;font-size:11px}
.rich-editor{border:1px solid #d5e2ea;border-radius:10px;min-height:230px;padding:17px;outline:none;overflow:auto;line-height:1.55;overflow-wrap:anywhere}
.rich-editor:focus{border-color:#2b729a;box-shadow:0 0 0 3px #d9eaf5}
.rich-editor img{max-width:100%;height:auto}.email-preview{width:100%;min-height:340px;border:1px solid #dfe8ee;border-radius:9px;background:#fff}
.automation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.automation-grid .field{margin-bottom:12px}
.automation-grid .form-grid{grid-template-columns:1fr 1fr;gap:10px}
.holiday-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
.holiday-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f5;padding:10px 0;font-size:12px}
.holiday-add{margin-top:24px;padding-top:20px;border-top:1px solid #e8edf2}.holiday-add .form-grid{margin-top:10px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#e8eef2;padding:1px}
.calendar-weekday{text-align:center;background:#f3f7fa;color:#6e8494;font-weight:800;font-size:11px;padding:10px 2px}
.calendar-cell{min-height:105px;background:white;padding:8px;overflow:hidden}.calendar-cell.blank{background:#f9fafb}.calendar-cell.today{background:#f1f8fd}
.calendar-day{font-weight:800;color:#274e6b;font-size:12px;margin-bottom:6px}
.calendar-event{display:block;width:100%;border:0;border-radius:5px;text-align:left;background:#e7f1f9;color:#235a7d;font-size:10px;padding:4px 5px;margin:3px 0;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.calendar-event.holiday{background:#fff3db;color:#876218;cursor:default}.calendar-event.closing{background:#e4f6eb;color:#287b4b}
@media(max-width:1100px){.automation-grid{grid-template-columns:1fr}.holiday-list{grid-template-columns:1fr}}
@media(max-width:800px){.calendar-cell{min-height:68px;padding:3px}.calendar-day{font-size:10px}.calendar-event{font-size:9px;white-space:nowrap}.rich-toolbar{gap:4px}.rich-toolbar .btn{padding:7px}.dashboard-search{padding:15px}}

/* Individual daily reminder preferences (per authenticated CRM user). */
.reminder-opt-in{align-items:center!important;margin:5px 0 20px;font-size:14px!important}
.reminder-opt-in strong{display:block;color:#27465c;font-size:13px}
.reminder-subtext{display:block;margin-top:2px}
.reminder-time-field{max-width:390px}
.reminder-time-field input{width:100%}

/* 2026-11-23: Keep the entire left navigation reachable on short displays. */
.sidebar {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #b5c8d7 transparent;
  scrollbar-gutter: stable;
}
.sidebar::-webkit-scrollbar { width: 10px; }
.sidebar::-webkit-scrollbar-thumb { background: #b5c8d7; border-radius: 10px; border: 2px solid #fff; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
@supports (height: 100dvh) { .sidebar { height: 100dvh; } }

/* Calendar holidays are informational regardless of email automation selection. */
.calendar-event.holiday{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:2px;cursor:default;white-space:normal;overflow-wrap:anywhere}
.calendar-event.holiday small{font-size:9px;font-weight:750;white-space:nowrap}
.calendar-event.holiday-fyi{background:#f2f4f6;color:#52677a}
.calendar-event.holiday-selected{background:#fff1d5;color:#8b5b0d}
.holiday-legend{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 13px;font-size:12px;color:#52677a}
.holiday-legend-chip{display:inline-flex;align-items:center;gap:6px}
.holiday-swatch{width:11px;height:11px;border-radius:3px;display:inline-block}
.holiday-swatch.holiday-fyi{background:#d9dfe4}.holiday-swatch.holiday-selected{background:#f2c773}
.holiday-month-list{display:flex;flex-direction:column;gap:0}
.holiday-month-row{display:grid;grid-template-columns:minmax(90px,135px) 1fr auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf1f5;font-size:12px}
.holiday-month-row:last-child{border-bottom:0}.holiday-month-date{color:#6d8293}
@media(max-width:800px){.calendar-event.holiday small{display:none}.holiday-month-row{grid-template-columns:100px 1fr}.holiday-month-row .tag{grid-column:2;justify-self:start}}

/* Shared/private editable calendar and home dashboard widget. */
.dashboard-calendar{margin:20px 0 22px;overflow:hidden}
.dashboard-calendar-top{padding:18px 20px 8px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.dashboard-calendar-top h2{margin:0 0 4px}
.dashboard-calendar-top p{margin:0}
.calendar-cell[data-action="new-calendar-event"]{cursor:pointer;position:relative}
.calendar-cell[data-action="new-calendar-event"]:hover{background:#f5faff}
.calendar-cell[data-action="new-calendar-event"]:focus-visible{outline:2px solid #3475a7;outline-offset:-2px}
.calendar-day{display:flex;align-items:center;justify-content:space-between}
.calendar-add{font-size:13px;color:#9aabb8;opacity:.7}
.calendar-cell:hover .calendar-add{opacity:1;color:#20587d}
.calendar-event.user-event{background:#eeeaff;color:#52438c;font-weight:700}
.calendar-event.user-event.shared-event{background:#dff4f2;color:#176c66}
.calendar-event.user-event:hover{filter:brightness(.96)}
.calendar-more{display:block;font-size:10px;font-weight:750;color:#5c7286;padding:2px 3px}
.holiday-swatch.event-private{background:#d6cffa}.holiday-swatch.event-shared{background:#a6e3d9}
.calendar-compact .calendar-cell{min-height:87px;padding:6px}
.calendar-compact .calendar-event{font-size:10px}
.calendar-time-field[hidden]{display:none!important}
@media(max-width:800px){.dashboard-calendar-top{padding:15px}.dashboard-calendar-top .list-actions{width:100%;flex-wrap:wrap}.dashboard-calendar-top .list-actions .btn{flex:1}.calendar-compact .calendar-cell{min-height:60px;padding:3px}.calendar-compact .calendar-event{font-size:9px}.calendar-more{font-size:9px}.calendar-add{font-size:11px}}

/* Revision: selection-aware editor and calendar client search */
.rich-toolbar button[aria-pressed="true"]{background:#20587d;color:#fff;border-color:#20587d;box-shadow:inset 0 0 0 1px #20587d}
#customReminderFields[hidden]{display:none!important}
.client-search-results{max-height:180px;overflow:auto;display:grid;gap:4px}
.client-search-result{display:flex;flex-direction:column;text-align:left;gap:3px;background:#fff;border:1px solid #dbe4ea;border-radius:7px;padding:9px;color:#24384a;cursor:pointer}
.client-search-result:hover,.client-search-result:focus-visible{background:#edf5fa}
.client-search-result small{color:#5c7286}

/* Contacts: names open the existing contact details. */
.contact-name-link{font-weight:700;overflow-wrap:anywhere}
.contact-name-link:focus-visible{outline:2px solid #3475a7;outline-offset:3px;border-radius:2px}

#draftMessagePanel[hidden],#draftNotesPanel[hidden]{display:none!important}

.holiday-email-form{width:min(100%,360px);display:grid;gap:5px}.holiday-email-form .field{margin:0}.holiday-email-form textarea{width:100%;min-height:52px}.holiday-row:has(.holiday-email-form){align-items:flex-start;flex-wrap:wrap}

/* Bulk campaign composer */
.bulk-recipients{max-height:260px;overflow:auto;border:1px solid var(--line,#dce4e9);border-radius:10px;padding:8px 12px;margin-top:8px}.bulk-recipient{padding:8px 0;border-bottom:1px solid var(--line,#e7edf0);align-items:flex-start}.bulk-recipient:last-child{border-bottom:0}.bulk-recipient span{overflow-wrap:anywhere}.bulk-recipient small{display:block}.bulk-recipient-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.bulk-recipient-toolbar .list-actions{flex-wrap:wrap}

/* Installed app version and safe user-initiated update. */
.app-version-line{font-size:11px;color:#527086;text-align:center;margin:10px 0 6px}.sidebar-bottom [data-action="reload-app"]{margin-bottom:7px}.app-update-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;background:#eaf3f9;color:#173b55;font-size:13px}.app-update-banner[hidden]{display:none}

/* Integrated recipient autocomplete */
.draft-recipient-combo{border:1px solid #d9e2e9;border-radius:9px;background:#fff;min-width:0;overflow:hidden}
.draft-recipient-combo:focus-within{border-color:#4c83ae;box-shadow:0 0 0 3px #4c83ae22}
.field .draft-recipient-combo input[type="search"]{border:0;border-radius:0;box-shadow:none;min-width:0}
#draftRecipientResults{border-top:1px solid #e0e8ee;max-height:220px;overflow-y:auto;overscroll-behavior:contain}
#draftRecipientResults[hidden]{display:none!important}
.draft-recipient-option{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:10px 12px;text-align:left;background:white;border:0;border-bottom:1px solid #edf1f5;color:#152b40;white-space:normal;overflow-wrap:anywhere;min-height:46px}
.draft-recipient-option:last-child{border-bottom:0}.draft-recipient-option span{font-size:12px;color:#5c7286}.draft-recipient-option:hover,.draft-recipient-option:focus-visible,.draft-recipient-option[aria-selected="true"]{background:#edf5fa;outline:0}
.draft-recipient-empty{padding:12px;color:#65798a;font-size:13px}

#bulkSchedule[hidden]{display:none!important}
#bulkSchedule{margin:12px 0;padding:12px;border:1px solid #d9e2e9;border-radius:9px}

/* Consistent exit controls across all CRM views and dialogs. */
.page-exit-bottom{display:flex;justify-content:flex-end;margin-top:24px;padding-top:18px;border-top:1px solid #e1eaf0}
.modal-head{gap:12px}.modal-head h2{min-width:0;overflow-wrap:anywhere}.modal-head [data-action="close-modal"]{flex-shrink:0}
.auth-exit{display:flex;justify-content:flex-end;margin:14px 0}
@media(max-width:800px){.page-exit-bottom{justify-content:stretch}.page-exit-bottom .btn{width:100%}.modal-head [data-action="close-modal"]{min-height:40px}.modal-foot [data-action="close-modal"]{min-height:40px}}

/* LemonPXL administrator workspace */
.platform-shell{min-height:100vh;background:#f5f7fa;color:#132a44}.platform-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px clamp(16px,4vw,48px);background:#fff;border-bottom:1px solid #dce4ec;flex-wrap:wrap}.platform-header>div:last-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap;overflow-wrap:anywhere}.platform-wordmark{font-size:26px;font-weight:800;letter-spacing:-1px;color:#132a44}.platform-main{max-width:1250px;margin:0 auto;padding:24px clamp(12px,3vw,36px);display:grid;gap:20px}.platform-main .stats{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}.platform-main .data-table td{overflow-wrap:anywhere}.platform-main .data-table td .btn{margin:3px}.platform-main .card-head{flex-wrap:wrap;gap:12px}.platform-main .page-top{margin-bottom:0}.platform-main .card{min-width:0}.platform-main .table-scroll{overflow-x:auto}.platform-main .page-exit-bottom{margin-top:0}

.platform-status{display:inline-block;font-size:12px;font-weight:650;padding:4px 8px;border-radius:6px;white-space:normal}.platform-status.is-active{color:#155c36;background:#e7f4eb}.platform-status.is-restricted{color:#8a351c;background:#fff0e8}.platform-main .data-table td{vertical-align:middle}

.team-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.team-summary h2{font-size:28px;margin-bottom:0}@media(max-width:600px){.team-summary{grid-template-columns:1fr;gap:10px}}

/* Owner permission controls */
[data-action][hidden]{display:none!important}.access-actions{display:flex;flex-wrap:wrap;gap:7px;min-width:160px}.access-actions .btn{font-size:12px;padding:7px 10px}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.permission-grid fieldset{border:1px solid #d9e2e9;border-radius:10px;padding:12px;min-width:0;margin:0}.permission-grid legend{font-weight:700;padding:0 6px;color:#24384a}.permission-choice{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #edf1f4;cursor:pointer;font-size:14px}.permission-choice:last-child{border-bottom:0}.permission-choice input{width:18px;height:18px;flex:none;accent-color:#132a44}.permission-choice span{line-height:1.35}@media(max-width:640px){.permission-grid{grid-template-columns:1fr}.access-actions{min-width:140px}}

/* 4.4.5.1 guided onboarding: isolated, non-mutating training layer */
.crm-tour{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden;color:#18283b;overscroll-behavior:contain}
.crm-tour::backdrop{background:transparent}.crm-tour:not(.has-spot){background:#102a40a8}.crm-tour-spot{position:fixed;pointer-events:none;border:3px solid #e5b748;border-radius:12px;box-shadow:0 0 0 200vmax #102a40a8}.crm-tour-spot[hidden]{display:none}
.crm-tour-panel{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #dce6ef;border-radius:19px;padding:22px;box-shadow:0 18px 60px #071c3450}
.crm-tour.has-spot .crm-tour-panel{transform:none;left:auto;right:12px;top:auto;bottom:auto}.crm-tour.tour-hub .crm-tour-panel{width:min(580px,calc(100vw - 24px))}.crm-tour-top{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#557084;font-size:12px}.crm-tour-kicker{font-size:10px;font-weight:800;letter-spacing:1.4px;color:#285b7e}.crm-tour progress{display:block;width:100%;height:6px;accent-color:#bd8a20;margin:10px 0 16px}.crm-tour h2{font-size:23px;line-height:1.2;margin:8px 0 10px;color:#173c57}.crm-tour h2:focus{outline:none}.crm-tour p{font-size:14px;line-height:1.5}.crm-tour-actions,.crm-tour-hub-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:14px}.crm-tour-actions .btn,.crm-tour-hub-actions .btn{min-height:42px}.crm-tour-note{font-size:11px!important;color:#64778a;margin:12px 0 0}.crm-tour-practice{display:grid;gap:7px;padding:12px;background:#f0f5f9;border-radius:12px}.crm-tour-practice .btn{white-space:normal;text-align:left;justify-content:flex-start;background:#fff;min-height:40px}.crm-tour-practice .btn[aria-pressed=true]{border-color:#285b7e;background:#dceaf5}.crm-tour-feedback{margin:0;font-size:12px!important;color:#285b7e}.crm-tour-error{color:#a02d35;background:#fff0f0;border-radius:8px;padding:10px}.crm-tour-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:36dvh;overflow:auto}.crm-tour-topics .btn{white-space:normal;text-align:left;justify-content:flex-start}.crm-tour button:focus-visible{outline:3px solid #c28d22;outline-offset:2px}
@media(max-width:600px){.crm-tour-panel{padding:16px;max-height:calc(100dvh - 24px)}.crm-tour h2{font-size:20px}.crm-tour-actions{gap:5px}.crm-tour-actions .btn{padding:9px 11px}.crm-tour-topics{grid-template-columns:1fr}.crm-tour.has-spot .crm-tour-panel{right:12px;left:12px;width:auto}}

/* Expanded training content */
.crm-tour-panel{width:min(520px,calc(100vw - 24px))}.crm-tour-instructions{margin:14px 0}.crm-tour-instructions h3,.crm-tour-example h3,.crm-tour-tip h3{font-size:13px;line-height:1.4;margin:0 0 7px;color:#173c57}.crm-tour-instructions ol{margin:0;padding-left:22px;display:grid;gap:9px;font-size:14px;line-height:1.48}.crm-tour-instructions li::marker{font-weight:700;color:#285b7e}.crm-tour-example,.crm-tour-tip{border-radius:10px;padding:11px 13px;margin:10px 0}.crm-tour-example{background:#edf4f9}.crm-tour-tip{background:#faf6e9;border-left:3px solid #bd8a20}.crm-tour-example p,.crm-tour-tip p{margin:0;font-size:13px}.crm-tour-actions{position:sticky;bottom:-22px;background:#fff;padding:10px 0 6px;z-index:1;border-top:1px solid #e5edf2}.crm-tour-panel{scroll-padding-bottom:90px}.crm-tour-practice{margin-top:12px}@media(max-width:600px){.crm-tour-actions{bottom:-16px}.crm-tour-instructions ol{font-size:13px;gap:7px}.crm-tour-example,.crm-tour-tip{padding:9px 11px}}

.crm-tour.tour-with-preview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;padding:16px;background:#102a40d9;align-items:stretch}.crm-tour-preview{min-width:0;overflow:auto;background:#f3f6fa;border-radius:16px;padding:12px;overscroll-behavior:contain}.crm-tour-preview[hidden]{display:none}.crm-tour-preview-banner{position:sticky;top:0;z-index:2;background:#173c57;color:white;padding:10px;border-radius:8px;margin-bottom:10px;font-size:11px;font-weight:800;letter-spacing:.6px}.crm-tour-preview .modal{max-width:none;max-height:none;overflow:visible;box-shadow:none}.crm-tour-preview .modal-foot button:disabled{opacity:.65}.crm-tour.tour-with-preview .crm-tour-panel{position:relative;inset:auto!important;transform:none;width:100%;max-height:none;min-width:0;align-self:stretch}.crm-tour-preview input:focus,.crm-tour-preview select:focus,.crm-tour-preview textarea:focus{outline:2px solid #bd8a20;outline-offset:2px}@media(max-width:800px){.crm-tour.tour-with-preview{grid-template-columns:1fr;grid-template-rows:minmax(0,46%) minmax(0,1fr);gap:8px;padding:8px}.crm-tour-preview{padding:7px}.crm-tour.tour-with-preview .crm-tour-panel{max-height:100%;padding:12px}.crm-tour-preview .modal-body{padding:12px}}

/* Collapsible holiday automation submenu */
.holiday-email-menu > summary {cursor:pointer;list-style:none;}
.holiday-email-menu > summary::-webkit-details-marker {display:none;}
.holiday-email-menu > summary:focus-visible {outline:2px solid currentColor;outline-offset:-4px;}
.holiday-menu-indicator {font-size:1.4rem;line-height:1;transition:transform .15s;}
.holiday-email-menu[open] > summary .holiday-menu-indicator {transform:rotate(180deg);}
.holiday-menu-actions {display:flex;justify-content:flex-end;margin-bottom:12px;}

/* 4.4.8: responsive workspace foundation */
:root{--crm-accent:#235a83;--crm-border:#dce5ee;--crm-muted:#52677b;background:#f3f6fa}
.sidebar{overflow-y:auto;overscroll-behavior:contain;padding-top:18px}.nav-label{margin-top:17px;color:#61778a}.nav button{min-height:40px}.nav button.active{box-shadow:inset 3px 0 var(--crm-accent)}.card,.stat{border-radius:16px;border-color:var(--crm-border);box-shadow:0 2px 8px #173e5f08}.muted{color:var(--crm-muted)}.btn{border-radius:10px}.btn:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #377fb4;outline-offset:2px}.daily-workspace{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#eaf2f9;border:1px solid #d6e4f0;border-radius:16px;padding:22px;margin:18px 0}.daily-workspace h2{font-size:23px;margin:5px 0}.daily-workspace p{margin:0;color:#52677b}.quick-grid{display:flex;flex-wrap:wrap;gap:8px}.contact-summary{display:flex;align-items:center;gap:12px;margin-bottom:14px}.contact-summary .avatar{width:48px;height:48px;font-size:18px}.contact-quick{margin-bottom:20px}.automation-summary{background:#eef4fa;border-radius:9px;padding:10px;color:#294e70;font-size:13px}.gmail-status{display:flex;align-items:center;gap:7px;background:white;border:1px solid var(--crm-border);border-radius:20px;padding:7px 11px;color:#294e70;font-size:12px}.connection-dot{width:8px;height:8px;border-radius:50%;background:#b7791f}.connection-dot.connected{background:#16805d}.mobile-bottom,.mobile-quick{display:none}
@media(max-width:800px){.main-content{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.daily-workspace{align-items:flex-start;flex-direction:column;padding:16px}.quick-grid .btn{min-height:44px;white-space:normal}.mobile-bottom{position:fixed;display:flex;justify-content:space-around;bottom:0;left:0;right:0;background:white;border-top:1px solid var(--crm-border);padding:5px 4px calc(5px + env(safe-area-inset-bottom));z-index:15}.mobile-bottom button{display:flex;flex:1;min-width:0;min-height:52px;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:transparent;color:#52677b;font-size:11px}.mobile-bottom button.active{color:#173e5f;background:#eaf2f9;border-radius:10px;font-weight:700}.mobile-bottom svg{width:21px;height:21px}.mobile-quick{display:grid;place-items:center;position:fixed;right:16px;bottom:calc(76px + env(safe-area-inset-bottom));width:48px;height:48px;border:0;border-radius:50%;background:#173e5f;color:white;z-index:14;box-shadow:0 4px 16px #173e5f40}.mobile-quick svg{width:24px;height:24px}.header-right .header-badge{display:none}.gmail-status{font-size:11px;padding:6px}.overlay{padding:0}.overlay>.modal{width:100%;max-width:none;max-height:100dvh;height:100dvh;border-radius:0;display:flex;flex-direction:column}.overlay>.modal>.modal-body{flex:1;overflow:auto;min-height:0}.overlay>.modal>.modal-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom))}.overlay>.modal .field input,.overlay>.modal .field select,.overlay>.modal .field textarea{font-size:16px}.overlay>.modal .btn{min-height:44px}.sidebar{height:100dvh}.form-grid{min-width:0}.form-grid>*{min-width:0;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.btn,.sidebar{transition:none}.btn:hover{transform:none}}

/* 5.0.0 daily briefing and responsive visual polish */
.briefing{margin:0 0 20px;overflow:hidden}.briefing .card-head h2{margin:0;font-size:20px}.brief-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:16px}.brief-item{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;position:relative;background:#f4f8fc;color:#24445e;border:1px solid #dce5ee;border-radius:12px;padding:14px;min-width:0;font-weight:650}.brief-item strong{font-size:26px;line-height:1.2;color:#173e5f}.brief-item svg{position:absolute;right:12px;bottom:15px;width:16px;height:16px}.brief-item:not(.brief-info):hover{background:#e8f1f8}.brief-info{background:#fff}.brief-health{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;padding:12px 16px;border-top:1px solid #e4ebf1;font-size:12px;color:#52677b}.brief-health .btn{margin-left:auto}.header{background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}.header-left{display:flex;align-items:center;gap:10px}.desktop-collapse{display:none}.approval-toolbar{position:sticky;top:0;z-index:2;background:white;padding:8px 0;flex-wrap:wrap}.activity-item{min-width:0}.activity-item .sub{overflow-wrap:anywhere}.contact-summary{padding:14px;background:#f3f7fb;border-radius:12px}.contact-quick a{text-decoration:none}.card .empty{padding:24px 16px}.boot .spinner{width:36px;height:36px}.toast{max-width:calc(100vw - 32px);overflow-wrap:anywhere}.nav button span{min-width:0}.mobile-bottom button span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media(min-width:801px){.desktop-collapse{display:inline-flex}.sidebar-compact .sidebar{width:76px;padding:12px 8px}.sidebar-compact .sidebar .brand{padding:10px 0}.sidebar-compact .brand-title,.sidebar-compact .brand-sub,.sidebar-compact .nav-label,.sidebar-compact .nav button span,.sidebar-compact .sidebar-bottom{display:none}.sidebar-compact .nav{margin-top:12px}.sidebar-compact .nav button{justify-content:center;padding:12px}.sidebar-compact .nav button[data-action="tutorial-help"]{font-size:0;gap:0}.sidebar-compact .nav button svg{width:21px;height:21px}}
@media(max-width:800px){.brief-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:8px}.brief-item{padding:12px;font-size:12px}.brief-health .btn{margin-left:0}.brief-health{align-items:flex-start}.header-left{font-size:13px;gap:5px}.approval-toolbar .btn{white-space:normal;min-height:44px}.toast{bottom:calc(85px + env(safe-area-inset-bottom))}}

.bulk-step{border:1px solid var(--border,#dbe2ea);border-radius:14px;padding:16px;margin:14px 0}.bulk-step h3{margin:0 0 14px}.bulk-presets{display:flex;flex-wrap:wrap;gap:8px}.bulk-step summary{cursor:pointer;padding:12px 0;font-weight:600}

.recurring-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--border,#ddd)}

.workspace-search-trigger{white-space:nowrap}.workspace-shortcut{font-size:10px;opacity:.7;margin-left:4px}.workspace-results{margin-top:14px;max-height:55vh;overflow:auto}.workspace-result{display:flex;align-items:flex-start;gap:12px;text-align:left;width:100%;padding:12px;border:0;border-bottom:1px solid #dce3eb;background:transparent;color:inherit}.workspace-result:hover,.workspace-result:focus-visible{background:#edf4fa}.workspace-result small{display:block;overflow-wrap:anywhere}.workspace-result span:last-child{min-width:0;overflow-wrap:anywhere}@media(max-width:700px){.workspace-shortcut{display:none}.workspace-search-trigger{padding:6px 8px;font-size:12px}}

.contact-shortcut-panel:empty{display:none}.contact-shortcut-panel{display:grid;gap:12px;margin-bottom:16px}.contact-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.contact-shortcuts .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* Workspace appearance */
html[data-crm-theme="dark"] a{color:#cadbeb;}
html[data-crm-theme="dark"] .muted{color:#ced3d9;}
html[data-crm-theme="dark"] .boot{color:#d0d6dd;}
html[data-crm-theme="dark"] .spinner{border:3px solid #1c2d3a;}
html[data-crm-theme="dark"] .field label{color:#d2d9e2;}
html[data-crm-theme="dark"] .field input,html[data-crm-theme="dark"] .field textarea,html[data-crm-theme="dark"] .field select,html[data-crm-theme="dark"] .search-input{border:1px solid #202e38;background:#192532;color:#d4e2ef;}
html[data-crm-theme="dark"] .field small{color:#cad1d8;}
html[data-crm-theme="dark"] .btn-light{background:#142734;color:#cee0ec;}
html[data-crm-theme="dark"] .btn-outline{background:#192532;border-color:#202e38;color:#d0dde8;}
html[data-crm-theme="dark"] .btn-danger{background:#311212;border-color:#3a1616;color:#e9c5c7;}
html[data-crm-theme="dark"] .btn-plain{color:#c9ddeb;}
html[data-crm-theme="dark"] .btn-icon{background:#192532;border:1px solid #202e38;color:#d2d9e2;}
html[data-crm-theme="dark"] .hint{border:1px solid #172c3d;background:#132532;color:#cfdbe3;}
html[data-crm-theme="dark"] .error{background:#311313;color:#eac7c9;border:1px solid #3a1619;}
html[data-crm-theme="dark"] .success{background:#133322;color:#ccecdb;border:1px solid #19422b;}
html[data-crm-theme="dark"] .sidebar{background:#192532;border-right:1px solid #1b2832;}
html[data-crm-theme="dark"] .brand{border-bottom:1px solid #1a2833;}
html[data-crm-theme="dark"] .brand-title{color:#d1e1ee;}
html[data-crm-theme="dark"] .brand-sub{color:#ccd5dc;}
html[data-crm-theme="dark"] .nav button{color:#d0d5db;}
html[data-crm-theme="dark"] .nav button.active{background:#142835;color:#cee0ec;}
html[data-crm-theme="dark"] .nav button:hover:not(.active){background:#18222b;color:#cee0ed;}
html[data-crm-theme="dark"] .sidebar-bottom{border-top:1px solid #1a2833;}
html[data-crm-theme="dark"] .avatar{background:#142736;color:#cddfec;}
html[data-crm-theme="dark"] .profile .email{color:#cbd2d8;}
html[data-crm-theme="dark"] .header{border-bottom:1px solid #1c2731;background:#192532;}
html[data-crm-theme="dark"] .header-left{color:#d0e0ec;}
html[data-crm-theme="dark"] .header-badge{border:1px solid #1b2b36;color:#ced9e1;background:#192532;}
html[data-crm-theme="dark"] .page-top p{color:#cdd3d8;}
html[data-crm-theme="dark"] .eyebrow{color:#c9d4db;}
html[data-crm-theme="dark"] .hero .btn{background:#192532;color:#cfe0ed;}
html[data-crm-theme="dark"] .stat{background:#192532;border:1px solid #1b2934;}
html[data-crm-theme="dark"] .stat-label{color:#ccd3d9;}
html[data-crm-theme="dark"] .stat-value{color:#d1e1ee;}
html[data-crm-theme="dark"] .stat-foot{color:#cad1d8;}
html[data-crm-theme="dark"] .stat-icon{background:#142734;color:#c9ddea;}
html[data-crm-theme="dark"] .card{background:#192532;border:1px solid #1b2934;}
html[data-crm-theme="dark"] .card-head{border-bottom:1px solid #1a252f;}
html[data-crm-theme="dark"] .data-table th{color:#c8d0d6;background:#121c2e;}
html[data-crm-theme="dark"] .data-table th,html[data-crm-theme="dark"] .data-table td{border-bottom:1px solid #1a252f;}
html[data-crm-theme="dark"] .data-table td{color:#d4dbe1;}
html[data-crm-theme="dark"] .data-table td strong{color:#d1e1ee;}
html[data-crm-theme="dark"] .data-table tbody tr:hover{background:#12252e;}
html[data-crm-theme="dark"] .initials{background:#162732;color:#cadeeb;}
html[data-crm-theme="dark"] .tag{background:#162532;color:#ccdce6;}
html[data-crm-theme="dark"] .tag.red{background:#321513;color:#e6c6c7;}
html[data-crm-theme="dark"] .tag.green{background:#143520;color:#caebda;}
html[data-crm-theme="dark"] .tag.gold{background:#352b14;color:#ebdfc9;}
html[data-crm-theme="dark"] .tag.gray{background:#1c232a;color:#d0d6dc;}
html[data-crm-theme="dark"] .empty{color:#cad1d8;}
html[data-crm-theme="dark"] .empty strong{color:#d1dae2;}
html[data-crm-theme="dark"] .toolbar{border-bottom:1px solid #1a252f;}
html[data-crm-theme="dark"] .toolbar select{border:1px solid #202e38;background:#192532;color:#d1dbe4;}
html[data-crm-theme="dark"] .activity-item{border-bottom:1px solid #1b242d;}
html[data-crm-theme="dark"] .activity-icon{background:#142934;color:#c8dcea;}
html[data-crm-theme="dark"] .activity-item .title{color:#d1e0eb;}
html[data-crm-theme="dark"] .activity-item .sub{color:#cbd2d9;}
html[data-crm-theme="dark"] .filter-tabs{background:#182631;}
html[data-crm-theme="dark"] .filter-tabs button{color:#ced3d9;}
html[data-crm-theme="dark"] .filter-tabs button.active{background:#192532;color:#cbdeeb;}
html[data-crm-theme="dark"] .callout{border:1px solid #192e3b;background:#122530;color:#cfdce4;}
html[data-crm-theme="dark"] .callout h3{color:#cee1ec;}
html[data-crm-theme="dark"] .footer-note{color:#c8ced4;}
html[data-crm-theme="dark"] .modal{background:#192532;}
html[data-crm-theme="dark"] .modal-head{border-bottom:1px solid #1a252f;}
html[data-crm-theme="dark"] .modal-foot{border-top:1px solid #1a252f;}
html[data-crm-theme="dark"] .close{background:#19252f;color:#d0dae1;}
html[data-crm-theme="dark"] .csv-preview{border:1px solid #1c2934;}
html[data-crm-theme="dark"] .import-map label{color:#cfd7dc;}
html[data-crm-theme="dark"] .import-map select{border:1px solid #202e37;background:#192532;}
html[data-crm-theme="dark"] .qr{border:1px solid #202a33;}
@media(max-width:1150px){}
@media(max-width:800px){}
@media(max-width:390px){}
html[data-crm-theme="dark"] .hr-rule{border-top:1px solid #1c2731;}
html[data-crm-theme="dark"] .card-head>svg{color:#ccd3d9;}
html[data-crm-theme="dark"] .remember-row{color:#d2dfeb;}
html[data-crm-theme="dark"] .remember-row small{color:#ced3d9;}
html[data-crm-theme="dark"] .login-version{color:#c9d0d6;}
html[data-crm-theme="dark"] .dashboard-search label{color:#d1e0eb;}
html[data-crm-theme="dark"] .search-result{border-bottom:1px solid #1b262e;background:#192532;color:#cfe0ed;}
html[data-crm-theme="dark"] .search-result:hover{background:#142934;}
html[data-crm-theme="dark"] .search-result span{color:#ccd3d9;}
html[data-crm-theme="dark"] .text-link{color:#ccdfeb;}
html[data-crm-theme="dark"] .text-link:hover{color:#d3e4ee;}
html[data-crm-theme="dark"] .checkbox-row{color:#d0dee8;}
html[data-crm-theme="dark"] .holiday-row{border-bottom:1px solid #1a252f;}
html[data-crm-theme="dark"] .holiday-add{border-top:1px solid #1c2731;}
html[data-crm-theme="dark"] .calendar-grid{background:#1c2931;}
html[data-crm-theme="dark"] .calendar-weekday{background:#142431;color:#ced6db;}
html[data-crm-theme="dark"] .calendar-cell{background:#192532;}
html[data-crm-theme="dark"] .calendar-cell.blank{background:#1a2127;}
html[data-crm-theme="dark"] .calendar-cell.today{background:#132532;}
html[data-crm-theme="dark"] .calendar-day{color:#cedfec;}
html[data-crm-theme="dark"] .calendar-event{background:#152736;color:#cce0ec;}
html[data-crm-theme="dark"] .calendar-event.holiday{background:#382d15;color:#ece1cc;}
html[data-crm-theme="dark"] .calendar-event.closing{background:#153823;color:#ccecd9;}
@media(max-width:1100px){}
@media(max-width:800px){}
html[data-crm-theme="dark"] .reminder-opt-in strong{color:#d1e0eb;}
html[data-crm-theme="dark"] .sidebar::-webkit-scrollbar-thumb{background: #273a49;border: 2px solid #1f1f1f;}
@supports (height: 100dvh) {}
html[data-crm-theme="dark"] .calendar-event.holiday-fyi{background:#1d242a;color:#d1d9e0;}
html[data-crm-theme="dark"] .calendar-event.holiday-selected{background:#3a2e16;color:#ece0cd;}
html[data-crm-theme="dark"] .holiday-legend{color:#d1d9e0;}
html[data-crm-theme="dark"] .holiday-swatch.holiday-fyi{background:#262e35;}
html[data-crm-theme="dark"] .holiday-swatch.holiday-selected{background:#5e4a24;}
html[data-crm-theme="dark"] .holiday-month-row{border-bottom:1px solid #1a252f;}
html[data-crm-theme="dark"] .holiday-month-date{color:#cfd6db;}
@media(max-width:800px){}
html[data-crm-theme="dark"] .calendar-cell[data-action="new-calendar-event"]:hover{background:#122130;}
html[data-crm-theme="dark"] .calendar-add{color:#c6d0d7;}
html[data-crm-theme="dark"] .calendar-cell:hover .calendar-add{color:#cddfec;}
html[data-crm-theme="dark"] .calendar-event.user-event{background:#191333;color:#d1cbe6;}
html[data-crm-theme="dark"] .calendar-event.user-event.shared-event{background:#163a37;color:#cfedeb;}
html[data-crm-theme="dark"] .calendar-more{color:#d0d7df;}
html[data-crm-theme="dark"] .holiday-swatch.event-private{background:#1e173e;}
html[data-crm-theme="dark"] .holiday-swatch.event-shared{background:#1f534a;}
@media(max-width:800px){}
html[data-crm-theme="dark"] .client-search-result{background:#192532;border:1px solid #202e37;color:#d5e0eb;}
html[data-crm-theme="dark"] .client-search-result:hover,html[data-crm-theme="dark"] .client-search-result:focus-visible{background:#142734;}
html[data-crm-theme="dark"] .client-search-result small{color:#d0d7df;}
html[data-crm-theme="dark"] .bulk-recipients{border:1px solid var(--line,#222e35);}
html[data-crm-theme="dark"] .bulk-recipient{border-bottom:1px solid var(--line,#1e2a30);}
html[data-crm-theme="dark"] .app-version-line{color:#ced9e1;}
html[data-crm-theme="dark"] .app-update-banner{background:#142835;color:#d2e2ee;}
html[data-crm-theme="dark"] .draft-recipient-combo{border:1px solid #202e38;background:#192532;}
html[data-crm-theme="dark"] #draftRecipientResults{border-top:1px solid #1d2b35;}
html[data-crm-theme="dark"] .draft-recipient-option{background:#192532;border-bottom:1px solid #1a252f;color:#d4e2ef;}
html[data-crm-theme="dark"] .draft-recipient-option span{color:#d0d7df;}
html[data-crm-theme="dark"] .draft-recipient-option:hover,html[data-crm-theme="dark"] .draft-recipient-option:focus-visible,html[data-crm-theme="dark"] .draft-recipient-option[aria-selected="true"]{background:#142734;}
html[data-crm-theme="dark"] .draft-recipient-empty{color:#d0d7dc;}
html[data-crm-theme="dark"] #bulkSchedule{border:1px solid #202e38;}
html[data-crm-theme="dark"] .page-exit-bottom{border-top:1px solid #1b2b36;}
@media(max-width:800px){}
html[data-crm-theme="dark"] .platform-shell{background:#17202d;color:#d4e1ef;}
html[data-crm-theme="dark"] .platform-header{background:#192532;border-bottom:1px solid #1e2b37;}
html[data-crm-theme="dark"] .platform-wordmark{color:#d4e1ef;}
html[data-crm-theme="dark"] .platform-status.is-active{color:#d1eedf;background:#183521;}
html[data-crm-theme="dark"] .platform-status.is-restricted{color:#ecd3cc;background:#341f14;}
@media(max-width:600px){}
html[data-crm-theme="dark"] .permission-grid fieldset{border:1px solid #202e38;}
html[data-crm-theme="dark"] .permission-grid legend{color:#d5e0eb;}
html[data-crm-theme="dark"] .permission-choice{border-bottom:1px solid #1c262e;}
@media(max-width:640px){}
html[data-crm-theme="dark"] .crm-tour{color:#d6e1ee;}
html[data-crm-theme="dark"] .crm-tour-panel{background:#192532;border:1px solid #1a2b3a;}
html[data-crm-theme="dark"] .crm-tour-top{color:#cfd9e0;}
html[data-crm-theme="dark"] .crm-tour-kicker{color:#ccdfec;}
html[data-crm-theme="dark"] .crm-tour h2{color:#d2e2ee;}
html[data-crm-theme="dark"] .crm-tour-note{color:#d0d6dd;}
html[data-crm-theme="dark"] .crm-tour-practice{background:#142532;}
html[data-crm-theme="dark"] .crm-tour-practice .btn{background:#192532;}
html[data-crm-theme="dark"] .crm-tour-practice .btn[aria-pressed=true]{background:#162b3b;}
html[data-crm-theme="dark"] .crm-tour-feedback{color:#ccdfec;}
html[data-crm-theme="dark"] .crm-tour-error{color:#eac7ca;background:#311313;}
@media(max-width:600px){}
html[data-crm-theme="dark"] .crm-tour-instructions h3,html[data-crm-theme="dark"] .crm-tour-example h3,html[data-crm-theme="dark"] .crm-tour-tip h3{color:#d2e2ee;}
html[data-crm-theme="dark"] .crm-tour-instructions li::marker{color:#ccdfec;}
html[data-crm-theme="dark"] .crm-tour-example{background:#142734;}
html[data-crm-theme="dark"] .crm-tour-tip{background:#352d14;}
html[data-crm-theme="dark"] .crm-tour-actions{background:#192532;border-top:1px solid #1a2a34;}
@media(max-width:600px){}
html[data-crm-theme="dark"] .crm-tour-preview{background:#142031;}
@media(max-width:800px){}
html[data-crm-theme="dark"] .nav-label{color:#cfd7de;}
html[data-crm-theme="dark"] .daily-workspace{background:#142635;border:1px solid #182d3f;}
html[data-crm-theme="dark"] .daily-workspace p{color:#d1d9e0;}
html[data-crm-theme="dark"] .automation-summary{background:#142434;color:#cdddec;}
html[data-crm-theme="dark"] .gmail-status{background:#192532;color:#cdddec;}
@media(max-width:800px){html[data-crm-theme="dark"] .mobile-bottom{background:#192532;}
html[data-crm-theme="dark"] .mobile-bottom button{color:#d1d9e0;}
html[data-crm-theme="dark"] .mobile-bottom button.active{color:#d1e0ee;background:#142635;}}
@media(prefers-reduced-motion:reduce){}
html[data-crm-theme="dark"] .brief-item{background:#132231;color:#d0e0ed;border:1px solid #1c2a39;}
html[data-crm-theme="dark"] .brief-item strong{color:#d1e0ee;}
html[data-crm-theme="dark"] .brief-item:not(.brief-info):hover{background:#152736;}
html[data-crm-theme="dark"] .brief-info{background:#192532;}
html[data-crm-theme="dark"] .brief-health{border-top:1px solid #1b2934;color:#d1d9e0;}
html[data-crm-theme="dark"] .approval-toolbar{background:#192532;}
html[data-crm-theme="dark"] .contact-summary{background:#132232;}
@media(min-width:801px){}
@media(max-width:800px){}
html[data-crm-theme="dark"] .bulk-step{border:1px solid var(--border,#202b37);}
html[data-crm-theme="dark"] .recurring-row{border-bottom:1px solid var(--border,#2e2e2e);}
html[data-crm-theme="dark"] .workspace-result{border-bottom:1px solid #1f2a37;}
html[data-crm-theme="dark"] .workspace-result:hover,html[data-crm-theme="dark"] .workspace-result:focus-visible{background:#142534;}
@media(max-width:700px){}
html[data-crm-theme="dark"]{color-scheme:dark;background:#111b26;color:#e5edf5;--crm-border:#35485b;--crm-muted:#b2c3d4;--crm-accent:#79b9e9}html[data-crm-theme="dark"] .header{background:#192532}html[data-crm-theme="dark"] .brand img{background:white;border-radius:6px;padding:4px}html[data-crm-theme="dark"] a{color:#9bd0ff}html[data-crm-theme="dark"] #richEditor{color-scheme:light;background:white;color:#152b40} .display-settings{margin-bottom:18px}@media(min-width:801px){html[data-crm-density="compact"] .main-content{padding:16px}html[data-crm-density="compact"] .card-body{padding:12px}html[data-crm-density="compact"] .card-head{padding:12px}html[data-crm-density="compact"] .activity-item{padding-top:8px;padding-bottom:8px}html[data-crm-density="compact"] td,html[data-crm-density="compact"] th{padding-top:7px;padding-bottom:7px}}@media(max-width:480px){.header-right{gap:4px}.header-left{min-width:0}.header-right .gmail-status{max-width:95px;white-space:normal}.modal-foot{flex-wrap:wrap}.bulk-step{padding:10px}.workspace-result{min-height:44px}}

.contact-optional>summary{cursor:pointer;font-weight:600;padding:10px 0}.contact-optional[open]>summary{margin-bottom:8px}.contact-shortcuts{flex-wrap:wrap}.contact-shortcuts .btn{white-space:normal}@media(max-width:600px){#modalOverlay .modal{width:100%;max-width:100%;max-height:100dvh;border-radius:0;margin:0;min-height:0}#modalOverlay .modal-body{min-height:0;overflow-y:auto}#modalOverlay .modal-foot{flex-wrap:wrap;padding-bottom:max(12px,env(safe-area-inset-bottom))}#modalOverlay .modal-foot .btn,#modalOverlay .modal-head .btn,.contact-shortcuts .btn{min-height:44px}.page-actions{flex-wrap:wrap}.page-actions .btn{min-height:44px}.contact-optional .form-grid{grid-template-columns:minmax(0,1fr)}}

/* Shared clock picker */
.crm-clock-trigger{display:block;margin-top:5px;padding:6px 10px;border:1px solid currentColor;border-radius:7px;background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:.85rem}input:disabled+.crm-clock-trigger,input[readonly]+.crm-clock-trigger{display:none}.crm-clock-dialog{width:min(340px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #9ca3af;border-radius:14px;padding:20px;background:Canvas;color:CanvasText;box-shadow:0 12px 40px #0005}.crm-clock-dialog::backdrop{background:#0007}.crm-clock-dialog h2{margin:0 0 12px;font-size:1.2rem}.crm-clock-readout,.crm-clock-actions{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px 0}.crm-clock-dialog button,.crm-clock-dialog select{font:inherit;padding:8px;border:1px solid #9ca3af;border-radius:7px;background:Canvas;color:CanvasText;cursor:pointer}.crm-clock-readout button{font-size:1.5rem}.crm-clock-dialog button[aria-pressed=true],.crm-clock-actions [data-apply]{background:#245da8;color:white;border-color:#245da8}.crm-clock-face{position:relative;width:min(240px,100%);aspect-ratio:1;margin:auto;border-radius:50%;background:color-mix(in srgb,CanvasText 8%,Canvas)}.crm-clock-face button{position:absolute;transform:translate(-50%,-50%);width:36px;height:36px;padding:0;border-radius:50%}.crm-clock-exact{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:12px}.crm-clock-actions{justify-content:flex-end;margin-bottom:0}
