:root{--ink:#15263b;--muted:#52657d;--faint:#65758a;--line:#dce5ee;--bg:#f2f6fa;--nav:#0c1728;--blue:#2358ea;--navy:#0e2340;--green:#35edc2;--radius:17px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}[hidden]{display:none!important}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7599ff;outline-offset:2px}p,h1,h2{margin:0}.shell{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100svh}.sidebar{background:var(--nav);color:#d2def0;display:flex;flex-direction:column;padding:28px 17px 19px;position:sticky;top:0;height:100svh}.brand{display:flex;align-items:center;gap:9px;color:#fff;font-size:21px;font-weight:750;letter-spacing:-.9px;white-space:nowrap;margin:0 0 42px 3px}.brand b{font-size:13px;color:#45efcd;letter-spacing:.1px}.brand small{display:block;font-size:8px;font-weight:750;letter-spacing:1.3px;color:#9bacc0;margin-top:1px}.brand-mark{width:38px;height:38px;border-radius:11px;background:#091222;overflow:hidden;display:inline-block;position:relative;border:1px solid #27415e;flex-shrink:0}.brand-mark img{position:absolute;width:60px;height:60px;left:-11px;top:-9px}.side-label{margin:0 0 10px 12px;color:#a4b5c9;text-transform:uppercase;font-size:10px;letter-spacing:1.5px;font-weight:800}.nav-btn{display:flex;align-items:center;gap:10px;border:1px solid transparent;background:none;color:#b9c8da;padding:11px 10px;width:100%;border-radius:9px;text-align:left;margin-bottom:5px;font-size:13px;font-weight:650;min-height:43px}.nav-btn:hover,.nav-btn.selected{color:#fff;background:#192b47;border-color:#263f62}.nav-btn.selected .icon{color:#64e7d1}.sidebar-bottom{margin-top:auto;border-top:1px solid #263953;padding:17px 5px 0;font-size:12px}.sidebar-bottom small{color:#9bacc0}.side-preview{display:flex;align-items:center;gap:8px;font-weight:700;margin-bottom:5px}.dot{width:7px;height:7px;display:inline-block;background:#3be4b8;border-radius:50%;flex:0 0 auto}
main{min-width:0}.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3vw,46px)}.breadcrumb,.top-actions{display:flex;align-items:center;gap:12px}.breadcrumb{font-size:13px;color:var(--muted)}.breadcrumb strong{color:var(--ink)}.language{display:flex;background:#f0f4f8;border:1px solid #e0e8f1;border-radius:8px;padding:3px}.language button{border:0;background:transparent;color:var(--muted);border-radius:5px;font-size:11px;font-weight:800;padding:5px 9px;min-height:27px}.language button[aria-pressed=true]{background:#fff;color:#163a9e;box-shadow:0 1px 4px #213b6522}.avatar{display:grid;place-items:center;background:#e5eefc;color:#1e43a1;font-weight:800;border-radius:10px;width:34px;height:34px;font-size:11px}.content{max-width:1360px;margin:auto;padding:25px clamp(18px,3vw,46px) 0}.hero{position:relative;isolation:isolate;display:flex;min-height:245px;overflow:hidden;border-radius:20px;background:linear-gradient(110deg,#101c31 24%,#102746 78%,#113958);color:white;box-shadow:0 12px 30px #132b4a17;border:1px solid #17304d}.hero-copy{position:relative;z-index:1;padding:29px 33px 27px;max-width:690px}.eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:800;letter-spacing:1.65px;text-transform:uppercase;color:#7ce9d1}.hero h1{font-size:clamp(35px,4.1vw,61px);line-height:1.02;letter-spacing:-.063em;margin:13px 0 11px;max-width:650px}.hero p{color:#c5d7ec;font-size:14px;line-height:1.55;max-width:430px}.hero-art{position:absolute;right:-4px;top:0;bottom:0;width:43%;overflow:hidden;background:radial-gradient(ellipse at 60% 54%,#1a7f9b4d,transparent 59%),repeating-linear-gradient(90deg,transparent 0 29px,#80dfff0e 30px),repeating-linear-gradient(0deg,transparent 0 29px,#80dfff0e 30px);mask-image:linear-gradient(90deg,transparent,#000 26%)}.orbit{position:absolute;left:57%;top:52%;border:1px solid #70cde971;border-radius:50%;transform:translate(-50%,-50%) rotate(-28deg);width:79%;height:49%}.orbit.two{width:89%;height:62%;border-color:#61f5d14a;transform:translate(-50%,-50%) rotate(25deg)}.orbit.three{width:60%;height:62%;border-color:#508af576;transform:translate(-50%,-50%) rotate(67deg)}.orb{position:absolute;left:58%;top:52%;width:118px;height:118px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 36% 28%,#86ffe6,#1e9bba 25%,#123b83 54%,#101c3b 71%);box-shadow:0 0 37px #4be5dc5f,inset 0 0 16px #82f8e77d}.art-node{position:absolute;width:7px;height:7px;background:#76f8da;border-radius:50%;box-shadow:0 0 12px #9effef}.art-node.a{top:27%;left:77%}.art-node.b{top:69%;left:33%;background:#6c9fff}.art-node.c{top:74%;left:84%}.signal{position:absolute;bottom:16px;right:24px;display:flex;align-items:center;gap:3px;height:25px}.signal i{height:8px;width:2px;background:#70f5db;border-radius:4px}.signal i:nth-child(3n){height:21px}.signal i:nth-child(even){height:13px}.signal i:nth-child(5){height:26px}
.btn{border:1px solid transparent;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;font-size:12px;font-weight:750;white-space:nowrap}.btn:hover:not(:disabled){filter:brightness(.94)}.btn.ghost{margin-top:17px;color:#eefaff;background:#203954;border-color:#486b89}.btn.primary{color:#fff;background:var(--blue);box-shadow:0 2px 5px #183ac635}.btn.secondary{color:#334d69;border-color:#cedbea;background:#fff}.btn.dark{color:#fff;background:var(--navy)}.icon{width:17px;height:17px;display:inline-flex;flex-shrink:0}.icon svg{width:100%;height:100%}
.workflow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.13fr);gap:17px;margin-top:19px;align-items:stretch}.panel{min-width:0;border:1px solid var(--line);background:#fff;border-radius:var(--radius);box-shadow:0 4px 16px #192f5008}.panel-head{display:flex;align-items:flex-start;gap:11px;padding:18px 17px 14px;min-height:77px}.panel-head h2{font-size:17px;letter-spacing:-.35px}.panel-head p{margin-top:3px;font-size:12px;line-height:1.4;color:var(--muted)}.number{display:grid;place-items:center;flex:0 0 33px;height:33px;border-radius:9px;background:#e9efff;color:#2b53bf;font-size:12px;font-weight:850}.number.mint{background:#dbf7f0;color:#176f60}.form-body{padding:0 17px 13px}.record{display:flex;align-items:center;gap:10px;border:1px solid #d8e7f7;background:#f1f7ff;padding:9px 10px;border-radius:10px;margin-bottom:12px}.record-icon{width:32px;height:32px;padding:7px;border-radius:8px;background:#e0eaff;color:#294eb1}.record strong,.record small{display:block}.record strong{font-size:12px}.record small{font-size:11px;color:var(--muted);margin-top:2px}.record-btn{margin-left:auto;background:#fff;border-color:#c6d8ef;color:#234579;min-height:34px;padding:5px 10px}.record-btn.live{color:#9c2336;border-color:#f0b4bd;background:#fff4f6}audio{width:100%;height:35px;margin-bottom:10px}
label{display:block;color:#263c56;font-size:11px;font-weight:800;margin-bottom:5px}input,textarea,select{width:100%;border:1px solid #cddbea;background:#fcfdff;border-radius:8px;padding:8px 9px;color:var(--ink);font-size:13px}input,select{min-height:38px}textarea{line-height:1.5;resize:vertical;min-height:77px}input::placeholder,textarea::placeholder{color:#63778e}#client{margin-bottom:10px}.form-footer{display:flex;align-items:end;justify-content:space-between;gap:8px;margin-top:9px}.form-footer select{min-width:118px}.microcopy{font-size:11px;line-height:1.4;color:var(--muted);margin-top:10px}
.result-panel{display:flex;flex-direction:column}.pill{margin-left:auto;flex-shrink:0;color:#3f5870;background:#eaf1f7;border-radius:99px;padding:5px 8px;font-size:10px;font-weight:800}.pill.ready{color:#176150;background:#dff6ef}.tabs{display:flex;gap:4px;margin:0 17px;border-bottom:1px solid var(--line)}.tabs button{display:flex;align-items:center;gap:6px;border:0;border-bottom:2px solid transparent;color:var(--muted);background:none;padding:9px 9px 8px;font-size:12px;font-weight:750}.tabs button.active{border-color:var(--blue);color:#1c49cc}.document{flex:1;display:flex;flex-direction:column;min-height:227px;padding:12px 17px}.empty{display:grid;place-items:center;text-align:center;flex:1;background:linear-gradient(150deg,#f9fcff,#f1f6fc);border:1px dashed #c8d7e8;border-radius:10px;padding:18px;color:var(--muted)}.empty .icon{padding:10px;width:45px;height:45px;margin-bottom:8px;border-radius:13px;background:#e4edfd;color:#3157aa}.empty strong{display:block;color:#253c59;margin:0 0 5px;font-size:14px}.empty p{font-size:12px;line-height:1.4;max-width:265px;margin:auto}.result-footer{border-top:1px solid #e5ecf4;display:flex;justify-content:flex-end;gap:7px;padding:10px 17px 12px}.doc-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.doc-grid textarea{min-height:65px;padding:7px;font-size:12px}.line-row,.line-header{display:grid;grid-template-columns:minmax(0,2fr) minmax(48px,.55fr) minmax(74px,.75fr) 30px;gap:5px;margin-bottom:6px;align-items:center}.line-header{font-size:10px;color:var(--muted);font-weight:750}.line-row input{min-height:35px;font-size:12px;padding:5px}.line-row button{background:#fff;border:1px solid #dce4ee;border-radius:7px;height:31px;color:#8d2b41}.line-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}.line-bottom strong{font-size:13px}.currency-info{margin:9px 0 0;font-size:11px;color:var(--muted)}
.foot{display:flex;justify-content:space-between;gap:12px;padding:15px 0 16px;color:var(--muted);font-size:10px}.foot>span:first-child{display:flex;gap:6px;align-items:center}.foot .dot{background:#2eb697}.foot>span:last-child{letter-spacing:1px;font-weight:800}.foot b{margin:0 2px}
.history-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:15px 0 22px}.history-head .eyebrow{color:#236f64}.history-head h1{font-size:40px;letter-spacing:-1.9px}.history-head p{color:var(--muted);font-size:14px;margin-top:5px}#history-list{padding:13px 17px}.history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.history-row:last-child{border-bottom:0}.history-row strong,.history-row small{display:block;overflow-wrap:anywhere}.history-row small{color:var(--muted);margin-top:3px}.history-empty{padding:17px 0;color:var(--muted);font-size:14px}.history-row button{flex:none}#toast{position:fixed;z-index:4;bottom:18px;right:20px;max-width:min(370px,calc(100% - 40px));background:#132843;color:#fff;box-shadow:0 8px 27px #0b20304d;border-radius:10px;padding:11px 15px;font-size:13px}#toast:empty{display:none}
@media(max-width:1020px){.shell{grid-template-columns:179px minmax(0,1fr)}.sidebar{padding-inline:11px}.hero-art{width:39%;opacity:.75}}
@media(max-width:820px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:10px 17px;flex-direction:row;justify-content:space-between;align-items:center;gap:12px}.brand{margin:0}.brand-mark{width:31px;height:31px}.brand-mark img{width:50px;height:50px;left:-9px;top:-8px}.brand small{font-size:7px}.sidebar nav{display:flex;gap:5px}.nav-btn{width:auto;margin:0;padding:7px 8px;min-height:36px;font-size:12px}.side-label,.sidebar-bottom{display:none}.topbar{height:49px}.content{padding-top:15px}}
@media(max-width:640px){.workflow{grid-template-columns:1fr;gap:12px;margin-top:12px}.hero{min-height:0;border-radius:14px}.hero-copy{padding:21px 17px}.hero h1{font-size:clamp(34px,9vw,51px);max-width:430px}.hero-art{width:48%;opacity:.3}.hero p{font-size:13px}.content{padding-inline:12px}.topbar{padding-inline:12px}.sidebar{padding-inline:10px}.brand{font-size:18px;gap:5px}.nav-btn .icon{width:14px;height:14px}.foot>span:last-child{display:none}.history-head h1{font-size:32px}}
@media(max-width:365px){.nav-btn .icon{display:none}.sidebar{gap:5px}.form-footer .btn{padding-inline:8px}.pill{font-size:9px}.doc-grid{grid-template-columns:1fr}.line-header,.line-row{grid-template-columns:minmax(0,1fr) 42px 63px 26px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{body{background:#fff;color:#14253a}.shell,#toast{display:none!important}#print-sheet:not([hidden]){display:block!important;margin:16mm;font:12pt system-ui}#print-sheet h1{margin-bottom:10px;font-size:28pt}#print-sheet h2{font-size:13pt;margin:16px 0 5px}#print-sheet p{white-space:pre-wrap}#print-sheet table{border-collapse:collapse;width:100%;margin-top:14px}#print-sheet td,#print-sheet th{border-bottom:1px solid #c6d0da;text-align:left;padding:7px;overflow-wrap:anywhere}#print-sheet .print-total{text-align:right;font-weight:bold;margin-top:12px}}

.brand-mark img{clip-path:inset(0 0 35% 0)}
@media(max-width:820px){.shell{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.sidebar{gap:6px}.nav-btn{min-height:44px;padding-inline:6px}.breadcrumb,.top-actions{gap:6px}.breadcrumb>span{display:none}.hero-copy{padding-block:18px}.hero .btn{white-space:normal;text-align:left}.history-head{align-items:flex-start;flex-wrap:wrap}.form-footer .btn{white-space:normal}.btn{min-height:44px}input,textarea,select,.doc-grid textarea,.line-row input{font-size:16px}}
@media(max-width:380px){.brand{font-size:16px}.nav-btn .icon{display:none}.doc-grid{grid-template-columns:1fr}}
