:root{--ink:#243d40;--muted:#637774;--line:#d9e4df;--surface:#fff;--bg:#eff5f3;--accent:#1f6665;--soft:#dfebe7;--dark:#203d40;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #1f666577}a{color:inherit;text-decoration:none}button{color:inherit}button[hidden],[hidden]{display:none!important}.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}
.concept-bar{min-height:53px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 28px;background:#203d40;color:#edf7f3;font-size:12px}.concept-bar>span{display:flex;gap:7px;align-items:center;white-space:nowrap}.concept-bar b{font-weight:400;color:#b8d2c8}.concept-bar i{width:6px;height:6px;background:#b2dcaf;border-radius:50%}.preview-modes{display:flex;gap:3px;background:#ffffff0d;padding:3px;border-radius:8px}.preview-modes button{border:0;padding:6px 12px;color:#d1e3dc;background:transparent;border-radius:5px;font-size:12px}.preview-modes button[aria-pressed=true]{color:#203d40;background:#e4f0eb}.role-picker{display:flex;gap:8px;align-items:center;color:#bed5cb;white-space:nowrap}.role-picker select{max-width:174px;color:#f2f8f5;background:#203d40;border:1px solid #6a8c80;padding:6px 9px;border-radius:6px;font-size:12px}
.product-shell{max-width:1800px;margin:0 auto;background:#f5f8f6;min-height:100vh}.site-header{height:82px;padding:0 34px;display:flex;align-items:center;gap:40px;border-bottom:1px solid var(--line);background:#fbfdfc}.brand{display:flex;align-items:center;gap:8px}.brand strong{font-size:29px;letter-spacing:-1.6px}.site-header nav{display:flex;gap:29px;align-items:center;margin:auto;font-size:13px}.site-header nav a{color:#52676a}.site-header nav .selected{font-weight:650;color:var(--accent);height:82px;display:grid;place-items:center;border-bottom:3px solid var(--accent)}.admin-badge{border:1px solid var(--line);padding:7px 10px;border-radius:30px;font-size:11px;color:var(--muted);white-space:nowrap}
.workspace{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:calc(100vh - 135px)}.sidebar{border-right:1px solid var(--line);background:#f8fbf9;padding:27px 17px 20px;display:flex;flex-direction:column}.app-brand{display:flex;align-items:center;gap:10px;padding:0 11px 22px}.app-symbol{display:grid;place-items:center;width:39px;height:44px;border-radius:12px;color:#fbfdfc;background:var(--accent);font-size:25px}.app-brand strong{display:block;font-size:20px;letter-spacing:-.5px}.app-brand small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.side-label{font-size:9px;font-weight:600;letter-spacing:1.1px;margin:18px 12px 12px;color:#7d9189}.side-link{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;border-radius:8px;padding:12px 11px;background:transparent;font-size:12px;margin-bottom:5px;color:#5c7169}.side-link>span:first-child{font-size:18px;width:20px}.side-link.active{background:#e2eeea;color:#1f6665;font-weight:650}.side-count{margin-left:auto;font-size:10px;background:#fff8;padding:3px 5px;border-radius:4px}.side-bottom{margin-top:auto;padding:80px 6px 0}.local-note{display:flex;gap:8px;font-size:11px}.local-note strong{font-size:11px;font-weight:550}.local-note p{font-size:10px;line-height:1.6;color:var(--muted);margin:7px 0}.online-dot{width:6px;height:6px;background:#51876c;border-radius:50%;flex:none;margin-top:4px}.install-button{margin:18px 0 15px;padding:10px 9px;border:1px solid #bfd2c9;background:#fff;border-radius:7px;display:flex;justify-content:space-between;width:100%;font-size:10px}.side-bottom>a{font-size:10px;text-decoration:underline;text-underline-offset:4px;color:var(--muted)}
main{min-width:0}.app-topbar{display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 36px;border-bottom:1px solid var(--line);background:#fff9}.app-topbar>div:last-child{display:flex;align-items:center;gap:10px}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb span{padding:0 12px;color:#b4c5bd}.access-pill{font-size:10px;border-radius:30px;padding:7px 10px;background:#e2eee8;color:#416650}.access-pill.expired{background:#fff0da;color:#855611}.mobile-app-name{display:none}.icon-button{display:grid;place-items:center;background:transparent;border:0;width:32px;height:32px;border-radius:6px;font-size:23px}.icon-button:hover{background:#dfebe7}.page-panel{padding:33px 36px 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.4px}.page-heading h1{font-size:clamp(25px,2.25vw,34px);font-weight:550;letter-spacing:-1.3px;line-height:1.22;margin:9px 0 10px}.page-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.7}.button{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;padding:12px 17px;border-radius:8px;font-size:12px;font-weight:550;min-height:42px;white-space:nowrap}.button.primary{background:var(--accent);color:#fff}.button.primary:hover{background:#285254}.button.secondary{background:#fff;color:var(--ink);border-color:#c8d9d0}.button.secondary:hover{background:#edf4ef}.text-button{padding:3px 0;border:0;background:transparent;font-size:11px;color:var(--accent);text-decoration:none}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px;align-items:start}.editor-card{min-width:0;border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 20px;border-bottom:1px solid #edf2ee}.document-switch{display:flex;padding:3px;background:#eff5f1;border-radius:7px;gap:3px}.document-switch button{font-size:10px;background:transparent;padding:6px 13px;border:0;border-radius:5px;color:var(--muted)}.document-switch button[aria-pressed=true]{background:white;color:var(--ink);box-shadow:0 1px 4px #203d4012}.save-status{font-size:9px;color:#6c8677}.save-status.error{color:#9d3430}.document-meta{padding:23px 21px 12px}.document-meta label{display:block;font-size:10px;color:var(--muted)}.document-meta input{display:block;width:100%;font-size:20px;letter-spacing:-.6px;font-weight:550;color:var(--ink);padding:9px 0 6px;background:transparent;border:0;border-bottom:1px solid transparent;border-radius:0;outline-offset:1px}.document-meta input:hover{border-color:#dbe7df}.meta-row{display:flex;align-items:center;gap:15px;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:8px}.preset-row{display:flex;align-items:center;gap:10px;padding:12px 21px 18px;flex-wrap:wrap}.preset-row>label{font-size:10px;color:var(--muted)}.preset-row select{font-size:10px;border:1px solid #d9e6dd;background:#f6faf7;border-radius:6px;padding:7px 20px 7px 8px;color:var(--ink)}.preset-row>span{font-size:9px;color:#84958b;margin-left:auto}.table-wrap{width:100%;overflow-x:auto}.work-table{width:100%;border-collapse:collapse;font-size:11px}.work-table th{font-size:9px;font-weight:550;text-align:left;color:#75867c;background:#f6f9f6;padding:11px 7px;border-top:1px solid #e6eee7;border-bottom:1px solid #e6eee7;white-space:nowrap}.work-table th:first-child{padding-left:21px}.work-table th:last-child{width:26px}.work-table .work-name{width:46%}.work-table td{padding:12px 7px;border-bottom:1px solid #edf2ee;vertical-align:middle}.work-table td:first-child{padding-left:21px}.work-table input{min-width:0;border:1px solid transparent;background:transparent;border-radius:4px;padding:6px 3px;width:100%;font-size:11px;color:#314a3f}.work-table input:hover{border-color:#dce7de}.work-table input:focus{border-color:#7ba493;background:#fbfdfb}.work-table input[type=number]{width:65px;text-align:right;appearance:textfield;-moz-appearance:textfield}.work-table input[data-field=unit]{width:35px}.work-table .number-cell{text-align:right;white-space:nowrap}.work-table td.number-cell{font-size:11px;font-weight:550;color:#385644;padding-right:8px;min-width:70px}.delete-row{width:24px;height:28px;font-size:17px;color:#9baaa0;background:transparent;border:0}.delete-row:hover{color:#a14736;background:#fff1e9;border-radius:4px}.work-table input::-webkit-inner-spin-button{appearance:none}.add-row{display:block;text-align:left;padding:16px 21px;width:100%;border:0;background:#fff;color:var(--accent);font-size:11px;border-bottom:1px solid #e9f0e9}.add-row:hover{background:#f6faf6}.adjustments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:20px 21px 18px}.adjustments label{font-size:9px;line-height:1.6;color:#728479}.adjustments input{width:100%;display:block;border:1px solid #dfe9e0;background:#fbfdfb;border-radius:6px;margin-top:6px;padding:9px 8px;font-size:12px;color:var(--ink)}.editor-bottom{padding:0 21px 19px}.editor-bottom label{font-size:9px;color:var(--muted)}.editor-bottom textarea{display:block;margin-top:7px;width:100%;max-width:100%;border:1px solid #dfe9e0;border-radius:6px;background:#fbfdfb;padding:11px;font-size:11px;line-height:1.6;resize:vertical;color:var(--ink)}.calculation-note{font-size:9px;color:#83948a;line-height:1.65;margin:11px 0 0}.form-error{margin:14px 20px;padding:12px;border-radius:6px;background:#fff1e7;color:#874735;font-size:12px;line-height:1.6}[aria-invalid=true]{border-color:#a84730!important;background:#fff3ec!important}
.result-column{display:grid;gap:17px}.total-card{padding:23px 22px 17px;border-radius:13px;background:#203d40;color:#f4fbf8;box-shadow:0 7px 20px #203d4009}.total-card .eyebrow{font-size:8px;color:#a9c5b9;letter-spacing:1.3px}.total-card>strong{display:block;font-size:35px;letter-spacing:-1.4px;font-weight:500;margin:13px 0 22px;white-space:nowrap}.summary-line{display:flex;justify-content:space-between;gap:8px;font-size:10px;line-height:1.6;margin-bottom:8px;color:#bcd2c7}.summary-line b{font-weight:450;color:#e3f0e8;white-space:nowrap}.prepay-line{display:flex;justify-content:space-between;font-size:11px;gap:10px;border-top:1px solid #4a6761;margin-top:16px;padding-top:16px}.prepay-line b{font-weight:550;white-space:nowrap}.total-card>p{font-size:9px;margin:15px 0 0;color:#96b5a6}.delivery-card{padding:21px;border:1px solid var(--line);border-radius:13px;background:#fff}.delivery-card h2{font-size:15px;letter-spacing:-.4px;margin:0 0 9px;font-weight:550}.delivery-card p{color:var(--muted);font-size:10px;line-height:1.6;margin:0 0 16px}.delivery-card .button{width:100%;justify-content:space-between;margin-top:9px;font-size:11px}.small-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.small-actions .text-button{font-size:9px}.trial-note{display:flex;gap:11px;padding:0 3px;color:#789183;font-size:10px;line-height:1.7}.trial-note>span{font-size:23px;color:#568577}.trial-note p{margin:0}.trial-note b{font-weight:550;color:#5d7e6c}.paper-preview{margin-top:31px}.preview-heading{display:flex;align-items:center;gap:15px;margin-bottom:15px}.preview-heading h2{font-size:14px;font-weight:550;margin:0}.preview-heading>span{font-size:9px;color:var(--muted)}.preview-heading .text-button{margin-left:auto}.paper{background:white;padding:44px 48px;max-width:830px;margin:auto;border:1px solid #e1e9e2;box-shadow:0 7px 26px #203d4004;font-family:Arial,sans-serif;color:#263f37;font-size:11px;line-height:1.65}.paper-head{display:flex;justify-content:space-between;gap:30px;padding-bottom:18px;border-bottom:2px solid #234b41}.paper-head strong{font-size:15px;display:block}.paper-head small{display:block;color:#73857a;font-size:10px}.paper-title{font-size:24px;letter-spacing:-.6px;font-weight:550;margin:26px 0 8px}.paper-object{font-size:13px;margin:0 0 7px}.paper-client{font-size:11px;color:#73857a;margin:0 0 24px}.paper table{width:100%;border-collapse:collapse;font-size:10px}.paper th{text-align:left;border-top:1px solid #c7d8cc;border-bottom:1px solid #c7d8cc;padding:9px 7px;background:#f0f6f1;color:#607c69;font-weight:550}.paper td{padding:10px 7px;border-bottom:1px solid #e5eee6}.paper th:last-child,.paper td:last-child{text-align:right;white-space:nowrap}.paper-totals{margin:18px 0 22px auto;width:min(310px,100%)}.paper-totals .summary-line{color:#627e6a}.paper-totals .summary-line b{color:#263f37}.paper-totals .paper-grand{padding:12px 0;border-top:1px solid #b9d0bf;font-size:14px;color:#263f37}.paper-note{margin-top:25px;font-size:10px;white-space:pre-wrap}.paper-foot{font-size:8px;border-top:1px solid #dce8df;margin-top:26px;padding-top:10px;color:#8ba092}.paper-empty{padding:24px;color:#718376;text-align:center}.app-footer{display:flex;justify-content:space-between;gap:15px;padding:17px 36px 25px;color:#8a9d91;font-size:9px}.expiry-banner{margin:25px 36px 0;padding:18px 21px;border-radius:11px;border:1px solid #dfc8a2;background:#fff7e9;color:#785622;display:flex;align-items:center;gap:20px;justify-content:space-between}.expiry-banner strong{font-size:13px}.expiry-banner p{font-size:11px;margin:6px 0 0;line-height:1.6}.expiry-banner .button{font-size:10px}.history-list{display:grid;gap:12px}.history-card{display:flex;gap:20px;align-items:center;padding:20px 24px;background:#fff;border:1px solid var(--line);border-radius:10px}.history-card>div:first-child{flex:1;min-width:0}.history-card h2{font-size:17px;margin:0 0 8px;overflow-wrap:anywhere}.history-card p{font-size:11px;color:var(--muted);margin:0;line-height:1.5}.history-card strong{font-size:18px;white-space:nowrap;font-weight:500}.history-actions{display:flex;gap:12px;align-items:center}.history-actions .icon-button{color:#a26c55}
dialog{width:min(850px,calc(100vw - 32px));max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #c6dacf;border-radius:17px;padding:30px;color:var(--ink);background:#fbfdfb;box-shadow:0 25px 90px #173f3440}dialog::backdrop{background:#17372d80;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}.dialog-heading h2{font-size:25px;letter-spacing:-.8px;font-weight:550;margin:8px 0 0}.dialog-intro{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:22px}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:26px}.details-grid label{font-size:11px;color:var(--muted)}.details-grid input{display:block;padding:12px;border:1px solid #cdded3;border-radius:7px;width:100%;margin-top:8px;font-size:13px;color:var(--ink);background:white}.pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pricing-option{padding:22px 18px;border:1px solid #d0e0d5;background:white;border-radius:11px}.pricing-option.recommended{background:#e7f2eb;border:2px solid #5b9278;padding:21px 17px}.pricing-option>span{font-size:9px;color:var(--muted)}.pricing-option h3{font-size:15px;margin:11px 0 20px;font-weight:550}.pricing-option strong{display:block;font-size:27px;letter-spacing:-1px}.pricing-option small{font-size:11px;letter-spacing:0;font-weight:450}.pricing-option p{font-size:11px;line-height:1.8;color:var(--muted);margin-bottom:0}.subscription-rule{margin:23px 0;padding:17px;border:1px solid #d3e2d6;border-radius:8px;font-size:12px}.subscription-rule p{font-size:11px;line-height:1.8;margin:8px 0 0;color:var(--muted)}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#203d40;color:#f2faf5;border:1px solid #6b8c79;border-radius:9px;box-shadow:0 8px 30px #173f3433;padding:14px 19px;max-width:min(550px,calc(100vw - 32px));font-size:12px;line-height:1.6;z-index:100}
body.standalone .site-header,body.phone .site-header{display:none}body.standalone .mobile-app-name,body.phone .mobile-app-name{display:inline;font-size:17px}body.standalone .breadcrumb,body.phone .breadcrumb{display:none}body.standalone .workspace{min-height:calc(100vh - 53px)}body.phone .product-shell{max-width:430px;margin:20px auto;border:1px solid #c4d6c9;box-shadow:0 12px 50px #2a5b3b20;border-radius:23px;overflow:hidden}body.phone .workspace{display:block}body.phone .sidebar{display:none}body.phone .app-topbar{padding:0 19px}body.phone .access-pill{max-width:150px;font-size:9px}body.phone .page-panel{padding:23px 17px}body.phone .page-heading{display:block;margin-bottom:20px}body.phone .page-heading h1{font-size:27px}body.phone .page-heading>.button{margin-top:18px;width:100%}body.phone .editor-layout{display:flex;flex-direction:column;gap:17px}body.phone .editor-card,body.phone .result-column{width:100%}body.phone .result-column{grid-template-columns:1fr}.phone .adjustments{grid-template-columns:1fr 1fr}.phone .preset-row>span{margin-left:0;width:100%}.phone .work-table{min-width:530px}.phone .paper{padding:22px 18px;min-width:310px}.phone .paper-preview{overflow:auto}.phone .preview-heading{flex-wrap:wrap}.phone .preview-heading .text-button{margin-left:0}.phone .expiry-banner{margin:17px;display:block}.phone .expiry-banner .button{margin-top:15px}.phone .app-footer{padding:20px 17px;line-height:1.6}.phone .history-card{flex-wrap:wrap}.phone .side-bottom{display:none}
@media(max-width:1230px){.site-header{padding:0 24px;gap:20px}.site-header nav{gap:20px}.admin-badge{display:none}.workspace{grid-template-columns:198px minmax(0,1fr)}.app-topbar{padding:0 25px}.page-panel{padding:28px 24px}.editor-layout{grid-template-columns:minmax(0,1fr) 235px;gap:16px}.result-column .total-card{padding:21px 18px}.total-card>strong{font-size:31px}.delivery-card{padding:18px}.work-table{min-width:480px}.preset-row>span{margin-left:0;width:100%}.adjustments{gap:8px}.save-status{max-width:120px;text-align:right;line-height:1.5}.page-heading h1{font-size:29px}.sidebar{padding-left:12px;padding-right:12px}}
@media(max-width:1000px){.editor-layout{grid-template-columns:1fr}.result-column{grid-template-columns:1fr 1fr;align-items:start}.trial-note{grid-column:1/-1}.page-heading{align-items:flex-start}.page-heading h1{font-size:28px}.page-heading>.button{font-size:10px;padding:10px}.site-header nav{gap:16px;font-size:11px}.paper{padding:30px}.history-card{flex-wrap:wrap}.pricing-grid{grid-template-columns:1fr}.pricing-option{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.pricing-option>span{grid-column:1/-1}.pricing-option h3{margin:10px 0}.pricing-option strong{grid-row:2;grid-column:2;text-align:right}.pricing-option p{grid-column:1/-1}.expiry-banner{margin:20px 24px 0;align-items:flex-start}}
@media(max-width:740px){.concept-bar{padding:12px 15px;flex-wrap:wrap;justify-content:center;gap:10px}.concept-bar>span{justify-content:center;width:100%;font-size:10px}.preview-modes button{font-size:10px;padding:6px 9px}.role-picker{font-size:10px}.role-picker select{font-size:10px;max-width:145px}.site-header{height:64px;padding:0 18px}.brand strong{font-size:24px}.brand img{width:32px;height:32px}.site-header nav a{display:none}.site-header nav{margin:0 0 0 auto}.site-header nav .selected{height:64px;font-size:11px}.workspace{display:block}.sidebar{display:none}.app-topbar{padding:0 19px;height:58px}.breadcrumb{font-size:10px}.access-pill{font-size:9px}.app-topbar .icon-button{font-size:20px}.page-panel{padding:24px 18px}.page-heading{display:block}.page-heading h1{font-size:28px}.page-heading>.button{margin-top:18px;width:100%;font-size:12px}.editor-layout{gap:17px}.result-column{grid-template-columns:1fr 1fr;gap:12px}.total-card>strong{font-size:29px}.total-card{padding:20px 15px!important}.delivery-card{padding:18px 14px}.delivery-card h2{font-size:14px}.delivery-card .button{font-size:10px;padding:10px}.small-actions{display:block}.small-actions .text-button{display:block;margin-top:8px}.adjustments{grid-template-columns:1fr 1fr;gap:12px}.work-table{min-width:530px}.document-meta input{font-size:18px}.preset-row{gap:8px}.paper{padding:25px 22px;min-width:310px}.paper-preview{overflow:auto}.preview-heading{flex-wrap:wrap;gap:9px}.preview-heading .text-button{margin-left:0}.app-footer{padding:19px 18px;line-height:1.7}.expiry-banner{margin:17px 18px 0;display:block}.expiry-banner .button{margin-top:14px}.history-card{padding:18px;gap:15px}.history-card h2{font-size:15px}.history-actions{width:100%}dialog{padding:22px}.details-grid{grid-template-columns:1fr;gap:16px}.dialog-heading h2{font-size:23px}.details-grid input{font-size:16px}.editor-card input,.editor-card textarea,.editor-card select{font-size:16px}.work-table .number-cell{font-size:12px}.document-meta input{font-size:20px}.save-status{font-size:9px}.document-switch button{font-size:11px}.pricing-option strong{font-size:24px}}
@media(max-width:390px){.result-column{grid-template-columns:1fr}.grand-total{font-size:34px}.delivery-card .button{font-size:12px}.small-actions{display:flex}.total-card>strong{font-size:35px}.concept-bar b{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{@page{size:A4;margin:15mm}body{background:white!important}.concept-bar,.site-header,.sidebar,.app-topbar,.expiry-banner,.page-heading,.editor-layout,.preview-heading,.app-footer,dialog,.toast,#history-panel{display:none!important}.workspace,main,.page-panel,.paper-preview,.product-shell{display:block!important;background:white!important;border:0!important;margin:0!important;padding:0!important;max-width:none!important;min-height:0!important;box-shadow:none!important;border-radius:0!important}#editor-panel{display:block!important}.paper{max-width:none!important;width:100%;border:0;box-shadow:none;padding:0!important;font-size:11px;min-width:0!important}.paper table{font-size:10px}.paper thead{display:table-header-group}.paper tr{break-inside:avoid}.paper-head,.paper-totals,.paper-note{break-inside:avoid}.paper-title{font-size:25px}a{color:inherit}body.phone .product-shell{max-width:none!important;box-shadow:none!important}.paper-preview{overflow:visible!important}}

/* Owner review: readable type, visible actions and a livelier jade palette. */
.mobile-product-nav{display:none}
@media screen{
 .concept-bar{font-size:13px;min-height:59px}.preview-modes button,.role-picker select{font-size:12px}.role-picker{font-size:12px}
 .site-header nav{font-size:15px}.brand strong{font-size:32px}.admin-badge{font-size:12px;background:#e6f2e9;border-color:#b8d4c2;color:#38684d}
 .app-brand strong{font-size:23px}.app-brand small{font-size:12px;line-height:1.45}.app-symbol{background:linear-gradient(145deg,#248971,#1d5e60);box-shadow:0 4px 12px #1f666526}
 .side-label{font-size:11px;line-height:1.6}.side-link{font-size:14px;padding:13px 10px;border:1px solid transparent;line-height:1.5}.side-link.active{border-color:#add3be;background:#def1e5;color:#1d654e}.side-link:hover{border-color:#c1d9ca;background:#edf6ef}.side-count{font-size:12px}.local-note,.local-note strong{font-size:13px}.local-note p{font-size:12px}.install-button{font-size:12px;border-color:#82b7a2;background:#edf8f0;color:#255f4f;line-height:1.6}.side-bottom>a{font-size:12px;line-height:1.7}
 .breadcrumb{font-size:13px}.access-pill{font-size:12px;border:1px solid #acd1b8;background:#e1f2e5;color:#35664a}.access-pill.expired{border-color:#e1c48c;background:#fff1d5;color:#785216}
 .page-heading h1{font-size:clamp(30px,2.7vw,40px)}.page-heading p{font-size:16px}.eyebrow{font-size:12px;line-height:1.5;letter-spacing:1.1px}
 .button{font-size:14px;border-width:1.5px;min-height:46px;padding:12px 18px}.button.primary{background:linear-gradient(110deg,#1b7661,#245f69);border-color:#195d53;box-shadow:0 3px 7px #205f4b14}.button.primary:hover{background:#195d53}.button.secondary{background:#edf5fc;border-color:#a6c7da;color:#2d5875}.button.secondary:hover{background:#e0edf8}
 .text-button{font-size:12px;border:1px solid #b6d2c1;border-radius:6px;padding:7px 10px;background:#f0f8f2;color:#28644e;line-height:1.45}.text-button:hover{background:#e1f2e7;border-color:#76ab90;text-decoration:none}.icon-button{border:1px solid #c8dace;background:#f9fdf9;min-width:38px;min-height:38px}
 .card-top{padding:18px 20px}.document-switch{border:1px solid #d0e3d5;background:#e9f5ed}.document-switch button{font-size:13px;min-height:32px}.document-switch button[aria-pressed=true]{border:1px solid #94bea5;color:#245f49}.save-status{font-size:12px;line-height:1.5}
 .document-meta label{font-size:13px}.document-meta input{font-size:24px;line-height:1.45}.meta-row{font-size:12px;flex-wrap:wrap;line-height:1.6}.preset-row>label{font-size:13px}.preset-row select{font-size:14px;padding:9px 24px 9px 10px;border-color:#accdb8;background:#edf7ef}.preset-row>span{font-size:12px;line-height:1.6}
 .work-table{font-size:14px;min-width:610px}.work-table th{font-size:12px;padding-top:13px;padding-bottom:13px;color:#557362;background:#ebf5ee}.work-table td{padding-top:13px;padding-bottom:13px}.work-table input{font-size:14px;padding:8px 4px;border-color:#e0eae2;background:#fdfefd}.work-table input[type=number]{width:78px}.work-table input[data-field=unit]{width:44px}.work-table td.number-cell{font-size:14px;min-width:86px}.delete-row{border:1px solid #e1d6c9;border-radius:5px;background:#fff8f1;color:#9f7051;height:31px;width:27px}
 .add-row{font-size:14px;font-weight:550;background:#f0f8f2;border-top:1px solid #c5dfcd;border-bottom:1px solid #c5dfcd;color:#26724d}.add-row:hover{background:#e2f2e7}
 .adjustments label{font-size:12px}.adjustments input{font-size:16px;border-color:#c6dccd;background:#f5fbf6}.editor-bottom label{font-size:12px}.editor-bottom textarea{font-size:14px;line-height:1.7}.calculation-note{font-size:12px;color:#688270;line-height:1.7}.form-error{font-size:14px}
 .total-card{background:linear-gradient(140deg,#194d46,#23434f);border:1px solid #255e57}.total-card .eyebrow{font-size:11px;color:#bedfcd}.total-card>strong{font-size:41px;color:#f1fff1}.summary-line{font-size:13px;line-height:1.6;gap:10px}.summary-line b{font-weight:500}.prepay-line{font-size:14px;line-height:1.6}.total-card>p{font-size:12px;line-height:1.7;color:#b3d0bf}
 .delivery-card{border-color:#b8d4c5;background:linear-gradient(140deg,#fff,#f2faf5)}.delivery-card h2{font-size:20px;line-height:1.35}.delivery-card p{font-size:13px;line-height:1.7}.delivery-card .button{font-size:14px;white-space:normal;gap:8px}.small-actions{flex-wrap:wrap;gap:8px}.small-actions .text-button{font-size:12px}.trial-note{font-size:13px;line-height:1.7}.trial-note b{color:#356a50}
 .preview-heading h2{font-size:18px}.preview-heading>span{font-size:12px}.preview-heading{flex-wrap:wrap}.paper{font-size:14px}.paper-head strong{font-size:18px}.paper-head small{font-size:12px}.paper-object{font-size:16px}.paper-client{font-size:13px}.paper table{font-size:12px}.paper-note{font-size:13px}.paper-foot{font-size:11px}.paper-title{font-size:29px}.paper-totals .paper-grand{font-size:17px}
 .app-footer{font-size:12px;line-height:1.7}.expiry-banner strong{font-size:16px}.expiry-banner p{font-size:14px}.expiry-banner .button{font-size:13px}.history-card h2{font-size:20px}.history-card p{font-size:13px}.history-card strong{font-size:22px}
 .dialog-intro{font-size:15px}.details-grid label{font-size:14px}.details-grid input{font-size:16px}.pricing-option>span{font-size:12px}.pricing-option h3{font-size:19px}.pricing-option strong{font-size:32px}.pricing-option small{font-size:13px}.pricing-option p{font-size:14px}.pricing-option:nth-child(2){background:#f0f6fc;border-color:#bfd3e1}.pricing-option:nth-child(3){background:#fcf7ec;border-color:#dfd1ac}.subscription-rule{font-size:15px;background:#edf7ef}.subscription-rule p{font-size:14px}.toast{font-size:14px}
 .mobile-product-nav{gap:6px;padding:12px 17px;border-bottom:1px solid #c7ddce;background:#f6fbf7}.mobile-product-nav button{border:1px solid #b8d5c3;background:#fff;border-radius:7px;min-height:40px;padding:8px 9px;font-size:12px;color:#3a6c54;flex:1}.mobile-product-nav button.active{background:#dcefe3;border-color:#7fb696;color:#255c42;font-weight:600}
 body.phone .mobile-product-nav{display:flex}body.phone .work-table{min-width:0}body.phone .work-table thead{display:none}body.phone .work-table tbody{display:block}body.phone .work-table tr{display:grid;grid-template-columns:1fr .7fr 1fr;position:relative;padding:15px 16px;border-bottom:1px solid #d6e6da;gap:10px}body.phone .work-table td{display:block;border:0;padding:0!important;min-width:0}body.phone .work-table td:first-child{grid-column:1/-1;padding-right:30px!important}body.phone .work-table td:last-child{position:absolute;right:13px;top:18px}body.phone .work-table input{width:100%;font-size:16px;min-height:40px}body.phone .work-table input[data-field=unit]{width:100%}body.phone .work-table td[data-label]:not([data-line-total])::before{content:attr(data-label);display:block;margin-bottom:5px;font-size:12px;color:#688571}body.phone .work-table td[data-line-total]{grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px dashed #ccdecf;padding-top:9px!important;font-size:16px}body.phone .work-table td[data-line-total]::before{content:attr(data-label);font-size:13px;font-weight:400;color:#688571}body.phone .total-card>strong{font-size:40px}body.phone .page-heading h1{font-size:32px}body.phone .page-heading p{font-size:15px}body.phone .access-pill{font-size:11px;max-width:170px}body.phone .save-status{font-size:11px}body.phone .paper-preview{overflow:auto}body.phone .paper{min-width:360px}
}
@media screen and (max-width:740px){
 .concept-bar{font-size:12px}.concept-bar>span{font-size:12px}.site-header nav .selected{font-size:13px}.mobile-product-nav{display:flex}.app-topbar{padding:0 17px}.breadcrumb{font-size:12px}.access-pill{font-size:11px}.page-heading h1{font-size:32px}.page-heading p{font-size:15px}.page-heading>.button{font-size:14px}.result-column{grid-template-columns:1fr}.total-card{padding:23px!important}.total-card>strong{font-size:42px}.summary-line{font-size:14px}.delivery-card{padding:23px}.delivery-card .button{font-size:15px}.small-actions{display:flex}.small-actions .text-button{font-size:13px}.save-status{font-size:11px}.adjustments label{font-size:13px}.editor-bottom label{font-size:13px}.editor-card input,.editor-card textarea,.editor-card select{font-size:16px}.document-meta input{font-size:23px}
 .work-table{min-width:0}.work-table thead{display:none}.work-table tbody{display:block}.work-table tr{display:grid;grid-template-columns:1fr .7fr 1fr;position:relative;padding:15px 16px;border-bottom:1px solid #d6e6da;gap:10px}.work-table td{display:block;border:0;padding:0!important;min-width:0}.work-table td:first-child{grid-column:1/-1;padding-right:30px!important}.work-table td:last-child{position:absolute;right:13px;top:18px}.work-table input{width:100%!important;font-size:16px;min-height:40px}.work-table td[data-label]:not([data-line-total])::before{content:attr(data-label);display:block;margin-bottom:5px;font-size:12px;color:#688571}.work-table td[data-line-total]{grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px dashed #ccdecf;padding-top:9px!important;font-size:16px}.work-table td[data-line-total]::before{content:attr(data-label);font-size:13px;font-weight:400;color:#688571}.paper{min-width:360px}.paper-preview{overflow:auto}.app-footer{font-size:11px}.expiry-banner .button{font-size:14px}.details-grid input{font-size:16px}
}
@media print{.mobile-product-nav{display:none!important}}

/* Complete editor: sections, catalogue, profiles, document themes. */
.library-reset{display:flex;gap:10px;flex-wrap:wrap;margin:0 4px 15px}
.library-niche-label{display:inline-block;margin:12px 0 0 16px;font-size:13px;color:#637774}.paper-section-total td{font-weight:600;background:#fafcf9}
.auth-wall{min-height:100vh;display:grid;place-items:center;padding:32px;text-align:center;font-size:20px;line-height:1.7;background:#eff5f3;color:#203d40}
body[data-hosted]:not([data-auth-ready]) .product-shell,body[data-hosted]:not([data-auth-ready]) .concept-bar{display:none!important}
.editor-tools{display:flex;gap:9px;flex-wrap:wrap;padding:14px 20px;background:#f5faf7;border-top:1px solid #dceae1;border-bottom:1px solid #dceae1}
.tool-button{padding:9px 12px;border:1px solid #b8cdc1;border-radius:8px;background:#fff;color:#426b58;font-size:13px;min-height:42px}
.catalog-disclaimer{font-size:13px;line-height:1.65;color:#73623d;background:#fff7e6;border:1px solid #ead4a6;border-radius:8px;padding:12px 15px;margin:0 20px 18px}
.estimate-section{border-bottom:1px solid #cfdfd4}.section-heading{position:relative;display:flex;align-items:center;gap:12px;padding:14px 20px;background:#e9f4ef;border-bottom:1px solid #cfdfd4}
.section-heading>input{flex:1;min-width:0;font-size:17px;font-weight:600;line-height:1.45;border:1px solid #bdd5c7;background:#fff9;color:#285548;border-radius:7px;padding:9px 10px}.section-heading>span{font-size:14px;white-space:nowrap;font-weight:600;color:#356b51}
.section-menu>summary{list-style:none;font-size:25px;cursor:pointer;border:1px solid #b0cbbd;border-radius:7px;background:#fff;min-width:38px;min-height:38px;text-align:center}.section-menu>summary::-webkit-details-marker{display:none}
.section-menu>div{position:absolute;right:16px;top:62px;z-index:5;display:grid;gap:6px;background:#fff;border:1px solid #a6c4b4;border-radius:10px;box-shadow:0 8px 28px #24493922;padding:9px;min-width:190px}.section-menu button{padding:10px 12px;text-align:left;border:1px solid #d2e2d9;border-radius:6px;background:#f4faf6;font-size:14px}.section-menu button:hover{background:#e3f2ea}
.empty-section{padding:12px 20px;color:#667d70;font-size:14px;line-height:1.7}.work-table .work-name{width:40%}.work-table{min-width:760px}.work-table .row-actions{width:96px;min-width:96px}.row-actions button{display:inline-grid;place-items:center;padding:0;width:27px;height:29px;margin:2px 1px;border:1px solid #c9dcd0;border-radius:5px;background:#f4faf6;font-size:16px;color:#3c6b53}.row-actions [draggable]{cursor:grab}.row-actions .delete-row{border-color:#dec7b6;background:#fff5ed;color:#9a5d3b}.work-table input[data-field=discount]{width:66px}
.adjustments label>span{display:flex;align-items:center;gap:6px;min-height:22px}.adjustments input[type=checkbox]{display:inline-block;width:18px;height:18px;padding:0;margin:0;accent-color:#24725e}
.details-grid select,.stack-label select,.library-filters input,.library-filters select{display:block;width:100%;min-width:0;border:1px solid #b9d2c4;border-radius:7px;background:#fff;color:#294e41;font-size:16px;padding:12px;margin-top:8px}.stack-label{display:block;font-size:14px;color:#637774}
.wide-dialog{width:min(1030px,calc(100vw - 28px))}.library-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.library-tabs button{border:1px solid #b6d1c0;background:#fff;border-radius:8px;padding:11px 18px;font-size:15px;color:#386b51}.library-tabs button.active{background:#dceddf;border-color:#7aa88b;font-weight:600}
.library-filters{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:16px;margin-bottom:20px}.library-filters label{font-size:13px;color:#637774}.library-results{max-height:56dvh;min-height:120px;overflow:auto;overscroll-behavior:contain;padding:2px 4px 10px}.library-section{border:1px solid #bfd7c9;border-radius:10px;margin-bottom:12px;background:#fff;overflow:hidden}.library-section>summary{padding:15px 18px;cursor:pointer;font-size:17px;font-weight:600;background:#eaf5ee}.library-section>summary span{float:right;font-size:13px;font-weight:400}.library-section>.text-button{margin:12px 16px}.library-item{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #e2ece6;background:#fff}.library-item:last-child{border:0}.library-item>div{flex:1;min-width:0}.library-item strong{display:block;font-size:15px;line-height:1.6;overflow-wrap:anywhere;font-weight:500}.library-item small{display:block;color:#718473;font-size:13px;line-height:1.7;margin-top:4px}.library-item .button{font-size:13px;min-height:40px;padding:8px 11px}
.logo-preview{display:flex;align-items:center;gap:18px;margin:14px 0 24px;flex-wrap:wrap}.logo-preview img{max-width:260px;max-height:120px;object-fit:contain;padding:12px;background:#fff;border:1px solid #cfdfd4;border-radius:8px}.wizard-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.wizard-actions #wizard-back{margin-right:auto}.profile-transfer{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #d5e4da;margin-top:24px;padding-top:20px}.share-text{width:100%;padding:16px;border:1px solid #bad1c2;border-radius:9px;font-size:16px;line-height:1.65;background:#fff;color:#294e41;resize:vertical}.share-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.update-bar{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:20px;max-width:calc(100vw - 32px);padding:16px 20px;background:#e6f4de;border:1px solid #98bd7b;border-radius:12px;box-shadow:0 8px 35px #234b4126;z-index:90;font-size:15px}
.paper-logo{display:block;max-width:190px;max-height:75px;object-fit:contain;margin:0 0 12px}.paper-section td{font-weight:650;background:#edf5ef;color:#305943}.paper-signatures{display:flex;justify-content:space-between;gap:24px;font-size:12px;margin:45px 0 26px;flex-wrap:wrap}.paper td{overflow-wrap:anywhere}.paper{--paper-accent:#285f4f;--paper-tint:#edf5ef}.paper[data-theme=blue]{--paper-accent:#305f8b;--paper-tint:#edf4fc}.paper[data-theme=sand]{--paper-accent:#8b6533;--paper-tint:#fcf4e8}.paper[data-theme=mono]{--paper-accent:#222;--paper-tint:#f1f1f1}.paper .paper-head{border-color:var(--paper-accent)}.paper th,.paper .paper-section td{background:var(--paper-tint);color:var(--paper-accent)}.paper-title{color:var(--paper-accent)}
body.phone .library-filters{grid-template-columns:1fr}body.phone .editor-tools{padding:12px 16px}body.phone .section-heading{flex-wrap:wrap;padding:12px 16px;gap:8px}body.phone .section-heading>input{width:calc(100% - 50px);flex:auto;font-size:16px}body.phone .section-heading>span{order:3;width:100%;font-size:14px}body.phone .work-table{min-width:0}body.phone .work-table tr{grid-template-columns:1fr 1fr}body.phone .work-table td:first-child{padding-right:0!important}body.phone .work-table td.row-actions{position:static;display:flex;grid-column:1/-1;width:100%;justify-content:flex-end;gap:6px}body.phone .row-actions button{width:38px;height:38px}body.phone .work-table input[data-field=discount]{width:100%}body.phone .work-table td[data-line-total]{grid-column:auto;align-self:end;padding-bottom:10px!important;display:block;border:0}body.phone .work-table td[data-line-total]::before{display:block;font-size:12px;margin-bottom:7px}body.phone .catalog-disclaimer{margin-left:16px;margin-right:16px}
@media screen and (max-width:740px){.editor-tools{padding:12px 16px;gap:7px}.editor-tools .button,.tool-button{font-size:13px;flex:1}.catalog-disclaimer{margin-left:16px;margin-right:16px;font-size:13px}.section-heading{flex-wrap:wrap;padding:12px 16px;gap:8px}.section-heading>input{width:calc(100% - 50px);flex:auto;font-size:16px}.section-heading>span{order:3;width:100%;font-size:14px}.work-table{min-width:0}.work-table tr{grid-template-columns:1fr 1fr}.work-table td:first-child{padding-right:0!important}.work-table td.row-actions{position:static;display:flex;grid-column:1/-1;width:100%;justify-content:flex-end;gap:6px}.row-actions button{width:38px;height:38px}.work-table input[data-field=discount]{width:100%}.work-table td[data-line-total]{grid-column:auto;align-self:end;padding-bottom:10px!important;display:block;border:0}.work-table td[data-line-total]::before{display:block;font-size:12px;margin-bottom:7px}.library-filters{grid-template-columns:1fr;gap:12px}.library-tabs button{flex:1;padding:10px;font-size:14px}.library-item{flex-wrap:wrap;padding:13px}.library-item>div{flex-basis:100%}.library-item .button{flex:1}.library-results{max-height:49dvh}.share-grid{grid-template-columns:1fr 1fr}.update-bar{width:calc(100vw - 28px);flex-direction:column;align-items:stretch;gap:10px}.paper-signatures{font-size:11px}.profile-transfer .text-button{flex:1}}
@media print{.update-bar,.auth-wall{display:none!important}.paper-logo{max-width:160px;max-height:65px}.paper-signatures{break-inside:avoid;margin-top:30px}.paper-section{break-after:avoid}.paper th,.paper-section td{print-color-adjust:exact;-webkit-print-color-adjust:exact}.paper-note{break-inside:auto!important}}

/* Review revision: one clear row action, inline updates and room for custom data. */
.paper{overflow-wrap:anywhere}.paper-head>div{min-width:0}body.phone .result-column{position:static}
.transfer-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;padding:15px;border:1px solid #c3d9d0;border-radius:10px;background:#edf7f2;margin:0 0 18px}.transfer-row .stack-label select{margin-top:6px}.transfer-row .button{min-height:46px}
@media screen and (max-width:520px){.transfer-row{grid-template-columns:1fr}}
:root{--accent:#157b68;--line:#c9e2d8;--bg:#edf7f4}
.product-shell{background:linear-gradient(140deg,#f0f8f4,#f3f7fc)}
.sidebar{background:linear-gradient(180deg,#f2fcf6,#e8f4f1)}.app-brand strong{font-size:22px;letter-spacing:-.6px}.side-link.active{background:#d7f2df;border-color:#84caa5;box-shadow:0 3px 10px #1773540a}.side-link:hover{background:#e1f3ee}
.page-heading h1{font-size:clamp(29px,2.7vw,42px);max-width:780px}.page-heading{align-items:flex-start}.page-heading .new-document-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}.new-document-actions .button{white-space:nowrap}
.editor-card{border-color:#bcdace;box-shadow:0 8px 26px #18543e08}.editor-tools{background:linear-gradient(95deg,#edf8f2,#eef5fc)}.section-heading{background:linear-gradient(105deg,#e2f3eb,#edf7f4)}.section-heading>input{background:#fffffff0}.total-card{background:linear-gradient(135deg,#126c59,#19465d);box-shadow:0 8px 24px #125f4820}.total-card>strong{font-weight:600}.delivery-card{background:linear-gradient(135deg,#fff,#edf7ff);border-color:#b0d3d8}.button.primary{background:linear-gradient(105deg,#10816a,#16767c);border-color:#106c5e;box-shadow:0 4px 10px #16745d1b}.button.secondary{background:#f0f7ff;border-color:#a3c7dd}.button.danger{background:#fff1eb;color:#a74731;border-color:#e4b9a9}
.work-table .actions-heading,.work-table th:last-child{width:118px;min-width:118px;text-align:center}.work-table td.row-actions{width:118px;min-width:118px;padding:12px 10px;vertical-align:middle;text-align:center}.row-actions .row-actions-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:94px;min-height:38px;height:auto;white-space:nowrap;font-size:13px;font-weight:550;padding:8px 10px;margin:0;background:#edf6fd;border:1px solid #a6c8da;border-radius:8px;color:#315c74;cursor:pointer}.row-actions .row-actions-trigger:hover{background:#dceffa;border-color:#6cabc8}.work-table th.work-name{min-width:210px}.work-table .extra-cell{min-width:150px}.work-table .extra-cell input{min-width:130px}
.row-actions-dialog{width:min(560px,calc(100vw - 28px))}.row-actions-dialog h2{font-size:22px;line-height:1.45;overflow-wrap:anywhere}.row-action-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.row-action-options button{white-space:normal;text-align:left;justify-content:flex-start;min-height:52px;font-size:15px}
.custom-fields-list,.custom-columns-list{display:grid;gap:12px;margin:16px 0}.custom-field-row{display:grid;grid-template-columns:1fr 1.5fr 40px;gap:12px;align-items:end;padding:14px;background:#eef8f2;border:1px solid #c5e1d0;border-radius:10px}.custom-column-row{display:grid;grid-template-columns:1fr 40px;gap:12px;align-items:end;padding:14px;background:#edf5fc;border:1px solid #c0d6e8;border-radius:10px}.custom-field-row label,.custom-column-row label{font-size:13px;color:#577461;line-height:1.7}.custom-field-row input,.custom-column-row input{display:block;width:100%;min-width:0;margin-top:7px;border:1px solid #b3d0bf;background:#fff;border-radius:7px;padding:11px;font-size:16px;color:#244f3d}.custom-field-row .icon-button,.custom-column-row .icon-button{margin-bottom:3px}.wide-dialog h3{margin:24px 0 10px;font-size:19px}.empty-document{padding:28px 22px;background:#f6fcf8;line-height:1.7;font-size:15px;color:#567963}.empty-document strong{display:block;font-size:19px;color:#2b684c;margin-bottom:7px}.paper-custom-fields{margin:18px 0 24px;font-size:12px;line-height:1.6}.paper-custom-fields>div{display:grid;grid-template-columns:minmax(90px,30%) 1fr;border-bottom:1px solid #e2ece5;gap:16px;padding:6px 0}.paper-custom-fields dt{font-weight:600}.paper-custom-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.update-bar{position:static;transform:none;display:flex;align-items:center;justify-content:space-between;gap:20px;width:auto;max-width:none;margin:12px 36px 4px;padding:15px 18px;border-radius:10px;box-shadow:none;background:#e8f3ff;border-color:#b6cee4;font-size:14px;color:#365a79}.update-bar strong{font-size:15px}.update-bar p{margin:5px 0 0;font-size:13px;line-height:1.6}.update-actions{display:flex;gap:8px;flex:none}.update-actions .button{font-size:13px;min-height:40px;padding:9px 12px}
body.phone .page-heading .new-document-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:18px}body.phone .new-document-actions .button{font-size:13px;padding:10px}body.phone .work-table td.row-actions{position:static;grid-column:1/-1;padding:10px 0 0!important;display:flex;width:100%;min-width:0;justify-content:stretch;border-top:1px dashed #c4ded0}body.phone .row-actions .row-actions-trigger{width:100%;min-height:42px;font-size:14px}body.phone .work-table .extra-cell{min-width:0;grid-column:1/-1}body.phone .work-table .extra-cell input{min-width:0}body.phone .update-bar{margin:12px 17px;display:block}body.phone .update-actions{margin-top:12px}.phone .new-document-actions{width:100%}
@media screen and (max-width:1400px){.editor-layout{grid-template-columns:1fr}.result-column{grid-template-columns:1fr 1fr}.trial-note{grid-column:1/-1}.total-card>strong{font-size:40px}.delivery-card{padding:24px}}
@media screen and (min-width:1401px){.result-column{position:sticky;top:22px}.editor-layout{grid-template-columns:minmax(0,1fr) 285px}.total-card>strong{font-size:38px}}
@media screen and (max-width:740px){.app-brand strong{font-size:19px}.page-heading .new-document-actions{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch;gap:9px;width:100%;margin-top:18px}.new-document-actions .button{white-space:normal;font-size:14px;padding:11px 9px}.result-column{grid-template-columns:1fr}.work-table td.row-actions{position:static;grid-column:1/-1;padding:10px 0 0!important;display:flex;width:100%;min-width:0;justify-content:stretch;border-top:1px dashed #c4ded0}.row-actions .row-actions-trigger{width:100%;min-height:42px;font-size:14px}.work-table .extra-cell{min-width:0;grid-column:1/-1}.work-table .extra-cell input{min-width:0}.row-action-options{grid-template-columns:1fr}.custom-field-row{grid-template-columns:1fr 40px}.custom-field-row label{grid-column:1}.custom-field-row .icon-button{grid-column:2;grid-row:1/3;align-self:center}.custom-column-row{grid-template-columns:1fr 40px}.update-bar{margin:12px 18px;display:block}.update-actions{margin-top:12px}.paper-custom-fields>div{grid-template-columns:1fr;gap:2px}}
@media print{.paper-custom-fields{font-size:10px}.paper[data-extra-columns="4"] table,.paper[data-extra-columns="5"] table,.paper[data-extra-columns="6"] table{font-size:8px}.paper table{table-layout:fixed}.paper th,.paper td{white-space:normal!important;overflow-wrap:anywhere}.paper-custom-fields>div{break-inside:avoid}}
/* Approved design 01: jade workspace, full structural layout. */
@media screen {
 :root{--ink:#153e33;--muted:#5d776c;--line:#d4e6dd;--bg:#f1f8f4;--accent:#07543f;--lime:#c5fa76}
 body{background:#edf6f1;color:var(--ink)}
 .product-shell{max-width:1920px;background:linear-gradient(135deg,#f2faf6 0%,#edf7f4 65%,#f8fbf7 100%)}
 .concept-bar{min-height:42px;padding:8px 25px;background:#002e23;border-bottom:1px solid #ffffff16;font-size:11px}
 .concept-bar>span{font-size:11px}.concept-bar b{color:#a4cbbb}.concept-bar .preview-modes button,.concept-bar .role-picker,.concept-bar .role-picker select{font-size:11px}.concept-bar .preview-modes button{padding:5px 10px}.concept-bar .role-picker select{padding:5px 8px;background:#063d2d}
 .workspace{display:grid;grid-template-columns:264px minmax(0,1fr);min-height:calc(100dvh - 42px)}
 .sidebar{position:sticky;top:0;align-self:start;min-height:calc(100dvh - 42px);height:calc(100dvh - 42px);overflow-y:auto;padding:30px 18px 23px;border-right:0;background:radial-gradient(ellipse at 0% 94%,#0b6742 0%,transparent 52%),linear-gradient(155deg,#004232,#003323 75%,#003b2c);color:#f2fff7}
 .app-brand{display:flex;align-items:center;gap:13px;padding:0 10px 8px;margin:0;outline-offset:5px}
 .app-brand img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 4px 8px #001e2570)}.app-brand strong{font-size:43px;line-height:1.1;font-weight:650;letter-spacing:-1.7px;color:#fff}
 .sidebar-product-name{font-size:17px;line-height:1.5;margin:8px 12px 32px;color:#c4e3d2;max-width:215px}
 .side-label{font-size:10px;letter-spacing:1.1px;color:#84bca3;margin:0 12px 14px;font-weight:600}
 .side-link{display:flex;align-items:center;gap:13px;width:100%;min-height:53px;padding:12px 15px;margin:0 0 7px;text-align:left;color:#e7f5ec;border:1px solid transparent;border-radius:28px;background:transparent;font-size:15px;line-height:1.4}
 .side-link>span:first-child{width:24px;flex:none;font-size:24px;line-height:1;text-align:center;color:#d1efdd}
 .side-link:hover{background:#ffffff0c;border-color:#ffffff21;color:#fff}
 .side-link.active{border-color:#c5fc75;background:linear-gradient(100deg,#c3fa7a,#b9f675);box-shadow:0 5px 18px #002a2929;color:#124529;font-weight:650}
 .side-link.active>span:first-child{color:#174c2c}.side-count{font-size:11px;background:#ffffff1c;color:#d5f0e1;padding:4px 7px;min-width:23px;text-align:center;border-radius:7px}.side-link.active .side-count{background:#34693916;color:#164d2e}
 .sidebar-art{position:relative;display:grid;place-items:center;min-height:195px;margin:32px -4px 12px;isolation:isolate;pointer-events:none}
 .sidebar-art:before,.sidebar-art:after{content:"";position:absolute;width:136px;height:154px;border-radius:22px;transform:rotate(17deg);background:linear-gradient(135deg,#d9ffad,#5fae81);box-shadow:0 20px 22px #001e2359;z-index:-1}
 .sidebar-art:after{transform:translate(-22px,13px) rotate(-20deg);background:linear-gradient(135deg,#eaf8ef,#82b29c);width:135px;height:151px;opacity:.8}
 .sidebar-art>span{position:absolute;inset:15px -30px;background:radial-gradient(ellipse,#72d89d26,transparent 70%);filter:blur(10px);z-index:-2}
 .sidebar-art img{width:160px;height:160px;transform:rotate(-10deg);border-radius:31px;box-shadow:0 15px 22px #001c293a;filter:drop-shadow(0 13px 13px #00271e50)}
 .side-bottom{margin-top:auto;padding:16px 9px 0}
 .local-note{gap:9px;font-size:12px}.local-note strong{font-size:12px;line-height:1.45;color:#eef9f1;font-weight:500}.local-note p{font-size:11px;line-height:1.65;color:#a8d0b9;margin:5px 0 0}.online-dot{background:#c6fa75;width:7px;height:7px;margin-top:5px}
 .install-button{padding:11px 12px;font-size:12px;line-height:1.5;min-height:43px;background:#ffffff0b;border:1px solid #70a489;color:#e4f9ec;border-radius:9px;margin:18px 0 12px}.install-button:hover{background:#ffffff17;border-color:#acdbbc}.side-bottom>a{color:#a8d3bc;font-size:11px;text-underline-offset:4px}
 main{min-width:0}.app-topbar{height:64px;padding:0 30px;border:0;background:#f3faf6b3;gap:15px}
 .breadcrumb{font-size:12px;color:#63816f}.breadcrumb:hover{color:#19533d}.app-topbar>div:last-child{gap:10px}.access-pill{font-size:11px;padding:7px 11px;color:#46795e;background:#e5f4e8;border:1px solid #cee3d3}.app-topbar .icon-button{min-width:34px;min-height:34px;width:34px;height:34px;font-size:21px;background:#e2f0e8;border-color:#d0e2d7;border-radius:50%;color:#3a6a52}
 .page-panel{max-width:1540px;padding:0 30px 30px;margin:auto}
 .direction-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:15px;background:#ffffffbf;border:1px solid #e3f0e8;box-shadow:0 7px 26px #1e604007;border-radius:19px;margin:0 0 22px}
 .direction-card{display:grid;grid-template-columns:35px minmax(0,1fr);grid-template-rows:auto auto;column-gap:11px;row-gap:3px;align-items:center;text-align:left;min-height:68px;padding:11px 12px;background:#f0f6f3;border:1px solid transparent;border-radius:12px;color:#23553f;transition:background .16s,border-color .16s}
 .direction-card:hover{background:#e6f3e9;border-color:#b1d4bd}.direction-card.active,.direction-card[aria-pressed=true]{background:linear-gradient(105deg,#d8fcb8,#e9fbda);border-color:#bfeb9d;color:#17492b}
 .direction-icon{display:grid;place-items:center;grid-row:1/3;width:35px;height:35px;color:#07563c}
 .direction-icon svg{width:30px;height:30px;stroke-width:1.8}.direction-name{display:block;align-self:end;font-size:13px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}.direction-count{font-size:10px;color:#7b9485;line-height:1.35;align-self:start}.direction-card.active .direction-count{color:#5e875a}
 .page-heading{margin:0 0 16px;display:flex;gap:20px;align-items:center;justify-content:space-between}.page-heading .eyebrow{font-size:9px;letter-spacing:1.5px;color:#829a8a}.page-heading h1{font-size:20px;line-height:1.35;letter-spacing:-.45px;max-width:600px;font-weight:550;margin:5px 0 0;color:#557465}.page-heading p{font-size:14px}
 .page-heading .new-document-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
 .new-document-actions .button{min-height:42px;padding:10px 13px;border-radius:9px;font-size:12px;font-weight:550}
 .button.primary{background:linear-gradient(115deg,#065f43,#07533e);border:1px solid #064f39;box-shadow:0 4px 10px #06594010;color:#fff}
 .button.primary:hover{background:#06422f;border-color:#043d2a}.button.secondary{background:#fff;border:1px solid #bfd7c8;color:#24573e;box-shadow:none}.button.secondary:hover{background:#eef8f1;border-color:#83b493}.button.danger{background:#fff2ed;border-color:#e7c3b4;color:#984e38}
 .text-button,.tool-button{border-color:#c4dccc;background:#f4faf6;color:#3a7351;border-radius:8px}.text-button:hover,.tool-button:hover{background:#e8f5ec;border-color:#8cb89b}
 .document-overview{border:1px solid #e1ece4;border-radius:21px;background:#fff;box-shadow:0 8px 28px #1b643d05;margin:0 0 20px;overflow:hidden}
 .document-overview .card-top{padding:14px 21px 0;border:0;min-height:47px;gap:12px}
 .document-switch{gap:4px;padding:3px;border:1px solid #dbeade;background:#f0f8f2;border-radius:8px}
 .document-switch button{min-height:29px;padding:5px 13px;font-size:12px;border:1px solid transparent;color:#698575;border-radius:5px}
 .document-switch button[aria-pressed=true]{background:#fff;border-color:#b9d7bf;box-shadow:0 2px 5px #295d3f08;color:#245a3e;font-weight:600}
 .save-status{font-size:11px;color:#71917c;max-width:none;text-align:right;line-height:1.4;display:flex;gap:7px;align-items:center}
 .save-status:before{content:"";width:6px;height:6px;border-radius:50%;background:#85bc80;flex:none}.save-status.error{color:#a94737}.save-status.error:before{background:#c86650}
 .document-overview-body{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:27px;align-items:center;padding:10px 21px 22px}
 .document-meta{padding:0;min-width:0}.document-meta>label{font-size:11px;line-height:1.5;color:#819687}
 .document-meta #document-title{display:block;width:100%;padding:6px 0 10px;border:0;border-bottom:1px solid transparent;background:transparent;color:#143f31;font-size:clamp(24px,2.4vw,34px);font-weight:650;line-height:1.3;letter-spacing:-1px}
 .document-meta #document-title:hover{border-bottom-color:#d8e7dd}.document-meta #document-title:focus{border-bottom-color:#81bc94;background:#fbfefb}
 .quick-document-details{display:grid;grid-template-columns:.95fr .9fr 1.5fr;gap:11px;margin:13px 0 0}
 .detail-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;min-height:64px;padding:10px 12px;text-align:left;border:1px solid #dbe6df;border-radius:9px;background:#fcfefd;gap:5px;color:#2c513d}
 .detail-tile>span{font-size:11px;line-height:1.4;color:#718b7b}.detail-tile>strong{max-width:100%;font-size:13px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .detail-tile:hover{border-color:#8cbea0;background:#f4fbf5}.meta-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;font-size:10px;color:#8ba18f;line-height:1.5;flex-wrap:wrap}.meta-row .text-button{padding:4px 8px;border:0;background:transparent;font-size:10px;color:#7b9984}
 .document-cover{position:relative;min-width:0;margin:0;height:176px;overflow:hidden;border-radius:13px;background:#e3eae1}
 .document-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:44% center}
 .document-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0a2e2447,transparent 60%);pointer-events:none}
 .document-cover figcaption{position:absolute;bottom:12px;left:15px;z-index:1;color:#fff;font-size:11px;font-weight:500;line-height:1.5;letter-spacing:.15px;text-shadow:0 1px 5px #17402d50}
 .editor-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
 .editor-card{border:1px solid #deebe3;border-radius:19px;background:#fff;box-shadow:0 8px 28px #1b643d04;overflow:hidden}
 .preset-row{padding:13px 19px 10px;gap:10px}.preset-row>label{font-size:11px;color:#7b9483}.preset-row select{font-size:12px;max-width:320px;padding:8px 26px 8px 10px;background:#f7fbf8;border-color:#d9e7dc}.preset-row>span{font-size:10px;margin-left:auto;color:#93a797}
 .editor-card>.catalog-disclaimer{margin:0 18px 12px;padding:9px 12px;border:1px solid #e7e9d3;border-radius:8px;background:#fbfcf2;color:#88906b;font-size:10px;line-height:1.6}
 .editor-tools{padding:12px 18px;gap:8px;align-items:center;background:#fcfefc;border-color:#e3eee6}
 .editor-tools>.button,.editor-tools>.tool-button{font-size:11px;min-height:37px;padding:8px 11px;border-radius:7px;line-height:1.45}
 .editor-tools>#clear-document{margin-left:auto;border-color:#e2e8e2;color:#8c9e91;background:#fff}.editor-tools>#undo-button,.editor-tools>#redo-button{padding:8px 9px;color:#789380}
 .section-heading{background:#f2f8f4;border-bottom:1px solid #e2ede5;padding:13px 18px;gap:12px}
 .section-heading>input{padding:8px 10px;font-size:15px;background:#ffffffc9;border-color:#d7e7dc;color:#3a6a4d;font-weight:550;border-radius:7px}
 .section-heading>span{font-size:12px;color:#6a9377}.section-menu>summary{min-width:34px;min-height:34px;font-size:23px;border-color:#d1e3d7;background:#fff;color:#7e9c88}.section-menu>div{border-color:#c2ddcc;box-shadow:0 10px 28px #234a3218}.section-menu button{font-size:13px}
 .work-table{min-width:820px;font-size:14px}.work-table th{background:#f0f8f2;color:#3d6650;font-size:11px;font-weight:600;padding:12px 9px;border-color:#e1eee5}
 .work-table th:first-child,.work-table td:first-child{padding-left:18px}.work-table th.work-name{width:38%;min-width:235px}
 .work-table td{padding:12px 9px;border-color:#edf3ef}
 .work-table input{min-height:42px;padding:9px 8px;background:#fff;border:1px solid #e1e9e4;border-radius:8px;font-size:13px;line-height:1.5;color:#234837}
 .work-table input:hover{border-color:#c2d9cb}.work-table input:focus{border-color:#6da880;background:#fbfefb}
 .work-table input[type=number]{width:78px;text-align:right}.work-table input[data-field=unit]{width:52px}.work-table input[data-field=discount]{width:66px}
 .work-table td.number-cell{font-size:13px;font-weight:650;color:#2c533c;white-space:nowrap;min-width:96px}
 .work-table .actions-heading,.work-table th:last-child{width:125px;min-width:125px;text-align:center}
 .work-table td.row-actions{width:125px;min-width:125px;padding:12px 15px 12px 8px;vertical-align:middle;text-align:center}
 .row-actions .row-actions-trigger{background:#f6faf8;border-color:#d9e5dd;color:#526f5e;font-size:12px;min-height:39px;min-width:102px;border-radius:8px;padding:8px 11px;box-shadow:none}
 .row-actions .row-actions-trigger:hover{background:#edf7f0;border-color:#9fc7aa}
 .work-table .extra-cell{min-width:145px}.work-table .extra-cell input{min-width:126px}
 .add-row{background:#f8fcf9;border-color:#e2eee6;color:#3d7a51;font-size:13px;padding:16px 20px}
 .adjustments{padding:18px 19px;gap:15px;border-top:1px solid #edf3ee}.adjustments label{font-size:11px;color:#7b9382}.adjustments input{font-size:14px;min-height:42px;border-color:#dce9df;background:#fbfefb;border-radius:8px;margin-top:5px}.adjustments input[type=checkbox]{min-height:0;width:16px;height:16px;accent-color:#136443}.adjustments label>span{min-height:18px}
 .editor-bottom{padding:0 19px 20px}.editor-bottom label{font-size:11px;color:#809786}.editor-bottom textarea{font-size:13px;line-height:1.65;border-color:#dce9e0;border-radius:8px;background:#fcfefc}.calculation-note{font-size:10px;color:#8ca491;line-height:1.7}
 .result-column{position:static;display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch;width:100%}
 .total-card{background:linear-gradient(115deg,#034a34,#003e2f);border:1px solid #0f563e;border-radius:17px;padding:24px 25px 20px;box-shadow:0 7px 21px #1c5a3c0c}
 .total-card .eyebrow{font-size:10px;color:#97c8ac;letter-spacing:1.3px}.total-card>strong{font-size:42px;line-height:1.2;letter-spacing:-1.6px;font-weight:600;color:#f4fff5;margin:10px 0 20px}.total-card .summary-line{font-size:11px;line-height:1.6;color:#a1cdb1;gap:15px;margin-bottom:7px}.total-card .summary-line b{color:#d8f0df;font-weight:500}
 .prepay-line{font-size:13px;padding-top:13px;margin-top:14px;border-color:#386c4f;color:#d2e8d6}.prepay-line b{font-size:17px;color:#f4fff6;font-weight:600}.total-card>p{font-size:10px;color:#81af93;margin-top:12px}
 .delivery-card{display:flex;flex-wrap:wrap;align-content:center;align-items:center;gap:10px;padding:23px 24px;border-color:#dfebe3;border-radius:17px;background:#ffffffd9}
 .delivery-card h2{font-size:19px;line-height:1.4;width:100%;font-weight:550;color:#2e6342;margin:0}.delivery-card p{font-size:12px;line-height:1.6;width:100%;margin:0 0 6px;color:#809585}
 .delivery-card .button{font-size:13px;min-height:47px;flex:1;justify-content:center;gap:13px;padding:12px;white-space:normal;margin:0;border-radius:9px}
 .delivery-card .export-pdf{color:#fff;border-color:#d12f32;background:linear-gradient(110deg,#ef3839,#df2e33);box-shadow:0 4px 12px #db303410}.delivery-card .export-pdf:hover{background:#ce292e}
 .delivery-card .export-excel{color:#fff;border-color:#06663b;background:linear-gradient(110deg,#08774a,#00603e);box-shadow:0 4px 12px #08683d10}.delivery-card .export-excel:hover{background:#075337}
 .delivery-card [data-action=share]{flex-basis:100%;border-color:#d1e3d6;background:#f5faf6;color:#5f876b;min-height:41px;font-size:12px}
 .delivery-card .small-actions{margin:0;width:100%;display:flex;justify-content:center;flex-wrap:wrap;gap:13px}.small-actions .text-button{font-size:11px;padding:5px 8px;background:transparent;border:0;color:#72947c}
 .trial-note{grid-column:1/-1;font-size:11px;color:#89a08e;padding:0 6px;line-height:1.65;gap:9px}.trial-note b{color:#60866b;font-weight:500}.trial-note>span{font-size:16px;color:#8ab59a}
 .paper-preview{margin-top:33px}.preview-heading{margin-bottom:14px;gap:12px}.preview-heading h2{font-size:17px;color:#63816b}.preview-heading>span{font-size:11px;color:#9aad9c}.preview-heading .text-button{font-size:10px}.paper{border-color:#dce8e0;border-radius:3px;box-shadow:0 10px 28px #194d3105}
 .history-card{border-color:#dae8df;border-radius:15px;background:#fff;box-shadow:0 5px 16px #1d5b3505}.history-card h2{font-size:19px;color:#2e6344}.history-card p{font-size:12px;color:#84a08b}.history-card strong{font-size:22px;color:#336348}
 .app-footer{font-size:10px;line-height:1.6;color:#95aa99;padding:17px 30px 23px;gap:12px}
 .update-bar{margin:0 30px 20px;background:#e9f3ed;border-color:#c6ddce;color:#598166;border-radius:12px;padding:17px 20px}
 .update-bar .button{font-size:12px}.update-bar strong{font-size:14px}.update-bar p{font-size:12px}
 dialog{border-color:#bcd7c6;border-radius:18px;background:#fbfefb;box-shadow:0 25px 100px #003c2c38}.dialog-heading h2{color:#235b3d}.dialog-heading .eyebrow{color:#759d80}.icon-button{border-color:#d3e4d8;background:#fff;color:#688b71}
 .expiry-banner{margin:0 30px 20px;border-radius:13px;background:#fffaec}.expiry-banner strong{font-size:15px}.expiry-banner p{font-size:13px}
}
@media screen and (min-width:1600px) {
 .workspace{grid-template-columns:280px minmax(0,1fr)}.sidebar{padding-left:24px;padding-right:24px}.page-panel{padding-left:40px;padding-right:40px}.app-topbar{padding-left:40px;padding-right:40px}.direction-card{grid-template-columns:40px minmax(0,1fr);min-height:72px;padding:12px 15px}.direction-name{font-size:14px}.direction-icon{width:40px;height:40px}.document-overview-body{grid-template-columns:minmax(0,1fr) 290px;gap:35px;padding:13px 24px 26px}.document-cover{height:190px}.document-overview .card-top{padding-left:24px;padding-right:24px}.quick-document-details{gap:15px}.detail-tile strong{font-size:14px}
}
@media screen and (min-width:1101px) and (max-width:1250px) {
 .workspace{grid-template-columns:232px minmax(0,1fr)}.sidebar{padding-left:13px;padding-right:13px}.app-brand strong{font-size:38px}.sidebar-product-name{font-size:15px}.side-link{font-size:14px;padding-left:12px;gap:10px}.page-panel{padding-left:22px;padding-right:22px}.app-topbar{padding-left:22px;padding-right:22px}.direction-tabs{gap:7px;padding:12px}.direction-card{grid-template-columns:28px minmax(0,1fr);gap:3px 7px;padding:10px 8px}.direction-icon,.direction-icon svg{width:27px;height:27px}.direction-name{font-size:11px}.direction-count{font-size:9px}.document-overview-body{grid-template-columns:minmax(0,1fr) 180px;gap:18px}.document-cover{height:168px}.detail-tile{padding:9px}.detail-tile>strong{font-size:11px}.document-meta #document-title{font-size:27px}
}
@media screen and (max-height:830px) and (min-width:1101px) {
 .sidebar{padding-top:23px}.sidebar-product-name{margin-bottom:23px}.sidebar-art{min-height:120px;margin-top:16px}.sidebar-art img{width:112px;height:112px}.sidebar-art:before,.sidebar-art:after{width:95px;height:109px;border-radius:16px}.side-link{min-height:48px;margin-bottom:4px}.side-bottom{padding-top:10px}
}
@media screen and (max-width:1100px) {
 .workspace{display:block;min-height:calc(100dvh - 42px)}.sidebar{display:none}.app-topbar{height:70px;padding:0 25px;background:#f5faf7;border-bottom:1px solid #e0eee5}.mobile-app-name{display:flex;align-items:center;gap:9px;color:#164e37;font-size:20px}.mobile-app-name img{width:34px;height:34px;object-fit:contain}.mobile-app-name strong{font-size:24px;letter-spacing:-.8px}.mobile-app-name b{font-size:12px;font-weight:500;line-height:1.3;color:#71917b;margin-left:5px;max-width:110px}.breadcrumb{display:none}.mobile-product-nav{display:flex;padding:10px 25px;gap:8px;background:#edf7f0;border-bottom:1px solid #dcebe1}.mobile-product-nav button{font-size:12px;min-height:40px;background:#fff;border-color:#d0e4d7;border-radius:9px;flex:1;padding:9px 11px;color:#63886d}.mobile-product-nav button.active{background:#d8f6b9;border-color:#b6dc98;color:#365e38}.page-panel{padding:20px 25px 27px}.direction-tabs{margin-bottom:20px}.document-overview-body{grid-template-columns:minmax(0,1fr) 225px}.page-heading h1{font-size:20px}.app-footer{padding-left:25px;padding-right:25px}.expiry-banner{margin:18px 25px 0}.update-bar{margin-left:25px;margin-right:25px}
}
@media screen and (min-width:741px) and (max-width:900px) {
 .direction-card{grid-template-columns:30px minmax(0,1fr);padding:11px 8px;gap:3px 8px}.direction-icon,.direction-icon svg{width:28px;height:28px}.direction-name{font-size:12px}.document-overview-body{grid-template-columns:minmax(0,1fr) 180px;gap:18px}.document-cover{height:176px}.quick-document-details{gap:8px}.detail-tile{padding:10px}.detail-tile>strong{font-size:12px}
}
@media screen and (max-width:740px) {
 .concept-bar{padding:9px 13px;gap:8px;justify-content:space-between}.concept-bar>span{font-size:10px;justify-content:flex-start;white-space:normal}.concept-bar .preview-modes{order:2}.concept-bar .preview-modes button{font-size:10px;padding:5px 7px}.concept-bar .role-picker{font-size:10px}.concept-bar .role-picker select{font-size:10px;max-width:145px}
 .app-topbar{height:68px;padding:0 17px;gap:9px}.mobile-app-name{gap:7px;max-width:190px}.mobile-app-name img{width:31px;height:31px}.mobile-app-name strong{font-size:23px}.mobile-app-name b{font-size:10px;margin-left:2px;max-width:74px}.app-topbar .access-pill{font-size:9px;padding:5px 7px;max-width:125px;line-height:1.4;white-space:normal;text-align:right}.app-topbar .icon-button{display:none}
 .mobile-product-nav{padding:9px 16px;gap:6px}.mobile-product-nav button{font-size:11px;padding:8px 6px;min-height:40px;border-radius:8px}
 .page-panel{padding:15px 16px 22px}.direction-tabs{display:grid;grid-template-columns:none;grid-template-rows:repeat(2,61px);grid-auto-flow:column;grid-auto-columns:163px;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:10px;border-radius:15px;margin-bottom:19px;scrollbar-width:thin;scrollbar-color:#bdd9c5 transparent}.direction-card{scroll-snap-align:start;grid-template-columns:31px minmax(0,1fr);grid-template-rows:1fr;min-height:61px;padding:10px;column-gap:10px;border-radius:9px}.direction-icon{grid-row:auto;width:31px;height:31px}.direction-icon svg{width:29px;height:29px}.direction-name{font-size:12px;line-height:1.4;align-self:center}.direction-count{display:none}
 .page-heading{display:block;margin-bottom:15px}.page-heading .heading-copy{margin:0 0 13px}.page-heading .eyebrow{font-size:8px}.page-heading h1{font-size:19px;line-height:1.4;max-width:330px;margin-top:3px}.page-heading .new-document-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:8px;margin-top:0;width:100%}.new-document-actions .button{min-height:42px;font-size:12px;padding:10px 8px;white-space:normal}
 .document-overview{border-radius:16px;margin-bottom:16px}.document-overview .card-top{padding:12px 14px 0;min-height:41px;gap:9px;align-items:center}.document-switch{padding:2px;gap:2px;flex:none}.document-switch button{font-size:11px;min-height:28px;padding:4px 10px}.save-status{font-size:9px;max-width:142px;line-height:1.45;gap:5px}
 .document-overview-body{display:block;padding:12px 15px 15px}.document-meta>label{font-size:10px}.document-meta #document-title{font-size:24px;letter-spacing:-.65px;min-height:47px;padding-top:5px;padding-bottom:8px;line-height:1.35}
 .quick-document-details{grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}.detail-tile{min-height:57px;padding:9px 11px;border-radius:8px;gap:3px}.detail-tile>span{font-size:10px}.detail-tile>strong{font-size:12px}.detail-tile.detail-client{grid-column:1/-1}.meta-row{margin-top:10px;font-size:9px;gap:5px}.meta-row .text-button{font-size:9px;padding:4px 0}
 .document-cover{display:none}.editor-layout{display:block}.editor-card{border-radius:15px;margin-bottom:16px}.preset-row{padding:12px 13px 8px;gap:8px}.preset-row>label{font-size:10px}.preset-row select{max-width:100%;font-size:11px;min-width:0;padding:8px 20px 8px 9px}.preset-row>span{font-size:9px;margin-left:0;width:100%}
 .editor-card>.catalog-disclaimer{font-size:10px;margin:0 12px 10px;padding:9px 10px;line-height:1.65}
 .editor-tools{padding:10px 12px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.editor-tools .button,.editor-tools .tool-button{font-size:10px;min-height:38px;padding:8px;white-space:normal;width:100%}.editor-tools>#clear-document{margin-left:0;order:6}.editor-tools>#undo-button,.editor-tools>#redo-button{font-size:10px}
 .section-heading{padding:11px 13px;gap:8px;flex-wrap:wrap}.section-heading>input{font-size:15px;line-height:1.45;padding:8px;flex:1;min-width:0;width:calc(100% - 45px)}.section-heading>span{width:100%;order:3;font-size:11px}.section-menu>summary{min-width:32px;min-height:32px;line-height:1.1}.section-menu>div{right:10px;top:49px}
 .work-table{min-width:0;width:100%;display:table}.work-table thead{display:none}.work-table tbody{display:block}.work-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);position:relative;gap:11px 12px;padding:14px 13px;border-bottom:1px solid #e0ede4;background:#fff}
 .work-table td{display:block;min-width:0;border:0;padding:0!important}.work-table td:first-child{grid-column:1/-1;padding-right:0!important}.work-table td:first-child:before{content:"Работа / услуга";display:block;font-size:11px;margin-bottom:5px;color:#7c9984}
 .work-table td[data-label]:not([data-line-total]):before{content:attr(data-label);display:block;font-size:11px;line-height:1.4;color:#7b9783;margin-bottom:5px}
 .work-table input,.work-table input[type=number],.work-table input[data-field=unit],.work-table input[data-field=discount]{display:block;width:100%!important;min-width:0;font-size:16px;min-height:43px;padding:9px 10px;line-height:1.4;text-align:left;border-radius:8px;background:#fcfefc}
 .work-table td[data-line-total]{grid-column:auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;align-self:end;min-height:65px;padding:0!important;border:0;font-size:17px;color:#315d40;gap:6px}.work-table td[data-line-total]:before{content:attr(data-label);font-size:11px;font-weight:400;color:#7b9783;line-height:1.4;margin:0}
 .work-table .extra-cell{min-width:0;grid-column:1/-1}.work-table .extra-cell input{min-width:0}.work-table td.row-actions{display:flex;grid-column:1/-1;position:static;width:100%;min-width:0;border-top:1px dashed #dceadf;padding:10px 0 0!important;justify-content:stretch}
 .row-actions .row-actions-trigger{min-width:0;width:100%;font-size:12px;min-height:42px;padding:9px 12px;border-radius:8px}
 .add-row{font-size:12px;padding:15px 14px}.adjustments{padding:16px 13px;grid-template-columns:1fr 1fr;gap:13px 12px}.adjustments label{font-size:11px}.adjustments input{font-size:16px;min-height:42px}.adjustments input[type=checkbox]{min-height:0}.editor-bottom{padding:0 13px 17px}.editor-bottom label{font-size:11px}.editor-bottom textarea{font-size:16px;line-height:1.55;padding:11px}.calculation-note{font-size:10px;line-height:1.7}
 .result-column{display:grid;grid-template-columns:1fr;gap:14px}.total-card{padding:22px 21px 19px;border-radius:15px}.total-card .eyebrow{font-size:10px}.total-card>strong{font-size:42px;margin:10px 0 19px}.total-card .summary-line{font-size:12px;line-height:1.65}.prepay-line{font-size:13px}.prepay-line b{font-size:18px}.total-card>p{font-size:10px}
 .delivery-card{padding:21px;border-radius:15px;gap:10px}.delivery-card h2{font-size:19px}.delivery-card p{font-size:12px}.delivery-card .button{font-size:13px;min-height:46px;padding:11px 9px}.delivery-card [data-action=share]{font-size:12px;min-height:41px}.small-actions .text-button{font-size:11px}.trial-note{font-size:10px;padding:0 5px}.trial-note>span{font-size:15px}
 .preview-heading{gap:8px;margin-bottom:12px}.preview-heading h2{font-size:16px}.preview-heading>span{font-size:10px}.preview-heading .text-button{font-size:9px}.paper-preview{margin-top:26px}
 .history-card{padding:16px;gap:12px}.history-card h2{font-size:17px}.history-card p{font-size:11px}.history-card strong{font-size:20px}.history-actions .button{font-size:12px;min-height:41px}
 .app-footer{padding:16px;display:block;font-size:9px;line-height:1.7}.app-footer span{display:block;margin-top:5px}
 .update-bar{margin:0 16px 18px;padding:14px 15px;border-radius:12px;display:block}.update-bar strong{font-size:13px}.update-bar p{font-size:11px}.update-actions{margin-top:10px;display:flex}.update-actions .button{font-size:11px;min-height:40px;padding:9px 12px;flex:1}
 .expiry-banner{margin:15px 16px 0;padding:16px;display:block}.expiry-banner strong{font-size:14px}.expiry-banner p{font-size:12px}
 dialog{padding:22px 18px;border-radius:16px;max-height:calc(100dvh - 26px)}.dialog-heading{gap:13px}.dialog-heading h2{font-size:22px;line-height:1.35}.dialog-intro{font-size:14px}.details-grid label{font-size:13px}.details-grid input,.details-grid select,.stack-label select,.library-filters input,.library-filters select{font-size:16px;min-height:43px}
 .row-action-options{grid-template-columns:1fr;gap:9px}.row-action-options button{min-height:47px;font-size:14px}.transfer-row{padding:13px}.transfer-row .button{min-height:43px;font-size:13px}
}
@media screen {
 body.phone .product-shell{max-width:430px;border-radius:24px;overflow:hidden;background:#f3faf6}
 body.phone .workspace{display:block;min-height:100dvh}body.phone .sidebar{display:none}body.phone .app-topbar{padding:0 17px;height:68px;background:#f5faf7;border-bottom:1px solid #dcebe1}
 body.phone .mobile-app-name{display:flex;align-items:center;gap:7px;max-width:190px}body.phone .mobile-app-name img{width:31px;height:31px}body.phone .mobile-app-name strong{font-size:23px}body.phone .mobile-app-name b{font-size:10px;line-height:1.3;max-width:74px;color:#71917b;font-weight:500;margin-left:2px}
 body.phone .app-topbar .icon-button{display:none}body.phone .access-pill{font-size:9px;max-width:125px;padding:5px 7px;white-space:normal;line-height:1.4;text-align:right}
 body.phone .mobile-product-nav{display:flex;padding:9px 16px;gap:6px;background:#edf7f0}body.phone .mobile-product-nav button{font-size:11px;padding:8px 6px;min-height:40px;border-radius:8px}
 body.phone .page-panel{padding:15px 16px 22px}body.phone .direction-tabs{display:grid;grid-template-columns:none;grid-template-rows:repeat(2,61px);grid-auto-flow:column;grid-auto-columns:163px;overflow-x:auto;gap:7px;padding:10px;margin-bottom:19px;border-radius:15px;scrollbar-width:thin}
 body.phone .direction-card{grid-template-columns:31px minmax(0,1fr);grid-template-rows:1fr;min-height:61px;padding:10px;gap:10px}body.phone .direction-icon{grid-row:auto;width:31px;height:31px}body.phone .direction-icon svg{width:29px;height:29px}body.phone .direction-name{font-size:12px;line-height:1.4;align-self:center}body.phone .direction-count{display:none}
 body.phone .page-heading{display:block;margin-bottom:15px}body.phone .page-heading .heading-copy{margin-bottom:13px}body.phone .page-heading h1{font-size:19px;line-height:1.4;max-width:330px;margin-top:3px}body.phone .page-heading .new-document-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:8px;margin-top:0;width:100%}body.phone .new-document-actions .button{min-height:42px;font-size:12px;padding:10px 8px;white-space:normal}
 body.phone .document-overview{border-radius:16px;margin-bottom:16px}body.phone .document-overview .card-top{padding:12px 14px 0;min-height:41px;gap:9px}body.phone .document-overview-body{display:block;padding:12px 15px 15px}body.phone .document-meta #document-title{font-size:24px;line-height:1.35;letter-spacing:-.65px;min-height:47px;padding:5px 0 8px}
 body.phone .quick-document-details{grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}body.phone .detail-tile{min-height:57px;padding:9px 11px;gap:3px;border-radius:8px}body.phone .detail-tile>span{font-size:10px}body.phone .detail-tile>strong{font-size:12px}body.phone .detail-client{grid-column:1/-1}body.phone .document-cover{display:none}body.phone .save-status{font-size:9px;max-width:142px;gap:5px}
 body.phone .editor-layout{display:block}body.phone .editor-card{border-radius:15px;margin-bottom:16px}body.phone .preset-row{padding:12px 13px 8px}body.phone .preset-row select{font-size:11px;max-width:100%;min-width:0}body.phone .preset-row>span{width:100%;margin-left:0}
 body.phone .editor-card>.catalog-disclaimer{margin:0 12px 10px;font-size:10px;padding:9px 10px}body.phone .editor-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:10px 12px}body.phone .editor-tools>.button,body.phone .editor-tools>.tool-button{font-size:10px;min-height:38px;padding:8px;width:100%;white-space:normal}body.phone .editor-tools>#clear-document{margin-left:0;order:6}
 body.phone .section-heading{padding:11px 13px;flex-wrap:wrap;gap:8px}body.phone .section-heading>input{font-size:15px;width:calc(100% - 45px);flex:1;min-width:0}body.phone .section-heading>span{font-size:11px;width:100%;order:3}
 body.phone .work-table{min-width:0}body.phone .work-table thead{display:none}body.phone .work-table tbody{display:block}body.phone .work-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px 12px;padding:14px 13px;position:relative;background:#fff;border-bottom:1px solid #e0ede4}
 body.phone .work-table td{display:block;min-width:0;padding:0!important;border:0}body.phone .work-table td:first-child{grid-column:1/-1;padding-right:0!important}body.phone .work-table td:first-child:before{content:"Работа / услуга";display:block;font-size:11px;margin-bottom:5px;color:#7c9984}
 body.phone .work-table td[data-label]:not([data-line-total]):before{font-size:11px;line-height:1.4;color:#7b9783;margin-bottom:5px}
 body.phone .work-table input,body.phone .work-table input[type=number],body.phone .work-table input[data-field=unit],body.phone .work-table input[data-field=discount]{display:block;width:100%!important;min-width:0;font-size:16px;min-height:43px;padding:9px 10px;line-height:1.4;text-align:left;border-radius:8px;background:#fcfefc}
 body.phone .work-table td[data-line-total]{grid-column:auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;align-self:end;min-height:65px;padding:0!important;border:0;font-size:17px;gap:6px;color:#315d40}body.phone .work-table td[data-line-total]:before{font-size:11px;line-height:1.4;margin:0;color:#7b9783}
 body.phone .work-table .extra-cell{min-width:0;grid-column:1/-1}body.phone .work-table .extra-cell input{min-width:0}
 body.phone .work-table td.row-actions{display:flex;position:static;grid-column:1/-1;width:100%;min-width:0;padding:10px 0 0!important;border-top:1px dashed #dceadf;justify-content:stretch}
 body.phone .row-actions .row-actions-trigger{width:100%;font-size:12px;min-height:42px;padding:9px 12px;min-width:0}
 body.phone .adjustments{padding:16px 13px;gap:13px 12px;grid-template-columns:1fr 1fr}body.phone .adjustments input{font-size:16px;min-height:42px}body.phone .adjustments input[type=checkbox]{min-height:0}body.phone .editor-bottom{padding:0 13px 17px}body.phone .editor-bottom textarea{font-size:16px;line-height:1.55}
 body.phone .result-column{position:static;display:grid;grid-template-columns:1fr;gap:14px}body.phone .total-card{padding:22px 21px 19px;border-radius:15px}body.phone .total-card>strong{font-size:42px}body.phone .total-card .summary-line{font-size:12px}
 body.phone .delivery-card{padding:21px;border-radius:15px}body.phone .delivery-card h2{font-size:19px}body.phone .delivery-card p{font-size:12px}body.phone .delivery-card .button{font-size:13px;min-height:46px}body.phone .delivery-card [data-action=share]{font-size:12px;min-height:41px}body.phone .trial-note{font-size:10px}
 body.phone .update-bar{margin:0 16px 18px;padding:14px 15px;display:block;border-radius:12px}body.phone .app-footer{padding:16px;display:block;font-size:9px}body.phone .app-footer span{display:block;margin-top:5px}
 body.phone dialog{width:min(430px,calc(100vw - 24px))}
 body.standalone .workspace{min-height:100dvh}
}
@media print {
 .document-overview,.direction-tabs,.sidebar-art{display:none!important}
}
@page pixaiWide{size:A4 landscape;margin:15mm}
@media print{.paper[data-extra-columns]:not([data-extra-columns="0"]){page:pixaiWide}}
/* Readable desktop labels; mobile editable fields retain a 16px minimum. */
@media screen and (min-width:741px){
 .direction-name{font-size:14px}.direction-count{font-size:11px}.work-table input{font-size:14px}.work-table th{font-size:12px}.work-table td.number-cell{font-size:14px}.section-heading>input{font-size:16px}.editor-tools>.button,.editor-tools>.tool-button{font-size:12px}.preset-row>label,.preset-row select{font-size:12px}.preset-row>span{font-size:11px}.editor-card>.catalog-disclaimer{font-size:12px;color:#7b805e}.adjustments label,.editor-bottom label{font-size:12px}.calculation-note{font-size:11px}.detail-tile>span{font-size:12px}.detail-tile>strong{font-size:14px}.total-card .summary-line{font-size:12px}.save-status{font-size:12px}.sidebar .side-link{font-size:16px}
}
@media screen{
 .dialog-error{margin:0 0 19px;padding:14px 16px;border:1px solid #e2ae9c;border-left:4px solid #bd5c43;border-radius:9px;background:#fff1e9;color:#984b36;font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
 .storage-policy{display:flex;gap:14px;align-items:flex-start;margin:0 30px 8px;padding:20px 22px;border:1px solid #cfe2d5;border-radius:14px;background:#f8fcf9;color:#5c7a66}
 .storage-policy-icon{display:grid;place-items:center;flex:none;width:41px;height:44px;border:1px solid #c1d9ca;border-radius:10px;background:#eaf5ed;color:#568366;font-size:25px}
 .storage-policy h2{font-size:17px;font-weight:550;line-height:1.4;margin:0 0 7px;color:#3d6c4b}.storage-policy strong{display:block;font-size:13px;font-weight:500;line-height:1.6;color:#5e8569}.storage-policy p{font-size:12px;line-height:1.7;margin:5px 0 0;color:#88a18d;white-space:pre-wrap;overflow-wrap:anywhere}
 body.phone .storage-policy{margin:0 16px 4px;padding:16px;gap:11px;border-radius:12px}body.phone .storage-policy h2{font-size:16px}body.phone .storage-policy strong{font-size:12px}body.phone .storage-policy p{font-size:11px}body.phone .storage-policy-icon{width:34px;height:38px;font-size:23px}
}
@media screen and (max-width:740px){.storage-policy{margin:0 16px 4px;padding:16px;gap:11px;border-radius:12px}.storage-policy h2{font-size:16px}.storage-policy strong{font-size:12px}.storage-policy p{font-size:11px}.storage-policy-icon{width:34px;height:38px;font-size:23px}.dialog-error{font-size:14px;padding:13px 14px}.editor-card>.catalog-disclaimer{font-size:11px;color:#798360}}
@media print{.storage-policy{display:none!important}}
@media screen{
 body.standalone .mobile-app-name{display:flex;align-items:center;gap:9px}
 .storage-policy{flex-wrap:wrap}.storage-policy>div:not(.storage-policy-icon):not(.storage-actions){min-width:0;flex:1 1 230px}
 .storage-policy.storage-warning{background:#fffaf0;border-color:#dec58f}.storage-policy.storage-warning h2{color:#8d7040}.storage-policy.storage-warning strong{color:#967845}.storage-policy.storage-warning p{color:#a08c68}
 .storage-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%;padding-left:55px}.storage-actions .button{font-size:12px;min-height:40px;padding:9px 12px}
 body.phone .storage-actions{padding-left:0}body.phone .storage-actions .button{flex:1;white-space:normal}
}
@media screen and (max-width:740px){.storage-policy>div:not(.storage-policy-icon):not(.storage-actions){flex-basis:200px}.storage-actions{padding-left:0}.storage-actions .button{flex:1;white-space:normal;font-size:11px}}
/* Owner readability requirement: these sizes also apply in the phone preview. */
@media screen{
 body{font-size:17px}
 :is(body,body.phone) .button{font-size:16px;min-height:46px}
 :is(body,body.phone) .pricing-option>span{font-size:14px;color:#506c5c}
 :is(body,body.phone) .pricing-option h3{font-size:21px}
 :is(body,body.phone) .pricing-option p,:is(body,body.phone) .subscription-rule,:is(body,body.phone) .subscription-rule p{font-size:16px;line-height:1.65;color:#506c5c}
 :is(body,body.phone) .pricing-option small{font-size:14px}
 :is(body,body.phone) .sidebar-product-name{font-size:18px;color:#d0e8da}
 :is(body,body.phone) .side-link{font-size:17px;min-height:55px}
 :is(body,body.phone) .side-label{font-size:12px;color:#b3d2c0}
 :is(body,body.phone) .side-count{font-size:13px}
 :is(body,body.phone) .local-note strong,:is(body,body.phone) .local-note p,:is(body,body.phone) .side-bottom>a{font-size:14px;line-height:1.65;color:#bed9c9}
 :is(body,body.phone) .install-button{font-size:15px;min-height:46px}
 :is(body,body.phone) .breadcrumb{font-size:14px;color:#506c5c}
 :is(body,body.phone) .access-pill{font-size:13px;line-height:1.45;color:#4a715c}
 :is(body,body.phone) .direction-card{min-height:83px}
 :is(body,body.phone) .direction-name{font-size:16px;line-height:1.45}
 :is(body,body.phone) .direction-count{font-size:13px;color:#506c5c}
 :is(body,body.phone) .page-heading .eyebrow{font-size:13px;color:#506c5c}
 :is(body,body.phone) .page-heading h1{font-size:32px;line-height:1.25;color:#315d45;letter-spacing:-.8px}
 :is(body,body.phone) .new-document-actions .button{font-size:16px;min-height:47px;padding:11px 14px}
 :is(body,body.phone) .document-switch button{font-size:15px;min-height:36px;padding:7px 14px}
 #save-status{font-size:14px;color:#4a715c;line-height:1.5;max-width:none}
 #save-status.error{color:#9a4732}
 :is(body,body.phone) .document-meta>label{font-size:15px;color:#506c5c}
 :is(body,body.phone) .document-meta #document-title{font-size:36px;min-height:57px;line-height:1.3;color:#163e2f;letter-spacing:-.9px}
 :is(body,body.phone) .detail-tile{min-height:78px;padding:12px}
 :is(body,body.phone) .detail-tile>span{font-size:14px;color:#506c5c}
 :is(body,body.phone) .detail-tile>strong{font-size:16px;line-height:1.5;color:#2d573e}
 :is(body,body.phone) .meta-row,:is(body,body.phone) .meta-row .text-button{font-size:14px;color:#506c5c;line-height:1.6}
 #document-number{font-size:14px;overflow-wrap:anywhere;color:#506c5c}
 :is(body,body.phone) .document-cover figcaption{font-size:14px;line-height:1.5}
 #editor-panel label{font-size:15px;line-height:1.55;color:#506c5c}
 :is(body,body.phone) .preset-row select{font-size:15px;min-height:43px;color:#315e43}
 :is(body,body.phone) .preset-row>span{font-size:14px;line-height:1.6;color:#506c5c}
 :is(body,body.phone) .editor-card>.catalog-disclaimer{font-size:15px;line-height:1.7;color:#6c6d3e;padding:13px 15px}
 :is(body,body.phone) .editor-tools>.button,:is(body,body.phone) .editor-tools>.tool-button{font-size:15px;min-height:45px;padding:10px 12px;line-height:1.45}
 :is(body,body.phone) .editor-tools>#undo-button,:is(body,body.phone) .editor-tools>#redo-button{font-size:15px;color:#506c5c}
 :is(body,body.phone) .editor-tools>#clear-document{color:#697c6e}
 :is(body,body.phone) .section-heading>input{font-size:17px;min-height:45px;padding:9px 11px}
 :is(body,body.phone) .section-heading>span{font-size:15px;color:#4a715c}
 :is(body,body.phone) .section-menu>summary{min-width:42px;min-height:42px;line-height:1.3}
 :is(body,body.phone) .section-menu button{font-size:16px;min-height:44px}
 :is(body,body.phone) .work-table input{font-size:16px;min-height:46px;padding:10px}
 :is(body,body.phone) .work-table th{font-size:14px;line-height:1.5;color:#42684f}
 :is(body,body.phone) .work-table td.number-cell{font-size:16px;min-width:111px}
 :is(body,body.phone) .row-actions .row-actions-trigger{font-size:16px;min-height:46px;min-width:120px;padding:10px 12px}
 :is(body,body.phone) .work-table th:last-child,:is(body,body.phone) .work-table td.row-actions{min-width:145px;width:145px}
 :is(body,body.phone) .add-row{font-size:16px;min-height:50px}
 :is(body,body.phone) .adjustments input{font-size:16px;min-height:45px}
 :is(body,body.phone) .adjustments input[type=checkbox]{min-height:0;width:19px;height:19px}
 :is(body,body.phone) .editor-bottom textarea{font-size:16px;line-height:1.65}
 :is(body,body.phone) .calculation-note{font-size:15px;line-height:1.7;color:#506c5c}
 :is(body,body.phone) .total-card .eyebrow{font-size:14px;color:#badac6}
 :is(body,body.phone) .total-card .summary-line{font-size:15px;line-height:1.65;color:#badac6;margin-bottom:9px}
 :is(body,body.phone) .prepay-line{font-size:16px;line-height:1.5}
 :is(body,body.phone) .prepay-line b{font-size:20px}
 :is(body,body.phone) .total-card>p{font-size:14px;color:#b0d0bc;line-height:1.6}
 :is(body,body.phone) .delivery-card h2{font-size:24px}
 :is(body,body.phone) .delivery-card p{font-size:16px;color:#506c5c;line-height:1.65}
 :is(body,body.phone) .delivery-card .button{font-size:16px;min-height:51px;line-height:1.45}
 :is(body,body.phone) .delivery-card [data-action=share]{font-size:16px;min-height:47px;color:#4a715c}
 :is(body,body.phone) .small-actions .text-button{font-size:15px;color:#4a715c;min-height:40px}
 :is(body,body.phone) .trial-note{font-size:14px;line-height:1.65;color:#506c5c}
 :is(body,body.phone) .trial-note b{color:#4a715c}
 :is(body,body.phone) .preview-heading h2{font-size:21px;color:#42684f}
 :is(body,body.phone) .preview-heading>span,:is(body,body.phone) .preview-heading .text-button{font-size:14px;color:#506c5c}
 :is(body,body.phone) .app-footer{font-size:14px;line-height:1.65;color:#506c5c}
 :is(body,body.phone) .storage-policy h2{font-size:21px;color:#365e43}
 :is(body,body.phone) .storage-policy strong{font-size:16px;color:#4a715c;line-height:1.6}
 :is(body,body.phone) .storage-policy p{font-size:15px;line-height:1.7;color:#506c5c}
 :is(body,body.phone) .storage-policy.storage-warning p{color:#826737}
 :is(body,body.phone) .storage-actions .button{font-size:16px;min-height:46px}
 :is(body,body.phone) .update-bar strong{font-size:17px}.update-bar p{font-size:15px;line-height:1.65}
 :is(body,body.phone) .update-actions .button{font-size:16px;min-height:46px}
 :is(body,body.phone) .history-card h2{font-size:23px}
 :is(body,body.phone) .history-card p{font-size:15px;color:#506c5c;line-height:1.65}
 :is(body,body.phone) .history-actions .button{font-size:16px;min-height:46px}
 :is(body,body.phone) .dialog-intro,:is(body,body.phone) .empty-section,:is(body,body.phone) .empty-document{font-size:16px;line-height:1.7;color:#506c5c}
 :is(body,body.phone) .dialog-heading .eyebrow{font-size:13px;color:#506c5c}
 :is(body,body.phone) .details-grid label,:is(body,body.phone) .stack-label,:is(body,body.phone) .library-filters label{font-size:15px;color:#506c5c}
 :is(body,body.phone) .details-grid input,:is(body,body.phone) .details-grid select,:is(body,body.phone) .stack-label select,:is(body,body.phone) .library-filters input,:is(body,body.phone) .library-filters select{font-size:16px;min-height:46px}
 :is(body,body.phone) .library-tabs button{font-size:16px;min-height:45px}
 :is(body,body.phone) .library-item strong{font-size:16px}
 :is(body,body.phone) .library-item small,:is(body,body.phone) .library-niche-label{font-size:14px;color:#506c5c}
 :is(body,body.phone) .library-item .button,:is(body,body.phone) .profile-transfer .text-button,:is(body,body.phone) .library-reset .text-button{font-size:15px;min-height:43px}
 :is(body,body.phone) .catalog-disclaimer{font-size:15px;line-height:1.65}
 :is(body,body.phone) .custom-field-row label,:is(body,body.phone) .custom-column-row label{font-size:15px;color:#506c5c}
 :is(body,body.phone) .custom-field-row input,:is(body,body.phone) .custom-column-row input{font-size:16px;min-height:46px}
 :is(body,body.phone) .row-action-options button{font-size:16px;min-height:49px}
 :is(body,body.phone) .transfer-row .button,:is(body,body.phone) .wizard-actions .button,:is(body,body.phone) .share-grid .button{font-size:16px;min-height:46px}
 :is(body,body.phone) .toast{font-size:16px;line-height:1.65}
}
@media screen and (min-width:741px){.work-table{min-width:1010px}.work-table input[type=number]{width:88px}.work-table input[data-field=unit]{width:65px}.work-table input[data-field=discount]{width:85px}.document-overview-body{grid-template-columns:minmax(0,1fr) 224px}}
@media screen and (max-width:900px){:is(body,body.phone) .direction-tabs{grid-template-columns:none;grid-template-rows:repeat(2,84px);grid-auto-flow:column;grid-auto-columns:205px;overflow-x:auto;gap:9px;padding:12px}:is(body,body.phone) .direction-card{grid-template-rows:auto auto;grid-template-columns:33px minmax(0,1fr);min-height:84px}:is(body,body.phone) .direction-icon{grid-row:1/3}:is(body,body.phone) .direction-count{display:block}}
@media screen and (max-width:740px){
 :is(body,body.phone) .app-topbar{min-height:80px;height:auto;padding-top:10px;padding-bottom:10px}
 :is(body,body.phone) .mobile-app-name b{font-size:14px;max-width:78px}
 :is(body,body.phone) .mobile-app-name strong{font-size:24px}
 :is(body,body.phone) .mobile-product-nav button{font-size:16px;min-height:46px;min-width:0;padding:9px 5px}
 :is(body,body.phone) .page-heading h1{font-size:30px;line-height:1.25}
 :is(body,body.phone) .document-meta #document-title{font-size:32px;min-height:53px}
 #save-status{font-size:14px;max-width:170px}
 :is(body,body.phone) .document-switch button{font-size:15px;padding:6px 11px}
 :is(body,body.phone) .editor-tools{grid-template-columns:1fr 1fr}
 :is(body,body.phone) .editor-tools>.button,:is(body,body.phone) .editor-tools>.tool-button{font-size:16px;min-height:46px;padding:9px 8px}
 :is(body,body.phone) .work-table{min-width:0}
 :is(body,body.phone) .work-table td:first-child:before,:is(body,body.phone) .work-table td[data-label]:before,:is(body,body.phone) .work-table td[data-line-total]:before{font-size:14px;color:#506c5c;line-height:1.45}
 :is(body,body.phone) .work-table input{font-size:16px;min-height:46px}
 :is(body,body.phone) .work-table td.row-actions{width:100%;min-width:0}
 :is(body,body.phone) .row-actions .row-actions-trigger{min-width:0;width:100%;font-size:16px;min-height:46px}
 :is(body,body.phone) .storage-policy-icon{width:35px;height:39px}
}
/* Subscription/demo UI. No purchase is performed by these styles or markup. */
@media screen{
 .app-topbar{height:auto;min-height:70px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
 #update-bar{position:static;transform:none;flex:1 0 100%;display:flex;justify-content:flex-end;align-items:center;gap:10px;width:auto;max-width:none;margin:0;padding:5px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#506c5c;z-index:auto}
 #update-bar>span{font-size:14px;line-height:1.5}
 #update-bar #update-button{font-size:16px;min-height:36px;padding:6px 12px;border-radius:7px;background:#fff;border-color:#bfd5c6;color:#315d43}
 #update-bar #dismiss-update{font-size:21px;line-height:1;min-width:30px;min-height:32px;width:30px;height:32px;padding:0;border:0;background:transparent;color:#617c68}
 .subscription-status{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:15px;margin:0 30px 18px;padding:18px 21px;border:1px solid #cfe2d4;border-radius:14px;background:#f8fcf8;color:#355f44}
 .subscription-status>div{display:grid;gap:4px;min-width:0}.subscription-status span{font-size:14px;color:#506c5c}.subscription-status strong{font-size:21px;line-height:1.4;color:#285c3e}.subscription-status small{font-size:14px;line-height:1.6;color:#506c5c}.subscription-status .button{font-size:16px;min-height:46px}
 .demo-notice{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;margin:0 30px 20px;padding:18px 20px;background:#fff9e9;border:1px solid #e6d19b;border-radius:14px;color:#6b653c}
 .demo-notice>span{font-size:29px;line-height:1;flex:none;color:#8b9150}.demo-notice>div{flex:1 1 300px;min-width:0}.demo-notice strong{font-size:18px;line-height:1.5;font-weight:600}.demo-notice p{font-size:16px;line-height:1.7;margin:5px 0 0}.demo-notice .button{font-size:16px;min-height:46px;background:#fffdf4;border-color:#d5c08e;color:#73633a}
 .subscription-plans{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.subscription-plans .pricing-option{display:flex;flex-direction:column;padding:25px;border-radius:15px;min-width:0}.subscription-plans .pricing-option>span{font-size:14px}.subscription-plans .pricing-option h3{font-size:23px;line-height:1.35;margin:11px 0 17px}.subscription-plans .pricing-option strong{font-size:42px;text-align:left}.subscription-plans .pricing-option small{font-size:16px}.subscription-plans .pricing-option p{font-size:16px;line-height:1.7;flex:1;margin:15px 0 20px}.subscription-plans .pricing-option .button{font-size:16px;min-height:47px;width:100%;margin-top:auto}
 .owner-preview-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.owner-preview-actions .button{font-size:16px;min-height:45px}
 #purchase-dialog{width:min(640px,calc(100vw - 28px))}.purchase-summary{display:grid;gap:0;margin:20px 0 23px;padding:0;border:1px solid #cfe2d6;border-radius:12px;overflow:hidden;background:#fff}.purchase-summary>div{display:grid;grid-template-columns:1fr 1.2fr;gap:18px;padding:16px 18px;border-bottom:1px solid #e1ece4}.purchase-summary>div:last-child{border:0}.purchase-summary dt{font-size:15px;color:#506c5c;line-height:1.6}.purchase-summary dd{margin:0;font-size:17px;font-weight:550;color:#285c3f;line-height:1.6;overflow-wrap:anywhere}#purchase-price{font-size:24px}
 .demo-mode #paper{padding:0;overflow:hidden;user-select:none;-webkit-user-select:none}.demo-mode #paper .demo-canvas{display:block;width:100%;height:auto;max-width:900px;margin:0 auto;user-select:none;-webkit-user-select:none;touch-action:pan-y pinch-zoom}.demo-canvas{max-width:100%;height:auto}
}
@media screen and (max-width:740px){
 .subscription-status,.demo-notice{margin-left:16px;margin-right:16px;padding:16px;border-radius:12px}.subscription-status{align-items:flex-start}.subscription-status strong{font-size:20px}.subscription-status small{font-size:14px}.subscription-status .button{width:100%}.demo-notice>div{flex-basis:230px}.demo-notice strong{font-size:17px}.demo-notice p{font-size:16px}.demo-notice .button{width:100%}
 .subscription-plans{grid-template-columns:1fr}.subscription-plans .pricing-option{padding:22px}.subscription-plans .pricing-option strong{font-size:40px}.purchase-summary>div{grid-template-columns:1fr;gap:5px;padding:14px 16px}.purchase-summary dt{font-size:15px}.purchase-summary dd{font-size:17px}
 #update-bar{justify-content:flex-start;gap:8px;padding-top:4px}#update-bar>span{font-size:14px;flex:1}#update-bar #update-button{font-size:16px}
}
@media screen{body.phone .subscription-status,body.phone .demo-notice{margin-left:16px;margin-right:16px;padding:16px}body.phone .subscription-status .button,body.phone .demo-notice .button{width:100%}body.phone .subscription-plans{grid-template-columns:1fr}}
@media print{.subscription-status,.demo-notice{display:none!important}.demo-mode #demo-print-notice{display:block!important;padding:12px;border:2px solid #7f6c30;color:#5d4f25;font-size:16px;line-height:1.5}.demo-mode #paper{padding:0!important}.demo-mode #paper .demo-canvas{display:block;width:100%;height:auto;max-width:none}}

/* Responsive navigation and document preview: no compressed primary controls. */
@media screen{
 main,.page-panel,.page-heading,.heading-copy,.editor-layout,.editor-card,.result-column,.document-meta,.subscription-status>div,.demo-notice>div,.preview-heading,.storage-policy>div{min-width:0}
 .direction-picker{min-width:0;border:0;padding:0;margin:0 0 22px;background:transparent}
 .direction-picker-summary{display:none}
 .direction-picker>.direction-tabs{margin-bottom:0}
 :is(body,body.phone) .direction-name{overflow-wrap:normal;word-break:normal;hyphens:none}
 .detail-tile>strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word;word-break:normal}
 :is(body,body.phone) .detail-tile>strong{white-space:normal;overflow:visible;text-overflow:clip}
 .section-total{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:0}
 .section-total-label{font-size:14px;font-weight:400;color:#506c5c;white-space:normal;line-height:1.4}
 .section-total-value{font-size:17px;font-weight:650;white-space:nowrap;color:#285d40}
 .paper-preview{overflow:visible;min-width:0}
 .paper-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;overscroll-behavior-x:contain;border:1px solid #dce8e0;border-radius:8px;background:#eaf1ec;padding:16px 0;scrollbar-width:auto}
 .paper-scroll:focus-visible{outline:3px solid #6da880;outline-offset:3px}
 .paper-scroll>.paper{box-sizing:border-box;width:794px;min-width:794px;max-width:none;margin:0 auto;overflow-wrap:break-word}
 .paper-scroll>.paper[data-extra-columns]:not([data-extra-columns="0"]){width:1123px;min-width:1123px}
 .paper-scroll-hint{font-size:15px;line-height:1.65;color:#506c5c;padding:11px 14px;margin:0 0 12px;border:1px solid #d3e3d8;background:#f6fbf7;border-radius:8px}
 .demo-mode .paper-scroll>#paper{width:900px;min-width:900px;padding:0;margin:0 auto}
 .demo-mode .paper-scroll>#paper .demo-canvas{width:900px;min-width:900px;max-width:none;height:auto;margin:0;touch-action:pan-x pan-y pinch-zoom}
 .subscription-status>div.subscription-status-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
 #trial-status{font-size:15px;line-height:1.65;color:#506c5c;margin:5px 0 0;max-width:660px}
 .trial-offer{display:flex;gap:18px;align-items:center;flex-wrap:wrap;border:1px solid #bad894;border-radius:13px;padding:20px;margin:0 0 20px;background:#f0fadd}
 .trial-offer>div{flex:1 1 230px;min-width:0}.trial-offer strong{font-size:21px;line-height:1.4;color:#31572f}.trial-offer p{font-size:16px;line-height:1.65;color:#506c5c;margin:7px 0 0}
 :is(body,body.phone) .preview-heading{flex-wrap:wrap;min-width:0}
 :is(body,body.phone) .preview-heading .text-button{font-size:16px;min-height:44px;white-space:normal}
 :is(body,body.phone) .app-topbar>div:not(#update-bar){min-width:0}
 :is(body,body.phone) .app-topbar .access-pill{white-space:normal;overflow-wrap:normal;word-break:normal;min-width:0}
}
@media screen and (max-width:1100px){
 :is(body,body.phone) .mobile-product-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(48px,auto);overflow:visible;gap:8px;padding:12px 16px}
 :is(body,body.phone) .mobile-product-nav button{display:flex;align-items:center;justify-content:center;white-space:normal;overflow:visible;overflow-wrap:normal;word-break:normal;min-width:0;min-height:48px;font-size:16px;line-height:1.35;padding:10px 12px;flex:none;width:100%}
 .direction-picker-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;min-height:74px;list-style:none;cursor:pointer;border:1px solid #bcd8c6;border-radius:13px;background:#f7fcf8;color:#2c5c3f}
 .direction-picker-summary::-webkit-details-marker{display:none}.direction-picker-summary::marker{content:""}
 .direction-picker-summary>span{display:grid;gap:4px;min-width:0}.direction-picker-summary small{font-size:14px;line-height:1.4;color:#506c5c}.direction-picker-summary strong{font-size:18px;line-height:1.45;overflow-wrap:normal;word-break:normal}.direction-picker-summary>b{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:550;white-space:nowrap}.direction-picker-summary>b>span{font-size:21px}
 .direction-picker[open]>.direction-picker-summary{border-radius:13px 13px 0 0;border-bottom:0}
 :is(body,body.phone) .direction-picker>.direction-tabs{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-flow:row;grid-auto-columns:auto;grid-auto-rows:minmax(86px,auto);max-height:440px;overflow-x:hidden;overflow-y:auto;gap:9px;padding:12px;border:1px solid #bcd8c6;border-radius:0 0 13px 13px;margin:0}
 :is(body,body.phone) .direction-picker .direction-card{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;min-height:86px;align-content:center;padding:10px 9px}
 :is(body,body.phone) .direction-picker .direction-icon,:is(body,body.phone) .direction-picker .direction-icon svg{width:26px;height:26px;grid-row:1 / 3}
 :is(body,body.phone) .direction-picker .direction-name{font-size:16px;line-height:1.45;align-self:end;overflow-wrap:normal;word-break:normal}
 :is(body,body.phone) .direction-picker .direction-count{display:block;font-size:13px;line-height:1.5;color:#506c5c}
 :is(body,body.phone) .paper-preview{overflow:visible}
 :is(body,body.phone) .paper-scroll>.paper{min-width:794px;width:794px;padding:35px 42px;max-width:none}
 :is(body,body.phone).demo-mode .paper-scroll>#paper{width:900px;min-width:900px;padding:0}
}
@media screen and (max-width:740px){
 :is(body,body.phone) .app-topbar{padding-left:16px;padding-right:16px;gap:12px;align-items:center}
 :is(body,body.phone) .app-topbar>div:nth-child(2){display:flex;justify-content:space-between;align-items:center;gap:9px;flex:1 1 100%}
 :is(body,body.phone) .access-pill{font-size:14px;max-width:none;line-height:1.5}
 :is(body,body.phone) .mobile-app-name b{font-size:16px;max-width:none}
 :is(body,body.phone) .page-heading .new-document-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:9px}
 :is(body,body.phone) .new-document-actions .button{width:100%;min-width:0;white-space:normal}
 :is(body,body.phone) .document-overview .card-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
 #save-status{max-width:none;width:100%;justify-content:flex-start;text-align:left;font-size:14px;overflow-wrap:normal;word-break:normal}
 :is(body,body.phone) .quick-document-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 :is(body,body.phone) .quick-document-details .detail-client{grid-column:1 / -1}
 :is(body,body.phone) .detail-tile{height:auto;min-height:78px}
 :is(body,body.phone) .document-meta #document-title{font-size:30px;letter-spacing:-.6px;line-height:1.35}
 :is(body,body.phone) .editor-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0}
 :is(body,body.phone) .editor-tools>*{min-width:0;max-width:100%;white-space:normal;line-height:1.45;overflow-wrap:normal;word-break:normal;margin-left:0}
 :is(body,body.phone) .editor-tools>[data-action=customize]{grid-column:1 / -1}
 :is(body,body.phone) .section-heading>input{flex:1 1 180px;width:auto;min-width:0}
 :is(body,body.phone) .section-heading>span{width:100%;align-items:flex-start;white-space:normal;font-size:16px;line-height:1.6}
 :is(body,body.phone) .section-total{align-items:flex-start}
 :is(body,body.phone) .work-table tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}
 :is(body,body.phone) .work-table td{min-width:0}
 :is(body,body.phone) .work-table td[data-line-total]{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;border-top:1px dashed #ccdecf;padding-top:11px!important;padding-bottom:0!important}
 :is(body,body.phone) .work-table td[data-line-total]::before{margin:0;white-space:normal;overflow-wrap:normal;word-break:normal}
 :is(body,body.phone) .work-table td.row-actions{grid-column:1 / -1;padding:0!important}
 :is(body,body.phone) .row-actions .row-actions-trigger{height:auto;width:100%;min-height:48px;font-size:16px}
 :is(body,body.phone) .adjustments{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 :is(body,body.phone) .adjustments>label{min-width:0;white-space:normal;overflow-wrap:normal;word-break:normal}
 :is(body,body.phone) .adjustments input{width:100%;min-width:0}
 :is(body,body.phone) .adjustments input[type=checkbox]{width:19px}
 :is(body,body.phone) .total-card>strong{font-size:38px;letter-spacing:-1px;white-space:normal;overflow-wrap:normal;word-break:normal}
 :is(body,body.phone) .total-card .summary-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
 :is(body,body.phone) .total-card .summary-line>span{min-width:0;white-space:normal;overflow-wrap:normal;word-break:normal}
 :is(body,body.phone) .delivery-card{display:grid;grid-template-columns:minmax(0,1fr)}
 :is(body,body.phone) .delivery-card .button{width:100%;min-width:0;white-space:normal}
 :is(body,body.phone) .delivery-card .small-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 :is(body,body.phone) .preview-heading{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:9px}
 :is(body,body.phone) .preview-heading h2,:is(body,body.phone) .preview-heading>span{grid-column:1 / -1;margin:0}
 :is(body,body.phone) .preview-heading .text-button{margin:0;width:100%;padding:10px;line-height:1.4}
 :is(body,body.phone) .paper-scroll{padding:12px 0}
 .subscription-status>div.subscription-status-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr)}
 .subscription-status .button,.trial-offer .button{width:100%;white-space:normal;min-width:0}
 .trial-offer{padding:17px}.trial-offer strong{font-size:20px}
}
@media screen{
 body.phone .mobile-product-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(48px,auto);overflow:visible;gap:8px;padding:12px 16px}
 body.phone .mobile-product-nav button{white-space:normal;overflow:visible;min-width:0;font-size:16px;line-height:1.4;padding:10px 12px}
 body.phone .direction-picker-summary{display:flex}body.phone .direction-picker>.direction-tabs{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-flow:row;grid-auto-columns:auto;overflow-x:hidden;overflow-y:auto;max-height:440px}
 body.phone .paper-preview{overflow:visible}body.phone .paper-scroll>.paper{min-width:794px;width:794px;max-width:none}body.phone.demo-mode .paper-scroll>#paper{min-width:900px;width:900px}
}
@media print{
 #direction-picker,.paper-scroll-hint,.trial-offer{display:none!important}
 .paper-scroll{display:block!important;overflow:visible!important;border:0!important;padding:0!important;margin:0!important;max-width:none!important;width:100%!important;background:white!important}
 .paper-scroll>.paper{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important}
}

/* The paid mobile preview is a readable list of works; the PDF stays A4. */
@media screen and (max-width:740px){
 :is(body,body.phone):not(.demo-mode) .paper-scroll{overflow-x:visible;padding:0;border:0;background:transparent}
 :is(body,body.phone):not(.demo-mode) .paper-scroll>#paper,:is(body,body.phone):not(.demo-mode) .paper-scroll>#paper[data-extra-columns]{width:100%;min-width:0;max-width:100%;padding:23px 19px;box-sizing:border-box;border-radius:10px;font-size:16px;line-height:1.65;overflow-wrap:break-word}
 :is(body,body.phone):not(.demo-mode) #paper .paper-head{display:flex;flex-direction:column;gap:15px}
 :is(body,body.phone):not(.demo-mode) #paper .paper-head strong{font-size:21px;line-height:1.45}
 :is(body,body.phone):not(.demo-mode) #paper .paper-head small,:is(body,body.phone):not(.demo-mode) #paper .paper-client,:is(body,body.phone):not(.demo-mode) #paper .paper-note{font-size:16px;line-height:1.65}
 :is(body,body.phone):not(.demo-mode) #paper .paper-title{font-size:27px;line-height:1.35;letter-spacing:-.4px}
 :is(body,body.phone):not(.demo-mode) #paper .paper-object{font-size:19px;line-height:1.5}
 :is(body,body.phone):not(.demo-mode) #paper table,:is(body,body.phone):not(.demo-mode) #paper tbody{display:block;width:100%;min-width:0;max-width:100%;font-size:16px}
 :is(body,body.phone):not(.demo-mode) #paper thead{display:none}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-work-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:17px 0;border-bottom:1px solid #d9e7dd}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-work-row>td{display:block;min-width:0;padding:0;border:0;font-size:16px;line-height:1.6;white-space:normal;overflow-wrap:break-word;word-break:normal;text-align:left}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-work-row>td[data-label]::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:14px;font-weight:400;line-height:1.45;color:#506c5c}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-work-row>td:first-child{grid-column:1 / -1;font-size:14px;color:#506c5c}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-work-row>td:first-child::before{display:inline;margin-right:6px}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-work-row>td:nth-child(2){grid-column:1 / -1;font-size:19px;font-weight:600;line-height:1.5}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-work-row>td:nth-child(2)::before{display:none}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-work-row>td:last-child{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:11px;border-top:1px dashed #ccdecf;font-size:18px;font-weight:650}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-work-row>td:last-child::before{margin:0;flex:1}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-section{display:block;margin-top:20px}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-section>td{display:block;padding:12px 13px;border-radius:8px;font-size:19px;line-height:1.5;white-space:normal;overflow-wrap:break-word}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-section-total{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:12px 0 23px;padding:12px;border:1px solid #cee0d3;border-radius:8px;background:#f3f9f4}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-section-total>td{display:block;padding:0;border:0;white-space:normal;overflow-wrap:normal;font-size:16px;line-height:1.5}
 :is(body,body.phone):not(.demo-mode) #paper tr.paper-section-total>td:last-child{white-space:nowrap;font-weight:650}
 :is(body,body.phone):not(.demo-mode) #paper .paper-totals{width:100%;margin-top:22px}
 :is(body,body.phone):not(.demo-mode) #paper .summary-line{font-size:16px;line-height:1.65;gap:12px}
 :is(body,body.phone):not(.demo-mode) #paper .paper-foot,:is(body,body.phone):not(.demo-mode) #paper .paper-signatures{font-size:14px;line-height:1.65}
 :is(body,body.phone):not(.demo-mode) #paper .paper-custom-fields{font-size:16px;line-height:1.65}
}

@media screen{
 .section-subtotal{display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:0;line-height:1.4}
 .section-subtotal small{font-size:14px;font-weight:400;line-height:1.45;color:#506c5c;white-space:normal}
 .section-subtotal strong{font-size:17px;font-weight:650;line-height:1.5;white-space:nowrap;color:#285d40}
}
@media screen and (max-width:740px){.section-subtotal{order:3;flex:1 1 100%;align-items:flex-start;gap:3px}.section-subtotal strong{font-size:18px}}
@media screen{body.phone .section-subtotal{order:3;flex:1 1 100%;align-items:flex-start;gap:3px}}

/* Narrow direction options reserve their whole width for readable words. */
@media screen and (max-width:740px){
 :is(body,body.phone) .direction-picker .direction-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;min-height:84px;padding:12px 10px}
 :is(body,body.phone) .direction-picker .direction-icon{display:none}
}
@media screen{body.phone .direction-picker .direction-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;padding:12px 10px}body.phone .direction-picker .direction-icon{display:none}}

/* The phone preview uses the same document cards as a narrow viewport. */
@media screen{
 body.phone:not(.demo-mode) .paper-scroll{overflow-x:visible;padding:0;border:0;background:transparent}
 body.phone:not(.demo-mode) .paper-scroll>#paper,body.phone:not(.demo-mode) .paper-scroll>#paper[data-extra-columns]{width:100%;min-width:0;max-width:100%;padding:23px 19px;box-sizing:border-box;border-radius:10px;font-size:16px;line-height:1.65;overflow-wrap:break-word}
 body.phone:not(.demo-mode) #paper .paper-head{display:flex;flex-direction:column;gap:15px}
 body.phone:not(.demo-mode) #paper .paper-head strong{font-size:21px;line-height:1.45}
 body.phone:not(.demo-mode) #paper .paper-head small,body.phone:not(.demo-mode) #paper .paper-client,body.phone:not(.demo-mode) #paper .paper-note{font-size:16px;line-height:1.65}
 body.phone:not(.demo-mode) #paper .paper-title{font-size:27px;line-height:1.35;letter-spacing:-.4px}
 body.phone:not(.demo-mode) #paper .paper-object{font-size:19px;line-height:1.5}
 body.phone:not(.demo-mode) #paper table,body.phone:not(.demo-mode) #paper tbody{display:block;width:100%;min-width:0;max-width:100%;font-size:16px}
 body.phone:not(.demo-mode) #paper thead{display:none}
 body.phone:not(.demo-mode) #paper tr.paper-work-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:17px 0;border-bottom:1px solid #d9e7dd}
 body.phone:not(.demo-mode) #paper tr.paper-work-row>td{display:block;min-width:0;padding:0;border:0;font-size:16px;line-height:1.6;white-space:normal;overflow-wrap:break-word;word-break:normal;text-align:left}
 body.phone:not(.demo-mode) #paper tr.paper-work-row>td[data-label]::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:14px;font-weight:400;line-height:1.45;color:#506c5c}
 body.phone:not(.demo-mode) #paper tr.paper-work-row>td:first-child{grid-column:1 / -1;font-size:14px;color:#506c5c}
 body.phone:not(.demo-mode) #paper tr.paper-work-row>td:first-child::before{display:inline;margin-right:6px}
 body.phone:not(.demo-mode) #paper tr.paper-work-row>td:nth-child(2){grid-column:1 / -1;font-size:19px;font-weight:600;line-height:1.5}
 body.phone:not(.demo-mode) #paper tr.paper-work-row>td:nth-child(2)::before{display:none}
 body.phone:not(.demo-mode) #paper tr.paper-work-row>td:last-child{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:11px;border-top:1px dashed #ccdecf;font-size:18px;font-weight:650}
 body.phone:not(.demo-mode) #paper tr.paper-work-row>td:last-child::before{margin:0;flex:1}
 body.phone:not(.demo-mode) #paper tr.paper-section{display:block;margin-top:20px}
 body.phone:not(.demo-mode) #paper tr.paper-section>td{display:block;padding:12px 13px;border-radius:8px;font-size:19px;line-height:1.5;white-space:normal;overflow-wrap:break-word}
 body.phone:not(.demo-mode) #paper tr.paper-section-total{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:12px 0 23px;padding:12px;border:1px solid #cee0d3;border-radius:8px;background:#f3f9f4}
 body.phone:not(.demo-mode) #paper tr.paper-section-total>td{display:block;padding:0;border:0;white-space:normal;overflow-wrap:normal;font-size:16px;line-height:1.5}
 body.phone:not(.demo-mode) #paper tr.paper-section-total>td:last-child{white-space:nowrap;font-weight:650}
 body.phone:not(.demo-mode) #paper .paper-totals{width:100%;margin-top:22px}
 body.phone:not(.demo-mode) #paper .summary-line{font-size:16px;line-height:1.65;gap:12px}
 body.phone:not(.demo-mode) #paper .paper-foot,body.phone:not(.demo-mode) #paper .paper-signatures{font-size:14px;line-height:1.65}
 body.phone:not(.demo-mode) #paper .paper-custom-fields{font-size:16px;line-height:1.65}
}

/* Return to the main PixAI website from the product header. */
@media screen{
 .app-topbar .topbar-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;min-width:0}
 .app-topbar .home-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:44px;padding:9px 15px;border:1px solid #a9c9b5;border-radius:10px;background:#fff;color:#17573b;font-size:16px;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap}
 .app-topbar .home-link:hover{background:#e4f3e9;border-color:#619b78}
 .app-topbar .home-link:focus-visible{outline:3px solid #88bc70;outline-offset:3px}
 .app-topbar .topbar-actions .access-pill{min-width:0;max-width:240px}
}
@media screen and (max-width:740px){.app-topbar .topbar-actions{justify-content:space-between}.app-topbar .home-link{padding:9px 12px}}
@media screen{body.phone .app-topbar .topbar-actions{justify-content:space-between}body.phone .app-topbar .home-link{padding:9px 12px}}

/* Keep narrow-screen controls readable after the legacy phone rules. */
@media screen{
 :is(body,body.phone) .direction-picker .direction-name{min-width:0;overflow-wrap:anywhere}
 .app-topbar #update-bar #dismiss-update{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px}
}
@media screen and (max-width:740px){
 :is(body,body.phone) .work-table td[data-line-total]{flex-direction:row}
}
@media screen{body.phone .work-table td[data-line-total]{flex-direction:row}}
@media screen and (max-width:520px){
 .wizard-actions{flex-wrap:wrap}
 .wizard-actions>.button{flex:1 1 200px;min-width:0;white-space:normal}
}

/* Visible installation entry on the first screen, above the workspace. */
.pwa-install-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 30px;background:#07533f;color:#fff;border-bottom:1px solid #347d60}
.pwa-install-banner[hidden]{display:none}
.pwa-install-copy{display:grid;gap:3px;flex:1 1 260px;min-width:0}
.pwa-install-copy strong{font-size:20px;line-height:1.3}
.pwa-install-copy span{font-size:15px;line-height:1.5;color:#ddf2e6}
.pwa-install-cta{display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;min-width:0;min-height:48px;max-width:100%;padding:12px 20px;border:1px solid #c9ed9e;border-radius:11px;background:#d8f6b9;color:#214a2c;font-size:16px;font-weight:700;line-height:1.4;text-align:center;white-space:normal;overflow-wrap:anywhere}
.pwa-install-cta:hover{background:#e5ffcc}
.pwa-install-cta:focus-visible{outline:3px solid #fff;outline-offset:3px}
.pwa-install-cta:disabled{opacity:.7;cursor:default}
.pwa-install-steps{padding-left:24px;line-height:1.65;font-size:16px}
.pwa-install-steps li+li{margin-top:12px}
#install-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto}
@media screen and (max-width:600px){.pwa-install-banner{padding:16px;gap:12px}.pwa-install-copy{flex-basis:100%}.pwa-install-cta{flex:1 1 100%;width:100%}.pwa-install-copy strong{font-size:19px}}
@media screen{body.phone .pwa-install-banner{padding:16px;gap:12px}body.phone .pwa-install-copy{flex-basis:100%}body.phone .pwa-install-cta{flex:1 1 100%;width:100%}}
@media (display-mode:standalone),(display-mode:fullscreen),(display-mode:minimal-ui){.pwa-install-banner{display:none}}
@media print{.pwa-install-banner,#install-dialog{display:none!important}}
