:root{--ink:#0b1f3a;--muted:#62738b;--blue:#1769e0;--blue2:#0d4fbd;--pale:#f4f8fd;--line:#dbe5f0;--green:#11855b;--shadow:0 20px 55px rgba(20,48,86,.11)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.55}a{color:inherit;text-decoration:none}.site-header{height:76px;border-bottom:1px solid #e8eef5;background:rgba(255,255,255,.96);position:sticky;top:0;z-index:50;backdrop-filter:blur(12px)}.header-inner{max-width:1180px;height:100%;margin:auto;padding:0 24px;display:flex;align-items:center;gap:32px}.brand{display:flex;align-items:center;font-size:20px;font-weight:800;letter-spacing:-.6px;margin-right:auto}.brand-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:var(--blue);color:#fff;margin-right:8px;font-weight:900}.brand-dot{color:var(--blue)}nav{display:flex;gap:28px;font-size:14px;color:#43546c}nav a:hover{color:var(--blue)}.header-cta{background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;font-size:13px;font-weight:700}.menu{display:none;border:0;background:none;font-size:22px}.hero{max-width:1180px;margin:auto;padding:92px 24px 78px;display:grid;grid-template-columns:1.02fr .98fr;gap:75px;align-items:center}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.5px;color:var(--blue);margin-bottom:15px}.hero h1{font-size:58px;line-height:1.02;letter-spacing:-2.8px;margin:0 0 24px}.hero h1 span{color:var(--blue)}.hero-copy>p{font-size:18px;color:var(--muted);max-width:600px;margin:0 0 30px}.hero-actions{display:flex;gap:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:11px;background:var(--blue);color:#fff;padding:14px 20px;font-weight:750;font-size:14px;cursor:pointer;box-shadow:0 8px 22px rgba(23,105,224,.18)}.btn:hover{background:var(--blue2)}.btn.secondary{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}.trust-row{display:flex;flex-wrap:wrap;gap:18px;margin-top:24px;font-size:12px;color:#607189}.invoice-card{background:#fff;border:1px solid #dce6f1;border-radius:20px;padding:28px;box-shadow:var(--shadow);transform:rotate(1deg)}.invoice-head,.ri-top,.p-head{display:flex;justify-content:space-between;gap:20px}.invoice-head small,.parties small,.ri-top small,.ri-parties small,.p-head small,.p-parties small{display:block;font-size:9px;letter-spacing:1.2px;color:#8a98aa;margin-bottom:5px}.invoice-head strong{display:block;font-size:19px}.pill{height:max-content;background:#eaf7f1;color:var(--green);padding:6px 9px;border-radius:20px;font-size:10px;font-weight:800}.parties,.ri-parties,.p-parties{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:28px 0}.parties b,.parties span,.ri-parties b,.p-parties b,.p-parties span{display:block}.parties span,.p-parties span{font-size:11px;color:var(--muted)}.mini-table{border-top:1px solid var(--line);font-size:11px}.mini-table>div{display:grid;grid-template-columns:1fr 45px 90px;padding:11px 0;border-bottom:1px solid #edf2f7}.mini-table span:last-child{text-align:right}.mini-table .thead{font-size:9px;color:#8a98aa;text-transform:uppercase}.totals{display:flex;justify-content:flex-end;gap:17px;align-items:center;margin-top:20px;font-size:10px}.totals b{font-size:18px}.valid-strip{margin:24px -28px -28px;background:#f2f8ff;border-radius:0 0 20px 20px;padding:15px 28px;display:flex;gap:12px;align-items:center}.valid-strip .check{background:#dff4e9;color:var(--green);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:900}.valid-strip b,.valid-strip small{display:block}.valid-strip small{color:var(--muted);font-size:10px}.logo-strip{border-top:1px solid #eef2f6;border-bottom:1px solid #eef2f6;padding:22px;display:flex;justify-content:center;gap:70px;color:#a1adbc;font-size:11px;font-weight:800;letter-spacing:1.7px}.section{max-width:1180px;margin:auto;padding:95px 24px}.section-heading{display:flex;justify-content:space-between;gap:50px;align-items:end;margin-bottom:38px}.section-heading h2,.privacy-section h2,.cta-section h2{font-size:39px;line-height:1.08;letter-spacing:-1.5px;margin:0;max-width:650px}.section-heading>p{max-width:390px;color:var(--muted)}.tool-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.feature-card{border:1px solid var(--line);border-radius:16px;padding:28px;display:flex;gap:22px;transition:.2s}.feature-card:hover{transform:translateY(-3px);box-shadow:0 14px 35px rgba(20,48,86,.08);border-color:#b9cce3}.feature-card.featured{background:var(--ink);color:#fff;border-color:var(--ink)}.feature-icon{width:45px;height:45px;border-radius:12px;background:#edf5ff;color:var(--blue);display:grid;place-items:center;font-size:20px;flex:0 0 auto}.featured .feature-icon{background:rgba(255,255,255,.12);color:#fff}.feature-card small{color:#76aef8;font-weight:800;font-size:9px;letter-spacing:1px}.feature-card h3{margin:2px 0 7px;font-size:19px}.feature-card p{color:var(--muted);margin:0 0 14px;font-size:14px}.featured p{color:#b9c7d9}.feature-card b{font-size:12px;color:var(--blue)}.featured b{color:#7db4ff}.privacy-section{background:var(--pale);padding:85px max(24px,calc((100% - 1132px)/2));display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center}.privacy-section>div>p{color:var(--muted);max-width:620px}.privacy-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:25px;display:flex;gap:18px;box-shadow:0 12px 35px rgba(20,48,86,.06)}.shield{width:42px;height:42px;border-radius:50%;background:#eaf7f1;color:var(--green);display:grid;place-items:center}.privacy-card p{margin:5px 0 0;color:var(--muted);font-size:13px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.steps>div{border-top:2px solid var(--ink);padding-top:22px}.steps span{font-size:11px;color:var(--blue);font-weight:800}.steps h3{margin:12px 0 5px}.steps p{color:var(--muted);font-size:14px}.cta-section{max-width:1132px;margin:0 auto 90px;background:var(--blue);color:#fff;border-radius:22px;padding:48px 52px;display:flex;align-items:center;justify-content:space-between;gap:30px}.cta-section .eyebrow{color:#bcd8ff}.cta-section p{margin-bottom:0;color:#dceaff}.btn.light{background:#fff;color:var(--blue);box-shadow:none}.site-footer{background:#07182d;color:#fff;padding:58px max(24px,calc((100% - 1132px)/2)) 24px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px}.footer-grid p{color:#91a1b6;font-size:13px;max-width:300px}.footer-grid>div:not(:first-child){display:flex;flex-direction:column;gap:10px;font-size:12px;color:#aab7c8}.footer-grid b{color:#fff;margin-bottom:5px}.footer-bottom{border-top:1px solid #1d3047;margin-top:45px;padding-top:20px;display:flex;justify-content:space-between;color:#75869b;font-size:11px}.tool-page,.generator-page{max-width:1120px;margin:auto;padding:70px 24px 90px}.tool-intro{text-align:center;max-width:750px;margin:0 auto 38px}.tool-intro h1{font-size:44px;line-height:1.06;letter-spacing:-1.8px;margin:0 0 17px}.tool-intro p{color:var(--muted);font-size:16px}.microtrust{display:flex;justify-content:center;gap:20px;color:#6c7c91;font-size:11px}.upload-card{display:grid;grid-template-columns:.8fr 1.2fr;border:1px solid var(--line);border-radius:20px;overflow:hidden;min-height:440px;box-shadow:0 15px 45px rgba(20,48,86,.07)}.upload-card.narrow{max-width:900px;margin:auto}.dropzone{background:var(--pale);padding:50px 35px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-right:1px solid var(--line)}.upload-icon{width:56px;height:56px;border-radius:15px;background:#fff;color:var(--blue);display:grid;place-items:center;font-size:25px;box-shadow:0 8px 20px rgba(20,48,86,.08)}.dropzone h2{margin:18px 0 4px}.dropzone p{color:var(--muted);font-size:13px}.dropzone small{margin-top:12px;color:#8b98a9;font-size:10px}.file-btn input{display:none}.result-area{padding:35px;background:#fff;overflow:auto}.empty-result{height:100%;min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#8b98a9}.empty-result>span{font-size:34px;color:#c2cedb}.empty-result b{color:#5d6e83;margin:10px}.empty-result p{max-width:360px;font-size:12px}.info-banner,.notice{margin-top:18px;padding:16px 20px;border-radius:12px;background:#f1f8f5;border:1px solid #d7ebe2;display:flex;gap:15px;font-size:12px;color:#557065}.notice{background:#fff9ed;border-color:#f0dfb8;color:#76613a}.rendered-invoice{border:1px solid var(--line);border-radius:14px;padding:26px;min-width:480px}.ri-top h2{margin:2px 0;font-size:22px}.ri-top span:not(.pill){font-size:11px;color:var(--muted)}.ri-parties b{font-size:13px}.view-lines{margin-top:25px;border-top:1px solid var(--line)}.view-line{display:grid;grid-template-columns:1fr 60px 120px;gap:10px;padding:11px 0;border-bottom:1px solid #edf2f7;font-size:11px}.view-line>*:last-child{text-align:right}.view-line.head{font-size:9px;color:#8997a8;text-transform:uppercase}.ri-total{margin:22px 0 0 auto;width:260px}.ri-total>div{display:flex;justify-content:space-between;padding:6px 0;font-size:11px}.ri-total .grand{border-top:1px solid var(--line);margin-top:6px;padding-top:12px}.ri-total strong{font-size:17px}.detected{margin-top:25px;background:var(--pale);padding:10px 12px;border-radius:8px;font-size:10px;color:var(--muted)}.inspection-status{display:flex;gap:14px;align-items:center;background:#eef8f3;border-radius:12px;padding:16px}.inspection-status>span{width:35px;height:35px;background:#d9f0e4;color:var(--green);border-radius:50%;display:grid;place-items:center}.inspection-status b,.inspection-status small{display:block}.inspection-status small{color:#678276}.inspection-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.inspection-grid>div{border:1px solid var(--line);border-radius:10px;padding:14px}.inspection-grid .wide{grid-column:1/-1}.inspection-grid small,.inspection-grid b{display:block}.inspection-grid small{font-size:9px;color:#8b98a9;text-transform:uppercase}.inspection-grid b{font-size:12px;margin-top:4px;word-break:break-all}.error-box{background:#fff2f2;border:1px solid #efd2d2;color:#8b3d3d;padding:18px;border-radius:12px;display:flex;flex-direction:column}.generator-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:22px;align-items:start}.editor-card,.preview-card{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 12px 35px rgba(20,48,86,.06)}.form-section{padding:28px;border-bottom:1px solid #edf2f7}.form-title{display:flex;gap:13px;align-items:center;margin-bottom:20px}.form-title>span{width:31px;height:31px;border-radius:9px;background:#edf5ff;color:var(--blue);display:grid;place-items:center;font-size:11px;font-weight:800}.form-title h2{font-size:16px;margin:0}.form-title p{font-size:11px;color:var(--muted);margin:1px 0 0}.form-grid{display:grid;gap:13px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid.three{grid-template-columns:repeat(3,1fr)}label{font-size:10px;color:#64758b;font-weight:700}input,select,textarea{width:100%;margin-top:6px;border:1px solid #d7e1ec;border-radius:9px;padding:11px 12px;font:inherit;font-size:12px;color:var(--ink);background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:#79aaf0;box-shadow:0 0 0 3px #eef5ff}.wide{grid-column:1/-1}.line-editor{display:grid;grid-template-columns:28px minmax(180px,1fr) 70px 100px 70px 30px;gap:8px;align-items:end;padding:12px 0;border-bottom:1px solid #edf2f7}.line-no{height:34px;display:grid;place-items:center;background:var(--pale);border-radius:8px;font-size:10px;font-weight:800;margin-bottom:1px}.remove-line{border:0;background:#fff1f1;color:#b94d4d;border-radius:8px;height:34px;font-size:18px;cursor:pointer}.add-line{margin-top:14px;border:1px dashed #b9c9dc;background:#f8fbff;color:var(--blue);border-radius:9px;padding:10px 13px;font-size:11px;font-weight:800;cursor:pointer}.generate-bar{padding:22px 28px;display:flex;justify-content:space-between;align-items:center;background:#f8fbff;border-radius:0 0 18px 18px}.generate-bar small,.generate-bar strong{display:block}.generate-bar small{font-size:9px;color:var(--muted)}.generate-bar strong{font-size:20px}.preview-card{padding:22px}.preview-sticky{position:sticky;top:98px}.preview-label{font-size:9px;color:#8b98a9;font-weight:800;letter-spacing:1.2px;margin-bottom:15px}.p-head{padding-bottom:17px;border-bottom:1px solid var(--line)}.p-head b{display:block}.p-head>span{font-size:10px;color:var(--muted)}.p-parties{margin:18px 0}.p-parties b{font-size:11px}.p-lines{border-top:1px solid var(--line)}.p-line{padding:10px 0;border-bottom:1px solid #edf2f7;display:grid;grid-template-columns:1fr;gap:2px;font-size:10px}.p-line span:nth-child(2){color:var(--muted)}.p-line b{text-align:right}.p-totals{margin:18px 0 0 auto;width:75%;display:flex;flex-direction:column;gap:5px}.p-totals>span,.p-totals>strong{display:flex;justify-content:space-between;font-size:10px}.p-totals>strong{border-top:1px solid var(--line);padding-top:8px;font-size:13px}.beta-box{margin-top:25px;background:#fff9ed;border:1px solid #f0dfb8;border-radius:10px;padding:13px;font-size:10px;color:#76613a}.beta-box p{margin:4px 0 0}.code-output{white-space:pre-wrap;word-break:break-all;background:#07182d;color:#d8e7f7;border-radius:12px;padding:20px;font:11px/1.6 monospace;display:none}@media(max-width:850px){.site-header{height:66px}.header-inner{padding:0 16px}.menu{display:block}.site-header nav{display:none;position:absolute;top:65px;left:0;right:0;background:#fff;padding:15px 20px;border-bottom:1px solid var(--line);flex-direction:column}.site-header nav.open{display:flex}.header-cta{display:none}.hero{grid-template-columns:1fr;padding-top:58px;gap:45px}.hero h1{font-size:44px}.hero-visual{max-width:560px}.logo-strip{gap:25px;overflow:hidden}.section-heading,.privacy-section,.cta-section{grid-template-columns:1fr;display:grid}.tool-grid,.steps,.footer-grid{grid-template-columns:1fr}.upload-card{grid-template-columns:1fr}.dropzone{border-right:0;border-bottom:1px solid var(--line)}.generator-layout{grid-template-columns:1fr}.form-grid.three{grid-template-columns:1fr 1fr}.line-editor{grid-template-columns:25px 1fr 65px 85px}.line-editor label:nth-of-type(4){grid-column:2}.remove-line{grid-column:4;grid-row:2}.preview-card{order:-1}.preview-sticky{position:static}}@media(max-width:520px){.hero h1,.tool-intro h1{font-size:36px}.hero-actions,.trust-row,.microtrust{flex-direction:column}.hero-actions .btn{width:100%}.section,.tool-page,.generator-page{padding-left:16px;padding-right:16px}.section-heading h2,.privacy-section h2,.cta-section h2{font-size:31px}.invoice-card{padding:20px}.parties{grid-template-columns:1fr}.tool-grid{grid-template-columns:1fr}.form-grid.two,.form-grid.three{grid-template-columns:1fr}.line-editor{grid-template-columns:25px 1fr 60px}.line-editor .desc{grid-column:2/-1}.line-editor label:nth-of-type(2){grid-column:2}.line-editor label:nth-of-type(3){grid-column:3}.line-editor label:nth-of-type(4){grid-column:2}.remove-line{grid-column:3;grid-row:3}.generate-bar{align-items:stretch;gap:14px;flex-direction:column}.rendered-invoice{min-width:0}.view-line{grid-template-columns:1fr 40px 90px}.info-banner{flex-direction:column}.footer-bottom{flex-direction:column;gap:8px}}
.validation-explain{max-width:900px;margin:18px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.validation-explain>div{border:1px solid var(--line);border-radius:12px;padding:15px 16px;font-size:11px}.validation-explain b{margin-left:7px}.validation-explain p{margin:6px 0 0 19px;color:var(--muted)}.status-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.status-dot.green{background:#20a36d}.status-dot.red{background:#d9534f}.status-dot.amber{background:#d69b25}.validation-report{font-size:12px}.vr-summary{border-radius:13px;padding:17px;display:flex;gap:13px;align-items:center}.vr-summary.pass{background:#eef8f3}.vr-summary.fail{background:#fff2f2}.vr-score{width:42px;height:42px;border-radius:50%;background:#fff;display:grid;place-items:center;font-weight:900}.vr-summary b,.vr-summary small{display:block}.vr-summary small{color:var(--muted)}.vr-meta{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:13px 0}.vr-meta>div{border:1px solid var(--line);border-radius:9px;padding:10px}.vr-meta small,.vr-meta b{display:block}.vr-meta small{font-size:8px;color:#8b98a9;text-transform:uppercase}.vr-meta b{font-size:10px;word-break:break-word}.vr-list{display:flex;flex-direction:column;gap:7px}.vr-item{display:grid;grid-template-columns:20px 1fr;gap:8px;border:1px solid var(--line);border-radius:9px;padding:10px}.vr-item i{font-style:normal;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:900}.vr-item.pass i{background:#e3f4eb;color:#11855b}.vr-item.error i{background:#fde8e8;color:#b64141}.vr-item.warn i{background:#fff3d9;color:#9b6b0d}.vr-item b,.vr-item small{display:block}.vr-item b{font-size:10px}.vr-item small{color:var(--muted);margin-top:2px}.official-note{margin-top:13px;padding:10px 12px;border-radius:8px;background:#f4f8fd;color:#5c6e84;font-size:9px}@media(max-width:700px){.validation-explain{grid-template-columns:1fr}.vr-meta{grid-template-columns:1fr}}

/* V5 SaaS */
.header-login{font-size:11px;font-weight:800;color:var(--ink);margin-left:auto}.auth-shell{min-height:650px;padding:80px 20px;background:linear-gradient(180deg,#f7faff,#fff);display:flex;justify-content:center;align-items:flex-start}.auth-card{width:min(480px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:38px;box-shadow:0 18px 55px rgba(20,48,86,.08)}.auth-card h1{font-size:31px;margin:8px 0}.auth-card>p,.auth-foot{color:var(--muted);font-size:12px}.stack-form{display:flex;flex-direction:column;gap:14px;margin-top:25px}.stack-form .btn{margin-top:5px}.alert{padding:13px 15px;border-radius:10px;font-size:11px;margin:16px 0}.alert.error{background:#fff2f2;border:1px solid #efd2d2;color:#934848}.alert.success{background:#eef8f3;border:1px solid #d7ebe2;color:#327257}.app-shell{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:220px 1fr;gap:34px;padding:50px 20px 90px}.app-side{border-right:1px solid var(--line);padding-right:24px}.app-user{padding:5px 8px 22px;border-bottom:1px solid var(--line)}.app-user small,.app-user b,.app-user span{display:block}.app-user small{font-size:8px;letter-spacing:1px;color:#8b98a9}.app-user b{margin-top:7px;font-size:13px}.app-user span{font-size:9px;color:var(--muted);margin-top:2px;word-break:break-all}.app-side nav{display:flex;flex-direction:column;gap:4px;margin-top:18px}.app-side nav a{padding:11px 12px;border-radius:9px;font-size:11px;font-weight:700;color:#5b6c82}.app-side nav a.active,.app-side nav a:hover{background:#edf5ff;color:var(--blue)}.app-main{min-width:0}.app-top{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:28px}.app-top h1{font-size:34px;margin:5px 0}.app-top p{margin:0;color:var(--muted);font-size:12px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}.stat-grid>div,.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px}.stat-grid small,.stat-grid strong,.stat-grid span{display:block}.stat-grid small{font-size:8px;letter-spacing:1px;color:#8b98a9}.stat-grid strong{font-size:30px;margin:6px 0}.stat-grid span{font-size:10px;color:var(--muted)}.panel{margin-bottom:18px}.panel h2{font-size:15px;margin:0 0 18px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.panel-head h2{margin:0}.panel-head a,.panel-head span{font-size:10px;color:var(--blue);font-weight:800}.empty-state{text-align:center;padding:35px;color:var(--muted);font-size:11px}.empty-state b{display:block;color:var(--ink);font-size:13px}.data-table{display:flex;flex-direction:column}.data-row{display:grid;grid-template-columns:1.5fr 1fr .7fr 1fr;align-items:center;gap:12px;padding:13px 5px;border-top:1px solid #edf2f7;font-size:10px}.data-row:first-child{border-top:0}.data-row strong{text-align:right}.data-row small{display:block;color:var(--muted);margin-top:2px}.status{display:inline-block;width:max-content;background:#fff5dd;color:#936b13;border-radius:20px;padding:4px 8px}.app-two{display:grid;grid-template-columns:.85fr 1.15fr;gap:18px}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.three-mini{grid-template-columns:repeat(3,1fr)}.customer-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-top:1px solid #edf2f7}.customer-row b,.customer-row span{display:block}.customer-row b{font-size:11px}.customer-row span{font-size:9px;color:var(--muted);margin-top:3px}.link-danger{border:0;background:#fff1f1;color:#b94d4d;border-radius:8px;width:28px;height:28px;cursor:pointer}.form-panel{max-width:760px}button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:850px){.header-login{display:none}.app-shell{grid-template-columns:1fr;padding-top:25px}.app-side{border-right:0;border-bottom:1px solid var(--line);padding:0 0 15px}.app-user{display:none}.app-side nav{flex-direction:row;overflow:auto;margin:0}.app-side nav a{white-space:nowrap}.app-two{grid-template-columns:1fr}}@media(max-width:600px){.auth-shell{padding:35px 15px}.auth-card{padding:25px}.app-top{align-items:flex-start;flex-direction:column}.stat-grid{grid-template-columns:1fr}.mini-grid,.three-mini{grid-template-columns:1fr}.data-row{grid-template-columns:1fr 1fr}.data-row strong{text-align:left}}
.dropzone.drag-active{background:#eaf3ff;outline:2px dashed #1769e0;outline-offset:-10px}.dropzone.drag-active .upload-icon{transform:translateY(-3px);transition:.15s}.file-btn input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}.file-btn{position:relative}
/* V5.2 connected invoice workflow */
.invoice-editor{max-width:none}.invoice-context{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#f6f9fd;border:1px solid var(--line);border-radius:11px;padding:14px 16px;margin:4px 0 8px}.invoice-context small,.invoice-context b,.invoice-context span{display:block}.invoice-context small{font-size:8px;letter-spacing:1px;color:#8997a9}.invoice-context b{font-size:12px;margin:3px 0}.invoice-context span{font-size:9px;color:var(--muted)}.invoice-context a{font-size:9px;color:var(--blue);font-weight:800}.line-items-head{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.line-items-head small{font-size:8px;letter-spacing:1px;color:#8997a9}.line-items-head h3{margin:2px 0 0;font-size:15px}.small-btn{padding:9px 12px;font-size:10px}.saas-line{display:grid;grid-template-columns:minmax(220px,2.2fr) .55fr .75fr .55fr .7fr 32px;gap:9px;align-items:end;padding:12px 0;border-bottom:1px solid #edf2f7}.saas-line label{font-size:9px}.saas-line input{margin-top:5px}.line-total{padding:0 5px 10px}.line-total small,.line-total b{display:block}.line-total small{font-size:7px;color:#8997a9}.line-total b{font-size:11px;margin-top:5px}.remove-saas-line{margin-bottom:8px;width:30px;height:30px;border:0;border-radius:8px;background:#fff1f1;color:#b94d4d;cursor:pointer}.add-line-mobile{display:none}.invoice-editor-bottom{display:grid;grid-template-columns:1.3fr .7fr;gap:25px;margin-top:18px}.invoice-editor textarea{width:100%;border:1px solid #d7e2ee;border-radius:9px;padding:11px;font:inherit;resize:vertical}.live-totals{background:#f8fafd;border-radius:12px;padding:14px 16px}.live-totals>div{display:flex;justify-content:space-between;font-size:10px;padding:6px 0}.live-totals .grand{border-top:1px solid var(--line);margin-top:5px;padding-top:11px}.live-totals .grand strong{font-size:16px}.editor-actions{display:flex;gap:10px;margin-top:18px}.invoice-list{display:flex;flex-direction:column}.invoice-list-row{display:grid;grid-template-columns:1.5fr .55fr .7fr 1.5fr;gap:12px;align-items:center;padding:14px 4px;border-top:1px solid #edf2f7}.invoice-list-row:first-child{border-top:0}.invoice-list-row b,.invoice-list-row small{display:block}.invoice-list-row b{font-size:11px}.invoice-list-row small{font-size:9px;color:var(--muted);margin-top:2px}.invoice-list-row>strong{text-align:right;font-size:11px}.invoice-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}.invoice-actions a,.invoice-actions button{border:0;background:none;padding:0;color:var(--blue);font:inherit;font-size:9px;font-weight:800;cursor:pointer}.invoice-actions form{margin:0}.invoice-actions .danger-text{color:#b94d4d}@media(max-width:900px){.saas-line{grid-template-columns:1.5fr .5fr .7fr}.saas-line .line-desc{grid-column:1/-1}.line-total{padding-bottom:8px}.remove-saas-line{grid-column:3}.invoice-list-row{grid-template-columns:1fr auto}.invoice-list-row>strong{text-align:left}.invoice-actions{justify-content:flex-start;grid-column:1/-1}.invoice-editor-bottom{grid-template-columns:1fr}}@media(max-width:600px){.invoice-context{align-items:flex-start;flex-direction:column}.saas-line{grid-template-columns:1fr 1fr}.saas-line .line-desc{grid-column:1/-1}.line-total{align-self:center}.remove-saas-line{grid-column:2}.line-items-head .btn{display:none}.add-line-mobile{display:block;width:100%;border:1px dashed var(--line);background:#fff;color:var(--blue);padding:11px;border-radius:9px;margin-top:10px;font-weight:800}.editor-actions{flex-direction:column}.invoice-list-row{grid-template-columns:1fr}.invoice-list-row>strong{text-align:left}}
.official-validation-card{max-width:980px;margin:28px auto;padding:28px;border:1px solid #dfe5ec;border-radius:20px;background:#fff;display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}.official-validation-card h2{margin:5px 0 8px}.official-validation-card p{margin:0;color:#5f6b78;max-width:720px}.official-status{display:flex;gap:8px;align-items:center;justify-content:flex-end}.official-validation-card .btn{grid-column:2}.official-validation-card #officialResult{grid-column:1/-1}.official-result{padding:18px;border-radius:14px;background:#f6f8fa}.official-result.pass{border:1px solid #a9dfc1}.official-result.fail{border:1px solid #efb5b5}.official-result ul{margin:10px 0 0;padding-left:20px}@media(max-width:760px){.official-validation-card{grid-template-columns:1fr}.official-validation-card .btn{grid-column:1}.official-status{justify-content:flex-start}}

/* V5.6 launch polish */
.launch-banner{display:flex;align-items:center;justify-content:space-between;gap:25px;background:linear-gradient(135deg,#f4f8fd,#edf5ff);border:1px solid #d8e7f8;border-radius:16px;padding:22px 24px;margin-bottom:12px}.launch-banner .eyebrow{margin-bottom:6px}.launch-banner h2{font-size:18px;margin:0 0 4px}.launch-banner p{margin:0;color:var(--muted);font-size:11px}.setup-progress{width:68px;height:68px;border-radius:50%;background:#fff;border:1px solid #d8e7f8;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 auto}.setup-progress strong{font-size:18px}.setup-progress span{font-size:7px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted)}.setup-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}.setup-step{display:grid;grid-template-columns:30px 1fr auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff}.setup-step:hover{border-color:#b9cce3;box-shadow:0 8px 20px rgba(20,48,86,.06)}.setup-step i{font-style:normal;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#edf5ff;color:var(--blue);font-size:10px;font-weight:900}.setup-step.done i{background:#e3f4eb;color:var(--green)}.setup-step b,.setup-step span{display:block}.setup-step b{font-size:10px}.setup-step span{font-size:8px;color:var(--muted);margin-top:2px}.setup-step em{font-style:normal;color:#91a1b6}.future-validation{max-width:980px;margin:24px auto;display:flex;gap:13px;align-items:flex-start;padding:15px 17px;border:1px solid var(--line);border-radius:12px;background:#f8fafd}.future-validation>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#edf5ff;color:var(--blue);flex:0 0 auto}.future-validation b{font-size:11px}.future-validation p{font-size:10px;color:var(--muted);margin:3px 0 0}@media(max-width:760px){.setup-grid{grid-template-columns:1fr}.launch-banner{align-items:flex-start}.setup-progress{width:58px;height:58px}}

/* V5.7 professional invoice workspace */
.invoice-workbench{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr);gap:18px;align-items:start;margin-bottom:18px}.invoice-workbench>.panel{margin-bottom:0}.invoice-preview-panel{position:sticky;top:86px}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 2px 10px}.preview-toolbar span{font-size:8px;letter-spacing:1.2px;color:#8b98a9;font-weight:800}.preview-toolbar b{font-size:10px;color:#607087}.invoice-paper{background:#fff;border:1px solid var(--line);border-radius:15px;padding:24px;box-shadow:0 18px 45px rgba(20,48,86,.08);min-height:430px}.paper-top{display:flex;justify-content:space-between;gap:18px;padding-bottom:20px;border-bottom:1px solid #eaf0f6}.paper-top>div:first-child{display:flex;gap:9px;align-items:center}.paper-brand{width:28px;height:28px;border-radius:8px;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:900}.paper-top small,.paper-meta small{display:block;font-size:7px;letter-spacing:.9px;color:#93a0b0}.paper-top b,.paper-meta b{display:block;font-size:10px;margin-top:3px}.paper-title{text-align:right}.paper-title strong,.paper-title span{display:block}.paper-title strong{font-size:14px;letter-spacing:.8px}.paper-title span{font-size:9px;color:var(--muted);margin-top:4px}.paper-meta{display:grid;grid-template-columns:1fr auto;gap:18px;padding:20px 0}.paper-meta>div:last-child{text-align:right}.paper-lines{border-top:1px solid #edf2f7;border-bottom:1px solid #edf2f7;min-height:90px}.paper-line{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid #f0f3f7;font-size:9px}.paper-line:last-child{border-bottom:0}.paper-line b,.paper-line small{display:block}.paper-line small{color:var(--muted);margin-top:3px}.paper-line strong{white-space:nowrap}.paper-empty{padding:32px 0;text-align:center;color:#9aa7b6;font-size:9px}.paper-summary{width:72%;margin:18px 0 0 auto}.paper-summary>div{display:flex;justify-content:space-between;padding:4px 0;font-size:9px}.paper-grand{border-top:1px solid var(--line);margin-top:5px;padding-top:9px!important}.paper-grand strong{font-size:13px}.paper-foot{display:flex;justify-content:space-between;border-top:1px solid #edf2f7;margin-top:28px;padding-top:12px;color:#9aa7b6;font-size:7px;text-transform:uppercase;letter-spacing:.7px}.preview-note{margin-top:10px;padding:11px 13px;border-radius:10px;background:#eef8f3;color:#4e7564;font-size:9px;line-height:1.5}.invoice-editor .stack-form{margin-top:10px}.invoice-editor .panel-head{padding-bottom:14px;border-bottom:1px solid #edf2f7}.invoice-list-row{transition:background .15s ease}.invoice-list-row:hover{background:#fbfcfe}.invoice-actions a,.invoice-actions button{padding:5px 6px;border-radius:6px}.invoice-actions a:hover,.invoice-actions button:hover{background:#edf5ff}.invoice-actions .danger-text:hover{background:#fff1f1}.status{font-weight:700}.app-main>.panel{box-shadow:0 8px 28px rgba(20,48,86,.035)}
@media(max-width:1040px){.invoice-workbench{grid-template-columns:1fr}.invoice-preview-panel{position:static}.invoice-paper{min-height:0}.paper-summary{width:min(320px,100%)}}
@media(max-width:600px){.invoice-paper{padding:18px}.paper-meta{grid-template-columns:1fr}.paper-meta>div:last-child{text-align:left}.paper-summary{width:100%}}

/* V5.8 professional dashboard, customers and business */
.stat-grid-four{grid-template-columns:repeat(4,1fr)}.money-stat{font-size:21px!important;margin-top:11px!important}.dashboard-panel .panel-head{align-items:flex-start}.dashboard-panel .panel-head p,.customer-list-card .panel-head p{margin:4px 0 0;color:var(--muted);font-size:9px}.rich-empty{padding:45px 20px}.rich-empty p{max-width:420px;margin:7px auto 16px;line-height:1.6}.empty-icon{width:42px;height:42px;margin:0 auto 12px;border-radius:12px;display:grid;place-items:center;background:#edf5ff;color:var(--blue);font-size:17px}.invoice-dashboard-head,.invoice-dashboard-row{display:grid;grid-template-columns:1.15fr 1.25fr .75fr .7fr .8fr;gap:14px;align-items:center}.invoice-dashboard-head{padding:7px 8px 10px;color:#8b98a9;font-size:8px;letter-spacing:.7px;text-transform:uppercase;font-weight:800}.invoice-dashboard-row{padding:13px 8px;border-top:1px solid #edf2f7;font-size:10px;color:var(--ink);transition:.15s}.invoice-dashboard-row:hover{background:#f8fbff}.invoice-dashboard-row b,.invoice-dashboard-row small{display:block}.invoice-dashboard-row small{font-size:8px;color:var(--muted);margin-top:2px}.invoice-dashboard-row>strong{text-align:right}.status-pill{display:inline-block;font-style:normal;border-radius:20px;padding:5px 8px;background:#fff5dd;color:#936b13;font-size:8px;font-weight:800;text-transform:capitalize}.status-pill.sent,.status-pill.paid,.status-pill.valid{background:#e9f7ef;color:#347154}.dashboard-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dashboard-shortcuts>a{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:#fff}.dashboard-shortcuts>a:hover{border-color:#b9cce3;box-shadow:0 8px 20px rgba(20,48,86,.05)}.dashboard-shortcuts>a>span{width:36px;height:36px;border-radius:10px;background:#edf5ff;color:var(--blue);display:grid;place-items:center}.dashboard-shortcuts b,.dashboard-shortcuts small{display:block}.dashboard-shortcuts b{font-size:11px}.dashboard-shortcuts small{font-size:9px;color:var(--muted);margin-top:3px}.dashboard-shortcuts em{font-style:normal;color:#91a1b6}.count-badge{border:1px solid var(--line);border-radius:20px;padding:7px 11px;color:var(--muted);font-size:9px}.customers-layout{grid-template-columns:.82fr 1.18fr}.section-kicker{font-size:8px;letter-spacing:1px;color:var(--blue);font-weight:900;margin-bottom:6px}.panel-copy{font-size:10px;color:var(--muted);line-height:1.55;margin:-10px 0 2px}.form-actions{display:flex;gap:9px}.ghost-btn{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important}.customer-list{display:flex;flex-direction:column}.customer-card{display:grid;grid-template-columns:38px 1fr auto auto;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #edf2f7}.customer-card:first-child{border-top:0}.customer-avatar{width:36px;height:36px;border-radius:10px;background:#edf5ff;color:var(--blue);display:grid;place-items:center;font-weight:900}.customer-info b,.customer-info span,.customer-info small{display:block}.customer-info b{font-size:11px}.customer-info span,.customer-info small{font-size:8px;color:var(--muted);margin-top:2px}.customer-meta{text-align:center;min-width:54px}.customer-meta strong,.customer-meta span{display:block}.customer-meta strong{font-size:13px}.customer-meta span{font-size:7px;color:var(--muted)}.row-actions{display:flex;align-items:center;gap:6px}.row-actions>a{font-size:8px;font-weight:800;color:var(--blue);padding:6px}.row-actions form{margin:0}.profile-completion{text-align:right;border:1px solid var(--line);border-radius:12px;padding:9px 13px;background:#fff}.profile-completion strong,.profile-completion span{display:block}.profile-completion strong{font-size:16px}.profile-completion span{font-size:7px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}.business-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}.business-section{margin-bottom:14px}.section-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px}.section-title>span{width:28px;height:28px;border-radius:50%;background:#edf5ff;color:var(--blue);display:grid;place-items:center;font-size:9px;font-weight:900;flex:0 0 auto}.section-title h2{margin:1px 0 3px}.section-title p{margin:0;color:var(--muted);font-size:9px}.business-preview{position:sticky;top:86px}.business-preview .panel{margin:0}.business-card{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:13px;background:#f9fbfd}.business-logo{width:38px;height:38px;border-radius:10px;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:900;margin-bottom:13px}.business-card b,.business-card span,.business-card small{display:block}.business-card b{font-size:12px;margin-bottom:6px}.business-card span{font-size:9px;color:var(--muted);line-height:1.6}.business-card small{font-size:8px;margin-top:10px;color:#607087}.profile-hint{margin-top:12px;padding:11px;border-radius:9px;background:#eef8f3;color:#4e7564;font-size:8px;line-height:1.5}.save-business{margin-bottom:20px}
@media(max-width:1050px){.stat-grid-four{grid-template-columns:repeat(2,1fr)}.business-grid{grid-template-columns:1fr}.business-preview{position:static}.business-preview .panel{max-width:none}}@media(max-width:850px){.customers-layout{grid-template-columns:1fr}.invoice-dashboard-head{display:none}.invoice-dashboard-row{grid-template-columns:1fr 1fr}.invoice-dashboard-row>strong{text-align:left}.dashboard-shortcuts{grid-template-columns:1fr}}@media(max-width:600px){.stat-grid-four{grid-template-columns:1fr}.invoice-dashboard-row{grid-template-columns:1fr}.customer-card{grid-template-columns:38px 1fr}.customer-meta{display:none}.row-actions{grid-column:2}.profile-completion{text-align:left}.form-actions{flex-direction:column}}

/* V5.9 invoice workflow */
.workflow-success{display:flex;align-items:center;justify-content:space-between;gap:16px}.workflow-actions{display:flex;gap:7px;flex-wrap:wrap}.workflow-actions a{font-size:9px;font-weight:800;color:var(--blue);background:#fff;border:1px solid #cfe0d6;border-radius:8px;padding:7px 9px}.workflow-gate{display:grid;grid-template-columns:34px 1fr auto;gap:13px;align-items:center;border:1px solid #dbe7f4;background:#f8fbff;border-radius:13px;padding:13px 15px;margin:0 0 10px}.workflow-gate>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:var(--blue);font-size:10px;font-weight:900}.workflow-gate b{font-size:10px}.workflow-gate p{font-size:9px;color:var(--muted);margin:3px 0 0}.invoice-library .panel-head p{font-size:9px;color:var(--muted);margin:4px 0 0}.invoice-list-head,.invoice-list-row{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(110px,.75fr) minmax(90px,.55fr) minmax(280px,1.5fr);gap:12px;align-items:center}.invoice-list-head{padding:7px 8px 10px;color:#8b98a9;font-size:8px;letter-spacing:.65px;text-transform:uppercase;font-weight:800}.invoice-list-row{padding:13px 8px;border-top:1px solid #edf2f7}.invoice-list-row>strong{text-align:right}.invoice-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px;flex-wrap:wrap}.invoice-actions form{margin:0}.invoice-actions a,.invoice-actions button{font-size:8px;font-weight:800;border:0;background:transparent;color:var(--blue);cursor:pointer}.invoice-actions .danger-text{color:#b74b4b}.invoice-list-row .status-pill{justify-self:start}.editor-actions{position:sticky;bottom:0;background:rgba(255,255,255,.96);border-top:1px solid #edf2f7;padding:12px 0 2px;z-index:2}
@media(max-width:900px){.invoice-list-head{display:none}.invoice-list-row{grid-template-columns:1fr auto}.invoice-actions{grid-column:1/-1;justify-content:flex-start}.invoice-list-row>strong{text-align:right}.workflow-success{align-items:flex-start;flex-direction:column}.workflow-gate{grid-template-columns:34px 1fr}.workflow-gate>a{grid-column:2;justify-self:start}}
