: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;}
