:root{--purple:#7030a0;--ink:#251936;--muted:#746b80;--line:#e6e0ec;--pale:#f4eff8;--bg:#f7f6fa;font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}aside{position:fixed;inset:0 auto 0 0;width:236px;background:#28183b;color:white;padding:28px 16px;display:flex;flex-direction:column}.brand{font-size:31px;font-weight:900;font-style:italic;letter-spacing:-1.8px;margin:0 12px 46px}.brand span{display:block;font-size:9px;font-style:normal;letter-spacing:1.4px;color:#c6afd9;font-weight:600}.nav-label{font-size:10px;letter-spacing:1.5px;color:#b69ccf;margin:0 12px 10px}nav{display:grid;gap:7px}nav button{text-align:left;color:#dcd0e7;background:transparent;border:0;padding:13px 12px;font-weight:600}nav button.active{background:#7030a0;color:white}nav button:hover{background:#4c2c64}.side-foot{margin-top:auto;font-size:11px;color:#c2afd3;padding:12px;border-top:1px solid #513b66;line-height:1.9}main{margin-left:236px;padding:30px clamp(18px,3vw,45px);max-width:1800px}header,.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}header{margin-bottom:24px}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px}h2{font-size:22px;letter-spacing:-.5px}h3{font-size:15px;margin-bottom:15px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:700;color:var(--purple)}p,.hint{color:var(--muted);font-size:12px}.sectionhead{margin:24px 0 18px}.actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.actions.left{justify-content:flex-start;margin-top:17px}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;padding:9px 13px;background:white;color:var(--ink);font:inherit;font-weight:600;white-space:nowrap}button:hover{border-color:var(--purple)}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--purple);color:white;border-color:var(--purple)}.projectbar,article,.kpi{background:white;border:1px solid var(--line);border-radius:10px;padding:18px}.projectbar{display:grid;grid-template-columns:minmax(180px,2fr) 1fr 1fr auto;align-items:end;gap:12px}label{display:grid;gap:5px;font-size:11px;font-weight:700;color:var(--muted)}input,select{width:100%;min-width:0;border:1px solid #d9d0e3;border-radius:6px;background:white;color:var(--ink);padding:9px 10px;font:14px system-ui}input:focus,select:focus,button:focus-visible{outline:2px solid #a87dcc;outline-offset:2px}.status{margin-top:12px;padding:10px 13px;border-left:3px solid #a78bc1;background:var(--pale);font-size:12px;min-height:38px}.status.error{background:#fcecef;color:#9a263e;border-color:#a52236}.status.good{background:#edf7f1;color:#276543;border-color:#39885b}.kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.kpi span{display:block;font-size:11px;color:var(--muted);font-weight:600}.kpi strong{display:block;font-size:clamp(16px,1.65vw,27px);letter-spacing:-.6px;margin-top:5px;overflow-wrap:anywhere}.kpi small{font-size:10px;color:var(--muted)}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:16px}article{margin-bottom:16px;min-width:0}.scroll{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line)}th{font-weight:700;background:#f2edf7;color:#5a3876;font-size:11px}tbody tr:nth-child(even){background:#faf8fc}td button{padding:4px 7px;font-size:11px}td:last-child{white-space:nowrap}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:12px}.hint{margin-top:12px;line-height:1.6}.metricline{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.metricline:last-child{border-bottom:0}.metricline span{color:var(--muted);font-size:12px}.positive{color:#237a54}.negative{color:#a52236}.bar{display:flex;height:18px;overflow:hidden;border-radius:5px;margin:16px 0;background:var(--pale)}.bar div{height:100%}.quote-title{background:var(--purple);color:white;text-align:center;font-weight:700;padding:13px;letter-spacing:.7px}.quote-title+div table{white-space:normal}footer{font-size:11px;color:var(--muted);padding:20px 0}dialog{border:1px solid var(--line);border-radius:12px;padding:24px;width:min(850px,95vw);max-height:90vh;color:var(--ink)}dialog::backdrop{background:#24163499}dialog .sectionhead{margin-top:0}#payroll-select{max-width:450px;margin:12px 0}[hidden]{display:none!important}@media(max-width:1100px){.kpis{grid-template-columns:repeat(3,1fr)}.formgrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){aside{position:static;width:auto;padding:15px}.brand{margin:0 0 12px}nav{display:flex;overflow:auto}.nav-label,.side-foot{display:none}main{margin:0;padding:16px}.projectbar,.twocol{grid-template-columns:1fr 1fr}.kpis{grid-template-columns:repeat(2,1fr)}.formgrid{grid-template-columns:1fr}h1{font-size:24px}.actions{justify-content:flex-start}}@media(max-width:430px){.projectbar,.twocol{grid-template-columns:1fr}}
/* Quick Quote v2: a single-page commercial workflow. */
.topbar{margin:0;padding:14px max(24px,calc((100vw - 1380px)/2));background:#28183b;color:#fff;gap:12px}.topbar .brand{margin:0;line-height:1.05;font-size:26px}.topbar .brand span{margin-top:4px}.topbar button{background:#3b2850;color:white;border-color:#655078}.topbar button:hover{border-color:#d6b7ee}.topbar #advanced-toggle{background:#7030a0;border-color:#9862bf}main{margin:0 auto;max-width:1380px;padding:18px 24px}#advanced-nav{display:flex;flex-wrap:wrap;gap:6px;padding:8px;background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:12px}#advanced-nav button{color:var(--ink);padding:8px 12px}#advanced-nav button.active{color:white;background:var(--purple)}#advanced-nav button:hover:not(.active){background:var(--pale)}.quick-head{margin:18px 0}.quick-details{display:grid;grid-template-columns:2fr repeat(4,minmax(110px,1fr));gap:14px}.quick-row-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:13px}.quick-row-head h3{margin-bottom:3px}#quick-team table{min-width:780px}#quick-team th:nth-child(3){width:32%}#quick-team th:nth-child(4){width:110px}#quick-team td{padding:7px}#quick-team select,#quick-team input{font-size:13px;padding:7px 8px}#quick-team td:last-child{width:80px}.calculate-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border:1px solid var(--line);border-radius:10px;padding:16px 18px}.calculate-bar button{font-size:15px;padding:13px 22px}.calculate-bar strong{font-size:16px}#quick-results .sectionhead{margin-top:18px}#quick-results article .sectionhead{margin:0 0 15px}.status{margin-top:0}.kpis{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:1000px){.quick-details{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-details label:first-child{grid-column:1/-1}.kpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){main{padding:12px}.topbar{padding:12px}.topbar .actions{justify-content:flex-start}.calculate-bar{align-items:stretch;flex-direction:column}.calculate-bar button{white-space:normal}.kpis{grid-template-columns:repeat(2,1fr)}.quick-row-head .actions{justify-content:flex-start}}

/* v3: compact pricing advice and local history */
#history-dialog{width:min(1180px,94vw);max-height:90vh;overflow:auto}#history-dialog label{display:block;margin:12px 0}#history-dialog input{max-width:420px}#history-dialog .scroll{margin:12px 0;max-height:330px}#pricing-advice .kpis{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));margin:12px 0}#pricing-advice details summary{cursor:pointer;font-weight:600;margin:10px 0}#quick-internal tbody tr:last-child td{font-weight:bold;background:#f4eff8}#quick-internal td{white-space:nowrap}#saved-state{color:#7030a0;font-weight:600}

/* V5 project/role pricing */
#quick-team table{min-width:1090px}#quick-team th:nth-child(1){min-width:130px}#quick-team th:nth-child(3){width:auto;min-width:135px}#quick-team th:nth-child(4){width:auto;min-width:205px}#quick-team th:nth-child(5),#quick-team th:nth-child(6),#quick-team th:nth-child(7){width:80px}#quick-team th:nth-child(8){min-width:100px}.row-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.row-actions small{font-size:10px;color:var(--muted)}

.delete-small{font-size:.75rem;padding:5px 8px;min-height:0;color:#a32b3d;border:1px solid #e6c3c9;background:#fff;white-space:nowrap}.delete-small:hover:not(:disabled){background:#fceef0;border-color:#a32b3d}.delete-small:disabled{opacity:.5;cursor:wait}
.account-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f4f1f8}.account-card{width:min(100%,440px);background:#fff;border:1px solid #e1dbe9;border-radius:16px;padding:32px;box-shadow:0 15px 55px #291a4120}.account-brand{font-size:30px;font-weight:900;font-style:italic;color:#7030a0;line-height:1.1;margin-bottom:28px}.account-brand span{display:block;font-size:11px;font-style:normal;letter-spacing:2px;margin-top:6px}.account-card form{display:grid;gap:14px;margin:20px 0}.account-card label{display:grid;gap:6px}.account-card input{width:100%}.account-card .errorlist,.account-error{color:#a72237}.account-card .helptext{font-size:12px;color:#666}.account-card a{color:#7030a0}.account-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.account-actions a{color:inherit;text-decoration:none;padding:10px}.account-actions form{margin:0}.account-name{font-size:12px;color:#e0d5ed}
