:root{--ink:#17252b;--muted:#607078;--accent:#bb3e00;--orange:#e64e00;--accent-soft:#fff0e6;--canvas:#f5f7f9;--border:#dde4e8;--white:#fff;--radius:14px;--shadow:0 6px 28px #17252b06;--font-body:'Manrope',system-ui,sans-serif;--font-heading:'Sora',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font:15px/1.6 var(--font-body);-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--font-heading);font-weight:600}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a,select,[type=color],label:has([type=radio]){cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button{border:0;background:none}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}button,a,input,select,textarea{transition:background-color .18s,color .18s,border-color .18s,box-shadow .18s}button:focus-visible,a:focus-visible{outline:3px solid #bb3e0080;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px #bb3e0012}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:9px;min-height:44px;padding:11px 17px;font-size:13px;font-weight:700;line-height:1.4;white-space:nowrap;border:1px solid transparent}.btn.primary{background:var(--accent);color:white;box-shadow:0 3px 7px #bb3e0014}.btn.primary:hover{background:#9d3400}.btn.dark{background:var(--ink);color:white}.btn.dark:hover{background:#2c414b}.btn.secondary{background:#fff;border-color:var(--border);color:var(--ink)}.btn.secondary:hover{background:#f3f6f8;border-color:#bac8cf}.btn.ghost{color:var(--accent);background:transparent}.btn.ghost:hover{background:var(--accent-soft)}.btn.full{width:100%}.btn.loading{opacity:.65;cursor:progress}.icon-btn{width:40px;height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--muted)}.icon-btn:hover{background:#eaf0f3;color:var(--ink)}.icon-btn.danger:hover{background:#fef0ef;color:#b3261e}.text-link{color:var(--accent);font-weight:700;font-size:13px;white-space:nowrap}.text-link:hover{text-decoration:underline}.muted{color:var(--muted)}.eyebrow{font-weight:800;font-size:11px;letter-spacing:1.6px;color:var(--accent);margin-bottom:9px}.required{color:var(--accent)}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;z-index:20;inset:0 auto 0 0;width:244px;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:31px 18px 18px}.brand{display:flex;flex-direction:column;padding:4px 8px 31px;gap:15px}.brand img{width:192px;height:auto;object-fit:contain}.brand>span{font-size:10px;font-weight:800;letter-spacing:2px;color:#6a7880;padding-left:3px}.nav-caption{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#71818a;padding:14px 13px}.nav-item{display:flex;gap:12px;align-items:center;padding:12px 13px;min-height:46px;font-weight:600;font-size:13px;color:#5c6d76;margin:4px 0;border-radius:9px;position:relative}.nav-item:hover{background:#f5f7f9;color:var(--ink)}.nav-item.active{color:var(--accent);background:var(--accent-soft)}.nav-item.active:before{content:'';position:absolute;left:-18px;top:12px;bottom:12px;width:3px;background:var(--orange);border-radius:0 3px 3px 0}.nav-count{margin-left:auto;font-size:10px;min-width:21px;text-align:center;line-height:21px;background:#fff;border:1px solid #f1d6c5;border-radius:6px}.sidebar-bottom{margin-top:auto;padding-top:38px}.workspace-label{padding:14px 8px;display:flex;gap:11px;align-items:center;border-bottom:1px solid var(--border);margin-bottom:15px}.workspace-icon{background:#f0f4f5;border-radius:10px;padding:9px;color:#435d67}.workspace-label strong{display:block;font-size:12px}.workspace-label small{font-size:10px;color:var(--muted)}.user-block{display:flex;align-items:center;text-align:left;gap:10px;width:100%;padding:7px 4px;border-radius:8px}.user-block:hover{background:#f5f7f9}.user-block>span:nth-child(2){flex:1}.user-block strong{display:block;font-size:12px}.user-block small{font-size:11px;color:var(--muted)}.user-block>.icon{width:17px;color:#607078}.avatar{background:#eff3f5;border:1px solid #dfe7eb;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:12px;font-weight:800;color:#405761}.avatar.sm{width:33px;height:33px}.main-wrap{margin-left:244px;width:calc(100% - 244px);display:flex;flex-direction:column;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--border);background:#ffffffdf;display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:20px}.breadcrumb{display:flex;gap:12px;align-items:center;font-size:12px;color:var(--muted)}.breadcrumb strong{color:var(--ink);font-weight:600}.breadcrumb .icon{width:13px;height:13px;color:#9eabb2}.topbar-right{display:flex;gap:20px;align-items:center;font-size:12px;color:var(--muted)}.top-divider{height:22px;width:1px;background:var(--border)}.mobile-menu{display:none}.main-content{padding:35px 40px 45px;max-width:1800px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:27px}.page-heading h1{font-size:27px;line-height:1.4;letter-spacing:-1px}.page-description{font-size:13px;color:var(--muted);margin-top:7px}.heading-actions{display:flex;gap:10px}.welcome-panel{background:#fff1e6;border:1px solid #f6dfce;border-radius:17px;overflow:hidden;padding:33px 38px;position:relative;display:grid;grid-template-columns:1fr 1fr;min-height:308px}.pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:700;border:1px solid #ead8c7;color:#825333;border-radius:20px;padding:5px 10px;background:#fff8f2}.pill .icon{width:14px;height:14px}.welcome-panel h2{font-size:30px;letter-spacing:-1.2px;line-height:1.4;margin:15px 0 10px}.welcome-panel p{font-size:12px;color:#6e655d;line-height:1.8;margin-bottom:19px}.welcome-panel .btn{font-size:11px;min-height:38px;padding:9px 14px}.welcome-art{position:relative;display:flex;align-items:center;justify-content:center;min-width:260px}.art-ring{width:340px;height:340px;border:1px solid #e8c1a6;border-radius:50%;position:absolute;top:3px;left:8%;opacity:.5}.art-ring:before,.art-ring:after{content:'';position:absolute;border:1px solid #e8c1a6;border-radius:50%;inset:27px}.art-ring:after{inset:60px}.art-document{transform:rotate(-6deg);width:240px;min-height:247px;background:#fff;border-radius:7px;box-shadow:0 10px 30px #9c6b4e1a;padding:26px 22px;position:relative;z-index:1}.art-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;padding-bottom:14px}.art-head span{color:#d64b03;font-weight:800;font-size:17px;letter-spacing:-.8px}.art-head b{font-size:8px}.art-label{font-size:7px;color:#798993;margin-top:19px;letter-spacing:1px}.paper-line{height:5px;background:#dfe5e9;border-radius:3px;margin:9px 0}.w70{width:70%}.w40{width:40%}.mini-table{height:57px;background:repeating-linear-gradient(to bottom,#eff3f5 0,#eff3f5 1px,transparent 1px,transparent 18px);margin-top:21px}.art-total{display:flex;justify-content:space-between;gap:6px;align-items:center;background:#e64e00;color:white;border-radius:3px;padding:11px 9px;margin-top:15px}.art-total span{font-size:7px}.art-total b{font-size:8px}.floating-chip{position:absolute;right:-4px;top:12px;border-radius:9px;box-shadow:0 6px 22px #2d3e4412;background:#fff;padding:11px 14px;z-index:3;display:flex;gap:8px;align-items:center;font-size:10px;transform:rotate(4deg)}.floating-chip .icon{width:18px;height:18px;background:#eaf5ef;border-radius:50%;padding:3px;color:#157347}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:23px 0 27px}.stat-card{background:#fff;border:1px solid var(--border);padding:19px 21px;border-radius:12px;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#536a75}.stat-icon{width:31px;height:31px;background:#f4f7f8;color:#627985;display:flex;align-items:center;justify-content:center;border-radius:8px}.stat-icon .icon{width:17px;height:17px}.stat-card>strong{display:block;font:600 30px/1.4 var(--font-heading);margin-top:5px;letter-spacing:-1px}.stat-card>small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.panel{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel.padded{padding:26px}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;gap:20px}.panel h2,.panel-heading h2{font-size:15px;letter-spacing:-.3px}.panel-heading p{font-size:11px;color:var(--muted);margin-top:4px}.panel h3{font-size:14px;margin-bottom:6px}.table-scroll{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:left}.data-table th{font-size:10px;letter-spacing:.3px;color:#667b85;font-weight:700;background:#f8fafb;padding:13px 22px;border-top:1px solid #eef1f3;border-bottom:1px solid #eef1f3;white-space:nowrap}.data-table td{padding:18px 22px;font-size:12px;border-bottom:1px solid #edf1f3;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fcfdfd}.document-title{font-weight:800;font-size:12px}.document-title:hover{color:var(--accent)}.cell-sub{display:block;color:var(--muted);font-size:10px;margin-top:5px;max-width:340px}.cell-separator{color:#b8c3c8;margin:0 4px}.row-actions{display:flex;justify-content:flex-end;gap:2px}.row-actions .icon-btn{width:32px;min-width:32px;height:36px}.row-actions .icon{width:16px;height:16px}.right{text-align:right!important}.nowrap{white-space:nowrap}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:5px;font-size:10px;font-weight:700;white-space:nowrap}.badge>span{width:4px;height:4px;border-radius:50%;background:currentColor}.badge.draft{background:#f0f3f5;color:#607078}.badge.sent{background:#eaf2fb;color:#27598f}.badge.accepted{background:#e8f5ed;color:#257044}.badge.rejected{background:#fff0ed;color:#a83b2b}.badge.cancelled{background:#f1f1f1;color:#696969}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:23px}.quick-card{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid var(--border);padding:22px;border-radius:12px}.quick-card>.icon:first-child{width:37px;height:37px;padding:9px;background:#f0f5f7;border-radius:10px;color:#536e7a}.quick-card h3{font-size:12px;letter-spacing:-.2px}.quick-card p{font-size:10px;color:var(--muted);margin-top:5px}.quick-card>.icon:last-child{margin-left:auto;width:15px;color:#93a3ac}.quick-card:hover{border-color:#bdcbd2;box-shadow:var(--shadow)}.app-footer{padding:18px 40px;border-top:1px solid var(--border);display:flex;justify-content:space-between;font-size:10px;color:#75848d}.app-footer span{color:#87969e}.toolbar{display:flex;align-items:center;padding:20px 22px;gap:14px}.search-field{display:flex;align-items:center;position:relative;max-width:420px;width:100%}.search-field .icon{position:absolute;left:13px;width:17px;color:#83939c}.search-field input{padding-left:40px;width:100%}.toolbar select{width:auto}.result-count{white-space:nowrap;font-size:11px;color:var(--muted);margin-left:auto}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:12px;font-weight:700;color:#3b535d}.field small{color:var(--muted);font-size:10px;line-height:1.7}input,select,textarea{background:#fff;border:1px solid #d8e1e6;color:var(--ink);border-radius:8px;padding:11px 12px;font-size:13px;min-height:44px;width:100%;min-width:0}input::placeholder,textarea::placeholder{color:#97a5ad}select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23607078' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}textarea{resize:vertical;min-height:80px;line-height:1.7}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .wide{grid-column:1/-1}.form-stack{display:flex;flex-direction:column;gap:17px}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:8px}.form-error{font-size:12px;color:#a22e23;background:#fff3f0;border-radius:7px;line-height:1.7;padding:10px 12px}.form-error:empty{display:none}.checkline{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:var(--muted)}.checkline input{appearance:auto;width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:3px 0;accent-color:var(--accent)}.section-title{display:flex;align-items:center;gap:12px;margin-bottom:24px}.section-title p{font-size:11px;color:var(--muted);margin-top:4px}.section-icon{width:39px;height:39px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#f0f4f6;color:#536c78}.section-divider{height:1px;background:var(--border);margin:28px 0}.entity-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.entity-card{border:1px solid var(--border);border-radius:var(--radius);padding:25px;background:#fff}.entity-head{display:flex;align-items:center;gap:13px}.entity-head h2{font-size:16px}.entity-head p{font-size:11px;color:var(--muted);margin-top:4px}.entity-head .icon-btn{margin-left:auto}.entity-avatar{background:#fff0e6;border-radius:11px;width:45px;height:45px;flex:0 0 45px;display:flex;align-items:center;justify-content:center;color:var(--accent);font-weight:800;font-size:14px}.entity-details{display:flex;flex-direction:column;gap:12px;margin:24px 0;color:var(--muted);font-size:12px}.entity-details span{display:flex;align-items:flex-start;gap:9px;overflow-wrap:anywhere}.entity-details .icon{width:16px;height:16px;margin-top:3px}.entity-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--border);padding-top:13px}.entity-bottom .btn{font-size:11px;padding:7px 0}.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}.template-card{border:1px solid var(--border);border-radius:11px;position:relative;overflow:hidden;display:block}.template-card.selected{border:2px solid var(--accent);box-shadow:0 0 0 3px #bb3e0008}.template-card input{position:absolute;right:12px;top:12px;width:16px;height:16px;min-height:16px;z-index:2;accent-color:var(--accent)}.template-preview{margin:22px 24px 18px;background:#fff;min-height:195px;border:1px solid #dfe5e8;box-shadow:0 5px 15px #17252b08;position:relative;padding:22px}.tp-top{position:absolute;top:0;left:0;right:0;height:4px;background:var(--doc-accent)}.tp-brand{font-size:24px;letter-spacing:-2px;color:var(--doc-accent);font-weight:800}.tp-title{position:absolute;top:30px;right:17px;font-size:9px;font-weight:800}.tp-line{width:48%;height:6px;border-radius:2px;background:#dfe5e8;margin:15px 0}.tp-table{height:62px;border-top:12px solid #17252b;background:repeating-linear-gradient(#fff 0,#fff 16px,#e3e9ec 16px,#e3e9ec 17px);margin-top:18px}.tp-total{height:15px;background:var(--doc-accent);margin-top:8px}.minimal .tp-table{border-top-color:#e3e9ec}.minimal .tp-total{background:white;border-top:2px solid var(--doc-accent)}.executive .tp-title{color:var(--doc-accent)}.executive .tp-table{border-top-color:var(--doc-accent)}.template-caption{background:#fafcfc;padding:16px 18px;min-height:90px}.template-caption strong{display:block;font-size:13px}.template-caption span{display:block;font-size:11px;color:var(--muted);margin-top:4px}.color-options{display:flex;align-items:center;gap:13px;margin-top:20px;flex-wrap:wrap}.swatch{width:37px;height:37px;min-width:37px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--swatch);border:4px solid #fff;outline:1px solid #dce4e8;color:white}.swatch.selected{outline:2px solid var(--swatch)}.swatch .icon{width:16px;height:16px}.custom-color{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);margin-left:5px}.custom-color input{padding:3px;width:37px;height:37px;min-height:37px;border-radius:7px}.settings-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;align-items:start}.settings-grid .panel>h2{margin-bottom:13px}.settings-grid .panel>p{font-size:12px;margin-bottom:20px}.info-note{display:flex;gap:9px;align-items:flex-start;color:var(--muted);font-size:11px;background:#f5f8fa;border-radius:8px;padding:14px;margin-top:22px}.info-note .icon{width:16px;height:16px;margin-top:2px}.editor-layout{display:grid;grid-template-columns:minmax(430px,1.1fr) minmax(340px,1fr);gap:25px;align-items:start}.editor-form{display:flex;flex-direction:column;gap:23px}.editor-form .panel.padded{padding:23px}.snapshot-check{margin-top:20px}.editor-form .snapshot-check+small{display:block;font-size:10px;margin-top:4px}.editor-form .template-grid{gap:9px}.editor-form .template-preview{margin:14px 9px 10px;min-height:123px;padding:14px}.editor-form .tp-brand{font-size:19px}.editor-form .tp-title{font-size:5px;top:23px;right:10px}.editor-form .tp-line{height:4px;margin:10px 0}.editor-form .tp-table{height:36px;border-top-width:7px;margin-top:10px}.editor-form .tp-total{height:9px;margin-top:6px}.editor-form .template-caption{padding:10px;min-height:40px}.editor-form .template-caption strong{font-size:10px}.editor-form .template-caption span{display:none}.editor-form .template-card input{right:7px;top:6px;width:12px;height:12px;min-height:12px}.editor-form .panel>p{font-size:11px;margin-top:6px}.option-mode{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;margin-bottom:20px}.segmented{display:inline-flex;background:#f0f4f6;border:1px solid #e2e9ed;border-radius:8px;padding:3px}.segmented button{padding:8px 10px;border-radius:5px;font-size:10px;font-weight:700;min-height:35px;color:var(--muted)}.segmented .selected{background:#fff;box-shadow:0 2px 6px #17252b10;color:var(--ink)}.option-labels{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.option-labels .btn{font-size:10px}.line-item{border:1px solid #dce4e9;background:#fbfcfd;border-radius:10px;padding:17px;margin-bottom:15px}.line-item-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.line-item-heading>span{font-size:9px;letter-spacing:1px;font-weight:800;color:#667e8b}.line-item-heading .icon-btn{width:28px;min-width:28px;height:28px}.line-item-heading .icon{width:15px;height:15px}.line-item .form-grid{gap:13px}.line-item .field label{font-size:11px}.line-item input,.line-item select,.line-item textarea{font-size:12px;background:white}.line-item textarea{min-height:56px}.preview-column{position:sticky;top:20px;min-width:0}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;font-size:11px;padding:12px 0 17px}.preview-toolbar>div{display:flex;align-items:center;gap:7px}.preview-toolbar>span{color:var(--muted);font-size:10px;max-width:58%;text-align:right}.live-dot{width:6px;height:6px;background:#157347;border-radius:50%}.preview-frame-wrap{position:relative;border:1px solid var(--border);border-radius:11px;overflow:hidden;background:#e9edf0;min-height:680px}.preview-frame-wrap iframe{display:block;width:100%;height:740px;border:0;background:white}.preview-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f0f4f6;text-align:center;padding:25px}.preview-empty[hidden]{display:none}.preview-empty>.icon{width:49px;height:49px;color:#91a3ae;margin-bottom:17px;stroke-width:1}.preview-empty h3{font-size:14px;color:#506a77}.preview-empty p{font-size:11px;color:var(--muted);margin-top:8px}.preview-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.preview-summary>div{background:#fff;border:1px solid var(--border);border-radius:9px;padding:12px}.preview-summary span{font-size:9px;color:var(--muted);display:block}.preview-summary strong{font-size:14px;display:block;margin-top:4px;white-space:nowrap}.preview-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;padding:15px 0}.preview-actions>.btn{font-size:10px}.preview-actions>.text-link{width:100%;text-align:center;font-size:10px}.preview-actions p{font-size:10px;color:var(--muted)}.save-bottom{display:flex;justify-content:flex-end;gap:15px;align-items:center}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 25px;text-align:center}.empty>.icon{width:42px;height:42px;margin-bottom:16px;color:#9aaeb9;stroke-width:1.2}.empty h3{font-size:15px}.empty p{font-size:12px;color:var(--muted);margin:8px 0 20px}.modal{border:0;border-radius:16px;width:min(520px,calc(100% - 32px));padding:28px;background:#fff;color:var(--ink);max-height:90vh;box-shadow:0 24px 100px #17252b33;overflow-y:auto}.modal.wide-modal{width:min(760px,calc(100% - 32px))}.modal::backdrop{background:#17252b80;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.modal-heading h2{font-size:18px;letter-spacing:-.5px}.attachment-chip{display:flex;gap:9px;align-items:center;padding:12px;background:#f2f6f8;border:1px solid var(--border);border-radius:8px;font-size:12px;margin-bottom:22px}.attachment-chip>span{margin-left:auto;color:var(--muted);font-size:10px}#logo-state{font-size:11px;color:var(--accent)}#toasts{position:fixed;z-index:100;bottom:24px;right:24px;display:flex;flex-direction:column;gap:10px;max-width:420px}.toast{display:flex;gap:10px;align-items:flex-start;background:#17252b;color:white;font-size:12px;border-radius:10px;padding:17px 20px;box-shadow:0 8px 40px #17252b30;animation:toast-in .2s ease-out}.toast>.icon{width:18px;height:18px;color:#94d5ae}.toast.error{background:#8f3026}.toast.error>.icon{color:#ffbeb4}.initial-loading{min-height:70vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:17px;padding:30px;text-align:center}.initial-loading p{font-size:13px;color:var(--muted)}.spinner{border:2px solid #dce4e8;border-top-color:var(--accent);border-radius:50%;width:30px;height:30px;animation:spin .7s linear infinite}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.auth-story{background:#fff2e8;padding:44px 65px 30px;position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:100vh}.auth-logo{width:300px;max-width:80%;height:auto;position:relative;z-index:1}.auth-copy{padding:65px 0 0;position:relative}.auth-copy .eyebrow{font-size:10px;letter-spacing:2px;color:#8c5d3e}.auth-copy h1{font-size:52px;letter-spacing:-2.5px;line-height:1.22;margin:16px 0 24px}.auth-copy h1 em{font-style:normal;color:#c74905}.auth-copy>p{font-size:13px;color:#7d6b5c;line-height:1.9}.auth-form-side{display:flex;align-items:center;justify-content:center;padding:50px}.auth-card{max-width:370px;width:100%}.auth-card .pill{background:#f4f7f9;border-color:#e0e6eb;color:#526b78}.auth-card h2{font-size:27px;letter-spacing:-1px;margin:22px 0 12px}.auth-card>p{color:var(--muted);font-size:13px;line-height:1.8;margin-bottom:30px}.auth-card input{min-height:48px}.auth-note{display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px;color:#778b96;margin-top:23px}.auth-note .icon{width:14px;height:14px}.auth-foot{margin-top:auto;padding-top:30px;font-size:10px;color:#957d6a}.auth-paper{margin:40px 0 -5px;width:310px;padding:22px 26px;background:#ffffffcf;border:1px solid #eed2bb;border-radius:8px;transform:rotate(-4deg);box-shadow:0 12px 30px #6d422811;position:relative}.mini-brand{font-size:12px;font-weight:800;letter-spacing:1px;color:#d64c06;margin-bottom:20px}.auth-paper .mini-table{height:42px}.mini-total{margin-top:17px;font-size:9px;border-top:2px solid #e64e00;padding-top:10px;font-weight:700;color:#776454}@keyframes spin{to{transform:rotate(360deg)}}@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1600px){.main-content{padding:40px 52px}.welcome-panel{min-height:330px;padding:40px 45px}.welcome-panel h2{font-size:35px}.welcome-panel p{font-size:14px}.art-document{width:280px;padding:28px;min-height:265px}.floating-chip{right:40px}.art-ring{left:18%}.welcome-panel .btn{font-size:12px}.data-table td{font-size:13px}}@media(max-width:1250px){.sidebar{width:215px;padding-left:13px;padding-right:13px}.brand img{width:174px}.nav-item{font-size:12px;padding:11px}.main-wrap{margin-left:215px;width:calc(100% - 215px)}.main-content{padding:28px}.topbar{padding:0 28px}.page-heading h1{font-size:23px}.welcome-panel{padding:27px}.welcome-panel h2{font-size:26px}.floating-chip{right:-16px;font-size:8px;padding:9px}.art-document{width:210px;min-height:235px;padding:22px 18px}.art-ring{width:290px;height:290px}.data-table th,.data-table td{padding-left:16px;padding-right:16px}.stats-grid{gap:12px}.stat-card{padding:16px}.stat-top{font-size:11px}.editor-layout{grid-template-columns:minmax(350px,1.05fr) minmax(300px,1fr);gap:18px}.editor-form .panel.padded{padding:18px}.option-mode{align-items:flex-start;flex-direction:column}.preview-frame-wrap iframe{height:680px}.preview-summary strong{font-size:12px}.template-preview{margin:20px 15px;padding:17px}.entity-grid{gap:16px}.settings-grid{grid-template-columns:1fr}.auth-story{padding:40px}.auth-copy h1{font-size:44px}}@media(max-width:1020px){.editor-layout{grid-template-columns:1fr}.preview-column{position:static}.preview-frame-wrap{max-width:794px;margin:auto}.preview-frame-wrap iframe{height:980px}.preview-summary{max-width:794px;margin:0 auto 13px}.welcome-art{min-width:210px}.art-document{width:180px;min-height:215px;padding:18px 14px}.art-head span{font-size:14px}.art-head b{font-size:6px}.art-total b{font-size:6px}.floating-chip{right:-18px;top:16px}.welcome-panel h2{font-size:24px}.quick-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:1fr 1fr}.entity-grid{grid-template-columns:1fr}.auth-copy h1{font-size:39px}.auth-logo{width:240px}.auth-paper{width:260px}}@media(max-width:760px){.sidebar{transform:translateX(-100%);width:244px;box-shadow:20px 0 60px #17252b22}.sidebar.open{transform:translateX(0)}.sidebar.open:after{content:'';position:fixed;left:244px;top:0;bottom:0;width:calc(100vw - 244px);background:#17252b40}.main-wrap{margin-left:0;width:100%}.mobile-menu{display:inline-flex}.topbar{height:64px;padding:0 16px}.breadcrumb{gap:7px;font-size:10px}.breadcrumb>span{display:none}.breadcrumb .mobile-menu .icon{width:20px;height:20px;color:var(--ink)}.topbar-right{gap:10px}.today{font-size:10px}.main-content{padding:24px 18px 32px}.page-heading{align-items:flex-start;gap:16px;flex-direction:column;margin-bottom:22px}.page-heading h1{font-size:24px}.page-description{font-size:12px}.heading-actions{width:100%}.heading-actions .btn.primary{margin-left:auto}.welcome-panel{padding:25px 23px;grid-template-columns:1fr;min-height:310px}.welcome-panel h2{font-size:28px}.welcome-art{display:none}.welcome-panel p{font-size:12px}.stats-grid{gap:10px;margin:16px 0 22px}.stat-card{padding:17px}.stat-card>strong{font-size:27px}.stat-card>small{font-size:9px}.panel-heading{padding:20px 17px}.panel-heading h2{font-size:14px}.panel-heading p{font-size:10px}.panel-heading .text-link{font-size:10px}.data-table{min-width:680px}.data-table td,.data-table th{padding:16px}.app-footer{padding:18px;gap:10px;font-size:9px}.app-footer span{max-width:160px;text-align:right}.toolbar{flex-wrap:wrap;padding:16px;gap:10px}.toolbar .search-field{max-width:100%}.toolbar select{flex:1}.result-count{font-size:10px}.panel.padded{padding:20px}.template-grid{grid-template-columns:1fr}.template-preview{min-height:180px;max-width:280px;margin:20px auto}.template-card{display:grid;grid-template-columns:1fr 1fr;align-items:center}.template-caption{background:transparent}.template-preview{width:90%;min-height:170px;padding:15px}.tp-title{font-size:7px;right:12px}.template-caption span{font-size:10px}.editor-form .template-card{display:block}.editor-form .template-grid{grid-template-columns:repeat(3,1fr);gap:6px}.editor-form .template-preview{width:auto;min-height:110px;margin:12px 5px 7px;padding:8px}.editor-form .tp-title{font-size:4px;right:5px}.editor-form .tp-brand{font-size:16px}.editor-form .template-caption{padding:8px}.editor-form .template-caption strong{font-size:9px}.editor-form .template-card input{width:10px;height:10px;min-height:10px}.editor-form .panel.padded{padding:18px 15px}.editor-form .section-title h2{font-size:13px}.editor-form .section-title p{font-size:10px}.line-item{padding:13px}.line-item .form-grid{gap:13px 10px}.preview-frame-wrap iframe{height:840px}.preview-summary strong{font-size:14px}.form-grid{gap:15px}.form-grid .field label{font-size:11px}.form-grid input,.form-grid select{font-size:12px;padding:10px}.form-grid select{padding-right:28px;background-position:right 8px center}.option-labels{gap:10px}.option-labels .btn{white-space:normal}.color-options{gap:10px}.swatch{width:33px;height:33px;min-width:33px}.custom-color{font-size:11px}.settings-grid{gap:18px}.entity-card{padding:20px}.entity-head h2{font-size:15px}.entity-details{font-size:11px}.empty{padding:40px 20px}.modal{padding:20px}.modal .form-grid{grid-template-columns:1fr}.modal-heading h2{font-size:16px}.attachment-chip{font-size:10px;flex-wrap:wrap}.attachment-chip span{width:100%;margin-left:28px}#toasts{bottom:16px;right:16px;left:16px;max-width:none}.toast{font-size:11px;padding:14px}.auth-page{grid-template-columns:1fr}.auth-story{min-height:0;padding:25px}.auth-logo{width:240px;max-width:70%}.auth-copy{padding-top:28px}.auth-copy .eyebrow{font-size:8px}.auth-copy h1{font-size:34px;letter-spacing:-1.5px}.auth-copy h1 br:nth-child(2){display:none}.auth-copy>p,.auth-paper,.auth-foot{display:none}.auth-form-side{padding:35px 25px 50px;align-items:flex-start}.auth-card{max-width:440px}.auth-card h2{font-size:25px}.auth-card>p{font-size:12px;margin-bottom:25px}.snapshot-check{font-size:11px}.section-title .section-icon{width:33px;min-width:33px;height:33px}.section-title .section-icon .icon{width:17px;height:17px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}[hidden]{display:none!important}
/* Readable application type; tiny sizes are reserved for decorative document miniatures. */
body{font-size:16px}.btn{font-size:14px}.nav-item{font-size:14px}.nav-caption{font-size:11px}.brand>span{font-size:11px}.workspace-label strong,.user-block strong{font-size:13px}.workspace-label small,.user-block small{font-size:12px}.breadcrumb,.topbar-right{font-size:12px}.page-description{font-size:14px}.stat-top{font-size:13px}.stat-card>small{font-size:12px}.panel-heading p{font-size:12px}.panel h2,.panel-heading h2{font-size:16px}.data-table th{font-size:12px}.data-table td,.document-title{font-size:13px}.cell-sub,.badge{font-size:12px}.row-actions .icon-btn{height:42px;min-width:36px}.quick-card h3{font-size:14px}.quick-card p{font-size:12px}.field label,.form-grid .field label{font-size:14px}.field small{font-size:12px}input,select,textarea,.form-grid input,.form-grid select{font-size:14px}.section-title p{font-size:12px}.line-item .field label{font-size:13px}.line-item input,.line-item select,.line-item textarea{font-size:14px}.line-item-heading>span{font-size:11px}.option-mode{font-size:13px}.segmented button{font-size:12px}.entity-details{font-size:13px}.entity-head p{font-size:12px}.template-caption strong{font-size:14px}.template-caption span{font-size:12px}.info-note{font-size:12px}.custom-color{font-size:13px}.preview-toolbar{font-size:13px}.preview-toolbar>span,.preview-summary span,.preview-actions p{font-size:12px}.app-footer{font-size:11px}.form-error,.checkline{font-size:13px}.auth-card>p,.auth-copy>p{font-size:14px}.auth-note{font-size:12px}.settings-grid .panel>p{font-size:13px}.settings-grid .panel>h2{font-size:17px}.toolbar .result-count{font-size:12px}@media(max-width:760px){.main-content{padding-left:16px;padding-right:16px}.btn{font-size:13px}.heading-actions{gap:8px}.page-description{font-size:13px}.stat-top{font-size:12px}.stat-card>small{font-size:11px}.field label,.form-grid .field label{font-size:13px}.line-item .field label{font-size:12px}.preview-toolbar>span{font-size:11px}.entity-details{font-size:12px}.panel-heading .text-link{font-size:12px}.stat-card{padding:14px}.editor-form .section-title h2{font-size:14px}.editor-form .section-title p{font-size:12px}.editor-form .panel.padded{padding:17px 13px}.preview-summary strong{font-size:13px}.auth-card>p{font-size:13px}.auth-note{font-size:11px}.template-caption span{font-size:12px}.toolbar select{max-width:210px}.form-grid{gap:14px}}
@media(max-width:760px){.sidebar{box-shadow:none}.sidebar.open{box-shadow:20px 0 60px #17252b22}.app-footer{padding-bottom:calc(18px + env(safe-area-inset-bottom))}#toasts{bottom:calc(16px + env(safe-area-inset-bottom))}.row-actions .icon-btn{min-width:44px;height:44px}.data-table th:last-child{min-width:190px}}
