
:root{--navy:#0e2432;--navy2:#15384b;--green:#8ec63f;--bg:#f4f7f9;--card:#fff;--text:#17232b;--muted:#64737d;--line:#dce4e8;--danger:#b42318}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}.hidden{display:none!important}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#0d2533,#163d51)}
.auth-card{width:min(440px,100%);background:#fff;border-radius:22px;padding:34px;box-shadow:0 28px 80px rgba(0,0,0,.25)}
.logo{display:flex;align-items:center;gap:12px;font-size:25px;font-weight:900;letter-spacing:-.03em;color:var(--navy)}
.logo-mark{width:44px;height:44px;object-fit:contain;display:block;flex:0 0 44px}.sidebar-brand{display:block}.sidebar-full-logo{display:block;width:168px;max-width:100%;height:auto;background:#fff;border-radius:10px;padding:7px 9px;object-fit:contain}.auth-logo-full{display:block;width:min(310px,90%);height:auto;max-height:180px;object-fit:contain;margin:0 auto 10px}.nav-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--green);color:#132914;font-size:10px;font-weight:900;margin-left:6px}.profile-chip{display:flex;align-items:center;gap:10px}.avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;border:1px solid var(--line);background:#eef2f4}.avatar.sm{width:34px;height:34px}.avatar.lg{width:92px;height:92px}.avatar-fallback{display:grid;place-items:center;font-weight:900;color:var(--navy);background:#e9f3dc}.progress{height:9px;border-radius:999px;background:#e8eef1;overflow:hidden}.progress>span{display:block;height:100%;background:var(--green);border-radius:inherit}.profile-grid{display:grid;grid-template-columns:1.05fr 1.95fr;gap:16px}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.info-item{border:1px solid var(--line);border-radius:11px;padding:11px;background:#fafcfd}.info-item span{display:block;font-size:11px;color:var(--muted);text-transform:uppercase;font-weight:800;letter-spacing:.04em}.info-item strong{display:block;margin-top:4px;font-size:14px}.my-day{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.task-list{display:grid;gap:9px}.task{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:11px;background:#fff}.task.overdue{border-color:#efb4ae;background:#fff8f7}.task .meta{font-size:12px;color:var(--muted);margin-top:3px}.filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:9px}.timeline{display:grid;gap:0}.timeline-item{padding:12px 0;border-bottom:1px solid #e8eef1}.timeline-item:last-child{border-bottom:0}.timeline-item strong{display:block;font-size:13px}.timeline-item .small{margin-top:3px}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:7px}.completion-alert{border:1px solid #efd49b;background:#fff9eb;color:#674a12;border-radius:13px;padding:13px 14px;margin-bottom:16px}.completion-alert strong{display:block;margin-bottom:4px}.team-member-row{cursor:pointer}.team-member-row:hover{background:#f7fafb}.mobile-fab{display:none;position:fixed;right:18px;bottom:18px;z-index:15;border:0;border-radius:999px;background:var(--green);color:#122815;padding:13px 17px;font-weight:900;box-shadow:0 10px 28px rgba(0,0,0,.2)}
.auth-card h1{font-size:28px;margin:28px 0 8px}.sub{color:var(--muted);line-height:1.55;margin:0 0 24px}
.field{display:grid;gap:7px;margin:14px 0}.field label{font-size:13px;font-weight:800}.field input,.field select,.field textarea{width:100%;border:1px solid #cad5db;border-radius:11px;padding:12px 13px;background:#fff}.field textarea{min-height:90px;resize:vertical}
.btn{border:0;border-radius:11px;padding:11px 15px;font-weight:850;cursor:pointer}.btn-primary{background:var(--navy);color:#fff}.btn-green{background:var(--green);color:#132914}.btn-light{background:#edf2f4;color:var(--navy)}.btn-danger{background:#fff0ef;color:var(--danger);border:1px solid #f3c6c2}.btn:disabled{opacity:.5;cursor:not-allowed}
.auth-card .btn{width:100%;margin-top:8px}.msg{font-size:13px;margin-top:14px;padding:10px 12px;border-radius:10px;background:#f1f5f7}.msg.error{background:#fff0ef;color:var(--danger)}
.app{min-height:100vh;display:grid;grid-template-columns:255px 1fr}.side{background:var(--navy);color:#fff;padding:26px 18px;display:flex;flex-direction:column;gap:24px;position:sticky;top:0;height:100vh}.side .logo{color:#fff;padding:0 6px}.nav{display:grid;gap:7px}.nav button{background:transparent;border:0;color:#c8d5dc;text-align:left;padding:11px 12px;border-radius:9px;font-weight:750;cursor:pointer;display:flex;align-items:center;gap:9px}.nav button.active,.nav button:hover{background:rgba(255,255,255,.11);color:#fff}.nav-nova-avatar{width:24px;height:24px;object-fit:contain;flex:0 0 24px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.18))}.side-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.14);padding-top:16px}.who{font-size:13px;color:#c7d4da;line-height:1.5}.main{padding:28px 34px 60px;min-width:0}.top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:24px}.top h1{font-size:31px;margin:0 0 6px;letter-spacing:-.035em}.top p{margin:0;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat,.card{background:var(--card);border:1px solid var(--line);border-radius:15px;box-shadow:0 4px 18px rgba(18,42,54,.04)}.stat{padding:18px}.stat span{font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.stat strong{display:block;font-size:26px;margin-top:8px}.card{padding:20px;margin-top:16px}.card h2{margin:0 0 14px;font-size:18px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid #e8eef1;vertical-align:top}th{font-size:12px;text-transform:uppercase;color:#6b7982;letter-spacing:.04em}.pill{display:inline-block;border-radius:999px;background:#edf3f5;padding:5px 8px;font-size:11px;font-weight:850}.pill.verify-ok{background:#edf8ef;color:#235d31}.pill.verify-warn{background:#fff7e8;color:#7a4a00}.pill.verify-muted{background:#eef2f4;color:#53636d}.verify-panel{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:10px 0;background:#f8fbfc}.verify-panel strong{display:block;margin-bottom:4px}.verify-row{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;margin:7px 0}.verify-row .small{flex:1}.verify-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.verify-note{font-size:11px;color:var(--muted);margin-top:8px}.address-autocomplete-wrap{position:relative}.address-suggestions{position:absolute;z-index:50;left:0;right:0;top:100%;margin-top:4px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 28px rgba(16,44,57,.18);max-height:250px;overflow:auto}.address-suggestion{display:block;width:100%;text-align:left;border:0;background:#fff;padding:10px 12px;font:inherit;cursor:pointer;border-bottom:1px solid #edf1f3}.address-suggestion:last-child{border-bottom:0}.address-suggestion:hover,.address-suggestion:focus{background:#f2f7f8;outline:none}.address-suggestion strong{display:block;font-size:13px}.address-suggestion span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.address-suggestions-note{padding:10px 12px;color:var(--muted);font-size:11px}
.resource-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:14px}
.resource-search{position:relative}
.resource-search input{padding-left:38px}
.resource-search:before{content:"⌕";position:absolute;left:13px;top:50%;transform:translateY(-52%);font-size:20px;color:#75858e;pointer-events:none}
.resource-filter{display:flex;gap:7px;flex-wrap:wrap}
.resource-filter button{border:1px solid #cad6dc;background:#fff;border-radius:999px;padding:8px 11px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.resource-filter button.active,.resource-filter button:hover{background:var(--navy);border-color:var(--navy);color:#fff}
.resource-hero{border:1px solid #cfe2d1;background:linear-gradient(135deg,#f4fbf5,#f8fbfc);border-radius:16px;padding:18px;margin-bottom:14px}
.resource-hero h2{margin:0 0 6px;font-size:21px}.resource-hero p{margin:0;color:#52646e;line-height:1.55}
.resource-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.resource-quick button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:13px;text-align:left;cursor:pointer;font:inherit}
.resource-quick button:hover{border-color:#9db2bc;box-shadow:0 4px 14px rgba(18,42,54,.06)}
.resource-quick strong{display:block;font-size:13px}.resource-quick span{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.resource-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:17px;cursor:pointer;transition:.16s ease;min-height:178px;display:flex;flex-direction:column}
.resource-card:hover{transform:translateY(-1px);border-color:#9eb2bd;box-shadow:0 7px 20px rgba(18,42,54,.07)}
.resource-card .resource-icon{font-size:26px;line-height:1;margin-bottom:12px}
.resource-card h3{margin:0 0 7px;font-size:16px}
.resource-card p{margin:0;color:#5b6b74;font-size:12px;line-height:1.5}
.resource-card .resource-meta{margin-top:auto;padding-top:12px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.resource-tag{display:inline-block;background:#edf3f5;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:850;color:#43555f}
.resource-updated{font-size:10px;color:#7a8991}
.resource-detail{max-width:940px}
.resource-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.resource-detail-head h2{margin:0 0 6px;font-size:26px}
.resource-back{border:0;background:transparent;color:var(--navy2);font-weight:850;cursor:pointer;padding:5px 0;margin-bottom:10px}
.resource-back:hover{text-decoration:underline}
.resource-body{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;line-height:1.62;color:#273740}
.resource-body h3{margin:22px 0 8px;font-size:18px;color:var(--navy)}
.resource-body h3:first-child{margin-top:0}
.resource-body h4{margin:18px 0 6px;font-size:14px}
.resource-body p{margin:8px 0}
.resource-body ul,.resource-body ol{margin:8px 0 14px;padding-left:22px}
.resource-body li{margin:5px 0}
.resource-body .callout{padding:12px 14px;border-radius:11px;background:#f7fafb;border-left:4px solid var(--navy2);margin:12px 0}
.resource-body .warning{padding:12px 14px;border-radius:11px;background:#fff7e8;border-left:4px solid #d39a2b;margin:12px 0}
.resource-body .success{padding:12px 14px;border-radius:11px;background:#eef7e6;border-left:4px solid #75a946;margin:12px 0}
.resource-body a{color:var(--navy2);font-weight:800}
.resource-body .resource-table{width:100%;border-collapse:collapse;margin:12px 0 18px}
.resource-body .resource-table th,.resource-body .resource-table td{font-size:12px;padding:10px;border-bottom:1px solid #e7edef}
.script-block{border:1px solid #d9e4e8;background:#fbfcfd;border-radius:12px;padding:14px;margin:12px 0}
.script-block .script-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}
.script-block .script-head strong{font-size:13px}
.script-copy{padding:6px 9px!important;font-size:11px!important}
.script-text{white-space:pre-wrap;margin:0;color:#34454e;font-size:13px;line-height:1.55}
.resource-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.resource-link{display:block;border:1px solid var(--line);border-radius:11px;padding:12px;text-decoration:none!important;background:#fff}
.resource-link:hover{border-color:#9eb2bd;background:#fafcfd}
.resource-link strong{display:block;color:var(--navy);font-size:13px}
.resource-link span{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-top:3px}
.resource-empty{grid-column:1/-1;padding:28px;text-align:center;border:1px dashed #cbd7dc;border-radius:14px;color:var(--muted)}
.member-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.member-quick-actions .btn{width:100%}
.member-action-note{font-size:11px;color:var(--muted);margin-top:7px}
@media(max-width:640px){.member-quick-actions{grid-template-columns:1fr}}

.dashboard-resource-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.dashboard-resource-links button{border:1px solid var(--line);background:#fff;border-radius:11px;padding:11px;text-align:left;cursor:pointer;font:inherit}
.dashboard-resource-links button:hover{border-color:#9eb2bd;background:#fafcfd}
.dashboard-resource-links strong{display:block;font-size:12px}.dashboard-resource-links span{display:block;color:var(--muted);font-size:10px;margin-top:2px}
@media(max-width:980px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-quick,.dashboard-resource-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.resource-toolbar{grid-template-columns:1fr}.resource-grid{grid-template-columns:1fr}.resource-quick,.dashboard-resource-links,.resource-link-grid{grid-template-columns:1fr}.resource-body{padding:16px}.resource-detail-head{flex-direction:column}}
.pill.danger{background:#fff0ef;color:var(--danger)}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.lead-card{border:1px solid var(--line);border-radius:13px;padding:16px;background:#fff}.lead-card h3{margin:0 0 5px}.lead-card p{margin:5px 0;color:#55656f;font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.actions .btn{padding:8px 10px;font-size:12px}.lead-contact-block{margin:10px 0 4px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#f8fbfc}.lead-contact-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}.lead-contact-line+.lead-contact-line{margin-top:7px}.lead-contact-line a{font-weight:800}.lead-contact-source{font-size:10px;color:var(--muted);margin-top:7px;line-height:1.4}.contact-return-prompt{margin-top:10px;padding:10px 12px;border-radius:11px;background:#fff7e8;border:1px solid #f0d7a5}.contact-return-prompt strong{display:block;margin-bottom:3px}.contact-return-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}@media(max-width:640px){.lead-contact-line .btn,.contact-return-actions .btn{flex:1 1 120px;text-align:center}.lead-contact-block{padding:10px}}.section{display:none}.section.active{display:block}.modal{position:fixed;inset:0;background:rgba(9,24,32,.42);display:grid;place-items:center;padding:20px;z-index:20}.modal-card{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;padding:22px}.modal-head{display:flex;justify-content:space-between;gap:15px;align-items:center}.modal-head h2{margin:0}.x{border:0;background:#edf2f4;border-radius:50%;width:34px;height:34px;font-size:18px;cursor:pointer}.small{font-size:12px;color:var(--muted)}.empty{padding:26px;text-align:center;color:var(--muted)}.alert{padding:12px 14px;border-radius:10px;background:#fff7e8;color:#7a4a00;margin:12px 0}.slot-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.slot-btn{border:1px solid #cbd8de;background:#fff;border-radius:10px;padding:9px 12px;font-weight:800;cursor:pointer}.slot-btn:hover,.slot-btn.selected{background:var(--navy);color:#fff;border-color:var(--navy)}.day-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:10px;overflow:auto}.day-card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:13px;text-align:left;cursor:pointer;min-width:120px}.day-card:hover{border-color:#9eb2bd}.day-card strong{display:block}.day-card span{font-size:12px;color:var(--muted)}.day-card.closed{opacity:.55;cursor:default}.selected-slot{margin-top:8px;font-size:13px;font-weight:800;color:var(--navy)}.availability-box{border:1px solid var(--line);border-radius:14px;background:#f8fafb;padding:14px;margin-top:9px}.availability-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.availability-head strong{font-size:14px}.availability-days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:2px 0 8px}.availability-day{min-width:0;border:1px solid #cbd8de;background:#fff;border-radius:11px;padding:9px 7px;text-align:left;cursor:pointer}.availability-day:hover,.availability-day.selected{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy)}.availability-day strong{display:block;font-size:13px}.availability-day span{display:block;font-size:11px;color:var(--muted);margin-top:3px}.availability-day.closed{opacity:.5;cursor:default}.availability-slots{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.availability-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #cad5db;background:#fff;border-radius:11px;padding:12px 13px;cursor:pointer;text-align:left}.availability-trigger strong{font-size:14px}.availability-trigger span{font-size:12px;color:var(--muted)}.availability-confirmed{margin-top:8px;padding:10px 12px;background:#eef6e4;border:1px solid #d1e7b7;border-radius:10px;font-size:13px;font-weight:800;color:#2b4a12}
@media(max-width:920px){.app{grid-template-columns:1fr}.side{height:auto;position:static;padding:14px 14px 10px;gap:12px}.side .logo{justify-content:center}.nav{display:flex;overflow-x:auto;gap:7px;padding-bottom:3px}.nav button{white-space:nowrap;flex:0 0 auto}.side-bottom{margin-top:0;display:flex;align-items:center;gap:10px;justify-content:space-between}.side-bottom .btn{width:auto!important;margin-top:0!important}.main{padding:20px 14px 78px}.grid{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:1fr}.profile-grid,.my-day{grid-template-columns:1fr}.mobile-fab{display:block}}
@media(max-width:560px){.grid{grid-template-columns:1fr}.top{display:block}.top .btn{margin-top:12px}.filters{grid-template-columns:1fr}.info-grid{grid-template-columns:1fr}.auth-card{padding:26px 20px}.who{font-size:11px}.team-table-hide-mobile{display:none}}


.admin-document-card{display:flex;flex-direction:column;gap:12px}.admin-document-head{display:flex;align-items:center;gap:12px}.admin-document-head>div:last-child{min-width:0}.admin-document-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.admin-document-meta .info-item{margin:0}.admin-document-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}.admin-vault-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-vault-record{border:1px solid var(--line);border-radius:14px;padding:15px;background:#fff}.admin-vault-record h3{margin:0 0 6px}.admin-vault-record .actions{margin-top:12px}.admin-signature-box{background:#f7faf8;border:1px solid #dce6df;border-radius:12px;padding:14px;margin:14px 0}.admin-signature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-document-text{white-space:pre-wrap;line-height:1.65;background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;margin-top:14px}.admin-doc-back{margin-bottom:14px}.admin-record-list{display:grid;gap:9px;margin-top:10px}.admin-record-row{background:#f7faf8;border:1px solid #e1e8e4;border-radius:10px;padding:10px 12px}.admin-doc-packet-note{font-size:12px;color:var(--muted);margin-top:8px}
.executed-signature-certificate{border:1px solid #d7e3dc;background:#f8fbf9;border-radius:14px;padding:16px;margin:14px 0}.executed-signature-certificate h3{margin:0 0 12px}.executed-signers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.executed-signer{background:#fff;border:1px solid #dce6df;border-radius:12px;padding:14px}.executed-signer.pending{background:#fffaf0;border-color:#ead9a5}.executed-signer .esign-script{font-family:"Segoe Script","Bradley Hand",cursive;font-size:22px;font-weight:700;color:#183a29;margin:8px 0}.executed-signer .esign-meta{display:grid;gap:4px;font-size:12px;color:var(--muted)}.executed-signer .esign-meta strong{color:var(--ink);font-weight:800}.executed-document-note{font-size:12px;color:var(--muted);margin:8px 0 12px}.admin-document-text.executed{font-family:Arial,sans-serif;font-size:14px;white-space:pre-wrap}.counter-sign-panel{border:1px solid #dfe7e2;border-radius:14px;padding:16px;background:#fff}.counter-sign-panel .field{margin-bottom:12px}@media(max-width:760px){.executed-signers{grid-template-columns:1fr}}
@media(max-width:760px){.admin-vault-grid{grid-template-columns:1fr}.admin-document-meta,.admin-signature-grid{grid-template-columns:1fr}.admin-document-actions .btn{flex:1 1 100%}}
@media(max-width:760px){
  .org-directory-table thead{display:none}
  .org-directory-table,.org-directory-table tbody,.org-directory-table tr,.org-directory-table td{display:block;width:100%}
  .org-directory-table tr{border:1px solid var(--line);border-radius:14px;padding:14px 14px 12px;margin-bottom:12px;background:#fff}
  .org-directory-table td{border:0;padding:0 0 10px}
  .org-directory-table td:last-child{padding-bottom:0}
  .org-directory-table td::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#6b7982}
  .org-directory-table td:first-child::before{display:none}
  .org-directory-table .profile-chip{align-items:flex-start}
  .org-directory-table .profile-chip .small{word-break:break-word;line-height:1.35}
  .org-directory-table .org-actions-cell .btn{width:100%}
  .org-directory-table .pill{display:inline-flex}
}

@media(max-width:640px){
  .modal{width:auto;max-height:none;padding:10px}
  .modal-card{max-height:94vh;width:100%}
  .modal-body{padding:14px}
  .availability-box{padding:11px}
  .availability-days{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .availability-day{padding:8px 5px;text-align:center}
  .availability-day strong{font-size:11px;line-height:1.2}
  .availability-day span{font-size:10px}
  .availability-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .slot-btn{width:100%;padding:9px 5px;font-size:12px}
  .availability-trigger{padding:11px}
  .field textarea{min-height:84px}
  .mobile-sticky-submit{position:sticky;bottom:-14px;z-index:5;padding:10px 0 4px;background:linear-gradient(to top,#fff 75%,rgba(255,255,255,0))}
}


.auth-link-btn{display:block;width:100%;border:0;background:transparent;color:var(--navy2);font-weight:800;cursor:pointer;padding:12px 8px 2px;text-align:center}

.dm-picker-search{margin-bottom:12px}
.dm-picker-list{display:grid;gap:8px;max-height:340px;overflow:auto;padding-right:2px}
.dm-picker-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.dm-picker-item:hover{border-color:#9db1bc;background:#f8fbfc}
.dm-picker-item.selected{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy);background:#f4f9fb}
.dm-picker-copy{min-width:0;flex:1}
.dm-picker-copy strong{display:block;font-size:14px;line-height:1.3}
.dm-picker-copy span{display:block;font-size:12px;color:var(--muted);margin-top:2px;line-height:1.35}
.dm-picker-check{font-size:18px;font-weight:900;color:var(--green);visibility:hidden}
.dm-picker-item.selected .dm-picker-check{visibility:visible}
.dm-picker-empty{padding:18px 12px;border:1px dashed var(--line);border-radius:12px;text-align:center;font-size:12px;color:var(--muted);background:#fafcfd}
.dm-picker-actions{margin-top:14px;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:640px){.dm-picker-list{max-height:52vh}.dm-picker-item{padding:10px}.dm-picker-actions .btn{width:100%}}

.auth-link-btn:hover{text-decoration:underline}
.forgot-details{margin-top:4px}
.forgot-details summary{list-style:none;text-align:center;color:var(--navy2);font-weight:800;cursor:pointer;padding:10px 8px 4px}
.forgot-details summary::-webkit-details-marker{display:none}
.forgot-details summary:hover{text-decoration:underline}
.forgot-inline-panel{margin-top:10px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafb}
.forgot-inline-panel .field{margin-bottom:10px}
.forgot-inline-panel .small{display:block;line-height:1.45;margin-bottom:10px}

.security-card{border:1px solid var(--line);border-radius:14px;padding:16px;background:#fafcfd;margin-top:16px}
.security-card .security-row{display:flex;justify-content:space-between;align-items:center;gap:14px}
.security-card .security-copy strong{display:block;font-size:14px}
.security-card .security-copy span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
@media(max-width:640px){.sidebar-full-logo{width:145px}.security-card .security-row{align-items:flex-start;flex-direction:column}.security-card .btn{width:100%}}


.admin-alert-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.admin-calendar-shell{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.8fr);gap:14px;margin-top:14px}
.admin-calendar-card,.admin-agenda-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:15px}
.admin-calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.admin-calendar-toolbar .actions{margin:0}
.admin-calendar-filters{display:flex;gap:8px;flex-wrap:wrap}
.admin-calendar-filters select{width:auto;min-width:150px;padding:9px 10px;border:1px solid #cbd8de;border-radius:9px;background:#fff}
.admin-calendar-weekdays,.admin-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.admin-calendar-weekdays div{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:800;text-align:center;padding:4px}
.admin-day{min-height:116px;border:1px solid var(--line);border-radius:10px;padding:7px;background:#fff;overflow:hidden;cursor:pointer}
.admin-day:hover{border-color:#9db1bc}
.admin-day.outside{opacity:.4;background:#f7f9fa}
.admin-day.today{box-shadow:inset 0 0 0 2px var(--green)}
.admin-day.selected{box-shadow:inset 0 0 0 2px var(--navy)}
.admin-day-number{font-weight:900;font-size:12px;margin-bottom:5px}
.admin-event{display:block;width:100%;border:0;border-radius:7px;padding:5px 6px;margin:4px 0;text-align:left;font-size:10px;font-weight:800;cursor:pointer;background:#eef3f5;color:#132d3b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-event.scheduled{background:#edf7df}
.admin-event.tentative{background:#f0f3f5}
.admin-event.held{background:#e4f1fb}
.admin-event.no_show{background:#fff0dc}
.admin-event.cancelled{background:#fde8e8;text-decoration:line-through}
.admin-event.disqualified{background:#f8dddd}
.admin-event.rescheduled{background:#eee8fb}
.admin-agenda-list{display:flex;flex-direction:column;gap:9px}
.admin-agenda-item{border:1px solid var(--line);border-radius:11px;padding:11px;cursor:pointer;background:#fff}
.admin-agenda-item:hover{border-color:#9db1bc}
.admin-agenda-item .toolbar{margin:0}
.admin-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.admin-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.btn-warning{background:#fff0dc;border:1px solid #f1c98e;color:#6f4300}
.btn-danger-solid{background:#a92d2d;color:#fff;border:1px solid #a92d2d}
.btn-success{background:#eaf6df;border:1px solid #badb98;color:#294d14}
.appointment-history{max-height:220px;overflow:auto;border-top:1px solid var(--line);margin-top:14px;padding-top:10px}
.appointment-history-item{padding:8px 0;border-bottom:1px solid #edf1f3}
@media(max-width:900px){
  .admin-alert-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-calendar-shell{grid-template-columns:1fr}
}
@media(max-width:640px){
  .admin-calendar-card{padding:10px}
  .admin-calendar-grid,.admin-calendar-weekdays{gap:3px}
  .admin-day{min-height:86px;padding:4px}
  .admin-day-number{font-size:10px}
  .admin-event{font-size:9px;padding:4px}
  .admin-control-grid,.admin-action-grid{grid-template-columns:1fr}
  .admin-calendar-filters{display:grid;grid-template-columns:1fr;width:100%}
  .admin-calendar-filters select{width:100%}
}


.first-login-lock{overflow:hidden}



/* Employee Motivation Experience v2.8.0 */
:root{--gold:#f2b84b;--gold-soft:#fff6df;--success-deep:#315f17}
.motivation-shell{margin:0 0 18px}
.motivation-hero{position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(135deg,#0e2432 0%,#12394b 62%,#315f3d 130%);color:#fff;padding:24px;box-shadow:0 18px 48px rgba(12,35,50,.17)}
.motivation-hero:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-90px;top:-120px;background:radial-gradient(circle,rgba(142,198,63,.34),rgba(142,198,63,0) 70%);pointer-events:none}
.motivation-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center}
.motivation-person{display:flex;align-items:center;gap:13px;margin-bottom:15px}.motivation-person .avatar{width:48px;height:48px;border:2px solid rgba(255,255,255,.45)}
.motivation-kicker{display:block;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#cbe99f;margin-bottom:4px}
.motivation-person strong{display:block;font-size:15px}.motivation-person span{display:block;font-size:11px;color:#c9d6dc;margin-top:2px}
.motivation-hero h2{font-size:30px;line-height:1.08;margin:0 0 9px;letter-spacing:-.035em;max-width:720px}.motivation-hero p{margin:0;color:#d9e4e9;font-size:14px;line-height:1.55;max-width:720px}
.motivation-ring{--pct:0;--ring:var(--green);width:132px;height:132px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--ring) calc(var(--pct)*1%),rgba(255,255,255,.14) 0);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.motivation-ring.goal-hit{--ring:var(--gold)}.motivation-ring-inner{width:102px;height:102px;border-radius:50%;background:#0e2a38;display:grid;place-items:center;text-align:center;padding:8px}.motivation-ring-inner strong{font-size:26px;line-height:1}.motivation-ring-inner span{display:block;font-size:9px;line-height:1.25;color:#c8d7de;text-transform:uppercase;letter-spacing:.06em;margin-top:5px;font-weight:800}
.motivation-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.motivation-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;color:#f3f8fa}.motivation-badge.gold{background:rgba(242,184,75,.15);border-color:rgba(242,184,75,.38);color:#ffe4a8}
.motivation-score-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:12px}
.motivation-score{position:relative;background:#fff;border:1px solid var(--line);border-radius:17px;padding:15px 16px;min-height:104px;box-shadow:0 5px 18px rgba(18,42,54,.04)}.motivation-score .score-icon{font-size:21px}.motivation-score span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.065em;color:#6a7982;font-weight:900;margin-top:8px}.motivation-score strong{display:block;font-size:27px;line-height:1.05;color:var(--navy);margin-top:4px}.motivation-score small{display:block;font-size:10px;color:#71818a;margin-top:5px}.motivation-score.good{border-color:#cee3ba;background:linear-gradient(180deg,#fff,#f7fbf2)}.motivation-score.gold{border-color:#efd49b;background:linear-gradient(180deg,#fff,#fffaf0)}
.mission-card{border:1px solid #dce7d3;background:linear-gradient(135deg,#f9fcf6,#fff);border-radius:20px;padding:18px;margin-top:12px}.mission-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.mission-head h2{font-size:19px;margin:0}.mission-head span{font-size:11px;color:#61727b;font-weight:800}.mission-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.mission-item{display:flex;gap:10px;align-items:flex-start;border:1px solid #e1e9dd;border-radius:13px;background:#fff;padding:11px}.mission-item .mission-icon{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:#eff7e7;flex:0 0 31px}.mission-item.attn{border-color:#efd49b;background:#fffaf0}.mission-item.urgent{border-color:#efc0bb;background:#fff8f7}.mission-copy strong{display:block;font-size:12px;color:var(--navy)}.mission-copy span{display:block;font-size:10px;color:#6d7c84;margin-top:3px;line-height:1.35}
.motivation-cta-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.motivation-cta-row .btn{font-size:12px;padding:9px 11px}
.coach-banner{display:flex;gap:12px;align-items:flex-start;border:1px solid #dce7d3;background:linear-gradient(135deg,#f7fbf3,#fff);border-radius:16px;padding:14px;margin-bottom:12px}.coach-icon{font-size:25px;line-height:1}.coach-banner strong{display:block;color:var(--navy)}.coach-banner span{display:block;color:#687983;font-size:12px;margin-top:3px;line-height:1.45}
.team-health-pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900}.team-health-pill.good{background:#edf8ef;color:#235d31}.team-health-pill.watch{background:#fff7e8;color:#7a4a00}.team-health-pill.help{background:#fff0ef;color:#962b22}
@media(max-width:900px){.motivation-score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mission-list{grid-template-columns:1fr}.motivation-hero-grid{grid-template-columns:1fr}.motivation-ring{width:116px;height:116px}.motivation-ring-inner{width:90px;height:90px}}
@media(max-width:560px){.motivation-hero{padding:19px;border-radius:20px}.motivation-hero h2{font-size:25px}.motivation-hero-grid{gap:16px}.motivation-ring{width:108px;height:108px}.motivation-ring-inner{width:84px;height:84px}.motivation-ring-inner strong{font-size:22px}.motivation-score-grid{grid-template-columns:1fr 1fr;gap:8px}.motivation-score{padding:13px;min-height:96px}.motivation-score strong{font-size:24px}.motivation-person{margin-bottom:12px}.motivation-cta-row .btn{flex:1 1 calc(50% - 4px)}}

@media print{
  body{background:#fff}
  .side,.top,.resource-back,.resource-detail-head .actions,.mobile-fab{display:none!important}
  .app{display:block!important}
  .main{padding:0!important}
  .section{display:none!important}
  #resources.section{display:block!important}
  #resourceHome{display:none!important}
  #resourceDetail{display:block!important;max-width:none!important}
  .resource-body{border:0!important;box-shadow:none!important;padding:0!important}
}

/* Employee Experience v2.4.0 */
.launch-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:18px;margin-top:14px}
.launch-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.launch-head h2{margin:0}.launch-progress-copy{font-weight:900;color:var(--navy)}
.launch-progress{height:10px;border-radius:999px;background:#edf2f4;overflow:hidden;margin:12px 0 6px}
.launch-progress>span{display:block;height:100%;background:var(--green);border-radius:999px}
.launch-list{display:grid;gap:9px;margin-top:13px}
.launch-task{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff}
.launch-task.done{background:#f5faef;border-color:#dce9d1}
.launch-status-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#eef2f4;color:#64717a;font-weight:900;font-size:13px;border:1px solid #dce3e7}
.launch-task.done .launch-status-icon{background:#8fcd3f;color:#173107;border-color:#7ab62f}
.launch-task-copy strong{display:block;font-size:13px}.launch-task-copy>span{display:block;font-size:11px;color:var(--muted);margin-top:3px;line-height:1.4}
.launch-verify{display:inline-flex!important;width:fit-content;align-items:center;gap:5px;margin-top:6px!important;border-radius:999px;padding:4px 7px;font-size:9px!important;font-weight:900;letter-spacing:.03em;text-transform:uppercase}
.launch-verify.system{background:#eef5fa;color:#315a73}.launch-verify.manager{background:#fff4dd;color:#795616}.launch-verify.employee{background:#f1eef9;color:#58457a}.launch-verify.done{background:#eaf6e2;color:#3e651f}
.launch-task-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}

.launch-howto{grid-column:2/-1;background:#f8fafb;border:1px solid #e1e8ec;border-radius:10px;padding:11px 13px;margin-top:1px}
.launch-howto-title{font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--navy);margin-bottom:6px}
.launch-howto ol{margin:0;padding-left:20px;color:#4e5c65;font-size:11px;line-height:1.55}
.launch-howto li+li{margin-top:3px}
.launch-howto-verify{margin-top:8px;padding-top:8px;border-top:1px solid #e3e9ec;color:#44545e;font-size:10px;line-height:1.45}
.launch-howto-verify strong{color:var(--navy)}
.launch-task.done .launch-howto{display:none}
.launch-lock-note{display:inline-flex;align-items:center;border-radius:999px;background:#fff4dd;color:#74510b;border:1px solid #ead39e;padding:5px 8px;font-size:9px;font-weight:900;text-transform:uppercase}

.launch-task .btn{padding:7px 9px;font-size:11px}.launch-confirm{background:#fff;border:1px solid #94c95b;color:#355d19}

.people-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:14px}
.people-grid{display:grid;grid-template-columns:1fr;gap:8px}
.person-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:11px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.person-card:hover{border-color:#a9bac3;background:#fbfcfd;box-shadow:0 4px 14px rgba(18,42,54,.05)}
.person-card:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.person-head{display:flex;gap:11px;align-items:center;min-width:0}.person-head h3{margin:0;font-size:14px;line-height:1.25}.person-head .avatar{flex:0 0 auto}.person-head-copy{min-width:0}.person-meta{font-size:11px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.person-bio{font-size:12px;color:#42535d;line-height:1.45;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.person-row-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.person-row-actions .btn{padding:7px 10px;font-size:11px}.person-view-btn{min-width:62px}
.person-detail-head{display:flex;gap:14px;align-items:center;margin-bottom:14px}.person-detail-head h3{margin:0;font-size:22px}.person-detail-meta{color:var(--muted);font-size:12px;margin-top:4px}.person-detail-bio{font-size:13px;line-height:1.6;color:#3f5059;padding:13px 14px;border:1px solid var(--line);background:#f9fbfc;border-radius:12px;margin:12px 0}
.social-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.social-link{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:999px;padding:7px 9px;text-decoration:none;color:var(--navy);font-size:11px;font-weight:800;background:#fff}
.social-link:hover{border-color:#9eb2bd;background:#f8fafb}
.badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.recognition-badge{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:5px 8px;background:#eef6e4;color:#315316;font-size:10px;font-weight:900}
@media(max-width:640px){.people-toolbar{grid-template-columns:1fr}.people-toolbar .small{display:none}.person-card{grid-template-columns:minmax(0,1fr) auto;padding:10px}.person-row-actions [data-message-team],.person-row-actions [data-recognize]{display:none}.person-row-actions .btn{padding:7px 9px}.person-detail-head{align-items:flex-start}.person-detail-head .avatar.lg{width:68px;height:68px}}

.weekly-challenge-card{position:relative;overflow:hidden;border:1px solid #dbe7d6;background:linear-gradient(135deg,#f7fbf4 0%,#fff 58%,#f4f8fb 100%);border-radius:22px;padding:24px;margin:16px 0;box-shadow:0 18px 50px rgba(13,35,55,.06)}
.weekly-challenge-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:#8fcd3f}
.challenge-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.challenge-kicker{font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#5d8f2d}
.challenge-title{font-size:28px;line-height:1.08;margin:6px 0 8px;color:#0d2337}
.challenge-desc{color:#53616a;line-height:1.55;max-width:760px}
.challenge-reward{background:#0d2337;color:#fff;border-radius:18px;padding:18px 20px;min-width:460px;max-width:520px;box-shadow:0 12px 28px rgba(13,35,55,.16)}
.challenge-reward-head{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.challenge-reward-icon{font-size:32px;line-height:1}
.challenge-reward-label{font-size:13px;font-weight:900;letter-spacing:.10em;text-transform:uppercase;color:#f0f5f7}
.challenge-reward-total{font-size:24px;font-weight:900;line-height:1.05;margin-top:3px;color:#fff}
.challenge-prize-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.challenge-prize-item{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:10px 11px;text-align:center}
.challenge-prize-place{font-size:11px;color:#dce5e9;font-weight:800}
.challenge-prize-amount{font-size:20px;font-weight:900;margin-top:2px}

.challenge-meta{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.challenge-meta .pill{background:#edf4e8;border:1px solid #d9e8d0}
.challenge-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:18px;align-items:stretch}
.challenge-progress-card,.challenge-standings-card{background:#fff;border:1px solid #e1e8e0;border-radius:16px;padding:18px}
.challenge-progress-card h3,.challenge-standings-card h3{margin:0 0 10px;color:#0d2337}
.challenge-big-score{font-size:38px;font-weight:900;color:#0d2337;line-height:1}
.challenge-progress-bar{height:11px;border-radius:999px;background:#e8eee5;overflow:hidden;margin:14px 0 8px}
.challenge-progress-bar span{display:block;height:100%;background:#8fcd3f;border-radius:999px}
.challenge-personal-note{font-size:13px;color:#53616a;line-height:1.5}
.challenge-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1ed}
.challenge-row:last-child{border-bottom:0}
.challenge-rank{font-weight:900;text-align:center;color:#0d2337}
.challenge-person{display:flex;align-items:center;gap:9px;min-width:0}
.challenge-person strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.challenge-person span{display:block;font-size:11px;color:#6a747b}
.challenge-score{font-weight:900;color:#0d2337;white-space:nowrap}
.challenge-qualifier{display:block;margin-top:3px;font-size:10px;font-weight:900;line-height:1.3}
.challenge-qualifier.ok{color:#4f7f24}
.challenge-qualifier.locked{color:#a35b12}
.challenge-close-rule{background:#fff8e9;border:1px solid #f0d7a5;border-radius:12px;padding:12px 14px;font-size:12px;color:#6b4d18;line-height:1.55}

.challenge-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.challenge-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.challenge-history-card{border:1px solid #e1e8e0;border-radius:16px;padding:18px;background:#fff}
.challenge-history-card h3{margin:0 0 5px;color:#0d2337}
.challenge-history-card .history-winner{display:flex;align-items:center;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid #edf1ed}
.challenge-admin-shell{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center}
.challenge-admin-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.challenge-admin-empty{color:#647078}
.challenge-admin-note{font-size:12px;color:#647078;line-height:1.5;margin-top:8px}
.challenge-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.challenge-form-grid .field.full{grid-column:1/-1}
.challenge-form-grid .field input:not([type="checkbox"]):not([type="radio"]),
.challenge-form-grid .field select{
  height:44px;
  min-height:44px;
  box-sizing:border-box;
}
.challenge-form-grid .field input[type="number"]{
  height:44px!important;
  min-height:44px!important;
  padding-top:0;
  padding-bottom:0;
}

/* v2.16.6 — readability + actionable requirement rows */
.ready-work-head p{font-size:13px;line-height:1.55}
.ready-work-kicker{font-size:11px}
.ready-work-score span{font-size:10px}
.ready-work-item{padding:11px 12px}
.ready-work-item strong{font-size:12px}
.ready-work-item span:not(.ready-work-icon){font-size:11px;line-height:1.35}
.ready-fix{font-size:11px;padding:7px 10px}
.ready-blocker strong{font-size:12px}
.ready-blocker span{font-size:11px}

.team-attention-card .toolbar h2{font-size:19px}
.team-attention-card .toolbar .small{font-size:12px;line-height:1.5}
.attention-stats span{font-size:11px}
.attention-stats strong{font-size:22px}
.attention-section h3{font-size:12px}
.attention-row{padding:11px 0}
.attention-row strong{font-size:13px}
.attention-row span{font-size:11px;line-height:1.4}
.attention-actions .btn,.attention-row>.btn{font-size:11px;padding:8px 10px}
.attention-section-note{font-size:11px!important;line-height:1.5}
.diagnostic-pill{font-size:10px!important}

.challenge-eligibility-title{font-size:18px}
.challenge-eligibility-sub{font-size:12px}
.challenge-eligibility-item{padding:12px}
.challenge-eligibility-item-main strong{font-size:13px}
.challenge-eligibility-item-main span{font-size:10px}
.challenge-admin-eligibility-name strong{font-size:14px}
.challenge-admin-eligibility-name span{font-size:11px}
.challenge-admin-eligibility-meta .pill{font-size:10px}
.challenge-status{font-size:10px}
.challenge-eligibility-item.is-actionable{
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.challenge-eligibility-item.is-actionable:hover,
.challenge-eligibility-item.is-actionable:focus-visible{
  border-color:#9fbd88;
  background:#fbfff8;
  box-shadow:0 0 0 2px rgba(132,184,61,.14);
  outline:none;
}
.challenge-eligibility-item.is-actionable .challenge-req-action,
.challenge-eligibility-item.is-actionable .challenge-req-incomplete,
.challenge-eligibility-item.is-actionable .challenge-req-pending{
  cursor:pointer;
}
.readiness-section-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px
}
.readiness-section-toolbar h3{margin:0}
.readiness-profile-btn{white-space:nowrap}



.challenge-progress-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0}
.challenge-progress-metric{background:#f7faf7;border:1px solid #e2eae0;border-radius:12px;padding:10px}
.challenge-progress-metric strong{display:block;font-size:18px;color:#0d2337}
.challenge-progress-metric span{display:block;margin-top:2px;font-size:9px;color:#63747a;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.challenge-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:900}
.challenge-status.good{background:#eef8df;color:#426e1d}
.challenge-status.pending{background:#fff5d9;color:#825d06}
.challenge-status.bad{background:#ffe9e6;color:#a33930}
.challenge-status.neutral{background:#edf2f4;color:#52656c}
.challenge-requirements{margin:10px 0 0;padding-left:18px;color:#5a686c;font-size:11px;line-height:1.55}
.challenge-requirements li+li{margin-top:4px}
.challenge-row-rich{grid-template-columns:42px minmax(160px,1.45fr) repeat(4,minmax(70px,.65fr)) minmax(130px,1fr)}
.challenge-row-rich .challenge-cell{font-size:11px;color:#31434a}
.challenge-row-rich .challenge-cell strong{display:block;color:#0d2337;font-size:13px}
.challenge-row-rich .challenge-status-cell{justify-self:end;text-align:right}
.challenge-table-head{display:grid;grid-template-columns:42px minmax(160px,1.45fr) repeat(4,minmax(70px,.65fr)) minmax(130px,1fr);gap:10px;padding:0 0 8px;border-bottom:1px solid #dce6df;color:#6b7a80;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.challenge-team-progress{background:#f7fbf4;border:1px solid #dfead8;border-radius:14px;padding:14px;margin-top:12px}
.challenge-team-progress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:10px}
.challenge-team-progress-grid div{background:#fff;border:1px solid #e3ebe0;border-radius:11px;padding:9px}
.challenge-team-progress-grid strong{display:block;font-size:16px;color:#0d2337}
.challenge-team-progress-grid span{font-size:9px;color:#6a797f;font-weight:800}
.challenge-special-prizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}


.challenge-fixed-pool-note{
  margin-top:10px;
  font-size:11px;
  color:#dce5e9;
  line-height:1.5;
  font-weight:700;
}
.challenge-special-prizes div{
  background:#f7faf7;
  border:1px solid #e3ebe0;
  border-radius:10px;
  padding:10px 12px;
  font-size:12px;
  line-height:1.35;
  color:#53616a;
  font-weight:700;
}
.challenge-special-prizes strong{
  display:block;
  color:#0d2337;
  font-size:15px;
  margin-bottom:2px;
}
.challenge-schedule-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:14px 0 4px;
  padding:12px 14px;
  border:1px solid #d6e6ca;
  border-radius:13px;
  background:#f5faef;
  color:#173248;
}
.challenge-schedule-banner strong{font-size:13px}
.challenge-schedule-banner span{font-size:12px;color:#52656c;font-weight:800}
@media(max-width:760px){
  .challenge-schedule-banner{display:block}
  .challenge-schedule-banner span{display:block;margin-top:5px}
}

.challenge-eligibility-panel{margin-top:12px;border:1px solid #dfe8e1;border-radius:14px;padding:14px;background:#fbfdfb}
.challenge-eligibility-title{font-size:16px;font-weight:900;color:#0d2337;margin:0 0 4px}
.challenge-eligibility-sub{font-size:11px;color:#63747a;line-height:1.5;margin-bottom:12px}
.challenge-eligibility-list{display:grid;gap:8px}
.challenge-eligibility-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #e2e9e3;border-radius:11px;padding:10px;background:#fff}
.challenge-eligibility-item-main{min-width:0}
.challenge-eligibility-item-main strong{display:block;font-size:12px;color:#102433}
.challenge-eligibility-item-main span{display:inline-flex;margin-top:4px;border-radius:999px;padding:4px 7px;font-size:8px;font-weight:900}
.challenge-req-complete{background:#eef8df;color:#416d1e}
.challenge-req-incomplete{background:#eef2f4;color:#52656c}
.challenge-req-pending{background:#fff5d9;color:#825d06}
.challenge-req-action{background:#ffe9e6;color:#a33930}
.challenge-eligibility-action{white-space:nowrap}
.challenge-admin-filter{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
.challenge-admin-filter select{min-width:190px}
.challenge-admin-roster{display:grid;gap:9px}
.challenge-admin-eligibility-card{border:1px solid #e0e8e2;border-radius:13px;padding:12px;background:#fff}
.challenge-admin-eligibility-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.challenge-admin-eligibility-name{display:flex;gap:8px;align-items:center;min-width:0}
.challenge-admin-eligibility-name strong{display:block}
.challenge-admin-eligibility-name span{display:block;font-size:9px;color:#6c7a80;margin-top:2px}
.challenge-admin-eligibility-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.challenge-admin-eligibility-detail{margin-top:9px;padding-top:9px;border-top:1px solid #edf1ee}
.challenge-admin-eligibility-detail .challenge-eligibility-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.challenge-admin-override{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}

.challenge-eligibility-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.challenge-eligibility-summary div{background:#f7faf8;border:1px solid #e1e9e3;border-radius:11px;padding:10px}
.challenge-eligibility-summary strong{display:block;font-size:18px;color:#0d2337}
.challenge-eligibility-summary span{display:block;margin-top:2px;font-size:8px;color:#6d7a80;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.challenge-admin-eligibility-card.compact{padding:10px 12px}
.challenge-admin-eligibility-card.compact .challenge-admin-eligibility-head{align-items:center}
.challenge-admin-eligibility-card.compact .challenge-admin-eligibility-meta{margin-top:6px}
.challenge-admin-eligibility-card.compact .challenge-admin-eligibility-detail{display:none}
.challenge-admin-eligibility-card.compact.is-open .challenge-admin-eligibility-detail{display:block}
.challenge-compact-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.challenge-dashboard-summary{border:1px solid #dfe9df;border-radius:14px;padding:14px;background:#fbfdf9;margin-top:12px}
.challenge-dashboard-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.challenge-dashboard-summary-head h3{margin:0;font-size:15px}
.challenge-dashboard-summary-head .small{margin-top:3px}
.challenge-dashboard-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}
.challenge-dashboard-mini-grid div{background:#fff;border:1px solid #e2e9e3;border-radius:10px;padding:9px}
.challenge-dashboard-mini-grid strong{display:block;font-size:17px;color:#0d2337}
.challenge-dashboard-mini-grid span{display:block;font-size:8px;color:#6d7a80;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.challenge-eligibility-toggle{min-width:88px}
@media(max-width:760px){
  .challenge-eligibility-summary,.challenge-dashboard-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .challenge-dashboard-summary-head{display:block}
  .challenge-dashboard-summary-head .btn{margin-top:9px;width:100%}
  .challenge-compact-actions{justify-content:flex-start;margin-top:7px}
}

@media(max-width:760px){
  .challenge-eligibility-item{grid-template-columns:1fr}
  .challenge-eligibility-action{justify-self:start}
  .challenge-admin-eligibility-detail .challenge-eligibility-list{grid-template-columns:1fr}
}

.challenge-progress-all{display:grid;gap:9px;margin-top:12px}
.challenge-progress-person{background:#fff;border:1px solid #e2e9e3;border-radius:13px;padding:12px}
.challenge-progress-person-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.challenge-progress-person-name{display:flex;align-items:center;gap:8px;min-width:0}
.challenge-progress-person-name strong{display:block}
.challenge-progress-person-name span{display:block;color:#738087;font-size:9px;margin-top:2px}
.challenge-progress-person-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:10px}
.challenge-progress-person-metrics div{background:#f6f8f7;border-radius:9px;padding:7px}
.challenge-progress-person-metrics strong{display:block;font-size:13px}
.challenge-progress-person-metrics span{display:block;font-size:8px;color:#6f7c80;font-weight:800}
@media(max-width:980px){
  .challenge-row-rich,.challenge-table-head{grid-template-columns:42px minmax(160px,1fr) repeat(2,minmax(70px,.55fr)) minmax(120px,.8fr)}
  .challenge-row-rich .challenge-cell:nth-of-type(4),.challenge-row-rich .challenge-cell:nth-of-type(5),
  .challenge-table-head span:nth-child(5),.challenge-table-head span:nth-child(6){display:none}
}
@media(max-width:760px){
  .challenge-progress-metrics,.challenge-team-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .challenge-special-prizes{grid-template-columns:1fr}
  .challenge-table-head{display:none}
  .challenge-row-rich{grid-template-columns:34px minmax(0,1fr);align-items:start}
  .challenge-row-rich .challenge-cell,.challenge-row-rich .challenge-status-cell{grid-column:2;justify-self:start;text-align:left}
  .challenge-row-rich .challenge-cell{display:inline-block;margin-right:10px}
  .challenge-progress-person-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.challenge-rules{background:#f6f9f4;border:1px solid #dfe9da;border-radius:12px;padding:12px 14px;font-size:12px;color:#52605a;line-height:1.55}
.challenge-ended{background:#fff4dd!important;border-color:#efd39a!important}

.leaderboard-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.leaderboard-toolbar select{width:auto;min-width:150px}
.leaderboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.leader-card{border:1px solid var(--line);background:#fff;border-radius:16px;padding:16px}
.leader-card h2{margin:0 0 4px}.leader-sub{font-size:11px;color:var(--muted);margin-bottom:10px}
.leader-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 0;border-top:1px solid #edf1f3}
.leader-row:first-of-type{border-top:0}.leader-rank{font-size:18px;font-weight:900;text-align:center}.leader-name{display:flex;align-items:center;gap:9px;min-width:0}.leader-name strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leader-name span{font-size:10px;color:var(--muted)}
.leader-metric{text-align:right;font-size:11px;font-weight:900;color:var(--navy)}
.team-wins-list{display:grid;gap:8px}.team-win{display:flex;gap:10px;align-items:flex-start;border-top:1px solid #edf1f3;padding-top:9px}.team-win:first-child{border-top:0;padding-top:0}.team-win-copy strong{display:block;font-size:12px}.team-win-copy span{font-size:10px;color:var(--muted)}
.social-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.social-privacy{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--line);border-radius:11px;padding:11px;background:#f8fafb;margin:12px 0}.social-privacy input{width:auto;margin-top:2px}
.profile-recognition{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
@media(max-width:980px){.leaderboard-grid{grid-template-columns:1fr}}
@media(max-width:760px){.challenge-reward{min-width:0;max-width:none;width:100%}.challenge-prize-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.challenge-prize-amount{font-size:18px}.challenge-grid{grid-template-columns:1fr}.challenge-history-grid{grid-template-columns:1fr}.challenge-admin-shell{grid-template-columns:1fr}.challenge-admin-actions{justify-content:flex-start}.challenge-form-grid{grid-template-columns:1fr}.challenge-form-grid .field.full{grid-column:auto}.challenge-title{font-size:24px}.weekly-challenge-card{padding:20px}.challenge-reward{max-width:none;width:100%}}
@media(max-width:430px){.challenge-prize-grid{grid-template-columns:1fr}.challenge-prize-item{display:flex;justify-content:space-between;align-items:center;text-align:left}.challenge-prize-amount{font-size:19px}}
@media(max-width:620px){.launch-howto{grid-column:1/-1}.launch-howto ol{padding-left:18px}}
@media(max-width:640px){.people-grid{grid-template-columns:1fr}.people-toolbar{grid-template-columns:1fr}.social-editor-grid{grid-template-columns:1fr}.launch-task{grid-template-columns:auto minmax(0,1fr)}.launch-task-actions{grid-column:2;justify-content:flex-start}.launch-task .btn{width:fit-content}.leaderboard-toolbar{align-items:stretch}.leaderboard-toolbar select{width:100%}}




.legal-doc-card{border:1px solid #dce6ea;border-radius:16px;padding:16px;background:#fbfdfd;margin-top:12px}.legal-doc-card strong{display:block;font-size:16px}.legal-doc-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.legal-doc-row{border:1px solid #dce6ea;border-radius:14px;padding:14px;background:#fff}.legal-doc-row h3{margin:0 0 5px;font-size:16px}.legal-doc-row p{margin:0 0 10px;color:var(--muted);font-size:12px;line-height:1.55}.legal-doc-view{max-height:52vh;overflow:auto;white-space:pre-wrap;border:1px solid #d8e3e8;border-radius:12px;padding:16px;background:#fff;font-size:12px;line-height:1.62;color:#20323b}.legal-doc-notice{background:#fff8e8;border:1px solid #f0d9a1;border-left:5px solid #d99a1b;border-radius:12px;padding:12px;margin:12px 0;font-size:12px;line-height:1.55}.legal-doc-ok{background:#eff9f2;border:1px solid #cce8d5;border-left:5px solid #2a9d68;border-radius:12px;padding:12px;margin:12px 0;font-size:12px;line-height:1.55}.legal-sign-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.legal-sign-grid .field.full{grid-column:1/-1}.legal-management-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.legal-management-grid .field.full{grid-column:1/-1}@media(max-width:700px){.legal-doc-grid,.legal-sign-grid,.legal-management-grid{grid-template-columns:1fr}}

/* Team Communication + Secure Onboarding v2.5.2 */
.chat-shell{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px;min-height:650px}
.chat-sidebar,.chat-conversation{border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden}
.chat-sidebar{display:flex;flex-direction:column;min-height:650px}
.chat-side-head{padding:16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.chat-side-head h2{margin:0;font-size:17px}.chat-side-body{padding:10px;overflow:auto}
.chat-group-title{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900;padding:10px 9px 6px}
.chat-channel{width:100%;border:0;background:transparent;border-radius:10px;padding:10px;text-align:left;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--navy);font:inherit}
.chat-channel:hover,.chat-channel.active{background:#edf3f5}.chat-channel-copy{min-width:0}.chat-channel-copy strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-channel-copy span{display:block;font-size:10px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-unread{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--green);color:#132914;font-size:10px;font-weight:900;flex:0 0 auto}
.chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:650px}
.chat-head{padding:15px 17px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.chat-head h2{margin:0;font-size:18px}.chat-head p{margin:3px 0 0;color:var(--muted);font-size:11px}
.chat-pinned{border-bottom:1px solid var(--line);background:#fff9eb;padding:10px 14px}.chat-pinned strong{font-size:11px}.chat-pinned-list{display:grid;gap:5px;margin-top:6px}.chat-pin-item{font-size:11px;line-height:1.4;color:#5f4a1d}
.chat-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.chat-archive-btn{padding:7px 10px!important;font-size:10px!important}.chat-archive-bar{border:1px solid #dbe4e8;background:#f3f6f7;border-radius:11px;padding:9px 11px;font-size:11px;color:#53636d;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.chat-archive-divider{display:flex;align-items:center;gap:8px;color:#718089;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em;margin:3px 0}.chat-archive-divider:before,.chat-archive-divider:after{content:"";height:1px;background:#dce4e8;flex:1}.chat-message.archived{opacity:.94}.chat-message.archived .chat-bubble{background:#f8fafb}.chat-retention-note{font-size:10px;color:var(--muted)}
.chat-messages{flex:1;overflow:auto;padding:15px 17px;display:flex;flex-direction:column;gap:11px;min-height:360px;max-height:560px;background:#fbfcfd}
.chat-message{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:flex-start}.chat-message-main{min-width:0}.chat-message-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.chat-message-head strong{font-size:12px}.chat-time{font-size:10px;color:var(--muted)}
.chat-bubble{margin-top:3px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 11px;font-size:13px;line-height:1.5;white-space:normal;word-break:break-word}.chat-message.own .chat-bubble{background:#f4f8ef}.chat-message.announcement .chat-bubble{background:#fff9eb;border-color:#eed49a}.chat-message.system .chat-bubble{background:#eef6e4;border-color:#cee3b8}
.chat-mention{font-weight:900;color:var(--navy2)}.chat-message-tools{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.chat-message-tools button{border:0;background:transparent;color:var(--navy2);font-size:10px;font-weight:850;cursor:pointer;padding:2px 0}.chat-message-tools button:hover{text-decoration:underline}
.chat-linked{display:inline-flex;align-items:center;gap:5px;margin-top:7px;border:1px solid var(--line);border-radius:999px;background:#f8fafb;padding:6px 8px;font-size:10px;font-weight:850;color:var(--navy);cursor:pointer}
.chat-deleted{font-style:italic;color:var(--muted)}.chat-ack{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}.chat-ack .btn{padding:6px 8px;font-size:10px}
.chat-composer{border-top:1px solid var(--line);padding:12px 14px;background:#fff}.chat-composer textarea{width:100%;min-height:76px;max-height:180px;resize:vertical;border:1px solid #cad5db;border-radius:11px;padding:11px 12px;font:inherit}.chat-composer-tools{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-top:8px}.chat-composer-left{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.chat-composer select{max-width:240px;border:1px solid #cad5db;border-radius:9px;padding:8px 9px;background:#fff;font-size:11px}.chat-check{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#46565f}.chat-check input{width:auto}.chat-empty{display:grid;place-items:center;min-height:560px;padding:30px;text-align:center;color:var(--muted)}
.chat-preview-list{display:grid;gap:8px;margin-top:10px}.chat-preview-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:flex-start;padding-top:8px;border-top:1px solid #edf1f3}.chat-preview-item:first-child{border-top:0;padding-top:0}.chat-preview-item strong{font-size:11px}.chat-preview-item span{display:block;font-size:10px;color:var(--muted);margin-top:2px;line-height:1.35}.chat-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:5px}.chat-error{margin:14px;border:1px solid #f1c1bc;background:#fff4f3;color:#7c2922;border-radius:11px;padding:11px;font-size:12px}
@media(max-width:900px){.chat-shell{grid-template-columns:1fr;min-height:0}.chat-sidebar{min-height:0;max-height:310px}.chat-conversation{min-height:600px}}
@media(max-width:640px){.chat-shell{gap:10px}.chat-head{padding:12px}.chat-head-actions{justify-content:flex-start}.chat-archive-btn{width:auto!important}.chat-messages{padding:12px;max-height:520px}.chat-composer{padding:10px}.chat-composer-tools{align-items:stretch}.chat-composer-left{width:100%}.chat-composer select{max-width:none;width:100%}.chat-composer .btn{width:100%}}


/* Secure onboarding v2.5.2 */


.first-welcome{display:grid;gap:16px}
.first-welcome-hero{background:linear-gradient(135deg,#0d2337,#173b54);color:#fff;border-radius:18px;padding:22px}
.first-welcome-hero .eyebrow{font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--green)}
.first-welcome-hero h2{font-size:28px;line-height:1.08;margin:6px 0 8px}
.first-welcome-hero p{margin:0;color:#dbe7ed;line-height:1.55}
.first-welcome-steps{display:grid;gap:10px}
.first-welcome-step{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:14px;padding:13px;background:#fff}
.first-welcome-step b{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#edf7e8;color:#315d17;font-size:15px}
.first-welcome-step strong{display:block;color:var(--navy);font-size:13px}
.first-welcome-step span{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:2px}
.first-welcome-warning{border:1px solid #ead39e;background:#fff8e8;border-radius:12px;padding:12px 14px;color:#684d16;font-size:12px;line-height:1.5}
.invite-success-guide{border:1px solid var(--line);border-radius:14px;padding:14px;background:#f8fafb}
.invite-success-guide ol{margin:8px 0 0 20px;padding:0}.invite-success-guide li{margin:5px 0;color:#4f5d66;font-size:12px;line-height:1.45}

.onboarding-mode-card{border:1px solid #d6e7c8;background:linear-gradient(135deg,#f6fbf1,#fff);border-left:6px solid var(--green);border-radius:16px;padding:18px 20px;margin:14px 0}
.onboarding-mode-card h3{margin:0 0 6px;color:var(--navy);font-size:18px}
.onboarding-mode-card p{margin:0;color:var(--muted);line-height:1.55}
.onboarding-mode-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.access-stage-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;background:#fff4dd;color:#7b5611;border:1px solid #ead39e}
.access-stage-pill.full{background:#edf7e8;color:#356018;border-color:#cfe3bf}

.onboard-portal-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,var(--navy),#173b54);color:#fff;border-radius:18px;padding:28px;margin-bottom:18px}
.onboard-portal-hero h2{font-size:30px;margin:5px 0 9px}.onboard-portal-hero p{color:#dbe7ed;line-height:1.55;margin:0;max-width:720px}.onboard-kicker{color:var(--green);font-size:11px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.onboard-step-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.onboard-step-grid article{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:15px}.onboard-step-grid article>b{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--navy);color:#fff}.onboard-step-grid strong{display:block;font-size:14px;color:var(--navy)}.onboard-step-grid span{display:block;font-size:11px;color:var(--muted);line-height:1.45;margin:3px 0 7px}.link-btn{border:0;background:transparent;color:var(--navy2);font:inherit;font-size:11px;font-weight:900;padding:0;cursor:pointer}.link-btn:hover{text-decoration:underline}.onboard-security-note{margin-top:0}.onboard-security-note p{color:var(--muted);line-height:1.55}.onboard-status-row{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto;gap:8px 12px;align-items:center;border-top:1px solid var(--line);padding-top:13px}.onboard-status-row span{font-size:11px;color:var(--muted)}.onboard-status-row strong{font-size:11px;color:var(--navy)}
@media(max-width:760px){.onboard-portal-hero{align-items:stretch;flex-direction:column}.onboard-step-grid{grid-template-columns:1fr}.onboard-status-row{grid-template-columns:1fr auto}}




/* Unified portal-only onboarding v2.9.5 — Legal Document Back Navigation */
.onboard-stage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
.onboard-stage-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:18px;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.onboard-stage-card>b{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:var(--navy);color:#fff;font-size:15px}
.onboard-stage-card.done{background:#f7fbf3;border-color:#cfe3bf}.onboard-stage-card.done>b{background:var(--green);color:#173107}.onboard-stage-card.ready{border-color:#a9c98d;box-shadow:0 0 0 1px #dcebcf inset}
.onboard-stage-copy{min-width:0}.onboard-stage-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.onboard-stage-head>strong{font-size:17px;color:var(--navy)}
.onboard-stage-copy>p{margin:5px 0 12px;color:var(--muted);font-size:12px;line-height:1.5}.onboard-stage-mini{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #edf1f3}.onboard-stage-mini span{font-size:12px;color:#40515b}.onboard-stage-mini em{display:block;font-style:normal;font-size:10px;font-weight:850;color:var(--muted);margin-top:2px}
.onboard-stage{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900;white-space:nowrap}.onboard-stage.wait{background:#f1f4f5;color:#65747c}.onboard-stage.ready{background:#fff7e8;color:#7a4a00}.onboard-stage.done{background:#e9f7e2;color:#2f5d22}

.portal-academy{max-width:1100px;margin:0 auto}.portal-academy .ln-academy__hero{background:linear-gradient(135deg,#0d2337,#173b54);color:#fff;border-radius:18px;padding:28px;margin-bottom:18px}.portal-academy .ln-academy__hero-inner{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.portal-academy .ln-academy__hero h1{margin:6px 0 8px;font-size:32px}.portal-academy .ln-academy__hero p{color:#d9e6ed;line-height:1.6}.portal-academy .ln-academy__badge{display:grid;gap:6px;background:rgba(255,255,255,.08);border-radius:13px;padding:14px;min-width:260px}.portal-academy .ln-academy__steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.portal-academy .ln-academy__steps span{background:#fff;border:1px solid var(--line);border-radius:11px;padding:10px;font-size:12px;font-weight:800}.portal-academy .ln-academy__steps b{display:inline-flex;width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff;align-items:center;justify-content:center;margin-right:6px}.portal-academy .ln-academy__notice,.portal-academy .ln-academy__intro,.portal-academy .ln-academy__checkpoint,.portal-academy .ln-academy__after{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;margin:14px 0}.portal-academy .ln-academy__progress{background:#eef5e8;border:1px solid #d7e6cc;border-radius:12px;padding:14px;margin:14px 0}.portal-academy .ln-academy__meter{height:9px;background:#dce6e9;border-radius:999px;overflow:hidden;margin-top:8px}.portal-academy .ln-academy__meter i{height:100%;display:block;background:var(--green);width:0}.portal-academy .ln-academy__module{background:#fff;border:1px solid var(--line);border-radius:13px;margin:9px 0;overflow:hidden}.portal-academy .ln-academy__module summary{cursor:pointer;padding:14px 16px;display:flex;gap:10px;align-items:center}.portal-academy .ln-academy__module summary span{font-weight:900;color:var(--green-dark)}.portal-academy .ln-academy__module summary strong{flex:1}.portal-academy .ln-academy__module summary em{font-size:11px;color:var(--muted);font-style:normal}.portal-academy .ln-academy__module-body{padding:0 18px 18px;line-height:1.6;color:#42545e}.portal-academy .ln-academy__complete{display:flex;gap:8px;align-items:flex-start;background:#f6f9f4;border-radius:9px;padding:10px;margin-top:12px;font-weight:800}.portal-academy .ln-academy__complete-btn{display:flex;width:100%;align-items:center;justify-content:center;border:0;background:var(--green);color:#173107;border-radius:10px;padding:12px 15px;margin-top:14px;font:inherit;font-weight:900;cursor:pointer}.portal-academy .ln-academy__complete-btn:hover{filter:brightness(.96)}.portal-academy .ln-academy__module.module-complete{border-color:#cfe5bd;background:#fbfdf9}.portal-academy .ln-academy__module.module-complete summary{background:#f1f8ec}.portal-academy .ln-academy__module.module-complete summary::after{content:'Completed ✓';margin-left:auto;background:#e4f4d8;color:#315f22;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900}.portal-academy .ln-academy__module.module-complete summary em{display:none}.portal-academy .ln-academy__unlock,.portal-academy .ln-academy__submit{border:0;background:var(--green);color:#173107;border-radius:9px;font-weight:900;padding:12px 16px;cursor:pointer}.portal-academy .ln-academy__unlock:disabled{opacity:.5;cursor:not-allowed}.portal-academy .ln-academy__candidate{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:14px 0}.portal-academy .ln-academy__candidate div{display:grid;gap:5px}.portal-academy .ln-academy__candidate input,.portal-academy .ln-academy__candidate select{min-height:42px;border:1px solid #cbd7dd;border-radius:9px;padding:9px 10px}.portal-academy .ln-academy__questions fieldset{border:1px solid var(--line);border-radius:12px;padding:14px;margin:10px 0}.portal-academy .ln-academy__questions legend{font-weight:850;color:var(--navy);padding:0 4px}.portal-academy .ln-academy__questions label{display:block;margin:8px 0;line-height:1.45}.portal-academy .ln-academy__after-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.portal-academy .ln-academy__after-grid div{background:#f7fafb;border-radius:10px;padding:12px}.portal-academy .ln-academy__after-grid span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.portal-compliance{max-width:900px;margin:0 auto}.portal-compliance .compliance-list{display:grid;gap:10px;margin:16px 0}.portal-compliance .compliance-list label{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px;line-height:1.5}.portal-compliance .compliance-list input{margin-top:4px}.contract-address-suggestions{position:relative}.contract-address-results{position:absolute;left:0;right:0;top:100%;z-index:50;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 28px rgba(16,44,57,.18);max-height:240px;overflow:auto}.contract-address-results.hidden{display:none}.contract-address-results button{width:100%;display:block;border:0;border-bottom:1px solid #edf1f3;background:#fff;padding:10px 12px;text-align:left;cursor:pointer}.contract-address-results button:hover{background:#f2f7f8}.contract-address-results button span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
@media(max-width:700px){.portal-academy .ln-academy__hero-inner{display:block}.portal-academy .ln-academy__badge{margin-top:14px;min-width:0}.portal-academy .ln-academy__steps{grid-template-columns:1fr 1fr}.portal-academy .ln-academy__candidate,.portal-academy .ln-academy__after-grid{grid-template-columns:1fr}}

body.portal-modal-open{overflow:hidden;overscroll-behavior:none}.modal.modal-document{padding:0;place-items:stretch;background:#f2f5f6}.modal.modal-document .modal-card{width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0;padding:0;overflow:hidden;display:flex;flex-direction:column;background:#f6f8f9}.modal.modal-document .modal-head{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid var(--line);padding:18px 26px}.modal.modal-document .modal-head h2{font-size:22px;line-height:1.2;max-width:calc(100vw - 100px)}.modal.modal-document #modalContent{flex:1;overflow:auto;padding:0 28px 32px}.modal.modal-document .legal-doc-ok,.modal.modal-document .legal-doc-notice,.modal.modal-document #legalSignForm{max-width:980px;margin-left:auto;margin-right:auto}.modal.modal-document .legal-doc-view{max-width:980px;max-height:none;overflow:visible;margin:18px auto;background:#fff;border-radius:16px;padding:32px;font-size:14px;line-height:1.75;box-shadow:0 8px 28px rgba(13,35,55,.06)}.modal.modal-document #legalSignForm{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-top:18px;margin-bottom:24px}
.modal.modal-workflow{padding:0;place-items:stretch;background:#f2f5f6}.modal.modal-workflow .modal-card{width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0;padding:0;overflow:hidden;display:flex;flex-direction:column}.modal.modal-workflow .modal-head{background:#fff;border-bottom:1px solid var(--line);padding:18px 26px}.modal.modal-workflow #modalContent{flex:1;overflow:auto;padding:18px 28px 32px;max-width:900px;width:100%;margin:0 auto}
@media(max-width:760px){.onboard-stage-grid{grid-template-columns:1fr}.onboard-stage-head{align-items:flex-start;flex-direction:column}.onboard-stage-mini{align-items:flex-start}.modal.modal-document .modal-head,.modal.modal-workflow .modal-head{padding:14px 16px}.modal.modal-document #modalContent,.modal.modal-workflow #modalContent{padding:0 12px 22px}.modal.modal-document .legal-doc-view{margin:12px auto;padding:18px;font-size:13px;border-radius:12px}.modal.modal-document #legalSignForm{padding:15px}.modal.modal-document .modal-head h2{font-size:18px}}

/* Mobile UX overhaul v2.5.3 */
.mobile-menu-toggle{display:none}
html,body{max-width:100%}
.app,.side,.main,.section,.card,.stat,.toolbar,.table-wrap,.modal-card{min-width:0}

@media(max-width:920px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{position:relative}
  img,svg,video,canvas{max-width:100%;height:auto}
  .app{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;overflow-x:hidden}
  .side{position:sticky;top:0;z-index:40;width:100%;max-width:100%;height:auto;padding:10px 12px;gap:8px;box-shadow:0 4px 18px rgba(10,31,42,.12);overflow:visible}
  .side .logo{justify-content:flex-start;padding:0 58px 0 0;min-height:44px}
  .sidebar-full-logo{width:132px;padding:5px 7px;border-radius:8px}
  .mobile-menu-toggle{display:flex;align-items:center;justify-content:center;gap:7px;position:absolute;right:12px;top:11px;min-height:40px;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font:inherit;font-size:12px;font-weight:900;padding:8px 11px;cursor:pointer}
  .mobile-menu-toggle:focus-visible{outline:3px solid rgba(142,198,63,.45);outline-offset:2px}
  .nav{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px 0 2px;max-height:58vh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
  .side.mobile-open .nav{display:grid}
  .nav button{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center;padding:10px 7px;font-size:12px;line-height:1.25}
  .side-bottom{display:none;margin-top:4px;border-top:1px solid rgba(255,255,255,.14);padding-top:10px;min-width:0}
  .side.mobile-open .side-bottom{display:flex;flex-direction:column;align-items:stretch;gap:8px}
  .side-bottom .btn{width:100%!important;margin:0!important}
  .who{width:100%;min-width:0;text-align:center;font-size:11px;overflow-wrap:anywhere;word-break:break-word}
  .main{width:100%;max-width:100%;min-width:0;padding:18px 12px 84px;overflow-x:hidden}
  .section{width:100%;max-width:100%;min-width:0}
  .top{align-items:stretch;margin-bottom:18px}
  .top h1{font-size:27px;line-height:1.08}
  .card{padding:16px;margin-top:12px;width:100%;max-width:100%;overflow:hidden}
  .stat{padding:15px;min-width:0}
  .stat strong{font-size:23px;overflow-wrap:anywhere}
  .toolbar{width:100%;max-width:100%;min-width:0}
  .toolbar>*{min-width:0;max-width:100%}
  .btn{max-width:100%;white-space:normal}
  .actions{width:100%;max-width:100%}
  .actions .btn{flex:1 1 120px}
  .table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  table{max-width:100%}
  th,td{overflow-wrap:anywhere;word-break:break-word}
  .profile-chip{min-width:0}
  .profile-chip>*{min-width:0}
  .task{min-width:0;align-items:flex-start;flex-wrap:wrap}
  .task>*{min-width:0}
  .resource-detail{max-width:100%}
  .resource-detail-head,.resource-toolbar{min-width:0}
  .resource-body,.resource-link,.info-item,.verify-panel{min-width:0;overflow-wrap:anywhere}
  .people-grid,.leaderboard-grid,.resource-grid,.resource-quick,.dashboard-resource-links,.resource-link-grid{max-width:100%}
  .launch-task{min-width:0}
  .launch-task-copy{min-width:0}
  .launch-task-copy strong,.launch-task-copy span{overflow-wrap:anywhere}
  .day-grid{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px}
  .day-card{min-width:0;width:100%}
  .availability-box,.availability-trigger{min-width:0;max-width:100%}
  .admin-calendar-shell,.admin-calendar-card,.admin-agenda-card{min-width:0;max-width:100%}
  .admin-calendar-card{overflow:hidden}
  .admin-calendar-weekdays,.admin-calendar-grid{width:100%;min-width:0}
  .admin-event{min-width:0}
  .modal{padding:10px;overflow-x:hidden}
  .modal-card{width:100%;max-width:calc(100vw - 20px);padding:17px;overflow-x:hidden}
  .modal-head{min-width:0}
  .modal-head h2{min-width:0;overflow-wrap:anywhere}
  .modal-card .grid[style]{grid-template-columns:1fr!important}
  .chat-shell,.chat-sidebar,.chat-conversation,.chat-head,.chat-messages,.chat-composer{width:100%;max-width:100%;min-width:0}
  .chat-shell{grid-template-columns:minmax(0,1fr);min-height:0}
  .chat-sidebar{min-height:0;max-height:260px}
  .chat-side-body{max-height:205px;overflow-y:auto;overflow-x:hidden}
  .chat-conversation{min-height:0}
  .chat-head{flex-direction:column;align-items:stretch;padding:12px}
  .chat-messages{min-height:300px;max-height:52vh;padding:12px;overflow-x:hidden}
  .chat-message{grid-template-columns:34px minmax(0,1fr)}
  .chat-bubble{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
  .chat-composer-left{min-width:0}
  .chat-composer select,.chat-composer textarea{min-width:0;max-width:100%}
  .chat-empty{min-height:320px}
  .onboard-portal-hero{padding:22px;min-width:0}
  .onboard-portal-hero h2{font-size:25px;line-height:1.12}
  .onboard-step-grid article{min-width:0}
  .onboard-step-grid strong,.onboard-step-grid span{overflow-wrap:anywhere}
}

@media(max-width:560px){
  .main{padding:14px 10px 80px}
  .nav{grid-template-columns:repeat(2,minmax(0,1fr));max-height:64vh}
  .nav button{font-size:11px;padding:9px 5px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid .stat{padding:13px}
  .grid .stat strong{font-size:20px}
  .top{display:flex;flex-direction:column}
  .top .btn{width:100%;margin-top:4px}
  .card{padding:14px;border-radius:13px}
  .filters{grid-template-columns:1fr}
  .info-grid{grid-template-columns:1fr}
  .launch-task{grid-template-columns:auto minmax(0,1fr)}
  .launch-task-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr}.launch-task .btn{width:100%!important}
  .leader-row{grid-template-columns:28px minmax(0,1fr);align-items:start}
  .leader-metric{grid-column:2;text-align:left;margin-top:2px}
  .person-head{align-items:flex-start}
  .availability-days{grid-template-columns:repeat(2,minmax(0,1fr))}
  .availability-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-alert-grid{grid-template-columns:1fr}
  .admin-calendar-card{padding:8px}
  .admin-calendar-weekdays div{font-size:9px;letter-spacing:0}
  .admin-day{min-height:74px;padding:3px}
  .admin-event{font-size:0;padding:3px;height:8px}
  .admin-event::before{content:"";display:block;height:2px;border-radius:999px;background:currentColor}
  .onboard-status-row{grid-template-columns:1fr auto;gap:7px 10px}
  .chat-sidebar{max-height:230px}
  .chat-message{grid-template-columns:30px minmax(0,1fr);gap:7px}
  .chat-messages{min-height:280px;max-height:50vh}
  .mobile-fab{right:12px;bottom:12px;max-width:calc(100vw - 24px)}
}

@media(max-width:380px){
  .grid{grid-template-columns:1fr}
  .nav button{font-size:10.5px}
  .sidebar-full-logo{width:118px}
  .mobile-menu-toggle span:first-child{display:none}
}


/* v2.5.4 — Web Push notification settings */
.push-settings-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}
.push-device-status{display:flex;align-items:center;gap:10px;background:#f7f9f7;border:1px solid var(--line);border-radius:12px;padding:13px 14px;margin:12px 0}
.push-dot{width:10px;height:10px;border-radius:50%;background:#aab4bb;flex:0 0 auto}.push-dot.on{background:#4f8e2e}.push-dot.warn{background:#d89a2b}.push-dot.off{background:#b94a3d}
.push-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}.push-actions .btn{flex:1 1 150px}
.push-note{background:#eef5ea;border:1px solid #d5e4ce;border-radius:12px;padding:13px 14px;color:#4f5f4a;line-height:1.55;margin-top:12px}
.push-note.warning{background:#fff8e8;border-color:#eed79c;color:#6f5a2a}
.push-pref-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:700px){.push-settings-grid,.push-pref-row{grid-template-columns:1fr}.push-actions .btn{width:100%;flex-basis:100%}}


/* 2.7.3 — CRM status dashboard + lead rotation */
.pipeline-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 14px}
.pipeline-kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 14px;box-shadow:0 6px 20px rgba(13,35,55,.05)}
.pipeline-kpi span{display:block;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.pipeline-kpi strong{display:block;font-size:24px;margin-top:5px;color:var(--ink)}
.pipeline-kpi.attention{border-color:#f0c98f;background:#fffaf1}
.pipeline-kpi.danger{border-color:#f1b8b8;background:#fff7f7}
.pipeline-owner{font-size:12px;font-weight:700;color:var(--navy);margin-top:5px}
.manager-note{margin-top:10px;padding:10px 11px;border-radius:10px;background:#f4f7fa;border:1px dashed #b9c7d2;font-size:12px}
.manager-note strong{display:block;margin-bottom:3px;color:var(--navy)}
.pipeline-role-note{margin:0 0 12px;padding:10px 12px;border-radius:11px;background:#edf6ff;border:1px solid #cce2f6;font-size:12px;color:#29465f}
.timeline-actor{font-weight:700;color:var(--navy)}
.timeline-details{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.45}
@media(max-width:900px){.pipeline-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.pipeline-overview{grid-template-columns:1fr 1fr}.pipeline-kpi:last-child{grid-column:1/-1}}
.crm-status-dashboard{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px;margin:0 0 14px;box-shadow:0 6px 20px rgba(13,35,55,.04)}
.crm-status-dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.crm-status-dashboard-head strong{font-size:13px;color:var(--navy)}
.crm-status-dashboard-head span{font-size:11px;color:var(--muted);line-height:1.4;text-align:right}
.crm-status-buttons{display:flex;gap:8px;flex-wrap:wrap}
.crm-status-btn{appearance:none;border:1px solid #d6e0e7;background:#f8fafb;color:var(--ink);border-radius:12px;padding:9px 11px;min-height:52px;display:flex;align-items:center;gap:9px;cursor:pointer;text-align:left;transition:.16s ease;box-shadow:none}
.crm-status-btn:hover{border-color:#9eb4c4;background:#f2f7fa;transform:translateY(-1px)}
.crm-status-btn.active{border-color:var(--navy);background:var(--navy);color:#fff;box-shadow:0 5px 14px rgba(13,35,55,.16)}
.crm-status-btn .crm-icon{font-size:18px;line-height:1}
.crm-status-btn .crm-label{display:flex;flex-direction:column;gap:2px;font-size:11px;font-weight:800;white-space:nowrap}
.crm-status-btn .crm-count{font-size:17px;line-height:1;font-weight:900}
.crm-status-btn .crm-meta{font-size:9.5px;font-weight:700;color:var(--muted);white-space:nowrap}
.crm-status-btn.active .crm-meta{color:#dce8f0}
.crm-status-btn.follow-attention:not(.active){border-color:#e6bc78;background:#fffaf1}
.crm-status-btn.dnc:not(.active){border-color:#efb2b2;background:#fff6f6}
.crm-status-btn.good:not(.active){border-color:#bbd7ad;background:#f5fbf2}
.crm-filter-summary{margin:0 0 10px;font-size:12px;color:var(--muted);font-weight:700}
@media(max-width:640px){.crm-status-dashboard{padding:11px}.crm-status-dashboard-head{display:block}.crm-status-dashboard-head span{display:block;text-align:left;margin-top:4px}.crm-status-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.crm-status-btn{width:100%;padding:8px 9px}.crm-status-btn .crm-label{white-space:normal}}

/* 2.7.3 — Admin lead rotation desk */
.lead-rotation-tools{margin:0 0 14px;padding:13px 14px;border:1px solid #c9d9e5;background:#f7fbfe;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 5px 16px rgba(13,35,55,.04)}
.lead-rotation-copy strong{display:block;color:var(--navy);font-size:13px;margin-bottom:3px}.lead-rotation-copy span{display:block;color:var(--muted);font-size:11px;line-height:1.45}.lead-rotation-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.lead-rotation-actions .btn{white-space:nowrap}.rotation-warning{padding:10px 12px;border:1px solid #efd49b;background:#fff9eb;border-radius:11px;color:#674a12;font-size:12px;line-height:1.45;margin-bottom:12px}.rotation-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.rotation-summary>div{border:1px solid var(--line);border-radius:11px;padding:10px;background:#fafcfd}.rotation-summary span{display:block;font-size:10px;color:var(--muted);font-weight:800;text-transform:uppercase}.rotation-summary strong{display:block;font-size:20px;margin-top:4px}.rotation-exclusions{font-size:11px;color:var(--muted);line-height:1.5;margin-top:9px}.rotation-cycle-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#eaf3e4;color:#38502f;font-size:10px;font-weight:900;margin-top:5px}
@media(max-width:720px){.lead-rotation-tools{display:block}.lead-rotation-actions{justify-content:flex-start;margin-top:10px}.lead-rotation-actions .btn{flex:1 1 160px}.rotation-summary{grid-template-columns:1fr}}
/* 2.7.11 — grandfathered onboarding status */
.lead-auto-status{margin:0 0 14px;padding:14px;border:1px solid #cfe0c5;background:#f6fbf3;border-radius:14px;box-shadow:0 5px 16px rgba(13,35,55,.04)}
.lead-auto-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.lead-auto-head strong{display:block;color:var(--navy);font-size:14px}.lead-auto-head span{display:block;color:var(--muted);font-size:11px;line-height:1.45;margin-top:3px}.lead-auto-badge{white-space:nowrap;padding:5px 9px;border-radius:999px;background:#e4f3dc;color:#315a24;font-size:10px;font-weight:900}.lead-auto-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.lead-auto-kpi{border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px}.lead-auto-kpi span{display:block;font-size:9px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.04em}.lead-auto-kpi strong{display:block;font-size:20px;color:var(--navy);margin-top:4px}.lead-auto-alert{margin-top:10px;padding:10px 12px;border:1px solid #efc3c3;background:#fff3f3;border-radius:11px;color:#7b2222;font-size:11px;line-height:1.5}.lead-auto-deficits{margin-top:9px;font-size:11px;color:var(--muted);line-height:1.55}.lead-auto-deficits b{color:var(--navy)}
@media(max-width:760px){.lead-auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lead-auto-head{display:block}.lead-auto-badge{display:inline-block;margin-top:8px}}



/* v2.7.13 Active Caller Controls */
.progress-shell{display:grid;gap:16px}
.progress-control{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.progress-control .control-group{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.progress-control select{width:auto;min-width:180px}
.progress-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.progress-kpi{background:#fff;border:1px solid #dfe8ec;border-radius:16px;padding:16px;min-height:112px;display:flex;flex-direction:column;justify-content:space-between}
.progress-kpi .kpi-label{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#60727d}
.progress-kpi .kpi-value{font-size:32px;line-height:1;font-weight:900;color:#102d3c;margin:8px 0}
.progress-kpi .kpi-note{font-size:12px;color:#667985}
.progress-kpi .trend-up{color:#18794e;font-weight:800}.progress-kpi .trend-down{color:#b5473c;font-weight:800}.progress-kpi .trend-flat{color:#667985;font-weight:800}
.progress-main-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:16px}
.progress-panel{background:#fff;border:1px solid #dfe8ec;border-radius:18px;padding:18px;min-width:0}
.progress-panel h2{margin:0 0 4px;font-size:21px}.progress-panel .panel-sub{font-size:12px;color:#6a7c86;margin-bottom:14px}
.pipeline-wrap{display:grid;grid-template-columns:180px 1fr;gap:18px;align-items:center}
.pipeline-donut{width:170px;height:170px;border-radius:50%;position:relative;margin:auto;background:#e8eef1}
.pipeline-donut:after{content:'';position:absolute;inset:34px;border-radius:50%;background:#fff}
.pipeline-donut-center{position:absolute;z-index:2;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;pointer-events:none}
.pipeline-donut-center strong{font-size:31px;line-height:1}.pipeline-donut-center span{font-size:11px;color:#657983;margin-top:5px;font-weight:700;text-transform:uppercase}
.pipeline-legend{display:grid;gap:9px}.pipeline-legend-row{display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #edf2f4}.pipeline-legend-row:last-child{border-bottom:0}.pipeline-dot{width:11px;height:11px;border-radius:50%}
.week-chart{height:230px;display:grid;grid-template-columns:repeat(7,1fr);gap:9px;align-items:end;padding-top:18px}
.week-bar-col{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:0}.week-bar-count{font-size:11px;font-weight:900;color:#274a5b}.week-bar-track{width:min(40px,80%);height:165px;border-radius:10px 10px 4px 4px;background:#edf2f4;display:flex;align-items:flex-end;overflow:hidden}.week-bar-fill{width:100%;min-height:3px;border-radius:10px 10px 0 0;background:#12394b}.week-bar-day{font-size:11px;font-weight:800;color:#627680}
.cold-progress{margin-top:12px}.cold-progress-head{display:flex;justify-content:space-between;gap:12px;font-weight:800;font-size:13px}.cold-progress-track{height:16px;background:#edf2f4;border-radius:999px;overflow:hidden;margin-top:8px}.cold-progress-fill{height:100%;background:#8dce37;border-radius:999px}.cold-progress-note{margin-top:7px;font-size:12px;color:#657983}
.action-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.action-box{border-radius:14px;padding:12px;background:#f4f8fa}.action-box strong{font-size:22px;display:block}.action-box span{font-size:11px;color:#657983;font-weight:700}
.team-progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.team-progress-card{border:1px solid #dfe8ec;border-radius:16px;padding:14px;background:#fff;cursor:pointer;transition:.12s ease;font:inherit;text-align:left;width:100%;color:inherit}.team-progress-card:hover{border-color:#9eb5c1;transform:translateY(-1px)}.team-progress-card.active{outline:2px solid #153d50}.team-progress-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.team-progress-name strong{display:block}.team-progress-name span{font-size:11px;color:#687c86}.team-progress-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}.team-mini{background:#f4f8fa;border-radius:10px;padding:8px;text-align:center}.team-mini strong{display:block;font-size:18px}.team-mini span{font-size:10px;color:#657983}.team-progress-alert{margin-top:10px;font-size:11px;font-weight:800}.team-progress-alert.good{color:#18794e}.team-progress-alert.attn{color:#a66300}
.progress-empty{padding:28px;text-align:center;color:#667985}.progress-help{background:#fff8e8;border:1px solid #f2dca8;border-radius:14px;padding:12px 14px;font-size:12px;color:#635022}
@media(max-width:1050px){.progress-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-main-grid{grid-template-columns:1fr}.team-progress-grid{grid-template-columns:1fr}}
@media(max-width:640px){.progress-kpis{grid-template-columns:1fr 1fr}.progress-kpi{min-height:96px;padding:13px}.progress-kpi .kpi-value{font-size:27px}.pipeline-wrap{grid-template-columns:1fr}.pipeline-donut{width:150px;height:150px}.week-chart{gap:4px}.team-progress-metrics{grid-template-columns:repeat(2,1fr)}.progress-control .control-group{width:100%}.progress-control select{width:100%}.action-strip{grid-template-columns:1fr}}


/* v2.9.7 — login hotfix + fast mobile */
.surepayroll-admin-tasks{border-left:4px solid var(--green);background:#fbfdf9}
.surepayroll-task-list{display:grid;gap:10px;margin-top:12px}
.surepayroll-task{border:1px solid var(--line);border-radius:12px;background:#fff;padding:13px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.surepayroll-task-copy{min-width:0}.surepayroll-task-copy strong{display:block;color:var(--navy)}
.surepayroll-task-copy span{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.45}
.surepayroll-task-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.surepayroll-status-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.surepayroll-status-chip{font-size:11px;font-weight:850;border-radius:999px;padding:5px 8px;background:#eef3f5;color:#42545e}
.surepayroll-status-chip.done{background:#edf7e5;color:#315518}
.surepayroll-status-chip.wait{background:#fff6df;color:#74510a}
.portal-fast-shell #chatPreview .empty:only-child{min-height:42px}
@media(max-width:920px){
  button,.btn,.link-btn,.nav button{min-height:44px}
  input,select,textarea{font-size:16px!important;max-width:100%;width:100%}
  .surepayroll-task{grid-template-columns:1fr}
  .surepayroll-task-actions{justify-content:stretch}
  .surepayroll-task-actions .btn{flex:1 1 100%;width:100%}
  .onboard-stage-mini{gap:10px}
  .onboard-stage-mini .link-btn{padding:8px 10px}
  .modal.modal-workflow #modalContent{padding-bottom:max(28px,env(safe-area-inset-bottom))}
  .main{padding-bottom:max(88px,calc(72px + env(safe-area-inset-bottom)))}
}

.admin-notification-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff7e8;border:1px solid #efd49b;border-left:5px solid #d39a2b;border-radius:13px;padding:12px 14px;margin:-8px 0 16px}
.admin-notification-bar.danger{background:#fff0ef;border-color:#efb4ae;border-left-color:#b42318}
.admin-notification-bar-copy{display:flex;align-items:center;gap:11px;min-width:0}
.admin-notification-bar-copy>div{min-width:0}
.admin-notification-bar-copy strong{display:block;color:#4f390d}
.admin-notification-bar.danger .admin-notification-bar-copy strong{color:#8a221b}
.admin-notification-bar-copy span:not(.admin-notification-bell){display:block;color:#715b2c;font-size:12px;margin-top:2px}
.admin-notification-bell{font-size:22px;flex:0 0 auto}
.notification-center-list{display:grid;gap:10px;margin-top:14px}
.notification-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.notification-item.unread{border-color:#b8d1dd;box-shadow:0 0 0 2px rgba(21,56,75,.04)}
.notification-item.warning{border-left:5px solid #d39a2b}
.notification-item.danger{border-left:5px solid #b42318}
.notification-item.success{border-left:5px solid #4c9d55}
.notification-item.info{border-left:5px solid #8aa2ad}
.notification-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f1f5f7}
.notification-copy strong{display:block;font-size:14px}
.notification-copy p{margin:4px 0 5px;color:#53636d;font-size:12px;line-height:1.5}
.notification-meta{display:flex;gap:8px;flex-wrap:wrap;color:#74828a;font-size:10px}
.notification-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.notification-actions .btn{font-size:11px;padding:8px 10px;white-space:nowrap}
.notification-status{font-size:10px;font-weight:850;border-radius:999px;padding:5px 8px;background:#eef2f4;color:#53636d}
.notification-status.action{background:#fff7e8;color:#7a4a00}
.notification-status.done{background:#edf8ef;color:#235d31}
.notification-status.problem{background:#fff0ef;color:#9c2d2d}
@media(max-width:720px){
  .admin-notification-bar{align-items:stretch;flex-direction:column}
  .admin-notification-bar .btn{width:100%}
  .notification-item{grid-template-columns:auto minmax(0,1fr)}
  .notification-actions{grid-column:1/-1;justify-content:stretch}
  .notification-actions .btn{flex:1 1 140px}
}

@media(max-width:560px){
  .top h1{font-size:24px}
  .card,.lead-card,.onboard-stage-card{border-radius:12px}
  .dashboard-resource-links{gap:8px}
  .dashboard-resource-links button{min-height:58px}
  .info-grid{gap:8px}
  .modal.modal-document .legal-doc-view{padding:16px 14px;line-height:1.62}
}


/* Nova AI */
.nova-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}.nova-main{border:1px solid var(--line);background:#fff;border-radius:18px;overflow:hidden;min-height:620px;display:flex;flex-direction:column}.nova-head{padding:18px 20px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#f8fbfa)}.nova-brand{display:flex;gap:12px;align-items:center}.nova-mark{width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#fff8de,#eef6ff);display:grid;place-items:center;overflow:hidden;box-shadow:0 6px 18px rgba(10,47,82,.12)}.nova-mark img{width:44px;height:44px;object-fit:contain}.nova-brand h2{margin:0;font-size:20px}.nova-brand p{margin:3px 0 0;color:var(--muted);font-size:12px}.nova-thread{padding:18px;display:flex;flex-direction:column;gap:12px;flex:1;overflow:auto;min-height:360px;max-height:620px}.nova-msg{display:flex;gap:9px;align-items:flex-start}.nova-msg.user{justify-content:flex-end}.nova-bubble{max-width:min(760px,86%);padding:12px 14px;border-radius:15px;line-height:1.5;font-size:13px;white-space:pre-wrap}.nova-msg.user .nova-bubble{background:#12352a;color:#fff;border-bottom-right-radius:5px}.nova-msg.assistant .nova-bubble{background:#f3f7f5;color:#16241f;border:1px solid #e1e9e5;border-bottom-left-radius:5px}.nova-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:linear-gradient(145deg,#fff8de,#eef6ff);display:grid;place-items:center;overflow:hidden;box-shadow:0 3px 10px rgba(10,47,82,.12)}.nova-avatar img{width:32px;height:32px;object-fit:contain}.nova-sources{margin-top:9px;display:flex;gap:6px;flex-wrap:wrap}.nova-source{border:1px solid #cddbd4;background:#fff;border-radius:999px;padding:5px 8px;font-size:10px;cursor:pointer;color:#22453a}.nova-compose{border-top:1px solid var(--line);padding:14px;background:#fff}.nova-compose textarea{width:100%;min-height:82px;max-height:180px;resize:vertical;border:1px solid #cad5db;border-radius:12px;padding:12px;font:inherit}.nova-compose-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;flex-wrap:wrap}.nova-compose-note{font-size:10px;color:var(--muted);max-width:520px}.nova-side{display:flex;flex-direction:column;gap:12px}.nova-card{border:1px solid var(--line);background:#fff;border-radius:16px;padding:15px}.nova-card h3{margin:0 0 8px;font-size:14px}.nova-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.nova-prompts{display:flex;flex-direction:column;gap:7px;margin-top:10px}.nova-prompt{border:1px solid #d6e1dc;background:#fbfdfc;border-radius:11px;padding:9px 10px;text-align:left;font-size:11px;cursor:pointer}.nova-prompt:hover{background:#f3f8f5}.nova-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:700;background:#eef5f1;color:#2c5b49}.nova-status-dot{width:7px;height:7px;border-radius:50%;background:#3da86f}.nova-warn{background:#fff7e8;border:1px solid #f1ddb3;border-radius:11px;padding:10px;font-size:10px;color:#6f521a;line-height:1.45}.nova-empty{margin:auto;text-align:center;max-width:520px;padding:34px 20px;color:var(--muted)}.nova-empty-avatar{width:168px;height:168px;object-fit:contain;display:block;margin:0 auto 10px;filter:drop-shadow(0 14px 20px rgba(15,55,97,.16))}.nova-empty strong{display:block;color:#18342a;font-size:20px;margin-bottom:7px}.nova-actions{display:flex;gap:7px;flex-wrap:wrap}.nova-loading{opacity:.65}.nova-feedback{display:flex;gap:5px;margin-top:9px}.nova-feedback button{border:0;background:transparent;cursor:pointer;font-size:13px;padding:2px 4px}.nova-feedback button:hover{transform:scale(1.08)}
@media(max-width:920px){.nova-shell{grid-template-columns:1fr}.nova-side{order:-1}.nova-card.nova-about{display:none}.nova-main{min-height:560px}.nova-thread{max-height:none;min-height:320px}.nova-bubble{max-width:91%}}.chat-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.chat-ask-nova{display:inline-flex;align-items:center;gap:7px}.chat-ask-nova img{width:24px;height:24px;object-fit:contain}


/* Sign-out footer placement v2.9.28 */
.side-user-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.side-user-row .who{flex:1 1 auto;min-width:0}
.sidebar-signout{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 10px;border:1px solid rgba(255,255,255,.38);border-radius:9px;background:#fff;color:#8b1717;font:inherit;font-size:11px;font-weight:850;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.12);white-space:nowrap}
.sidebar-signout:hover{background:#f8fafb;border-color:#fff;transform:translateY(-1px)}
.sidebar-signout:focus-visible{outline:3px solid rgba(142,198,63,.48);outline-offset:2px}
.sidebar-signout:disabled{opacity:.6;cursor:wait;transform:none}
.sidebar-signout-icon{font-size:14px;line-height:1}
@media(max-width:920px){
  .side.mobile-open .side-bottom{display:block}
  .side-user-row{width:100%;align-items:center;gap:8px}
  .side-user-row .who{width:auto;text-align:left;font-size:11px}
  .sidebar-signout{min-height:34px;padding:7px 9px;font-size:11px}
}
@media(max-width:420px){
  .side-user-row{gap:6px}
  .sidebar-signout{padding:7px 8px}
  .sidebar-signout-icon{display:none}
}


/* Sidebar avatar hard-circle fix v2.9.29 */
.sidebar-profile-chip{display:flex;align-items:center;gap:10px;min-width:0}
.sidebar-avatar-wrap{
  width:38px;height:38px;min-width:38px;min-height:38px;max-width:38px;max-height:38px;
  flex:0 0 38px;display:grid;place-items:center;overflow:hidden;
  border-radius:50%;-webkit-border-radius:50%;
  background:#eef4f7;border:2px solid rgba(255,255,255,.24);
  box-shadow:0 4px 12px rgba(0,0,0,.18)
}
.sidebar-avatar-wrap>.avatar{
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;flex:none!important;
  margin:0!important;padding:0!important;border:0!important;
  border-radius:50%!important;-webkit-border-radius:50%!important;
  object-fit:cover!important;object-position:center center!important;display:block!important
}
.sidebar-avatar-wrap>.avatar-fallback{
  display:grid!important;place-items:center!important;border-radius:50%!important
}
@media(max-width:920px){
  .sidebar-avatar-wrap{width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;max-height:36px;flex-basis:36px}
}



/* LuNova portal performance + mobile pass v2.9.31 */
button,.btn,a,input,select,textarea{touch-action:manipulation}
.section.active .card,
.section.active .lead-card,
.section.active .person-card,
.section.active .resource-card,
.section.active .onboard-stage-card,
.section.active .progress-panel{
  content-visibility:auto;
  contain-intrinsic-size:1px 240px;
}
img{content-visibility:auto}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
@media(max-width:920px){
  .side{
    padding-top:calc(10px + env(safe-area-inset-top));
    padding-left:max(12px,env(safe-area-inset-left));
    padding-right:max(12px,env(safe-area-inset-right));
  }
  .mobile-menu-toggle{top:calc(11px + env(safe-area-inset-top))}
  .main{
    padding-left:max(12px,env(safe-area-inset-left));
    padding-right:max(12px,env(safe-area-inset-right));
    padding-bottom:calc(88px + env(safe-area-inset-bottom));
  }
  input,select,textarea{font-size:16px;min-height:44px}
  .btn,.nav button,.x,.mobile-menu-toggle{min-height:44px}
  .side.mobile-open .side-bottom{display:block}
  .side-user-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
  .side-user-row .who{flex:1 1 auto;width:auto;text-align:left}
  .sidebar-signout{width:auto!important;min-width:88px;min-height:40px}
  .top{gap:10px}
  .top h1{font-size:clamp(24px,7vw,29px)}
  .toolbar{align-items:stretch}
  .filters>*{width:100%}
}
@media(max-width:560px){
  .main{padding-top:12px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
  .card{padding:13px}
  .grid{gap:9px}
  .top{margin-bottom:14px}
  .top p{font-size:12px;line-height:1.45}
  .modal:not(.modal-document):not(.modal-workflow){padding:0;place-items:stretch}
  .modal:not(.modal-document):not(.modal-workflow) .modal-card{
    width:100vw;max-width:none;min-height:100dvh;max-height:100dvh;border-radius:0;
    padding:16px max(14px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  }
  .modal:not(.modal-document):not(.modal-workflow) .modal-head{position:sticky;top:0;background:#fff;z-index:2;padding-top:env(safe-area-inset-top)}
  .table-wrap{-webkit-overflow-scrolling:touch}
  .chat-composer textarea{min-height:92px}
  .mobile-fab{bottom:calc(12px + env(safe-area-inset-bottom))}
}



/* Public website navigation v2.9.33 */
.sidebar-website-logo{display:block;text-decoration:none;cursor:pointer}
.sidebar-website-logo:focus-visible{outline:3px solid rgba(142,198,63,.5);outline-offset:3px;border-radius:11px}
.nav-external{
  display:flex;align-items:center;gap:9px;width:100%;box-sizing:border-box;
  border:0;border-radius:9px;padding:11px 10px;margin:0;
  color:#eef6fb;background:transparent;text-decoration:none;
  font:inherit;font-size:14px;font-weight:700;line-height:1.2;
  transition:background .15s ease,transform .15s ease
}
.nav-external:hover{background:rgba(255,255,255,.10);transform:translateX(1px)}
.nav-external:focus-visible{outline:3px solid rgba(142,198,63,.5);outline-offset:2px}
.nav-external-arrow{margin-left:auto;opacity:.7;font-size:12px}
@media(max-width:920px){.nav-external{min-height:44px}}



/* Compact CRM lead list v2.9.34 */
.lead-list{display:flex;flex-direction:column;gap:8px}
.lead-list-head,
.lead-list-row{
  display:grid;
  grid-template-columns:minmax(170px,1.15fr) minmax(190px,1.15fr) minmax(220px,1.35fr) minmax(145px,.9fr) minmax(245px,1.35fr);
  gap:12px;align-items:center
}
.lead-list-head{
  padding:0 12px 5px;color:var(--muted);font-size:10px;font-weight:900;
  letter-spacing:.08em;text-transform:uppercase
}
.lead-list-row{
  border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px 12px;
  content-visibility:auto;contain-intrinsic-size:1px 92px
}
.lead-list-row:hover{border-color:#b9c9d1;box-shadow:0 4px 14px rgba(13,35,55,.05)}
.lead-list-primary{min-width:0}
.lead-list-primary-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.lead-list-name{font-size:14px;font-weight:900;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.lead-list-meta,.lead-list-sub{font-size:11px;color:var(--muted);line-height:1.4;margin-top:3px}
.lead-list-contact{min-width:0;font-size:12px}
.lead-list-contact-line{display:flex;align-items:center;gap:6px;min-width:0}
.lead-list-contact-line+.lead-list-contact-line{margin-top:5px}
.lead-list-contact-line a{font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead-list-contact-tools{display:flex;gap:5px;margin-left:auto;flex:0 0 auto}
.lead-list-mini{
  border:1px solid #d7e1e6;background:#f7fafb;border-radius:7px;
  padding:5px 7px;font:inherit;font-size:10px;font-weight:850;cursor:pointer;white-space:nowrap
}
.lead-list-mini:hover{background:#edf3f6}
.lead-list-property{min-width:0}
.lead-list-address{font-size:12px;font-weight:750;line-height:1.4}
.lead-list-facts{display:flex;gap:7px;flex-wrap:wrap;margin-top:5px}
.lead-list-fact{font-size:10px;color:#53646f;background:#f3f7f8;border-radius:999px;padding:3px 6px}
.lead-list-owner{font-size:11px;line-height:1.45}
.lead-list-owner strong{display:block;font-size:11px;color:var(--ink)}
.lead-list-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.lead-list-actions .btn{padding:7px 9px;font-size:10px;min-height:32px}
.lead-list-followup{margin-top:5px;font-size:10px;color:#8a5a00;font-weight:800}
.lead-list-contact-pending{margin-top:5px;display:flex;align-items:center;gap:6px;color:#8a5a00;font-size:10px;font-weight:800}
.lead-list-verify{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}
.lead-list-verify .pill{font-size:9px;padding:3px 5px}
@media(max-width:1180px){
  .lead-list-head,.lead-list-row{grid-template-columns:minmax(160px,1fr) minmax(180px,1fr) minmax(210px,1.2fr) minmax(230px,1.2fr)}
  .lead-list-head>span:nth-child(4){display:none}
  .lead-list-row>.lead-list-owner{display:none}
}
@media(max-width:760px){
  .lead-list-head{display:none}
  .lead-list-row{grid-template-columns:1fr;gap:9px;padding:12px}
  .lead-list-row>.lead-list-owner{display:block}
  .lead-list-name{font-size:15px}
  .lead-list-contact{padding:8px 0;border-top:1px solid #eef2f4;border-bottom:1px solid #eef2f4}
  .lead-list-actions{justify-content:flex-start}
  .lead-list-actions .btn{flex:1 1 96px;min-height:40px}
  .lead-list-contact-tools{margin-left:0}
}




/* LuNova split-view Leads workspace v2.17.0 */
.lead-workspace-host{min-width:0}
.lead-workspace{
  display:grid;grid-template-columns:minmax(300px,36%) minmax(0,1fr);gap:14px;align-items:start;
  min-height:610px
}
.lead-workspace-list,.lead-workspace-detail{
  border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden;
  box-shadow:0 5px 18px rgba(13,35,55,.045)
}
.lead-workspace-list{position:sticky;top:12px;max-height:calc(100vh - 115px);display:flex;flex-direction:column}
.lead-workspace-list-head{padding:14px 15px 10px;border-bottom:1px solid #edf2f4;background:linear-gradient(180deg,#fff,#fbfdfe)}
.lead-workspace-list-head strong{display:block;font-size:15px;color:var(--ink)}
.lead-workspace-list-head span{display:block;margin-top:3px;font-size:11px;color:var(--muted)}
.lead-workspace-scroll{overflow:auto;overscroll-behavior:contain;padding:7px}
.lead-workspace-item{
  width:100%;text-align:left;border:1px solid transparent;background:#fff;border-radius:11px;padding:11px 11px;
  cursor:pointer;font:inherit;color:inherit;transition:.15s ease;margin:0 0 5px
}
.lead-workspace-item:hover{background:#f7fafb;border-color:#dce7eb}
.lead-workspace-item.active{background:#eff7ff;border-color:#91bff5;box-shadow:inset 3px 0 0 #1672df}
.lead-workspace-item-top{display:flex;align-items:center;gap:7px}
.lead-workspace-item-name{font-size:13px;font-weight:900;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.lead-workspace-item .pill{font-size:9px;padding:3px 6px;flex:0 0 auto}
.lead-workspace-item-meta{font-size:10.5px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lead-workspace-item-contact{display:flex;gap:10px;align-items:center;margin-top:7px;color:#405560;font-size:10.5px}
.lead-workspace-item-contact span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead-workspace-item-foot{display:flex;justify-content:space-between;gap:8px;margin-top:7px;font-size:9.5px;color:#6b7d86}
.lead-workspace-empty{padding:35px 20px;text-align:center;color:var(--muted)}
.lead-workspace-detail{min-height:610px}
.lead-detail-hero{padding:18px 20px 0;background:linear-gradient(180deg,#fff,#fbfdff);border-bottom:1px solid #e9eff2}
.lead-detail-mobile-back{display:none}
.lead-detail-title-row{display:flex;align-items:flex-start;gap:12px}
.lead-detail-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e7f2ff;color:#1365c7;font-size:18px;font-weight:950;flex:0 0 auto}
.lead-detail-title{min-width:0;flex:1}
.lead-detail-title h2{margin:0;font-size:22px;line-height:1.1;color:var(--ink)}
.lead-detail-sub{display:flex;gap:9px;flex-wrap:wrap;margin-top:6px;color:var(--muted);font-size:11px}
.lead-detail-main-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.lead-detail-main-actions .btn{font-size:10px;padding:7px 9px;min-height:32px}
.lead-detail-contact-strip{display:flex;gap:16px;flex-wrap:wrap;margin:14px 0 0;padding:11px 0 13px;border-top:1px solid #edf2f4;color:#405560;font-size:11px}
.lead-detail-contact-strip a{font-weight:850}
.lead-detail-tabs{display:flex;gap:4px;overflow:auto;padding:0 20px;background:#fff;border-bottom:1px solid #e9eff2}
.lead-detail-tab{border:0;background:transparent;padding:12px 10px 10px;font:inherit;font-size:11px;font-weight:850;color:#61727c;white-space:nowrap;border-bottom:3px solid transparent}
.lead-detail-tab.active{color:#1168d7;border-bottom-color:#1168d7}
.lead-detail-body{padding:16px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.8fr);gap:14px}
.lead-detail-card{border:1px solid #e3eaed;border-radius:13px;background:#fff;padding:14px;min-width:0}
.lead-detail-card h3{margin:0 0 11px;font-size:13px;color:var(--ink)}
.lead-detail-field{display:grid;grid-template-columns:118px minmax(0,1fr);gap:10px;padding:7px 0;border-bottom:1px solid #eef2f4;font-size:11px;line-height:1.35}
.lead-detail-field:last-child{border-bottom:0}
.lead-detail-label{color:#73828b;font-weight:750}
.lead-detail-value{color:var(--ink);font-weight:700;overflow-wrap:anywhere}
.lead-detail-value a{font-weight:900}
.lead-detail-stack{display:flex;flex-direction:column;gap:14px}
.lead-detail-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.lead-detail-action-grid .btn{width:100%;font-size:10px;min-height:36px}
.lead-detail-status-block{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #eef2f4;font-size:11px}
.lead-detail-status-block:last-child{border-bottom:0}
.lead-detail-note{font-size:11px;line-height:1.55;color:#405560;white-space:pre-wrap}
.lead-detail-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}
.lead-detail-badges .pill{font-size:9px}
.lead-detail-section-wide{grid-column:1/-1}
.lead-detail-history{display:flex;flex-direction:column;gap:8px}
.lead-detail-history-item{border-left:3px solid #dbe8ef;padding:3px 0 3px 10px;font-size:10.5px;color:#405560}
.lead-detail-history-item strong{display:block;color:var(--ink);font-size:11px}
.lead-detail-history-item span{display:block;margin-top:2px;color:#7a8991;font-size:9.5px}
@media(max-width:1180px){
  .lead-workspace{grid-template-columns:minmax(270px,34%) minmax(0,1fr)}
  .lead-detail-body{grid-template-columns:1fr}
  .lead-detail-section-wide{grid-column:auto}
}
@media(max-width:760px){
  .lead-workspace{display:block;min-height:0}
  .lead-workspace-list{position:static;max-height:none;border-radius:13px}
  .lead-workspace-detail{display:none;border-radius:13px;min-height:0}
  .lead-workspace.mobile-detail-open .lead-workspace-list{display:none}
  .lead-workspace.mobile-detail-open .lead-workspace-detail{display:block}
  .lead-detail-mobile-back{display:inline-flex;margin:0 0 12px;border:0;background:#eef5f8;border-radius:9px;padding:8px 10px;font:inherit;font-size:11px;font-weight:850;color:var(--ink)}
  .lead-detail-hero{padding:14px 14px 0}
  .lead-detail-title-row{flex-wrap:wrap}
  .lead-detail-main-actions{width:100%;justify-content:flex-start}
  .lead-detail-contact-strip{gap:9px;flex-direction:column}
  .lead-detail-tabs{padding:0 10px}
  .lead-detail-body{padding:10px}
  .lead-detail-field{grid-template-columns:105px minmax(0,1fr)}
}


/* Legal signing acknowledgement fix v2.9.35 */
.legal-ack-row{
  display:flex;gap:10px;align-items:flex-start;margin:12px 0;
  padding:10px 12px;border:1px solid #dbe5ea;border-radius:10px;background:#f8fbfc;
  font-size:12px;line-height:1.45
}
.legal-ack-row input[type="checkbox"]{
  width:18px;height:18px;min-width:18px;margin-top:1px;accent-color:#8dcc35
}
@media(max-width:560px){
  .legal-ack-row{font-size:13px;padding:11px}
  .legal-ack-row input[type="checkbox"]{width:20px;height:20px;min-width:20px}
}



/* Stale-tab guard + legal mobile clarity v2.9.36 */
.legal-sign-required-note{
  max-width:980px;margin:14px auto 0;padding:10px 12px;border-radius:10px;
  background:#fff8e8;border:1px solid #f0d79a;color:#694d0d;
  font-size:12px;font-weight:750;line-height:1.45
}
@media(max-width:560px){
  .legal-sign-required-note{font-size:13px;margin-top:10px}
}



/* Password reset clarity v2.9.37 */
.forgot-reset-warning{
  margin:9px 0 11px;padding:9px 10px;border-radius:9px;
  border:1px solid #efd7a0;background:#fff8e8;color:#6e500e;
  font-size:11px;line-height:1.45
}
@media(max-width:560px){.forgot-reset-warning{font-size:12px}}



/* Lead archive + permanent-delete controls v2.9.41 */
.lead-cleanup-panel{display:grid;gap:12px}
.lead-delete-zone{
  margin-top:8px;padding:14px;border:1px solid #efc1bd;border-radius:12px;
  background:#fff7f6
}
.lead-delete-zone>strong{color:#9f241d}
.lead-delete-zone p{margin:5px 0 10px;color:#6d403c;font-size:12px;line-height:1.5}
.btn-danger{
  border:1px solid #b42318!important;background:#b42318!important;color:#fff!important
}
.btn-danger:hover{filter:brightness(.96)}
.danger-box{
  border:1px solid #e7b5b1;background:#fff1f0;color:#7e241e;
  border-radius:11px;padding:12px;line-height:1.5
}
.lead-delete-confirm{display:grid;gap:10px}
@media(max-width:760px){
  .lead-delete-zone .btn-danger,.lead-delete-confirm .btn-danger{min-height:44px}
}



/* Admin Deleted Leads recovery bin v2.9.43 */
.deleted-lead-list,.deleted-audit-list{display:grid;gap:8px;margin-top:12px}
.deleted-lead-row{
  display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(120px,.8fr) minmax(175px,1fr) minmax(175px,1fr) auto;
  gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff
}
.deleted-lead-main{min-width:0}
.deleted-lead-main strong{display:block;font-size:13px}
.deleted-lead-main span{display:block;font-size:11px;color:var(--muted);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.deleted-label{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900;margin-bottom:3px}
.deleted-lead-row>div>strong{font-size:11px}
.deleted-sub{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.deleted-lead-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.deleted-lead-actions .btn{font-size:10px;padding:7px 9px}
.deleted-audit-row{
  display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(120px,.7fr) minmax(170px,.9fr) minmax(180px,1fr);
  gap:12px;align-items:center;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fafcfd
}
.deleted-audit-row>div:first-child strong{display:block;font-size:12px}
.deleted-audit-row>div:first-child span{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.deleted-audit-row>div>strong{font-size:11px}
@media(max-width:980px){
  .deleted-lead-row{grid-template-columns:1fr 1fr}
  .deleted-lead-main{grid-column:1/-1}
  .deleted-lead-actions{grid-column:1/-1;justify-content:flex-start}
  .deleted-audit-row{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .deleted-lead-row,.deleted-audit-row{grid-template-columns:1fr}
  .deleted-lead-main,.deleted-lead-actions{grid-column:auto}
  .deleted-lead-actions .btn{flex:1 1 130px;min-height:40px}
}



/* Calling-list role alignment + pinned sidebar account footer v2.9.44 */
@media(min-width:921px){
  .side{
    overflow:hidden;
    min-height:100vh;max-height:100vh;gap:16px;
    padding-bottom:14px;
  }
  .side .logo{
    flex:0 0 auto;
  }
  .side .nav{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    align-content:start;
    padding-right:4px;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  .side .nav::-webkit-scrollbar{width:0;height:0;display:none}
  .side-bottom{
    flex:0 0 auto;
    margin-top:0;
    position:relative;
    z-index:2;
    background:var(--navy);
  }
}



/* Directory business contacts + Team Chat replies/mentions v2.9.48 */
.directory-contact-card{
  margin:14px 0;padding:13px;border:1px solid var(--line);
  border-radius:12px;background:#f8fbfc
}
.directory-contact-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.directory-contact-head strong{font-size:12px}
.directory-contact-head span{font-size:10px;color:var(--muted)}
.directory-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.directory-contact-item{min-width:0;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.directory-contact-item>span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.07em;font-weight:900;color:var(--muted);margin-bottom:5px}
.directory-contact-value{display:flex;align-items:center;gap:8px;min-width:0}
.directory-contact-value a{font-size:11px;font-weight:800;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.directory-copy-btn{border:0;background:#edf2f4;border-radius:7px;padding:5px 7px;font-size:9px;font-weight:900;cursor:pointer;flex:0 0 auto}
.directory-contact-missing{font-size:11px;color:var(--muted)}

.chat-reply-context{
  width:100%;display:flex;flex-direction:column;gap:2px;text-align:left;
  border:0;border-left:3px solid #8ac832;background:rgba(138,200,50,.08);
  border-radius:7px;padding:7px 9px;margin:0 0 7px;cursor:pointer;color:inherit
}
.chat-reply-context strong{font-size:10px}
.chat-reply-context span{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-reply-context.missing{font-size:10px;color:var(--muted);cursor:default}
.chat-composer-reply{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  border:1px solid var(--line);border-left:4px solid #8ac832;background:#f7fbf1;
  border-radius:10px;padding:8px 10px;margin-bottom:8px
}
.chat-composer-reply>div{min-width:0;display:grid;grid-template-columns:auto 1fr;column-gap:6px;align-items:baseline}
.chat-composer-reply span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:900}
.chat-composer-reply strong{font-size:11px}
.chat-composer-reply small{grid-column:1/-1;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.chat-composer-reply button{border:0;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:var(--muted)}
.chat-input-wrap{position:relative}
.chat-mention-picker{
  position:absolute;left:10px;bottom:calc(100% + 6px);z-index:8;
  width:min(390px,calc(100% - 20px));max-height:280px;overflow:auto;
  padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;
  box-shadow:0 16px 34px rgba(15,39,54,.16)
}
.chat-mention-option{
  width:100%;display:flex;align-items:center;gap:9px;border:0;background:#fff;
  padding:8px;border-radius:9px;text-align:left;cursor:pointer
}
.chat-mention-option:hover,.chat-mention-option:focus{background:#f1f5f7;outline:none}
.chat-mention-option span{display:flex;flex-direction:column;min-width:0}
.chat-mention-option strong{font-size:11px}
.chat-mention-option small{font-size:9px;color:var(--muted)}
.chat-mention-empty{padding:12px;font-size:10px;color:var(--muted);text-align:center}
.chat-tag-btn{white-space:nowrap}
.chat-message-flash{animation:chatMessageFlash 1.4s ease}
@keyframes chatMessageFlash{
  0%,100%{filter:none}
  20%,65%{filter:drop-shadow(0 0 0 rgba(138,200,50,0));background:rgba(138,200,50,.11)}
}
@media(max-width:700px){
  .directory-contact-grid{grid-template-columns:1fr}
  .directory-contact-head{align-items:flex-start;flex-direction:column;gap:3px}
  .chat-tag-btn{width:auto}
  .chat-mention-picker{left:0;width:100%}
}



/* LuLu dynamic mascot reliability v2.9.49 */
.nova-empty-avatar,.nova-avatar img{
  object-fit:contain;
}


/* Team Chat image attachments — v2.9.52 */
.chat-image-btn{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.chat-image-preview{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#f8fafb;margin-top:10px;max-width:520px}
.chat-image-preview img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:#fff}
.chat-image-preview-copy{min-width:0;flex:1}
.chat-image-preview-copy strong,.chat-image-preview-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-image-preview-copy span{font-size:12px;color:var(--muted);margin-top:3px}
.chat-image-preview-remove{border:0;background:#eef2f4;border-radius:9px;padding:8px 10px;cursor:pointer;font-weight:700}
.chat-attachment{margin-top:8px}
.chat-attachment-link{display:block;max-width:min(420px,72vw);border-radius:13px;overflow:hidden;border:1px solid rgba(14,36,50,.12);background:#eef2f4;line-height:0}
.chat-attachment-link img{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;background:#f6f8f9}
.chat-image-loading{display:flex;align-items:center;gap:7px;min-height:64px;max-width:280px;padding:12px;border:1px dashed var(--line);border-radius:11px;background:#f7f9fa;color:var(--muted);font-size:12px}
.chat-image-caption{margin-bottom:6px}
@media(max-width:700px){
  .chat-attachment-link{max-width:78vw}
  .chat-attachment-link img{max-height:52vh}
  .chat-image-preview{max-width:100%}
  .chat-composer-left{gap:7px}
}



/* Built-in GIPHY picker + Technical Help prep v2.9.53 */
.giphy-admin-row{display:flex;gap:8px;align-items:center}
.giphy-admin-row input{flex:1;min-width:0}
.chat-gif-picker{
  margin:8px 0 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,39,54,.12);
  overflow:hidden;
}
.chat-gif-head{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid var(--line)}
.chat-gif-search-wrap{display:flex;gap:7px;flex:1;min-width:0}
.chat-gif-search-wrap input{flex:1;min-width:0;height:38px}
.chat-gif-close{border:0;background:#edf2f4;border-radius:999px;width:34px;height:34px;font-size:20px;cursor:pointer;line-height:1}
.chat-gif-results{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  padding:8px;
  max-height:340px;
  overflow:auto;
}
.chat-gif-tile{border:0;padding:0;background:#eef2f4;border-radius:8px;overflow:hidden;cursor:pointer;aspect-ratio:1/1}
.chat-gif-tile img{width:100%;height:100%;object-fit:cover;display:block}
.chat-gif-tile:hover,.chat-gif-tile:focus{outline:3px solid rgba(138,200,50,.45);outline-offset:0}
.chat-gif-state{grid-column:1/-1;padding:28px 14px;text-align:center;color:var(--muted);font-size:11px;line-height:1.55}
.chat-gif-powered{text-align:right;padding:0 10px 8px;font-size:9px;font-weight:900;color:var(--muted);letter-spacing:.03em}
.chat-gif-btn{font-weight:900}
@media(max-width:720px){
  .giphy-admin-row{align-items:stretch;flex-direction:column}
  .chat-gif-results{grid-template-columns:repeat(3,minmax(0,1fr));max-height:300px}
  .chat-gif-head{align-items:flex-start}
  .chat-gif-search-wrap{min-width:0}
}



/* Built-in emoji picker v2.9.54 */
.chat-emoji-picker{
  margin:8px 0 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,39,54,.12);
  overflow:hidden;
}
.chat-emoji-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:9px 10px;border-bottom:1px solid var(--line)
}
.chat-emoji-grid{
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:3px;
  padding:8px;
  max-height:235px;
  overflow:auto
}
.chat-emoji-option{
  border:0;background:transparent;border-radius:8px;
  min-width:34px;height:34px;font-size:20px;cursor:pointer;
  display:flex;align-items:center;justify-content:center
}
.chat-emoji-option:hover,.chat-emoji-option:focus{
  background:#edf2f4;outline:none
}
.chat-emoji-note{
  padding:0 10px 8px;font-size:9px;color:var(--muted)
}
.chat-emoji-btn{white-space:nowrap}
@media(max-width:720px){
  .chat-emoji-grid{grid-template-columns:repeat(7,minmax(0,1fr));max-height:220px}
}



/* Expanded emoji picker + reactions v2.9.55 */
.chat-emoji-search{padding:8px 10px 6px}
.chat-emoji-search input{width:100%;height:36px}
.chat-emoji-tabs{
  display:flex;gap:5px;overflow:auto;padding:0 10px 8px;
  scrollbar-width:none
}
.chat-emoji-tabs::-webkit-scrollbar{display:none}
.chat-emoji-tab{
  flex:0 0 auto;border:1px solid var(--line);background:#f5f8f9;
  border-radius:999px;padding:6px 9px;font-size:9px;font-weight:900;cursor:pointer
}
.chat-emoji-tab.active{background:var(--navy);border-color:var(--navy);color:#fff}
.chat-emoji-grid{
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:3px;padding:8px;max-height:270px;overflow:auto
}
.chat-emoji-option{
  border:0;background:transparent;border-radius:8px;
  min-width:34px;height:36px;font-size:21px;cursor:pointer;
  display:flex;align-items:center;justify-content:center
}
.chat-emoji-option:hover,.chat-emoji-option:focus{background:#edf2f4;outline:none}
.chat-emoji-empty{grid-column:1/-1;padding:24px;text-align:center;color:var(--muted);font-size:11px}
.chat-emoji-note{padding:0 10px 8px;font-size:9px;color:var(--muted)}

.chat-reactions{
  position:relative;display:flex;flex-wrap:wrap;gap:5px;align-items:center;
  margin:5px 0 1px
}
.chat-reaction-chip,.chat-reaction-add{
  border:1px solid var(--line);background:#f7fafb;border-radius:999px;
  min-height:27px;padding:3px 8px;display:inline-flex;align-items:center;gap:4px;
  cursor:pointer;font-size:13px
}
.chat-reaction-chip strong{font-size:9px;color:var(--muted)}
.chat-reaction-chip.mine{
  border-color:#8ac832;background:rgba(138,200,50,.12)
}
.chat-reaction-add{font-size:15px;font-weight:900;color:var(--muted);padding:2px 8px}
.chat-reaction-picker{
  position:absolute;left:0;bottom:34px;z-index:12;
  display:grid;grid-template-columns:repeat(8,34px);gap:3px;
  padding:7px;background:#fff;border:1px solid var(--line);border-radius:12px;
  box-shadow:0 14px 32px rgba(15,39,54,.18)
}
.chat-reaction-picker button{
  border:0;background:transparent;border-radius:8px;width:34px;height:34px;
  font-size:20px;cursor:pointer
}
.chat-reaction-picker button:hover,.chat-reaction-picker button:focus{
  background:#edf2f4;outline:none
}
@media(max-width:720px){
  .chat-emoji-grid{grid-template-columns:repeat(7,minmax(0,1fr));max-height:250px}
  .chat-reaction-picker{grid-template-columns:repeat(6,34px);max-width:240px}
}



/* Work Reliability OS v2.10.0 */
.ready-work-card{
  margin:0 0 16px;padding:16px;border:1px solid var(--line);border-radius:15px;
  background:linear-gradient(180deg,#fff,#fbfcfd)
}
.ready-work-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.ready-work-head h2{margin:3px 0 4px;font-size:19px}
.ready-work-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.ready-work-kicker{font-size:9px;text-transform:uppercase;letter-spacing:.09em;font-weight:950;color:var(--muted)}
.ready-work-score{
  min-width:72px;border-radius:12px;padding:9px 11px;text-align:center;background:#fff7e8;border:1px solid #efd49b
}
.ready-work-score.good{background:#f2f9e8;border-color:#cfe3a8}
.ready-work-score strong{display:block;font-size:20px}
.ready-work-score span{font-size:9px;text-transform:uppercase;font-weight:900;color:var(--muted)}
.ready-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px}
.ready-work-item{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:#fff}
.ready-work-item.ok{border-color:#dce9c5;background:#fbfef7}
.ready-work-item.needs{border-color:#efd49b;background:#fffaf0}
.ready-work-item.checking{opacity:.75}
.ready-work-icon{width:23px;height:23px;border-radius:999px;display:grid;place-items:center;font-size:11px;font-weight:950;background:#edf2f4}
.ready-work-item.ok .ready-work-icon{background:#e8f4d7;color:#315b13}
.ready-work-item.needs .ready-work-icon{background:#fff0cc;color:#7a4a00}
.ready-work-item strong{display:block;font-size:10px}
.ready-work-item span:not(.ready-work-icon){display:block;font-size:9px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ready-fix{border:0;background:#edf2f4;border-radius:8px;padding:6px 8px;font-size:9px;font-weight:900;cursor:pointer}
.ready-work-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px}
.ready-blocker{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:11px;padding:10px 11px;border:1px solid #efb4ae;border-radius:10px;background:#fff8f7}
.ready-blocker strong{font-size:11px;color:#8b2920}
.ready-blocker span{font-size:10px;color:var(--muted);flex:1;min-width:180px}

.support-fab{
  position:fixed;right:20px;bottom:20px;z-index:17;border:0;border-radius:999px;
  background:#b42318;color:#fff;padding:12px 16px;font-weight:950;cursor:pointer;
  box-shadow:0 12px 30px rgba(82,20,16,.28)
}
.support-fab:hover{transform:translateY(-1px)}
.support-context-note{font-size:10px;line-height:1.5;padding:9px 10px;border-radius:9px;background:#f5f8f9;color:var(--muted);margin:6px 0 13px}

.team-attention-card{margin-top:0}
.attention-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:13px 0}
.attention-stats>div{padding:10px;border:1px solid var(--line);border-radius:10px;background:#f8fafb}
.attention-stats span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:900}
.attention-stats strong{display:block;font-size:20px;margin-top:3px}
.attention-section{margin-top:13px}
.attention-section h3{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 6px}
.attention-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #e8eef1}
.attention-row:last-child{border-bottom:0}
.attention-row>div:first-child{min-width:0}
.attention-row strong{display:block;font-size:11px}
.attention-row span{display:block;font-size:9px;color:var(--muted);margin-top:2px}
.attention-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.attention-actions .btn,.attention-row>.btn{padding:7px 9px;font-size:9px}
.health-error,.health-critical{background:#fff8f7}

.task.priority{border-left:4px solid var(--green)}
.task.priority.overdue,.task.priority.critical{border-left-color:var(--danger)}
.task.priority strong{font-size:12px}

@media(max-width:900px){
  .ready-work-grid{grid-template-columns:1fr 1fr}
  .attention-stats{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .ready-work-head{align-items:center}
  .ready-work-grid{grid-template-columns:1fr}
  .ready-work-score{min-width:64px}
  .ready-work-actions .btn{flex:1 1 130px}
  .attention-stats{grid-template-columns:1fr 1fr}
  .attention-row{align-items:flex-start;flex-direction:column}
  .attention-actions{width:100%;justify-content:flex-start}
  .attention-actions .btn{flex:1 1 105px}
  .support-fab{right:14px;bottom:72px;padding:11px 14px}
}



/* Utility Bill Visibility v2.10.1 */
.utility-bill-panel{
  margin:12px 0;padding:11px;border:1px solid #d7e3e8;border-radius:12px;background:#f8fbfc
}
.utility-bill-panel-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px
}
.utility-bill-panel-head>div{min-width:0}
.utility-bill-panel-head strong{display:block;font-size:11px}
.utility-bill-panel-head span:not(.pill){display:block;font-size:9px;color:var(--muted);margin-top:2px}
.utility-bill-file{
  display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center;
  padding:8px 0;border-top:1px solid #e5edf0
}
.utility-bill-file.latest{border-top:0}
.utility-bill-file-icon{
  width:34px;height:34px;border-radius:8px;background:#eaf2f5;display:grid;place-items:center;
  font-size:10px;font-weight:950;color:var(--navy)
}
.utility-bill-file-copy{min-width:0}
.utility-bill-file-copy strong{
  display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.utility-bill-file-copy span{display:block;font-size:9px;color:var(--muted);margin-top:2px}
.utility-bill-file .btn{padding:7px 9px;font-size:9px}
.utility-bill-selected{
  margin-top:7px;padding:8px 9px;border-radius:8px;background:#eef8e4;border:1px solid #cfe4ae;
  color:#315b13;font-size:10px;font-weight:850
}
.lead-list-fact.bill-on-file{background:#eef8e4;border-color:#cfe4ae;color:#315b13}
.lead-bill-action{font-weight:900}
@media(max-width:640px){
  .utility-bill-file{grid-template-columns:32px minmax(0,1fr) auto}
  .utility-bill-file-icon{width:30px;height:30px}
}



/* Mobile + Work Guardrails v2.11.0 */
.portal-offline-banner{
  position:fixed;left:50%;top:8px;transform:translateX(-50%);z-index:1000;
  display:flex;align-items:center;gap:8px;max-width:min(720px,calc(100vw - 24px));
  padding:9px 12px;border-radius:999px;background:#8b2920;color:#fff;
  box-shadow:0 10px 28px rgba(64,20,16,.3);font-size:10px
}
.portal-offline-banner strong{white-space:nowrap}
.portal-offline-banner span{opacity:.92}
.draft-restored{
  display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;
  margin:0 0 12px;padding:9px 10px;border:1px solid #cfe4ae;border-radius:10px;background:#f5fbea
}
.draft-restored strong{font-size:10px;color:#315b13}
.draft-restored span{font-size:9px;color:var(--muted)}
.draft-restored button{border:0;background:transparent;text-decoration:underline;font-size:9px;cursor:pointer}
.lead-readiness-panel{margin:12px 0;padding:12px;border:1px solid #edd49a;border-radius:12px;background:#fffaf0}
.lead-readiness-panel.ready{border-color:#cfe4ae;background:#f8fced}
.lead-readiness-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.lead-readiness-head strong{display:block;font-size:11px}
.lead-readiness-head span:not(.pill){display:block;font-size:9px;color:var(--muted);margin-top:2px}
.lead-readiness-group{margin-top:10px}
.lead-readiness-group>small{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:900;margin-bottom:5px}
.lead-readiness-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.lead-readiness-item{display:flex;align-items:center;gap:6px;padding:6px 7px;border-radius:8px;background:#fff;border:1px solid #e4eaed}
.lead-readiness-item span{width:18px;height:18px;border-radius:999px;display:grid;place-items:center;font-size:9px;font-weight:950;background:#fff0cc;color:#7a4a00}
.lead-readiness-item.ok span{background:#e8f4d7;color:#315b13}
.lead-readiness-item strong{font-size:9px}
.lead-readiness-badge.ready{background:#eef8e4!important;border-color:#cfe4ae!important;color:#315b13!important}
.lead-readiness-badge.needs{background:#fff3d6!important;border-color:#efd49b!important;color:#774a08!important}
.preflight-summary{
  display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:11px;
  border:1px solid #edd49a;background:#fffaf0;margin-bottom:12px
}
.preflight-summary.ready{border-color:#cfe4ae;background:#f8fced}
.preflight-summary strong{display:block;font-size:12px}
.preflight-summary span:not(.pill){display:block;font-size:9px;color:var(--muted);margin-top:3px}
.preflight-top-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.preflight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.preflight-item{padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:#f8fafb}
.preflight-item span{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:900}
.preflight-item strong{display:block;font-size:10px;margin-top:3px;line-height:1.4}
.preflight-notes{display:grid;gap:7px;margin:10px 0}
.preflight-notes>div{padding:9px 10px;border-left:3px solid #d8e2e6;background:#f8fafb;border-radius:0 8px 8px 0}
.preflight-notes span{font-size:8px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:900}
.preflight-notes p{font-size:10px;line-height:1.5;margin:3px 0 0}
.appointment-actions{white-space:nowrap}.appointment-actions .btn{margin:2px}
.utility-bill-row-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.utility-bill-archive{margin-top:8px;border-top:1px solid #e5edf0;padding-top:7px}
.utility-bill-archive summary{cursor:pointer;font-size:9px;font-weight:900;color:var(--muted)}
.utility-bill-file.archived{opacity:.78}
.chat-mobile-attach-btn,.chat-mobile-help{display:none!important}
.chat-mobile-attach-menu{
  margin-top:8px;padding:6px;border:1px solid var(--line);border-radius:12px;background:#fff;
  box-shadow:0 10px 24px rgba(15,39,54,.12)
}
.chat-mobile-attach-menu button{
  width:100%;display:grid;grid-template-columns:42px 1fr;column-gap:9px;text-align:left;
  border:0;background:#f7fafb;border-radius:10px;padding:10px;margin:4px 0;cursor:pointer
}
.chat-mobile-attach-menu button>span{grid-row:1/3;display:grid;place-items:center;font-size:18px;font-weight:950}
.chat-mobile-attach-menu button>strong{font-size:11px}
.chat-mobile-attach-menu button>small{font-size:9px;color:var(--muted);margin-top:2px}
@media(max-width:720px){
  .lead-readiness-grid{grid-template-columns:1fr 1fr}
  .preflight-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .chat-gif-btn,.chat-emoji-btn,.chat-image-btn{display:none!important}
  .chat-mobile-attach-btn{display:inline-flex!important;width:auto!important;min-height:42px;align-items:center;justify-content:center}
  .chat-mobile-help{display:block!important}
  .chat-desktop-help{display:none!important}
  .chat-composer-left{
    display:grid!important;grid-template-columns:auto auto minmax(0,1fr);gap:7px!important;align-items:center!important
  }
  .chat-composer-left .chat-tag-btn{width:auto!important;min-height:42px}
  .chat-composer-left select{grid-column:1/-1;width:100%!important}
  .chat-composer-left .chat-check{grid-column:1/-1}
  .chat-composer-tools{display:grid!important;grid-template-columns:1fr;gap:8px!important}
  #sendChatBtn{width:100%!important;min-height:44px}
  .chat-composer textarea{min-height:74px!important;max-height:150px}
  .chat-mobile-attach-menu{display:block}
  .chat-mobile-attach-menu.hidden{display:none!important}
  .portal-offline-banner{top:6px;border-radius:12px;align-items:flex-start;flex-direction:column;gap:2px}
  .lead-readiness-grid{grid-template-columns:1fr}
  .utility-bill-file{grid-template-columns:32px minmax(0,1fr)}
  .utility-bill-row-actions{grid-column:1/-1;justify-content:flex-start;padding-left:41px}
  .preflight-top-actions .btn,.preflight-top-actions a{flex:1 1 130px;text-align:center}
}



/* Mobile GIF fallback v2.11.4 */
.chat-mobile-media-btn,.chat-mobile-gif-direct-btn{display:none}
.chat-mobile-attach-head{
  display:flex!important;align-items:center;justify-content:space-between!important;
  padding:4px 5px 8px
}
.chat-mobile-attach-head strong{font-size:11px}
.chat-mobile-attach-head button{
  width:34px!important;height:34px!important;display:grid!important;grid-template-columns:1fr!important;
  place-items:center!important;padding:0!important;margin:0!important;background:#edf2f4!important;font-size:20px!important
}
.chat-mobile-gif-tip{
  display:flex;align-items:flex-start;gap:8px;margin-top:7px;padding:9px 10px;border-radius:10px;
  border:1px solid #d5e2e7;background:#f7fafb
}
.chat-mobile-gif-tip strong{font-size:10px;white-space:nowrap}
.chat-mobile-gif-tip span{font-size:9px;line-height:1.45;color:var(--muted);flex:1}
.chat-mobile-gif-tip button{border:0;background:var(--navy);color:#fff;border-radius:7px;padding:5px 7px;font-size:9px;font-weight:900}

@media(max-width:760px){
  .chat-input-wrap{position:relative}
  .chat-input-wrap textarea{padding-right:106px!important}
  .chat-mobile-gif-direct-btn{
    display:inline-flex!important;position:absolute;right:52px;bottom:10px;z-index:4;
    height:34px;min-width:46px;padding:0 10px;border:0;border-radius:999px;background:var(--navy);color:#fff;
    align-items:center;justify-content:center;font-size:11px;font-weight:950;letter-spacing:.02em;
    box-shadow:0 2px 8px rgba(15,39,54,.16)
  }
  .chat-mobile-media-btn{
    display:grid!important;position:absolute;right:10px;bottom:10px;z-index:4;
    width:34px;height:34px;border:0;border-radius:999px;background:#e9f0f3;color:var(--navy);
    place-items:center;font-size:24px;font-weight:800;line-height:1;box-shadow:0 2px 8px rgba(15,39,54,.12)
  }
  .chat-mobile-gif-direct-btn:active,.chat-mobile-media-btn:active{transform:scale(.96)}
  .chat-mobile-gif-direct-btn:focus-visible,.chat-mobile-media-btn:focus-visible{outline:3px solid rgba(142,198,63,.45);outline-offset:2px}
  .chat-mobile-attach-btn{display:none!important}
  .chat-mobile-attach-menu{
    position:relative;z-index:8;margin:8px 0 4px;max-height:52vh;overflow:auto
  }
  .chat-gif-picker{
    position:fixed!important;
    left:10px!important;right:10px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;
    z-index:1002!important;max-height:72vh!important;overflow:hidden!important;
    border-radius:16px!important;box-shadow:0 18px 48px rgba(7,25,35,.34)!important;
    background:#fff!important
  }
  .chat-gif-head{position:sticky;top:0;z-index:2;background:#fff;padding-top:10px!important}
  .chat-gif-results{max-height:54vh!important;overflow:auto!important;overscroll-behavior:contain}
  .chat-gif-search-wrap{grid-template-columns:minmax(0,1fr) auto!important}
  .chat-gif-search-wrap input{font-size:16px!important}
}


/* Mobile Team Chat cleanup v2.11.3 (superseded by v2.11.4 overrides below) */
.chat-mobile-channelbar,.chat-mobile-channel-sheet,.chat-mobile-pinned-toggle,.chat-mobile-pinned-panel{display:none}
.chat-mobile-channel-select,.chat-mobile-new-dm,.chat-mobile-pinned-toggle{font:inherit}
body.chat-channel-sheet-open{overflow:hidden}

@media(max-width:760px){
  #chat .top{margin-bottom:14px}
  #chat .chat-shell{display:block!important;min-height:0!important}
  #chat .chat-sidebar{display:none!important}
  #chat .chat-conversation{min-height:0!important;border-radius:16px!important;overflow:hidden}
  #chat .chat-head-desktop{display:none!important}
  #chat .chat-mobile-channelbar{
    display:grid!important;grid-template-columns:minmax(0,1fr) 52px;gap:10px;align-items:stretch;
    padding:10px;border-bottom:1px solid var(--line);background:#fff
  }
  #chat .chat-mobile-channel-card{min-width:0;border:1px solid #dbe5e9;background:#fff;border-radius:13px;padding:9px 11px}
  #chat .chat-mobile-channel-select{
    width:100%;min-width:0;border:0;background:transparent;padding:0;text-align:left;color:var(--navy);cursor:pointer;display:block
  }
  #chat .chat-mobile-channel-title{display:flex;align-items:center;gap:7px;min-width:0}
  #chat .chat-mobile-channel-title strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #chat .chat-mobile-channel-chevron{font-size:18px;line-height:1;color:#60727d;flex:0 0 auto;transform:translateY(-1px)}
  #chat .chat-mobile-channel-desc{display:block;margin-top:3px;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #chat .chat-mobile-channel-meta{display:flex;align-items:center;gap:5px;margin-top:5px;font-size:9px;color:#73818a;font-style:normal}
  #chat .chat-mobile-channel-meta button{border:0;background:transparent;padding:0;color:var(--navy2);font:inherit;font-weight:850;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
  #chat .chat-mobile-new-dm{
    width:52px;border:0;border-radius:13px;background:#edf2f4;color:var(--navy);font-size:22px;font-weight:900;cursor:pointer;
    display:grid;place-items:center
  }
  #chat .chat-mobile-new-dm:active,#chat .chat-mobile-channel-select:active{transform:scale(.985)}
  #chat .chat-pinned-desktop{display:none!important}
  #chat .chat-mobile-pinned-toggle{
    display:flex!important;width:calc(100% - 20px);margin:10px 10px 0;border:1px solid #efdba6;background:#fff9eb;
    border-radius:12px;padding:10px 12px;align-items:center;justify-content:space-between;gap:10px;color:#5f4a1d;cursor:pointer;
    font-size:12px;font-weight:900;text-align:left
  }
  #chat .chat-mobile-pinned-toggle .chat-mobile-pin-chevron{font-size:18px;line-height:1;transition:transform .16s ease}
  #chat .chat-mobile-pinned-toggle[aria-expanded="true"] .chat-mobile-pin-chevron{transform:rotate(90deg)}
  #chat .chat-mobile-pinned-panel{
    display:block;margin:6px 10px 0;padding:9px 11px;border:1px solid #efdba6;border-radius:11px;background:#fffdf7
  }
  #chat .chat-mobile-pinned-panel.hidden{display:none!important}
  #chat .chat-mobile-pinned-panel .chat-pin-item{padding:7px 0;border-top:1px solid #f2e5c4;font-size:10px;line-height:1.45}
  #chat .chat-mobile-pinned-panel .chat-pin-item:first-child{border-top:0;padding-top:0}
  #chat .chat-messages{padding:12px!important;min-height:360px;max-height:56dvh!important}
  #chat .chat-message{gap:8px}

  #chat .chat-mobile-channel-sheet{
    position:fixed;inset:0;z-index:1300;display:block
  }
  #chat .chat-mobile-channel-sheet.hidden{display:none!important}
  #chat .chat-mobile-channel-sheet-backdrop{position:absolute;inset:0;background:rgba(7,25,35,.48);backdrop-filter:blur(2px)}
  #chat .chat-mobile-channel-sheet-panel{
    position:absolute;left:0;right:0;bottom:0;max-height:min(78dvh,680px);overflow:auto;background:#fff;
    border-radius:22px 22px 0 0;padding:10px 14px calc(16px + env(safe-area-inset-bottom));
    box-shadow:0 -18px 50px rgba(7,25,35,.28);overscroll-behavior:contain
  }
  #chat .chat-mobile-sheet-grabber{width:42px;height:5px;border-radius:999px;background:#ccd7dc;margin:2px auto 10px}
  #chat .chat-mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 10px}
  #chat .chat-mobile-sheet-head strong{font-size:17px}
  #chat .chat-mobile-sheet-head button{width:36px;height:36px;border:0;border-radius:999px;background:#edf2f4;color:var(--navy);font-size:22px;cursor:pointer}
  #chat .chat-mobile-sheet-newdm{
    display:flex;width:100%;align-items:center;justify-content:center;gap:7px;border:0;border-radius:12px;background:var(--navy);color:#fff;
    padding:11px 12px;font:inherit;font-size:12px;font-weight:900;cursor:pointer;margin:0 0 10px
  }
  #chat .chat-mobile-sheet-section{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:950;padding:10px 5px 5px}
  #chat .chat-mobile-sheet-channel{
    width:100%;border:0;background:#fff;border-radius:11px;padding:10px 9px;display:grid;grid-template-columns:minmax(0,1fr) auto;
    gap:10px;align-items:center;text-align:left;color:var(--navy);cursor:pointer;font:inherit
  }
  #chat .chat-mobile-sheet-channel.active{background:#edf3f5}
  #chat .chat-mobile-sheet-channel-copy{min-width:0}
  #chat .chat-mobile-sheet-channel-copy strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #chat .chat-mobile-sheet-channel-copy span{display:block;margin-top:2px;font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #chat .chat-mobile-sheet-empty{padding:9px;color:var(--muted);font-size:10px}
}


/* Simple mobile chat v2.11.4 — conversation first */
.chat-mobile-channel-actions,.chat-mobile-lulu,.chat-mobile-sheet-quick,.chat-mobile-sheet-archive{display:none}
@media(max-width:760px){
  body.chat-focus-mode .main{
    padding:0 0 calc(72px + env(safe-area-inset-bottom))!important;
    background:#fff;
  }
  body.chat-focus-mode #chat{margin:0!important;padding:0!important}
  body.chat-focus-mode #chat>.top{display:none!important}
  body.chat-focus-mode #chatLoadNotice{margin:8px 10px!important}
  body.chat-focus-mode .support-fab,
  body.chat-focus-mode .mobile-fab{display:none!important}

  #chat .chat-shell{display:block!important;margin:0!important;gap:0!important}
  #chat .chat-conversation{
    border:0!important;border-radius:0!important;min-height:calc(100dvh - 152px)!important;
    background:#fff!important;overflow:hidden!important
  }
  #chat .chat-mobile-channelbar{
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;
    padding:7px 10px!important;min-height:52px!important;border-bottom:1px solid #e6ecef!important;background:#fff!important
  }
  #chat .chat-mobile-channel-card,#chat .chat-mobile-channel-desc,#chat .chat-mobile-channel-meta{display:none!important}
  #chat .chat-mobile-channel-select{
    display:inline-flex!important;align-items:center!important;gap:7px!important;min-width:0!important;width:auto!important;max-width:calc(100% - 96px)!important;
    border:0!important;background:transparent!important;padding:7px 2px!important;color:var(--navy)!important;text-align:left!important;
    border-radius:9px!important;cursor:pointer!important
  }
  #chat .chat-mobile-channel-select strong{
    font-size:17px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
  }
  #chat .chat-mobile-channel-chevron{font-size:18px!important;color:#657781!important;line-height:1!important}
  #chat .chat-mobile-channel-actions{display:flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important}
  #chat .chat-mobile-lulu,#chat .chat-mobile-new-dm{
    display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;
    border:0!important;border-radius:999px!important;background:transparent!important;color:var(--navy)!important;box-shadow:none!important;cursor:pointer!important
  }
  #chat .chat-mobile-lulu img{width:30px!important;height:30px!important;object-fit:contain!important}
  #chat .chat-mobile-new-dm{font-size:22px!important;font-weight:850!important}
  #chat .chat-mobile-lulu:active,#chat .chat-mobile-new-dm:active,#chat .chat-mobile-channel-select:active{background:#f1f5f6!important;transform:none!important}

  #chat .chat-pinned-desktop{display:none!important}
  #chat .chat-mobile-pinned-toggle{
    display:flex!important;width:100%!important;margin:0!important;padding:6px 11px!important;min-height:34px!important;
    border:0!important;border-bottom:1px solid #edf1f3!important;border-radius:0!important;background:#fff!important;color:#657781!important;
    align-items:center!important;justify-content:space-between!important;gap:8px!important;font-size:10px!important;font-weight:850!important;text-align:left!important
  }
  #chat .chat-mobile-pinned-toggle .chat-mobile-pin-chevron{font-size:15px!important}
  #chat .chat-mobile-pinned-panel{
    display:block!important;margin:0!important;padding:5px 11px!important;border:0!important;border-bottom:1px solid #edf1f3!important;
    border-radius:0!important;background:#fffdf8!important
  }
  #chat .chat-mobile-pinned-panel.hidden{display:none!important}
  #chat .chat-mobile-pinned-panel .chat-pin-item{padding:5px 0!important;font-size:10px!important;line-height:1.35!important}

  #chat .chat-messages{
    flex:1!important;min-height:calc(100dvh - 285px)!important;max-height:calc(100dvh - 285px)!important;
    padding:9px 10px 12px!important;gap:8px!important;background:#fff!important;overscroll-behavior:contain!important
  }
  #chat .chat-message{grid-template-columns:30px minmax(0,1fr)!important;gap:7px!important}
  #chat .chat-message .avatar.sm{width:30px!important;height:30px!important}
  #chat .chat-message-head{gap:6px!important}
  #chat .chat-message-head strong{font-size:11px!important}
  #chat .chat-time{font-size:9px!important}
  #chat .chat-bubble{margin-top:2px!important;border-radius:11px!important;padding:8px 9px!important;font-size:12px!important;line-height:1.4!important}
  #chat .chat-message-tools{margin-top:4px!important;gap:7px!important}
  #chat .chat-message-tools button{font-size:9px!important}
  #chat .chat-reactions{margin-top:4px!important}

  #chat .chat-composer{
    position:relative!important;border-top:1px solid #e1e8eb!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;background:#fff!important
  }
  #chat .chat-input-wrap{position:relative!important}
  #chat .chat-composer textarea{
    min-height:46px!important;height:46px!important;max-height:110px!important;resize:none!important;border-radius:24px!important;
    padding:11px 98px 9px 44px!important;border:1px solid #ccd8dd!important;background:#fff!important;font-size:16px!important;line-height:1.35!important
  }
  #chat .chat-mobile-media-btn{
    display:grid!important;left:7px!important;right:auto!important;bottom:6px!important;width:34px!important;height:34px!important;
    border-radius:999px!important;background:#eef3f5!important;box-shadow:none!important;font-size:23px!important
  }
  #chat .chat-mobile-gif-direct-btn{
    display:inline-flex!important;right:48px!important;bottom:6px!important;height:34px!important;min-width:42px!important;padding:0 8px!important;
    border-radius:999px!important;background:transparent!important;color:var(--navy)!important;border:0!important;box-shadow:none!important;font-size:10px!important
  }
  #chat .chat-composer-tools{
    position:absolute!important;right:8px!important;bottom:calc(7px + env(safe-area-inset-bottom))!important;width:40px!important;height:40px!important;
    display:block!important;margin:0!important;z-index:5!important
  }
  #chat .chat-composer-left{display:none!important}
  #chat #sendChatBtn{
    display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;
    border-radius:999px!important;font-size:0!important;background:var(--green)!important;color:#132914!important
  }
  #chat #sendChatBtn:before{content:'➤';font-size:19px!important;line-height:1!important;transform:translateX(1px)}
  #chat .chat-mobile-help,#chat .chat-desktop-help{display:none!important}
  #chat .chat-image-preview{margin:6px 0 0!important;padding:6px!important}
  #chat .chat-composer-reply{margin:-1px 0 6px!important;padding:6px 8px!important}

  #chat .chat-mobile-channel-sheet-panel{padding:8px 12px calc(14px + env(safe-area-inset-bottom))!important;border-radius:18px 18px 0 0!important}
  #chat .chat-mobile-sheet-head{padding-bottom:6px!important}
  #chat .chat-mobile-sheet-head strong{font-size:16px!important}
  #chat .chat-mobile-sheet-quick{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-bottom:5px!important}
  #chat .chat-mobile-sheet-newdm,#chat .chat-mobile-sheet-archive{
    display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:40px!important;margin:0!important;
    border:0!important;border-radius:10px!important;padding:8px 9px!important;font:inherit!important;font-size:11px!important;font-weight:900!important;cursor:pointer!important
  }
  #chat .chat-mobile-sheet-newdm{background:var(--navy)!important;color:#fff!important}
  #chat .chat-mobile-sheet-archive{background:#edf2f4!important;color:var(--navy)!important}
  #chat .chat-mobile-sheet-section{padding:8px 5px 4px!important}
  #chat .chat-mobile-sheet-channel{padding:8px!important}
  #chat .chat-mobile-sheet-channel-copy strong{font-size:12px!important}
  #chat .chat-mobile-sheet-channel-copy span{display:none!important}
  #chat .chat-mobile-sheet-empty{padding:7px!important}
}



/* v2.11.5 — LuLu mobile icon + collapsible pinned announcements */
.chat-pinned-announcement-toggle{display:none}
@media(max-width:760px){
  #chat .chat-mobile-lulu{position:relative!important;overflow:hidden!important;background:#f5f8f9!important;border:1px solid #e3eaed!important}
  #chat .chat-mobile-lulu img{display:block!important;width:32px!important;height:32px!important;max-width:none!important;object-fit:contain!important;border-radius:999px!important}
  #chat .chat-mobile-pin-chevron{display:inline-block!important;transition:transform .15s ease!important}
  #chat .chat-mobile-pin-chevron.open{transform:rotate(90deg)!important}
  #chat .chat-mobile-pinned-panel{padding:3px 8px!important}
  #chat .chat-mobile-pinned-panel .chat-mobile-pinned-jump{
    width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
    border:0!important;border-bottom:1px solid #f0ece2!important;background:transparent!important;color:#465861!important;text-align:left!important;
    padding:7px 3px!important;cursor:pointer!important;font:inherit!important
  }
  #chat .chat-mobile-pinned-panel .chat-mobile-pinned-jump:last-child{border-bottom:0!important}
  #chat .chat-mobile-pinned-panel .chat-mobile-pinned-jump span{min-width:0!important;display:block!important;font-size:10px!important;line-height:1.35!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #chat .chat-mobile-pinned-panel .chat-mobile-pinned-jump b{font-size:16px!important;color:#7d898f!important;line-height:1!important}

  #chat .chat-message.pinned-announcement .chat-pinned-announcement-toggle{
    display:flex!important;width:100%!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;
    margin:3px 0 0!important;padding:7px 8px!important;border:1px solid #eadfbf!important;border-radius:10px!important;
    background:#fffaf0!important;color:var(--navy)!important;text-align:left!important;cursor:pointer!important;font:inherit!important
  }
  #chat .chat-pinned-announcement-toggle>span:first-child{min-width:0!important;display:block!important}
  #chat .chat-pinned-announcement-toggle b{display:block!important;font-size:10px!important;line-height:1.2!important}
  #chat .chat-pinned-announcement-toggle small{display:block!important;margin-top:2px!important;font-size:9px!important;line-height:1.3!important;color:#7a6b4d!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #chat .chat-pinned-announcement-chevron{flex:0 0 auto!important;font-size:16px!important;color:#8a7954!important;transition:transform .15s ease!important}
  #chat .chat-message.pinned-announcement:not(.mobile-pin-expanded) .chat-message-head .pill{display:none!important}
  #chat .chat-message.pinned-announcement:not(.mobile-pin-expanded) .chat-bubble,
  #chat .chat-message.pinned-announcement:not(.mobile-pin-expanded) .chat-reactions,
  #chat .chat-message.pinned-announcement:not(.mobile-pin-expanded) .chat-message-tools{display:none!important}
  #chat .chat-message.pinned-announcement.mobile-pin-expanded .chat-pinned-announcement-chevron{transform:rotate(90deg)!important}
  #chat .chat-message.pinned-announcement.mobile-pin-expanded .chat-bubble{display:block!important}
  #chat .chat-message.pinned-announcement.mobile-pin-expanded .chat-reactions{display:flex!important}
  #chat .chat-message.pinned-announcement.mobile-pin-expanded .chat-message-tools{display:flex!important}
}



/* Mobile app shell + CRM v2.12.0 */
.mobile-bottom-nav,.lead-mobile-actions,.lead-mobile-owner,.mobile-admin-queue{display:none}
@media(max-width:760px){
  #portal .main{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
  .mobile-bottom-nav{
    position:fixed;left:0;right:0;bottom:0;z-index:1150;display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;
    min-height:64px;padding:5px 5px calc(5px + env(safe-area-inset-bottom));
    border-top:1px solid #dfe7ea;background:rgba(255,255,255,.98);backdrop-filter:blur(14px);
    box-shadow:0 -8px 28px rgba(13,35,55,.08)
  }
  .mobile-bottom-nav button{
    position:relative;min-width:0;min-height:52px;border:0;background:transparent;color:#657781;
    border-radius:11px;padding:5px 2px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
    font:inherit;font-size:9px;font-weight:850;cursor:pointer
  }
  .mobile-bottom-nav button.active{color:var(--navy);background:#f1f5f6}
  .mobile-bottom-icon{display:grid;place-items:center;height:24px;font-size:20px;line-height:1}
  .mobile-bottom-lulu-avatar{display:grid;place-items:center;width:26px;height:26px}
  .mobile-bottom-lulu-avatar img{width:26px;height:26px;object-fit:contain}
  .mobile-bottom-badge{position:absolute;top:3px;right:max(10px,20%);min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--green);color:#173107;font-size:8px;line-height:17px;text-align:center}
  .mobile-bottom-nav .hidden{display:none!important}
  body.chat-focus-mode #portal .main{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important}
  body.portal-modal-open .mobile-bottom-nav{display:none!important}

  /* Make the calling list genuinely phone-first. */
  #leads .top{margin-bottom:10px}
  #leads .top h1{font-size:24px}
  #leads .top p{font-size:11px;line-height:1.4}
  #leads .pipeline-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  #leads .crm-status-dashboard{padding:10px;margin:8px 0}
  #leads .crm-status-dashboard-head span{display:none}
  #leads .card:has(.filters){padding:9px;margin:8px 0}
  #leads .filters{grid-template-columns:1fr!important;gap:7px}
  #leads .filters select,#leads .filters input{min-height:42px;font-size:16px}
  .lead-list{gap:9px}
  .lead-list-row{
    display:block!important;padding:11px!important;border-radius:14px!important;
    box-shadow:0 2px 10px rgba(13,35,55,.035);content-visibility:auto;contain-intrinsic-size:1px 178px
  }
  .lead-list-primary-line{align-items:flex-start}
  .lead-list-name{font-size:16px!important;white-space:normal!important;line-height:1.2;flex:1}
  .lead-list-meta{font-size:10px!important;margin-top:4px}
  .lead-mobile-owner{display:block;margin-top:5px;font-size:9px;color:var(--muted)}
  .lead-mobile-owner strong{color:var(--navy)}
  .lead-list-contact,.lead-list-owner,.lead-list-actions{display:none!important}
  .lead-list-property{margin-top:8px;padding-top:8px;border-top:1px solid #edf1f3}
  .lead-list-address{font-size:11px!important;line-height:1.35}
  .lead-list-facts{gap:4px!important;margin-top:6px!important}
  .lead-list-fact{font-size:9px!important;padding:3px 6px!important}
  .lead-mobile-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:10px}
  .lead-mobile-actions>*{
    min-width:0;min-height:42px;border:1px solid #d8e2e6;border-radius:10px;background:#f7fafb;color:var(--navy);
    display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none!important;
    padding:7px 4px;font:inherit;font-size:10px;font-weight:900;cursor:pointer
  }
  .lead-mobile-actions .primary{background:var(--navy);border-color:var(--navy);color:#fff}
  .lead-mobile-actions .result{background:#eef8e4;border-color:#cfe4ae;color:#315b13}
  .lead-mobile-actions .danger{background:#fff2f1;border-color:#efc1bd;color:#8b2920}
  .lead-mobile-actions>*:active{transform:scale(.98)}
  .lead-mobile-actions.three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lead-mobile-actions.two{grid-template-columns:repeat(2,minmax(0,1fr))}

  /* Admin phone queue: show the next approvals without opening the full admin dashboard first. */
  .mobile-admin-queue{display:block;margin:0 0 10px;border:1px solid #dce6ea;border-radius:14px;background:#fff;overflow:hidden}
  .mobile-admin-queue.hidden{display:none!important}
  .mobile-admin-queue-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-bottom:1px solid #edf1f3}
  .mobile-admin-queue-head strong{display:block;font-size:12px;color:var(--navy)}
  .mobile-admin-queue-head span{display:block;font-size:9px;color:var(--muted);margin-top:2px}
  .mobile-admin-queue-head button{border:0;background:transparent;color:var(--navy2);font:inherit;font-size:9px;font-weight:900;padding:6px;cursor:pointer}
  .mobile-admin-queue-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 11px;border-bottom:1px solid #edf1f3}
  .mobile-admin-queue-row:last-child{border-bottom:0}
  .mobile-admin-queue-icon{width:28px;height:28px;border-radius:9px;background:#edf3f5;display:grid;place-items:center;font-weight:950}
  .mobile-admin-queue-row.danger .mobile-admin-queue-icon{background:#fff0ef;color:#9f241d}
  .mobile-admin-queue-copy{min-width:0}
  .mobile-admin-queue-copy strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-admin-queue-copy span{display:block;font-size:8px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-admin-queue-row button{border:0;border-radius:9px;background:var(--navy);color:#fff;padding:7px 8px;font:inherit;font-size:9px;font-weight:900;cursor:pointer}
  #notifications .top{margin-bottom:10px}
  #notifications .top p{display:none}
  #notifications .admin-alert-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  #notifications .notification-item{grid-template-columns:34px minmax(0,1fr)!important;gap:8px!important;padding:10px!important;border-radius:12px!important}
  #notifications .notification-actions{grid-column:1/-1;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding-left:42px}
  #notifications .notification-actions .btn{min-height:38px;flex:0 0 auto}
}


.onboarding-management{margin:18px 0;background:linear-gradient(135deg,#f8fbfc,#fff);border:1px solid #dbe6ea;border-radius:18px;padding:18px}
.onboarding-management .toolbar{gap:12px;align-items:flex-start}
.onboarding-progress-table td,.onboarding-progress-table th{vertical-align:middle}
.onboard-stage{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap;background:#edf2f4;color:#53616b}
.onboard-stage.done{background:#e4f6ea;color:#17613a}.onboard-stage.ready{background:#fff4d6;color:#8a5a00}.onboard-stage.wait{background:#eaf3ff;color:#225b96}.onboard-stage.attn{background:#ffe7e7;color:#9c2d2d}
.onboard-progress-bar{height:7px;background:#edf1f3;border-radius:999px;overflow:hidden;min-width:90px}.onboard-progress-bar span{display:block;height:100%;background:#23a56a;border-radius:999px}
.onboarding-check-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}.onboarding-check-grid .stat{min-height:88px}
.onboarding-summary-card{appearance:none;text-align:left;width:100%;font:inherit;cursor:pointer;border:1px solid #dfe7eb;transition:.16s ease;position:relative}.onboarding-summary-card:hover{transform:translateY(-1px);border-color:#9fc3d4;box-shadow:0 8px 20px rgba(15,50,68,.08)}.onboarding-summary-card.active{border-color:#0d3347;box-shadow:0 0 0 2px rgba(13,51,71,.08)}.onboarding-summary-card.active:after{content:'Filtering';position:absolute;right:10px;top:9px;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#0d3347;background:#e7f1f5;border-radius:999px;padding:4px 6px}.onboarding-filter-bar{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:6px 0 10px;padding:9px 11px;border-radius:12px;background:#f5f8f9;border:1px solid #e3eaed}.onboarding-filter-bar strong{font-size:12px}.onboard-stage.stage-click{border:0;cursor:pointer;font:inherit}.onboard-stage.stage-click:hover{filter:brightness(.97);box-shadow:0 0 0 2px rgba(13,51,71,.07)}.onboarding-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.onboarding-detail-item{border:1px solid #e1e8eb;border-radius:13px;padding:12px;background:#fff}.onboarding-detail-item h4{margin:0 0 7px;font-size:13px}.onboarding-detail-item p{margin:4px 0}.onboarding-missing{margin:12px 0;padding:12px;border-radius:12px;background:#fff8e7;border:1px solid #f1dfaa}.onboarding-history-line{font-size:11px;color:#667782;margin-top:4px}.legacy-access-note{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff3df;border:1px solid #eed5a6;color:#714d08;font-size:12px}.onboard-stage.legacy{background:#fff0d9;color:#8a5800}
@media(max-width:850px){.onboarding-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.onboarding-detail-grid{grid-template-columns:1fr}.onboarding-progress-table th:nth-child(4),.onboarding-progress-table td:nth-child(4){display:none}}
@media(max-width:620px){.onboarding-management{padding:12px}.onboarding-check-grid{grid-template-columns:1fr 1fr}.onboarding-progress-table th:nth-child(3),.onboarding-progress-table td:nth-child(3){display:none}}


/* Mobile simplification v2.12.1 — one menu, task-first screens */
.mobile-more-help,.lead-mobile-control-row,.appt-mobile-list{display:none}
@media(max-width:760px){
  body.mobile-more-open{overflow:hidden!important}

  /* One navigation menu only: bottom More. */
  #portal .side{min-height:0!important;height:auto!important;max-height:none!important;padding:7px 10px!important;gap:0!important;position:sticky!important;top:0!important}
  #portal .mobile-menu-toggle{display:none!important}
  #portal .side .logo{min-height:42px!important;padding:0!important;justify-content:flex-start!important}
  #portal .sidebar-full-logo{width:118px!important;padding:4px 6px!important;border-radius:8px!important}
  #portal .side:not(.mobile-open) .nav,#portal .side:not(.mobile-open) .side-bottom{display:none!important}
  #portal .side.mobile-open{
    position:fixed!important;inset:0 0 calc(64px + env(safe-area-inset-bottom)) 0!important;z-index:1140!important;
    overflow:auto!important;overscroll-behavior:contain!important;padding:18px 16px 16px!important;background:var(--navy)!important
  }
  #portal .side.mobile-open .logo{display:none!important}
  #portal .side.mobile-open .nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;max-height:none!important;overflow:visible!important;padding:0!important}
  #portal .side.mobile-open .nav::before{content:'More';grid-column:1/-1;color:#fff;font-size:22px;font-weight:950;letter-spacing:-.02em;padding:2px 3px 7px}
  #portal .side.mobile-open .nav button,#portal .side.mobile-open .nav a{min-height:48px!important;text-align:left!important;justify-content:flex-start!important;padding:10px!important;border-radius:11px!important}
  #portal .side.mobile-open .nav button[data-tab="dashboard"],
  #portal .side.mobile-open .nav button[data-tab="leads"],
  #portal .side.mobile-open .nav button[data-tab="chat"],
  #portal .side.mobile-open .nav button[data-tab="ai"]{display:none!important}
  #portal .side.mobile-open .side-bottom{display:grid!important;gap:10px!important;margin-top:14px!important;padding-top:12px!important}
  .mobile-more-help{display:flex!important;width:100%!important;min-height:46px!important;align-items:center!important;justify-content:center!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:11px!important;background:rgba(255,255,255,.08)!important;color:#fff!important;font:inherit!important;font-weight:900!important}
  #portal .side.mobile-open .side-user-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}
  #portal .side.mobile-open .who{text-align:left!important}

  /* The floating help pill was covering content. It now lives inside More. */
  #supportFab{display:none!important}

  /* Dashboard: don't show the same admin work twice. */
  #dashboard .top{margin-bottom:8px!important}
  #dashboard .top p{display:none!important}
  #dashboard #refreshBtn{display:none!important}
  #dashboard #adminNotificationBar{display:none!important}
  #dashboard .mobile-admin-queue{margin-top:2px!important}

  /* Leads: status + search controls stay available without occupying the screen all day. */
  #leads .pipeline-overview{display:flex!important;overflow-x:auto!important;gap:7px!important;padding-bottom:3px!important;scrollbar-width:none}
  #leads .pipeline-overview::-webkit-scrollbar{display:none}
  #leads .pipeline-kpi{flex:0 0 118px!important;padding:9px!important;border-radius:11px!important}
  #leads .pipeline-kpi strong{font-size:19px!important}
  #leads .crm-status-dashboard{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;margin:5px 0 4px!important;overflow:hidden!important}
  #leads .crm-status-dashboard-head{display:none!important}
  #leads .crm-status-buttons{display:flex!important;overflow-x:auto!important;gap:6px!important;padding:2px 0 5px!important;scrollbar-width:none}
  #leads .crm-status-buttons::-webkit-scrollbar{display:none}
  #leads .crm-status-btn{flex:0 0 auto!important;width:auto!important;min-height:38px!important;padding:7px 9px!important;border-radius:999px!important}
  #leads .crm-status-btn .crm-icon{font-size:15px!important}
  #leads .crm-status-btn .crm-label{font-size:9px!important;white-space:nowrap!important}
  #leads .crm-status-btn .crm-count{font-size:11px!important}
  #leads .crm-status-btn .crm-meta{display:none!important}
  #leads .crm-filter-summary{font-size:10px!important;margin:3px 0 6px!important}
  .lead-mobile-control-row{display:flex!important;gap:7px!important;margin:0 0 8px!important}
  .lead-mobile-control-row .btn{flex:1 1 0!important;min-height:40px!important;padding:8px!important;font-size:10px!important}
  #leadFiltersCard{display:none!important;margin:0 0 8px!important;padding:9px!important}
  #leadFiltersCard.mobile-open{display:block!important}
  #adminLeadRotationTools{display:none!important;margin:0 0 8px!important;padding:10px!important}
  #adminLeadRotationTools.mobile-open:not(.hidden){display:block!important}
  #adminLeadRotationTools .lead-rotation-copy>span:not(.rotation-cycle-pill){display:none!important}
  #adminLeadRotationTools .lead-rotation-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  #adminLeadRotationTools .btn{min-height:40px!important;font-size:9px!important;padding:7px!important}

  /* Appointments: no compressed desktop table on a phone. */
  #appointments .top{margin-bottom:10px!important}
  #appointments .top p{display:none!important}
  #appointments .appointment-desktop-table{display:none!important}
  .appt-mobile-list{display:grid!important;gap:9px!important}
  .appt-mobile-card{border:1px solid #dce5e9;border-radius:14px;background:#fff;padding:11px;box-shadow:0 2px 10px rgba(13,35,55,.04)}
  .appt-mobile-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
  .appt-mobile-card-head>div{min-width:0}
  .appt-mobile-card-head strong{display:block;font-size:15px;line-height:1.2;color:var(--navy)}
  .appt-mobile-card-head span:not(.pill){display:block;margin-top:3px;font-size:10px;color:var(--muted)}
  .appt-mobile-address{margin-top:7px;font-size:10px;color:#50616b;line-height:1.35}
  .appt-mobile-readiness{display:inline-flex;margin-top:7px;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:900}
  .appt-mobile-readiness.ready{background:#eaf7e6;color:#28611e}.appt-mobile-readiness.attention{background:#fff4dc;color:#7b5611}
  .appt-mobile-note{margin-top:7px;padding-top:7px;border-top:1px solid #edf1f3;font-size:10px;color:#5a6972;line-height:1.4}
  .appt-mobile-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
  .appt-mobile-actions .btn{min-height:40px!important;padding:8px!important;font-size:10px!important}

  /* LuLu: question box first; suggestions/education panels don't precede the conversation. */
  #ai .top{margin-bottom:8px!important;align-items:center!important}
  #ai .top p{display:none!important}
  #ai .nova-side{display:none!important}
  #ai .nova-shell{display:block!important}
  #ai .nova-main{min-height:calc(100dvh - 190px)!important;border-radius:14px!important}
  #ai .nova-head{padding:10px 12px!important}
  #ai .nova-mark{width:38px!important;height:38px!important;border-radius:12px!important}
  #ai .nova-mark img{width:36px!important;height:36px!important}
  #ai .nova-brand h2{font-size:17px!important}
  #ai .nova-brand p{display:none!important}
  #ai .nova-thread{padding:11px!important;min-height:220px!important}
  #ai .nova-empty{padding:18px 10px!important}
  #ai .nova-empty-avatar{width:88px!important;height:88px!important}
  #ai .nova-empty strong{font-size:17px!important}
  #ai .nova-compose{padding:10px!important}
  #ai .nova-compose textarea{min-height:62px!important}
  #ai .nova-compose-note{display:none!important}
  #ai .nova-actions{width:100%!important;display:grid!important;grid-template-columns:auto 1fr!important}
  #ai .nova-actions .btn{min-height:42px!important;font-size:10px!important}

  /* Documents: contractor records become compact rows rather than stacked dashboards. */
  #documents .top{margin-bottom:8px!important}
  #documents .top p{display:none!important}
  #documents>.alert{padding:8px 10px!important;margin-bottom:8px!important;font-size:9px!important}
  #documents>.alert .small{font-size:9px!important;line-height:1.35!important}
  #documents .card>.toolbar{display:block!important}
  #documents .card>.toolbar .small{display:none!important}
  #documents #documentsSearch{max-width:none!important;width:100%!important;margin-top:8px!important}
  #documentsSummary{display:flex!important;overflow-x:auto!important;gap:7px!important;padding-bottom:3px!important;scrollbar-width:none}
  #documentsSummary::-webkit-scrollbar{display:none}
  #documentsSummary .stat{flex:0 0 122px!important;padding:9px!important;min-height:72px!important}
  #documentsSummary .stat strong{font-size:20px!important}
  #documentsGrid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  #documents .admin-document-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px 9px!important;padding:10px!important;margin:0!important;border-radius:13px!important}
  #documents .admin-document-head{grid-column:1/2!important;gap:8px!important}
  #documents .admin-document-head .avatar{width:32px!important;height:32px!important}
  #documents .admin-document-head h3{font-size:14px!important;line-height:1.2!important}
  #documents .admin-document-head .small{font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #documents .admin-document-meta{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
  #documents .admin-document-meta .info-item{padding:7px!important;border-radius:9px!important}
  #documents .admin-document-meta .info-item:nth-child(3){display:none!important}
  #documents .admin-document-meta .info-item span{font-size:8px!important}
  #documents .admin-document-meta .info-item strong{font-size:10px!important;margin-top:2px!important}
  #documents .admin-document-actions{grid-column:2/3!important;grid-row:1/2!important;align-self:center!important;margin:0!important}
  #documents .admin-document-actions .btn{min-height:38px!important;padding:7px 9px!important;font-size:9px!important;white-space:nowrap!important}

  /* Team Admin onboarding table becomes readable cards. */
  #team .top p{display:none!important}
  #team .onboarding-management{padding:10px!important;margin:10px 0!important;border-radius:14px!important}
  #team .onboarding-management .toolbar .small{display:none!important}
  #team .onboarding-check-grid{display:flex!important;overflow-x:auto!important;gap:6px!important;padding-bottom:3px!important;scrollbar-width:none}
  #team .onboarding-check-grid::-webkit-scrollbar{display:none}
  #team .onboarding-summary-card{flex:0 0 124px!important;min-height:68px!important;padding:9px!important}
  #team .onboarding-summary-card strong{font-size:20px!important}
  #team .onboarding-filter-bar{padding:7px 8px!important;margin:5px 0 7px!important}
  #team .onboarding-management .table-wrap{overflow:visible!important;margin-top:0!important}
  #team .onboarding-progress-table,#team .onboarding-progress-table tbody,#team .onboarding-progress-table tr,#team .onboarding-progress-table td{display:block!important;width:100%!important;max-width:100%!important}
  #team .onboarding-progress-table thead{display:none!important}
  #team .onboarding-progress-table{min-width:0!important}
  #team .onboarding-progress-table tr{border:1px solid #dfe7eb!important;border-radius:12px!important;padding:9px!important;margin:0 0 8px!important;background:#fff!important}
  #team .onboarding-progress-table td{border:0!important;padding:5px 0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}
  #team .onboarding-progress-table td::before{content:attr(data-label);display:block;font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
  #team .onboarding-progress-table td:first-child::before,#team .onboarding-progress-table td:last-child::before{display:none!important}
  #team .onboarding-progress-table td:first-child{padding-bottom:7px!important;border-bottom:1px solid #edf1f3!important;margin-bottom:2px!important}
  #team .onboarding-progress-table td:nth-child(4),#team .onboarding-progress-table td:nth-child(5){display:none!important}
  #team .onboarding-progress-table td:nth-child(2),#team .onboarding-progress-table td:nth-child(3),#team .onboarding-progress-table td:nth-child(6){display:inline-block!important;width:auto!important;margin-right:5px!important;vertical-align:top!important}
  #team .onboarding-progress-table td:nth-child(2)::before,#team .onboarding-progress-table td:nth-child(3)::before,#team .onboarding-progress-table td:nth-child(6)::before{display:none!important}
  #team .onboarding-progress-table .onboard-stage{font-size:9px!important;padding:5px 7px!important;max-width:100%!important;white-space:normal!important}
  #team .onboarding-progress-table td:nth-child(7){margin-top:3px!important}
  #team .onboarding-progress-table td:last-child .btn{width:100%!important;min-height:40px!important;margin-top:4px!important}
}

/* Mobile white shell + vertical-only UX v2.12.2 */
@media(max-width:760px){
  html,body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    overscroll-behavior-x:none!important;
    background:#fff!important;
  }
  body{touch-action:pan-y}
  #portal,.app,#portal .main,#portal .section{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
    background:#fff!important;
  }
  #portal .main{padding-top:10px!important}

  /* Mobile header: logo only. No navy banner and no top menu trigger. */
  #portal .side{
    position:sticky!important;
    top:0!important;
    z-index:1040!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    padding:9px 12px 8px!important;
    gap:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#fff!important;
    color:var(--navy)!important;
    border:0!important;
    border-bottom:1px solid #edf1f3!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  #portal .mobile-menu-toggle{display:none!important}
  #portal .side .logo{
    display:flex!important;
    width:100%!important;
    min-height:52px!important;
    padding:0!important;
    margin:0!important;
    align-items:center!important;
    justify-content:center!important;
    background:transparent!important;
  }
  #portal .sidebar-full-logo{
    display:block!important;
    width:min(205px,58vw)!important;
    max-width:205px!important;
    height:auto!important;
    margin:0 auto!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    object-fit:contain!important;
  }
  #portal .side:not(.mobile-open) .nav,
  #portal .side:not(.mobile-open) .side-bottom{display:none!important}

  /* Bottom More opens as a white bottom sheet, never a second top menu. */
  body.mobile-more-open::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:1125;
    background:rgba(13,35,55,.28);
  }
  #portal .side.mobile-open{
    position:fixed!important;
    top:auto!important;
    right:10px!important;
    bottom:calc(72px + env(safe-area-inset-bottom))!important;
    left:10px!important;
    width:auto!important;
    max-width:none!important;
    max-height:min(72dvh,620px)!important;
    height:auto!important;
    z-index:1140!important;
    display:block!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    padding:12px!important;
    background:#fff!important;
    color:var(--navy)!important;
    border:1px solid #dfe7ea!important;
    border-radius:18px!important;
    box-shadow:0 18px 48px rgba(13,35,55,.22)!important;
  }
  #portal .side.mobile-open .logo{display:none!important}
  #portal .side.mobile-open .nav{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:5px!important;
    width:100%!important;
    max-height:none!important;
    overflow:visible!important;
    padding:0!important;
  }
  #portal .side.mobile-open .nav::before{
    content:"More";
    grid-column:1!important;
    color:var(--navy)!important;
    font-size:20px!important;
    font-weight:950!important;
    letter-spacing:-.02em!important;
    padding:4px 5px 8px!important;
  }
  #portal .side.mobile-open .nav button,
  #portal .side.mobile-open .nav a{
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:9px!important;
    padding:10px 11px!important;
    border:0!important;
    border-radius:11px!important;
    background:#f7f9fa!important;
    color:var(--navy)!important;
    text-align:left!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    transform:none!important;
  }
  #portal .side.mobile-open .nav button.active{
    background:#edf3f5!important;
    color:var(--navy)!important;
  }
  #portal .side.mobile-open .nav button[data-tab="dashboard"],
  #portal .side.mobile-open .nav button[data-tab="leads"],
  #portal .side.mobile-open .nav button[data-tab="chat"],
  #portal .side.mobile-open .nav button[data-tab="ai"]{display:none!important}
  #portal .side.mobile-open .side-bottom{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%!important;
    margin-top:10px!important;
    padding-top:10px!important;
    border-top:1px solid #edf1f3!important;
  }
  #portal .side.mobile-open .mobile-more-help{
    width:100%!important;
    min-height:44px!important;
    border:1px solid #e4eaed!important;
    border-radius:10px!important;
    background:#fff7f6!important;
    color:#9f241d!important;
  }
  #portal .side.mobile-open .side-user-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  #portal .side.mobile-open .who{
    width:100%!important;
    color:#53646f!important;
    text-align:left!important;
  }
  #portal .side.mobile-open .sidebar-signout{
    width:100%!important;
    min-height:44px!important;
    border-color:#e0e6e9!important;
    box-shadow:none!important;
  }

  /* The bottom bar is the only persistent mobile navigation. */
  .mobile-bottom-nav{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    overflow:hidden!important;
  }
  .mobile-bottom-nav button{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }

  /* Absolutely no horizontal scrolling anywhere in portal content. */
  #portal .main *,
  #portal .section *,
  #portal .modal-card *{
    box-sizing:border-box;
    max-width:100%;
  }
  #portal .table-wrap,
  #portal .chat-side-body,
  #portal .chat-messages,
  #portal .resource-body,
  #portal .nova-thread,
  #portal .modal-card,
  #portal .contract-address-results{
    overflow-x:hidden!important;
  }
  #portal img,#portal svg,#portal video,#portal canvas{max-width:100%!important;height:auto}
  #portal pre,#portal code{
    max-width:100%!important;
    white-space:pre-wrap!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }
  #portal table{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }
  #portal th,#portal td{
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }

  /* Replace all previous horizontal KPI/chip scrollers with wrapped grids. */
  #leads .pipeline-overview{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }
  #leads .pipeline-kpi{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
  }
  #leads .crm-status-buttons{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    overflow:visible!important;
    padding:2px 0!important;
  }
  #leads .crm-status-btn{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
    border-radius:11px!important;
  }
  #leads .crm-status-btn .crm-label{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  #documentsSummary{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }
  #documentsSummary .stat{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
  }

  #team .onboarding-check-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }
  #team .onboarding-summary-card{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
  }

  /* Any date/calendar pickers stack or wrap instead of panning sideways. */
  #portal .day-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    overflow-x:hidden!important;
  }
  #portal .day-card{
    width:100%!important;
    min-width:0!important;
  }
  #portal .availability-days{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  /* Toolbars and action rows may wrap vertically, never force viewport width. */
  #portal .toolbar,
  #portal .actions,
  #portal .filters,
  #portal .contact-return-actions,
  #portal .chat-composer-left{
    max-width:100%!important;
  }
  #portal .toolbar{flex-wrap:wrap!important}
  #portal input,#portal select,#portal textarea{
    max-width:100%!important;
    min-width:0!important;
  }

  /* Compact page canvas remains white from header to bottom navigation. */
  #portal .card,
  #portal .stat,
  #portal .chat-conversation,
  #portal .nova-main{
    max-width:100%!important;
  }
}


/* v2.12.3 — Mobile Team Chat fixed-screen app layout
   The page shell never scrolls in Chat. Only #chatMessages scrolls. */
@media(max-width:760px){
  body.chat-focus-mode{
    width:100%!important;
    height:var(--lunova-chat-vh,100dvh)!important;
    max-height:var(--lunova-chat-vh,100dvh)!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
    background:#fff!important;
  }
  body.chat-focus-mode #portal{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:var(--lunova-chat-vh,100dvh)!important;
    min-height:0!important;
    max-height:var(--lunova-chat-vh,100dvh)!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.chat-focus-mode #portal>.side{
    position:relative!important;
    top:auto!important;
    flex:0 0 auto!important;
    width:100%!important;
    z-index:1040!important;
  }
  body.chat-focus-mode #portal>.main{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    width:100%!important;
    overflow:hidden!important;
    padding:0 0 calc(69px + env(safe-area-inset-bottom))!important;
    background:#fff!important;
  }
  body.chat-focus-mode #chat.section.active{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body.chat-focus-mode #chatLoadNotice{
    flex:0 0 auto!important;
    margin:6px 10px!important;
  }
  body.chat-focus-mode #chat .chat-shell{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    width:100%!important;
    margin:0!important;
    overflow:hidden!important;
  }
  body.chat-focus-mode #chat .chat-sidebar{display:none!important}
  body.chat-focus-mode #chat .chat-conversation{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    width:100%!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
  }
  body.chat-focus-mode #chat #chatConversation{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    width:100%!important;
    overflow:hidden!important;
  }
  body.chat-focus-mode #chat .chat-mobile-channelbar{
    flex:0 0 auto!important;
  }
  body.chat-focus-mode #chat .chat-mobile-pinned-toggle{
    flex:0 0 auto!important;
  }
  body.chat-focus-mode #chat .chat-mobile-pinned-panel{
    flex:0 0 auto!important;
    max-height:min(25dvh,190px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
  }
  body.chat-focus-mode #chat .chat-messages{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    width:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
  body.chat-focus-mode #chat .chat-composer{
    position:relative!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    padding:7px 8px!important;
    border-top:1px solid #e1e8eb!important;
    background:#fff!important;
    z-index:20!important;
  }
  body.chat-focus-mode #chat .chat-composer textarea{
    resize:none!important;
  }

  /* Channel/GIF sheets can scroll internally; the underlying Chat page cannot. */
  body.chat-focus-mode.chat-channel-sheet-open,
  body.chat-focus-mode.portal-modal-open{
    overflow:hidden!important;
  }

  /* When the phone keyboard is open, reclaim the bottom-nav space.
     The composer stays inside the resized visual viewport. */
  body.chat-focus-mode.chat-keyboard-open #portal>.main{
    padding-bottom:0!important;
  }
  body.chat-focus-mode.chat-keyboard-open .mobile-bottom-nav{
    display:none!important;
  }
  body.chat-focus-mode.chat-keyboard-open #chat .chat-composer{
    padding-bottom:max(7px,env(safe-area-inset-bottom))!important;
  }
}


/* v2.12.4 — Desktop Team Chat fixed-screen app layout
   Desktop portal and Chat page stay fixed to the viewport.
   The conversation list and message history scroll independently. */
@media(min-width:921px){
  body.chat-focus-mode{
    width:100%!important;
    height:100vh!important;
    max-height:100vh!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  body.chat-focus-mode #portal{
    height:100vh!important;
    min-height:0!important;
    max-height:100vh!important;
    overflow:hidden!important;
  }
  body.chat-focus-mode #portal>.side{
    height:100vh!important;
    min-height:0!important;
    max-height:100vh!important;
    overflow:hidden!important;
  }
  body.chat-focus-mode #portal>.main{
    height:100vh!important;
    min-height:0!important;
    max-height:100vh!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    padding-bottom:24px!important;
  }
  body.chat-focus-mode #chat.section.active{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
  }
  body.chat-focus-mode #chat>.top{
    flex:0 0 auto!important;
    margin-bottom:14px!important;
  }
  body.chat-focus-mode #chatLoadNotice{
    flex:0 0 auto!important;
  }
  body.chat-focus-mode #chat .chat-shell{
    display:grid!important;
    grid-template-columns:280px minmax(0,1fr)!important;
    gap:14px!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  body.chat-focus-mode #chat .chat-sidebar,
  body.chat-focus-mode #chat .chat-conversation{
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  body.chat-focus-mode #chat .chat-sidebar{
    display:flex!important;
    flex-direction:column!important;
  }
  body.chat-focus-mode #chat .chat-side-head{
    flex:0 0 auto!important;
  }
  body.chat-focus-mode #chat .chat-side-body{
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
  }
  body.chat-focus-mode #chat .chat-conversation{
    display:flex!important;
    flex-direction:column!important;
  }
  body.chat-focus-mode #chat #chatConversation{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
  }
  body.chat-focus-mode #chat .chat-head,
  body.chat-focus-mode #chat .chat-pinned,
  body.chat-focus-mode #chat .chat-archive-bar,
  body.chat-focus-mode #chat .chat-archive-divider{
    flex:0 0 auto!important;
  }
  body.chat-focus-mode #chat .chat-pinned{
    max-height:150px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
  }
  body.chat-focus-mode #chat .chat-messages{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.chat-focus-mode #chat .chat-composer{
    flex:0 0 auto!important;
    position:relative!important;
    width:100%!important;
    margin:0!important;
    z-index:10!important;
  }
  body.chat-focus-mode #chat .chat-composer textarea{
    resize:none!important;
    max-height:120px!important;
  }

  /* Modal / picker overlays may scroll internally without moving the Chat page. */
  body.chat-focus-mode.portal-modal-open,
  body.chat-focus-mode.chat-channel-sheet-open{
    overflow:hidden!important;
  }
}


/* v2.12.5 — Mobile LuLu fixed-screen app layout
   The LuLu page shell never scrolls. Only the LuLu conversation thread scrolls. */
@media(max-width:760px){
  body.lulu-focus-mode{
    width:100%!important;
    height:var(--lunova-chat-vh,100dvh)!important;
    max-height:var(--lunova-chat-vh,100dvh)!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
    background:#fff!important;
  }
  body.lulu-focus-mode #portal{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:var(--lunova-chat-vh,100dvh)!important;
    min-height:0!important;
    max-height:var(--lunova-chat-vh,100dvh)!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.lulu-focus-mode #portal>.side{
    position:relative!important;
    top:auto!important;
    flex:0 0 auto!important;
    width:100%!important;
    z-index:1040!important;
  }
  body.lulu-focus-mode #portal>.main{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    width:100%!important;
    overflow:hidden!important;
    padding:0 0 calc(69px + env(safe-area-inset-bottom))!important;
    background:#fff!important;
  }
  body.lulu-focus-mode #ai.section.active{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    background:#fff!important;
  }

  /* The extra page title/status row is redundant on mobile.
     Keep only the compact Ask LuLu conversation header. */
  body.lulu-focus-mode #ai>.top{display:none!important}

  body.lulu-focus-mode #ai .nova-shell{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    width:100%!important;
    margin:0!important;
    gap:0!important;
    overflow:hidden!important;
  }
  body.lulu-focus-mode #ai .nova-side{display:none!important}
  body.lulu-focus-mode #ai .nova-main{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    max-height:none!important;
    width:100%!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
  }
  body.lulu-focus-mode #ai .nova-head{
    flex:0 0 auto!important;
    padding:8px 11px!important;
    border-bottom:1px solid #e6ecef!important;
    background:#fff!important;
  }
  body.lulu-focus-mode #ai .nova-brand{
    gap:9px!important;
  }
  body.lulu-focus-mode #ai .nova-mark{
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
    border-radius:11px!important;
  }
  body.lulu-focus-mode #ai .nova-mark img{
    width:34px!important;
    height:34px!important;
  }
  body.lulu-focus-mode #ai .nova-brand h2{
    font-size:16px!important;
    line-height:1.15!important;
  }
  body.lulu-focus-mode #ai .nova-brand p{display:none!important}

  /* Only the conversation history scrolls. */
  body.lulu-focus-mode #ai .nova-thread{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    width:100%!important;
    padding:10px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    background:#fff!important;
  }
  body.lulu-focus-mode #ai .nova-empty{
    margin:auto!important;
    padding:14px 10px!important;
  }
  body.lulu-focus-mode #ai .nova-empty-avatar{
    width:76px!important;
    height:76px!important;
    margin-bottom:7px!important;
  }
  body.lulu-focus-mode #ai .nova-empty strong{
    font-size:16px!important;
  }

  /* Composer always remains visible at the bottom of the LuLu view. */
  body.lulu-focus-mode #ai .nova-compose{
    position:relative!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    padding:7px 8px!important;
    border-top:1px solid #e1e8eb!important;
    background:#fff!important;
    z-index:20!important;
  }
  body.lulu-focus-mode #ai .nova-compose textarea{
    width:100%!important;
    min-height:54px!important;
    max-height:92px!important;
    resize:none!important;
    font-size:16px!important;
    padding:10px 11px!important;
  }
  body.lulu-focus-mode #ai .nova-compose-row{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    margin-top:6px!important;
    width:100%!important;
  }
  body.lulu-focus-mode #ai .nova-compose-note{display:none!important}
  body.lulu-focus-mode #ai .nova-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:7px!important;
  }
  body.lulu-focus-mode #ai .nova-actions .btn{
    min-height:40px!important;
    padding:8px 10px!important;
    font-size:10px!important;
  }

  /* Keyboard behavior: hide bottom nav and let LuLu use the entire visible viewport. */
  body.lulu-focus-mode.lulu-keyboard-open #portal>.main{
    padding-bottom:0!important;
  }
  body.lulu-focus-mode.lulu-keyboard-open .mobile-bottom-nav{
    display:none!important;
  }
  body.lulu-focus-mode.lulu-keyboard-open #ai .nova-compose{
    padding-bottom:max(7px,env(safe-area-inset-bottom))!important;
  }

  body.lulu-focus-mode.portal-modal-open{
    overflow:hidden!important;
  }
}


/* v2.12.6 — Universal circular employee profile photos
   Applies everywhere profile/headshot avatars render on desktop and mobile. */
.avatar,
.avatar-fallback,
img.avatar,
[data-avatar-user]{
  border-radius:50%!important;
  -webkit-border-radius:50%!important;
  overflow:hidden!important;
  aspect-ratio:1 / 1!important;
  object-fit:cover!important;
  object-position:center center!important;
  flex-shrink:0!important;
}

/* Explicitly protect every employee-avatar context from local component overrides. */
.profile-chip .avatar,
.sidebar-avatar-wrap .avatar,
.person-head .avatar,
.person-detail-head .avatar,
.leader-name .avatar,
.challenge-person .avatar,
.history-winner .avatar,
.chat-message .avatar,
.chat-preview-item .avatar,
.chat-mention-option .avatar,
.dm-picker-item .avatar,
.team-win .avatar,
.motivation-person .avatar,
.team-progress-name .avatar,
.admin-document-head .avatar,
.team-member-row .avatar,
.org-directory-table .avatar{
  border-radius:50%!important;
  -webkit-border-radius:50%!important;
  clip-path:circle(50%)!important;
  object-fit:cover!important;
  object-position:center center!important;
}

/* Initial/fallback avatars should visually match photo avatars exactly. */
.avatar-fallback{
  display:grid!important;
  place-items:center!important;
  clip-path:circle(50%)!important;
}


/* v2.13.5 — Clickable Team Chat @mentions */
.chat-mention.chat-mention-link{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--navy2)!important;
  font:inherit!important;
  font-weight:900!important;
  line-height:inherit!important;
  cursor:pointer!important;
  text-decoration:none!important;
  vertical-align:baseline!important;
}
.chat-mention.chat-mention-link:hover,
.chat-mention.chat-mention-link:focus-visible{
  text-decoration:underline!important;
  outline:none!important;
}


/* v2.13.7 — Team Chat acknowledgement requests */
.chat-ack-status{
  border:0!important;
  background:transparent!important;
  color:var(--navy2)!important;
  padding:2px 0!important;
  font:inherit!important;
  font-size:10px!important;
  font-weight:900!important;
  cursor:pointer!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}
.chat-ack-status:hover,.chat-ack-status:focus-visible{opacity:.8;outline:none!important}
.chat-ack-list{display:grid;gap:8px;margin-top:10px}
.chat-ack-person{
  display:flex;align-items:center;gap:9px;padding:9px 10px;
  border:1px solid var(--line);border-radius:10px;background:#fff
}
.chat-ack-person-main{min-width:0;flex:1}
.chat-ack-person-main strong{display:block;font-size:12px}
.chat-ack-person-main span{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.chat-ack-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.chat-ack-summary-card{border:1px solid var(--line);border-radius:10px;padding:10px;background:#f8fafb}
.chat-ack-summary-card strong{display:block;font-size:18px}
.chat-ack-summary-card span{display:block;font-size:10px;color:var(--muted);margin-top:2px}
@media(max-width:760px){
  .chat-ack-summary-grid{grid-template-columns:1fr 1fr}
  .chat-ack-person{padding:10px}
}


/* v2.13.8 — Acknowledgment controls visible on desktop + mobile */
.chat-mobile-send-options{display:none}
@media(min-width:761px){
  #chat .chat-composer-left{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:7px!important;
  }
  #chat .chat-composer-tools{
    position:static!important;
    width:auto!important;
    height:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:9px!important;
    margin-top:8px!important;
  }
  #chat #sendChatBtn{
    display:inline-flex!important;
    width:auto!important;
    height:auto!important;
    min-height:38px!important;
    padding:9px 14px!important;
    border-radius:9px!important;
    font-size:12px!important;
  }
  #chat #sendChatBtn:before{content:none!important}
  #chat .chat-mobile-media-btn,
  #chat .chat-mobile-gif-direct-btn{display:none!important}
}
@media(max-width:760px){
  #chat .chat-mobile-send-options{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    padding:0 1px 6px!important;
  }
  #chat .chat-mobile-send-options .chat-check{
    display:inline-flex!important;
    align-items:center!important;
    gap:6px!important;
    min-height:34px!important;
    padding:7px 9px!important;
    margin:0!important;
    border:1px solid #dce5e9!important;
    border-radius:999px!important;
    background:#f7fafb!important;
    color:var(--navy)!important;
    font-size:10px!important;
    font-weight:850!important;
  }
  #chat .chat-mobile-send-options .chat-check input{
    width:auto!important;
    margin:0!important;
  }
}


/* v2.14.0 — @LuNovans channel-wide mentions */
.chat-mention.chat-mention-everyone{
  display:inline!important;
  color:var(--navy2)!important;
  font-weight:950!important;
  background:#edf7ff!important;
  border-radius:5px!important;
  padding:1px 3px!important;
}
.chat-mention-option.chat-mention-everyone-option{
  border-color:#cfe4f5!important;
  background:#f3f9fd!important;
}
.chat-mention-option.chat-mention-everyone-option .chat-everyone-icon{
  width:32px!important;
  height:32px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 32px!important;
  background:#e2f1fb!important;
  font-size:17px!important;
}


/* v2.14.1 — Safe clickable links in Team Chat */
.chat-link{
  color:#0b67c2!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
.chat-link:hover,
.chat-link:focus-visible{
  opacity:.82!important;
  outline:none!important;
}


/* v2.15.0 — Professional LuNovan profile experience */
.modal.modal-profile{
  background:rgba(8,25,35,.48);
  backdrop-filter:blur(2px);
}
.modal.modal-profile .modal-card{
  position:relative;
  width:min(760px,calc(100vw - 40px));
  max-height:min(880px,92vh);
  padding:0;
  overflow:hidden;
  border:1px solid rgba(13,35,55,.08);
  border-radius:22px;
  box-shadow:0 28px 80px rgba(7,28,40,.24);
}
.modal.modal-profile .modal-head{
  position:absolute;
  top:16px;
  right:16px;
  z-index:5;
  padding:0;
}
.modal.modal-profile .modal-head h2{display:none}
.modal.modal-profile .modal-head .x{
  width:38px;
  height:38px;
  background:#f0f4f6;
  color:#31434f;
  box-shadow:0 1px 2px rgba(13,35,55,.08);
}
.modal.modal-profile #modalContent{
  max-height:min(880px,92vh);
  overflow:auto;
  overscroll-behavior:contain;
}
.directory-profile{
  padding:28px;
  background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%);
}
.directory-profile-hero{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:20px;
  align-items:center;
  padding-right:44px;
}
.directory-profile-photo .avatar.lg{
  width:116px;
  height:116px;
  border:4px solid #fff;
  box-shadow:0 8px 26px rgba(13,35,55,.14);
}
.directory-profile-name{
  margin:0;
  color:var(--navy);
  font-size:30px;
  line-height:1.05;
  letter-spacing:-.02em;
}
.directory-profile-title{
  margin-top:6px;
  font-size:16px;
  line-height:1.25;
  font-weight:900;
  color:#183042;
}
.directory-profile-subtitle{
  margin-top:3px;
  font-size:13px;
  color:var(--muted);
}
.directory-profile-meta{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  margin-top:12px;
  font-size:11px;
  color:#52636d;
  font-weight:750;
}
.directory-profile-meta-divider{
  width:1px;
  height:13px;
  background:#dbe3e7;
}
.directory-profile-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  align-self:start;
  margin-top:8px;
  padding:8px 11px;
  border-radius:999px;
  background:#e7f7e6;
  color:#2d6c2c;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.directory-profile-status:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#20a336;
  box-shadow:0 0 0 3px rgba(32,163,54,.1);
}
.directory-profile-status.inactive{
  background:#f1f3f4;
  color:#67757c;
}
.directory-profile-status.inactive:before{background:#87949b}

.directory-profile-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:22px;
}
.directory-profile-stat{
  min-width:0;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid #dfe7eb;
  border-radius:13px;
  background:#fff;
}
.directory-profile-stat-icon{
  width:38px;
  height:38px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:#f2f6f8;
  color:var(--navy);
  font-size:18px;
}
.directory-profile-stat span{
  display:block;
  color:var(--muted);
  font-size:9px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:900;
}
.directory-profile-stat strong{
  display:block;
  margin-top:3px;
  color:#183042;
  font-size:12px;
  line-height:1.3;
  overflow-wrap:anywhere;
}

.directory-profile-section{
  margin-top:14px;
  border:1px solid #dfe7eb;
  border-radius:14px;
  background:#fff;
  padding:14px;
}
.directory-profile-section-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:#142b3d;
  font-size:12px;
  font-weight:950;
}
.directory-profile-section-title .profile-section-icon{
  width:28px;
  height:28px;
  border-radius:8px;
  background:#f3f6f8;
  display:grid;
  place-items:center;
  font-size:14px;
}
.directory-profile-about{
  margin:0;
  color:#42535d;
  font-size:13px;
  line-height:1.62;
}
.directory-profile-contact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.directory-profile-contact{
  min-width:0;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:11px;
  border:1px solid #e1e8ec;
  border-radius:12px;
  background:#fbfcfd;
}
.directory-profile-contact-icon{
  width:36px;
  height:36px;
  border-radius:10px;
  background:#eef3f6;
  display:grid;
  place-items:center;
  font-size:16px;
}
.directory-profile-contact-label{
  display:block;
  color:var(--muted);
  font-size:9px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:900;
}
.directory-profile-contact-value{
  display:block;
  margin-top:3px;
  color:var(--navy);
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-decoration:none;
}
.directory-profile-contact-value:hover{text-decoration:underline}
.directory-profile-copy{
  border:0;
  border-radius:9px;
  padding:7px 9px;
  background:#edf2f4;
  color:var(--navy);
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}
.directory-profile-empty{
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}
.directory-profile .social-links{margin-top:0}
.directory-profile .badges{margin-top:0}

.directory-profile-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.directory-profile-actions .btn{
  width:100%;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:12px;
}
.directory-profile-actions .profile-action-primary{
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}
.directory-profile-actions.single{grid-template-columns:1fr}

@media(max-width:760px){
  .modal.modal-profile{
    padding:0;
    place-items:stretch;
    background:#f5f7f8;
  }
  .modal.modal-profile .modal-card{
    width:100vw;
    max-width:none;
    height:100dvh;
    max-height:none;
    border-radius:0;
    border:0;
    box-shadow:none;
    display:flex;
    flex-direction:column;
  }
  .modal.modal-profile .modal-head{
    position:fixed;
    top:calc(env(safe-area-inset-top,0px) + 12px);
    right:14px;
    z-index:60;
  }
  .modal.modal-profile #modalContent{
    max-height:none;
    height:100%;
    overflow:auto;
    padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));
  }
  .directory-profile{
    min-height:100%;
    padding:calc(22px + env(safe-area-inset-top,0px)) 16px 24px;
  }
  .directory-profile-hero{
    grid-template-columns:84px minmax(0,1fr);
    gap:14px;
    padding:30px 0 0;
    align-items:center;
  }
  .directory-profile-photo .avatar.lg{
    width:84px;
    height:84px;
    border-width:3px;
  }
  .directory-profile-name{font-size:24px}
  .directory-profile-title{font-size:14px}
  .directory-profile-subtitle{font-size:12px}
  .directory-profile-meta{font-size:10px;gap:7px}
  .directory-profile-status{
    grid-column:1/-1;
    justify-self:start;
    margin-top:0;
    padding:7px 10px;
  }
  .directory-profile-stats{
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:17px;
  }
  .directory-profile-stat:last-child{grid-column:1/-1}
  .directory-profile-stat{padding:10px;grid-template-columns:34px minmax(0,1fr)}
  .directory-profile-stat-icon{width:34px;height:34px}
  .directory-profile-section{padding:12px;margin-top:11px}
  .directory-profile-contact-grid{grid-template-columns:1fr}
  .directory-profile-contact{grid-template-columns:34px minmax(0,1fr) auto;padding:10px}
  .directory-profile-contact-icon{width:34px;height:34px}
  .directory-profile-actions{
    grid-template-columns:1fr;
    position:sticky;
    bottom:-1px;
    z-index:3;
    padding-top:10px;
    padding-bottom:4px;
    background:linear-gradient(180deg,rgba(251,252,253,0) 0%,#fbfcfd 24%);
  }
  .directory-profile-actions .btn{min-height:48px;font-size:13px}
}


/* v2.15.3 — Closer capacity, routing, and personal time blocks */
.closer-routing-head{
  display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap
}
.closer-routing-head h2{margin:0;font-size:17px}
.closer-routing-head p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.closer-routing-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px
}
.closer-routing-stat{
  border:1px solid var(--line);border-radius:12px;background:#fafcfd;padding:11px
}
.closer-routing-stat span{
  display:block;color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em
}
.closer-routing-stat strong{display:block;margin-top:4px;font-size:17px;color:var(--navy)}
.closer-routing-rules{
  margin-top:12px;padding:11px 12px;border:1px solid #dce6ea;border-radius:11px;background:#f7fafb;
  color:#44555f;font-size:11px;line-height:1.55
}
.closer-routing-rules strong{color:var(--navy)}
.closer-blocks-preview{display:grid;gap:7px;margin-top:11px}
.closer-block-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px 10px
}
.closer-block-row strong{display:block;font-size:11px}
.closer-block-row span{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.closer-block-list{display:grid;gap:8px;margin-top:12px}
.closer-block-list .closer-block-row{padding:11px}
.closer-block-empty{
  border:1px dashed #cbd8de;border-radius:11px;padding:14px;text-align:center;color:var(--muted);font-size:11px
}
@media(max-width:760px){
  .closer-routing-grid{grid-template-columns:1fr 1fr}
  .closer-routing-grid .closer-routing-stat:last-child{grid-column:1/-1}
  .closer-routing-head .btn{width:100%}
}


/* v2.15.7 — Intentional Team Directory ordering */
.directory-group-heading{
  margin:16px 2px 7px;display:flex;align-items:center;gap:9px;color:#52636d;
  font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;
}
.directory-group-heading:first-child{margin-top:2px}
.directory-group-heading:after{content:"";height:1px;flex:1;background:#dfe7eb}


/* v2.15.9 — Cleaner portal-health monitoring */
.health-diagnostic{opacity:.88}
.health-diagnostic strong{color:#334953}
.health-diagnostic .diagnostic-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:6px 9px;
  background:#eef3f5;
  color:#566770;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
}
.attention-section-note{
  margin:-2px 0 7px;
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}


/* v2.16.8 — portal-wide readability pass */
html{font-size:16px}
body{
  font-size:16px!important;
  line-height:1.5!important;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

/* Navigation / shell */
.nav button,
.sidebar button,
.mobile-bottom-nav button,
.mobile-more button{
  font-size:15px!important;
  line-height:1.25!important;
}
.sidebar .small,
.sidebar small,
.nav .small{
  font-size:12px!important;
}
.sidebar-user strong,
.sidebar-user-name{
  font-size:14px!important;
}
.sidebar-user span,
.sidebar-user-meta{
  font-size:12px!important;
}

/* Headings */
h1{font-size:28px!important;line-height:1.2!important}
h2{font-size:21px!important;line-height:1.25!important}
h3{font-size:16px!important;line-height:1.3!important}
h4{font-size:14px!important;line-height:1.35!important}

/* Common secondary text */
.small,
small,
.muted,
.help-text,
.field-help,
.card-subtitle,
.section-subtitle{
  font-size:13px!important;
  line-height:1.5!important;
}

/* Forms */
label,
.field label,
.control-group label{
  font-size:13px!important;
  line-height:1.35!important;
}
input,
select,
textarea{
  font-size:15px!important;
  line-height:1.35!important;
}
input:not([type="checkbox"]):not([type="radio"]),
select{
  min-height:44px;
}
textarea{min-height:96px}
button,
.btn{
  font-size:14px!important;
  line-height:1.25!important;
}

/* Cards, rows, lists, tables */
.card,
.panel,
.progress-panel,
.attention-row,
.challenge-progress-person,
.challenge-admin-eligibility-card,
.challenge-eligibility-item,
.directory-card,
.lead-card,
.appointment-card{
  font-size:14px!important;
}
table,
th,
td{
  font-size:13px!important;
  line-height:1.4!important;
}
th{font-size:12px!important}

/* Status / pills / badges */
.pill,
.badge,
.status-pill,
.challenge-status,
.challenge-qualifier,
.diagnostic-pill,
.motivation-badge{
  font-size:11px!important;
  line-height:1.25!important;
}

/* Dashboard widgets */
.ready-work-item strong,
.attention-row strong,
.challenge-progress-person-name strong,
.challenge-admin-eligibility-name strong{
  font-size:14px!important;
}
.ready-work-item span:not(.ready-work-icon),
.attention-row span,
.challenge-progress-person-name span,
.challenge-admin-eligibility-name span{
  font-size:12px!important;
  line-height:1.45!important;
}
.attention-stats span,
.challenge-progress-metric span,
.challenge-team-progress-grid span,
.challenge-progress-person-metrics span{
  font-size:10px!important;
}
.attention-stats strong,
.challenge-progress-metric strong,
.challenge-team-progress-grid strong,
.challenge-progress-person-metrics strong{
  font-size:18px!important;
}

/* Team chat + LuLu */
.chat-message,
.chat-bubble,
.message-body,
.lulu-message,
.lulu-bubble,
.chat-compose textarea,
#teamChatMessages,
#luluMessages{
  font-size:15px!important;
  line-height:1.5!important;
}
.chat-meta,
.message-meta,
.chat-time,
.lulu-meta{
  font-size:11px!important;
}
.chat-chip,
.mention-chip,
.quick-chip{
  font-size:12px!important;
}

/* Eligibility and challenge */
.challenge-desc,
.challenge-personal-note,
.challenge-rules,
.challenge-close-rule,
.challenge-fixed-pool-note,
.challenge-eligibility-sub{
  font-size:13px!important;
  line-height:1.5!important;
}
.challenge-eligibility-item-main strong{
  font-size:14px!important;
}
.challenge-eligibility-item-main span{
  font-size:11px!important;
}
.challenge-prize-item,
.challenge-special-prizes div{
  font-size:13px!important;
}
.challenge-prize-place{
  font-size:11px!important;
}
.challenge-prize-amount{
  font-size:20px!important;
}

/* Team directory / profiles */
.profile-modal,
.profile-card,
.directory-card{
  font-size:14px!important;
}
.profile-modal .small,
.profile-card .small,
.directory-card .small{
  font-size:12px!important;
}

/* Mobile: still readable without breaking the app layout */
@media(max-width:760px){
  body{font-size:15px!important}
  h1{font-size:24px!important}
  h2{font-size:19px!important}
  h3{font-size:16px!important}
  .small,small,.muted,.help-text,.field-help{font-size:12px!important}
  button,.btn{font-size:14px!important}
  input,select,textarea{font-size:16px!important} /* prevents iOS zoom */
  .mobile-bottom-nav button{font-size:12px!important}
  .chat-message,.chat-bubble,.message-body,.lulu-message,.lulu-bubble{font-size:15px!important}
}


/* v2.16.9 — employee competition rules */
.challenge-rules-shell{
  margin-top:14px;
  border:1px solid #dce7de;
  border-radius:14px;
  background:#fbfdfb;
  overflow:hidden;
}
.challenge-rules-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  border:0;
  background:#f4f9f1;
  color:#102433;
  font-size:14px!important;
  font-weight:900;
  cursor:pointer;
  text-align:left;
}
.challenge-rules-toggle:hover{background:#eef6e9}
.challenge-rules-toggle .challenge-rules-caret{
  font-size:16px;
  line-height:1;
}
.challenge-rules-body{
  padding:14px;
  border-top:1px solid #e3ebe4;
}
.challenge-rules-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.challenge-rule-card{
  background:#fff;
  border:1px solid #e2e9e3;
  border-radius:11px;
  padding:11px 12px;
}
.challenge-rule-card strong{
  display:block;
  color:#102433;
  font-size:14px!important;
  margin-bottom:4px;
}
.challenge-rule-card p{
  margin:0;
  color:#52636a;
  font-size:13px!important;
  line-height:1.5;
}
.challenge-rules-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:#fff8e9;
  border:1px solid #f0d8aa;
  color:#684e1f;
  font-size:12px!important;
  line-height:1.5;
}
@media(max-width:760px){
  .challenge-rules-grid{grid-template-columns:1fr}
  .challenge-rules-toggle{font-size:14px!important}
}


/* v2.16.11 — mobile Team Chat cleanup */
@media(max-width:760px){
  /* Keep the composer visually light. */
  body.chat-focus-mode #chat .chat-composer{
    padding:5px 8px calc(5px + env(safe-area-inset-bottom))!important;
  }

  /* Announcement / acknowledgment controls become compact chips. */
  #chat .chat-mobile-send-options{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:5px!important;
    padding:0 0 5px!important;
    margin:0!important;
    overflow-x:auto!important;
    scrollbar-width:none;
  }
  #chat .chat-mobile-send-options::-webkit-scrollbar{display:none}
  #chat .chat-mobile-send-options .chat-check{
    flex:0 0 auto!important;
    min-height:28px!important;
    height:28px!important;
    padding:3px 7px!important;
    gap:5px!important;
    border-radius:999px!important;
    font-size:10px!important;
    line-height:1!important;
    font-weight:850!important;
    background:#f5f8f9!important;
    border-color:#dbe4e8!important;
  }
  #chat .chat-mobile-send-options .chat-check input{
    width:14px!important;
    height:14px!important;
    min-height:14px!important;
    margin:0!important;
    accent-color:var(--green)!important;
  }

  /* Hide the long tagging tip on phones; it was pushing + / GIF below the text box. */
  #chat .chat-input-wrap > .small{
    display:none!important;
  }

  /* The type box becomes a single clean row: + | message | GIF | send. */
  #chat .chat-input-wrap{
    position:relative!important;
    margin:0!important;
  }
  #chat .chat-composer textarea{
    min-height:48px!important;
    height:48px!important;
    max-height:118px!important;
    padding:12px 92px 10px 44px!important;
    border-radius:24px!important;
    line-height:1.3!important;
  }
  #chat .chat-mobile-media-btn{
    display:grid!important;
    position:absolute!important;
    left:7px!important;
    right:auto!important;
    top:7px!important;
    bottom:auto!important;
    width:34px!important;
    height:34px!important;
    min-height:34px!important;
    border-radius:999px!important;
    background:#eef3f5!important;
    color:var(--navy)!important;
    box-shadow:none!important;
    font-size:23px!important;
    z-index:6!important;
  }
  #chat .chat-mobile-gif-direct-btn{
    display:inline-flex!important;
    position:absolute!important;
    right:47px!important;
    top:7px!important;
    bottom:auto!important;
    height:34px!important;
    min-height:34px!important;
    min-width:39px!important;
    padding:0 7px!important;
    background:transparent!important;
    color:var(--navy)!important;
    border:0!important;
    box-shadow:none!important;
    font-size:10px!important;
    z-index:6!important;
  }
  #chat .chat-composer-tools{
    right:8px!important;
    bottom:calc(9px + env(safe-area-inset-bottom))!important;
    width:38px!important;
    height:38px!important;
  }
  #chat #sendChatBtn{
    width:38px!important;
    height:38px!important;
    min-height:38px!important;
  }
  #chat #sendChatBtn:before{
    font-size:18px!important;
  }

  /* Reduce extra vertical noise around message actions and acknowledgments. */
  #chat .chat-message-tools{
    gap:8px!important;
    margin-top:4px!important;
    flex-wrap:wrap!important;
  }
  #chat .chat-message-tools button{
    font-size:10px!important;
    padding:2px 0!important;
  }
  #chat .chat-ack{
    margin-top:5px!important;
    gap:5px!important;
  }
  #chat .chat-ack .btn{
    min-height:28px!important;
    padding:4px 7px!important;
    font-size:10px!important;
    border-radius:8px!important;
  }
  #chat .chat-ack-status{
    font-size:10px!important;
  }

  /* Pinned controls stay useful but consume less room. */
  #chat .chat-mobile-pinned-toggle{
    min-height:30px!important;
    padding:4px 10px!important;
    font-size:10px!important;
  }
  #chat .chat-mobile-pinned-panel{
    padding:2px 9px!important;
  }
  #chat .chat-mobile-pinned-panel .chat-pin-item{
    padding:4px 0!important;
  }

  /* Attachment menu is the only expanded media menu on phone. */
  #chat .chat-mobile-attach-menu{
    margin:5px 0 2px!important;
  }
}


.chat-live-off{background:#fff4df!important;color:#8a5a00!important}


/* v2.16.20 — exact user-provided LuNova logo in Team Portal */
.sidebar-full-logo{
  width:190px!important;
  max-width:100%!important;
  height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  box-shadow:none!important;
  object-fit:contain!important;
}
.auth-logo-full{
  width:min(320px,100%)!important;
  height:auto!important;
  max-height:none!important;
  margin:0 auto 14px!important;
  padding:0!important;
  border-radius:12px!important;
  background:transparent!important;
  object-fit:contain!important;
}
@media(max-width:760px){
  #portal .sidebar-full-logo{
    width:min(220px,64vw)!important;
    max-width:220px!important;
  }
  .auth-logo-full{
    width:min(300px,92vw)!important;
  }
}


/* v2.16.21 — transparent LuNova Team Portal logo */
.sidebar-full-logo{
  width:200px!important;
  max-width:100%!important;
  height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  object-fit:contain!important;
}
.auth-logo-full{
  width:min(330px,100%)!important;
  height:auto!important;
  max-height:none!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  object-fit:contain!important;
}
@media(max-width:760px){
  #portal .sidebar-full-logo{
    width:min(225px,66vw)!important;
    max-width:225px!important;
  }
  .auth-logo-full{
    width:min(310px,92vw)!important;
  }
}


/* LuNova Team Portal v2.21.51 — authoritative mobile login rules.
   This block intentionally comes LAST so it overrides all legacy logo/login CSS. */

@media (max-width: 700px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100% !important;
  }

  body {
    background: #0e2432 !important;
  }

  #auth.auth-shell {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding:
      max(18px, env(safe-area-inset-top))
      14px
      max(18px, env(safe-area-inset-bottom)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-x: hidden !important;
    background: linear-gradient(160deg, #0e2432 0%, #15384b 100%) !important;
  }

  #auth .auth-card {
    width: 100% !important;
    max-width: 390px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 24px 18px 22px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 18px 46px rgba(0,0,0,.22) !important;
  }

  #auth .auth-logo-full {
    display: block !important;
    width: 215px !important;
    max-width: 72vw !important;
    height: auto !important;
    max-height: 88px !important;
    min-width: 0 !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  #auth .auth-card h1 {
    margin: 2px 0 7px !important;
    font-size: 24px !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em !important;
    text-align: center !important;
  }

  #auth .auth-card > .sub {
    width: 100% !important;
    max-width: 310px !important;
    margin: 0 auto 18px !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  #auth form,
  #auth .field,
  #auth .forgot-details,
  #auth .forgot-inline-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #auth .field {
    display: block !important;
    margin: 12px 0 !important;
  }

  #auth .field label {
    display: block !important;
    margin: 0 0 6px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  #auth input[type="email"],
  #auth input[type="password"],
  #auth input[type="text"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 13px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    border-radius: 10px !important;
  }

  #auth #loginBtn {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 6px 0 0 !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    border-radius: 10px !important;
    touch-action: manipulation !important;
  }

  #auth .forgot-details {
    margin-top: 12px !important;
  }

  #auth .forgot-details > summary {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  #auth .forgot-inline-panel {
    margin-top: 7px !important;
    padding-top: 10px !important;
    overflow: hidden !important;
  }

  #auth .msg,
  #auth .small,
  #auth .forgot-reset-warning {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  #auth.auth-shell {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #auth .auth-card {
    padding: 20px 15px 18px !important;
    border-radius: 16px !important;
  }

  #auth .auth-logo-full {
    width: 190px !important;
    max-width: 68vw !important;
    max-height: 78px !important;
    margin-bottom: 13px !important;
  }

  #auth .auth-card h1 {
    font-size: 22px !important;
  }
}

/* Short screens / landscape / keyboard-open situations */
@media (max-width: 700px) and (max-height: 720px) {
  #auth.auth-shell {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding-top: max(12px, env(safe-area-inset-top)) !important;
  }

  #auth .auth-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #auth .auth-logo-full {
    width: 185px !important;
    max-height: 70px !important;
    margin-bottom: 10px !important;
  }

  #auth .auth-card h1 {
    font-size: 21px !important;
    margin-bottom: 5px !important;
  }

  #auth .auth-card > .sub {
    margin-bottom: 12px !important;
  }

  #auth .field {
    margin: 9px 0 !important;
  }
}


/* v2.21.51 — deployment-asset and desktop sidebar repair */

/* Do not let failed/late logo sizing distort the sidebar. */
.sidebar-brand{
  min-height:58px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  overflow:hidden !important;
}
.sidebar-full-logo{
  display:block !important;
  width:176px !important;
  max-width:100% !important;
  height:auto !important;
  max-height:64px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  object-fit:contain !important;
  object-position:left center !important;
}

/* Login uses the same official logo but a centered presentation. */
#auth .auth-logo-full{
  object-position:center center !important;
}

/* Desktop: keep all navigation reachable without clipping the user/sign-out area. */
@media (min-width:921px){
  #portal.app{
    height:100vh !important;
    overflow:hidden !important;
  }
  #portal .side{
    height:100vh !important;
    min-height:0 !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
  }
  #portal .nav{
    min-height:0 !important;
    flex:1 1 auto !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain !important;
    padding-right:4px !important;
    scrollbar-width:thin;
  }
  #portal .side-bottom{
    flex:0 0 auto !important;
    margin-top:8px !important;
    background:var(--navy) !important;
    position:relative !important;
    z-index:2 !important;
  }
  #portal .main{
    height:100vh !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }
}

/* Mobile keeps the v2.17.4 login rules authoritative. */
@media (max-width:700px){
  #auth .auth-logo-full{
    width:215px !important;
    max-width:72vw !important;
    max-height:88px !important;
  }
}


/* v2.21.51 — exact white/gold LuNova brand asset + sidebar cleanup */

.sidebar-brand{
  min-height:82px !important;
  padding:4px 2px 10px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
}

.sidebar-full-logo{
  display:block !important;
  width:188px !important;
  max-width:94% !important;
  height:auto !important;
  max-height:94px !important;
  margin:0 auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  object-fit:contain !important;
  object-position:center !important;
}

/* Desktop sidebar: scroll internally without showing a chunky scrollbar */
@media (min-width:921px){
  #portal .side{
    padding:18px 14px 14px !important;
    gap:12px !important;
  }

  #portal .nav{
    gap:4px !important;
    padding-right:0 !important;
    scrollbar-width:none !important;
    -ms-overflow-style:none !important;
  }

  #portal .nav::-webkit-scrollbar{
    width:0 !important;
    height:0 !important;
    display:none !important;
  }

  #portal .nav button,
  #portal .nav-external{
    min-height:38px !important;
    padding:9px 11px !important;
  }

  #portal .side-bottom{
    padding-top:12px !important;
    margin-top:6px !important;
  }
}

/* Mobile portal header logo */
@media (max-width:920px){
  #portal .sidebar-brand{
    min-height:58px !important;
    padding:0 !important;
  }

  #portal .sidebar-full-logo{
    width:176px !important;
    max-width:58vw !important;
    max-height:74px !important;
  }
}

/* Login page uses the exact same uploaded logo, centered and proportional */
#auth .auth-logo-full{
  display:block !important;
  width:250px !important;
  max-width:78% !important;
  height:auto !important;
  max-height:130px !important;
  margin:0 auto 14px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  object-fit:contain !important;
  object-position:center !important;
}

@media (max-width:700px){
  #auth .auth-logo-full{
    width:210px !important;
    max-width:70vw !important;
    max-height:105px !important;
    margin-bottom:13px !important;
  }
}


#auth .auth-logo-full{
  display:block !important;
  width:248px !important;
  max-width:80% !important;
  height:auto !important;
  max-height:112px !important;
  margin:0 auto 15px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  object-fit:contain !important;
  object-position:center !important;
}
@media(max-width:700px){
  #auth .auth-logo-full{
    width:205px !important;
    max-width:72vw !important;
    max-height:94px !important;
    margin-bottom:13px !important;
  }
}


/* v2.21.51 — prevent the My Leads pane from hijacking mouse-wheel scrolling */

@media (min-width: 921px){
  .lead-workspace,
  .lead-workspace-host,
  .lead-workspace-list,
  .lead-workspace-scroll{
    min-height:0 !important;
    max-height:none !important;
  }

  .lead-workspace-list,
  .lead-workspace-scroll{
    height:auto !important;
    overflow-y:visible !important;
    overflow-x:hidden !important;
    overscroll-behavior:auto !important;
    scrollbar-width:none !important;
    -ms-overflow-style:none !important;
  }

  .lead-workspace-list::-webkit-scrollbar,
  .lead-workspace-scroll::-webkit-scrollbar{
    display:none !important;
    width:0 !important;
    height:0 !important;
  }

  /* The right detail panel should not create a second wheel-scroll region either. */
  .lead-workspace-detail,
  .lead-detail-body{
    max-height:none !important;
    overflow-y:visible !important;
    overscroll-behavior:auto !important;
  }

  /* Main portal content owns vertical scrolling. */
  #portal .main{
    overflow-y:auto !important;
    overscroll-behavior-y:auto !important;
  }
}


:root{--sidebar-accent:#2168d9;--sidebar-accent-2:#2c78ef}
@media(min-width:921px){
  #portal .side{position:relative !important;isolation:isolate;background:linear-gradient(180deg,rgba(12,36,54,.98) 0%,rgba(17,45,67,.96) 48%,rgba(17,45,67,.78) 66%,rgba(13,34,49,.22) 100%),url('/sidebar-solar-home-reference.jpg?v=2.21.51') bottom center/100% auto no-repeat !important;padding:18px 13px 14px !important;gap:10px !important}
  #portal .side::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 0 58%,rgba(9,27,41,.08) 70%,rgba(9,27,41,.04) 100%);pointer-events:none}
  #portal .sidebar-brand{min-height:62px !important;margin-bottom:2px !important}
  #portal .sidebar-full-logo{width:168px !important;max-height:72px !important}
  #portal .nav{display:flex !important;flex-direction:column !important;gap:3px !important;padding:3px 0 12px !important}
  #portal .nav button,#portal .nav-external{position:relative !important;width:100% !important;min-height:42px !important;display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:11px !important;padding:9px 11px !important;border-radius:7px !important;border:0 !important;background:transparent !important;color:rgba(255,255,255,.94) !important;font-size:12px !important;font-weight:700 !important;letter-spacing:0 !important;box-shadow:none !important;text-align:left !important}
  #portal .nav button:hover,#portal .nav-external:hover{background:rgba(255,255,255,.10) !important;transform:none !important}
  #portal .nav button.active{background:linear-gradient(90deg,var(--sidebar-accent),var(--sidebar-accent-2)) !important;color:#fff !important;box-shadow:0 8px 22px rgba(20,95,205,.28) !important}
  #portal .nav button[data-tab="dashboard"]{order:1}
  #portal .nav button[data-tab="leads"]{order:2}
  #portal .nav button[data-tab="calendar"]{order:3}
  #portal .nav button[data-tab="chat"]{order:4}
  #portal .nav button[data-tab="ai"]{order:5}
  #portal .nav button[data-tab="resources"]{order:6}
  #portal .nav button[data-tab="profile"]{order:7;margin-bottom:12px !important}
  #portal .nav button[data-tab="appointments"]{order:20}
  #portal .nav button[data-tab="closed"]{order:21}
  #portal .nav button[data-tab="performance"]{order:22}
  #portal .nav button[data-tab="leaderboard"]{order:23}
  #portal .nav button[data-tab="people"]{order:24}
  #portal .nav button[data-tab="my-team"]{order:25}
  #portal .nav button[data-tab="team"]{order:26}
  #portal .nav button[data-tab="documents"]{order:27}
  #portal .nav button[data-tab="notifications"]{order:28}
  #portal .nav button[data-tab="deleted"]{order:29}
  #portal .nav button[data-tab="onboarding"]{order:30}
  #portal .nav .nav-external{order:31}
  #portal .side-bottom{background:rgba(9,28,43,.80) !important;border-top:1px solid rgba(255,255,255,.15) !important;backdrop-filter:blur(5px);border-radius:10px 10px 0 0;padding:10px 4px 2px !important}
}
.calendar-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}
.calendar-summary-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:15px 16px;box-shadow:0 7px 22px rgba(13,35,55,.05)}
.calendar-summary-card span{display:block;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.calendar-summary-card strong{display:block;font-size:30px;line-height:1.05;margin:7px 0 4px;color:var(--navy)}
.calendar-summary-card small{color:var(--muted);font-size:11px}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:14px}
.calendar-agenda-card,.calendar-week-card{padding:16px !important}.calendar-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.calendar-card-head h2{margin:2px 0 0;font-size:19px}.calendar-eyebrow{font-size:9px;letter-spacing:.12em;font-weight:900;color:var(--muted)}.calendar-date-controls{display:flex;align-items:center;gap:6px}.calendar-date-controls input{height:38px;border:1px solid var(--line);border-radius:9px;padding:0 9px;background:#fff;color:var(--navy);font:inherit;font-size:11px;font-weight:800}.calendar-arrow{width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:#f4f7f9;color:var(--navy);font-size:22px;cursor:pointer}.calendar-agenda-list{display:grid;gap:8px}
.calendar-agenda-item{width:100%;display:grid;grid-template-columns:72px 12px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px 12px;text-align:left;cursor:pointer}.calendar-agenda-item:hover{background:#f8fbfd;border-color:#c7d6e2}.calendar-agenda-time{font-size:11px;font-weight:900;color:var(--navy)}.calendar-agenda-marker{width:9px;height:9px;border-radius:50%;background:#2d78ed}.calendar-agenda-item.followup .calendar-agenda-marker{background:#f5a623}.calendar-agenda-copy{min-width:0}.calendar-agenda-copy strong{display:block;font-size:12px;color:var(--navy);margin-bottom:3px}.calendar-agenda-copy small{display:block;color:var(--muted);font-size:10px;white-space:normal;overflow-wrap:anywhere}.calendar-agenda-type{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;padding:6px 8px;border-radius:999px;background:#edf5ff;color:#1d5fc0}.calendar-agenda-item.followup .calendar-agenda-type{background:#fff4dc;color:#8a5a00}.calendar-empty{padding:32px 14px;text-align:center;border:1px dashed #ccd8df;border-radius:12px;color:var(--muted)}.calendar-empty strong{display:block;color:var(--navy);font-size:13px;margin-bottom:4px}.calendar-week-list{display:grid;gap:7px}.calendar-week-day{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px 11px;text-align:left;cursor:pointer}.calendar-week-day:hover,.calendar-week-day.active{background:#edf5ff;border-color:#bdd4f6}.calendar-week-day span{display:flex;flex-direction:column;gap:2px}.calendar-week-day strong{font-size:11px;color:var(--navy)}.calendar-week-day small{font-size:10px;color:var(--muted)}.calendar-week-day b{display:grid;place-items:center;min-width:26px;height:26px;border-radius:999px;background:#edf1f3;color:var(--navy);font-size:11px}.calendar-week-day.active b{background:#2168d9;color:#fff}
@media(max-width:920px){.calendar-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-layout{grid-template-columns:1fr}.calendar-agenda-item{grid-template-columns:62px 10px minmax(0,1fr)}.calendar-agenda-type{grid-column:3;justify-self:start}.calendar-card-head{align-items:flex-start;flex-direction:column}.calendar-date-controls{width:100%}.calendar-date-controls input{flex:1}}


.calendar-top-actions{display:flex;align-items:center;gap:10px}
.calendar-view-switcher{display:flex;align-items:center;padding:3px;background:#eef3f6;border:1px solid var(--line);border-radius:10px}
.calendar-view-switcher button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:11px;font-weight:900;padding:8px 12px;border-radius:7px;cursor:pointer}
.calendar-view-switcher button.active{background:#fff;color:var(--navy);box-shadow:0 2px 8px rgba(16,40,60,.08)}
.calendar-shell{padding:0 !important;overflow:hidden}
.calendar-main-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.calendar-nav-left{display:flex;align-items:center;gap:8px}
.calendar-nav-left h2{margin:0 0 0 6px;font-size:18px}
.calendar-main-toolbar input{height:38px;border:1px solid var(--line);border-radius:9px;padding:0 9px;background:#fff;color:var(--navy);font:inherit;font-size:11px;font-weight:800}
.calendar-view-panel.hidden{display:none !important}

/* Month */
.calendar-month-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid var(--line);background:#f8fafb}
.calendar-month-weekdays span{padding:10px 8px;text-align:center;font-size:10px;font-weight:900;letter-spacing:.05em;color:var(--muted);text-transform:uppercase}
.calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(6,minmax(118px,1fr))}
.calendar-month-cell{min-width:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px;background:#fff}
.calendar-month-cell:nth-child(7n){border-right:0}
.calendar-month-cell.outside{background:#f8fafb}
.calendar-month-cell.outside .calendar-day-number{color:#aab5bc}
.calendar-month-cell.today{background:#f5f9ff}
.calendar-day-number{width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--navy);font:inherit;font-weight:900;cursor:pointer}
.calendar-month-cell.today .calendar-day-number{background:#2168d9;color:#fff}
.calendar-month-events{display:grid;gap:3px;margin-top:4px;min-width:0}
.calendar-more{border:0;background:transparent;color:#2168d9;text-align:left;font:inherit;font-size:9px;font-weight:900;padding:2px 3px;cursor:pointer}

/* Event pills */
.calendar-event{width:100%;min-width:0;display:grid;grid-template-columns:7px auto minmax(0,1fr);gap:5px;align-items:center;border:0;border-radius:6px;background:#eaf3ff;color:#164f99;padding:6px 7px;text-align:left;cursor:pointer}
.calendar-event.followup{background:#fff3dc;color:#805300}
.calendar-event:hover{filter:brightness(.98)}
.calendar-event.compact{padding:4px 5px;border-radius:5px;font-size:9px}
.calendar-event-dot{width:6px;height:6px;border-radius:50%;background:#2168d9}
.calendar-event.followup .calendar-event-dot{background:#f3a11b}
.calendar-event-time{font-size:9px;font-weight:900;white-space:nowrap}
.calendar-event-title{font-size:9px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Week */
.calendar-week-header{display:grid;grid-template-columns:58px repeat(7,minmax(0,1fr));border-bottom:1px solid var(--line);background:#fff}
.calendar-week-time-head{border-right:1px solid var(--line)}
.calendar-week-day-head{border:0;border-right:1px solid var(--line);background:#fff;padding:9px 6px;display:flex;flex-direction:column;gap:3px;align-items:center;cursor:pointer}
.calendar-week-day-head:last-child{border-right:0}
.calendar-week-day-head span{font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase}
.calendar-week-day-head strong{font-size:16px;color:var(--navy)}
.calendar-week-day-head.today strong{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#2168d9;color:#fff}
.calendar-week-grid{display:grid;grid-template-columns:58px repeat(7,minmax(0,1fr))}
.calendar-week-time{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:5px 7px;text-align:right;font-size:9px;color:var(--muted);min-height:54px}
.calendar-week-slot{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:3px;min-height:54px;display:grid;align-content:start;gap:3px}
.calendar-week-slot:nth-child(8n){border-right:0}

/* Day */
.calendar-day-timeline{display:grid}
.calendar-day-row{display:grid;grid-template-columns:74px minmax(0,1fr);min-height:64px;border-bottom:1px solid var(--line)}
.calendar-day-time{padding:8px 10px;text-align:right;color:var(--muted);font-size:10px;border-right:1px solid var(--line)}
.calendar-day-slot{padding:5px 8px;display:grid;gap:5px;align-content:start}
.calendar-day-slot .calendar-event{max-width:680px}

@media(max-width:920px){
  .calendar-top-actions{width:100%;align-items:stretch;flex-direction:column}
  .calendar-view-switcher{width:100%}
  .calendar-view-switcher button{flex:1}
  .calendar-main-toolbar{align-items:flex-start;flex-direction:column}
  .calendar-main-toolbar input{width:100%}
  .calendar-month-grid{grid-template-rows:repeat(6,minmax(96px,1fr))}
  .calendar-month-cell{padding:4px}
  .calendar-event-time{display:none}
  .calendar-event{grid-template-columns:7px minmax(0,1fr)}
  .calendar-week-header,.calendar-week-grid{min-width:760px}
  #calendarWeekView{overflow-x:auto}
}


.calendar-event.internal{background:#eef0ff;color:#3a3f99;grid-template-columns:7px auto minmax(0,1fr) auto}
.calendar-event.internal .calendar-event-dot{background:#6b67d8}
.calendar-event-mini{font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;opacity:.8}
.calendar-invite-picker{max-height:none;overflow:visible;border:1px solid var(--line);border-radius:12px;padding:8px;background:#fafcfd;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:4px}.invite-submit-bar{position:sticky;bottom:0;z-index:5;padding:12px 0 2px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 30%)}#inviteForm .field{margin-bottom:10px}.calendar-invite-picker label{min-width:0}#calendarEventForm>button[type="submit"]{position:sticky;bottom:0;z-index:4;margin-top:14px;box-shadow:0 -8px 18px rgba(255,255,255,.94),0 8px 18px rgba(13,35,55,.12)}@media(max-width:700px){.calendar-invite-picker{grid-template-columns:1fr}#calendarEventForm>button[type="submit"]{bottom:8px}}
.calendar-invite-picker label{display:flex;align-items:center;gap:9px;padding:8px 7px;border-radius:8px;cursor:pointer}
.calendar-invite-picker label:hover{background:#eef5f8}
.calendar-invite-picker input{width:auto}
.calendar-invite-picker small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.calendar-event-detail{display:grid;gap:10px}
.calendar-rsvp,.calendar-guest-list{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fafcfd}
.calendar-rsvp .actions{margin-top:10px}
.calendar-guest-list{display:grid;gap:6px}
.calendar-guest-list>strong{margin-bottom:4px}
.calendar-guest-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e7edef}
.calendar-guest-list>div:last-child{border-bottom:0}
.calendar-guest-list b{font-size:10px;text-transform:uppercase;color:var(--muted)}
@media(max-width:700px){
  .calendar-event.internal{grid-template-columns:7px minmax(0,1fr)}
  .calendar-event.internal .calendar-event-time,.calendar-event-mini{display:none}
}


.lead-cap-note{margin-top:8px;padding:8px 10px;border:1px solid #d9e4ea;border-radius:9px;background:#f8fbfd;color:var(--muted);font-size:10px}


@media(min-width:921px){
  .lead-workspace{
    align-items:stretch !important;
  }
  .lead-workspace-list,
  .lead-workspace-detail{
    height:760px !important;
    min-height:760px !important;
    max-height:760px !important;
  }
  .lead-workspace-list{
    position:sticky !important;
    top:12px !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
  }
  .lead-workspace-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    overflow:hidden !important;
    padding:7px !important;
  }
  .lead-workspace-detail{
    overflow:auto !important;
    overscroll-behavior:contain !important;
  }
}
.lead-workspace-pager{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 10px 11px;
  border-top:1px solid #edf2f4;
  background:#fbfdfe;
}
.lead-page-numbers{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:0;
  flex-wrap:wrap;
}
.lead-page-btn{
  border:1px solid #d8e3e8;
  background:#fff;
  color:var(--navy);
  min-width:30px;
  height:30px;
  padding:0 8px;
  border-radius:8px;
  font:inherit;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}
.lead-page-btn:hover:not(:disabled){background:#eef5ff;border-color:#b8d2f4}
.lead-page-btn.active{background:#2168d9;border-color:#2168d9;color:#fff}
.lead-page-btn:disabled{opacity:.38;cursor:not-allowed}
.lead-page-nav{min-width:78px}
.lead-page-ellipsis{font-size:11px;color:var(--muted);padding:0 2px}
@media(max-width:920px){
  .lead-workspace-list,
  .lead-workspace-detail{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
  }
  .lead-workspace-scroll{overflow:visible !important}
  .lead-workspace-pager{position:sticky;bottom:0;z-index:2}
  .lead-page-nav{min-width:68px;padding:0 6px}
}


.lead-detail-note .lead-note-contact{
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
  overflow-wrap:anywhere;
}
.lead-detail-note .lead-note-contact.phone,
.lead-detail-note .lead-note-contact.email{color:#165fc7}
@media(hover:hover) and (pointer:fine){
  .lead-detail-note .lead-note-contact:hover{opacity:.72}
}


/* v2.21.51 — authoritative phone layout.
   Desktop rules above must never leak into the mobile portal. */
@media(max-width:760px){
  html,body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }
  body.mobile-more-open{overflow:hidden !important}

  #portal{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    grid-template-columns:1fr !important;
    overflow-x:hidden !important;
  }
  #portal .main{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:12px 10px calc(86px + env(safe-area-inset-bottom)) !important;
    overflow-x:hidden !important;
  }
  #portal .section,
  #portal .card,
  #portal .toolbar,
  #portal .filters{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  /* Mobile header is logo-only. Navigation lives in the bottom bar. */
  #portal .side{
    position:sticky !important;
    top:0 !important;
    z-index:1080 !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:8px 10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:visible !important;
    background:#fff !important;
    border-bottom:1px solid #e7edef !important;
    box-shadow:none !important;
  }
  #portal .side .logo{
    width:100% !important;
    min-height:48px !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
  #portal .sidebar-full-logo{
    width:min(190px,54vw) !important;
    max-width:190px !important;
    height:auto !important;
    margin:0 auto !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  #portal .mobile-menu-toggle{display:none !important}
  #portal .side:not(.mobile-open) .nav,
  #portal .side:not(.mobile-open) .side-bottom{display:none !important}

  /* Bottom navigation must always remain tappable. */
  .mobile-bottom-nav{
    display:grid !important;
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    z-index:1200 !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    width:100% !important;
    max-width:100% !important;
    min-height:64px !important;
    padding:5px 5px calc(5px + env(safe-area-inset-bottom)) !important;
    background:rgba(255,255,255,.98) !important;
    border-top:1px solid #dfe7ea !important;
    box-shadow:0 -7px 22px rgba(13,35,55,.08) !important;
    overflow:visible !important;
  }
  .mobile-bottom-nav button{
    min-width:0 !important;
    width:100% !important;
    min-height:52px !important;
    padding:4px 2px !important;
    overflow:visible !important;
    touch-action:manipulation;
  }

  /* More opens as a bottom sheet above bottom nav. */
  #portal .side.mobile-open{
    position:fixed !important;
    top:auto !important;
    left:10px !important;
    right:10px !important;
    bottom:calc(72px + env(safe-area-inset-bottom)) !important;
    z-index:1190 !important;
    width:auto !important;
    max-width:none !important;
    max-height:70dvh !important;
    display:block !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding:12px !important;
    background:#fff !important;
    border:1px solid #dfe7ea !important;
    border-radius:18px !important;
    box-shadow:0 18px 48px rgba(13,35,55,.22) !important;
  }
  #portal .side.mobile-open .logo{display:none !important}
  #portal .side.mobile-open .nav{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:5px !important;
    width:100% !important;
    max-height:none !important;
    overflow:visible !important;
    padding:0 !important;
  }
  #portal .side.mobile-open .nav button,
  #portal .side.mobile-open .nav a{
    width:100% !important;
    min-width:0 !important;
    min-height:46px !important;
    justify-content:flex-start !important;
    text-align:left !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }
  #portal .side.mobile-open .side-bottom{
    display:grid !important;
    width:100% !important;
    gap:8px !important;
    margin-top:10px !important;
  }

  /* Leads: list and detail are mutually exclusive on phones. */
  #leads #leadCards{width:100% !important;max-width:100% !important}
  .lead-workspace{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
  }
  .lead-workspace-list,
  .lead-workspace-detail{
    position:static !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    border-radius:13px !important;
    overflow:visible !important;
  }
  .lead-workspace:not(.mobile-detail-open) .lead-workspace-list{display:flex !important}
  .lead-workspace:not(.mobile-detail-open) .lead-workspace-detail{display:none !important}
  .lead-workspace.mobile-detail-open .lead-workspace-list{display:none !important}
  .lead-workspace.mobile-detail-open .lead-workspace-detail{display:block !important}
  .lead-workspace-list{
    flex-direction:column !important;
  }
  .lead-workspace-scroll{
    display:block !important;
    flex:none !important;
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    padding:7px !important;
  }
  .lead-workspace-item{
    width:100% !important;
    min-width:0 !important;
    margin-bottom:6px !important;
    padding:11px !important;
  }
  .lead-workspace-item-meta,
  .lead-workspace-item-contact,
  .lead-workspace-item-foot{
    min-width:0 !important;
    max-width:100% !important;
  }

  /* Phone-friendly pagination; never sticky over the content. */
  .lead-workspace-pager{
    position:static !important;
    z-index:auto !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:7px !important;
    width:100% !important;
    padding:10px !important;
  }
  .lead-page-numbers{
    grid-column:1/-1 !important;
    grid-row:1 !important;
    display:flex !important;
    justify-content:center !important;
    flex-wrap:wrap !important;
    gap:5px !important;
    width:100% !important;
  }
  .lead-page-nav{
    width:100% !important;
    min-width:0 !important;
    min-height:42px !important;
  }
  .lead-page-btn{
    min-width:36px !important;
    min-height:36px !important;
    height:auto !important;
    touch-action:manipulation;
  }

  /* Detail view: no nested desktop scroll container. */
  .lead-workspace-detail{
    overflow:visible !important;
  }
  .lead-detail-mobile-back{
    display:inline-flex !important;
    min-height:42px !important;
    align-items:center !important;
    margin:0 0 10px !important;
  }
  .lead-detail-body{
    display:block !important;
    width:100% !important;
    padding:10px !important;
  }
  .lead-detail-stack{
    width:100% !important;
    gap:10px !important;
    margin-bottom:10px !important;
  }
  .lead-detail-card{
    width:100% !important;
    min-width:0 !important;
    padding:12px !important;
  }
  .lead-detail-field{
    grid-template-columns:minmax(92px,34%) minmax(0,1fr) !important;
    gap:8px !important;
  }
  .lead-detail-main-actions,
  .lead-detail-action-grid{
    width:100% !important;
  }
  .lead-detail-action-grid{
    grid-template-columns:1fr 1fr !important;
  }
  .lead-detail-contact-strip{
    flex-direction:column !important;
    gap:8px !important;
  }
  .lead-detail-note,
  .lead-detail-value,
  .lead-note-contact{
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }

  /* Calendar must not force the entire portal wider than the phone. */
  #calendar .calendar-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  #calendar .calendar-top-actions{
    width:100% !important;
    display:grid !important;
    gap:8px !important;
  }
  #calendar .calendar-view-switcher{
    width:100% !important;
  }
  #calendar .calendar-view-switcher button{
    flex:1 1 0 !important;
    min-width:0 !important;
  }
  #calendarMonthView{overflow-x:hidden !important}
  #calendar .calendar-month-grid{
    width:100% !important;
    grid-template-columns:repeat(7,minmax(0,1fr)) !important;
  }
  #calendar .calendar-month-cell{
    min-width:0 !important;
    padding:3px !important;
  }
  #calendar .calendar-event-title{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  #calendarWeekView{
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  /* Inputs/modals stay inside phone viewport. */
  #portal input,
  #portal select,
  #portal textarea,
  #portal button{
    max-width:100%;
  }
  #portal input,
  #portal select,
  #portal textarea{
    font-size:16px !important;
  }
  .modal-card{
    max-width:calc(100vw - 16px) !important;
    margin:8px !important;
  }

  /* Never let a child create page-level horizontal scrolling. */
  #portal *{box-sizing:border-box}
  #portal img,#portal svg,#portal video,#portal canvas{max-width:100% !important;height:auto}
}


/* v2.21.51 — the document owns which shell is visible.
   Prevent mobile/PWA resumes from showing Login and Dashboard simultaneously. */
body.portal-authenticated #auth{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
body.portal-authenticated #portal{
  display:grid !important;
  visibility:visible !important;
}
body.portal-signed-out #auth{
  display:grid !important;
  visibility:visible !important;
}
body.portal-signed-out #portal{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
@media(max-width:760px){
  body.portal-authenticated #auth{
    display:none !important;
    position:absolute !important;
    width:0 !important;
    height:0 !important;
    min-height:0 !important;
    overflow:hidden !important;
  }
}


@media(max-width:760px){
  /* 1) White mobile header = dark LuNova logo. */
  #portal .sidebar-full-logo{
    content:url('/lunova-login-logo-dark-exact.png?v=2.21.51') !important;
    width:min(190px,54vw) !important;
    max-width:190px !important;
    height:auto !important;
    max-height:62px !important;
    object-fit:contain !important;
    object-position:center !important;
    background:transparent !important;
  }

  /* 2) Protect every blue "today" marker from becoming an oval. */
  #calendar .calendar-day-number,
  #calendar .calendar-week-day-head.today strong{
    box-sizing:border-box !important;
  }
  #calendar .calendar-month-cell.today .calendar-day-number{
    display:inline-grid !important;
    place-items:center !important;
    width:30px !important;
    min-width:30px !important;
    max-width:30px !important;
    height:30px !important;
    min-height:30px !important;
    max-height:30px !important;
    padding:0 !important;
    margin:0 !important;
    aspect-ratio:1 / 1 !important;
    border-radius:50% !important;
    line-height:1 !important;
    flex:0 0 30px !important;
  }
  #calendar .calendar-week-day-head.today strong{
    display:grid !important;
    place-items:center !important;
    width:30px !important;
    min-width:30px !important;
    max-width:30px !important;
    height:30px !important;
    min-height:30px !important;
    max-height:30px !important;
    padding:0 !important;
    margin:0 auto !important;
    aspect-ratio:1 / 1 !important;
    border-radius:50% !important;
    line-height:1 !important;
    flex:0 0 30px !important;
  }

  /* 3) LuLu always sits on white on mobile home/loading states. */
  .mobile-bottom-lulu,
  .mobile-bottom-lulu-avatar,
  .mobile-bottom-lulu-avatar img,
  #ai .nova-empty,
  #ai .nova-empty-avatar,
  #ai .nova-empty-avatar img,
  #ai .nova-mark,
  #ai .nova-mark img{
    background:#fff !important;
  }
  .mobile-bottom-lulu-avatar{
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;
    border-radius:50% !important;
    overflow:hidden !important;
    display:grid !important;
    place-items:center !important;
  }
  .mobile-bottom-lulu-avatar img{
    width:28px !important;
    height:28px !important;
    object-fit:contain !important;
    border-radius:50% !important;
  }
  #ai .nova-empty-avatar{
    border-radius:18px !important;
    overflow:hidden !important;
    display:grid !important;
    place-items:center !important;
  }
  #ai .nova-empty-avatar img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }
  body.lulu-focus-mode,
  body.lulu-focus-mode #portal,
  body.lulu-focus-mode #portal>.main,
  body.lulu-focus-mode #ai.section.active,
  body.lulu-focus-mode #ai .nova-main,
  body.lulu-focus-mode #ai .nova-thread{
    background:#fff !important;
  }
}


.lead-caller-levels{
  margin-top:10px;
  padding:11px;
  border:1px solid #dce8d7;
  border-radius:12px;
  background:rgba(255,255,255,.66);
}
.lead-caller-levels-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
.lead-caller-levels-title strong{
  color:var(--navy);
  font-size:11px;
}
.lead-caller-levels-title span{
  color:var(--muted);
  font-size:9px;
  text-align:right;
}
.lead-caller-level-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(165px,1fr));
  gap:7px;
  width:100%;
}
.lead-caller-level{
  min-width:0;
  padding:9px 10px;
  border:1px solid #dfe7ea;
  border-radius:10px;
  background:#fff;
}
.lead-caller-level.needs-leads{border-color:#eed3b7;background:#fffaf5}
.lead-caller-level.at-target{border-color:#d6e7cf;background:#fbfef9}
.lead-caller-level-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.lead-caller-level-head strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--navy);
  font-size:10px;
}
.lead-caller-level-head span{
  flex:0 0 auto;
  color:var(--navy);
  font-size:10px;
  font-weight:950;
}
.lead-caller-progress{
  height:5px;
  margin-top:7px;
  overflow:hidden;
  border-radius:999px;
  background:#e8edef;
}
.lead-caller-progress i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#8ec63f;
}
.lead-caller-level.needs-leads .lead-caller-progress i{background:#e4a346}
.lead-caller-level-foot{
  margin-top:5px;
  color:var(--muted);
  font-size:8.5px;
  font-weight:800;
}
@media(max-width:760px){
  .lead-caller-levels{padding:9px}
  .lead-caller-levels-title{
    display:block;
  }
  .lead-caller-levels-title span{
    display:block;
    margin-top:3px;
    text-align:left;
  }
  .lead-caller-level-grid{
    grid-template-columns:1fr;
    gap:6px;
  }
  .lead-caller-level{
    padding:9px;
  }
  .lead-caller-level-head strong{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }
}


/* Desktop defaults to 7 visible callers. */
.lead-caller-levels:not(.expanded) .lead-caller-level:nth-child(n+8){
  display:none;
}
.lead-caller-toggle{
  width:100%;
  margin-top:9px;
  min-height:38px;
  border:1px solid #d9e3e7;
  border-radius:9px;
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}
.lead-caller-toggle:hover{background:#f5f8fa}
.lead-caller-toggle.mobile-needed{display:none}
.lead-caller-toggle.desktop-needed{display:block}

/* Expanded always shows everyone. */
.lead-caller-levels.expanded .lead-caller-level{
  display:block !important;
}

@media(max-width:760px){
  /* Mobile defaults to only 3 visible callers. */
  .lead-caller-levels:not(.expanded) .lead-caller-level:nth-child(n+4){
    display:none !important;
  }
  .lead-caller-toggle.desktop-needed{display:none}
  .lead-caller-toggle.mobile-needed{
    display:block;
    min-height:44px;
    font-size:11px;
  }
}


/* v2.21.51 performance: Calendar RLS recursion fixed server-side;
   first paint no longer waits for Calendar/onboarding; lead pages parallelize. */


body.portal-signed-out{
  overflow:auto !important;
  overscroll-behavior:auto !important;
  height:auto !important;
  max-height:none !important;
  touch-action:auto !important;
}
body.portal-signed-out #auth{
  display:flex !important;
  visibility:visible !important;
  pointer-events:auto !important;
  z-index:1 !important;
}
body.portal-signed-out #auth .auth-card,
body.portal-signed-out #auth form,
body.portal-signed-out #auth input,
body.portal-signed-out #auth button,
body.portal-signed-out #auth summary{
  pointer-events:auto !important;
  touch-action:manipulation !important;
}
body.portal-signed-out #auth input{
  user-select:text !important;
  -webkit-user-select:text !important;
}
body.portal-signed-out #modal,
body.portal-signed-out .mobile-bottom-nav,
body.portal-signed-out #portal{
  pointer-events:none !important;
}
@media(max-width:760px){
  body.portal-signed-out #auth{
    width:100% !important;
    min-height:100dvh !important;
    position:relative !important;
  }
}


/* A signed-out user must never retain any mobile portal overlay above Login. */
body.portal-signed-out::before,
body.portal-signed-out::after{
  display:none !important;
  content:none !important;
  pointer-events:none !important;
}
body.portal-signed-out.mobile-more-open::before{
  display:none !important;
  content:none !important;
  pointer-events:none !important;
}
body.portal-signed-out #auth{
  position:relative !important;
  z-index:2147483646 !important;
}
body.portal-signed-out #auth .auth-card,
body.portal-signed-out #auth input,
body.portal-signed-out #auth button,
body.portal-signed-out #auth summary{
  position:relative;
  z-index:1;
  pointer-events:auto !important;
}


body.portal-auth-pending{
  margin:0 !important;
  min-height:100vh !important;
  min-height:100dvh !important;
  overflow:hidden !important;
  background:#ffffff !important;
}
body.portal-auth-pending #auth,
body.portal-auth-pending #portal{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
.auth-startup-splash{
  position:fixed;
  inset:0;
  z-index:2147483647;
  display:grid;
  place-items:center;
  background:#ffffff;
}
.auth-startup-card{
  display:grid;
  justify-items:center;
  gap:16px;
  padding:20px;
}
.auth-startup-card img{
  display:block;
  width:min(220px,56vw);
  height:auto;
  max-height:92px;
  object-fit:contain;
}
.auth-startup-spinner{
  width:30px;
  height:30px;
  border:3px solid #e5eaed;
  border-top-color:#123247;
  border-radius:50%;
  animation:lunovaAuthSpin .7s linear infinite;
}
@keyframes lunovaAuthSpin{to{transform:rotate(360deg)}}
.auth-startup-splash.hidden{display:none !important}
@media(max-width:760px){
  .auth-startup-card img{
    width:min(190px,58vw);
  }
}


/* v2.21.51: session restoration waits for Supabase INITIAL_SESSION;
   deployment update reloads cannot interrupt auth-pending startup. */


/* v2.21.51: the visible Sign out button uses Supabase local scope so
   one device cannot unintentionally revoke another device's session. */


/* Authoritative login positioning — must remain last.
   Centers the entire auth card in the visible viewport on desktop and mobile. */
#auth.auth-shell{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  min-width:0 !important;
  min-height:100vh !important;
  min-height:100dvh !important;
  margin:0 !important;
  padding:24px !important;
  box-sizing:border-box !important;
  display:grid !important;
  place-items:center !important;
  overflow:auto !important;
}

#auth .auth-card{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  transform:none !important;
  float:none !important;
  width:min(416px, calc(100vw - 48px)) !important;
  max-width:416px !important;
  min-width:0 !important;
  margin:0 auto !important;
  box-sizing:border-box !important;
}

body.portal-signed-out #auth{
  display:grid !important;
  place-items:center !important;
}

@media(max-width:760px){
  #auth.auth-shell{
    padding:
      max(16px,env(safe-area-inset-top))
      14px
      max(16px,env(safe-area-inset-bottom)) !important;
    align-items:center !important;
    justify-items:center !important;
  }
  #auth .auth-card{
    width:min(390px, calc(100vw - 28px)) !important;
    max-width:390px !important;
    margin:auto !important;
  }
}

@media(max-width:700px) and (max-height:720px){
  #auth.auth-shell{
    align-items:start !important;
    padding-top:max(12px,env(safe-area-inset-top)) !important;
  }
  #auth .auth-card{
    margin:0 auto !important;
  }
}


#leadSearch:not(:placeholder-shown){
  border-color:#8ec63f !important;
  box-shadow:0 0 0 3px rgba(142,198,63,.10) !important;
}


.lead-caller-level-foot .closer-count{
  color:#0b6b4d;
  font-weight:950;
}


.safe-challenge-admin-head{align-items:center}
.daily-bonus-admin-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.daily-bonus-admin-list{display:grid;gap:8px;margin-top:12px}
.daily-bonus-admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #dfe7ea;border-radius:10px;background:#fff}
.daily-bonus-admin-row>div:first-child{display:grid;gap:3px}
.daily-bonus-admin-row span{font-size:9px;color:var(--muted)}
.daily-bonus-admin-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.daily-bonus-role-options{display:flex;gap:18px;flex-wrap:wrap}
.daily-bonus-approval-option{display:flex;align-items:center;gap:8px;min-height:44px}

.dashboard-daily-bonuses{margin-bottom:14px;padding:14px;border:1px solid #dce8d7;border-radius:16px;background:linear-gradient(180deg,#fbfef9,#fff)}
.dashboard-daily-bonus-title{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.dashboard-daily-bonus-title>span{font-size:25px}
.dashboard-daily-bonus-title div{display:grid;gap:1px}
.dashboard-daily-bonus-title strong{font-size:14px;color:var(--navy)}
.dashboard-daily-bonus-title small{font-size:9px;color:var(--muted)}
.dashboard-daily-bonus-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.dashboard-daily-bonus-card{padding:13px;border:1px solid #dfe7ea;border-radius:13px;background:#fff;box-shadow:0 5px 15px rgba(16,48,65,.05)}
.dashboard-daily-bonus-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.dashboard-daily-bonus-card h3{margin:7px 0 0;color:var(--navy);font-size:14px}
.dashboard-daily-bonus-money{flex:0 0 auto;font-size:20px;color:#0b6b4d}
.dashboard-daily-bonus-card p{margin:8px 0;color:#4c616b;font-size:10px;line-height:1.45}
.dashboard-daily-bonus-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.dashboard-daily-bonus-meta span{padding:5px 7px;border-radius:999px;background:#f3f6f7;color:#41545d;font-size:8.5px;font-weight:850}
.dashboard-daily-bonus-time{margin-top:9px;font-size:9px;font-weight:850;color:var(--navy)}
.dashboard-daily-bonus-approval{margin-top:6px;font-size:8.5px;color:var(--muted)}
@media(max-width:760px){
  .safe-challenge-admin-head,.daily-bonus-admin-head,.daily-bonus-admin-row{align-items:stretch;flex-direction:column}
  .challenge-admin-actions,.daily-bonus-admin-actions{width:100%;flex-wrap:wrap}
  .challenge-admin-actions .btn,.daily-bonus-admin-actions .btn{flex:1 1 auto}
  .dashboard-daily-bonus-grid{grid-template-columns:1fr}
  .dashboard-daily-bonuses{padding:11px}
}


/* Realtime updates never replace the active chat textarea while a user is typing. */


.daily-bonus-leader{
  margin-top:10px;
  padding:9px 10px;
  border-radius:10px;
  background:#f5f9f4;
  border:1px solid #dce8d7;
  color:#213b34;
  font-size:9.5px;
}
.daily-bonus-leader.pending,.daily-bonus-leader.empty{background:#f7f8f9;border-color:#e3e7e9;color:#667781}
.daily-bonus-leader-main{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.daily-bonus-leader-main b{margin-left:auto;font-size:11px;color:#0b6b4d}
.daily-bonus-top-three{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.daily-bonus-top-three span{padding:4px 6px;border-radius:999px;background:#fff;border:1px solid #e0e7e2;font-size:8px;font-weight:800}
.daily-bonus-admin-leader{color:#0b6b4d!important;font-weight:850}


.lead-dialer-shell{padding:4px 0 2px;text-align:center}
.lead-dialer-name{font-size:19px;font-weight:900;color:var(--navy)}
.lead-dialer-number{margin-top:8px;font-size:28px;font-weight:950;letter-spacing:.02em;color:#0b6b4d}
.lead-dialer-note{margin:8px auto 16px;max-width:430px;font-size:10px;color:var(--muted);line-height:1.45}
.lead-dialer-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.lead-dialer-after{margin-top:14px;padding-top:12px;border-top:1px solid #e4e9eb;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left}
@media(max-width:640px){.lead-dialer-actions{grid-template-columns:1fr}.lead-dialer-after{align-items:stretch;flex-direction:column}}


#leadSearch[data-autofill-cleared="true"]{
  background-image:none!important;
}


/* The active chat textarea is never replaced by background portal rendering. */


/* Reaction controls preserve the clicked message position in the chat viewport. */


#logoutBtn,[data-portal-logout]{touch-action:manipulation}


/* Own headshot is primed immediately; full directory photos remain non-blocking. */


.challenge-history-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:10px}
.challenge-history-section-label{grid-column:1/-1;font-size:12px;font-weight:900;color:var(--navy);margin-top:6px}
.challenge-history-no-winner{display:grid;gap:3px;padding:9px 10px;margin-top:8px;border-radius:10px;background:#f7f8f9;border:1px solid #e2e7e9}
.challenge-history-no-winner strong{font-size:11px;color:#53646c}
.challenge-history-no-winner span{font-size:9px;color:var(--muted)}
.challenge-history-winner small{font-size:8.5px;color:var(--muted);font-weight:800}
#logoutBtn,[data-portal-logout]{position:relative;z-index:6;pointer-events:auto!important;touch-action:manipulation}


.appointment-handoff-table{min-width:1180px}
.appointment-handoff-table td{vertical-align:top}
.appointment-handoff-table a{color:var(--navy);font-weight:800;text-decoration:none}
.appointment-handoff-table a:hover{text-decoration:underline}
.appointment-handoff-people{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0}
.appointment-handoff-people span{display:grid;gap:2px;padding:8px 9px;background:#f5f7f8;border-radius:9px;font-size:10px;color:#334a55}
.appointment-handoff-people b{font-size:8px;text-transform:uppercase;letter-spacing:.055em;color:#73838b}
.appointment-handoff-contact{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;margin:8px 0}
.appointment-handoff-contact a{color:var(--navy);font-weight:850}
.appointment-handoff-banner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0 15px}
.appointment-handoff-banner>div{padding:11px;border-radius:11px;border:1px solid var(--line);background:#f7f9fa}
.appointment-handoff-banner span{display:block;font-size:8.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:900;margin-bottom:4px}
.appointment-handoff-banner strong{display:block;font-size:11px;color:var(--navy)}
.appointment-detail-heading{margin:18px 0 9px;font-size:14px;color:var(--navy)}
.appointment-detail-grid .preflight-item strong a{color:var(--navy);text-decoration:none}
.appointment-detail-notes{margin-top:14px}
@media(max-width:760px){
  .appointment-handoff-banner{grid-template-columns:1fr 1fr}
  .appointment-handoff-people{grid-template-columns:1fr 1fr}
}
@media(max-width:460px){
  .appointment-handoff-banner,.appointment-handoff-people{grid-template-columns:1fr}
}


.self-gen-lead-notice{margin:10px 0;background:#eef8f2;border-color:#cce8d7}
.self-gen-lead-notice strong{color:#174f32}


.address-suggestions-note strong{color:var(--navy)}
.address-suggestion span{line-height:1.35}


.portal-core-data-warning{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 13px;margin:0 0 14px;border:1px solid #efd49b;border-radius:12px;background:#fff9eb;color:#674a12;position:relative;z-index:4}
.portal-core-data-warning strong{font-size:12px}.portal-core-data-warning span{font-size:11px;flex:1;min-width:220px}.portal-core-data-warning .btn{padding:8px 10px}


.crm-contact-save-note{margin-top:8px;text-align:center;color:var(--muted)}


.chat-edited{font-size:9px;font-weight:800;color:var(--muted)}
.chat-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.chat-edit-actions .btn{min-width:120px}
@media(max-width:520px){
  .chat-edit-actions{display:grid;grid-template-columns:1fr 1fr}
  .chat-edit-actions .btn{width:100%;min-width:0}
}


.self-gen-credit-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;margin:12px 0 15px;border:1px solid #b9d8f5;border-radius:12px;background:#f3f9ff}
.self-gen-credit-card.complete{border-color:#cbe6d1;background:#f1faf3}
.self-gen-credit-card>div{display:grid;gap:3px}
.self-gen-credit-card strong{font-size:12px;color:var(--navy)}
.self-gen-credit-card span{font-size:10px;color:var(--muted);line-height:1.45}
.self-gen-credit-card .btn{white-space:nowrap}
.self-gen-credit-admin{margin:0 0 10px}
@media(max-width:620px){
  .self-gen-credit-card{align-items:stretch;flex-direction:column}
  .self-gen-credit-card .btn{width:100%}
}


#chatMessageInput:focus{outline:2px solid rgba(37,99,235,.16);outline-offset:1px}


#modal.modal-calendar{padding:24px;place-items:center;background:rgba(9,24,32,.48);overflow:hidden}
#modal.modal-calendar .modal-card{box-sizing:border-box;width:min(700px,100%);max-width:700px!important;height:auto;max-height:min(760px,calc(100dvh - 48px));margin:0!important;padding:0;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 24px 80px #09182055}
#modal.modal-calendar .modal-head{flex:0 0 auto;padding:16px 20px;border-bottom:1px solid var(--line);background:#fff}
#modal.modal-calendar .modal-head h2{font-size:21px}
#modal.modal-calendar #modalContent{box-sizing:border-box;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;width:100%;max-width:none;margin:0;padding:16px 20px}
#modal.modal-calendar .info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#modal.modal-calendar .field{margin-bottom:10px}
#modal.modal-calendar .calendar-invite-picker{max-height:150px;overflow-y:auto;overscroll-behavior:contain;grid-template-columns:repeat(2,minmax(0,1fr))}
#modal.modal-calendar textarea{min-height:65px}
#modal.modal-calendar .calendar-guest-list{max-height:180px;overflow-y:auto;overscroll-behavior:contain}
@media(max-width:640px){#modal.modal-calendar{padding:10px}#modal.modal-calendar .modal-card{max-height:calc(100dvh - 20px);width:100%;border-radius:14px}#modal.modal-calendar #modalContent{padding:12px 14px}#modal.modal-calendar .modal-head{padding:14px}#modal.modal-calendar .calendar-invite-picker{grid-template-columns:1fr}}

@media(min-width:921px){
 html:has(body.chat-focus-mode),body.chat-focus-mode{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;}
 body.chat-focus-mode #portal,body.chat-focus-mode #portal>.main,body.chat-focus-mode #portal>.side{height:100dvh!important;max-height:100dvh!important;min-height:0!important;box-sizing:border-box!important;overflow:hidden!important;}
 body.chat-focus-mode #portal>.side .nav{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;}
 body.chat-focus-mode #chat.section.active{height:auto!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important;}
 body.chat-focus-mode #chat .chat-shell{flex:1 1 0!important;min-height:0!important;overflow:hidden!important;}
 body.chat-focus-mode #chat .chat-sidebar,body.chat-focus-mode #chat .chat-conversation,body.chat-focus-mode #chatConversation{min-height:0!important;overflow:hidden!important;}
 body.chat-focus-mode #chat .chat-messages{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain!important;overflow-anchor:none;}
 body.chat-focus-mode #chat .chat-composer{flex:0 0 auto!important;}
}


/* v2.21.45 — Challenge Energy UI */
.dashboard-daily-bonuses{
  border-radius:22px!important;
  padding:18px!important;
  background:linear-gradient(135deg,#fffdf4 0%,#ffffff 48%,#f5fbf7 100%)!important;
  border:1px solid #e6e8df!important;
  box-shadow:0 12px 36px rgba(14,42,59,.08)!important;
}
.dashboard-daily-bonus-title{
  display:flex!important;align-items:center!important;gap:12px!important;margin-bottom:14px!important
}
.dashboard-daily-bonus-title>span{
  width:42px!important;height:42px!important;border-radius:14px!important;display:grid!important;place-items:center!important;
  background:#fff1c7!important;box-shadow:inset 0 0 0 1px #f3d675!important;font-size:22px!important
}
.dashboard-daily-bonus-title strong{font-size:20px!important;letter-spacing:-.02em!important}
.dashboard-daily-bonus-title small{display:block!important;margin-top:3px!important;color:#6b7a84!important;font-weight:700!important}
.dashboard-daily-bonus-card{
  position:relative!important;overflow:hidden!important;border-radius:18px!important;border:1px solid #dfe7e4!important;
  background:#fff!important;box-shadow:0 10px 26px rgba(14,42,59,.07)!important;padding:18px!important
}
.dashboard-daily-bonus-card:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(#8ec63f,#0f7b54)
}
.dashboard-daily-bonus-card-head h3{font-size:20px!important;margin-top:8px!important;letter-spacing:-.02em!important}
.dashboard-daily-bonus-money{
  font-size:26px!important;line-height:1!important;padding:10px 14px!important;border-radius:14px!important;
  background:#0d2b3d!important;color:#fff!important;box-shadow:0 8px 18px rgba(13,43,61,.18)!important
}
.dashboard-daily-bonus-meta span{
  border-radius:999px!important;padding:7px 10px!important;background:#f3f7f5!important;border:1px solid #e2e9e5!important;font-weight:800!important
}
.daily-bonus-leader{
  margin-top:13px!important;border-radius:13px!important;padding:12px 14px!important;
  background:linear-gradient(90deg,#fff8dc,#fffdf6)!important;border:1px solid #f0dfa0!important
}
.weekly-challenge-card.challenge-energy{
  position:relative!important;overflow:hidden!important;border-radius:24px!important;
  border:1px solid #dbe5df!important;background:linear-gradient(145deg,#ffffff 0%,#fbfdfc 60%,#f4fbf6 100%)!important;
  box-shadow:0 18px 52px rgba(9,41,58,.10)!important;padding:22px!important
}
.weekly-challenge-card.challenge-energy:before{
  content:"";position:absolute;left:0;right:0;top:0;height:6px;background:linear-gradient(90deg,#8ec63f 0%,#f1c84b 48%,#0d2b3d 100%)
}
.challenge-energy .challenge-head{
  align-items:stretch!important;gap:22px!important
}
.challenge-energy .challenge-head>div:first-child{
  padding:6px 0 2px!important
}
.challenge-energy .challenge-kicker{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  padding:7px 11px!important;border-radius:999px!important;background:#edf7df!important;color:#4e7f1d!important;
  font-weight:950!important;letter-spacing:.09em!important
}
.challenge-energy .challenge-title{
  font-size:30px!important;line-height:1.05!important;letter-spacing:-.04em!important;margin:12px 0 8px!important;color:#102b3d!important
}
.challenge-energy .challenge-desc{
  font-size:15px!important;line-height:1.6!important;max-width:760px!important;color:#60717b!important
}
.challenge-energy .challenge-reward{
  border-radius:20px!important;box-shadow:0 18px 34px rgba(7,32,49,.18)!important;transform:translateY(-2px)
}
.challenge-energy .challenge-schedule-banner{
  margin-top:18px!important;border-radius:16px!important;padding:12px 14px!important;
  background:linear-gradient(90deg,#0d2b3d,#163f54)!important;color:#fff!important;border:0!important
}
.challenge-energy .challenge-schedule-banner span{color:#dce8ed!important}
.challenge-energy .challenge-meta{
  gap:8px!important;margin-top:14px!important
}
.challenge-energy .challenge-meta .pill,
.challenge-energy .challenge-meta .challenge-status{
  padding:8px 11px!important;border-radius:999px!important;font-weight:800!important
}
.challenge-energy .challenge-progress-card,
.challenge-energy .challenge-standings-card,
.challenge-energy .challenge-dashboard-summary,
.challenge-energy .challenge-team-progress{
  border-radius:18px!important;border:1px solid #dfe8e3!important;
  box-shadow:0 9px 24px rgba(14,42,59,.06)!important;background:#fff!important
}
.challenge-energy .challenge-big-score{
  font-size:42px!important;letter-spacing:-.05em!important;color:#0d2b3d!important
}
.challenge-energy .challenge-progress-bar{
  height:12px!important;border-radius:999px!important;background:#edf1ee!important;overflow:hidden!important
}
.challenge-energy .challenge-progress-bar span{
  border-radius:999px!important;background:linear-gradient(90deg,#8ec63f,#4ca84b)!important;
  box-shadow:0 0 16px rgba(142,198,63,.28)!important
}
.challenge-motivation-strip{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0;
}
.challenge-motivation-strip .mot-card{
  border-radius:16px;padding:14px 15px;background:#fff;border:1px solid #dde7e2;box-shadow:0 8px 20px rgba(14,42,59,.05)
}
.challenge-motivation-strip .mot-card strong{display:block;font-size:22px;line-height:1.05;color:#102b3d;letter-spacing:-.03em}
.challenge-motivation-strip .mot-card span{display:block;margin-top:5px;font-size:12px;color:#6e7b83;font-weight:800}
.challenge-motivation-strip .mot-card.primary{background:linear-gradient(135deg,#0d2b3d,#174860);border-color:#0d2b3d}
.challenge-motivation-strip .mot-card.primary strong,.challenge-motivation-strip .mot-card.primary span{color:#fff}
.challenge-rally-line{
  margin:14px 0 2px;padding:13px 15px;border-radius:14px;background:linear-gradient(90deg,#eef8e4,#fff9df);
  border:1px solid #dbeabf;font-weight:900;color:#31551c
}
@media(max-width:900px){
  .challenge-motivation-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .challenge-energy .challenge-title{font-size:25px!important}
}
@media(max-width:620px){
  .weekly-challenge-card.challenge-energy{padding:16px!important;border-radius:18px!important}
  .challenge-motivation-strip{grid-template-columns:1fr 1fr;gap:8px}
  .challenge-motivation-strip .mot-card{padding:12px}
  .challenge-motivation-strip .mot-card strong{font-size:19px}
  .dashboard-daily-bonus-money{font-size:22px!important}
}


.dashboard-daily-bonus-card{padding:20px!important}
.daily-scoreboard-strip{display:grid;grid-template-columns:1.25fr .9fr .9fr;gap:10px;margin:14px 0}
.daily-scoreboard-strip>div{border:1px solid #dfe7e4;background:#f8fbf9;border-radius:14px;padding:12px 14px}
.daily-scoreboard-strip>div:first-child{background:linear-gradient(135deg,#0d2b3d,#174860);border-color:#0d2b3d;color:#fff}
.daily-scoreboard-strip strong{display:block;font-size:22px;line-height:1.05;letter-spacing:-.03em}
.daily-scoreboard-strip span{display:block;margin-top:5px;font-size:12px;font-weight:800;opacity:.78}
.daily-scoreboard-strip .daily-goal strong{color:#fff}
.daily-action-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0 0;padding:13px 15px;border-radius:14px;background:linear-gradient(90deg,#eef8e4,#fff9df);border:1px solid #dbeabf}
.daily-action-banner strong{font-size:14px;color:#31551c}
.daily-action-banner span{font-size:12px;color:#60717b;font-weight:800}
.challenge-energy .challenge-head{margin-bottom:4px!important}
.challenge-energy .challenge-motivation-strip{margin:12px 0 10px!important}
.challenge-team-meter{margin:10px 0 16px;padding:14px 15px;border-radius:16px;background:#fff;border:1px solid #dde7e2;box-shadow:0 8px 20px rgba(14,42,59,.05)}
.challenge-team-meter-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:9px}
.challenge-team-meter-head strong{font-size:14px;color:#173345}
.challenge-team-meter-head span{font-size:12px;color:#6d7b84;font-weight:800}
.challenge-team-meter-track{height:12px;border-radius:999px;background:#edf1ee;overflow:hidden}
.challenge-team-meter-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#8ec63f,#f1c84b)}
.challenge-topline{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.challenge-topline span{padding:7px 10px;border-radius:999px;background:#f4f7f5;border:1px solid #e2e8e4;font-size:12px;font-weight:900;color:#4a5e69}
@media(max-width:760px){.daily-scoreboard-strip{grid-template-columns:1fr 1fr}.daily-scoreboard-strip>div:first-child{grid-column:1/-1}.challenge-team-meter-head{align-items:flex-start;flex-direction:column}}

/* v2.21.52: compact navigation and bounded chat tracks */
#portal>.side{box-sizing:border-box;min-height:0;gap:16px}
#portalNav{min-height:0;overflow-y:auto;overscroll-behavior:contain;gap:4px}
#portalNav>.nav-group{order:20;width:100%;min-width:0}
#portalNav>.nav-group:not(:has(button:not(.hidden),a:not(.hidden))){display:none}
#portalNav .nav-group summary{cursor:pointer;padding:10px 12px;color:#c8d5dc;font-size:13px;font-weight:750;list-style:none;border-radius:9px}
#portalNav .nav-group summary::after{content:'＋';float:right}
#portalNav .nav-group[open] summary::after{content:'−'}
#portalNav .nav-group:has(button.active)>summary{color:white;background:rgba(255,255,255,.1)}
#portalNav .nav-group-links{display:grid;gap:3px;padding-left:9px}
#portalNav .nav-group-links button{width:100%;font-size:13px;padding:9px 12px}
#portalNav>.nav-group~.nav-group{border-top:1px solid rgba(255,255,255,.08)}
#chat .chat-attachment-link{display:block;height:clamp(160px,30vw,320px)}
#chat .chat-attachment-link img{width:100%;height:100%;max-height:none;object-fit:contain}
#chat .chat-image-loading{height:clamp(160px,30vw,320px)}
@media(min-width:921px){
 body.chat-focus-mode #portal{position:fixed!important;inset:0!important;height:100dvh!important;grid-template-rows:minmax(0,1fr)!important}
 body.chat-focus-mode #portal>.main{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;padding:18px 24px!important}
 body.chat-focus-mode #chat.section.active{display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:0!important;min-height:0!important;margin:0!important}
 body.chat-focus-mode #chat>.top{flex:none!important;margin-bottom:10px!important}
 body.chat-focus-mode #chat .chat-shell{display:grid!important;grid-template-rows:minmax(0,1fr)!important;flex:1 1 0!important;height:0!important;min-height:0!important}
 body.chat-focus-mode #chat .chat-conversation{height:100%!important;display:flex!important;flex-direction:column!important;min-height:0!important}
 body.chat-focus-mode #chat .chat-messages{flex:1 1 0!important;height:0!important;min-height:0!important;scroll-behavior:auto!important}
 body.chat-focus-mode #chat .chat-pinned{flex:none!important;max-height:96px!important;overflow-y:auto!important}
 body.chat-focus-mode #chat .chat-head,body.chat-focus-mode #chat .chat-composer{flex:none!important}
}
@media(max-width:920px){#portalNav .nav-group summary{color:inherit}#portalNav .nav-group-links{padding-left:6px}#portalNav>.nav-group{flex:0 0 auto}}

/* v2.21.53: portrait solar photo fills the complete desktop sidebar. */
@media(min-width:921px){
 #portal>.side{background:linear-gradient(180deg,rgba(8,28,45,.68) 0%,rgba(8,28,45,.55) 48%,rgba(8,28,45,.36) 100%),url('/lunova-sidebar-solar-home-portrait.webp') center center/cover no-repeat!important}
 #portal>.side::after{background:none!important}
 #portalNav .nav-group summary{color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.65)}
 #portal>.side .who{color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.75)}
}

/* Role-hidden navigation and dashboard controls must stay hidden at all widths. */
#portal #portalNav .hidden,#portal #dashboard .hidden{display:none!important}
#portal #resources .resource-toolbar{grid-template-columns:minmax(0,1fr)!important;align-items:start}
#portal #resources .resource-search{width:100%;min-width:0}
#portal #resources .resource-filter{min-width:0;flex-wrap:wrap}
