:root{--blue:#e46211;--navy:#372b21;--ink:#3a2d23;--line:#eee7e0;--canvas:#faf8f6}
body{background:var(--canvas);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.auth{background:radial-gradient(ellipse at top right,#e4621166,transparent 60%),linear-gradient(140deg,#2a211a,#4f3e31)}
.auth .card{border-radius:20px;box-shadow:0 24px 70px #1f181340;border-color:#eee7e0}
.logo{color:#4f3e31;letter-spacing:-.7px}.sub,.muted{color:#8c7662}
.top{background:var(--navy);border:0;color:#fff;box-shadow:0 3px 18px #382c2214;backdrop-filter:none}
.brandname{font-size:17px;line-height:1.35;letter-spacing:-.3px}.role{color:#e46211;line-height:1.5;margin-top:5px}
.mark{background:#e46211;color:white;border:1px solid #e4621155;border-radius:11px;flex-shrink:0;box-shadow:0 4px 15px #1a141040}
.nav button{background:transparent;border:1px solid transparent;color:#e46211;font-weight:600;transition:background .15s ease,color .15s ease}
.nav button:hover{background:#594636;color:white}.nav button.active{background:#e46211;border-color:#e46211;color:white;box-shadow:0 5px 14px #1e181325}
.nav #out{color:#e5dfda;border-color:#726050;margin-top:12px}
.head{margin-bottom:24px}.head h1{font-size:30px;color:#3d3025;letter-spacing:-.8px}.head p{color:#917a65;line-height:1.6}
.card{border-color:var(--line);border-radius:14px;box-shadow:0 3px 14px #4c3c2f10}
.metric{background:linear-gradient(125deg,#fff 65%,#faf8f5);border-top:3px solid #e46211;padding:20px}
.metric .n{color:#513f31;letter-spacing:-.7px;font-size:30px}.metric .l{color:#917964;font-weight:600}
.btn{border-radius:8px;background:#4f3e30;box-shadow:0 2px 4px #33292010;font-size:14px}.btn.primary{background:var(--blue)}.btn.primary:hover{background:#cd580f}.btn.secondary{color:#9a420c;border-color:#e2dcd6;background:#fff}.btn.secondary:hover{background:#f9f6f3}.btn.danger{background:#b42318;color:#fff}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e46211;outline-offset:2px}
.btn:disabled{cursor:not-allowed}.field input,.field select,.field textarea,.search,.tools select,.countpick{border-color:#e1dad3;border-radius:8px;color:#49392c}
.field label{color:#594636}.tools{gap:10px;margin-bottom:14px}.tools select,.tools input{background:#fff}
.table{border-color:var(--line);border-radius:12px;box-shadow:0 4px 18px #4c3c2f10;background:#fff}
th{background:#f9f6f3;color:#705d4d;font-size:11px;letter-spacing:.045em;padding:14px 12px}td{border-color:#f4efea;color:#534133;padding:13px 12px}tbody tr:hover{background:#fcfbfa}
.badge{border-radius:6px}.typepill{background:#f7f4f1;color:#bd510e}.notice{background:#f8f5f1;color:#615143;border:1px solid #f0e9e2;border-radius:9px}.notice strong{color:#554334}
.pager{padding:4px 0}.pager .muted{color:#967e69}.topscroll{border-color:#e2dcd6;box-shadow:0 3px 8px #55433414}.topscroll::-webkit-scrollbar-thumb{background:#ac9988}
.modal{background:#28201999;backdrop-filter:blur(3px)}.modalbox{border:1px solid #eee7e0;border-radius:16px;box-shadow:0 25px 80px #271f1840}.modalbox h2,.modalbox h3{color:#513f31}.callnotes{border-color:#e4ded8;background:#fefdfc}
@media(min-width:1001px){.top{position:fixed;top:0;left:0;bottom:0;width:236px;height:100dvh;overflow-y:auto;z-index:10;background:linear-gradient(175deg,#3c2f25,#2a2119)}.topin{padding:28px 18px;height:100%;max-width:none;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:32px}.brand{align-items:flex-start;gap:10px}.nav{flex-direction:column;gap:8px;flex-wrap:nowrap}.nav button{width:100%;padding:13px 14px;text-align:left;white-space:normal}.wrap{margin-left:236px;max-width:none;padding:32px;min-height:100vh}.topscroll{top:12px}}
@media(max-width:1000px){.topin{max-width:none;padding:14px 18px;flex-direction:column;align-items:stretch;gap:14px}.nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.nav button{white-space:nowrap;flex-shrink:0}.nav #out{margin-top:0}.wrap{padding:20px 16px}.head h1{font-size:26px}.brandname{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Collapsed desktop rail keeps every destination available. */
.nav-short,.sidebar-toggle{display:none}
@media(min-width:1001px){
 .sidebar-toggle{display:block;align-self:flex-end;flex-shrink:0;width:36px;height:36px;border:1px solid #726050;border-radius:8px;background:#594636;color:white;font-size:28px;line-height:1;cursor:pointer;margin-bottom:-18px}
 .sidebar-collapsed{width:76px}
 .sidebar-collapsed .topin{padding:20px 10px;gap:28px}
 .sidebar-collapsed .sidebar-toggle{align-self:center}
 .sidebar-collapsed .brand{justify-content:center}
 .sidebar-collapsed .brand>div:not(.mark){display:none}
 .sidebar-collapsed .nav button{padding:13px 4px;text-align:center}
 .sidebar-collapsed .nav-short{display:inline;font-size:12px;letter-spacing:.04em}
 .sidebar-collapsed .nav-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .sidebar-collapsed+.wrap{margin-left:76px}
}

.mark{overflow:hidden}.mark img{display:block;width:100%;height:100%;object-fit:contain}.auth-logo{display:block;border-radius:12px;margin-bottom:14px}

/* Compact status badge and top-layer edit popover. */
.leadstatusbar{gap:9px;min-width:0;white-space:nowrap}.leadstatusbadge{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;font-size:12px;font-weight:600;line-height:1.25;border:1px solid #f0e9e2;background:#f8f6f3;color:#8d7662}.lead-status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;flex-shrink:0}.leadstatusbadge.call_back{background:#fff6e5;color:#985b08;border-color:#f7dba8}.leadstatusbadge.appointment_follow_up{background:#f9f6f3;color:#e46211;border-color:#ede6dd}.leadstatusbadge.not_interested,.leadstatusbadge.dead_number{background:#fff0ef;color:#b42318;border-color:#f5c8c4}.leadrow.call_back>td{background:#fff6e5!important}.leadrow.appointment_follow_up>td{background:#f9f6f3!important}.leadrow.not_interested>td,.leadrow.dead_number>td{background:#fff0ef!important}.leadrow.call_back>td:first-child{box-shadow:inset 4px 0 0 #d39119}.leadrow.appointment_follow_up>td:first-child{box-shadow:inset 4px 0 0 #e46211}.leadrow.not_interested>td:first-child{box-shadow:inset 4px 0 0 #d92d20}.leadrow.dead_number>td:first-child{box-shadow:inset 4px 0 0 #b42318}.lead-status-edit{width:34px;height:34px;display:inline-grid;place-items:center;flex-shrink:0;background:#fff;border:1px solid #e1dad3;border-radius:8px;color:#594636;cursor:pointer}.lead-status-edit:hover{background:#f9f6f3;color:#e46211}.lead-status-edit svg{width:17px;height:17px}.lead-status-menu{position:fixed;inset:auto;margin:0;width:250px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;padding:8px;border:1px solid #eee7e0;border-radius:12px;box-shadow:0 12px 36px #372b212b;background:white;color:#3a2d23}.lead-status-menu::backdrop{background:transparent}.lead-status-menu-head{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 9px;border-bottom:1px solid #f6f3ef;margin-bottom:5px;font-size:13px;color:#8c7662}.lead-status-dismiss{border:0;background:transparent;font-size:23px;line-height:1;padding:3px 6px;color:#8c7662;cursor:pointer}.lead-status-choice{width:100%;display:flex;align-items:center;gap:10px;padding:11px 9px;border:0;background:white;color:#756252;font-size:13px;font-family:inherit;text-align:left;border-radius:7px;cursor:pointer}.lead-status-choice.call_back{color:#985b08}.lead-status-choice.appointment_follow_up{color:#e46211}.lead-status-choice.not_interested,.lead-status-choice.dead_number{color:#b42318}.lead-status-choice:hover,.lead-status-choice[aria-pressed=true]{background:#f9f6f3}.lead-status-choice[aria-pressed=true]{font-weight:700}.lead-status-tick{margin-left:auto}.lead-status-choice:disabled{opacity:.6;cursor:wait}

/* Agent lead-type folders */
.my-lead-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:12px;margin:22px 0 14px}.my-lead-folder{display:flex;align-items:center;gap:10px;min-height:72px;padding:15px;background:#fff;border:1px solid #ede6dd;border-radius:12px;color:#544234;font:inherit;text-align:left;cursor:pointer;box-shadow:0 3px 10px #392d2305}.my-lead-folder svg{width:25px;height:25px;flex-shrink:0;color:#967e69}.my-lead-folder span{flex:1;overflow-wrap:anywhere;font-weight:600}.my-lead-folder strong{font-size:13px;background:#f7f4f1;padding:4px 8px;border-radius:20px}.my-lead-folder:hover{border-color:#e46211;background:#fcfbf9}.my-lead-folder[aria-pressed=true]{border-color:#e46211;background:#f9f6f3;color:#a9490d;box-shadow:0 0 0 1px #e46211}.my-lead-folder[aria-pressed=true] svg{color:#e46211}.my-lead-folder:focus-visible{outline:3px solid #e46211;outline-offset:3px}.my-lead-folder:disabled{opacity:.65;cursor:wait}@media(max-width:480px){.my-lead-folders{grid-template-columns:1fr 1fr;gap:8px}.my-lead-folder{padding:10px;gap:7px;flex-wrap:wrap}.my-lead-folder span{font-size:13px}}

.nav button[data-tab="lead-requests"]{position:relative;padding-right:38px}.request-count-badge{position:absolute;top:4px;right:5px;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px;font-weight:800;line-height:1;box-shadow:0 0 0 2px #382c22;pointer-events:none}@media(min-width:1001px){.sidebar-collapsed .nav button[data-tab="lead-requests"]{padding:13px 4px}.sidebar-collapsed .request-count-badge{top:1px;right:0;min-width:17px;height:17px;font-size:10px}}

.sales-script-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;margin-top:20px}.script-list{display:flex;flex-direction:column;gap:10px}.script-card{display:flex;flex-direction:column;gap:7px;text-align:left;padding:17px;border:1px solid #eee7df;border-radius:12px;background:#fff;color:#4c3c2e;cursor:pointer;overflow-wrap:anywhere}.script-card span{font-size:12px;color:#98806c}.script-card.selected{border-color:#e46211;background:#f9f6f3;box-shadow:0 0 0 1px #e46211}.script-reader{padding:28px;background:#fff;border:1px solid #eee7df;border-radius:14px;min-height:340px}.script-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:1.8;color:#443529}.script-reader h2{margin:0}.script-card:focus-visible{outline:3px solid #e46211;outline-offset:2px}@media(max-width:700px){.sales-script-layout{grid-template-columns:1fr}.script-list{max-height:240px;overflow-y:auto}.script-reader{padding:20px}}

.lead-table-zoom{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:10px 0 12px;color:#594636}.lead-zoom-label{font-size:13px;font-weight:600;margin-right:4px}.lead-table-zoom button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:6px 10px;border:1px solid #e1dad3;border-radius:8px;background:#fff;color:#544233;font:inherit;font-weight:700;cursor:pointer}.lead-table-zoom button:hover{background:#f9f6f3}.lead-table-zoom button:disabled{opacity:.4;cursor:default}.lead-table-zoom button:focus-visible{outline:3px solid #e46211;outline-offset:2px}.lead-table-zoom output{min-width:48px;text-align:center;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.lead-table-zoom .lead-zoom-reset{font-size:12px;font-weight:600}@media(max-width:600px){.lead-table-zoom{justify-content:flex-start}}
.division-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:20px}.division-card{padding:24px}.division-card h2{font-size:21px;margin:0;overflow-wrap:anywhere}.division-card .head{align-items:flex-start;gap:12px}.division-card .row{flex-wrap:wrap;margin-top:20px}.division-admins{min-height:44px;line-height:1.8}.division-card .badge{flex-shrink:0}

/* Match page and sidebar scrollbars to the leaderboard. */
html,body,.wrap,.top{scrollbar-color:#e46211 #251d16;scrollbar-width:auto}
html::-webkit-scrollbar,body::-webkit-scrollbar,.wrap::-webkit-scrollbar,.top::-webkit-scrollbar{width:12px;height:12px;background:#251d16}
html::-webkit-scrollbar-thumb,body::-webkit-scrollbar-thumb,.wrap::-webkit-scrollbar-thumb,.top::-webkit-scrollbar-thumb{background:#e46211;border:2px solid #251d16;border-radius:8px}
html::-webkit-scrollbar-track,body::-webkit-scrollbar-track,.wrap::-webkit-scrollbar-track,.top::-webkit-scrollbar-track{background:#251d16}
html::-webkit-scrollbar-thumb:hover,body::-webkit-scrollbar-thumb:hover,.wrap::-webkit-scrollbar-thumb:hover,.top::-webkit-scrollbar-thumb:hover{background:#e46211}
html::-webkit-scrollbar-corner,body::-webkit-scrollbar-corner,.wrap::-webkit-scrollbar-corner,.top::-webkit-scrollbar-corner{background:#251d16}
@supports selector(::-webkit-scrollbar){html,body,.wrap,.top{scrollbar-color:auto}}
