/* Bani Vyatki CRM: a compact, legible operations workspace. */
:root{--ink:#182624;--muted-ink:#596d69;--line:#dbe4df;--surface:#fff;--canvas:#f2f5f1;--brand:#205f4d;--brand-dark:#164838;--soft:#e9f1eb;--accent:#c57747;--focus:#236bea}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--canvas);color:var(--ink);font-size:14px;line-height:1.5}
button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus)!important;outline-offset:2px}
[hidden]{display:none!important}.skip-link{position:fixed;z-index:100;left:12px;top:-100px;background:#fff;color:#182624;padding:12px}.skip-link:focus{top:12px}
.shell{grid-template-columns:248px minmax(0,1fr);background:var(--canvas)}.sidebar{background:#153d33!important;border-right:0!important;color:#fff;padding:22px 14px 16px!important;display:flex;flex-direction:column}.sidebar .brand{padding:5px 10px 24px!important;gap:11px;border-bottom:1px solid #ffffff20}.sidebar .brand-mark{display:grid;place-items:center;border-radius:9px;background:#c88152!important;color:white;font-family:Georgia,serif;font-size:26px;font-weight:400;width:42px;height:42px}.sidebar .brand-text{color:#fff;font-size:15px;letter-spacing:0;text-transform:none}.sidebar .brand small{font-size:9px;letter-spacing:.1em;color:#b6cdc2!important}.sidebar .nav{padding-top:8px;flex:1}.sidebar .nav-group-label{padding:20px 12px 8px;color:#b5ccc1;font-size:10px;letter-spacing:.1em}.sidebar .nav button{min-height:40px;margin:2px 0;border-radius:7px;padding:9px 12px;color:#d4e4dc;gap:11px;font-size:13px}.sidebar .nav button:hover{background:#ffffff12}.sidebar .nav button.active{background:#f1f6ef;color:#153d33;box-shadow:none}.sidebar .nav button.active svg{color:#23644f}.sidebar .nav svg{width:18px;height:18px}.sidebar-bottom{padding:14px 10px 0;border-color:#ffffff25;color:#bed0c7}.sidebar-logout{color:#e2eee7}.sidebar-logout:hover{background:#ffffff14}.sidebar-bottom>div{letter-spacing:.08em}
.topbar{height:68px;padding:0 36px;background:#fff;border-bottom:1px solid var(--line)}.topbar-location{display:flex;align-items:center;gap:18px}.topbar-location span{font-size:10px;letter-spacing:.1em;color:#647b72;font-weight:700}.topbar-location strong{font-size:14px;border-left:1px solid var(--line);padding-left:18px}.avatar{background:var(--brand)!important;color:white}.profile-menu{border-color:var(--line);z-index:20}.content{padding:32px 36px 48px;max-width:1800px;margin:auto}.eyebrow,.dash-kicker{color:#607b6c;letter-spacing:.12em}.muted,.dash-intro p,.dash-section-head p,.dash-agenda>p{color:var(--muted-ink)}
.heading:not(.dashboard-heading){padding:4px 0 24px;background:transparent;border:0;border-radius:0;align-items:end}.heading h1,.heading:not(.dashboard-heading) h1,.dash-intro h1{font-size:32px;letter-spacing:-.035em;color:var(--ink);margin:5px 0}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px;box-shadow:0 2px 8px #203a2a08}.panel h2{color:var(--ink)}.primary{min-height:44px;background:var(--brand);border:1px solid var(--brand);border-radius:7px;color:#fff;box-shadow:none;font-weight:650}.primary:hover{background:var(--brand-dark)}.secondary{min-height:44px;border:1px solid #cbd8d0;background:white;color:var(--ink);border-radius:7px}.secondary:hover{background:var(--soft);border-color:#9cb5a5}.row-button,.text-link{color:var(--brand);font-weight:650}.search,.field input,.field select,.field textarea,.section-sort select{border:1px solid #cbd8d0;border-radius:6px;background:#fff;color:var(--ink)}.field{color:#344b41;font-size:13px;font-weight:600}.field input,.field select{min-height:44px}.badge{background:#e8f1ec;color:#265c49}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px}table{border-collapse:collapse;border-spacing:0;width:100%}th{background:#f4f7f4;border:0;border-bottom:1px solid var(--line);padding:12px 14px;color:#52685d;font-size:10px}td{background:#fff;border:0!important;border-bottom:1px solid #eaf0eb!important;border-radius:0!important;padding:14px;color:#4a6056}td:first-child{color:var(--ink);font-weight:650}.table-wrap tbody tr:hover td{background:#f5f9f5}.table-wrap tbody tr:last-child td{border-bottom:0!important}
.dash-v3{max-width:none}.dash-intro{padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:20px}.dash-intro h1{font-size:32px}.dash-intro p{font-size:14px}.dash-columns{grid-template-columns:minmax(0,1fr) minmax(290px,340px);gap:16px}.dash-main,.dash-side{gap:16px}.dash-summary{background:#e5f0e7;color:var(--ink);border:1px solid #c9dfce;border-radius:10px;padding:24px}.dash-summary:after{display:none}.dash-summary .dash-kicker{color:#52705e}.dash-summary h2{color:var(--ink);font-size:17px}.dash-summary-symbol{background:#d3e5d7;color:var(--brand);border-radius:7px}.dash-summary-number{font-size:52px;color:var(--brand);margin:18px 0 24px}.dash-summary-number span{color:#456458;font-size:13px}.dash-summary-footer{border-color:#c4d9c9;gap:20px}.dash-summary-footer span{color:#496456}.dash-summary-footer b{color:var(--ink)}.dash-summary-footer small{color:#536c5d}.dash-activity,.dash-projects,.dash-agenda,.dash-shortcuts{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px}.dash-agenda{background:#fff}.dash-side-icon,.dash-quick-icon{background:var(--soft);color:var(--brand);border-radius:7px}.dash-side-link{color:var(--brand);border-color:var(--line)}.dash-quick button{border-color:#e9efeb;color:var(--ink)}.dash-quick button:hover{color:var(--brand)}.dash-quick small{color:var(--muted-ink)}.dash-agenda .workspace-row,.workspace-row,.attachment-empty{background:#f7faf7;border-color:#e0eae2;color:#405b4d}.dash-agenda .attachment-empty{color:var(--muted-ink)}.dash-agenda .workspace-row{background:#f7faf7;border-color:#e0eae2}.calculator-result span{background:#edf4ee;color:#455f50}.calculator-result b{color:var(--ink)}
.overlay{background:#12291f99;backdrop-filter:none}.modal{border:0;border-radius:12px;box-shadow:0 24px 65px #10271f40}.modal-header{background:#f3f7f3;color:var(--ink);border-bottom:1px solid var(--line);padding:24px 28px}.modal-header h2{color:var(--ink)}.modal-header .eyebrow{color:#587366}.modal-header .close{background:#e2ece4;color:#244d3b;width:44px;height:44px}.modal-header .close:hover{background:#d5e5d8}.modal .field input,.modal .field select,.modal .field textarea{background:#fff;border-color:#cbd8d0}.project-tabs{border-color:var(--line);gap:2px}.project-tabs button{font-size:13px;color:#4e655a;border-radius:5px;min-height:44px}.project-tabs button.active{background:var(--soft);color:var(--brand);box-shadow:inset 0 -2px var(--brand)}.workspace-totals{background:#eaf3ec;color:#345b43}.project-section{background:#fff}.login-art{background:#153d33}.login-art .brand-mark{background:#c88152}.login-box,.login-page{background:var(--canvas)}#toast{background:#183c30}.mobile-bar,.mobile-more{display:none}
@media(max-width:1100px) and (min-width:721px){.shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:18px 10px!important}.sidebar .brand-text,.sidebar .nav button span,.sidebar .nav-group-label,.sidebar-bottom>div,.sidebar-logout span{display:block}.sidebar .nav button{justify-content:flex-start}.content{padding:26px}.dash-columns{grid-template-columns:1fr}.dash-side{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.shell{display:block}.sidebar{display:none}.topbar{height:62px;padding:0 16px}.topbar-location span{display:none}.topbar-location strong{border:0;padding:0;font-size:15px}.main{padding-bottom:calc(78px + env(safe-area-inset-bottom))}.content{padding:22px 16px 36px}.heading:not(.dashboard-heading){padding:0 0 20px}.heading:not(.dashboard-heading) h1,.dash-intro h1{font-size:28px}.panel{padding:18px}.mobile-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:20;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);padding:5px 4px calc(5px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #203b2710}.mobile-bar button{min-width:0;min-height:56px;border:0;background:transparent;color:#53675d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;border-radius:7px}.mobile-bar button.active{color:var(--brand);background:var(--soft);font-weight:700}.mobile-bar svg,.mobile-more svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.mobile-more-icon{font-size:19px;line-height:20px;letter-spacing:1px}.mobile-more{display:block;position:fixed;z-index:19;inset:62px 0 calc(66px + env(safe-area-inset-bottom));overflow:auto;background:#fff;padding:20px 16px}.mobile-more-head{display:flex;align-items:center;justify-content:space-between;font-size:20px}.mobile-more-close{width:44px;height:44px;border:0;border-radius:7px;background:var(--soft);font-size:28px}.mobile-more nav{display:grid;grid-template-columns:1fr 1fr;gap:4px}.mobile-more .nav-group-label{display:block;grid-column:1/-1;color:#61786b;margin-top:14px;padding:6px;font-size:10px;letter-spacing:.08em}.mobile-more nav button{display:flex;align-items:center;gap:9px;text-align:left;border:0;background:#f5f8f5;border-radius:7px;padding:10px;min-height:48px;color:var(--ink)}.mobile-more nav button.active{background:var(--soft);color:var(--brand)}.mobile-more .sidebar-logout{color:#8b3c32;margin-top:20px}.dash-intro{align-items:stretch}.dash-intro .primary{width:100%}.dash-columns,.dash-side{gap:12px}.dash-summary,.dash-activity,.dash-projects,.dash-agenda,.dash-shortcuts{padding:19px}.dash-summary-number{font-size:46px}.modal-header{padding:18px 20px}.modal-header h2{font-size:21px}.profile-menu{top:55px}.project-tabs{padding:8px 12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Four equal overview metrics keep the day's workload visible at a glance. */
.dash-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;padding:0;overflow:hidden;background:var(--line);border:1px solid var(--line)}.dash-metric{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:145px;background:#fff;padding:20px}.dash-metric span{font-size:12px;font-weight:700;color:#50685b}.dash-metric strong{margin:14px 0 4px;font-size:34px;letter-spacing:-.04em;line-height:1;color:var(--ink)}.dash-metric small{font-size:12px;color:#62796b}.dash-metric-feature{background:#e6f1e8}.dash-metric-feature strong{color:var(--brand)}
@media(max-width:1100px){.dash-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.dash-summary{padding:0;gap:1px}.dash-metric{padding:16px;min-height:120px}.dash-metric strong{font-size:29px;margin:11px 0 4px}}
.main{background:var(--canvas)}.dash-section-head h2,.dash-side h2,.dash-agenda h2{color:var(--ink)}.dash-intro .dash-kicker span{background:var(--accent)}
@media(min-width:721px){.sidebar{height:100dvh;overflow:hidden}.sidebar .nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.sidebar-bottom{flex:none}}
/* Quiet charcoal and warm-grey palette */
:root{--ink:#292929;--muted-ink:#66635f;--line:#dedbd6;--surface:#f9f8f6;--canvas:#eae8e4;--brand:#484643;--brand-dark:#33312f;--soft:#e9e6e1;--accent:#94857a;--focus:#565d73}
.sidebar{background:#292928!important}.sidebar .brand-mark{background:#68635e!important}.sidebar .brand small,.sidebar .nav-group-label{color:#bcb8b0!important}.sidebar .nav button{color:#d4d1ca}.sidebar .nav button.active{background:#e9e6e0;color:#292928}.sidebar .nav button.active svg{color:#55514d}.sidebar-bottom{color:#c3bfb8}.sidebar-logout{color:#dedbd5}.avatar{background:#55524f!important}.topbar,.mobile-bar,.mobile-more{background:#f7f6f3}.topbar-location span,.eyebrow,.dash-kicker{color:#77726b}.panel,.dash-activity,.dash-projects,.dash-agenda,.dash-shortcuts,.dash-metric,.project-section{background:#f9f8f6}.dash-metric-feature{background:#e5e1da}.dash-metric span,.dash-metric small,.dash-summary .dash-kicker{color:#68635e}.dash-metric strong{color:var(--ink)}.dash-metric-feature strong{color:#46413e}.dash-quick button{background:transparent}.dash-agenda .workspace-row,.workspace-row,.attachment-empty,.dash-agenda .workspace-row{background:#f1efeb;border-color:#dfdbd4;color:#59554f}.calculator-result span,.workspace-totals{background:#edeae5;color:#5a5550}.table-wrap th{background:#eeece8;color:#68625c}.table-wrap td{background:#f9f8f6;color:#5d5955;border-bottom-color:#ebe8e2!important}.table-wrap tbody tr:hover td{background:#eeece8}.field,.project-tabs button{color:#514d49}.search,.field input,.field select,.field textarea,.section-sort select,.modal .field input,.modal .field select,.modal .field textarea{background:#faf9f7;border-color:#d2cdc5;color:#292929}.badge{background:#e8e4df;color:#534d48}.modal-header{background:#eeece8}.modal-header .eyebrow{color:#77716b}.modal-header .close{background:#dedad4;color:#514c47}.modal-header .close:hover{background:#d2cdc6}.overlay{background:#252321a6}.login-art{background:#292928}.login-art .brand-mark{background:#68635e}.primary{background:var(--brand);border-color:var(--brand)}.secondary{background:#f9f8f6;border-color:#d1ccc5}.mobile-bar button{color:#65605b}.mobile-more .nav-group-label{color:#77716a}.mobile-more nav button{background:#f0eeea}.dash-intro .dash-kicker span{background:#968980}
/* Quiet dark workspace */
:root{--ink:#e5e5e3;--muted-ink:#a5a7aa;--line:#3b3e43;--surface:#292c30;--canvas:#202226;--brand:#d0c4b6;--brand-dark:#e3d8cb;--soft:#373a3e;--accent:#b8a18b;--focus:#b9c7dd}
body,.shell,.main,.login-page,.login-box{background:var(--canvas);color:var(--ink)}.sidebar{background:#181a1d!important;border-right:1px solid #333539!important}.sidebar .brand-mark{background:#45413d!important;color:#ede8e2}.sidebar .nav button{color:#b7b8b9}.sidebar .nav button:hover{background:#2a2d30}.sidebar .nav button.active{background:#393a3c;color:#f1efec}.sidebar .nav button.active svg{color:#cfbfae}.sidebar .brand small,.sidebar .nav-group-label{color:#929397!important}.sidebar-bottom{color:#929397}.topbar,.mobile-bar,.mobile-more{background:#25272b;border-color:var(--line)}.topbar-location span,.eyebrow,.dash-kicker{color:#aaa49d}.topbar-location strong,.topbar .user-trigger .user-info,.user-info strong,.topbar .user-trigger .user-info strong{color:var(--ink)}.user-info small{color:#a0a1a2}.avatar{background:#55514e!important}.user-trigger:hover,.user-trigger:focus-visible{background:#383a3c}.profile-menu{background:#303236;border-color:var(--line)}.profile-menu-name{color:var(--ink);border-color:var(--line)}.profile-menu-name small{color:#b2b2b1}.profile-menu button{color:#e0b5a7}.profile-menu button:hover{background:#403635}
.heading h1,.heading:not(.dashboard-heading) h1,.dash-intro h1,.dash-section-head h2,.dash-side h2,.dash-agenda h2,.panel h2,.panel h3{color:var(--ink)}.panel,.dash-activity,.dash-projects,.dash-agenda,.dash-shortcuts,.dash-metric,.project-section{background:var(--surface);border-color:var(--line);box-shadow:none}.dash-metric-feature{background:#363432}.dash-metric strong,.dash-metric-feature strong{color:#eeeae4}.dash-metric span,.dash-metric small{color:#b7b3ae}.dash-summary{background:var(--line);border-color:var(--line)}.dash-total span,.dash-quick small,.dash-intro p,.dash-section-head p,.dash-agenda>p,.muted{color:var(--muted-ink)}.dash-quick button{color:var(--ink);border-color:var(--line)}.dash-quick button:hover{color:#fff}.dash-quick-icon,.dash-side-icon{background:#3b3937;color:#d2c2b2}.dash-side-link,.row-button,.text-link{color:#d9c8b8}.dash-side-link{border-color:var(--line)}.dash-agenda .workspace-row,.workspace-row,.attachment-empty,.dash-agenda .workspace-row{background:#303236;color:#c7c5c2;border-color:#44464a}.dash-agenda .attachment-empty{background:#303236;color:#aaa}.workspace-row small,.workspace-heading p,.attachment-hint{color:#aaa}
.primary{background:#d0c4b6;border-color:#d0c4b6;color:#272523}.primary:hover{background:#e3d8cb;color:#272523}.secondary{background:#333539;color:#ebe9e5;border-color:#535254}.secondary:hover{background:#414247;border-color:#77716b}.table-wrap{border-color:var(--line)}.table-wrap th{background:#323438;color:#b9b7b3;border-color:var(--line)}.table-wrap td{background:#292c30;color:#c4c3c0;border-bottom-color:#3c3e42!important}.table-wrap td:first-child{color:#eee}.table-wrap tbody tr:hover td{background:#34363a}.badge{background:#474441;color:#ece3d8}.search,.field input,.field select,.field textarea,.section-sort select,.modal .field input,.modal .field select,.modal .field textarea{background:#25272a;border-color:#55565a;color:#f0efec;color-scheme:dark}.field,.project-tabs button{color:#c7c5c1}.modal{background:#292b2f;color:var(--ink)}.modal-header{background:#303236;border-color:var(--line)}.modal-header h2{color:var(--ink)}.modal-header .eyebrow{color:#aaa49d}.modal-header .close{background:#414246;color:#e8e6e2}.modal-header .close:hover{background:#525357}.modal .actions,.attachments,.document-tools{border-color:var(--line)}.project-tabs{background:#292b2f;border-color:var(--line)}.project-tabs button:hover{background:#3b3c40;color:#fff}.project-tabs button.active{background:#44413e;color:#f1e5d9;box-shadow:inset 0 -2px #c6b3a0}.project-card-modal .project-section{background:transparent}.workspace-totals,.calculator-result span{background:#36383b;color:#c3beb7}.calculator-result b{color:#eee}.project-card-modal>form>.actions{background:transparent}.login-art{background:#17191b}.login-art .brand-mark{background:#59524b}.login-form h1{color:var(--ink)}#toast{background:#d3c7ba;color:#262320}.mobile-bar button{color:#bebbb6}.mobile-more nav button{background:#303236;color:var(--ink)}.mobile-more .nav-group-label{color:#aaa49d}.mobile-more-close{background:#424140;color:#eee}
.stage-name,.stage-name span,.stage-name b{color:#d1cfcb}.chart-grid span,.chart-column span,.chart-column b,.dash-total span{color:#b7b4b0}.chart-area{background-image:none}.chart-grid{color:#aaa}.stage-track rect:first-child{fill:#48494d}.chart-area .chart-bars{border-color:#494b4f}.heading .muted,.panel p{color:var(--muted-ink)}
.table-wrap .row-button{color:#e5d2bf!important;background:#45413f;border:1px solid #74685f;border-radius:6px;padding:8px 12px;min-height:40px}.table-wrap .row-button:hover{background:#5a504a;color:#fff!important}.quote-line{align-items:end;margin-bottom:16px}.quote-count{color:#b8b4ae;font-weight:400}.quote-line .quote-remove{align-self:end;margin-bottom:0}.quote-line .field{min-width:0}
/* Record navigation and text on dark surfaces */
.project-card-modal .project-tabs{position:sticky;top:0;display:flex;flex-wrap:wrap;gap:5px 14px;overflow:visible;padding:10px 26px 0;background:#25272b;border-bottom:1px solid #45464a}.project-card-modal .project-tabs button{min-height:44px;padding:10px 2px;border-radius:0;border-bottom:2px solid transparent;background:transparent;color:#c3c2c0;font-size:13px;font-weight:600;white-space:normal;text-align:left}.project-card-modal .project-tabs button:hover{background:transparent;color:#fff}.project-card-modal .project-tabs button.active{background:transparent;color:#f5eee7;border-color:#c9b6a4;box-shadow:none}.project-card-modal .workspace-heading h3,.project-card-modal .project-section h3,.modal h3,.modal h4{color:#eceae7}.project-card-modal .workspace-heading p,.project-card-modal .project-section p,.modal .attachment-hint,.modal .workspace-row small,.modal .muted,.project-workspace-title p{color:#bab9b6}.project-card-modal .workspace-row{color:#e7e4e0}.project-card-modal .workspace-row b,.project-card-modal .workspace-row strong{color:#efede9}.project-card-modal .attachment-empty{color:#c6c4c0;background:#303236}.project-card-modal .section-sort{color:#c6c4c0}.modal .field{color:#dedbd6}.modal .document-tools,.modal .attachments,.modal .workspace-related{color:#e4e2de}.workspace-tabs button,.project-section-links button{color:#ddd9d5;background:#393a3d;border-color:#555457}.workspace-tabs button.active{background:#5e534a;color:#fff}.error{color:#f3a99e}
@media(max-width:720px){.project-card-modal .project-tabs{flex-wrap:nowrap;overflow-x:auto;gap:20px;padding:7px 20px 0;scrollbar-width:thin;scrollbar-color:#81766e transparent}.project-card-modal .project-tabs button{flex:0 0 auto;white-space:nowrap}.project-card-modal .project-tabs button.active{color:#fff}}
.header-actions{display:flex;align-items:center;gap:12px}.theme-toggle{width:44px;height:44px;border:1px solid #4a4c50;border-radius:8px;background:#303236;color:#eee7df;font-size:23px;line-height:1}.theme-toggle:hover{background:#424247}
html[data-theme=light]{--ink:#262625;--muted-ink:#62615f;--line:#d9d6d1;--surface:#fff;--canvas:#f1efeb;--brand:#45413d;--brand-dark:#292724;--soft:#eae7e2;--accent:#8d7d70;--focus:#536d95;color-scheme:light}
html[data-theme=light] body,html[data-theme=light] .shell,html[data-theme=light] .main,html[data-theme=light] .login-page,html[data-theme=light] .login-box{background:var(--canvas);color:var(--ink)}
html[data-theme=light] .sidebar{background:#302f2e!important}html[data-theme=light] .topbar,html[data-theme=light] .mobile-bar,html[data-theme=light] .mobile-more{background:#fff;border-color:var(--line)}html[data-theme=light] .topbar-location strong,html[data-theme=light] .user-info strong,html[data-theme=light] .topbar .user-trigger .user-info strong{color:var(--ink)}html[data-theme=light] .user-info small,html[data-theme=light] .eyebrow,html[data-theme=light] .dash-kicker,html[data-theme=light] .topbar-location span{color:#716c66}html[data-theme=light] .user-trigger:hover{background:#f0ede8}html[data-theme=light] .theme-toggle{background:#f1efeb;border-color:#ddd8d1;color:#4b4641}html[data-theme=light] .profile-menu{background:#fff;border-color:var(--line)}html[data-theme=light] .profile-menu-name{color:var(--ink);border-color:var(--line)}html[data-theme=light] .profile-menu-name small{color:#706a64}html[data-theme=light] .profile-menu button{color:#954c40}html[data-theme=light] .profile-menu button:hover{background:#f5ebe8}
html[data-theme=light] .heading h1,html[data-theme=light] .dash-intro h1,html[data-theme=light] .panel h2,html[data-theme=light] .panel h3,html[data-theme=light] .dash-section-head h2,html[data-theme=light] .dash-side h2{color:var(--ink)}html[data-theme=light] .panel,html[data-theme=light] .dash-activity,html[data-theme=light] .dash-projects,html[data-theme=light] .dash-agenda,html[data-theme=light] .dash-shortcuts,html[data-theme=light] .dash-metric,html[data-theme=light] .project-section{background:#fff;border-color:var(--line)}html[data-theme=light] .dash-metric-feature{background:#e9e5df}html[data-theme=light] .dash-metric strong,html[data-theme=light] .dash-metric-feature strong{color:#292725}html[data-theme=light] .dash-metric span,html[data-theme=light] .dash-metric small,html[data-theme=light] .muted,html[data-theme=light] .dash-intro p,html[data-theme=light] .dash-section-head p,html[data-theme=light] .dash-agenda>p,html[data-theme=light] .dash-quick small{color:#66615b}html[data-theme=light] .dash-quick button{color:#292725;border-color:#e5e1dc}html[data-theme=light] .dash-quick-icon,html[data-theme=light] .dash-side-icon{background:#eeeae4;color:#63574d}html[data-theme=light] .dash-side-link,html[data-theme=light] .row-button,html[data-theme=light] .text-link{color:#51463d}html[data-theme=light] .dash-agenda .workspace-row,html[data-theme=light] .workspace-row,html[data-theme=light] .attachment-empty,html[data-theme=light] .dash-agenda .attachment-empty{background:#f4f2ef;color:#524f4b;border-color:#e2ded8}
html[data-theme=light] .primary{background:#48433e;border-color:#48433e;color:#fff}html[data-theme=light] .primary:hover{background:#302d2a}html[data-theme=light] .secondary{background:#fff;border-color:#cbc6bf;color:#34302d}html[data-theme=light] .secondary:hover{background:#efede9}html[data-theme=light] .table-wrap{border-color:var(--line)}html[data-theme=light] .table-wrap th{background:#f3f1ee;color:#625d57;border-color:var(--line)}html[data-theme=light] .table-wrap td{background:#fff;color:#57534e;border-bottom-color:#e9e6e1!important}html[data-theme=light] .table-wrap td:first-child{color:#2a2826}html[data-theme=light] .table-wrap tbody tr:hover td{background:#f7f5f2}html[data-theme=light] .table-wrap .row-button{color:#35302b!important;background:#edeae5;border-color:#d0c9c1}html[data-theme=light] .table-wrap .row-button:hover{background:#ddd6cf;color:#201d1a!important}
html[data-theme=light] .modal{background:#fff;color:var(--ink)}html[data-theme=light] .modal-header{background:#f1efeb;border-color:var(--line)}html[data-theme=light] .modal-header h2,html[data-theme=light] .modal h3,html[data-theme=light] .modal h4,html[data-theme=light] .project-card-modal .workspace-heading h3,html[data-theme=light] .project-card-modal .project-section h3{color:var(--ink)}html[data-theme=light] .modal-header .eyebrow{color:#6b655e}html[data-theme=light] .modal-header .close{background:#e2ded8;color:#45403b}html[data-theme=light] .modal .field,html[data-theme=light] .field,html[data-theme=light] .project-card-modal .section-sort{color:#49443e}html[data-theme=light] .search,html[data-theme=light] .field input,html[data-theme=light] .field select,html[data-theme=light] .field textarea,html[data-theme=light] .section-sort select,html[data-theme=light] .modal .field input,html[data-theme=light] .modal .field select,html[data-theme=light] .modal .field textarea{background:#fff;border-color:#c9c4bd;color:#282521;color-scheme:light}html[data-theme=light] .project-card-modal .project-tabs{background:#fff;border-color:var(--line)}html[data-theme=light] .project-card-modal .project-tabs button{color:#5e5953}html[data-theme=light] .project-card-modal .project-tabs button:hover{color:#201d1a}html[data-theme=light] .project-card-modal .project-tabs button.active{color:#302820;border-color:#806f60}html[data-theme=light] .project-card-modal .workspace-heading p,html[data-theme=light] .project-card-modal .project-section p,html[data-theme=light] .modal .muted,html[data-theme=light] .modal .workspace-row small{color:#66615a}html[data-theme=light] .project-card-modal .workspace-row b,html[data-theme=light] .project-card-modal .workspace-row strong{color:#292725}html[data-theme=light] .project-card-modal .attachment-empty{color:#5b5650;background:#f4f2ef}html[data-theme=light] .calculator-result span,html[data-theme=light] .workspace-totals{background:#eeeae5;color:#57514b}html[data-theme=light] .calculator-result b{color:#292725}html[data-theme=light] .mobile-bar button{color:#68615b}html[data-theme=light] .mobile-more nav button{background:#f3f1ee;color:#292725}html[data-theme=light] .mobile-more-close{background:#eae7e2;color:#292725}html[data-theme=light] .stage-name,html[data-theme=light] .stage-name span,html[data-theme=light] .stage-name b{color:#514e4a}html[data-theme=light] .chart-grid span,html[data-theme=light] .chart-column span,html[data-theme=light] .chart-column b,html[data-theme=light] .dash-total span{color:#6e6862}html[data-theme=light] .stage-track rect:first-child{fill:#e7e4e0}html[data-theme=light] .quote-count{color:#625e58}
/* Neutral surfaces inspired by Linear and Attio. */
html[data-theme=dark]{--ink:#e9e9ec;--muted-ink:#aaaab2;--line:#3b3b42;--surface:#29292e;--canvas:#202024;--brand:#cac9d0;--brand-dark:#e3e2e7;--soft:#37373d;--accent:#a09fa9;--focus:#aaa9d0}
html[data-theme=dark] .sidebar{background:#19191d!important}html[data-theme=dark] .topbar,html[data-theme=dark] .mobile-bar,html[data-theme=dark] .mobile-more{background:#252529}html[data-theme=dark] .dash-metric-feature{background:#34343a}html[data-theme=dark] .dash-quick-icon,html[data-theme=dark] .dash-side-icon{background:#3b3b43;color:#cac9d3}html[data-theme=dark] .primary{background:#d4d3da;border-color:#d4d3da;color:#242429}html[data-theme=dark] .primary:hover{background:#eeeeef}html[data-theme=dark] .row-button,html[data-theme=dark] .text-link,html[data-theme=dark] .dash-side-link{color:#d6d5dc}html[data-theme=dark] .project-card-modal .project-tabs button.active{color:#f3f2f7;border-color:#aaa9c1}html[data-theme=dark] .table-wrap .row-button{background:#414148;border-color:#62616b;color:#ededf1!important}
html[data-theme=light]{--ink:#29292e;--muted-ink:#66666e;--line:#ddddE2;--surface:#fff;--canvas:#f2f2f4;--brand:#4b4b56;--brand-dark:#303039;--soft:#ededf0;--accent:#85848e;--focus:#69698e}
html[data-theme=light] .sidebar{background:#303036!important}html[data-theme=light] .dash-metric-feature{background:#ededf0}html[data-theme=light] .dash-quick-icon,html[data-theme=light] .dash-side-icon{background:#eeeef1;color:#676674}html[data-theme=light] .primary{background:#4c4c56;border-color:#4c4c56}html[data-theme=light] .project-card-modal .project-tabs button.active{color:#34343e;border-color:#77768e}
/* Keep the project card and its navigation fixed while switching sections. */
.project-card-modal{display:flex;flex-direction:column;height:min(850px,88vh);height:min(850px,88dvh);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:hidden}.project-card-modal>.modal-header,.project-card-modal>.project-tabs{position:static;flex:0 0 auto}.project-card-modal>form{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.project-card-modal>form>.actions{position:static}
@media(max-width:720px){.project-card-modal{height:calc(100vh - 24px);height:calc(100dvh - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}.project-card-modal>form{scrollbar-gutter:auto}}
.theme-toggle{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;isolation:isolate;width:154px;height:40px;min-width:154px;padding:3px;border:1px solid #4a4a51;border-radius:22px;background:#202025;color:#b4b4bc;font-size:12px;font-weight:600;overflow:hidden}.theme-toggle:hover{background:#28282e}.theme-toggle-thumb{position:absolute;z-index:-1;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:18px;background:#4a4a53;transition:transform 240ms cubic-bezier(.22,1,.36,1),background-color 200ms ease}.theme-label{display:block;text-align:center;transition:color 200ms ease}.theme-label-dark{color:#f1f0f4}html[data-theme=light] .theme-toggle{background:#e8e8eb;border-color:#d5d5dc;color:#777780}html[data-theme=light] .theme-toggle:hover{background:#e2e2e7}html[data-theme=light] .theme-toggle-thumb{transform:translateX(100%);background:#fff;box-shadow:0 1px 4px #0002}html[data-theme=light] .theme-label-dark{color:#707079}html[data-theme=light] .theme-label-light{color:#34343c}
@media(max-width:720px){.theme-toggle{width:48px;min-width:48px;height:30px;padding:3px}.theme-toggle-thumb{width:22px;top:3px;bottom:3px}.theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.header-actions{gap:7px}.user-info strong{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
/* Theme control labels and matching sidebar in light mode. */
html[data-theme=dark] .topbar .theme-toggle .theme-label-dark{color:#fff}
html[data-theme=dark] .topbar .theme-toggle .theme-label-light{color:#b7b7c0}
html[data-theme=light] .topbar .theme-toggle .theme-label-dark{color:#707079}
html[data-theme=light] .topbar .theme-toggle .theme-label-light{color:#34343c}
html[data-theme=light] .sidebar{background:#f8f8fa!important;border-right:1px solid #dedee3!important;color:#303038}
html[data-theme=light] .sidebar .brand{border-bottom-color:#e0e0e5}
html[data-theme=light] .sidebar .brand-text{color:#303038}
html[data-theme=light] .sidebar .brand small,html[data-theme=light] .sidebar .nav-group-label{color:#73737e!important}
html[data-theme=light] .sidebar .brand-mark{background:#696972!important;color:#fff}
html[data-theme=light] .sidebar .nav button{color:#55555f}
html[data-theme=light] .sidebar .nav button:hover{background:#ededf1;color:#25252b}
html[data-theme=light] .sidebar .nav button.active{background:#e7e7ec;color:#26262e}
html[data-theme=light] .sidebar .nav button.active svg{color:#555461}
html[data-theme=light] .sidebar-bottom{border-color:#dedee3;color:#777780}
html[data-theme=light] .sidebar-logout{color:#55555f}
html[data-theme=light] .sidebar-logout:hover{background:#ededf1;color:#25252b}
.topbar-location strong{border:0;padding-left:0}
/* Dialogs: use the available screen space and keep scrolling unobtrusive. */
.project-card-modal{height:min(900px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)}
.project-card-modal>.modal-header{padding:18px 26px}.project-card-modal>.modal-header h2{margin-top:4px}.project-card-modal>form{padding:20px 26px 24px}.project-card-modal>form>.form-grid{gap:12px 18px}.project-card-modal>form>.form-grid .field input,.project-card-modal>form>.form-grid .field select{min-height:42px;padding:9px 12px}.project-card-modal>form>.form-grid .field textarea{min-height:72px}.project-card-modal>form>.actions{margin-top:16px;padding-top:14px}
@media(min-width:1050px){.project-card-modal>form>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.modal,.project-card-modal>form,.project-card-modal .project-tabs,.modal textarea,.modal .table-wrap{scrollbar-width:thin;scrollbar-color:#66666f transparent}
.modal::-webkit-scrollbar,.project-card-modal>form::-webkit-scrollbar,.project-card-modal .project-tabs::-webkit-scrollbar,.modal textarea::-webkit-scrollbar,.modal .table-wrap::-webkit-scrollbar{width:6px;height:6px}
.modal::-webkit-scrollbar-track,.project-card-modal>form::-webkit-scrollbar-track,.project-card-modal .project-tabs::-webkit-scrollbar-track,.modal textarea::-webkit-scrollbar-track,.modal .table-wrap::-webkit-scrollbar-track{background:transparent}
.modal::-webkit-scrollbar-thumb,.project-card-modal>form::-webkit-scrollbar-thumb,.project-card-modal .project-tabs::-webkit-scrollbar-thumb,.modal textarea::-webkit-scrollbar-thumb,.modal .table-wrap::-webkit-scrollbar-thumb{background:#66666f;border-radius:12px}
html[data-theme=light] .modal,html[data-theme=light] .project-card-modal>form,html[data-theme=light] .project-card-modal .project-tabs,html[data-theme=light] .modal textarea,html[data-theme=light] .modal .table-wrap{scrollbar-color:#b5b5bd transparent}
html[data-theme=light] .modal::-webkit-scrollbar-thumb,html[data-theme=light] .project-card-modal>form::-webkit-scrollbar-thumb,html[data-theme=light] .project-card-modal .project-tabs::-webkit-scrollbar-thumb,html[data-theme=light] .modal textarea::-webkit-scrollbar-thumb,html[data-theme=light] .modal .table-wrap::-webkit-scrollbar-thumb{background:#b5b5bd}
@media(max-width:720px){.project-card-modal{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.project-card-modal>.modal-header{padding:14px 18px}.project-card-modal>form{padding:16px 18px 24px}.modal,.project-card-modal>form,.project-card-modal .project-tabs,.modal textarea,.modal .table-wrap{scrollbar-width:none}.modal::-webkit-scrollbar,.project-card-modal>form::-webkit-scrollbar,.project-card-modal .project-tabs::-webkit-scrollbar,.modal textarea::-webkit-scrollbar,.modal .table-wrap::-webkit-scrollbar{display:none}}
/* Quote rows align search, item, quantity and action on the same baseline. */
#quote-lines .quote-line{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.35fr) 100px auto;gap:12px;align-items:start;margin:0 0 16px}
#quote-lines .quote-line .field{min-width:0;margin:0}
#quote-lines .quote-line .quote-remove{align-self:start;margin-top:25px;min-height:44px}
#quote-lines .quote-line .quote-count{display:block;min-height:18px;margin-top:4px}
@media(max-width:1050px){#quote-lines .quote-line{grid-template-columns:repeat(2,minmax(0,1fr))}#quote-lines .quote-line .quote-remove{align-self:end;margin-top:0}}
@media(max-width:600px){#quote-lines .quote-line{grid-template-columns:1fr;gap:10px;padding:14px;border:1px solid var(--line);border-radius:8px}#quote-lines .quote-line .quote-remove{width:100%;margin-top:0}}
#quote-lines .quote-line{grid-template-columns:minmax(240px,1fr) 110px auto;align-items:start}
#quote-lines .quote-line .quote-remove{margin-top:25px}
.quote-product{position:relative}.quote-combobox{position:relative}.quote-options{position:absolute;z-index:10;top:calc(100% + 5px);left:0;right:0;max-height:240px;overflow-y:auto;background:#303036;border:1px solid #56565f;border-radius:8px;box-shadow:0 12px 28px #0006;padding:5px;scrollbar-width:thin;scrollbar-color:#777 transparent}.quote-option{display:flex;flex-direction:column;gap:2px;align-items:flex-start;width:100%;min-height:52px;padding:9px 11px;text-align:left;border:0;border-radius:5px;background:transparent;color:#f2f2f4}.quote-option small{color:#bbbcc5;font-size:12px;font-weight:400}.quote-option:hover,.quote-option[aria-selected=true]{background:#4a4a53}.quote-no-results{padding:12px;color:#c3c3ca;font-weight:400}html[data-theme=light] .quote-options{background:#fff;border-color:#d5d5dc;box-shadow:0 12px 28px #0002}html[data-theme=light] .quote-option{color:#29292e}html[data-theme=light] .quote-option small,html[data-theme=light] .quote-no-results{color:#686872}html[data-theme=light] .quote-option:hover,html[data-theme=light] .quote-option[aria-selected=true]{background:#eeeef1}
@media(max-width:1050px){#quote-lines .quote-line{grid-template-columns:minmax(0,1fr) 100px auto}}
@media(max-width:600px){#quote-lines .quote-line{grid-template-columns:minmax(0,1fr) 85px;gap:10px}#quote-lines .quote-product{grid-column:1/-1}#quote-lines .quote-line .quote-remove{align-self:end;margin-top:0}}
.project-card-modal>form>.actions{position:sticky;bottom:0;z-index:2;background:var(--surface);padding:12px 0;margin-top:16px;border-top:1px solid var(--line);box-shadow:0 -8px 14px var(--surface)}
.trash-tabs{display:flex;gap:8px;margin:0 0 18px}.trash-tabs button{min-height:44px;padding:8px 18px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted-ink);font-weight:600}.trash-tabs button.active{background:var(--brand);border-color:var(--brand);color:#242429}html[data-theme=light] .trash-tabs button.active{color:#fff}
