@font-face{font-family:YekanBakh;src:url('/brand-body.ttf') format('truetype');font-weight:400 500;font-display:swap}
@font-face{font-family:YekanBakh;src:url('/brand-bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
@font-face{font-family:Peyda;src:url('/brand-heading.ttf') format('truetype');font-weight:600 900;font-display:swap}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f4f5f6;color:#1f1f27;font-family:YekanBakh,Tahoma,sans-serif;font-size:14px;line-height:1.9}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #315faa}a{color:#143468}svg{vertical-align:middle;flex-shrink:0}.layout{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:#000817;color:#eef1f6;padding:32px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;gap:32px}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none}.brand-icon{width:44px;height:44px;background:#253652;display:grid;place-items:center;border-radius:14px;color:#85a9e3}.brand strong{font-size:19px;display:block;line-height:1.5}.brand small{display:block;color:#9ca7ba;font-size:10px;margin-top:4px}.side-label{font-size:10px;letter-spacing:1px;color:#8d9aae;margin:6px 12px 10px}.nav-item{width:100%;padding:12px 14px;margin:5px 0;border:0;border-radius:11px;background:none;color:#aeb8c8;text-align:right;display:flex;gap:12px;align-items:center}.nav-item.active{background:#243550;color:#a1c0f1}.nav-item:hover{background:#243550}.nav-item .count{margin-right:auto;font-size:11px;background:#35435a;padding:0 7px;border-radius:5px}.sidebar-bottom{margin-top:auto;font-size:10px;line-height:1.9;color:#9ca8bb}.privacy-icon{margin-bottom:9px;color:#7ca0da}.sidebar-bottom strong{display:block;color:#d3dbe8;font-size:12px}.main-shell{min-width:0;padding:0 44px 42px}.topbar{height:98px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe2e6;margin-bottom:30px;gap:16px}.crumb{font-size:11px;color:#838891}.crumb strong{display:block;color:#24334a;font-size:15px}.actions,.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid #d7dae0;background:white;color:#28354a;border-radius:10px;padding:10px 17px;font-size:12px;min-height:43px;transition:background .15s,transform .15s}.btn:hover{background:#eceff3}.btn.primary{background:#035de2;border-color:#035de2;color:white}.btn.primary:hover{background:#0454d1}.btn.dark{background:#022b6b;border-color:#022b6b;color:white}.btn.ghost{background:transparent;border-color:transparent}.btn.danger{color:#a84237}.btn.small{padding:5px 10px;min-height:34px;font-size:11px}.icon-btn{border:0;background:transparent;color:inherit;font-size:23px;line-height:1;min-width:36px;min-height:36px;border-radius:7px}.icon-btn:hover{background:#edeff2}.heading-row{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}.eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;color:#5e697b;letter-spacing:.5px}.dot{width:7px;height:7px;border-radius:50%;background:#2357aa;display:inline-block}.heading-row h1{font-size:27px;line-height:1.6;letter-spacing:-.6px;margin:4px 0}.muted{color:#7f848d;font-size:11px}.heading-row p{margin:3px 0;font-size:12px;color:#787e89}.version{border:1px solid #d5d8de;border-radius:30px;padding:5px 13px;font-size:10px;color:#6b727e;white-space:nowrap;margin-top:14px}.steps{display:flex;background:white;border:1px solid #dfe2e6;border-radius:13px;padding:10px;margin-bottom:22px;overflow:auto}.step{border:0;background:none;flex:1;display:flex;align-items:center;justify-content:center;gap:8px;color:#9499a0;white-space:nowrap;padding:10px 8px;font-size:11px;border-radius:8px}.step em{width:24px;height:24px;border:1px solid #dcdfe4;border-radius:50%;font-style:normal;display:grid;place-items:center;font-size:11px}.step.current{color:#173668;background:#edf1f7;font-weight:bold}.step.current em{background:#035de2;color:white;border-color:#035de2}.step.done{color:#495e81}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.form-card{border:1px solid #dfe2e6;border-radius:17px;background:#fff;padding:28px;min-width:0;box-shadow:0 2px 4px #172f3903}.card-top{display:flex;gap:13px;align-items:center;margin-bottom:25px}.card-top .step-icon{width:43px;height:43px;background:#eff1f5;border-radius:12px;display:grid;place-items:center;color:#485b79}.card-top h2{font-size:17px;margin:0;line-height:1.8}.card-top p{margin:0;font-size:10px;color:#848991}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 18px}.field.full{grid-column:1/-1}.field label{display:block;color:#3b4351;font-size:11px;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;background:#fbfcfd;border:1px solid #d9dde3;border-radius:9px;min-height:45px;padding:9px 12px;color:#212c3e;font-size:12px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#617daa;outline:2px solid #e4eaf3}.field input.num{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}.field textarea{min-height:85px;resize:vertical}.field small{display:block;font-size:9px;color:#838890;margin-top:5px;line-height:1.7}.unit-input{position:relative}.unit-input input{padding-left:62px}.unit-input span{position:absolute;left:12px;top:12px;font-size:10px;color:#848a93}.section-divider{height:1px;background:#e9ebee;margin:24px 0}.mini-title{font-size:12px;margin:0 0 12px;display:flex;align-items:center;justify-content:space-between;gap:9px}.reference-panel{background:#f7f8fa;border-radius:10px;padding:16px;margin-top:22px}.reference-panel .label{font-size:10px;color:#707783}.price-chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:9px}.price-chip{flex:1;border:1px solid #dde1e8;background:#fff;padding:8px 11px;border-radius:8px;font-size:10px;display:flex;justify-content:space-between;gap:12px}.price-chip.selected{border-color:#8095b7;background:#ecf0f6;color:#243c64}.price-chip strong{font-size:13px}.form-footer{border-top:1px solid #e7eaee;margin-top:28px;padding-top:20px;display:flex;justify-content:space-between;gap:10px;align-items:center}.summary{border-radius:17px;overflow:hidden;background:#fff;border:1px solid #dfe2e6;position:sticky;top:20px}.summary-head{background:#022b6b;color:#d1d9e5;padding:23px}.summary-head .eyebrow{color:#a4afc2}.summary-head strong{display:block;font-size:25px;color:#fff;font-weight:600;margin-top:9px;direction:rtl}.summary-head .muted{color:#a6b2c6;margin-top:4px}.summary-body{padding:20px}.sum-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;margin:12px 0;color:#7a818d}.sum-row strong{color:#313c4d;font-size:11px;font-weight:500;white-space:nowrap}.summary-line{height:1px;background:#e5e8ec;margin:16px 0}.summary-total{font-size:20px;font-weight:600;color:#1d3d70;margin:3px 0}.summary .label{font-size:10px;color:#7f8691}.bar{height:9px;border-radius:12px;background:#e7e9ed;display:flex;overflow:hidden;margin:17px 0 8px}.bar i{display:block;background:#1f4075}.bar i+ i{background:#899bb8}.bar i+ i+i{background:#c8d1df}.legend{display:flex;justify-content:space-between;font-size:8px;color:#7f8692}.note{display:flex;align-items:flex-start;gap:9px;font-size:10px;line-height:1.9;color:#6d7480;background:#f2f4f8;padding:13px 14px;border-radius:8px;margin-top:17px}.note.warning{background:#fff7e9;color:#8b6837}.note.error{background:#fff0ed;color:#9b4237}.note.success{background:#eef1f7;color:#384e72}.note p{margin:0}.footer-note{margin-top:18px;display:flex;gap:6px;align-items:center;color:#8b9099;font-size:9px}.preset-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.preset-row button{flex:1}.table-wrap{overflow:auto;border:1px solid #e0e3e7;border-radius:10px;width:100%}table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}th{font-size:10px;color:#78808c;background:#f1f3f7;padding:11px 10px;font-weight:500;text-align:right}td{padding:10px;border-top:1px solid #e5e8ee;color:#344053}td input,td select{min-height:36px;border:1px solid #d8dde4;border-radius:6px;padding:5px 7px;background:white;color:#384559;font-size:11px;width:100%}.schedule-table td{padding:8px 5px}.schedule-table .percent{width:64px;direction:ltr}.schedule-table .date{width:137px;direction:ltr}.schedule-table .kind{width:94px}.schedule-table .label-col{width:95px}.schedule-table .cash{font-size:10px;white-space:nowrap}.table-total{background:#edf0f6;font-weight:600}.generator{background:#f6f8fa;border:1px dashed #d3d9e2;border-radius:10px;padding:15px;margin-top:18px}.generator .field-grid{grid-template-columns:1fr 1fr 1fr;gap:9px}.generator input{min-height:38px}.method-list{display:grid;gap:11px}.method-card{padding:15px;border:1px solid #dce0e7;border-radius:10px;cursor:pointer;display:flex;gap:12px;align-items:flex-start}.method-card.selected{background:#eff2f8;border-color:#879ab8}.method-card input{accent-color:#214379;margin-top:8px}.method-card strong{display:block;font-size:12px}.method-card small{display:block;font-size:10px;color:#7e848e;margin-top:2px}.status-pill{display:inline-block;font-size:9px;background:#edf0f5;color:#4c5e7a;padding:2px 8px;border-radius:20px}.status-pill.amber{background:#fff3df;color:#9a763a}.review-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:22px}.metric{padding:15px;background:#eff2f7;border-radius:10px}.metric span{font-size:9px;color:#798393;display:block}.metric strong{font-size:16px;color:#384964;display:block;margin-top:6px}.check-label{display:flex;gap:10px;align-items:flex-start;padding:13px;border:1px solid #d4dae3;border-radius:9px;font-size:11px;line-height:1.9;margin:20px 0;cursor:pointer}.check-label input{accent-color:#214379;margin-top:7px;width:17px;height:17px;flex-shrink:0}.diagnostics{margin-bottom:20px}.diagnostics .note{margin:8px 0}.draft-text{white-space:pre-wrap;background:#f8f9fb;padding:18px;border:1px solid #dde1e8;border-radius:9px;font-size:11px;color:#5e6776;max-height:350px;overflow:auto;line-height:2.3}.exports{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.exports .btn{flex:1}details{margin-top:17px;font-size:11px;color:#4c5b74}summary{cursor:pointer;padding:8px 0}.files-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px;margin-top:20px}.file-card{background:white;border:1px solid #d9dee6;border-radius:13px;padding:22px}.file-card h3{font-size:16px;margin:12px 0 8px}.file-card .money{font-size:19px;color:#28416a;margin:15px 0}.empty{padding:65px 25px;text-align:center;background:white;border:1px dashed #d5dae3;border-radius:15px;margin-top:25px}.empty .empty-icon{background:#e9eef5;width:62px;height:62px;border-radius:18px;margin:0 auto 20px;display:grid;place-items:center;color:#596a85}.empty h2{font-size:19px}.empty p{color:#858c97;font-size:12px;max-width:390px;margin:10px auto 25px}.files-search{width:100%;max-width:360px;border:1px solid #d5dae3;border-radius:9px;padding:10px 14px;background:#fff;font-size:12px}.page-bottom{margin:25px 0 0;display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#959aa3;gap:14px;flex-wrap:wrap}.text-btn{background:none;border:0;padding:0;color:#5c6d89;font-size:10px;cursor:pointer}.mobile-brand{display:none}.year-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);z-index:99;background:#14243d;color:#fff;border-radius:10px;padding:12px 22px;box-shadow:0 10px 30px #10291b25;max-width:90%;font-size:12px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{max-width:520px;width:92%;border:1px solid #d7dce5;border-radius:18px;padding:25px;box-shadow:0 24px 100px #0b211a40;color:#28364d}dialog::backdrop{background:#10282077;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:19px}dialog p,dialog li{font-size:12px;color:#647083}dialog ol{padding-right:20px}.install-step{border:1px solid #d4dae4;border-radius:9px;padding:14px;margin:12px 0;font-size:12px}dialog h3{font-size:14px}.legal-link{font-size:10px}.hide{display:none!important}.offline-banner{background:#fff0d9;padding:8px;text-align:center;color:#846238;font-size:11px}
@media(min-width:1600px){.main-shell{padding-left:70px;padding-right:70px}.workspace{grid-template-columns:minmax(0,1fr) 330px}.form-card{padding:35px}}
@media(max-width:1180px){.layout{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:28px 16px}.main-shell{padding:0 25px 30px}.workspace{grid-template-columns:minmax(0,1fr) 250px;gap:17px}.form-card{padding:22px}.summary-body,.summary-head{padding:18px}.btn{padding:9px 13px}.heading-row h1{font-size:23px}}
@media(max-width:960px){.layout{display:block}.sidebar{display:none}.main-shell{padding:0 25px 30px}.mobile-brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:bold}.topbar{height:82px}.crumb{display:none}.workspace{grid-template-columns:minmax(0,1fr) 270px}.heading-row h1{font-size:24px}.summary{top:15px}}
@media(max-width:720px){body{font-size:13px}.main-shell{padding:0 15px 28px}.topbar{margin-bottom:22px;height:75px}.topbar .btn{font-size:10px;padding:8px 10px;min-height:37px}.topbar .btn .button-label{display:none}.topbar .actions{gap:4px}.mobile-brand{font-size:14px;gap:7px}.brand-icon{width:36px;height:36px;border-radius:11px}.heading-row{margin-bottom:20px;gap:6px}.heading-row h1{font-size:22px;letter-spacing:-.5px}.heading-row p{font-size:10px}.version{font-size:8px;padding:3px 8px}.workspace{display:flex;flex-direction:column;gap:18px}.form-card{width:100%;padding:21px 17px;border-radius:14px}.summary{position:static;width:100%}.summary-head{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:8px}.summary-head strong{font-size:22px;margin:0}.summary-body{padding:17px 20px}.summary-head .muted{font-size:9px}.summary-body .sum-row{margin:8px 0}.summary .bar,.summary .legend{display:none}.summary-body .summary-line{margin:10px 0}.summary .note{margin-top:12px}.steps{padding:5px;margin-bottom:17px;gap:1px;border-radius:10px}.step{font-size:9px;flex-direction:column;gap:4px;padding:8px 6px;min-width:57px}.step em{width:22px;height:22px;font-size:10px}.field-grid{gap:17px 13px}.field label{font-size:10px}.field input,.field select,.field textarea{font-size:16px;padding:8px 9px;min-height:45px}.field small{font-size:9px}.field textarea{font-size:13px}.card-top{gap:10px;margin-bottom:22px}.card-top h2{font-size:15px}.card-top p{font-size:9px}.card-top .step-icon{width:38px;height:38px}.form-footer{padding-top:17px;margin-top:24px}.form-footer .muted{display:none}.btn{font-size:11px;padding:10px 14px}.price-chips{gap:6px}.price-chip{padding:7px 9px;gap:6px}.price-chip strong{font-size:12px}.reference-panel{padding:12px}.review-metrics{grid-template-columns:1fr;gap:7px}.metric{display:flex;align-items:center;justify-content:space-between;padding:11px 14px}.metric strong{margin:0;font-size:15px}.metric span{font-size:10px}.generator .field-grid{grid-template-columns:1fr 1fr}.generator .field:last-child{grid-column:1/-1}.year-grid{grid-template-columns:1fr}.exports .btn{min-width:120px}.page-bottom{font-size:8px}.files-grid{grid-template-columns:1fr}.preset-row button{min-width:50px;font-size:10px;padding:7px}.note{font-size:10px}.empty{padding:40px 20px}.footer-note{font-size:8px}.schedule-table td input{font-size:14px}.schedule-table .percent{width:66px}.schedule-table .date{width:140px}.table-wrap{margin-bottom:5px}.table-hint{font-size:9px;color:#9098a6;margin-bottom:6px}dialog{padding:20px}.heading-row .version{display:none}}
@media print{body{background:white}.sidebar,.topbar,.heading-row,.steps,.summary,.form-footer,.page-bottom,.exports,.check-label,.diagnostics,#toast,dialog,.hide{display:none!important}.layout,.workspace{display:block}.main-shell,.form-card{padding:0;border:0;box-shadow:none}button{display:none}table{white-space:normal;font-size:9pt}th,td{border:1px solid #ccc;padding:5pt}tr{break-inside:avoid}h2,h3{break-after:avoid}@page{size:A4;margin:16mm}}
@media(max-width:720px){.topbar{gap:8px}.topbar .actions{flex-wrap:nowrap;gap:6px}.topbar .actions [data-action="files"],.topbar .actions [data-action="save"]{font-size:0;gap:0;padding:8px;min-width:36px}.mobile-brand{font-size:13px;white-space:nowrap}.mobile-brand .brand-icon{width:32px;height:32px}.topbar .actions [data-action="install"]{white-space:nowrap}}
/* Same-document report and direct PDF controls, without popup windows. */
body.report-open{overflow:hidden}#report-preview[hidden]{display:none!important}#report-preview{position:fixed;inset:0;z-index:1000;overflow:auto;background:#eef0f2;color:#1f1f27;padding:0 18px 30px;font-size:13px}.report-toolbar{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #d8dbe1;padding:15px 22px;margin:0 -18px 18px;display:flex;justify-content:space-between;align-items:center;gap:18px;box-shadow:0 2px 9px #17333d0a}.report-title strong{display:block;font-size:15px}.report-title span{display:block;font-size:11px;color:#6f7783;margin-top:4px}.report-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.report-buttons [hidden]{display:none!important}.report-buttons a{text-decoration:none}.report-instructions{max-width:960px;margin:14px auto;color:#5a6371;font-size:11px}.report-document{max-width:960px;margin:0 auto;background:white;padding:34px 38px;box-shadow:0 4px 24px #183a2610;line-height:2.1;overflow-wrap:anywhere}.report-document h1{font-size:23px}.report-document h2{font-size:18px;margin-top:28px}.report-document .text{white-space:pre-wrap;line-height:2.3}.report-document .table-wrap{margin:17px 0}.report-document th,.report-document td{white-space:normal;min-width:85px}.report-fallback{max-width:960px;margin:18px auto;display:flex;gap:15px;align-items:center;flex-wrap:wrap;color:#7d828b;font-size:10px}@media(max-width:720px){#report-preview{padding:0 10px 20px}.report-toolbar{margin:0 -10px 12px;padding:12px 14px;display:block}.report-buttons{margin-top:10px;gap:6px}.report-buttons .btn{font-size:10px;padding:8px 11px;min-height:38px}.report-document{padding:20px 15px}.report-document h1{font-size:19px}.report-instructions{font-size:10px}.report-document table{min-width:620px}.report-document .text{font-size:12px}.report-title span{font-size:10px}}@media print{body.report-open{overflow:visible;background:white}body.report-open>#app,body.report-open>#toast,body.report-open>dialog,body.report-open>input{display:none!important}#report-preview{display:block!important;position:static;inset:auto;overflow:visible;background:white;padding:0}.report-toolbar,.report-instructions,.report-fallback{display:none!important}.report-document{max-width:none;margin:0;padding:0;box-shadow:none;font-size:11pt}.report-document .table-wrap{overflow:visible}.report-document table{min-width:0;table-layout:fixed;width:100%;font-size:8pt}.report-document td,.report-document th{min-width:0;overflow-wrap:anywhere}.report-document .text{font-size:10pt}tr{break-inside:avoid}}
.ownership-credit{position:fixed;bottom:max(7px,env(safe-area-inset-bottom));left:10px;z-index:30;border-radius:6px;padding:3px 8px;background:#f4f6f8;color:#263957;font:11px/1.5 system-ui,sans-serif}
.report-credit{text-align:center;font:12px/1.5 system-ui,sans-serif;color:#263957}
@media print{.ownership-credit{display:none}}

h1,h2,h3,.brand strong,.mobile-brand,.summary-head strong{font-family:Peyda,YekanBakh,Tahoma,sans-serif;font-weight:700}
body{background:#f6f6f7}
.sidebar{background:#000817}
.brand-icon{background:#035de2;flex:0 0 auto}
.brand-icon img{display:block;width:64%;height:auto}
.btn:focus-visible,.nav-item:focus-visible,.step:focus-visible{outline:2px solid #035de2;outline-offset:3px}
.side-brand-note{margin-inline-start:8px}
