@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--red:#c52946;--ink:#202b3b;--muted:#737b87;--line:#e6e8ec;--bg:#f6f7f9;--nav:#2d2025}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}a{color:var(--red)}h1,h2,h3{font-family:Manrope,Arial,sans-serif;letter-spacing:-.035em}h1{font-size:30px;margin:0 0 9px}h2{font-size:18px;margin:0}h3{font-size:16px}p{line-height:1.6}.layout{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.side{background:var(--nav);color:#ccd2dc;padding:32px 20px;position:fixed;width:245px;height:100vh;display:flex;flex-direction:column}.wordmark{font:800 21px Manrope;color:white;letter-spacing:-.8px}.wordmark b{color:#e98c91}.tagline{font-size:10px;letter-spacing:2px;margin:9px 0 39px;color:#b4bfce}.nav-label{font-size:10px;letter-spacing:1.7px;margin:0 13px 13px;color:#8998aa}.nav{display:flex;flex-direction:column;gap:7px}.nav button{background:transparent;border:0;color:inherit;text-align:left;padding:13px 16px;border-radius:7px;display:flex;gap:13px;align-items:center}.nav button.active{background:#ffffff12;color:white;border-left:3px solid #dd6674;padding-left:13px}.nav button:hover{background:#ffffff0b}.nav svg{width:18px;height:18px}.support{margin-top:auto;border-top:1px solid #ffffff1a;padding-top:22px;font-size:12px;line-height:1.7}.support strong{color:white}.main{grid-column:2}.topbar{height:79px;background:white;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between}.crumb{color:var(--muted);font-size:13px}.profile{display:flex;align-items:center;gap:12px}.avatar{background:#f3e7e8;color:var(--red);border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-size:12px;font-weight:700}.profile small{color:var(--muted);display:block;margin-top:3px}.content{padding:30px 38px 48px;max-width:1600px;margin:auto}.demo{background:#fff8ec;color:#7d5b29;border:1px solid #efdfc3;border-radius:8px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:27px;font-size:12px}.demo strong{margin-right:8px}.demo select{max-width:155px;border:1px solid #decaa9;background:white;border-radius:5px;padding:6px;color:var(--ink)}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}.sub{color:var(--muted);margin:0;font-size:13px}.btn{border:1px solid var(--line);border-radius:6px;padding:10px 15px;background:white;color:var(--ink);font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center;text-decoration:none}.btn.primary{background:var(--red);border-color:var(--red);color:white}.btn.small{font-size:12px;padding:8px 10px}.btn:hover{filter:brightness(.96)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.stat,.panel{background:white;border:1px solid var(--line);border-radius:9px}.stat{padding:22px}.stat-label{color:var(--muted);font-size:12px;display:flex;justify-content:space-between}.stat-value{font-family:Manrope;font-size:29px;font-weight:800;margin:13px 0 9px;letter-spacing:-1px}.stat-foot{font-size:11px;color:var(--muted)}.stat-foot span{color:var(--red)}.two{display:grid;grid-template-columns:1.8fr 1fr;gap:23px;margin-bottom:25px}.panel{padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.periods{display:flex;gap:3px;background:var(--bg);padding:3px;border-radius:6px}.periods button{font-size:11px;border:0;background:transparent;color:var(--muted);padding:6px 10px;border-radius:4px}.periods button.active{background:white;box-shadow:0 1px 4px #0001;color:var(--ink)}.chart{height:185px;width:100%;margin-top:22px}.chart text{fill:#87909c;font:10px Arial}.legend{color:var(--muted);font-size:11px;display:flex;justify-content:space-between;margin-top:6px}.dot{width:7px;height:7px;border-radius:50%;background:var(--red);display:inline-block;margin-right:5px}.activity{display:flex;gap:12px;margin:23px 0}.activity-icon{width:30px;height:30px;background:#f8eef0;color:var(--red);border-radius:6px;display:grid;place-items:center;flex-shrink:0}.activity p{font-size:12px;margin:0}.activity small{font-size:10px;color:var(--muted)}.section-title{display:flex;justify-content:space-between;align-items:center;margin:27px 0 18px}.tools{display:flex;gap:10px;align-items:center}.search{padding:10px 13px;border:1px solid var(--line);border-radius:6px;width:230px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.property{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden}.house-art{height:158px;background:linear-gradient(145deg,#dbe2e6,#bbc9c9);position:relative;overflow:hidden}.house-art svg{height:100%;width:100%}.house-art .label{position:absolute;top:12px;left:12px;background:#fffc;font-size:10px;padding:5px 8px;border-radius:4px}.property-body{padding:19px}.property h3{margin:0 0 6px}.property .city{color:var(--muted);font-size:12px}.facts{display:flex;gap:13px;font-size:11px;color:var(--muted);margin:14px 0}.price{font-weight:700;font-size:15px}.property-metrics{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin:16px 0 13px;padding-top:13px;font-size:11px;color:var(--muted)}.property-metrics strong{display:block;color:var(--ink);font-size:15px;margin-bottom:4px}.actions{display:flex;gap:7px;flex-wrap:wrap}.actions .primary{flex:1}.badge{display:inline-block;background:#f3e8eb;color:#923044;border-radius:4px;font-size:10px;padding:4px 7px}.muted{color:var(--muted)}table{width:100%;border-collapse:collapse}th{text-align:left;font-size:11px;font-weight:500;color:var(--muted);background:#fafbfc}td,th{padding:15px 13px;border-bottom:1px solid var(--line)}td{font-size:12px}.table-wrap{overflow-x:auto}.empty{padding:45px;text-align:center;color:var(--muted);border:1px dashed #d5dae1;border-radius:8px}.package-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.package{border:1px solid var(--line);border-radius:9px;padding:24px;background:white}.package:nth-child(2){border-top:3px solid var(--red)}.package p{color:var(--muted);font-size:12px;min-height:40px}.package .amount{font-size:27px;font-weight:700;margin:22px 0 8px}.package small{color:var(--muted)}.status-list{display:grid;gap:14px;margin-top:20px}.status-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding-bottom:15px;font-size:13px}.status-row small{display:block;color:var(--muted);margin-top:5px}.notice{background:#f8f0f1;padding:16px;border-radius:7px;font-size:12px;line-height:1.7;margin:18px 0}.detail{display:grid;grid-template-columns:1fr 1fr;gap:23px}.detail .house-art{height:280px;border-radius:8px}dialog{border:0;border-radius:12px;width:min(540px,92vw);padding:30px;color:var(--ink);box-shadow:0 20px 100px #0003}dialog::backdrop{background:#101b30a6}dialog h2{margin-bottom:12px}dialog label{display:block;font-size:12px;font-weight:600;margin:18px 0 7px}dialog input:not([type=checkbox]),dialog select{width:100%;border:1px solid #d6dbe2;border-radius:5px;padding:11px}dialog .footer{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.check{display:flex;align-items:center;gap:8px;margin-top:15px}.check label{margin:0;font-weight:400}#toast{display:none;position:fixed;right:24px;bottom:24px;background:var(--nav);color:white;padding:17px 24px;border-radius:7px;box-shadow:0 5px 30px #0002;max-width:85vw;z-index:10}.mobile-title{display:none}.lang{padding:7px;border:1px solid var(--line);border-radius:5px;background:white}.footer-note{margin-top:30px;color:var(--muted);font-size:11px}.linkbtn{background:none;border:0;padding:0;color:var(--red);font-size:12px;text-align:left}.chart-value{font-size:25px;font-weight:700;margin-top:18px}.chart-value small{font-size:11px;color:var(--muted);font-weight:400}.login{max-width:490px;margin:50px auto}.login .wordmark{color:var(--ink);margin-bottom:30px}.login label{display:block;margin:20px 0 7px}.login input{width:100%;padding:12px;border:1px solid var(--line);border-radius:6px}.login .btn{margin-top:20px;width:100%}@media(min-width:1500px){.cards{grid-template-columns:repeat(4,1fr)}}@media(max-width:1100px){.layout{grid-template-columns:205px 1fr}.side{width:205px;padding:28px 14px}.content{padding:25px}.topbar{padding:0 25px}.cards{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:16px}.stat-value{font-size:25px}.package-grid{grid-template-columns:1fr}.package p{min-height:0}}@media(max-width:700px){.layout{display:block}.side{position:static;width:100%;height:auto;padding:18px}.tagline,.nav-label,.support{display:none}.wordmark{font-size:19px;margin-bottom:15px}.nav{flex-direction:row;overflow-x:auto;gap:3px}.nav button{padding:10px;white-space:nowrap;font-size:11px}.nav button.active{border-left:0;border-bottom:2px solid #dd6674;padding-left:10px}.nav svg{display:none}.topbar{height:60px;padding:0 18px}.profile small,.crumb{font-size:11px}.content{padding:20px 16px}.demo{align-items:flex-start;font-size:11px}.demo select{max-width:110px}.heading{align-items:flex-start}h1{font-size:24px}.heading .btn{font-size:11px}.stats{grid-template-columns:1fr 1fr}.cards{grid-template-columns:1fr}.panel{padding:18px}.section-title{align-items:flex-start;gap:15px;flex-direction:column}.search{width:100%}.tools{width:100%}.detail{grid-template-columns:1fr}.profile strong{font-size:11px}.periods button{padding:6px}.panel-head h2{font-size:15px}}
.stat-label svg{width:17px;height:17px;flex-shrink:0;color:#98a0ad}
.brand{font:800 21px Manrope,Arial,sans-serif;color:var(--ink);letter-spacing:-.8px;white-space:nowrap}.brand span{color:var(--red)}.side .brand,.auth-story .brand{color:white}.side .brand span,.auth-story .brand span{color:#e7949e}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:1.8px;color:var(--muted);margin:0 0 12px;font-weight:700}.auth-page{display:grid;grid-template-columns:46% 54%;min-height:100vh}.auth-story{background:#172333;color:white;display:flex;flex-direction:column;justify-content:space-between;padding:45px 55px;position:relative;overflow:hidden}.auth-story:after{content:'';position:absolute;border:1px solid #ffffff0c;width:650px;height:650px;border-radius:50%;right:-300px;bottom:-300px;pointer-events:none}.auth-story h1{font-size:47px;max-width:430px;line-height:1.15;margin-top:20px}.auth-story p{max-width:390px;color:#b9c3d0;font-size:16px;margin:25px 0}.auth-story .eyebrow{color:#e09ba5}.auth-story small{color:#aab6c5;font-size:11px}.auth-form{display:grid;place-items:center;background:#fff;padding:50px 30px}.auth-card{width:100%;max-width:380px}.auth-card h1{font-size:30px}.auth-card>p{font-size:13px;margin:14px 0 23px}.auth-card label,.narrow label,.settings-grid label{display:block;font-size:12px;font-weight:600;margin:15px 0 7px}.auth-card input{width:100%;padding:12px 13px;border:1px solid #dce0e6;border-radius:6px}.auth-card .btn{width:100%;margin-top:18px;min-height:44px}.auth-divider{display:flex;align-items:center;gap:12px;color:#9aa1aa;font-size:11px;margin:23px 0 16px}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:var(--line);flex:1}.login-help{font-size:11px;color:var(--muted);margin-top:22px}.login-help summary{cursor:pointer;color:var(--ink)}.login-help p{line-height:1.7}.auth-support{text-align:center;border-top:1px solid var(--line);padding-top:22px;font-size:11px!important;color:var(--muted);margin-top:25px!important}.auth-support a{text-decoration:none}.form-message{font-size:12px}.is-error{color:var(--red)!important}.boot-screen{display:grid;place-content:center;gap:20px;text-align:center;min-height:90vh}.boot-screen p{font-size:13px;color:var(--muted)}.side .tagline{margin-top:10px}.side a{color:inherit;text-decoration:none;overflow-wrap:anywhere}.side-logout{background:none;border:0;color:#c3ccd8;font:inherit;padding:20px 0 0;cursor:pointer}.shortcut-grid{display:grid;gap:12px;margin-top:25px}.shortcut-grid .btn{justify-content:space-between;min-height:46px}.empty{background:#fff;padding:48px 24px}.empty h2{font-size:16px;color:var(--ink);margin-bottom:20px}.empty-mark{font-size:28px;color:#b7bec8;margin-bottom:12px}.list-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:22px}.property-photo{width:100%;height:180px;object-fit:cover;display:block}.no-photo{display:grid;place-items:center;background:#edf0f3;color:#a0a9b5;font-size:50px}.actions .btn{flex:1}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-grid .search,.narrow .search{width:100%;display:block;margin-bottom:18px}.settings-grid .btn{margin-top:10px}.narrow{max-width:620px}dialog textarea{width:100%;min-height:100px;border:1px solid #d6dbe2;padding:12px;border-radius:5px;font:inherit}dialog .check{font-size:12px;line-height:1.6;font-weight:400}dialog .check input{width:auto}.panel form input,.panel form select{max-width:100%}.profile>span{font-size:12px;color:var(--muted)}button:disabled{cursor:default;opacity:.55}.table-wrap small{max-width:500px;line-height:1.6}.table-wrap .linkbtn{margin-left:8px}.notice{font-size:12px}.auth-form .muted{line-height:1.7}@media(max-width:900px){.auth-page{grid-template-columns:38% 62%}.auth-story{padding:35px 28px}.auth-story h1{font-size:34px}.auth-story p{font-size:14px}.auth-story small{max-width:200px}.auth-story .brand{font-size:17px}.settings-grid{grid-template-columns:1fr}}@media(max-width:700px){.auth-page{display:block;background:white}.auth-story{min-height:auto;padding:25px 24px;gap:15px}.auth-story>div,.auth-story small{display:none}.auth-story:after{display:none}.auth-form{padding:35px 24px}.auth-card{max-width:430px}.auth-card h1{font-size:27px}.side .brand{font-size:20px;display:block;margin-bottom:15px}.profile>span{display:none}.topbar .crumb{max-width:65%;font-size:11px}.main .heading{align-items:center}.content .heading .btn{font-size:11px;padding:8px}.list-toolbar{align-items:stretch;flex-direction:column}.stats{grid-template-columns:repeat(2,1fr)}.stat-value{font-size:25px}.nav{padding-bottom:2px}.nav button{font-size:12px}.empty{padding:35px 16px}.panel h2{line-height:1.4}.auth-story .brand{font-size:20px}.footer-note{font-size:10px}.settings-grid label{margin-top:15px}}

.visitor-bars{height:170px;display:flex;gap:3px;align-items:flex-end;border-bottom:1px solid #ddd;margin-top:30px}.visitor-bars>div{flex:1;background:var(--red);min-width:2px;position:relative;border-radius:3px 3px 0 0}.visitor-bars span{display:none}.visitor-bars>div:hover span{display:block;position:absolute;bottom:100%;background:#17283b;color:#fff;padding:3px}.chart-dates{display:flex;justify-content:space-between;font-size:12px;color:#718096;margin-top:8px}.property-url{overflow-wrap:anywhere;font-size:13px}.range{display:flex;gap:4px;flex-wrap:wrap}

.mobile-logout{display:none}@media(max-width:700px){.mobile-logout{display:inline-flex}.panel-head{flex-wrap:wrap}.range .btn{padding:6px;font-size:11px}}

.brand{display:inline-flex;align-items:center}.brand img{display:block;width:210px;max-width:100%;height:auto}.auth-story .brand img{width:236px}.side .brand{background:#fff;padding:10px 8px;border-radius:6px;width:100%}.auth-story{background:#fbeef1;color:#2d2025}.auth-story .brand{background:#fff;padding:12px 14px;border-radius:8px;align-self:flex-start}.auth-story small,.auth-story p{color:#64545a}.btn.primary:hover{background:#aa203c}.btn.primary{background:var(--red);border-color:var(--red)}.nav button.active{color:#fff;background:var(--red)}.auth-form .linkbtn{display:block;margin:16px 0}.nav svg{flex-shrink:0}@media(max-width:700px){.auth-story .brand img{width:210px}.side .brand{width:225px}.brand img{width:205px}}

/* Keep sign-out visible on every screen, including long admin menus. */
.topbar{position:sticky;top:0;z-index:5}.logout-button{display:inline-flex;white-space:nowrap;min-height:44px;border-color:var(--red);color:var(--red);padding:10px 16px!important}.side{overflow-y:auto}.support{flex-shrink:0}

.insight-stats{margin-top:22px}.insight-stats .stat{padding:15px}.insight-stats .stat-value{font-size:23px}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.report-grid .panel .panel{padding:0;border:0;margin-top:15px}.property-metrics{gap:8px}.property-metrics>span{flex:1}.property-metrics strong{font-size:17px}@media(max-width:700px){.report-grid{grid-template-columns:1fr}.insight-stats{grid-template-columns:1fr 1fr}.list-toolbar .range{display:flex;gap:6px}}

/* CRM is nested inside Admin, with a single primary navigation entry. */
.crm-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid var(--line,#e5e7eb)}
.crm-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(240px,1fr);gap:16px;overflow-x:auto;padding-bottom:18px;align-items:start}
.crm-column{min-height:260px;background:#edf0f4;border:1px solid #e2e6eb;border-radius:12px;padding:14px}
.crm-column-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.crm-column-head h3{font-size:14px;margin:0}.crm-column-head>span{background:white;border-radius:20px;padding:3px 9px;font-size:12px}
.crm-case{background:white;border:1px solid #e3e6eb;border-radius:10px;padding:15px;margin-bottom:12px;box-shadow:0 2px 5px #13203005}.crm-case>.linkbtn{font-weight:650;text-align:left;line-height:1.45}.crm-case p{font-size:13px;margin:9px 0}.crm-case small{display:block;margin:8px 0}.crm-case label{font-size:11px;margin:12px 0 5px}.crm-case select{padding:8px;font-size:12px;width:100%}
.crm-inline-label{display:flex;align-items:center;gap:10px;max-width:500px;margin:0}.crm-inline-label select{min-width:220px}.crm-detail-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:24px}.crm-facts{display:grid;grid-template-columns:130px 1fr;gap:12px;margin:22px 0}.crm-facts dt{color:#777f8a;font-size:13px}.crm-facts dd{margin:0;overflow-wrap:anywhere}.crm-notes article{border-top:1px solid #e5e7eb;padding:18px 0}.crm-notes p{white-space:pre-wrap;line-height:1.65}.crm-notes{margin-top:22px}.crm-overdue{color:#b92340;font-weight:600}
#crm-edit-form select,#crm-edit-form input:not([type=checkbox]),#crm-edit-form textarea,[data-crm-note-form] textarea{width:100%;margin:8px 0 17px;padding:11px 13px;border:1px solid #dce0e6;border-radius:8px;font:inherit;background:#fff}[data-crm-note-form] textarea{min-height:100px}#crm-edit-form>label{display:block}#crm-edit-form .check{display:flex;margin:16px 0}#crm-edit-form h2{margin-bottom:22px}
@media(max-width:850px){.crm-detail-grid{grid-template-columns:1fr}.crm-tabs .btn{flex:1 0 28%;padding:10px 8px;font-size:12px}.crm-board{grid-auto-columns:265px}.crm-inline-label{flex-direction:column;align-items:start}.crm-facts{grid-template-columns:100px 1fr}}
/* Owner-scoped business mail */
.mail-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;margin:24px 0}.mail-toolbar form{display:flex;gap:8px}.mail-toolbar .search{margin:0}.mail-workspace{display:grid;grid-template-columns:minmax(240px,36%) minmax(0,1fr);border:1px solid #e4e7ec;border-radius:12px;overflow:hidden}.mail-list{border-right:1px solid #e4e7ec;max-height:720px;overflow:auto}.mail-row{display:flex;flex-direction:column;text-align:left;gap:7px;width:100%;background:white;border:0;border-bottom:1px solid #e4e7ec;padding:18px;cursor:pointer;color:inherit}.mail-row:hover,.mail-row.selected{background:#fbeef1}.mail-row.unread strong:before{content:'● ';color:#c52946}.mail-row span{overflow-wrap:anywhere}.mail-reader{padding:24px;overflow:auto;max-height:720px}.mail-body{white-space:pre-wrap;font-family:inherit;overflow-wrap:anywhere;font-size:14px;line-height:1.65;margin-top:24px}@media(max-width:800px){.mail-workspace{grid-template-columns:1fr}.mail-list{max-height:330px;border-right:0;border-bottom:1px solid #e4e7ec}.mail-toolbar form{width:100%}.mail-toolbar .search{min-width:0;width:100%}}

.private-mail-frame{display:block;width:100%;height:850px;border:1px solid #e4e7ec;border-radius:10px;margin-top:20px;background:#fff}
.email-subject{border-top:1px solid var(--border,#e4e7ec);padding:16px 0}.email-subject summary{cursor:pointer;font-weight:600;overflow-wrap:anywhere}.email-subject .status-row small{display:block;color:var(--muted,#707985)}#mail-log-form textarea{width:100%;box-sizing:border-box;font:inherit;line-height:1.5;padding:14px;border:1px solid #dce0e6;border-radius:8px;margin-bottom:20px}
.task-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.task-summary>div{display:flex;flex-direction:column;gap:4px;padding:16px;background:#f8f9fb;border:1px solid #e4e7ec;border-radius:10px}.task-summary strong{font-size:28px;color:#202b3c}.task-summary span,.task-state{font-size:12px;color:#707985}.task-state{display:block;margin-top:6px;min-width:72px}.task-filters{display:flex;gap:18px;margin:18px 0;align-items:end;flex-wrap:wrap}.task-filters label{flex:1;min-width:180px}.task-filters input,.task-filters select{margin-bottom:0}.task-description{display:block;max-width:360px;color:#707985;white-space:pre-wrap;margin-top:7px;overflow-wrap:anywhere}#crm-description{width:100%;box-sizing:border-box;min-height:125px;font:inherit;padding:12px;border:1px solid #dce0e6;border-radius:8px;margin-bottom:20px}@media(max-width:600px){.task-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.task-filters label{min-width:100%}}
.mail-frame-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;flex-wrap:wrap}.private-mail-frame.mail-expanded{width:100%;height:calc(100vh - 225px);min-height:760px;border:1px solid #e4e7ec;border-radius:12px;background:white}

.crm-task-description{white-space:pre-wrap;overflow-wrap:anywhere;max-width:42rem;margin:6px 0;font-size:.9rem;}

.nav-folder{margin:4px 0}.nav-folder summary{display:flex;align-items:center;gap:12px;padding:12px 15px;border-radius:8px;cursor:pointer;list-style:none;color:inherit}.nav-folder summary:after{content:'⌄';margin-left:auto}.nav-folder summary svg{width:21px;height:21px;flex-shrink:0}.nav-folder summary:hover{background:rgba(255,255,255,.08)}.nav-folder>div{margin:0 0 8px 20px;border-left:2px solid #eadce0;padding-left:8px}.nav-folder>div button{font-size:.9rem}.section-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.stat-link{font:inherit;text-align:left;color:inherit;cursor:pointer;width:100%;border:1px solid #e2e5eb}.stat-link span,.stat-link strong{display:block}.stat-link:hover{border-color:#c52946}.crm-case[draggable=true]{cursor:grab}.crm-case.dragging{opacity:.45}.crm-column.drop-ready{background:#fbe7ed;outline:2px dashed #c52946;outline-offset:-2px}#crm-case-search{margin-bottom:18px;width:min(100%,480px)}.mail-log-summary{padding:16px;background:#f8f9fb;border-radius:10px;margin:16px 0}.mail-log-summary h3{margin:0 0 8px}.mail-log-summary p{margin:5px 0}.mail-log-extra{margin:16px 0}.mail-log-extra summary{cursor:pointer;color:#bc2442}.quick-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.quick-fields label{display:block}@media(max-width:650px){.quick-fields{grid-template-columns:1fr}.section-tabs .btn{flex:1}}

.auto-connection{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0}.auto-rules{display:grid;gap:12px;margin-top:20px}.auto-rule{display:flex;justify-content:space-between;gap:20px;padding:20px;border:1px solid #e2e5eb;border-radius:12px}.auto-rule h3{margin:8px 0}.auto-rule strong{overflow-wrap:anywhere}.auto-rule p{margin:8px 0}#auto-preview-content .mail-body{max-height:320px;overflow:auto}#auto-pipeline{max-width:480px;display:block;width:100%;margin:8px 0 16px}
dialog textarea{width:100%;min-height:130px;resize:vertical;font:inherit;padding:12px;border:1px solid #d6dbe2;border-radius:6px}dialog .footer{position:sticky;bottom:-30px;background:white;padding:14px 0 4px;border-top:1px solid #e6e8ec;z-index:2}#mail-log-form label{display:block;font-weight:600;margin:14px 0 7px}#mail-log-form input:not([type=hidden]),#mail-log-form select,#mail-log-form textarea{width:100%;padding:12px;border:1px solid #d6dbe2;border-radius:6px;font:inherit}#mail-log-form .btn.primary{margin-top:12px}@media(max-width:700px){.nav-folder{flex:0 0 auto}.nav-folder summary{padding:10px;font-size:11px;white-space:nowrap}.nav-folder>div{margin-left:0;padding-left:4px}.nav button,.nav-folder summary{min-height:44px}.auto-rule{flex-direction:column;gap:12px}}

.form-extra{margin:16px 0;border:1px solid #e6e8ec;border-radius:8px;padding:12px}.form-extra summary{cursor:pointer;font-weight:600;color:#bc2442}

/* Shared CRM customer and case workspace */
.crm-work-heading{align-items:flex-start;gap:24px}.crm-work-heading .eyebrow{margin:24px 0 8px}.crm-work-heading h2{font-size:28px;line-height:1.3;margin:0}.crm-work-heading .muted{margin:9px 0}.crm-work-heading>.actions{justify-content:flex-end;max-width:620px;flex-wrap:wrap}.crm-customer-workspace .btn.small,.crm-work-heading .btn{min-height:42px;font-size:13px;padding:10px 15px;white-space:nowrap}.crm-work-nav{display:flex;flex-wrap:wrap;gap:9px;padding:16px 0 22px;border-bottom:1px solid var(--line);margin:8px 0 24px}.crm-work-nav .btn{font-size:13px;min-height:43px}.crm-case-selector{margin-bottom:22px}.crm-case-selector h3{margin:0 0 6px}.crm-case-selector p{font-size:13px;margin:0 0 14px}.crm-case-selector .section-tabs{margin-bottom:0}.crm-customer-workspace .crm-detail-grid{grid-template-columns:1fr 1fr}.crm-customer-workspace .crm-facts select{width:100%;padding:11px 13px;font:inherit;border:1px solid var(--line);border-radius:8px;background:white}.crm-selected-case{font-size:20px;margin:18px 0}.crm-customer-workspace>section.panel,.crm-customer-workspace>.crm-notes-panel{margin-top:26px}.crm-note-form{margin-top:20px}.crm-note-form>label{display:block;font-size:14px;font-weight:600;margin:0 0 10px}.crm-note-form textarea{display:block;box-sizing:border-box;width:100%;min-height:160px;resize:vertical;line-height:1.65!important;font-size:14px!important;margin:0 0 16px!important;padding:15px!important}.crm-note-form textarea:focus{outline:2px solid #c5294638;border-color:var(--red)}.crm-note-footer{display:flex;align-items:end;gap:18px;justify-content:space-between}.crm-note-footer label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;flex:1;max-width:460px}.crm-note-footer select{width:100%;padding:11px 13px;font:inherit;background:white;border:1px solid var(--line);border-radius:8px}.crm-note-footer .btn{min-height:44px;padding:11px 22px;font-size:14px}.crm-note-meta{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;align-items:center}.crm-notes article p{font-size:14px;overflow-wrap:anywhere}.crm-customer-workspace [id^=crm-work-]{scroll-margin-top:100px}.crm-customer-workspace .panel-head{gap:18px}.crm-customer-workspace .panel-head h2{font-size:20px}.crm-customer-workspace .panel-head p{font-size:13px}.crm-customer-workspace .customer-chat-panel textarea{min-height:120px}.crm-customer-workspace .chat-compose-footer .btn{font-size:14px;min-height:44px}
@media(max-width:1000px){.crm-work-heading{flex-direction:column}.crm-work-heading>.actions{max-width:none;justify-content:flex-start}.crm-customer-workspace .crm-detail-grid{grid-template-columns:1fr}}
@media(max-width:600px){.crm-work-heading h2{font-size:24px}.crm-work-nav{gap:7px}.crm-work-nav .btn{flex:1 0 40%;justify-content:center}.crm-note-footer{flex-direction:column;align-items:stretch}.crm-note-footer label{max-width:none}.crm-note-footer .btn{width:100%}.crm-work-heading>.actions{width:100%}.crm-work-heading .actions .btn{flex:1 0 40%}.crm-customer-workspace .crm-facts{grid-template-columns:100px minmax(0,1fr)}}

.package-formats{margin:16px 0;padding:8px 14px;border:1px solid var(--line);border-radius:8px}.package-formats legend{font-weight:700}.package-saving{display:block;margin:6px 0 10px}.package-saving del{color:var(--muted);margin-right:4px}.package-saving:empty{display:none}
.package-price-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(72px,108px) minmax(48px,65px);align-items:center;gap:8px}
.package-price-row input[type=number]{width:100%;min-width:0;margin:4px 0;padding-inline:6px}
.package-price-head{font-size:.85rem;color:var(--muted)}
.package-price-row input[type=number]:disabled{opacity:.45}
.package-breakdown{list-style:none;margin:8px 0;padding:0}
.package-breakdown li{display:flex;justify-content:space-between;gap:10px;padding:3px 0}
.package-breakdown strong{white-space:nowrap}

.document-assignment{grid-column:1/-1;display:grid;gap:12px;padding:22px;border:1px solid #e5dce1;border-radius:14px;background:#fcfafb;text-align:left;min-width:250px}.document-assignment p{margin:0;color:#64748b;font-size:14px}.document-assignment label{display:grid;gap:6px;font-weight:600}.document-assignment label[hidden]{display:none}.document-assignment input,.document-assignment select{width:100%;box-sizing:border-box;border:1px solid #d9dce5;border-radius:9px;padding:12px;background:white;font:inherit}.document-assignment small{color:#64748b;font-size:12px}.document-assignment .assignment-preview{color:#a9183f;font-weight:600}.assignment-admin summary{cursor:pointer;padding:10px;color:#a9183f}.assignment-admin[open]{min-width:320px}@media(max-width:600px){.document-assignment{padding:15px;min-width:0}.assignment-admin[open]{min-width:0}}

/* Keep staff and admin portals consistent with the public desktop scale. */
@media (min-width: 761px){html{zoom:.7}}
@media (max-width: 760px){html{zoom:1}}


/* html is scaled to 70% on desktop; compensate auth layout height to fill the viewport. */
@media (min-width: 761px) {
  .auth-page {
    height: 142.86vh;
    min-height: 142.86vh;
    overflow: hidden;
  }
  body:has(.auth-page) {
    overflow: hidden;
  }
}
@media (max-width: 760px) {
  .auth-page {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
}
