:root{font:14px/1.55 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:#171c28;background:#f5f6f9;--accent:#3b5edb;--border:#dfe4ed}*{box-sizing:border-box}body{margin:0}aside{width:228px;position:fixed;inset:0 auto 0 0;background:#192338;color:#aebbd3;display:flex;flex-direction:column;padding:28px 16px 18px}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:#fff;margin:0 8px 40px}.brand b{background:#5072ed;color:#fff;font-size:17px;padding:9px;border-radius:9px;letter-spacing:-1px}.brand span{font-size:18px;font-weight:650}.brand small{display:block;font-size:10px;color:#9aacc9;letter-spacing:2px;font-weight:400}.module-label{font-size:10px;letter-spacing:2px;margin:0 15px 12px;color:#8292ae}.module{padding:12px 14px;border-radius:7px;background:#253452;color:#fff;display:flex;gap:12px}.module span{margin-left:auto;font-size:12px;color:#a9b9d7}nav{margin:10px 0 0 14px;border-left:1px solid #33415a;padding-left:10px}nav button{display:block;width:100%;text-align:left;background:transparent;color:#aebbd3;padding:11px 13px;margin:3px 0;border-radius:6px}nav button.active{background:#354e8d;color:white}.side-note{margin:28px 16px;font-size:11px;color:#8193b1;line-height:1.9}.profile{margin-top:auto;border-top:1px solid #33415a;padding-top:20px;display:flex;align-items:center;gap:9px;font-size:12px}.avatar{background:#3b4b68;padding:9px 13px;border-radius:50%;color:#e2e9f8}.profile strong{color:#e6ebf5;font-weight:500}.profile small{display:block;font-size:10px;color:#7f92b3}.profile button{padding:5px 7px;font-size:11px;background:transparent;color:#b9c7df}.app{margin-left:228px}header{height:68px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 34px;color:#6a7384;font-size:12px}header span{margin:0 14px;color:#b4bdcb}header strong{color:#293247;font-weight:550}.environment{background:#eef2fb;color:#5973b6;padding:4px 10px;border-radius:20px;margin:0}main{max-width:1410px;margin:auto;padding:22px 34px 40px}.notice{background:#ecf1ff;border:1px solid #d8e2fc;border-radius:5px;padding:9px 13px;color:#3757a5;font-size:12px}#status{font-size:12px;min-height:21px;margin:9px 0;color:#a14624}h1{font-size:26px;letter-spacing:-.5px;margin:3px 0 5px;line-height:1.4}h2{font-size:15px;font-weight:650;margin:0 0 16px}h2>span{font-size:11px;background:#eef2fc;color:#617bc2;border-radius:4px;padding:4px 5px;margin-right:9px}p{margin:8px 0}.eyebrow{color:#8993a5;font-size:10px;letter-spacing:1.7px;margin:0}.subtitle{font-size:12px;color:#748094;margin:5px 0 0}.title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 23px}.pill{font-size:11px;color:#5972ac;border:1px solid #ced9f4;border-radius:20px;padding:5px 11px;white-space:nowrap}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px;align-items:start}.panel{background:#fff;border:1px solid var(--border);border-radius:7px;padding:21px 22px;margin:0 0 18px;min-width:0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.section-title h2{margin:0}button{border:1px solid transparent;background:var(--accent);color:white;border-radius:5px;font:inherit;font-size:12px;padding:9px 15px;cursor:pointer;white-space:nowrap}button:hover{filter:brightness(.95)}button:disabled{opacity:.45;cursor:wait}.secondary{color:#455371;background:white;border-color:#cfd7e5}.quiet{background:transparent;color:#73809a}.link{background:transparent;color:#4566ca;padding:0;font-size:12px}input,select{font:inherit;color:#242d40;border:1px solid #cfd7e4;background:#fff;border-radius:5px;padding:9px 10px;min-width:0;max-width:100%;height:39px}input:focus,select:focus{outline:2px solid #a0b5ff;outline-offset:1px}label{display:block;font-size:11px;color:#6c778b;margin:9px 0 5px}label input,label select{display:block;width:100%;margin-top:6px}.inline{display:flex;gap:8px}.inline input{flex:1}.selected{font-size:12px;background:#f3f6fc;border:1px solid #e0e7f6;border-radius:5px;padding:10px 12px;margin-top:13px;color:#526caa}.selected strong{display:block;color:#26344e;font-size:13px}.selected small{color:#7b88a1}.customer{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e3e8f2;padding:10px 0;font-size:12px;gap:10px;overflow-wrap:anywhere}.customer button{flex-shrink:0}table{width:100%;border-collapse:collapse;font-size:12px}th{font-size:10px;color:#7a879b;background:#f7f8fb;font-weight:500;text-align:left;letter-spacing:.3px;padding:10px}td{border-bottom:1px solid #e7ebf2;padding:13px 10px;vertical-align:middle}td small{display:block;color:#8590a4;font-size:10px;margin-top:3px}.line-table th,.line-table td{padding:9px 6px}.line-table th:first-child,.line-table td:first-child{padding-left:0;width:43%}.line-table select{width:100%;font-size:12px}.line-table input{width:80px;font-size:12px;text-align:right}.line-table input.quantity{width:56px}.line-table td:nth-child(4){text-align:right;white-space:nowrap}.line-table .remove{padding:5px 7px;color:#9b6d77;background:transparent}.table-scroll{overflow:auto}.hint{font-size:10px;color:#8a95a8;line-height:1.8;margin-top:12px}.fields{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px}.form-actions{display:flex;align-items:center;gap:10px;margin-top:22px}.summary{padding:22px}.summary h2{font-size:17px;margin:7px 0 28px}.summary-row{display:flex;justify-content:space-between;font-size:12px;color:#778298;margin:15px 0}.summary-row strong{font-weight:500;color:#344159;font-variant-numeric:tabular-nums}.summary-total{border-top:1px solid var(--border);padding-top:19px;margin-top:24px;display:flex;flex-direction:column;gap:3px;font-size:11px;color:#6c7790}.summary-total strong{font-size:31px;font-weight:650;letter-spacing:-.7px;color:#294dbe;font-variant-numeric:tabular-nums}.summary .wide{width:100%;margin-top:8px}.summary-note{border-top:1px solid var(--border);padding-top:16px;margin-top:22px;font-size:10px;color:#8a96aa;line-height:1.8}.toolbar{display:flex;align-items:center;justify-content:space-between;margin:6px 0 15px;gap:10px}#filters{display:flex;gap:5px;flex-wrap:wrap}#filters button{color:#7c879a;background:transparent;padding:8px 11px}#filters button.active{background:#e8eefc;color:#4261b6}.ledger{padding:0}.ledger .hint{padding:0 18px 8px}.ledger th,.ledger td{padding:13px 16px}.ledger td:nth-child(4),.ledger th:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}.record-actions{display:flex;gap:4px}.record-actions button{font-size:10px;padding:5px 8px}.tag{border-radius:4px;padding:4px 7px;font-size:10px;white-space:nowrap;background:#edf1fc;color:#5c78b8}.tag.draft{background:#eef0f4;color:#778092}.tag.past_due{background:#fff0e4;color:#bc7a34}.tag.paid{background:#e7f5ed;color:#4a8d6b}footer{margin:0 34px;padding:15px 0 25px;border-top:1px solid var(--border);color:#99a3b4;font-size:10px;display:flex;justify-content:space-between}dialog{border:1px solid #d4dce9;border-radius:9px;padding:25px;width:min(480px,94vw);box-shadow:0 20px 80px #15274430}dialog::backdrop{background:#15274477}#preview-dialog{width:min(940px,96vw)}#preview-frame{width:100%;height:70vh;border:1px solid var(--border);background:white}#login{max-width:440px;margin:70px auto}#test-login{margin-top:30px}[hidden]{display:none!important}@media(max-width:1100px){aside{width:190px}.app{margin-left:190px}.brand span{font-size:15px}main{padding:20px}.editor-layout{grid-template-columns:minmax(0,1fr) 225px;gap:15px}.panel{padding:16px}.fields{grid-template-columns:1fr 1fr}.fields label:last-child{grid-column:span 2}}@media(max-width:800px){aside{position:static;width:100%;padding:13px 16px}.brand{margin:0;font-size:15px}.brand small,.module-label,.module,.side-note,.profile{display:none}nav{display:flex;border:0;margin:10px 0 0;padding:0;overflow:auto;gap:3px}nav button{width:auto;flex-shrink:0;font-size:11px;padding:8px 10px}.app{margin-left:0}header{padding:0 16px;height:47px;font-size:10px}main{padding:16px 13px}.editor-layout{grid-template-columns:1fr}.summary{order:-1;padding:15px}.summary h2{margin:0}.summary .eyebrow,.summary-note,.summary-row{display:none}.summary-total{margin-top:9px;padding-top:10px;flex-direction:row;align-items:center}.summary-total strong{font-size:25px}.summary .wide{width:auto}.title-row{margin-bottom:16px}h1{font-size:23px}.panel{padding:16px}.fields{grid-template-columns:1fr 1fr}.line-table{min-width:510px}.form-actions{flex-wrap:wrap}.ledger{padding:0}.ledger table{min-width:840px}footer{margin:0 14px}.toolbar{align-items:flex-start}#filters button{font-size:10px;padding:7px}.inline{flex-wrap:wrap}.inline input{min-width:170px}.subtitle{font-size:11px}}
.editor-layout>div{min-width:0}
@media(max-width:800px){.editor-layout{grid-template-columns:minmax(0,1fr)}}

.auth-screen{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 18px;background:#f5f6f9}.auth-brand{display:flex;align-items:center;gap:11px;color:#1c2940;text-decoration:none;font-size:21px;font-weight:650;margin-bottom:25px}.auth-brand b{background:#3b5edb;color:white;padding:9px;border-radius:9px;font-size:17px}.auth-card{width:100%;max-width:440px;background:#fff;border:1px solid #e0e5ef;border-radius:12px;padding:30px 28px;box-shadow:0 8px 35px #1b315208}.auth-card #login{margin:0;max-width:none}.auth-card h1{font-size:24px;margin:9px 0}.auth-description{color:#738096;font-size:12px;margin-bottom:23px}.auth-card #clerk{display:flex;justify-content:center;max-width:100%}.auth-card #clerk:empty{min-height:45px}.auth-card #auth-status{font-size:12px;color:#a14624;overflow-wrap:anywhere}.auth-actions{display:flex;gap:10px;justify-content:center}.auth-notice{max-width:420px;text-align:center;font-size:11px;color:#7a879b;margin:21px 0 0}@media(max-width:500px){.auth-screen{padding:25px 14px}.auth-card{padding:25px 16px}}
@media(max-width:800px){aside .profile{display:flex;margin:12px 0 0;padding:10px 6px 0}.profile .avatar,.profile small{display:none}.profile #logout{margin-left:auto}}

.line-table{min-width:850px}.line-table th:first-child,.line-table td:first-child{width:22%}.line-table td:nth-child(2){width:34%}.line-table input.description{width:100%;text-align:left}.line-table td:nth-child(4){text-align:left}.line-table td:nth-child(5){text-align:right;white-space:nowrap}.tax-override{display:flex;align-items:center;gap:8px}.tax-override input{width:auto;height:auto;margin:0}.tag.draft{color:#4b5563;background:#edf0f3}.tag.sent{color:#1742a0;background:#e7efff}.tag.overdue{color:#9f1c1c;background:#feeaea}#product-form-status,#client-form-status,#catalog-status,#client-status{font-size:12px;overflow-wrap:anywhere}#products .secondary{margin:2px;font-size:11px;padding:6px 9px}

.line-table{min-width:980px}.line-table td:nth-child(5){text-align:left}.line-table td:nth-child(6){text-align:right;white-space:nowrap}.line-table .line-tax{width:100px}
textarea{font:inherit;border:1px solid #cbd3df;border-radius:5px;padding:9px 10px;color:inherit;background:white;width:100%;line-height:1.5;min-height:40px;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}textarea:focus{outline:2px solid #7994e8;outline-offset:1px}.line-table textarea.description{width:100%;min-width:220px;text-align:left}.line-table td{vertical-align:top}#products td:first-child,#products td:nth-child(2),#invoices td:nth-child(2){white-space:pre-wrap;overflow-wrap:anywhere;max-width:30rem}#client-pagination{margin-top:14px}#client-pagination[hidden]{display:none}


/* Adapted from the builder's verified final styles.css -> company.css cascade,
   V49 d9f122d6dd2df972be579769f4b1acd78b10b810, supplied as text.
   No full CSS materialization, legacy data, authorization or platform code. */
:root{font:13px/1.5 Inter,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#1f1f1f;background:#f6f7fb;--accent:#0073ea;--border:#e6e9ef}
#work-shell{display:grid;grid-template-columns:184px minmax(0,1fr);align-items:start}aside{position:sticky;top:0;inset:auto;width:auto;height:100vh;padding:23px 12px 17px;background:#202a45;color:#d5dbea}.app{margin-left:0;min-width:0}.brand{margin:0 0 26px;gap:8px}.brand span{font-size:15px}.brand b{background:#0073ea}.brand small,.side-note,.profile small,.module-label{color:#bec8dd}.module{background:#2e3a59;padding:10px 11px;border-radius:6px;font-size:14px}.module span{display:none}nav{display:block;overflow:visible;margin:5px 0 8px 16px;padding:4px 0 3px 7px;border-left:1px solid #435374}nav button{display:block;width:100%;min-height:36px;margin:4px 0;padding:8px 7px;border-radius:5px;font-size:12px;color:#dbe2ef;background:transparent}nav button:hover{background:#2e3a59}nav button.active{background:#0073ea;color:#fff;box-shadow:inset 3px 0 #66c4ff}.profile{border-color:#435374;flex-wrap:wrap}.profile button{color:#fff}
header{height:auto;min-height:47px;padding:9px 26px;background:#fff;border-bottom:1px solid #e6e9ef;flex-wrap:wrap;gap:6px 16px;color:#595959;font-size:11px}header strong{color:#171717}.environment{background:#eaf3ff;color:#0060b9}main{padding:21px 26px 24px;max-width:1900px;margin:auto}.title-row{margin-bottom:16px}h1{font-size:23px;color:#171717}h2{font-size:14px;color:#171717;margin-bottom:12px}.subtitle,.hint,.eyebrow{color:#595959}.eyebrow{letter-spacing:1px}.panel{padding:16px;margin-bottom:12px;border-color:#e6e9ef;border-radius:8px}.editor-layout{gap:16px}.section-title{margin-bottom:10px}.section-title h2{margin:0}.notice{background:#eaf3ff;border-color:#c3dcf8;color:#174f88}.pill{color:#0060b9;background:#eaf3ff;border-color:#c3dcf8}
button{background:#0073ea;border-radius:6px;padding:8px 12px;font-size:12px}button:hover{background:#0060b9}button.secondary{background:#fff;color:#0060b9;border:1px solid #c8d5e3}button.secondary:hover{background:#eaf3ff}.quiet,.link{color:#0060b9;background:transparent}.quiet:hover,.link:hover{background:#eaf3ff}button:disabled{opacity:.55;cursor:not-allowed}input,select,textarea{border:1px solid #7e7e83;border-radius:6px;font:inherit;font-size:14px;min-height:42px;height:auto;padding:8px 10px;color:#1f1f1f;background:white}input:focus,select:focus,textarea:focus{outline:2px solid #0073ea;outline-offset:1px}label{color:#595959;font-size:12px;font-weight:550}label input,label select,label textarea{width:100%;margin-top:5px}.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.fields label:last-child{grid-column:auto}.tax-override input{min-height:0;width:auto}
.table-scroll,#client-results{overflow:auto;background:#fff;border:1px solid #d7dce5;border-radius:8px;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left}th,.ledger th{padding:11px 12px;background:#f6f7fb;font-size:12px;font-weight:550;color:#595959;white-space:nowrap;border-bottom:1px solid #d7dce5}td,.ledger td{padding:12px;font-size:13px;vertical-align:middle;border-bottom:1px solid #d7dce5}th:not(:last-child),td:not(:last-child){border-right:1px solid #d7dce5}tbody tr:last-child td{border-bottom:0}tbody tr:nth-child(even){background:#f6f7fb}tbody tr:hover,tbody tr:focus-within{background:#edf5ff}.ledger{padding:0;overflow:hidden}.ledger .table-scroll{border:0;border-radius:0}#selected{background:#eaf3ff;border-color:#c3dcf8}.customer{border-bottom:1px solid #e6e9ef;padding:9px 0}#client-results:empty{border:0}#client-results table{min-width:780px}#client-results table .customer{display:table-row}#client-results td{padding:12px 14px;line-height:1.6;overflow-wrap:anywhere;max-width:22rem}#client-results td:first-child{font-size:16px;font-weight:700}#client-results td button{min-height:44px}
.line-table{table-layout:fixed;min-width:980px}.line-table th:first-child,.line-table td:first-child{width:22%;padding-left:6px}.line-table th:nth-child(2),.line-table td:nth-child(2){width:31%}.line-table th:nth-child(3),.line-table td:nth-child(3){width:12%}.line-table th:nth-child(4),.line-table td:nth-child(4){width:8%}.line-table th:nth-child(5),.line-table td:nth-child(5){width:12%}.line-table th:nth-child(6),.line-table td:nth-child(6){width:10%}.line-table th:last-child,.line-table td:last-child{width:5%}.line-table select,.line-table input{max-width:100%}.line-table textarea.description{min-width:0}.line-table td{vertical-align:top}.tag{border-radius:4px;padding:2px 6px;font-size:11px;line-height:1.5;font-weight:550;white-space:nowrap}.tag.draft{background:#e6e9ef;color:#454b54}.tag.sent{background:#dceeff;color:#124a7b}.tag.overdue{background:#fde4e4;color:#951f28}.summary-total strong{color:#0060b9}
dialog{position:fixed;inset:0;margin:auto;padding:0;border:1px solid #d7dce5;border-radius:14px;width:820px;max-width:calc(100vw - 48px);height:fit-content;max-height:min(88dvh,calc(100dvh - 48px));overflow:hidden;box-shadow:0 20px 70px #17244138}dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#17244170;backdrop-filter:blur(2px)}#client-dialog{width:940px}#product-dialog{width:820px}#preview-dialog{width:940px}dialog form,dialog .dialog-body{padding:22px 26px 27px;overflow:auto;min-height:0}dialog .section-title{background:#f6f7fb;padding:8px 18px 8px 24px;min-height:56px;border-bottom:1px solid #e6e9ef;margin:0;flex-shrink:0}dialog .section-title h2{font-size:22px;font-weight:700;line-height:1.4;color:#171717}#preview-frame{height:60dvh;min-height:200px}dialog .hint{overflow-wrap:anywhere}.auth-screen{background:#f6f7fb}.auth-card{border-color:#e6e9ef;border-radius:8px}.auth-brand b{background:#0073ea}.auth-notice,.auth-description{color:#595959}footer{color:#595959;border-color:#d7dce5}
@media(min-width:1500px){main{padding-left:32px;padding-right:32px}}
@media(max-width:1100px){#work-shell{grid-template-columns:160px minmax(0,1fr)}aside{padding-left:9px;padding-right:9px}main{padding-left:18px;padding-right:18px}header{padding-left:18px;padding-right:18px}.brand{flex-wrap:wrap}}
@media(min-width:701px) and (pointer:fine){.ledger th{padding:6px}.ledger td{padding:4px 6px;line-height:1.35}.ledger button{min-height:30px;padding:4px 6px}.ledger table{min-width:820px}}
@media(min-width:701px) and (max-width:800px){aside{position:sticky;height:100vh;display:flex;flex-direction:column}.brand small,.module-label,.module,.side-note{display:block}.profile{margin-top:auto}nav{display:block;border-left:1px solid #435374}.app{margin-left:0}}
@media(max-width:700px){#work-shell{display:block}aside{position:static;width:auto;height:auto;padding:13px 15px 0}.brand{margin-bottom:10px}.module{display:flex;margin-top:8px}nav{display:block;overflow:visible;margin-left:12px;border-left:1px solid #435374}nav button{width:100%;font-size:13px;min-height:40px;padding:7px 10px}.profile{margin-top:12px}main{padding:16px 14px}header{padding:8px 15px}.fields{grid-template-columns:minmax(0,1fr)}.fields label:last-child{grid-column:auto}input,select,textarea,.line-table input,.line-table select{font-size:16px;min-height:44px}.panel{padding:13px}.ledger{padding:0}.editor-layout{gap:12px}.line-table{min-width:980px}#client-results table{min-width:720px}#client-results td{padding:10px 8px}th:not(:last-child),td:not(:last-child){border-right:0}dialog,#client-dialog,#product-dialog,#preview-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:10px}dialog form,dialog .dialog-body{padding:18px 16px 22px}dialog .section-title{padding:8px 16px}dialog .section-title h2{font-size:19px}#client-pagination{gap:8px;align-items:center}}
@media(pointer:coarse),(max-width:700px){button,nav button,.record-actions button,#products .secondary,.line-table .remove{min-height:44px}}

/* Owner controls: checkbox changes remain local until explicit Save. */
#permissions-nav{margin-top:14px;text-align:left;background:#2e3a59;color:white;white-space:normal}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.permission-grid label{display:flex;align-items:center;gap:8px;margin:0;min-height:44px}.permission-grid input{width:20px;height:20px;min-height:20px;margin:0;flex-shrink:0}.permissions-table td:first-child{overflow-wrap:anywhere;max-width:16rem}.audit-history{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.audit-history p{padding:8px;border-bottom:1px solid #d7dce5}.record-actions{flex-wrap:wrap}.tag.void,.tag.cancelled{color:#595959;background:#e6e9ef}#lifecycle-description{overflow-wrap:anywhere}
@media(max-width:700px){.permission-grid{grid-template-columns:minmax(0,1fr)}.permissions-table td,.permissions-table th{padding:8px}.permissions-table td:first-child{max-width:100px}.permissions-table .form-actions{gap:6px}#permissions-nav{min-height:44px;width:100%}}

/* Full invoice row status tint; text labels remain the primary status signal. */
#invoices tr[data-status] {--row-tint:#f2f4f7;--row-hover:#e7ebf1}
#invoices tr[data-status=sent] {--row-tint:#edf6ff;--row-hover:#dceeff}
#invoices tr[data-status=unpaid] {--row-tint:#fff8e8;--row-hover:#ffefcb}
#invoices tr[data-status=overdue] {--row-tint:#fff0f0;--row-hover:#fde0e2}
#invoices tr[data-status=paid] {--row-tint:#edf8f0;--row-hover:#dceee2}
#invoices tr[data-status=void],#invoices tr[data-status=cancelled] {--row-tint:#f3eff8;--row-hover:#e7dff0}
#invoices tr[data-status] td {background:var(--row-tint);color:#1f1f1f}
#invoices tr[data-status]:hover td,#invoices tr[data-status]:focus-within td {background:var(--row-hover)}
#invoices tr[data-status]:focus-within {outline:2px solid #0073ea;outline-offset:-2px}

.language-editor{min-width:235px}.language-editor select{width:100%;margin-bottom:6px}.language-editor button{margin-right:4px}.language-editor [role=status],.language-editor p{font-size:12px;white-space:normal;max-width:300px}

.owner-workflow{width:min(960px,96vw);max-height:92vh;overflow:auto;padding:24px}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.owner-workflow input,.owner-workflow select,.owner-workflow textarea{width:100%;min-width:0}.owner-workflow textarea{min-height:96px;white-space:pre-wrap}.owner-workflow button{margin:6px 6px 6px 0}.owner-workflow input[type=checkbox]{width:auto;margin:8px}.edit-lines fieldset{border:1px solid #d8dee7;margin:12px 0;padding:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.edit-lines label:has(textarea){grid-column:1/-1}#invoices td:nth-child(2){white-space:pre-wrap;max-width:260px}nav button svg{width:20px;height:20px;flex:none;vertical-align:middle;margin-right:10px}nav button{display:flex;align-items:center}@media(max-width:600px){.profile-grid,.edit-lines fieldset{grid-template-columns:1fr}.owner-workflow{padding:14px}.edit-lines label:has(textarea){grid-column:auto}}
#client-duplicate-confirmation{display:flex;align-items:flex-start;gap:10px;min-height:44px}#client-duplicate-confirmation[hidden]{display:none}#client-duplicate-confirm{width:20px;height:20px;min-height:20px;padding:0;margin:2px 0 0;flex:0 0 20px}#client-duplicates{overflow-wrap:anywhere}

#client-results{overflow-x:auto}#client-results table{min-width:780px}.tag.partial{background:#fff0c2;color:#745600}.tag.unknown{background:#eee;color:#555}

.pending-recovery{border:1px solid #e0b66d;background:#fff5df;padding:14px;margin-top:16px}.pending-summary{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-height:180px;overflow:auto}

.service-year-field{margin-top:10px}.service-year{max-width:130px}.prior-price{max-width:36rem}.price-review-card{background:#fff;border:1px solid var(--border);border-radius:7px;padding:18px;margin:16px 0}.price-confirm{display:flex;gap:10px;align-items:flex-start;min-height:44px}.price-confirm input{width:20px;height:20px;min-height:20px;padding:0;margin:2px 0 0;flex:0 0 20px}#price-comparison{white-space:pre-wrap}#price-nav{white-space:normal;line-height:1.4;text-align:left}.price-review-card p{overflow-wrap:anywhere}

/* Compact workspace styling, based on the user's visual references. */
:root{--accent:#2f6bea;--border:#d8deea;color:#20232c;background:#f6f7fb;font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}
#work-shell{grid-template-columns:172px minmax(0,1fr)}
aside{background:#222940;padding:18px 9px;display:flex;flex-direction:column}
.brand{gap:7px;margin:0 7px 20px}.brand b{background:#326de7;border-radius:6px;padding:5px;font-size:14px}.brand span{font-size:14px}.brand small{display:none}
aside .profile{order:0;margin:0 7px 23px;padding:0;gap:8px;border:0;flex-wrap:wrap}.profile .avatar{background:#ffcf83;color:#32364b;width:29px;height:29px;font-size:15px;font-weight:700;display:grid;place-items:center}.profile strong{font-size:11px}.profile small{font-size:10px;display:block;color:#c6ccdc}.profile #logout{width:auto;padding:2px 0;min-height:24px;font-size:10px;color:#c6ccdc;background:transparent;margin-left:37px}
.module-label{display:none}.module{background:transparent;padding:8px;font-size:13px;color:white;margin-bottom:0}
nav{margin:0 0 8px 10px;padding:0 0 0 6px;border-color:#454e68}nav button{min-height:35px;font-size:12px;line-height:1.3;padding:7px 7px;gap:7px;margin:3px 0;border-radius:5px}nav button svg{width:17px;height:17px;margin:0}nav button.active{background:#326de7;box-shadow:inset 3px 0 #88cfff}nav button:hover{background:#323b58}nav button.active:hover{background:#326de7}
#permissions-nav{padding:8px;background:transparent;font-size:12px;margin-top:4px}.side-note{margin-top:auto;padding:20px 8px 0;font-size:10px;line-height:1.7;color:#adb7ce}
header{min-height:34px;padding:7px 26px;font-size:11px}.environment{font-size:10px;padding:1px 7px;background:#edf3ff;color:#315995;border-radius:4px}
main{padding:22px 28px 30px;max-width:1640px}.notice{padding:8px 11px;border-radius:5px;font-size:11px;border:1px solid #d5e5fc;background:#eef5ff;color:#405878}#mode{margin:0 0 20px}#status:empty,#price-status:empty{display:none}
.title-row{margin:0 0 22px;gap:14px;align-items:center}.view .title-row .eyebrow{display:none}h1{font-size:23px;font-weight:750;letter-spacing:-.5px;margin:0;line-height:1.3;display:flex;align-items:center;gap:10px}h1::before{content:'▤';display:grid;place-items:center;flex:0 0 32px;height:32px;font-size:21px;font-weight:400;color:#174568;background:#a9d9ff;border:1px solid #8bbfeb;border-radius:7px;letter-spacing:0}.subtitle{font-size:11px;line-height:1.6;color:#626977;margin:4px 0 0 42px}h2{font-size:14px;font-weight:700}.title-row>button{flex-shrink:0}.title-row>h1+.subtitle{margin-left:0}
button{background:#326de7;font-weight:600;border-radius:5px;padding:7px 11px;min-height:34px;box-shadow:none}button:hover{background:#235bcc}button.secondary{border-color:#969ca9;color:#303642}button.secondary:hover{background:#edf3ff;border-color:#6b86b2}.quiet,.link{background:transparent;color:#235bcc}.panel{border-color:#d8deea;border-radius:7px;padding:15px;box-shadow:none}.section-title{gap:8px}input,select,textarea{min-height:36px;font-size:13px;padding:7px 9px;border-color:#858a96;border-radius:5px}label{font-size:11px;color:#4d5260}input::placeholder,textarea::placeholder{color:#858993}input:focus,select:focus,textarea:focus{outline:2px solid #326de7;outline-offset:1px}.hint{font-size:11px;line-height:1.6;color:#697080}.table-scroll,#client-results{border-radius:6px}th,.ledger th{background:#f6f7fb;color:#303644;font-size:11px;font-weight:650;padding:9px 10px}td,.ledger td{font-size:12px;padding:10px;line-height:1.5;border-color:#d8deea}.ledger{padding:0}.ledger th,.ledger td{padding:9px 10px}.ledger button{font-size:11px}.ledger td small,td small{color:#727885;font-size:11px;margin-top:4px}#client-results td:first-child{font-size:14px}#client-results td button{min-height:32px;font-size:11px}#filters button{border:1px solid #969ca9;background:white;color:#303642;padding:5px 10px;min-height:31px;font-size:11px}#filters button.active{background:#edf3ff;border-color:#98baff;color:#245cc4}.toolbar{margin-bottom:12px}.tag{border:1px solid #c0cadb;font-size:10px;padding:2px 5px}.form-actions{margin-top:16px}.summary h2{font-size:16px;margin-bottom:20px}.summary-total strong{font-size:28px;color:#205fc4}.summary-total{margin-top:18px}.summary-note{font-size:11px}.summary .eyebrow{font-size:10px}footer{margin:0 28px;font-size:10px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.price-workbench{display:grid;grid-template-columns:370px minmax(0,1fr);gap:22px;align-items:start}.price-settings{margin:0;padding:16px}.section-description{font-size:12px;color:#697080;margin:0 0 14px;line-height:1.5}.small-badge{font-size:10px;font-weight:600;color:#315b9e;background:#edf3ff;border-radius:3px;padding:2px 6px;white-space:nowrap}.price-settings .section-title{margin-bottom:5px}.price-settings h2{font-size:14px}.limits-table{table-layout:fixed}.limits-table th,.limits-table td{padding:10px 8px}.limits-table th:first-child{width:32%}.limits-table th[scope=row]{font-size:12px;background:transparent;border-bottom:1px solid var(--border)}.limits-table tr:last-child th{border-bottom:0}.limits-table td{background:#fff}.limits-table .limit-input{position:relative;margin:0;display:block}.limit-input .currency{position:absolute;left:9px;top:50%;transform:translateY(-50%);color:#727885;font-size:12px}.limits-table input{width:100%;margin:0;padding:7px 7px 7px 20px;font-size:13px;min-height:36px;text-align:right;font-variant-numeric:tabular-nums}.rule-note{padding:10px 11px;border-left:3px solid #e8b562;background:#fff8e9;border-radius:3px;margin:13px 0;font-size:11px;color:#6e5937;line-height:1.65}.rule-note strong{font-weight:650}.settings-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.settings-actions span{font-size:10px;color:#7a808d}.comparison-rules{border-top:1px solid var(--border);margin-top:16px;padding-top:12px;font-size:11px;line-height:1.65;color:#626977}summary{cursor:pointer}.comparison-rules summary{font-weight:600;color:#395984}.comparison-rules p{margin-bottom:0}.approval-heading{display:flex;align-items:center;gap:8px;margin:0 0 5px}.approval-heading h2{margin:0;font-size:14px}.approval-section{min-width:0}.approval-section .section-description{margin-bottom:14px}.price-review-card{padding:0;margin:0 0 14px;border:1px solid #cbd3e2;border-radius:6px;overflow:hidden}.review-heading{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;gap:14px;background:#fff}.review-heading h3{font-size:14px;font-weight:750;margin:0;line-height:1.5}.review-meta{font-size:10px;color:#727885;margin:3px 0 0}.review-state{font-size:10px;font-weight:650;text-transform:capitalize;padding:3px 8px;border:1px solid #e1bc75;border-radius:4px;background:#fff1d4;color:#75551f;white-space:nowrap}.review-state[data-state=approved]{background:#e5f2ff;color:#29567b;border-color:#9cc4e7}.review-state[data-state=allowed]{background:#e6f5ec;color:#35644a;border-color:#a7ccb5}.price-review-card .table-scroll{border:0;border-radius:0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.price-comparison-table{table-layout:fixed}.price-comparison-table th:first-child{width:34%}.price-comparison-table th{font-size:10px;padding:8px 12px}.price-comparison-table td{padding:12px;font-size:12px;font-variant-numeric:tabular-nums;vertical-align:top}.price-comparison-table td:not(:first-child){white-space:nowrap}.price-comparison-table td strong{font-weight:650}.price-comparison-table td:first-child strong{overflow-wrap:anywhere}.price-comparison-table td small{font-size:10px;margin-top:4px}.change-exceeds{color:#9d6517;background:#fff8e9}.review-details{padding:11px 15px;color:#626977;font-size:11px;border-bottom:1px solid var(--border)}.review-details summary{color:#365b8b;font-weight:550}.review-details p{margin:9px 0 0;line-height:1.65}.price-confirm{font-size:11px;font-weight:400;line-height:1.6;margin:0;padding:12px 15px 8px;min-height:0;align-items:center;color:#4e5564}.price-confirm input{width:16px;height:16px;min-height:16px;flex-basis:16px;accent-color:#326de7;margin:0}.price-review-card>button{margin:4px 0 13px 15px;font-size:11px}.price-review-card>button.secondary{margin-left:6px}.price-review-card>[role=status]{margin:0;padding:0 15px 12px;font-size:11px;color:#9b5129}.price-review-card>[role=status]:empty{display:none}.price-empty{background:#fff;border:1px solid var(--border);border-radius:6px;padding:40px 16px;text-align:center}.empty-mark{display:grid;place-items:center;width:35px;height:35px;background:#eaf4ee;border:1px solid #d1e5d8;border-radius:50%;color:#428567;font-size:20px;margin:0 auto 12px}.price-empty p{font-weight:600;font-size:12px;margin:0 0 5px}.price-empty small{font-size:11px;color:#767d89}#price-status{font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:#8a5221}#price-settings-form input:disabled{background:#f4f5f8;color:#697080}
@media(max-width:1180px){.price-workbench{grid-template-columns:320px minmax(0,1fr);gap:16px}.price-comparison-table th,.price-comparison-table td{padding-left:8px;padding-right:8px}.price-comparison-table{min-width:440px}}
@media(min-width:701px) and (max-width:1000px){#work-shell{grid-template-columns:158px minmax(0,1fr)}main{padding:20px}.price-workbench{grid-template-columns:minmax(0,1fr)}.price-settings{max-width:none}.limits-table th:first-child{width:38%}.limit-input input{max-width:180px}.limit-input .currency{left:9px}.limits-table .limit-input{max-width:180px}.price-comparison-table{min-width:470px}}
@media(max-width:700px){#work-shell{display:block}aside{height:auto;padding:12px 12px 0;position:static;display:block}.brand{margin:0;font-size:13px}.brand small,.module,.module-label,.side-note{display:none}aside .profile{display:flex;position:absolute;top:12px;right:14px;margin:0;align-items:center;gap:8px}.profile .avatar,.profile small{display:none}.profile #logout{margin:0;min-height:28px}.profile strong{font-size:10px}nav{display:flex;overflow-x:auto;margin:10px -12px 0;padding:4px 12px 8px;border:0;gap:5px}nav button{width:auto;flex-shrink:0;white-space:nowrap;min-height:44px;margin:0;font-size:12px;padding:7px 11px;gap:6px}nav button svg{width:16px;height:16px}#price-nav{white-space:nowrap}#permissions-nav{min-height:36px;width:auto;margin:0 0 7px 0;padding:5px 8px;font-size:11px}header{padding:8px 14px;font-size:10px;min-height:34px}.environment{font-size:9px}main{padding:18px 14px 24px}#mode{font-size:10px;line-height:1.6;margin-bottom:17px}.title-row{margin-bottom:18px;align-items:flex-start}h1{font-size:20px;gap:8px;letter-spacing:-.35px}h1::before{flex-basis:29px;height:29px;font-size:19px}.subtitle{margin-left:37px;font-size:10px}.title-row>button{font-size:11px;min-height:44px;padding:6px 10px}input,select,textarea,.limits-table input{font-size:16px;min-height:44px}.price-workbench{grid-template-columns:minmax(0,1fr);gap:23px}.price-settings{padding:14px}.limits-table th,.limits-table td{padding:9px 6px}.limits-table th:first-child{width:31%}.limits-table th[scope=row]{font-size:11px}.limits-table th{font-size:11px}.limit-input .currency{font-size:13px}.limits-table input{padding-left:19px;padding-right:6px;font-size:15px}.settings-actions{justify-content:space-between}.settings-actions button{min-height:44px;font-size:12px}.settings-actions span{font-size:9px}.rule-note{font-size:11px}.price-comparison-table{min-width:465px}.price-confirm{align-items:flex-start;min-height:44px;font-size:11px}.price-confirm input{width:20px;height:20px;min-height:20px;flex-basis:20px;margin-top:1px}.price-review-card>button{min-height:44px;font-size:12px}.price-review-card>.secondary{margin-right:12px}.ledger button,#client-results td button{min-height:44px}.view .panel{border-radius:6px}footer{margin:0 14px}.summary-total{flex-direction:row}.summary h2{font-size:14px}.editor-layout{grid-template-columns:minmax(0,1fr)}.summary .eyebrow{display:none}}

#invoices td:nth-child(3),#invoices td:nth-child(4),#invoices td:nth-child(6){white-space:nowrap;font-variant-numeric:tabular-nums}#invoices td:nth-child(6){text-align:right}#client-results td:last-child button{margin:3px 4px 3px 0}.profile .avatar{padding:0}
@media(max-width:700px){.price-comparison-table{min-width:0}.price-comparison-table th{white-space:normal;font-size:9px;line-height:1.5;padding:7px 6px}.price-comparison-table th:first-child{width:31%}.price-comparison-table th:last-child{width:25%}.price-comparison-table td{padding:10px 6px;font-size:11px}.price-comparison-table td small{font-size:9px}.price-comparison-table td:not(:first-child){white-space:normal;overflow-wrap:anywhere}}
/* Approved reference: grouped workspace lists and focused next actions. */
:root{font:14px/1.55 Arial,"Microsoft YaHei",system-ui,sans-serif;color:#24262b;background:#f6f7fb;--accent:#2f6dea;--border:#d4dce9}
#work-shell{grid-template-columns:164px minmax(0,1fr)}aside{background:#222940;padding:22px 9px}.brand{margin:0 6px 29px;gap:8px}.brand span{font-size:16px}.brand b{font-size:14px;border-radius:6px}.module{padding:10px 8px;background:#2f6dea;color:white;border-radius:5px;margin-bottom:3px;font-size:14px}.profile strong{font-size:12px}.profile small{font-size:11px}aside .profile{margin:0 6px 25px}.subnav,nav{margin-left:11px;padding-left:7px;border-color:#4d5670}nav button{font-size:12px;min-height:35px;gap:8px;padding:8px 7px;margin:4px 0}nav button.active{background:#2f6dea;box-shadow:inset 3px 0 #83caff}#permissions-nav{font-size:13px}.side-note{font-size:11px}header{min-height:39px;padding:8px 29px;font-size:12px}header #current-location{color:#646c79}main{padding:25px 29px 36px;max-width:1640px}#mode{font-size:12px;line-height:1.6;background:transparent;border:0;border-bottom:1px solid #e1e5ee;padding:0 0 9px;margin:0 0 20px;color:#646e7d}.title-row{margin-bottom:20px}h1{font-size:26px;line-height:1.25;font-weight:750;gap:12px;letter-spacing:-.5px}.view h1::before{width:36px;height:36px;flex-basis:36px;font-size:23px;background:#a8d8ff;border-color:#8dbde5;border-radius:8px}.subtitle{font-size:12px;margin:4px 0 0 48px;line-height:1.55;color:#6a7079}h2{font-size:16px}.section-description,.hint{font-size:12px}.panel{border-color:#d4dce9}.small-badge{font-size:11px}.environment{font-size:11px}button{font-size:13px;min-height:36px;font-weight:500;background:#2f6dea}button.secondary{border-color:#878f9e;color:#282d35;background:white}input,select,textarea{font-size:14px;min-height:36px;border-color:#929aa7}label{font-size:12px}th,.ledger th{font-size:12px;padding:10px 11px;font-weight:500;color:#626b78}td,.ledger td{font-size:13px;padding:14px 11px;line-height:1.55}td small,.ledger td small{font-size:12px}#client-results td:first-child{font-size:16px}#client-results td button,.ledger button{font-size:12px;min-height:34px}.tag{font-size:11px}.section-title h2{font-size:16px}.summary-note{font-size:12px}.record-actions{gap:4px}.ledger .hint{padding-top:10px}footer{font-size:11px}.customer span{font-size:14px}#client-search .inline input{max-width:600px}#client-search{background:#f6f7fb;padding:13px 12px;border:1px solid var(--border);border-radius:6px}#view-clients>.panel{padding:0;border:0;background:transparent}#client-results td{height:82px}#client-results .customer td:first-child{font-weight:700}
.price-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid #d6ddeb;margin:20px 0 12px}.price-tab{background:transparent!important;color:#667182;padding:9px 0 11px;border:0;border-bottom:2px solid transparent;border-radius:0;margin-bottom:-1px;min-height:42px;font-size:13px;display:flex;align-items:center;gap:7px}.price-tab.active{color:#2f6dea;border-bottom-color:#2f6dea;font-weight:600}.price-overview{display:flex;align-items:center;gap:23px;border-top:1px solid #e1e5ee;border-bottom:1px solid #e1e5ee;padding:10px 0;margin-bottom:17px;font-size:12px;color:#545b67}.price-overview strong{margin-left:7px;color:#252932;font-size:13px}.price-overview small{margin-left:auto;font-size:11px}.price-overview>span::before{content:'';display:inline-block;width:6px;height:6px;background:#efc784;border-radius:50%;margin-right:6px}.price-overview>span:nth-child(2)::before{background:#77ccac}.price-priority{border:1px solid #de963e;border-left:3px solid #d7912d;background:#fff5df;border-radius:6px;padding:17px 15px;display:flex;gap:22px;margin-bottom:18px}.priority-item{flex:1;min-width:0}.priority-item+ .priority-item{border-left:1px solid #dca55a;padding-left:20px}.priority-item strong{font-size:14px}.priority-item p{margin:3px 0 0;font-size:13px;color:#565047;line-height:1.7}#price-approvals-panel>.section-description{font-size:11px;color:#747b87;margin:0 0 12px;text-align:right}.price-review-group{border:1px solid var(--border);border-radius:6px;overflow:hidden;margin-bottom:18px;background:white}.price-review-group>h2{display:flex;align-items:center;gap:9px;background:#f2faff;padding:8px 12px;font-size:13px;margin:0;border-bottom:1px solid var(--border)}.price-review-group>h2>.small-badge{background:#a8d8f7;color:#234453;border:1px solid #7e9cb1;border-radius:4px;font-size:12px;padding:1px 6px}.review-columns{display:grid;grid-template-columns:minmax(170px,1.05fr) minmax(250px,2.25fr) minmax(150px,.88fr) 132px 108px}.review-column-labels{background:#f6f7fb;color:#626b78;font-size:12px;border-bottom:1px solid var(--border)}.review-column-labels>div{padding:9px 10px}.review-column-labels>div:not(:last-child),.price-review-card>div:not(:last-of-type){border-right:1px solid var(--border)}.price-review-card{border:0;border-bottom:1px solid var(--border);border-radius:0;padding:0;margin:0;min-height:112px;background:white;overflow:visible}.price-review-card:last-child{border-bottom:0}.price-review-card:nth-child(even){background:#f6f7fb}.price-review-card>div{padding:14px 11px;min-width:0;display:flex;flex-direction:column;justify-content:center;overflow-wrap:anywhere}.review-customer h3{font-size:16px;font-weight:700;color:#24262b;line-height:1.5;margin:0}.review-customer small{font-size:12px;color:#6b717c;margin-top:5px}.review-reason p{font-size:12px;line-height:1.6;margin:2px 0 4px}.review-service-tags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:5px}.service-tag{font-size:11px;padding:1px 5px;background:#d7b4e9;color:#342640;border-radius:2px;display:inline-block;line-height:1.55}.service-tag:nth-child(even){background:#a6dbfa;color:#224254}.review-invoice-info{font-size:12px;color:#5f6875;line-height:1.8}.review-invoice-info small{font-size:11px}.review-invoice-info strong{font-size:14px;color:#282e38;font-variant-numeric:tabular-nums;white-space:nowrap}.review-state{display:inline-flex;align-items:center;justify-content:center;border:1px solid #688196;background:#a7d9fa;color:#203546;border-radius:5px;min-height:34px;padding:6px 7px;text-align:center;font-size:12px;line-height:1.45;white-space:normal;max-width:126px;text-transform:none}.review-state[data-state=approved],.review-state[data-state=allowed]{background:#c6e5d7;border-color:#86ad99;color:#355e49}.review-open{background:transparent!important;color:#2865df;padding:8px 0;border:0;font-size:13px;min-height:36px}.review-open:hover{background:#e9f0fd!important}.price-settings{padding:0;margin:23px 0 0;border:0;background:transparent}.price-settings .section-title{margin:0 0 14px}.price-settings h2{font-size:17px}.price-settings .small-badge{background:transparent;color:#737b86;font-weight:400;font-size:12px}.limits-table{table-layout:fixed}.limits-table th,.limits-table td{padding:17px 20px}.limits-table th:first-child{width:32%}.limits-table th:nth-child(2),.limits-table th:nth-child(3){width:24%}.limits-table th[scope=row]{font-size:16px;font-weight:700;background:transparent}.limits-table thead th{font-size:13px;font-weight:500;padding:11px 20px;color:#5e6673}.limits-table td:last-child{font-size:12px;color:#66717e}.limits-table td{background:transparent}.limit-input{max-width:155px}.limits-table input{font-size:15px;min-height:36px}.limit-input .currency{font-size:13px}.settings-actions{margin:15px 0 20px;gap:16px}.settings-actions span{font-size:12px;color:#6f7784}.rule-note{margin:20px 0;font-size:13px;color:#5b4b32;border-left:3px solid #e0a349;background:#fff5e0;padding:12px 15px}.comparison-rules{margin:20px 0 0;padding-top:16px;font-size:13px;line-height:1.9}.comparison-rules summary{font-size:14px;color:#2c3440}#price-settings-feedback{font-size:12px;color:#37674c}#price-settings-feedback:empty{display:none}.price-review-dialog{width:760px;max-width:calc(100vw - 28px)}.price-review-dialog .dialog-body{padding:20px;overflow:auto}.price-review-dialog .dialog-body>p{font-size:12px;color:#66717e}.price-review-dialog .price-confirm{font-size:13px;padding:16px 0;min-height:44px}.price-review-dialog .dialog-body>button{margin:5px 8px 5px 0}.price-review-dialog .dialog-body>[role=status]{font-size:12px;color:#8a5221}.price-review-dialog .price-comparison-table th{font-size:12px}.price-review-dialog .price-comparison-table td{font-size:13px}.price-review-dialog .price-comparison-table small{font-size:11px}.price-review-dialog .review-details{padding:13px 0;font-size:12px}.price-review-dialog .price-confirm input{width:20px;height:20px;min-height:20px;flex-basis:20px}.price-review-dialog .table-scroll{border:1px solid var(--border);border-radius:5px}.price-empty{padding:40px 16px}.price-empty p{font-size:14px}.price-empty small{font-size:12px}
@media(max-width:1150px){#work-shell{grid-template-columns:151px minmax(0,1fr)}main{padding:24px 20px}header{padding-left:20px;padding-right:20px}.review-columns{grid-template-columns:minmax(140px,.95fr) minmax(200px,2.1fr) 132px 108px 88px}.price-review-card>div{padding:13px 9px}.review-customer h3{font-size:15px}.review-state{font-size:11px}.review-open{font-size:12px}.price-priority{padding:14px 12px;gap:16px}}
@media(min-width:701px) and (max-width:950px){.review-columns{grid-template-columns:170px minmax(0,1fr)}.review-column-labels{display:none}.price-review-card>div:nth-child(2){border-right:0}.price-review-card>div:nth-child(3){grid-column:1/-1;border-top:1px solid var(--border);border-right:0;display:block;padding:9px 12px}.price-review-card>div:nth-child(3)>*{margin-right:10px}.price-review-card>div:nth-child(4){border-right:0;align-items:flex-start}.price-review-card>div:nth-child(5){align-items:flex-end}.limits-table td,.limits-table th{padding:13px}.price-priority{display:block}.priority-item+.priority-item{border-left:0;border-top:1px solid #e9c38b;margin-top:9px;padding:9px 0 0}}
@media(max-width:700px){#work-shell{display:block}aside{padding:13px 12px 0}aside .profile{margin:0;top:15px;right:15px}.profile strong{font-size:11px}.module{display:none}nav{display:flex;border:0;margin:9px -12px 0;padding:0 12px 8px;gap:6px}nav button{min-height:44px;font-size:12px;white-space:nowrap}main{padding:19px 14px 25px}header{padding:7px 14px;font-size:11px}h1{font-size:23px}.view h1::before{height:31px;flex-basis:31px;font-size:20px}.subtitle{margin-left:43px;font-size:11px}#mode{font-size:11px}.price-overview{flex-wrap:wrap;gap:7px 18px;font-size:11px}.price-overview small{width:100%;margin-left:0;font-size:11px}.price-priority{display:block;font-size:12px;padding:12px}.priority-item strong{font-size:13px}.priority-item p{font-size:12px}.priority-item+.priority-item{border-left:0;border-top:1px solid #e9c38b;margin-top:9px;padding:9px 0 0}.price-tabs{gap:20px}.price-tab{font-size:12px;min-height:44px}.review-columns{grid-template-columns:minmax(0,1fr)}.review-column-labels{display:none}.price-review-card{min-height:0}.price-review-card>div:not(:last-of-type){border-right:0}.price-review-card>div:first-child{padding:13px 12px 1px}.price-review-card>div:nth-child(2){padding:7px 12px 12px}.price-review-card>div:nth-child(3){border-top:1px solid #e3e7ef;display:block;padding:9px 12px}.price-review-card>div:nth-child(3)>*{margin-right:8px}.price-review-card>div:nth-child(4){padding:10px 12px 0;align-items:flex-start}.price-review-card>div:nth-child(5){padding:5px 12px 12px;align-items:flex-start}.review-customer h3{font-size:16px}.review-open{font-size:13px;min-height:44px}.review-state{font-size:12px}.limits-table th,.limits-table td{padding:12px 7px}.limits-table th[scope=row]{font-size:13px;width:32%}.limits-table thead th{font-size:11px}.limits-table th:last-child,.limits-table td:last-child{display:none}.limits-table input{font-size:16px;min-height:44px;padding-right:5px;padding-left:19px}.limit-input .currency{font-size:12px;left:6px}.rule-note{font-size:12px}.settings-actions{gap:9px}.settings-actions span{font-size:11px}.comparison-rules{font-size:12px}.price-review-dialog .dialog-body{padding:16px}.price-review-dialog .price-comparison-table{min-width:0}.price-review-dialog .price-comparison-table th{font-size:11px}.price-review-dialog .price-comparison-table td{font-size:12px}.price-review-dialog .price-comparison-table small{font-size:11px}.price-review-dialog .price-confirm{font-size:12px}.price-review-dialog .dialog-body>button{min-height:44px}input,select,textarea{font-size:16px;min-height:44px}#client-results td button,.ledger button{min-height:44px}#client-search .inline input{max-width:100%}footer{font-size:11px}}

/* A retained draft remains in this tab only and is never submitted by navigation. */
.hub-draft-choice{width:min(520px,calc(100vw - 32px));border:1px solid #cbd8e9;border-radius:12px;padding:24px;color:#20364f;box-shadow:0 20px 60px #10234033}
.hub-draft-choice::backdrop{background:#20364f66}
.hub-draft-choice h2{font-size:20px;margin:0 0 12px}
.hub-draft-choice p{line-height:1.7;margin:0 0 18px}
.hub-draft-choice>div{display:flex;flex-wrap:wrap;gap:10px}
[data-draft-notice]{color:#8a571c;font-size:13px;line-height:1.5}
