:root{--nav:#111d2d;--nav-soft:#1a2a40;--blue:#2866df;--blue-light:#edf3ff;--ink:#18283e;--muted:#758194;--line:#e7ebf0;--bg:#f5f7fb;--green:#15846c;--amber:#ac7315;--red:#c64d58;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79a8ff;outline-offset:3px}button{border:0}svg.icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,h4,p{margin:0}h1{font-size:29px;letter-spacing:-.85px;line-height:1.25;font-weight:700}h2{font-size:17px;letter-spacing:-.25px}h3{font-size:15px;line-height:1.45}p{line-height:1.65}small,.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;text-transform:uppercase;color:var(--muted);margin-bottom:9px}.strong{font-weight:650}.money{font-variant-numeric:tabular-nums}.flex{display:flex;align-items:center;gap:10px}.spread{display:flex;align-items:center;justify-content:space-between;gap:16px}.stack{display:flex;flex-direction:column;gap:14px}.gap-6{gap:6px}.mt{margin-top:20px}.mt-sm{margin-top:10px}.mb{margin-bottom:20px}.wrap{flex-wrap:wrap}.right{text-align:right}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 16px;background:white;border:1px solid #dfe5ed;border-radius:8px;color:var(--ink);font-size:12px;font-weight:650;white-space:nowrap;transition:background .15s,transform .15s}.btn:hover{background:#f0f4fa}.btn.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 3px 6px #2866df18}.btn.primary:hover{background:#1e57c8}.btn.small{padding:6px 10px;min-height:32px;font-size:11px}.btn.ghost{background:transparent;border-color:transparent;box-shadow:none;color:var(--muted)}.btn.ghost:hover{background:#edf1f7;color:var(--ink)}.btn.danger{color:var(--red);border-color:#efcfd2}.btn.light{background:#ffffff12;border-color:#ffffff35;color:white}.btn.light:hover{background:#ffffff20}.icon-btn{background:transparent;color:var(--muted);border:1px solid transparent;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px}.icon-btn:hover{background:#edf2f9;color:var(--blue)}.icon-btn.small{width:28px;height:28px}.link-btn{background:none;padding:0;color:var(--blue);font-size:12px;font-weight:650;text-align:left}.link-btn:hover{text-decoration:underline}.avatar{height:34px;width:34px;flex-shrink:0;border-radius:10px;background:#eaf0fa;color:#4470aa;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:750;letter-spacing:.2px}.avatar.green{color:#338371;background:#e6f3ee}.avatar.purple{color:#8b65ad;background:#f0eaf8}.avatar.gold{color:#aa8139;background:#f9f0df}.avatar.large{width:50px;height:50px;border-radius:13px;font-size:17px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;background:#f0f3f7;color:#68788d;padding:4px 7px;font-size:10px;font-weight:650;line-height:1.35;white-space:nowrap}.badge.blue{background:#edf3ff;color:#3c6fca}.badge.green{background:#e9f7f0;color:#278562}.badge.amber{background:#fff4df;color:#aa7a25}.badge.red{background:#fff0f1;color:#bd5561}.badge.purple{background:#f3edfb;color:#8a64b0}.dot{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}.separator{height:1px;background:var(--line);margin:18px 0}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);min-width:0;box-shadow:0 2px 3px #0c223202}.panel-head{padding:21px 23px 16px;display:flex;justify-content:space-between;align-items:center;gap:14px}.panel-head p{font-size:11px;color:var(--muted);margin-top:5px}.panel-body{padding:0 23px 23px}.panel-pad{padding:23px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.grid-main{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,1fr);gap:20px}.text-note{font-size:12px;line-height:1.7;color:var(--muted)}.notice{background:#f1f5fb;border:1px solid #e2e9f4;border-radius:9px;padding:13px 15px;font-size:12px;line-height:1.65;color:#5b6f8b;display:flex;align-items:flex-start;gap:10px}.notice.amber{background:#fff9ed;border-color:#f3e7cb;color:#8c723a}.notice .icon{margin-top:1px;width:17px;height:17px}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.empty{padding:55px 25px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}.empty .empty-icon{width:55px;height:55px;border-radius:16px;background:#edf3fc;color:#7294cb;display:grid;place-items:center;margin-bottom:3px}.empty .empty-icon .icon{width:25px;height:25px}.empty p{max-width:390px;font-size:12px;color:var(--muted)}.boot{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:var(--muted)}.spinner{width:28px;height:28px;border:3px solid #dce6f4;border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* Login */
.login{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr;background:white}.login-story{position:relative;background:#111d2d;color:white;min-height:100vh;padding:44px 62px;overflow:hidden;display:flex;flex-direction:column}.login-story:before{content:"";position:absolute;width:800px;height:800px;bottom:-580px;left:-100px;border:1px solid #ffffff0a;border-radius:50%;box-shadow:0 0 0 100px #ffffff03,0 0 0 200px #ffffff02;pointer-events:none}.login-brand{display:flex;gap:16px;align-items:center;position:relative}.brand-logo{width:64px;height:45px;object-fit:cover;border-radius:8px}.login-brand strong{font-size:13px;letter-spacing:1.6px}.login-brand span{display:block;color:#92a3ba;font-size:10px;letter-spacing:2px;margin-top:5px}.login-copy{position:relative;margin:auto 0;padding:75px 0 65px;max-width:465px}.login-copy .eyebrow{color:#8fa8cf;margin-bottom:25px;letter-spacing:2.5px}.login-copy h1{font-size:54px;font-weight:600;line-height:1.15;letter-spacing:-2px}.login-copy h1 em{font-style:normal;color:#87adff}.login-copy>p{color:#9fadc0;font-size:14px;line-height:1.8;max-width:370px;margin-top:25px}.login-features{margin-top:36px;display:flex;gap:9px;flex-wrap:wrap}.login-feature{display:flex;align-items:center;gap:8px;font-size:11px;color:#cad5e7;border:1px solid #ffffff18;border-radius:25px;padding:9px 13px}.login-feature .icon{width:14px;height:14px;color:#84aaff}.login-foot{position:relative;color:#7d90aa;font-size:11px;display:flex;justify-content:space-between;gap:15px}.login-form-area{display:flex;align-items:center;justify-content:center;padding:60px 50px;position:relative}.login-form-wrap{width:100%;max-width:360px}.login-form-wrap h1{font-size:30px;letter-spacing:-1px}.login-form-wrap>p{margin-top:10px;margin-bottom:32px;font-size:13px;color:var(--muted)}.login-form-wrap .btn.primary{width:100%;margin-top:8px;height:45px;font-size:13px}.login-form-wrap .login-divider{height:1px;background:var(--line);margin:30px 0 24px}.login-security{display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:#7f8a9a;line-height:1.6}.login-security .icon{width:15px;height:15px}.login-bottom{position:absolute;bottom:30px;text-align:center;color:#9aa3af;font-size:10px;letter-spacing:.3px}.error-message{background:#fff0f1;border:1px solid #f3d9db;color:#ab4852;padding:12px;border-radius:7px;font-size:12px;margin-bottom:15px}.login-mark{display:grid;place-items:center;width:43px;height:43px;border:1px solid #e1e9f8;border-radius:12px;background:#f1f5ff;color:var(--blue);margin-bottom:23px}
/* App frame */
.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--nav);color:#93a3b9;display:flex;flex-direction:column;z-index:30;padding:25px 15px 14px}.sidebar-brand{padding:0 11px;display:flex;align-items:center;gap:10px;margin-bottom:31px}.sidebar-brand img{width:58px;height:41px;object-fit:cover;border-radius:7px}.sidebar-brand strong{display:block;font-size:11px;letter-spacing:1.45px;color:#edf2fb;line-height:1.65}.sidebar-brand span{font-size:8px;letter-spacing:2.25px;color:#8b9caf}.nav-section{font-size:9px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;margin:22px 14px 11px;color:#637b99}.nav-section:first-child{margin-top:0}.sidebar nav{overflow:auto;scrollbar-width:thin;flex:1}.nav-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:7px;color:#95a7be;font-size:12px;letter-spacing:.1px;margin-bottom:3px;font-weight:500;transition:background .15s}.nav-item .icon{width:17px;height:17px}.nav-item:hover{background:#1b2d44;color:white}.nav-item.active{background:#2d66d7;color:white;box-shadow:0 4px 12px #0000000f}.nav-item .count{margin-left:auto;font-size:9px;background:#ffffff15;color:#c1d1e8;min-width:20px;padding:2px 5px;border-radius:5px;text-align:center}.nav-item.active .count{background:#ffffff22;color:white}.sidebar-note{padding:15px 13px;background:#18283d;border:1px solid #24364e;border-radius:10px;margin:20px 5px;color:#95a9c6;font-size:10px;line-height:1.7}.sidebar-note strong{display:block;color:#ccdaed;font-size:11px;margin-bottom:4px}.sidebar-user{padding:14px 9px 0;display:flex;align-items:center;gap:10px;border-top:1px solid #263448}.sidebar-user .avatar{background:#2c3f59;color:#b6cbea;height:32px;width:32px;border-radius:50%}.sidebar-user strong{display:block;color:#d5dfed;font-size:11px}.sidebar-user small{font-size:9px;display:block;margin-top:4px;color:#788fae}.sidebar-user .icon-btn{margin-left:auto;color:#879dbb;width:28px}.sidebar-user .icon-btn:hover{background:#2a3c57;color:#eef4ff}.main-shell{margin-left:238px;min-height:100vh}.topbar{height:74px;border-bottom:1px solid var(--line);background:#ffffffed;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:20px;position:sticky;top:0;z-index:20;backdrop-filter:blur(10px)}.workspace{display:flex;align-items:center;gap:10px;min-width:0}.workspace-mark{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;color:#667c9b}.workspace select{border:0;background:transparent;max-width:265px;min-width:0;font-size:11px;font-weight:600;color:#415672;padding:5px 18px 5px 0;cursor:pointer}.topbar-right{display:flex;align-items:center;gap:14px}.searchbox{display:flex;align-items:center;gap:8px;color:#a4aebb}.searchbox input{width:180px;border:0;background:transparent;font-size:11px;outline:none;color:var(--ink)}.searchbox input::placeholder{color:#9ba7b7}.searchbox kbd{font:10px inherit;background:#f8f9fb;border:1px solid #e4e9f0;border-radius:4px;padding:3px 5px;color:#9aa6b8}.top-divider{height:23px;width:1px;background:var(--line)}.topbar-avatar{width:30px;height:30px;border-radius:50%;background:#ecf1fa;font-size:10px}.mobile-menu{display:none}.preview-strip{background:#fff7e4;border-bottom:1px solid #eadfbd;font-size:10px;color:#8b7236;text-align:center;padding:8px 18px;line-height:1.6}.content{padding:29px 32px 45px;max-width:1740px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-head p{font-size:12px;color:var(--muted);margin-top:9px}.page-head h1{font-size:26px}.page-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.date-chip{font-size:11px;color:#6b7c94;display:flex;align-items:center;gap:7px}.hero{background:#172943;color:#ecf3ff;border:1px solid #1d3656;border-radius:13px;display:flex;justify-content:space-between;align-items:center;padding:25px 27px;margin-bottom:22px;position:relative;overflow:hidden;gap:18px}.hero:after{content:"";position:absolute;width:280px;height:280px;right:50px;top:-155px;border:1px solid #a8c7ff12;box-shadow:0 0 0 40px #a8c7ff04,0 0 0 80px #a8c7ff03;border-radius:50%;pointer-events:none}.hero .eyebrow{font-size:9px;color:#86a7d4;margin-bottom:10px}.hero h2{font-size:19px;letter-spacing:-.4px;font-weight:550}.hero p{font-size:11px;color:#9db3d2;margin-top:8px}.hero .btn{z-index:1;font-size:10px;min-height:35px;padding:9px 13px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:19px 20px;min-width:0}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:550;color:#7e8c9f}.stat-icon{width:29px;height:29px;border-radius:8px;background:#eef4ff;color:#5b86d9;display:grid;place-items:center}.stat-icon .icon{width:15px;height:15px}.stat-value{font-size:27px;font-weight:650;letter-spacing:-.85px;margin-top:11px;line-height:1.2;font-variant-numeric:tabular-nums}.stat-foot{font-size:10px;color:#97a1ae;margin-top:12px;display:flex;gap:6px;align-items:center}.stat-foot .badge{font-size:9px;padding:3px 5px}.chart-summary{display:flex;align-items:baseline;gap:10px;padding-top:1px}.chart-summary strong{font-size:25px;letter-spacing:-.7px}.chart-summary span{font-size:10px;color:var(--muted)}.chart{width:100%;display:block;height:178px;margin-top:15px}.chart text{font:10px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;fill:#94a0b1}.chart line{stroke:#edf0f5;stroke-dasharray:3 3}.pipeline-row{margin:19px 0 0}.pipeline-row .spread{font-size:11px;margin-bottom:9px}.pipeline-row .spread span{color:#8390a1}.progress{height:5px;background:#f0f3f8;border-radius:4px;overflow:hidden}.progress>i{height:100%;background:#6b94e1;border-radius:4px;display:block}.pipeline-bottom{margin-top:21px;background:#f7f9fc;border:1px solid #eef2f7;border-radius:8px;display:flex;align-items:center;justify-content:space-between;padding:11px 12px;font-size:10px;color:#8090a6}.pipeline-bottom strong{color:#4d698b}.follow-up{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #f0f3f7}.follow-up:last-child{border-bottom:0;padding-bottom:0}.follow-up strong{font-size:11px;font-weight:650;display:block}.follow-up p{font-size:10px;color:var(--muted);margin-top:4px}.follow-up .badge{margin-left:auto;font-size:9px}.activity-item{display:flex;gap:13px;align-items:flex-start;padding:14px 0;border-bottom:1px solid #f1f3f7}.activity-item:last-child{border-bottom:0}.activity-icon{width:28px;height:28px;border-radius:8px;background:#eef4fd;color:#7190bd;display:grid;place-items:center;flex-shrink:0}.activity-icon .icon{width:14px;height:14px}.activity-item strong{font-size:11px;display:block}.activity-item p{font-size:10px;color:#94a0b1;margin-top:4px}.activity-item time{font-size:9px;color:#9aa7b7;margin-left:auto;white-space:nowrap;padding-top:3px}.bottom-note{font-size:9px;color:#a6afbc;display:flex;justify-content:space-between;margin-top:25px;gap:14px}
/* Records, cards and board */
.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px;gap:12px;flex-wrap:wrap}.tabs{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.tab{padding:8px 12px;border:1px solid transparent;border-radius:7px;background:transparent;font-size:11px;color:#8793a4;white-space:nowrap}.tab.active{background:white;border-color:var(--line);color:#345680;box-shadow:0 1px 2px #00000003;font-weight:650}.tab span{font-size:9px;background:#eef2f7;color:#8d9bb0;padding:2px 5px;border-radius:4px;margin-left:5px}.view-toggle{display:flex;padding:3px;border:1px solid var(--line);border-radius:7px;background:white}.view-toggle button{width:29px;height:26px;display:grid;place-items:center;background:transparent;color:#99a7ba;border-radius:4px}.view-toggle button.active{background:#edf3fe;color:var(--blue)}.view-toggle .icon{width:15px;height:15px}.table-wrap{overflow:auto;border-radius:var(--radius)}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:9px;letter-spacing:.35px;font-weight:600;color:#8c99ad;background:#fafbfd;padding:13px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap}td{padding:15px 20px;border-bottom:1px solid #eff2f6;font-size:11px;color:#64758d;vertical-align:middle}tr:last-child td{border-bottom:0}td .primary-text{font-size:11px;font-weight:600;color:#314865;display:block}td .subtext{font-size:10px;color:#9aa6b5;margin-top:5px;display:block}td .avatar{width:29px;height:29px;font-size:9px;border-radius:8px}.row-click{cursor:pointer}.row-click:hover td{background:#fafcff}.table-bottom{padding:13px 20px;border-top:1px solid var(--line);font-size:10px;color:#9aa6b5}.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(221px,1fr);gap:16px;overflow:auto;padding:1px 1px 15px;align-items:start;min-height:450px;scrollbar-width:thin}.board-column{background:#eef1f6;border:1px solid #e8edf4;border-radius:11px;padding:12px;min-height:270px}.column-head{padding:4px 2px 14px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:650;color:#596e8b}.column-head .badge{margin-left:auto;font-size:9px;padding:3px 6px;background:#e2e8f1;color:#7890ae}.column-head .icon-btn{width:21px;height:21px}.board-card{background:white;border:1px solid #e4e9f1;border-radius:9px;padding:15px;margin-bottom:10px;cursor:pointer;box-shadow:0 2px 2px #152e4b03;transition:transform .15s,box-shadow .15s}.board-card:last-child{margin-bottom:0}.board-card:hover{box-shadow:0 3px 13px #223a5c10;transform:translateY(-1px)}.board-card .source{font-size:9px;color:#96a2b3}.board-card h3{font-size:12px;color:#355071;margin-top:14px}.board-card p{font-size:10px;color:#9ca7b5;margin-top:6px}.board-card .amount{font-size:14px;color:#385475;font-weight:650;display:block;margin-top:14px;font-variant-numeric:tabular-nums}.board-card .card-bottom{border-top:1px solid #f0f3f7;padding-top:11px;margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:9px;color:#93a2b7}.board-card .card-bottom .icon{width:12px;height:12px}.board-empty{text-align:center;padding:26px 5px;color:#a4afbd;font-size:10px;border:1px dashed #dbe2ed;border-radius:8px}.board-column.drag-over{background:#e0eaff;outline:2px dashed #80a2de}.service-card{padding:22px;display:flex;flex-direction:column;gap:14px}.service-icon{width:41px;height:41px;border-radius:11px;background:#edf3ff;color:#648adc;display:grid;place-items:center}.service-card h3{font-size:14px;margin-top:4px}.service-card .description{font-size:11px;color:#8c9aab;line-height:1.8;min-height:58px}.service-price{font-size:25px;font-weight:650;letter-spacing:-.8px;margin-top:auto}.service-price span{font-size:11px;color:#91a0b4;font-weight:400;letter-spacing:0}.service-card .footer{padding-top:14px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#98a3b2}.service-card.inactive{opacity:.68}.search-results .result{display:flex;align-items:center;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line);cursor:pointer}.search-results .result:hover{background:#f9fbff}.search-results .result:last-child{border-bottom:0}.result h3{font-size:12px}.result p{font-size:10px;color:var(--muted);margin-top:4px}.result .badge{margin-left:auto}
/* Forms and dialogs */
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px;min-width:0}.field label{font-size:11px;font-weight:600;color:#5a6e88}.field input,.field select,.field textarea,.form-control{border:1px solid #dfe6ef;border-radius:7px;background:#fff;color:#344a67;min-height:41px;padding:10px 12px;width:100%;font-size:12px;line-height:1.5}.field input::placeholder,.field textarea::placeholder{color:#b1bac6}.field textarea{min-height:87px;resize:vertical}.field small{font-size:10px;color:#99a6b7;line-height:1.6}.field input:disabled,.field select:disabled{background:#f5f7fa;color:#92a0b2}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid .full{grid-column:1/-1}.checkbox-label{display:flex;gap:9px;align-items:center;font-size:12px;color:#657c99}.checkbox-label input{accent-color:var(--blue);width:16px;height:16px}.form-section{font-size:12px;font-weight:650;margin:8px 0 18px;padding-bottom:10px;border-bottom:1px solid var(--line)}dialog{border:1px solid #dfe7f2;border-radius:17px;padding:0;box-shadow:0 30px 100px #0b1d4640;color:var(--ink);width:min(640px,calc(100vw - 32px));max-height:90vh;background:white;overflow:auto}dialog::backdrop{background:#10203c66;backdrop-filter:blur(3px)}dialog.wide{width:min(1000px,calc(100vw - 32px))}dialog.small-dialog{width:min(460px,calc(100vw - 32px))}.modal-head{padding:23px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;position:sticky;top:0;z-index:4}.modal-head h2{font-size:18px}.modal-head p{font-size:11px;color:var(--muted);margin-top:6px}.modal-content{padding:24px 26px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid var(--line);background:#fafbfd;position:sticky;bottom:0;z-index:3}.modal-footer .spacer{flex:1}.record-header{display:flex;align-items:center;gap:14px;margin-bottom:22px}.record-header h2{font-size:22px}.record-header p{color:var(--muted);font-size:11px;margin-top:6px}.detail-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(220px,1fr);gap:24px}.detail-label{font-size:10px;text-transform:uppercase;letter-spacing:.65px;color:#9ba7b8;margin-bottom:6px}.detail-value{font-size:12px;color:#566e8c;line-height:1.75;overflow-wrap:anywhere}.detail-pair{margin-bottom:18px}.detail-box{background:#f7f9fc;border:1px solid #e8edf5;border-radius:10px;padding:19px}.detail-box h3{font-size:12px;margin-bottom:18px}.detail-box .spread{font-size:11px;color:#7d8ea6;margin-bottom:14px}.detail-box .spread:last-child{margin-bottom:0}.detail-box .spread strong{font-size:12px;color:#456184}.detail-list{border:1px solid var(--line);border-radius:9px;overflow:hidden}.detail-list-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;border-bottom:1px solid var(--line);font-size:11px}.detail-list-item:last-child{border-bottom:0}.detail-list-item p{font-size:10px;color:var(--muted);margin-top:4px}.detail-list-item button.link-btn{font-size:11px}.line-items{overflow-x:auto;border:1px solid var(--line);border-radius:9px}.line-items table{min-width:750px}.line-items th{padding:10px;font-size:9px}.line-items td{padding:10px;vertical-align:top}.line-items input,.line-items select{border:1px solid #dfe7f2;border-radius:5px;padding:8px;font-size:11px;width:100%;color:#4d6586;background:#fff;min-height:34px}.line-items .line-desc{min-width:220px}.line-items .service-pick{font-size:9px;margin-bottom:5px;background:#f8fafd;min-height:26px;padding:5px}.line-items .number-col{width:100px}.line-items .qty-col{width:75px}.line-items .unit-col{width:80px}.line-items .line-total{font-size:12px;white-space:nowrap;font-weight:600;padding-top:14px}.line-items .remove-col{width:25px}.estimate-summary{background:#f4f7fc;border-radius:10px;border:1px solid #e5edf9;padding:20px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px;margin-top:15px}.estimate-summary small{font-size:10px;color:#8a9bb1;display:block;margin-bottom:8px}.estimate-summary strong{font-size:20px;letter-spacing:-.5px;font-weight:650;color:#456891}.quote-total{max-width:310px;margin:22px 0 0 auto}.quote-total .spread{font-size:12px;color:#7286a0;margin-bottom:12px}.quote-total .grand{border-top:1px solid var(--line);padding-top:14px;font-size:17px;color:#2b496f;font-weight:700}.quote-items td,.quote-items th{padding:12px 14px}.checklist{display:flex;flex-direction:column;gap:1px}.checklist label{padding:13px 0;border-bottom:1px solid #edf1f7;display:flex;gap:11px;align-items:center;color:#657a98;font-size:12px}.checklist label:last-child{border-bottom:0}.checklist input{width:17px;height:17px;accent-color:var(--blue)}.checklist input:checked+span{color:#99a8ba;text-decoration:line-through}.attachment-section{margin-top:24px;padding-top:21px;border-top:1px solid var(--line)}.attachment-section h3{font-size:13px}.attachment-list{margin-top:12px;display:flex;flex-direction:column;gap:8px}.attachment-file{display:flex;align-items:center;gap:10px;padding:11px 13px;background:#f7f9fc;border:1px solid #edf1f7;border-radius:7px;color:#738ba9;font-size:11px}.attachment-file .icon{width:16px;height:16px}.attachment-file small{margin-left:auto;color:#a5b0bf;font-size:9px}.upload-label{position:relative;overflow:hidden}.upload-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.secret{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:15px!important;background:#f2f6fd!important;letter-spacing:.6px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-tile{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px;border:1px solid var(--line);border-radius:10px;background:white;color:#5e7da5;text-align:left}.quick-tile:hover{border-color:#96b5e8;background:#f8fbff}.quick-tile strong{font-size:12px}.quick-tile small{font-size:10px;color:#96a5b9}.form-error{font-size:11px;color:var(--red);line-height:1.7}.settings-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.settings-grid .panel-body{padding-top:12px}.role-card{border:1px solid var(--line);padding:16px;border-radius:8px}.role-card h3{font-size:12px}.role-card p{font-size:11px;color:var(--muted);margin-top:8px}.platform-title{background:#eaf0fd;border:1px solid #dce6fc;border-radius:12px;padding:24px;display:flex;align-items:center;gap:18px;margin-bottom:22px}.platform-title .icon{width:28px;height:28px;color:#5b7ec2}.platform-title h2{font-size:17px;color:#3c5c90}.platform-title p{font-size:11px;color:#8498b8;margin-top:7px}.calendar-head{padding:20px 22px;display:flex;align-items:center;justify-content:space-between}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekday{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#9aa8ba;text-align:center;padding:14px 5px;background:#f9fbfd;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.calendar-day{min-height:112px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 8px;font-size:11px;color:#8395ae}.calendar-day:nth-child(7n){border-right:0}.calendar-day.outside{background:#fbfcfe;color:#c7ced8}.calendar-day.today{background:#f6f9ff}.calendar-day .day-num{width:23px;height:23px;display:inline-grid;place-items:center;margin-bottom:5px}.calendar-day.today .day-num{background:var(--blue);color:white;border-radius:50%}.calendar-event{font-size:9px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;text-align:left;background:#edf3fd;color:#6687ba;border-left:2px solid #8ba9d7;padding:5px 6px;border-radius:3px;margin-top:4px;cursor:pointer}.calendar-event.lead{background:#fff6e6;color:#a8905b;border-color:#d0b270}.calendar-more{font-size:8px;color:#a1adbd;padding:5px}.calendar-wrap{overflow:auto}.calendar-wrap>.calendar-grid{min-width:650px}#toasts{position:fixed;bottom:24px;right:25px;z-index:120;display:flex;flex-direction:column;gap:10px;pointer-events:none;max-width:400px}.toast{pointer-events:auto;display:flex;align-items:center;gap:12px;padding:15px 18px;border-radius:10px;background:#1c324e;color:white;font-size:12px;box-shadow:0 5px 25px #0f25433b;line-height:1.6;animation:toast .2s ease}.toast.error{background:#973f4d}.toast .icon{width:18px;height:18px;flex-shrink:0}@keyframes toast{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}#print-root{display:none}.print-proposal{max-width:850px;margin:auto;padding:45px;color:#263b57;background:white}.print-brand{display:flex;align-items:center;gap:15px}.print-brand img{width:90px;border-radius:5px}.print-brand h1{font-size:21px}.print-brand p{font-size:11px;color:#7c8ba2}.print-proposal h2{font-size:26px;margin-top:35px}.print-proposal .proposal-meta{display:flex;justify-content:space-between;margin:25px 0 30px;font-size:12px;line-height:1.8}.print-proposal table{font-size:12px}.print-proposal th{background:#f0f3f8}.print-proposal .print-note{margin-top:30px;font-size:11px;color:#72839d;line-height:1.8}.print-proposal .demo-watermark{border:1px solid #e7ca88;background:#fff7e2;color:#9a7c3b;font-size:10px;padding:10px;margin-bottom:24px;text-align:center}.mobile-backdrop{display:none}
@media(min-width:1600px){.content{padding-top:36px}.stats{gap:22px}.stat{padding:24px}.chart{height:208px}}
@media(max-width:1150px){.sidebar{width:212px}.main-shell{margin-left:212px}.sidebar-brand{padding:0 5px}.content{padding:25px 22px 40px}.topbar{padding:0 22px}.grid-main{grid-template-columns:1.4fr 1fr}.stat{padding:15px}.stat-value{font-size:24px}.stat-top{font-size:10px}.searchbox input{width:145px}.workspace select{max-width:205px}.grid3{grid-template-columns:1fr 1fr}.sidebar-note{display:none}.login-story{padding:35px 42px}.login-copy h1{font-size:45px}.login-form-area{padding:45px 35px}}
@media(max-width:950px){.stats{grid-template-columns:1fr 1fr}.grid-main{grid-template-columns:1fr}.grid2{grid-template-columns:1fr}.topbar .searchbox{display:none}.page-head{align-items:flex-start}.page-actions .date-chip{display:none}.settings-grid{grid-template-columns:1fr}.hero{padding:23px}.detail-grid{grid-template-columns:1fr}.detail-grid .detail-box{order:0}.login-copy h1{font-size:39px}.login-features{flex-direction:column;align-items:flex-start}.login-story{padding:30px}.login-form-area{padding:35px}.login-foot span:last-child{display:none}.modal-head{padding:20px}.modal-content{padding:20px}.modal-footer{padding:16px 20px}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:240px}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.mobile-backdrop.show{display:block;position:fixed;inset:0;background:#14264166;z-index:25}.mobile-menu{display:inline-flex}.topbar{height:65px;padding:0 16px;gap:12px}.topbar-right{gap:7px}.topbar-right>.top-divider,.topbar-right>.topbar-avatar{display:none}.workspace-mark{display:none}.workspace select{max-width:185px;font-size:10px}.workspace>.badge{display:none}.content{padding:23px 17px 35px}.page-head{gap:12px;margin-bottom:20px;flex-wrap:wrap}.page-head h1{font-size:24px}.page-head p{font-size:11px}.page-head .eyebrow{font-size:9px}.btn{font-size:11px;min-height:37px;padding:9px 12px}.page-actions{gap:7px}.stats{gap:10px}.stat{padding:16px 14px}.stat-top{font-size:9px}.stat-icon{width:25px;height:25px}.stat-foot{font-size:9px;line-height:1.5;flex-wrap:wrap}.stat-value{font-size:25px}.hero h2{font-size:17px}.hero .btn{display:none}.hero{padding:22px;margin-bottom:17px}.hero p{font-size:10px}.panel-head{padding:19px 18px 15px}.panel-body{padding:0 18px 19px}.panel-pad{padding:19px}.grid3{grid-template-columns:1fr}.toolbar{margin-bottom:14px}.tab{font-size:10px;padding:7px 9px}.board{grid-auto-columns:230px;min-height:360px}th,td{padding:13px 16px}.table-wrap table{min-width:540px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.modal-footer{flex-wrap:wrap}.modal-head h2{font-size:16px}.modal-head p{font-size:10px}.record-header h2{font-size:20px}.estimate-summary{grid-template-columns:1fr 1fr;padding:16px}.estimate-summary strong{font-size:19px}.estimate-summary>div:last-child{grid-column:1/-1}.login{grid-template-columns:1fr}.login-story{min-height:0;padding:24px 27px}.login-copy{padding:30px 0 18px;margin:0}.login-copy .eyebrow{display:none}.login-copy h1{font-size:30px;letter-spacing:-1px;max-width:330px}.login-copy>p,.login-features,.login-foot{display:none}.login-brand img{width:54px;height:37px}.login-brand strong{font-size:11px}.login-brand span{font-size:8px}.login-form-area{padding:35px 27px 65px;align-items:flex-start}.login-form-wrap h1{font-size:26px}.login-mark{display:none}.login-bottom{bottom:20px}.bottom-note{font-size:8px}.calendar-head{padding:17px}.calendar-head h2{font-size:15px}.calendar-head .btn{font-size:9px;min-height:30px;padding:6px 9px}#toasts{left:16px;right:16px;bottom:15px;max-width:none}.toast{font-size:11px}.platform-title{padding:20px}.platform-title p{font-size:10px}.platform-title h2{font-size:15px}}
@media print{body{background:white!important}body>*{display:none!important}body>#print-root{display:block!important}.print-proposal{padding:0;max-width:none}th,td{break-inside:avoid}thead{display:table-header-group}tr{break-inside:avoid}button{display:none!important}.print-proposal .quote-total{break-inside:avoid}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}@page{margin:17mm;size:auto}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* First-run setup and platform account assignment */
.setup-area{overflow:auto;padding:36px 28px}.setup-wrap{max-width:620px;width:100%;padding:18px 0 40px}.setup-wrap .form-section{margin-top:24px}.assignment-list{display:flex;flex-direction:column;gap:9px;margin-top:10px}.assignment-row{display:grid;grid-template-columns:1fr 150px;gap:12px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--panel-2,#f8fafc)}.assignment-row .checkbox-label{margin:0;display:flex;align-items:center;gap:10px}.assignment-row .checkbox-label span{display:flex;flex-direction:column;gap:2px}.assignment-row .checkbox-label small{font-size:10px;color:var(--muted)}.assignment-row select{width:100%}@media(max-width:640px){.assignment-row{grid-template-columns:1fr}.setup-area{padding:24px 18px}}
.hidden{display:none!important}.inline-property{border:1px solid #dbe6f6;background:#f7faff;border-radius:9px;padding:15px 16px;margin:-2px 0 18px}.inline-property .field{margin-bottom:10px}.property-create-link{margin-top:2px;justify-content:flex-start;font-size:10px}.line-items .item-pick{font-size:9px;margin-bottom:5px;background:#f8fafd;min-height:28px;padding:5px}#referral-select{margin-top:2px}

/* v0.5 operations, reports, files, profile, product imagery */
.avatar-button{border:0;padding:0;cursor:pointer}.avatar-button:hover{box-shadow:0 0 0 3px #dce8ff}.customizable-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.dash-grid .wide-panel{grid-column:1/-1}.report-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}.metric-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.metric-row:last-child{border-bottom:0}.widget-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.widget-choice{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:14px;background:#fafcff;min-height:54px}.widget-choice .icon{color:#6d89b7}.widget-choice input{width:17px;height:17px}.record-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow:auto}.record-tabs button{background:none;padding:10px 12px;color:var(--muted);font-size:11px;font-weight:650;white-space:nowrap;border-bottom:2px solid transparent}.record-tabs button.active{color:var(--blue);border-color:var(--blue)}.record-tab-body{min-height:220px}.gallery-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px}.gallery-file{display:flex;flex-direction:column;gap:6px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px;min-width:0}.gallery-file span{font-size:10px;font-weight:700}.gallery-file small{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-thumb{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;background:#eef2f7}.attachment-category{height:34px;padding:5px 8px;font-size:10px;border:1px solid #dfe5ed;border-radius:7px;background:white;color:var(--ink)}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}.product-card{overflow:hidden;cursor:pointer;transition:transform .15s,border-color .15s}.product-card:hover{transform:translateY(-2px);border-color:#cbd9ef}.product-image{width:100%;height:155px;object-fit:cover;background:#eef3f9;display:grid;place-items:center;color:#8fa1bb}.product-image.placeholder .icon{width:36px;height:36px}.product-card-body{padding:16px}.product-card-body h3{margin-top:7px}.product-card-body p{font-size:11px;color:var(--muted);min-height:36px;margin-top:7px}.inventory-hero{display:grid;grid-template-columns:210px 1fr;gap:20px;align-items:start;margin-bottom:20px}.inventory-main-image{width:210px;height:160px;object-fit:cover;border-radius:11px;background:#eef3f9;display:grid;place-items:center;color:#8fa1bb}.inventory-main-image.placeholder .icon{width:44px;height:44px}.quote-product{display:flex;align-items:center;gap:10px}.quote-item-image{width:52px;height:42px;object-fit:cover;border-radius:6px;border:1px solid #e1e7ef}.calendar-day.drag-over{background:#edf4ff!important;box-shadow:inset 0 0 0 2px #6f9ded}.calendar-event[draggable="true"]{cursor:grab}.calendar-event[draggable="true"]:active{cursor:grabbing}.board-column.drag-over{outline:2px dashed #6f9ded;outline-offset:-4px}.po-line input{width:100%;min-height:34px;border:1px solid #dfe5ed;border-radius:6px;padding:7px 9px}.print-proposal .quote-item-image{width:48px;height:38px}.topbar-avatar{display:inline-flex}
@media(max-width:950px){.dash-grid,.report-grid{grid-template-columns:1fr}.widget-picker{grid-template-columns:1fr}.inventory-hero{grid-template-columns:1fr}.inventory-main-image{width:100%;height:210px}}
@media(max-width:700px){.product-grid{grid-template-columns:1fr 1fr;gap:10px}.product-image{height:115px}.product-card-body{padding:12px}.gallery-list{grid-template-columns:repeat(2,1fr)}.attachment-section .spread{align-items:flex-start}.attachment-section .spread>.flex{flex-wrap:wrap}.quote-item-image{display:none}}
@media(max-width:460px){.product-grid{grid-template-columns:1fr}.gallery-list{grid-template-columns:1fr 1fr}}

/* v0.5.1 calendar scheduling board */
.calendar-layout{display:grid;grid-template-columns:1fr;gap:18px;align-items:start}.calendar-layout.with-ready{grid-template-columns:250px minmax(0,1fr)}.calendar-ready{position:sticky;top:82px;max-height:calc(100vh - 110px);overflow:hidden}.calendar-ready .panel-head{padding-bottom:12px}.calendar-ready-list{padding:0 12px 14px;display:flex;flex-direction:column;gap:9px;max-height:calc(100vh - 190px);overflow:auto}.calendar-ready-card{border:1px solid var(--line);border-radius:9px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:5px;cursor:grab;transition:border-color .15s,background .15s,transform .15s}.calendar-ready-card:hover{border-color:#b7cae8;background:#f9fbff;transform:translateY(-1px)}.calendar-ready-card:active{cursor:grabbing}.calendar-ready-card strong{font-size:11px;color:var(--ink)}.calendar-ready-card>span,.calendar-ready-card small{font-size:9px;color:var(--muted);line-height:1.4}.calendar-drag-hint{display:flex;align-items:center;gap:5px;margin-top:5px;padding-top:7px;border-top:1px solid var(--line);font-size:9px;font-weight:700;color:#6b89b8}.calendar-drag-hint .icon{width:13px;height:13px}.calendar-ready-empty{padding:24px 10px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;color:var(--muted)}.calendar-ready-empty .icon{width:24px;height:24px}.calendar-ready-empty strong{font-size:11px;color:var(--ink)}.calendar-ready-empty span{font-size:9px;line-height:1.5}.calendar-day.drag-over{background:#e9f3ff!important;box-shadow:inset 0 0 0 2px #5f91df}.calendar-day.drag-over:after{content:'Drop to schedule';display:block;margin-top:5px;font-size:8px;font-weight:800;color:#5f7fae;text-transform:uppercase;letter-spacing:.4px}
@media(max-width:900px){.calendar-layout.with-ready{grid-template-columns:1fr}.calendar-ready{position:static;max-height:none}.calendar-ready-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));max-height:none}.calendar-ready-card{cursor:default}.calendar-drag-hint{display:none}}

.calendar-event-row{display:flex;align-items:stretch;gap:3px;margin-top:4px;min-width:0}.calendar-event-row .calendar-event{margin-top:0;flex:1;min-width:0}.calendar-remove{width:22px;min-width:22px;border:1px solid #d8e1ee;border-radius:4px;background:#fff;color:#9a6a70;font-size:14px;line-height:1;cursor:pointer}.calendar-remove:hover{background:#fff2f2;border-color:#efc3c7;color:#a84550}.calendar-remove:focus-visible{outline:2px solid #6f9ded;outline-offset:1px}

.calendar-event.calendar-item{background:#f2edff;color:#705ca5;border-color:#9a87c8}.calendar-event.service{background:#eaf8f4;color:#4d8876;border-color:#79b29f}.calendar-event.task{background:#f3f5f8;color:#6f7e91;border-color:#a4afbd}.calendar-event.calendar-item.lead{background:#fff3e4;color:#9b7b45;border-color:#d0ac6b}.calendar-event.calendar-item.customer{background:#eef7ff;color:#527fa6;border-color:#83aed0}.calendar-event.calendar-item.estimate{background:#f8f0ff;color:#805a9e;border-color:#aa86c5}.calendar-event.calendar-item.service{background:#eaf8f4;color:#4d8876;border-color:#79b29f}.calendar-event.calendar-item.task{background:#f3f5f8;color:#6f7e91;border-color:#a4afbd}


/* v0.5.7 profile popover + email configuration */
.topbar-profile-wrap{position:relative;display:flex;align-items:center}.profile-popover{position:absolute;right:0;top:calc(100% + 10px);width:250px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px #10233b24;padding:8px;z-index:80}.profile-popover[hidden]{display:none}.profile-popover-head{display:flex;gap:10px;align-items:center;padding:10px 9px 12px;border-bottom:1px solid var(--line);margin-bottom:5px;min-width:0}.profile-popover-head>div{min-width:0}.profile-popover-head strong,.profile-popover-head small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-popover-head strong{font-size:12px}.profile-popover-head small{font-size:9px;color:var(--muted);margin-top:3px}.profile-popover>button{width:100%;display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;background:transparent;color:var(--ink);text-align:left;font-size:11px;font-weight:650}.profile-popover>button:hover{background:#f1f5fb}.profile-popover>button .icon{width:16px;height:16px;color:#70839d}.profile-popover-sep{height:1px;background:var(--line);margin:5px 0}.email-settings-note{font-size:10px;color:var(--muted)}
@media(max-width:700px){.topbar-right>.topbar-profile-wrap{display:none}.profile-popover{right:-8px}}

/* v0.5.10: always-accessible mobile Settings and notification controls */
.mobile-settings-shortcut{display:none}
@media(max-width:700px){.mobile-settings-shortcut{display:inline-flex;align-items:center}.mobile-settings-shortcut .icon-btn{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center}.notification-settings-card{grid-column:1/-1}}
