:root{--ink:#172129;--muted:#64727a;--line:#dce2e3;--paper:#ffffff;--wash:#f3f6f5;--teal:#0b6b61;--teal-dark:#074b45;--teal-pale:#dff2ed;--amber:#9b6113;--amber-pale:#fff4da;--red:#9d3434;--red-pale:#fff0ee;--shadow:0 16px 40px rgba(23,33,41,0.08)}*{box-sizing:border-box}html{background:var(--wash);color:var(--ink)}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.topbar{height:72px;padding:0 clamp(24px,5vw,72px);justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(255,255,255,.9);position:-webkit-sticky;position:sticky;top:0;z-index:20;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand,.topbar{display:flex;align-items:center}.brand{gap:12px}.brandMark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:white;background:var(--teal);font-weight:800;letter-spacing:-.04em}.brand b,.brand small{display:block}.brand small{color:var(--muted);margin-top:1px;font-size:11px}nav{gap:24px;font-size:14px;font-weight:650}.userMenu,nav{display:flex;align-items:center}.userMenu{gap:8px;padding-left:8px;border-left:1px solid var(--line)}.userAvatar{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:var(--teal-pale);color:var(--teal-dark);font-size:12px;font-weight:850}.userName{font-size:12px;max-width:120px;overflow:hidden;text-overflow:ellipsis}.logoutButton{border:0;background:transparent;color:var(--muted);font-size:11px;padding:4px}.logoutButton:hover{color:var(--red)}.page{max-width:1380px;margin:auto;padding:44px clamp(22px,5vw,72px) 80px}.page.narrow{max-width:1120px}.hero{display:flex;justify-content:space-between;align-items:flex-end;min-height:230px;padding:38px 0}.hero.compact{min-height:190px}.hero h1,.resultHero h1,.reviewHeader h1{margin:4px 0 12px;font-size:clamp(36px,5vw,62px);letter-spacing:-.045em;line-height:1.02;max-width:820px}.hero p:not(.eyebrow),.resultHero p:not(.eyebrow){color:var(--muted);max-width:650px;font-size:17px;line-height:1.6}.eyebrow{text-transform:uppercase;color:var(--teal);font-size:12px;font-weight:800;letter-spacing:.14em;margin:0 0 12px}.eyebrowRow{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.eyebrowRow .eyebrow{margin-bottom:0}.aiBadge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;background:#e8ecec;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.02em;text-transform:none}.aiBadge i{width:7px;height:7px;border-radius:99px;background:#98a4a8}.aiBadge.active{background:var(--teal-pale);color:var(--teal-dark)}.aiBadge.active i{background:#10a28e;box-shadow:0 0 0 3px rgba(16,162,142,.14)}.button{border:0;border-radius:10px;color:white;background:var(--teal);padding:13px 18px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 14px rgba(11,107,97,.16);transition:.18s ease}.button:hover{background:var(--teal-dark);transform:translateY(-1px)}.button:disabled{opacity:.45;cursor:not-allowed;transform:none}.button.small{padding:9px 14px}.button.ghost{color:var(--ink);box-shadow:none}.button.ghost,.panel{background:var(--paper);border:1px solid var(--line)}.panel{border-radius:16px;box-shadow:var(--shadow);overflow:hidden}.panelHeader{min-height:78px;display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}.panelHeader h2{margin:0 0 2px}.muted{color:var(--muted);font-size:13px}.search{width:min(410px,46vw);background:var(--wash)}input,output.totalOutput,select,textarea{width:100%;border:1px solid #cbd4d5;border-radius:9px;padding:10px 11px;background:white;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-pale)}textarea{resize:vertical;line-height:1.5}.tableWrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.09em;padding:13px 22px;background:#fafbfb}td{padding:18px 22px;border-top:1px solid #edf0f0}td small{display:block;color:var(--muted);margin-top:4px}.status{display:inline-flex;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:750;background:#e9edef}.status.Generated,.status.Ready{background:var(--teal-pale);color:var(--teal-dark)}.status.NeedsReview{background:var(--amber-pale);color:var(--amber)}.status.Failed{background:var(--red-pale);color:var(--red)}.textButton,.textLink{color:var(--teal);font-weight:750;border:0;background:none;padding:4px}.empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:8px}.formPanel{padding:clamp(24px,4vw,48px)}.aiNotice{display:flex;gap:13px;align-items:center;padding:14px 16px;margin-bottom:34px;border-radius:12px;border:1px solid #d6dddd;background:#f3f5f5;color:var(--muted)}.aiNotice.active{border-color:#addbd1;background:var(--teal-pale);color:var(--teal-dark)}.aiNotice b,.aiNotice p{display:block;margin:0}.aiNotice p{font-size:12px;margin-top:3px;line-height:1.45}.aiOrb{flex:0 0 auto;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#d9dede;color:#667477;font-size:10px;font-weight:900}.aiNotice.active .aiOrb{background:var(--teal);color:white}.step{display:flex;gap:16px;align-items:flex-start;margin:4px 0 22px}.sectionTitle>div>span,.step>span{color:var(--teal);font-weight:850;font-size:12px;letter-spacing:.08em;padding-top:5px}.step h2,.step p{margin:0}.step p{color:var(--muted);margin-top:5px}.dropzone{width:100%;min-height:205px;border:1.5px dashed #9fb4b0;border-radius:14px;background:#f7fbfa;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:46px;color:var(--ink)}.dropzone:hover{border-color:var(--teal);background:var(--teal-pale)}.dropzone small{color:var(--muted);margin-top:8px}.uploadIcon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--teal);color:white;font-size:24px;margin-bottom:14px}.grid{display:grid;grid-gap:18px;gap:18px;margin-bottom:20px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}label{display:block;font-size:13px;font-weight:700}label>input,label>select,label>textarea{margin-top:7px;font-weight:500}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.alert{border-radius:11px;padding:15px 17px;font-size:13px;line-height:1.5}.alert ul{margin:8px 0 0;padding-left:19px}.alert.danger{background:var(--red-pale);color:var(--red);border:1px solid #f1c8c3}.alert.warning{background:var(--amber-pale);color:#724405;border:1px solid #efd9a8}.reviewPage{max-width:1600px;margin:auto;padding:30px clamp(20px,4vw,60px) 80px}.reviewHeader{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:28px}.reviewHeader h1{font-size:clamp(30px,4vw,48px);margin-bottom:0}.reviewSplit{display:grid;grid-template-columns:290px minmax(0,1fr);grid-gap:22px;gap:22px;align-items:flex-start}.documents{position:-webkit-sticky;position:sticky;top:94px;border-radius:14px;background:#18272a;color:white;padding:20px;min-height:560px}.asideTitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.asideTitle h2{margin:0}.asideTitle span{min-width:24px;height:24px;display:grid;place-items:center;border-radius:999px;background:#314244;font-size:12px}.documentCard{width:100%;display:flex;gap:11px;align-items:center;padding:13px 8px;border:0;border-top:1px solid #314244;background:transparent;color:white;text-align:left;border-radius:8px}.documentCard.active,.documentCard:hover{background:#223a3b}.documentCard b,.documentCard small{display:block;overflow:hidden;text-overflow:ellipsis;max-width:190px}.documentCard b{white-space:nowrap;font-size:12px}.documentCard small{color:#9caeaf;font-size:11px;margin-top:4px}.fileType{width:40px;height:46px;border-radius:6px;display:grid;place-items:center;background:#f1f5f4;color:var(--teal-dark);font-size:9px;font-weight:850}.legend{margin-top:28px;border-radius:10px;padding:14px;background:#223437;font-size:12px;line-height:1.5}.legend p{color:#aab8b8;margin-bottom:0}.sourcePreview{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:8px;background:white;margin-top:14px}.pdfPreview{height:320px;border:0}.reviewForm{min-width:0;display:grid;grid-gap:18px;gap:18px}.reviewAlerts{display:grid;grid-gap:10px;gap:10px}.formSection{border:1px solid var(--line);border-radius:14px;background:var(--paper);padding:22px;box-shadow:0 8px 24px rgba(23,33,41,.05)}.sectionTitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.sectionTitle>div{display:flex;gap:12px;align-items:center}.sectionTitle h2{margin:0;font-size:19px}.fieldLabel{display:flex;align-items:center;justify-content:space-between;min-height:18px}.confidence{font-style:normal;font-size:10px;color:var(--amber);background:var(--amber-pale);padding:3px 5px;border-radius:4px}.confidence.high{color:var(--teal-dark);background:var(--teal-pale)}.source{display:block;color:var(--muted);font-size:10px;line-height:1.4;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lineTable{overflow-x:auto}.lineHead,.lineRow{min-width:900px;display:grid;grid-template-columns:74px minmax(300px,1fr) 90px 90px 100px 105px 34px;grid-gap:8px;gap:8px;align-items:center}.lineHead{padding:0 2px 8px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.lineRow{border-top:1px solid #e8ecec;padding:10px 2px}.lineRow input{padding:9px}.productInputs{display:grid;grid-template-columns:120px minmax(160px,1fr);grid-gap:7px;gap:7px}.productInputs small{grid-column:1/-1;color:var(--muted);font-size:9px}.lineRow output{font-size:13px;font-weight:750;text-align:right;padding-right:5px}.remove{border:0;background:#f1f3f3;color:var(--muted);border-radius:7px;width:28px;height:28px;font-size:18px}.smallEmpty{min-height:100px}.totalOutput{min-height:41px;margin-top:7px;background:var(--wash)!important;font-size:16px;font-weight:850}.splitPreview,.totalOutput{display:flex;align-items:center}.splitPreview{justify-content:space-between;border-radius:9px;background:var(--teal-pale);color:var(--teal-dark);padding:12px 14px;font-size:13px}.resultHero{text-align:center;padding:60px 0 40px}.resultHero h1{font-size:clamp(36px,5vw,54px)}.resultHero h1,.resultHero p{margin-left:auto;margin-right:auto}.successMark{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:var(--teal);color:white;font-size:28px;margin:0 auto 18px}.outputGrid{display:grid;grid-gap:14px;gap:14px;margin-bottom:24px}.outputCard{display:grid;grid-template-columns:62px 1fr auto;align-items:center;grid-gap:18px;gap:18px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow)}.pdfBadge{width:58px;height:70px;display:grid;place-items:center;border-radius:7px;background:var(--red-pale);color:var(--red);font-weight:850;font-size:11px}.outputDetails small{color:var(--teal);font-weight:800;text-transform:uppercase;letter-spacing:.08em}.outputDetails h2{margin:5px 0 12px;font-size:18px}.summaryStrip{display:flex;flex-wrap:wrap;gap:16px;color:var(--muted);font-size:12px}.summaryStrip b{color:var(--ink)}.qaPanel{margin-top:24px}.qaRow{display:grid;grid-template-columns:12px 1.4fr repeat(3,1fr);grid-gap:12px;gap:12px;align-items:center;padding:16px 22px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.qaRow b{color:var(--ink)}.successDot{width:9px;height:9px;background:var(--teal);border-radius:99px}.resultActions{display:flex;justify-content:space-between;margin-top:26px}.inlineActions{margin:0}.dangerText{color:var(--red)}.loginPage{min-height:calc(100vh - 72px);display:grid;place-items:center;padding:40px 20px;background:radial-gradient(circle at 50% 0,#e5f4f0 0,var(--wash) 48%)}.loginCard{width:min(440px,100%);padding:38px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(23,33,41,.13)}.loginMark{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;margin-bottom:24px;color:white;background:var(--teal);font-size:18px;font-weight:850}.loginCard h1{margin:8px 0 10px;font-size:40px;letter-spacing:-.04em}.loginIntro{color:var(--muted);line-height:1.55;margin:0 0 28px}.loginCard form{display:grid;grid-gap:17px;gap:17px}.loginButton{width:100%;margin-top:4px}.loginPrivacy{display:block;margin-top:24px;color:var(--muted);text-align:center;line-height:1.45}@media (max-width:980px){.reviewSplit{grid-template-columns:1fr}.documents{position:static;min-height:auto}.grid.four,.grid.three{grid-template-columns:repeat(2,1fr)}.qaRow{grid-template-columns:12px 1fr}.qaRow span:not(.successDot){grid-column:2}}@media (max-width:680px){.topbar{padding:0 18px}.brand small,.logoutButton,.userName,nav>a:first-child{display:none}nav{gap:12px}.hero,.reviewHeader{display:block}.hero .button{margin-top:22px}.grid.four,.grid.three,.grid.two{grid-template-columns:1fr}.reviewHeader .actions{justify-content:stretch}.reviewHeader .button{flex:1 1}.outputCard{grid-template-columns:48px 1fr}.outputCard .button{grid-column:1/-1}.pdfBadge{width:46px;height:58px}}