*{box-sizing:border-box}body{margin:0;color:#17343b;background:#f1f4f2;font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}header{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:27px 26px;border-bottom:1px solid #d4ddda}.brand{text-decoration:none;display:flex;align-items:center;gap:20px}.brand>b{font-size:29px;letter-spacing:-1px}.brand>b>span{color:#b57712;margin-left:4px}.brand>span,.version,.eyebrow{font-size:11px;letter-spacing:1.7px;font-weight:700}.version{color:#5f7375}main{max-width:1180px;margin:auto;padding:40px 26px 0}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:35px}.eyebrow{color:#806021;margin:0 0 13px}h1{font-size:46px;letter-spacing:-2px;line-height:1.1;margin:0 0 20px;font-weight:750}h1 span{color:#6d8181}.intro p:not(.eyebrow){color:#5b7173}.formula-top{border-left:2px solid #d6a24b;padding:18px 30px;display:grid;gap:9px}.formula-top span{font-size:10px;letter-spacing:1.5px}.formula-top strong{font-size:26px}.formula-top small{color:#657b7d}.layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start}.card{background:white;border:1px solid #dce4df;border-radius:16px;padding:26px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}h2{font-size:18px;margin:0}h2 span{font-size:12px;color:#8a9d9b;margin-right:12px}button{border:0}.text-button{background:none;color:#5c7173;text-decoration:underline;font-size:13px;padding:10px}fieldset{padding:0;border:0;margin:0 0 22px}legend{font-weight:650;font-size:14px;width:100%;margin-bottom:10px}legend>span,.field>span{font-size:12px;font-weight:400;color:#657b7c;float:right}.classes{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.classes label{position:relative;cursor:pointer}.classes input{position:absolute;opacity:0}.classes label>span{display:block;border:1px solid #cbd7d2;border-radius:10px;text-align:center;padding:12px 3px;font-size:20px;font-weight:700}.classes small{display:block;font-size:12px;font-weight:400}.classes input:checked+span{background:#17343b;color:#fff;border-color:#17343b}.classes input:focus-visible+span{outline:3px solid #df9c29;outline-offset:2px}.field{display:block;font-size:14px;font-weight:650;margin-bottom:18px}input,select,textarea{display:block;width:100%;background:#fbfcfb;border:1px solid #bdcdc6;border-radius:9px;margin-top:8px;padding:13px 14px;color:#18363c;min-height:51px}input:focus,select:focus,textarea:focus{outline:2px solid #c68e2d;outline-offset:2px}textarea{resize:vertical}.pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hint{color:#586f72;font-size:12px;margin:-5px 0 22px}.segment{background:#f1f5f2;border:1px solid #e2e8e3;border-radius:10px;padding:15px;margin-bottom:12px}.segment .pair{gap:12px}.segment .field{margin-bottom:0}.segment-head{display:flex;justify-content:space-between;margin-bottom:9px;font-size:12px;font-weight:700}.remove{color:#974529;background:none;text-decoration:underline;padding:0 5px}.kc-help{font-size:13px;color:#4c686b;margin:16px 0 23px}.kc-help p{margin:12px 0}summary{cursor:pointer;font-weight:650;min-height:36px}.check{display:flex;gap:10px;font-size:13px;align-items:start;margin:15px 0}.check input{width:22px;min-height:22px;height:22px;flex-shrink:0;margin:0;accent-color:#17343b}.divider{border-top:1px solid #dce4df;margin:25px 0}.primary,.dark,.outline{border-radius:9px;min-height:50px;padding:13px 19px;font-weight:650;font-size:14px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.primary{background:#efae40;color:#172d31;width:100%;justify-content:space-between}.primary:hover{background:#f8bb54}.dark{background:#17343b;color:white}.outline{background:transparent;border:1px solid #b8c9c2;color:#234149}.outline:hover{background:#edf3ef}.result{background:#17343b;color:white;border-radius:16px;padding:29px;position:relative;overflow:hidden}.result-title{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.5px;gap:12px}.result-title span:last-child{color:#e9ba68}.result>p{font-size:14px;color:#d1ddda;margin-top:34px}.result-number{display:flex;align-items:baseline;gap:14px;line-height:1.12;margin:16px 0 0;overflow-wrap:anywhere}.result-number>span{font-size:76px;font-weight:650;letter-spacing:-3px}.result-number>small{color:#e8b768;font-size:26px}#result-sub{margin-top:13px;color:#c3d2ce;font-size:13px}.result-rule{border-top:1px solid #3c565c;margin-top:24px}.result .result-note{font-size:12px;margin:18px 0 0;color:#b9cdca}#comparison{padding:16px;border-radius:9px;margin-top:22px;font-size:14px;background:#294950}#comparison b{display:block;font-size:15px;margin-bottom:6px}#comparison.good{background:#27574e;color:#e1fff2}#comparison.bad{background:#653f35;color:#fff1e2}#comparison.neutral{background:#364d59}.calculation{margin-top:18px}.calculation pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.8 ui-monospace,Consolas,monospace;color:#36575a;margin:18px 0}.sketch{padding:16px 10px 5px}.sketch svg{width:100%;height:auto;max-height:195px}.sketch p{text-align:center;font-size:11px;color:#728888;margin:0}.document{margin-top:25px}.local-badge{font-size:11px;color:#526e63;background:#edf4ee;border-radius:30px;padding:6px 10px}.actions{display:flex;gap:10px;flex-wrap:wrap}#notice{font-size:13px;color:#536f66}#history:empty{display:none}.history-row{border-top:1px solid #dde6e0;padding:15px 0;display:flex;justify-content:space-between;gap:14px;align-items:center}.history-row small{display:block;color:#677f7b;font-size:11px}.history-row button{min-height:40px;padding:8px 12px}.history-row strong{display:block}.sources{margin:22px 0;font-size:13px;color:#4f696b}.sources p{max-width:920px}.sources a{color:#195660}footer{display:flex;gap:18px;align-items:center;padding:10px 0 28px;color:#617874;font-size:11px}footer b{font-size:20px;color:#1e4046}footer span:last-child{margin-left:auto}#error{background:#fff0e8;color:#8b3522;border:1px solid #dfaf99;border-radius:8px;padding:14px;font-size:14px}#print-report{display:none}[hidden]{display:none!important}@media(max-width:760px){header{padding:17px 18px}.brand{gap:12px}.brand>span{font-size:9px;letter-spacing:1px}.version{display:none}main{padding:28px 16px 0}.intro{margin-bottom:24px}.intro h1{font-size:36px}.intro p:not(.eyebrow){font-size:14px}.formula-top{display:none}.layout{grid-template-columns:1fr;gap:18px}.card{padding:20px}.result{padding:24px}.result-number>span{font-size:68px}.sketch{display:none}.document .pair{grid-template-columns:1fr;gap:0}.actions>*{flex:1 1 150px}.section-head{margin-bottom:20px}.document .section-head{align-items:start}.local-badge{font-size:10px}.history-row{align-items:start;flex-wrap:wrap}.history-row>div:last-child{display:flex;gap:6px}footer{flex-wrap:wrap}}@media print{body{background:white;font-size:11pt}body>header,main>*{display:none!important}main{padding:0;max-width:none}#print-report{display:block!important;color:black}#print-report h1{font-size:24pt;letter-spacing:0}#print-report h2{margin-top:20px}#print-report pre{white-space:pre-wrap;font-size:10pt}#print-report p{overflow-wrap:anywhere}#print-report table{width:100%;border-collapse:collapse}#print-report td{border-bottom:1px solid #aaa;padding:8px}#print-report small{font-size:9pt}@page{size:A4;margin:18mm}}
.method-info{border-left:3px solid #d89c35;padding:10px 14px;background:#fff8e9;border-radius:0 8px 8px 0;font-size:13px;margin:0 0 20px}.method-info strong{display:block;margin-bottom:4px}

.field .length-caption{float:none;color:inherit;font-weight:650;font-size:14px}
.kc-help-text{margin:9px 0 0;font-size:12px;font-weight:400;color:#586f72}.kc-custom{margin-top:14px}.segment .pair{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr)}.segment input,.segment select{min-width:0}.segment .kc-field{min-width:0}@media(max-width:480px){.segment .pair{grid-template-columns:1fr}.segment .kc-field{margin-top:6px}}
.brand .brand-name{font-size:17px;letter-spacing:0;line-height:1.3}.brand-name small{display:block;font-size:9px;letter-spacing:1.1px;color:#647a7b;font-weight:600;margin-top:5px}.usage-notice{display:flex;gap:15px;align-items:flex-start;padding:20px 22px;margin:0 0 26px;background:#fff5df;border:1px solid #d8b678;border-left:5px solid #b47b1d;border-radius:12px}.notice-icon{flex-shrink:0;display:grid;place-items:center;width:28px;height:28px;background:#946112;border-radius:50%;color:white;font-weight:800}.usage-notice h2{font-size:17px;color:#533b14;margin:0 0 7px}.usage-notice p{margin:0;font-size:14px;line-height:1.6;color:#60491e}.result-note strong{color:#f6cf8c}@media(max-width:600px){.brand .brand-name{font-size:14px}.brand-name small{font-size:8px;letter-spacing:.5px}.usage-notice{padding:17px 15px;gap:11px}.usage-notice h2{font-size:16px}.usage-notice p{font-size:13px}}@media print{#print-report .print-notice{border:1px solid #555;padding:10px;margin:12px 0;break-inside:avoid}#print-report .print-notice h2{margin:0 0 5px;font-size:11pt}#print-report .print-notice p{font-size:9pt;margin:0}}
.brand{flex-wrap:wrap}.brand .bzt-logo{width:220px;height:auto;display:block;flex-shrink:0}.footer-logo{width:120px;height:auto;display:block;flex-shrink:0}@media(max-width:760px){.brand{gap:12px 18px}.brand .bzt-logo{width:170px}.brand .brand-name{font-size:13px}.footer-logo{width:110px}}@media print{#print-report .print-logo{display:block;width:210px;height:auto;margin:0 0 12px}}
.header-tools{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.language-picker{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:650}.language-picker select{border:1px solid #aabfba;border-radius:8px;padding:9px 30px 9px 12px;background:#fff;color:#142d35;font:inherit;min-height:44px;max-width:180px;cursor:pointer}.language-picker select:focus-visible{outline:3px solid #d89c35;outline-offset:2px}
.formula-top strong,.result-number,#steps,#print-report pre,.sketch svg{direction:ltr;unicode-bidi:isolate}
input[inputmode="decimal"]{direction:ltr;text-align:start;unicode-bidi:isolate}
#history strong,#history small,#print-report td{unicode-bidi:plaintext}
html[dir="rtl"] body{font-family:Tahoma,Arial,sans-serif}
html[dir="rtl"] .field>span:not(.length-caption){float:left}
html[dir="rtl"] .usage-notice{border-left:1px solid #d8b678;border-right:5px solid #b47b1d}
html[dir="rtl"] .method-info{border-left:0;border-right:3px solid #d89c35;border-radius:8px 0 0 8px}
html[dir="rtl"] .language-picker select{padding-inline:12px 30px}
html[dir="rtl"] .sketch{text-align:center}
html[dir="rtl"] .result-number{justify-content:flex-end}
html[dir="rtl"] .brand-name small{letter-spacing:0}
html[dir="rtl"] #print-report td:first-child{text-align:right}
@media(max-width:760px){header{align-items:flex-start;gap:16px;flex-wrap:wrap}.header-tools{width:100%;justify-content:space-between}.language-picker select{max-width:190px}.brand{max-width:100%}}
@media print{.header-tools{display:none!important}}

html[dir="rtl"] #steps,html[dir="rtl"] #print-report pre{font-family:Tahoma,Arial,sans-serif;unicode-bidi:plaintext;letter-spacing:normal}

.company-profile{margin:22px 0}.company-profile summary{font-weight:700;cursor:pointer}.company-profile>p{font-size:14px;color:#4f696b;max-width:900px}.company-profile .pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.company-profile input[type=file]{padding:10px;font-size:13px;max-width:100%;overflow:hidden}.company-logo-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:12px 0 20px}#company-logo-preview{max-width:240px;max-height:100px;object-fit:contain;border:1px solid #d7e1dc;background:white;padding:8px}#company-status{font-size:13px;color:#365e55;overflow-wrap:anywhere}.company-delete-check{padding:14px;margin-top:14px;background:#fff5df;border:1px solid #d8b678;border-radius:8px}.company-profile .field{min-width:0}.company-profile input{min-width:0;max-width:100%}@media(max-width:600px){.company-profile .pair{grid-template-columns:1fr}.company-profile{padding:20px}}
@media print{
 #print-report .company-report-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;border-bottom:1px solid #bbb;padding-bottom:14px;margin-bottom:16px;break-inside:avoid}
 #print-report .company-report-address{min-width:0;overflow-wrap:anywhere;line-height:1.5;font-size:10pt}
 #print-report .company-report-address strong{display:block;font-size:17pt;margin-bottom:5px}
 #print-report .company-report-logo{display:block;max-width:190px;max-height:90px;object-fit:contain}
 #print-report .company-report-provider{display:block;margin:20px 0 0;padding:9px 0 0;border-top:1px solid #bbb;color:#555;font-size:8pt;break-inside:avoid}
 #print-report .company-report-provider p{margin:3px 0;font-size:8pt;line-height:1.4}
}

/* Central account */
.cloud-panel{display:grid;grid-template-columns:1fr auto;gap:10px 24px;margin-bottom:24px;border-top:4px solid #dba142}.cloud-panel h2{font-size:24px;margin:4px 0 10px}.cloud-panel p{margin:8px 0;line-height:1.55}.cloud-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cloud-controls a{display:inline-flex;align-items:center;text-decoration:none}.cloud-panel [hidden]{display:none!important}#cloud-status,#cloud-time,#cloud-migrate{grid-column:1/-1}#cloud-status{font-weight:600;color:#225b49}.sync-error{color:#a14523!important}#cloud-time{color:#627271}#cloud-migrate{border-top:1px solid #d5dfdd;padding-top:14px}#cloud-migrate summary{cursor:pointer;font-weight:700}#cloud-account{overflow-wrap:anywhere}.history-empty{color:#647371}.cloud-controls .dark{padding:12px 16px;border-radius:7px}.cloud-controls .text-button{padding:8px}.history-row button:disabled{opacity:.5;cursor:wait}@media(max-width:650px){.cloud-panel{grid-template-columns:1fr}.cloud-controls{grid-column:1}.cloud-panel h2{font-size:21px}}@media print{.cloud-panel{display:none!important}}
