/* Single light BSM theme. CRM screenshot is a visual reference, not an integration. */
:root,:root.theme-light{color-scheme:light;--bg:#faf7f0;--card:#fffdfa;--field:#fff;--border:#e5d5b8;--text:#231f19;--muted:#686053;--gold:#926006;--soft:#f5e9cd;--danger:#ac3429;--line:var(--border);font-size:16px;color:var(--text);background:var(--bg)}
body{background:var(--bg);color:var(--text);line-height:1.55}h1,h2,h3{letter-spacing:-.02em}button{border-radius:12px;transition:background .15s,border-color .15s}button.primary{background:#98670e;border-color:#98670e;color:#fff}button.primary:hover{background:#7a5007}button:hover{background:#f8efd9}button.primary:disabled{color:#fff}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #946006;outline-offset:3px}input,textarea,select{border-color:#d7c8af;background:#fff}::placeholder{color:#827767}
#splash{background:#faf7f0;color:var(--text)}.shell{grid-template-columns:238px minmax(0,1fr)}.side,.theme-light .side{background:#f3ead8;padding:20px 14px;gap:22px}.side>.brand{border:1px solid #d6b36b;background:#fffbf3;padding:11px;border-radius:19px;box-shadow:0 5px 15px #5f420b0d}.side .brand img{width:46px;height:46px}.brand strong{font-size:.96rem;letter-spacing:.035em}.brand small{font-size:.65rem;letter-spacing:.04em}.side nav{gap:8px}.nav{background:#fffaf1;border:1px solid #e4d5b9;padding:11px 13px;font-size:.91rem;font-weight:600}.nav.active,.theme-light .nav.active{background:linear-gradient(110deg,#faefda,#efdfb8);border-color:#d8ac4d;color:#66460b;box-shadow:inset 3px 0 #c78d20}.nav i{color:#946a23}.top{padding:10px 28px;background:#fffdf8;border-color:#e3d2b1}.top .identity{font-size:.78rem}.top .brand img{width:36px;height:36px}.main{padding:22px 28px 48px;max-width:1540px}.connection{font-size:.7rem;color:#736958;margin-bottom:12px}.desk-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px;border:1px solid #dcb662;border-radius:22px;background:linear-gradient(115deg,#fffefb 30%,#f3e7cb);margin-bottom:14px}.desk-hero h1{font-size:1.65rem;margin:5px 0 6px;line-height:1.35}.desk-hero p{margin:0;font-size:.88rem;color:var(--muted)}.desk-hero .actions{justify-content:flex-end;gap:8px}.eyebrow{color:#936007;font-size:.67rem;font-weight:650;letter-spacing:.13em}.dashboard-scope{display:flex;justify-content:flex-end}.dashboard-scope label{display:flex;gap:9px;align-items:center;margin:0;font-size:.8rem}.dashboard-scope select{width:180px;min-height:40px;margin:0;padding-block:6px}.stats{gap:12px;margin:14px 0 20px}.stat{position:relative;padding:15px 18px;border:1px solid #e3cc9c;border-top:3px solid #d5a63e;border-radius:18px;background:linear-gradient(115deg,#fffdf8,#f4ead7);box-shadow:0 3px 10px #4f370506}.stat span{color:#625848;font-size:.82rem;font-weight:500}.stat strong{font-size:1.85rem;margin-top:7px;line-height:1.2;font-weight:650;color:#231f19}.stat .stat-arrow{position:absolute;inset-inline-end:17px;bottom:18px;color:#a8791e;font-size:1.2rem}.panel,.card{border-color:#e4d4b7;border-radius:18px;padding:18px;box-shadow:0 3px 12px #61400905;background:#fffdf9}.panel h2{font-size:1.08rem}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px}.attention-panel{border-top:3px solid #d5a63e}.row{border-color:#eee4d3;padding:12px 0}.row strong{font-size:.92rem}.task-row{gap:10px}.task-row .actions{gap:6px}.task-row .actions button{padding:6px 12px}.task-row .badge{padding:2px 6px;font-size:.67rem}.section-label{font-size:.9rem;padding-top:16px;border-top:1px solid var(--border);margin-top:12px}.recent-panel{margin-top:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-heading h2{margin:0}.alert-card{border-top:2px solid #dfc283;min-height:210px}.alert-card h3{font-size:1rem}.alert-card>.actions:last-child button{width:100%;background:#faf4e7}.badge{background:#f8f4eb;border-color:#e0d4bd;color:#635640}.badge.URGENT,.badge.urgent,.badge.blocked{background:#fff0eb;border-color:#e9baad;color:#963123}.badge.HIGH,.badge.important,.badge.waiting{background:#fff5d9;border-color:#e3c47f;color:#865409}.badge.active,.badge.done,.badge.completed,.theme-light .badge.active,.theme-light .badge.done{background:#eaf5eb;color:#27613b;border-color:#b9d7bf}.badge.following,.badge.in_progress{background:#eef3fb;color:#345c89;border-color:#c8d6e8}.badge.archived,.badge.closed{background:#f1eeea;color:#6a6258}.overdue{color:#a63528}.reply{background:#fcf9f2;border-color:var(--border)}.empty{padding:25px 12px;font-size:.9rem}.table-wrap{background:#fffdf9;border-color:#e2d1b2;border-radius:16px}th{background:#f6eedf;color:#69593e;font-size:.8rem}td{font-size:.87rem}.toolbar{gap:10px}.page-head{margin-bottom:17px}.page-head h1{font-size:1.65rem}.page-head .eyebrow{font-size:.65rem}.client-card{display:flex;flex-direction:column;gap:8px;min-width:0}.client-card p,.client-card h3{margin:0}.client-card>.actions{margin-top:auto;padding-top:10px}.client-card>.actions button{width:100%}.client-phone{font-size:.94rem;color:#5b4828;margin-block:12px}.card-heading{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}.card-heading h3{min-width:0}.card-heading .badge{flex-shrink:0}.client-stats .stat{padding:12px 16px}.push-health{background:#fffaf0;border-color:#e4d2a8}.auth-brand,.theme-light .auth-brand{background:linear-gradient(135deg,#f9f1e1,#ebd6a7);color:#352a19}.auth-box{box-shadow:0 14px 45px #70521d10}.auth-note{color:#6b5d47}.review{background:#fbf4e5}.dialog-head{padding-bottom:10px;border-bottom:1px solid var(--border)}.local-label{background:#ede4d1;color:#5d4d2f}.mobile-nav,.theme-light .mobile-nav{background:#fffcf5;border-color:#d9c49b;box-shadow:0 -4px 20px #50380c0a}.mobile-nav button,.theme-light .mobile-nav button{color:#75664b}.mobile-nav .active,.theme-light .mobile-nav .active{color:#795009;background:#f4e8ce;border-radius:12px}.privacy-hint{background:#fbf4e4;color:#654e25}.manual-code{background:#fcf6e9}
@media(min-width:1600px){.main{padding:26px 36px 48px}}
@media(max-width:1100px){.shell{grid-template-columns:205px minmax(0,1fr)}.main{padding-inline:20px}.desk-hero{align-items:flex-start;flex-direction:column;gap:12px}.desk-hero .actions{justify-content:flex-start}.dashboard-grid{grid-template-columns:1fr}.side .brand{gap:8px;padding:8px}.side .brand img{width:38px;height:38px}.side .brand small{font-size:.57rem}}
@media(max-width:700px){.shell{display:block}.top{padding:8px 12px;min-height:58px;position:sticky;top:0;z-index:9}.top .brand img{width:32px;height:32px}.main{padding:12px 12px calc(106px + env(safe-area-inset-bottom,0px))}.desk-hero{padding:15px;border-radius:18px;gap:10px}.desk-hero h1{font-size:1.28rem;margin-top:4px}.desk-hero p{font-size:.79rem}.desk-hero .actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:7px}.desk-hero .actions button{font-size:.8rem;padding:8px}.desk-hero .actions button:last-child{grid-column:1/-1;background:transparent;border-color:transparent;min-height:36px;padding:3px}.desk-hero .eyebrow{font-size:.6rem}.dashboard-scope{justify-content:stretch}.dashboard-scope label{width:100%;justify-content:space-between;font-size:.76rem}.dashboard-scope select{width:60%}.stats{gap:9px;margin:12px 0 16px}.stat{padding:12px 13px;border-radius:15px}.stat span{font-size:.76rem}.stat strong{font-size:1.6rem}.stat .stat-arrow{inset-inline-end:12px;bottom:14px}.panel,.card{padding:13px;border-radius:16px}.dashboard-grid{gap:12px}.recent-panel{margin-top:12px}.task-row .actions{max-width:114px}.task-row .actions button{width:100%}.row strong{font-size:.87rem}.panel h2{font-size:1rem}.alert-card{min-height:195px}.alert-card h3{font-size:.96rem}.client-card{gap:7px}.page-head h1{font-size:1.4rem}.connection{font-size:.64rem}.mobile-nav{gap:3px;padding-inline:6px}.auth-brand img{width:86px}.auth-form{padding:20px}.auth-form h1{font-size:1.25rem}.client-stats .stat{padding:11px}.card-heading{flex-wrap:wrap}.card-heading h3{flex:1;min-width:110px}}
.dashboard-grid{align-items:start}.workflow-tools{margin-block:14px}.alert-group{border:1px solid var(--border);border-radius:16px;background:var(--card);padding:12px;margin:0}.alert-group>summary{font-weight:650;padding:6px}.alert-group>.cards{margin-top:12px}.grouped-alerts{display:grid;gap:12px}.attention-panel>.empty{padding-block:18px}
@media(max-width:700px){.desk-hero .actions{grid-template-columns:repeat(3,minmax(0,1fr))}.desk-hero .actions button{font-size:.7rem;padding:8px 4px}.desk-hero .actions button:last-child{grid-column:auto;min-height:44px;border:1px solid var(--border);padding:8px 4px}.desk-hero{gap:8px;padding:13px}.desk-hero h1{font-size:1.18rem}.alert-card{min-height:185px}.desk-hero p{font-size:.73rem}}
@media(max-width:350px){.main{padding-inline:10px}.top{padding-inline:8px}.desk-hero h1{font-size:1.13rem}.task-row{grid-template-columns:minmax(0,1fr) 100px}.stat span{font-size:.71rem}}
/* Allow a second header row when enlarged text no longer fits one row. */
@media(max-width:700px){.top{flex-wrap:wrap}.top>.actions{max-width:100%;flex-wrap:wrap;gap:6px}.top .sr-label{display:inline;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}
