:root{--accent:#6656e8;--accent2:#8878fc;--tint:#f0eeff;--deep:#211c59;--bg:#f6f7fb;--card:#fff;--ink:#191c2e;--sub:#7c8596;--edge:#e9edf3;--nav:#11192a;--navtxt:#aeb8ce;--good:#0a9b70;--bad:#d9485e;--warn:#c7832d;--shadow:0 6px 25px rgba(31,40,66,.035);--rad:16px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}input,textarea,select{outline:none}h1,h2,h3,p{margin-top:0}h1{font-size:31px;letter-spacing:-1.1px;line-height:1.22;margin-bottom:9px;font-weight:750}h2{font-size:17px;letter-spacing:-.32px}h3{font-size:15px}strong{font-weight:675}.app-shell{display:flex;min-height:100vh}.sidebar{width:252px;flex:none;background:var(--nav);color:var(--navtxt);display:flex;flex-direction:column;padding:27px 15px 17px;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin}.brand{display:flex;align-items:center;gap:11px;color:#fff;margin:1px 11px 29px}.brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;color:white;background:linear-gradient(138deg,var(--accent),var(--accent2));font-weight:900;font-size:23px;box-shadow:0 7px 22px rgba(0,0,0,.16)}.brand-words{display:flex;flex-direction:column;gap:4px}.brand-words strong{font-size:16px;letter-spacing:-.4px}.brand-words small{font-size:9px;letter-spacing:1.8px;color:#7c89a1;font-weight:700}.workspace-switch{margin:0 4px 30px;border:1px solid #313b4e;border-radius:12px;padding:11px 10px;display:flex;align-items:center;gap:9px}.workspace-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#28364f;color:#e2e9f8;font-weight:800}.workspace-text{min-width:0;flex:1}.workspace-text strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:white}.workspace-text small{font-size:10px;display:block;margin-top:3px}.tiny-chevron{margin-right:2px}.nav-label{font-weight:800;font-size:10px;letter-spacing:1.6px;margin:0 13px 13px;color:#708099}.nav-label-second{margin-top:28px}.nav-items{display:flex;flex-direction:column;gap:3px}.nav-item{border:0;background:transparent;color:#aab7cd;display:flex;align-items:center;gap:13px;padding:12px 12px;border-radius:10px;font-size:12.5px;font-weight:590;width:100%;text-align:left;transition:background .15s,color .15s}.nav-item:hover{background:#202d42;color:#fff}.nav-item.active{background:linear-gradient(95deg,var(--accent),var(--accent2));color:#fff;box-shadow:0 5px 18px #080c1960}.nav-icon{display:grid;place-items:center;width:20px;font-size:19px;font-family:"Segoe UI Symbol",sans-serif}.side-bottom{margin-top:auto;padding-top:34px}.help-card{border-radius:13px;padding:16px;background:linear-gradient(140deg,#253251,#1c2740);margin-bottom:16px;border:1px solid #34415a}.help-symbol{font-size:23px;color:#b9b0ff;margin-bottom:9px}.help-card strong{display:block;color:#fff;font-size:12px}.help-card p{font-size:11px;line-height:1.7;margin:6px 0 0;color:#9baac4}.signout{font-size:12px}.main-column{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--edge);padding:0 38px;display:flex;justify-content:space-between;align-items:center;gap:20px}.top-left,.top-actions,.top-user{display:flex;align-items:center;gap:15px}.breadcrumb{color:#99a2b3}.breadcrumb-sep{color:#ccd1d9}.top-left strong{font-size:12px}.top-actions{gap:31px}.top-status{color:#6d7c90;font-size:11px;display:flex;align-items:center;gap:7px}.live-dot{width:7px;height:7px;background:#11b783;border-radius:50%;box-shadow:0 0 0 4px #e5f7ee}.top-user{gap:9px;border-left:1px solid #e9edf5;padding-left:22px}.user-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--tint);color:var(--accent);font-weight:800}.top-user strong,.top-user small{display:block;font-size:11px}.top-user small{color:var(--sub);margin-top:4px}.content{width:100%;max-width:1660px;margin:0 auto;flex:1;padding:39px 39px 48px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.eyebrow{color:var(--accent);font-weight:800;letter-spacing:1.7px;font-size:10px;margin-bottom:9px;text-transform:uppercase}.subtitle{color:var(--sub);font-size:13px;margin:0;line-height:1.8}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 17px;border-radius:10px;border:1px solid var(--edge);background:white;font-size:12px;font-weight:700;white-space:nowrap;min-height:40px}.btn-primary{background:var(--accent);border-color:var(--accent);color:white;box-shadow:0 7px 15px color-mix(in srgb,var(--accent) 20%,transparent)}.btn-primary:hover{filter:brightness(.94)}.btn-soft{background:var(--tint);color:var(--accent);border-color:transparent}.btn-ghost{color:#657085}.btn-wide{width:100%;justify-content:space-between;padding:14px 17px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid var(--edge);box-shadow:var(--shadow);padding:23px 23px 22px;border-radius:var(--rad);min-width:0}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:20px;color:#737f94;font-size:12px;font-weight:600}.stat-top i{font-style:normal;display:grid;place-items:center;width:30px;height:30px;background:var(--tint);border-radius:9px;color:var(--accent);font-size:19px}.stat-card>strong{display:block;font-size:28px;letter-spacing:-1.1px;margin-bottom:9px}.stat-detail{font-size:11px;color:#8d96a6}.overview-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(275px,1fr);gap:19px;margin-bottom:20px}.panel{min-width:0;background:white;border:1px solid var(--edge);border-radius:var(--rad);box-shadow:var(--shadow);padding:23px;margin-bottom:20px}.overview-grid .panel{margin-bottom:0}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px}.panel-header h2{margin:0;font-size:15px}.panel-header .muted{font-size:11px}.muted{color:var(--sub);font-size:12px}.chart-svg{display:block;width:100%;height:auto}.chart-labels{display:flex;justify-content:space-between;color:#9fa7b5;font-size:10px;padding:0 5px}.chart-note{font-size:12px;color:#8993a5;margin-top:12px}.insight-list{display:flex;flex-direction:column;gap:13px}.insight-row{display:flex;align-items:center;gap:12px;padding:5px 0}.insight-icon{height:39px;width:39px;display:grid;place-items:center;background:var(--tint);border-radius:12px;color:var(--accent);font-size:19px}.insight-row .grow{flex:1}.insight-row strong{display:block;font-size:12px}.insight-row small{display:block;color:#959faf;font-size:10px;margin-top:5px}.insight-value{font-weight:750;font-size:12px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:520px}th{text-align:left;color:#8d96a8;font-size:10px;letter-spacing:.7px;text-transform:uppercase;padding:14px 12px;border-bottom:1px solid var(--edge);font-weight:800}td{padding:17px 12px;border-bottom:1px solid #f0f1f5;color:#566176;font-size:12px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbfe}td strong{color:#253047}.table-link{font-weight:750;color:#222e49}.table-link:hover{color:var(--accent)}.status{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:6px 9px;background:#f0f2f6;color:#6f7b8d;font-size:10px;font-weight:700;white-space:nowrap}.status .dot{width:6px;height:6px;background:currentColor;border-radius:50%}.status.good{background:#e3f7ef;color:#0a9865}.status.bad{background:#fff0f0;color:#d04862}.status.warn{background:#fff3e5;color:#b57b2b}.table-footnote{margin-top:18px;font-size:11px;color:#929aaa}.person-cell{display:flex;align-items:center;gap:10px}.person-cell strong,.person-cell small{display:block}.person-cell small{font-size:10px;color:#96a0b0;margin-top:4px}.avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#edf0ff;color:var(--accent);font-weight:800}.two-col{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px}.two-col>div>.panel{margin-bottom:0}.edit-form{max-width:100%}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:flex;flex-direction:column;gap:9px;margin-bottom:17px;min-width:0;font-weight:650;font-size:12px;color:#4b596e}.field input,.field select,.field textarea,.invoice-line input{border:1px solid #dfe5ef;border-radius:10px;padding:12px 13px;color:#28344a;background:#fff;width:100%;transition:border .2s,box-shadow .2s}.field input:focus,.field select:focus,.field textarea:focus,.invoice-line input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--tint)}.field textarea{resize:vertical;line-height:1.6}.field input:disabled{background:#f7f8fb;color:#9ca4b3}.form-footer{margin-top:11px;padding-top:20px;border-top:1px solid var(--edge);display:flex;gap:9px;justify-content:flex-end}.section-sep{padding-top:20px;margin:12px 0 22px;border-top:1px solid var(--edge)}.section-sep h3{margin-bottom:4px}.hint{background:#f0f5ff;border:1px solid #dce6fc;color:#56709e;padding:13px 17px;border-radius:11px;font-size:11px;margin-top:14px;line-height:1.7}.alert{padding:14px 17px;border-radius:12px;background:#e4f8ee;color:#14764c;border:1px solid #c8ecd9;font-weight:600;font-size:12px;margin-bottom:20px}.alert.error{background:#fff0f1;color:#af3049;border-color:#ffdde2}.empty{text-align:center;padding:53px 22px;color:#8a95a7}.empty-art{font-size:35px;color:var(--accent);margin-bottom:14px}.empty h3{color:#273249;margin-bottom:9px}.empty p{line-height:1.8;font-size:12px}.text-button{border:0;background:transparent;color:var(--accent);padding:6px;white-space:nowrap}.inline-form{display:inline}.record-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.record-top h1{margin-top:13px}.record-status{margin:5px 0}.detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:20px}.detail-grid>.panel{align-self:start}.detail-dl{display:grid;grid-template-columns:1fr 1fr;gap:19px}.detail-dl dt{color:#8792a4;font-size:11px;margin-bottom:6px}.detail-dl dd{font-size:13px;color:#2e3950;font-weight:700;margin:0}.message{border:1px solid var(--edge);padding:16px 18px;border-radius:13px;margin-bottom:11px;background:#fff}.message.private{background:#fffaf1;border-color:#f5e4bc}.message-header{display:flex;justify-content:space-between;gap:15px;font-size:12px}.message p{margin:10px 0 0;white-space:pre-wrap;line-height:1.8;color:#647084}.message small{color:#a0a8b7}.bar-list{display:flex;flex-direction:column;gap:16px}.bar-meta{display:flex;justify-content:space-between;font-size:11px;color:#6d7890;margin-bottom:8px}.bar-track{height:8px;background:#edf0f7;border-radius:100px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));border-radius:100px}.invoice-lines{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}.invoice-line{display:grid;grid-template-columns:1fr 100px 130px 34px;gap:8px}.invoice-line-head{display:grid;grid-template-columns:1fr 100px 130px 34px;gap:8px;font-size:10px;color:#818d9e;text-transform:uppercase;letter-spacing:1px;font-weight:800;margin:20px 0 9px}.line-remove{background:#fff3f3;color:#e16a76;border:0;border-radius:9px;font-size:20px}.app-footer{display:flex;justify-content:space-between;gap:10px;padding:15px 40px 26px;color:#a6afbf;font-size:10px}.footer-dot{margin:0 7px;color:#cad0d8}.mobile-toggle{display:none;border:0;background:transparent;font-size:22px;color:#29354c}.auth-body{background:white}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{padding:56px 9%;color:#fff;background:radial-gradient(circle at 85% 25%,color-mix(in srgb,var(--accent) 45%,transparent),transparent 30%),linear-gradient(145deg,var(--nav),var(--deep));display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story:after{content:'';width:500px;height:500px;border:1px solid #ffffff13;border-radius:50%;position:absolute;bottom:-220px;right:-120px;pointer-events:none}.auth-brand{display:flex;align-items:center;gap:12px;font-size:19px}.auth-headline{position:relative;z-index:1;max-width:500px}.auth-headline h1{font-size:clamp(34px,4vw,62px);line-height:1.11;letter-spacing:-2.7px;margin:15px 0 22px}.auth-headline p{font-size:16px;line-height:1.9;color:#b6c2db}.auth-story .eyebrow{color:#c0baff}.auth-decor{display:flex;flex-direction:column;gap:16px}.decor-bar{height:130px;max-width:460px;display:flex;align-items:end;gap:15px;padding:0 10px}.decor-bar span{flex:1;background:linear-gradient(0deg,var(--accent),#ffffff66);opacity:.85;border-radius:11px 11px 0 0;height:40%}.decor-bar span:nth-child(2){height:72%}.decor-bar span:nth-child(3){height:55%}.decor-bar span:nth-child(4){height:95%}.decor-bar span:nth-child(5){height:76%}.decor-bar span:nth-child(6){height:100%}.decor-note{font-size:11px;color:#bdc5d9;letter-spacing:1px}.auth-story>small{color:#93a2bd}.auth-form-wrap{display:grid;place-items:center;padding:32px}.auth-card{width:min(100%,410px)}.auth-card h2{font-size:29px;letter-spacing:-1px;margin:13px 0 9px}.auth-card>p{color:#8d97a8;margin-bottom:32px;font-size:13px}.login-kicker{font-size:10px;font-weight:800;letter-spacing:1.7px;color:var(--accent)}.auth-card .field{margin-bottom:20px}.auth-card input{padding:15px}.auth-foot{text-align:center;font-size:11px;color:#9ca5b4;margin-top:25px}.auth-foot span{color:var(--accent)}.auth-card .btn-wide{margin-top:8px}.setup-body{background:#f4f6fb}.setup-shell{max-width:780px;margin:40px auto;padding:24px}.setup-head{margin-bottom:22px}.setup-head h1{margin:16px 0 10px}.setup-panel{background:white;border:1px solid var(--edge);border-radius:20px;padding:30px;box-shadow:var(--shadow)}.preflight{display:grid;grid-template-columns:1fr 90px;gap:14px;padding:12px 0;border-bottom:1px solid var(--edge);font-size:12px}.preflight b{text-align:right}.preflight .pass{color:var(--good)}.preflight .fail{color:var(--bad)}.setup-step{margin-bottom:20px}.setup-section{margin-top:25px}.setup-panel .btn{margin-top:12px}.mini-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:20px}.mini-card{padding:14px;border:1px solid var(--edge);border-radius:11px}.mini-card strong{display:block;font-size:19px;margin-top:5px}.mini-card small{font-size:10px;color:var(--sub)}.detail-actions{display:flex;gap:10px;flex-wrap:wrap}.notice{background:#fdf8ec;border:1px solid #f0e5bd;border-radius:10px;padding:12px 14px;color:#907538;font-size:12px;line-height:1.7;margin:18px 0}.print-only{display:none}
@media(max-width:1200px){.sidebar{width:230px}.content{padding:29px 24px}.topbar{padding:0 24px}.metric-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:920px){.overview-grid,.two-col,.detail-grid{grid-template-columns:1fr}.sidebar{position:fixed;z-index:20;left:-270px;top:0;transition:left .2s;width:252px;box-shadow:10px 0 30px #0003}.sidebar-open .sidebar{left:0}.mobile-toggle{display:block}.topbar{height:68px}.top-status{display:none}.auth-shell{grid-template-columns:1fr}.auth-story{min-height:240px;padding:24px}.auth-headline h1{font-size:34px}.auth-decor,.auth-story>small{display:none}.auth-form-wrap{padding:52px 25px}}
@media(max-width:640px){.content{padding:25px 15px}.topbar{padding:0 15px}.top-user span{display:none}.top-actions{gap:8px}.top-user{padding-left:10px}.metric-grid,.form-grid{grid-template-columns:1fr}.stat-card{padding:18px}.page-heading{align-items:start;flex-direction:column;gap:18px;margin-bottom:20px}.page-heading .btn{width:100%}.panel{padding:17px}.app-footer{padding:18px;flex-wrap:wrap}.invoice-line,.invoice-line-head{grid-template-columns:1fr 60px 85px 30px}.invoice-line input{padding:9px 6px}.setup-shell{padding:10px;margin:15px auto}.setup-panel{padding:18px}.mini-cards{grid-template-columns:1fr}}
@media print{.sidebar,.topbar,.app-footer,.page-heading,.detail-actions,.form-footer,.no-print{display:none!important}.app-shell,.main-column{display:block}.content{padding:0!important}.panel{border:0;box-shadow:none;page-break-inside:avoid}.print-only{display:block}}

/* Bespoke visual identity: ServiceFlow Pro */
:root{--accent:#e77b42;--accent2:#f3a967;--tint:#fff3e9;--nav:#111c2b;--deep:#462619;}
.stat-card:first-child{background:linear-gradient(145deg,#222d3c,#34465a);color:white}.stat-card:first-child .stat-top,.stat-card:first-child .stat-detail{color:#b3c0d1}.stat-card:first-child .stat-top i{background:#435367;color:#ffae7c}.workspace-avatar{background:#473127;color:#ffbe91}.nav-item.active{box-shadow:0 7px 18px #e77b4235}.content{background-image:radial-gradient(circle at 98% 8%,#f4ecdf 0,transparent 22%)}
/* New customer-facing request inbox; respects each product's accent color. */
.website-request{border:1px solid #e9edf2;border-radius:15px;padding:23px 25px;margin:13px 0;background:#fff;box-shadow:0 7px 25px #14223a06}.website-request-top{display:flex;justify-content:space-between;align-items:start;gap:20px}.website-request-ref{font-size:10px;color:#909cad;font-weight:750;letter-spacing:.7px}.website-request h3{font-size:19px;margin:9px 0 0;letter-spacing:-.5px}.website-request-contact{display:flex;flex-wrap:wrap;gap:7px 23px;align-items:center;margin-top:19px;font-size:12px;color:#7a8496}.website-request-contact strong{color:#3c4659}.website-request-contact a{color:var(--accent)}.website-request>p{font-size:12px;line-height:1.8;color:#647084;white-space:normal;overflow-wrap:anywhere;margin:18px 0}.website-request-meta{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.website-request-meta span{display:flex;flex-direction:column;gap:7px;background:#f7f8fb;border:1px solid #eef0f5;border-radius:8px;padding:10px 14px;font-size:11px;font-weight:700;color:#475268}.website-request-meta small{color:#9aa4b3;font-size:9px;font-weight:700}.website-request-actions{display:flex;align-items:end;gap:12px;flex-wrap:wrap;border-top:1px solid #edf0f5;padding-top:18px;margin-top:15px}.website-request-actions label{display:flex;flex-direction:column;gap:7px;font-size:10px;font-weight:750;color:#8490a2}.website-request-actions select{min-width:166px;padding:11px 12px;border:1px solid #e0e6ed;border-radius:9px;background:white;font-size:12px;color:#425269}.website-request-actions .btn{margin:0;min-height:40px}

/* v0.2: legibility, depth and intentional dashboard hierarchy */
:root{--rad:15px;--shadow:0 6px 25px #1b28520a}body{font-family:'Inter','Inter Display','Segoe UI',Arial,sans-serif}.content{padding-top:42px}.page-heading{margin-bottom:31px}.page-heading h1{font-size:clamp(28px,2.7vw,36px);letter-spacing:-1.3px}.page-heading .subtitle{font-size:13px;line-height:1.8}.page-heading .eyebrow{font-size:10px;letter-spacing:1.9px;margin-bottom:11px}.metric-grid{gap:18px;margin-bottom:23px}.stat-card{border-radius:15px;padding:25px;transition:transform .2s,box-shadow .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px #17244813}.stat-top{color:#7e8899;font-size:12px;letter-spacing:.1px}.stat-card>strong{font-size:30px;letter-spacing:-1.3px}.stat-detail{font-size:11px}.panel{border-radius:15px;padding:27px;box-shadow:0 5px 22px #13213c08}.panel-header{margin-bottom:25px}.panel-header h2{font-size:17px;letter-spacing:-.4px}.nav-item{font-size:13px;padding:12px 13px}.nav-icon{font-size:17px}.topbar{height:80px}.top-left strong{font-size:13px}.top-status{font-size:12px}.btn{font-size:12px;min-height:42px;transition:box-shadow .2s,transform .2s}.btn:hover{transform:translateY(-1px)}.field{font-size:12px}.field input,.field select,.field textarea{font-size:13px;min-height:45px}th{font-size:10px;padding-top:17px;padding-bottom:17px}td{font-size:12.5px;padding-top:20px;padding-bottom:20px}.table-link{font-size:13px}.status{font-size:11px;padding:7px 10px}.workspace-switch{padding:13px 11px}.workspace-text strong{font-size:12px}.workspace-text small{font-size:10px}.sidebar .brand-words strong{font-size:15px}.help-card{padding:17px;border-radius:13px}.help-card p{font-size:11px;line-height:1.7}.alert{font-size:12px}.empty{padding:60px 20px}.empty h3{font-size:18px}.auth-card h2{font-size:32px}.auth-card>p{font-size:13px}
/* Keep the four applications visually distinct—not one painted theme. */

/* v0.3: denser operational workspace, touch-friendly visual hierarchy */
:root{--kpi-shadow:0 10px 36px rgba(17,29,48,.055)}
.metric-grid{gap:18px!important}.metric-card,.stat-card{box-shadow:var(--kpi-shadow);min-height:144px;border-radius:18px!important}
.overview-grid{gap:22px!important}.panel{border-radius:18px!important;box-shadow:var(--kpi-shadow)}
.content{max-width:1760px;margin-inline:auto;padding-bottom:54px!important}
.sidebar{box-shadow:4px 0 30px rgba(10,18,34,.035)}
.nav-item{transition:background .2s ease,color .2s ease,transform .2s ease}.nav-item:hover{transform:translateX(2px)}
.table-wrap{overflow-x:auto}.table-wrap table{min-width:650px}
@media(max-width:760px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.content{padding:18px!important}.metric-card,.stat-card{min-height:125px}} 
@media(max-width:430px){.metric-grid{grid-template-columns:1fr!important}}
