.calculator-eyebrow{color:var(--orange);font-size:10px;font-weight:800;letter-spacing:1.1px;margin-bottom:10px}
.calculator-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:24px 0}
.calculator-stage{display:flex;align-items:flex-start;gap:14px;padding:22px;background:#fff;border:1px solid var(--line,#e6eaf0);border-radius:12px;min-width:0}
.calculator-stage-number{font-size:24px;font-weight:800;color:#e5a28b;line-height:1.2}
.calculator-stage h2,.calculator-stage h3{font-size:14px;margin:0 0 7px}
.calculator-stage p{font-size:11px;color:var(--muted,#87919e);line-height:1.8;margin:0}
.calculator-stage>div{min-width:0}.calculator-stage b{font-size:16px;overflow-wrap:anywhere}
.calculator-start{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(110deg,#fff7f2,#fff)}
.calculator-start h2{font-size:16px;margin-bottom:8px}.calculator-start p{max-width:650px;line-height:1.9;margin:0}
.calculator-start>.heading-actions{flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
.calculator-group-tags{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%}
.calculator-group-tag{font-size:10px;padding:5px 8px;background:#f3f5f8;color:#647187;border-radius:5px;overflow-wrap:anywhere}
.cost-profiles-panel .profile-version{flex-wrap:wrap;gap:13px}.profile-version>div:first-child{flex:1;min-width:220px}
.calculator-groups{margin:22px 0;padding-top:18px;border-top:1px solid var(--line,#e6eaf0)}
.calculator-groups>.between{margin:20px 0 12px;align-items:flex-start;gap:12px}.calculator-groups h3{font-size:14px;margin:0 0 5px}
.calculator-group-editor{margin:12px 0;padding:16px;border:1px solid var(--line,#e6eaf0);border-radius:10px;min-width:0}
.calculator-group-editor legend{float:none;width:auto;padding:0 8px;font-size:12px;font-weight:700;color:#6c788b}
.calculator-group-editor label{font-size:11px}.calculator-group-editor .small{line-height:1.8}
.calculator-rule-overview{margin:18px 0;padding:16px;background:#f7f8fa;border:1px solid #edf0f4;border-radius:10px}
.calculator-rule-overview section+section{margin-top:16px}.calculator-rule-overview h4{font-size:11px;color:#647187;margin:0 0 9px}
.calculator-rule-overview h4 small{font-weight:400;padding-left:7px;color:#a0a8b3}.calculator-rule-overview section>div{display:flex;flex-wrap:wrap;gap:6px}
.calculator-rule-chip{background:white;border:1px solid #e5e9ee;border-radius:6px;padding:7px 9px;font-size:10px;color:#67768b;text-align:left;max-width:100%;overflow-wrap:anywhere}
.calculator-rule-chip:hover,.calculator-rule-chip.selected{background:var(--orange-soft,#fff0e9);border-color:#eeb79f;color:#b85c3d}
.calculator-rule-chip:focus-visible{outline:3px solid #ec623e55;outline-offset:2px}
.calculator-preview{border-top:1px solid var(--line,#e6eaf0);padding-top:20px;margin-top:24px}
.calculator-preview>summary,.calculator-parameters>summary{cursor:pointer;font-size:13px;font-weight:700;line-height:1.8}
.calculator-preview-fields{padding-top:12px}.calculator-preview-fields>.small{line-height:1.8}
.calculator-parameters{margin:18px 0}.calculator-parameters p{line-height:1.9}
.calculator-preview-result{margin-top:24px;min-width:0}.calculator-result-heading{padding:18px;background:#f6f8fa;border-radius:10px}
.calculator-result-heading span{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.calculator-result-heading b{font-size:21px;color:var(--ink,#303c51)}
.calculator-result-heading small{display:block;width:100%;color:#8793a3;font-size:11px}
.calculator-result-stages{gap:9px;margin:14px 0}.calculator-result-stages .calculator-stage{padding:14px}
.calculator-result-stages .calculator-stage h3{font-size:11px}.calculator-result-stages .calculator-stage p{font-size:9px;margin-top:6px}
.calculator-preview-result .data-table small{display:block;margin-top:5px}.calculator-preview-result .data-table td:last-child{font-size:10px;overflow-wrap:anywhere;max-width:240px}
.calculator-template{padding:18px 0;border-top:1px solid var(--line,#e6eaf0)}.calculator-template h3{font-size:14px}.calculator-template p{font-size:12px;color:var(--muted);line-height:1.9}
@media(max-width:1100px){.calculator-start{align-items:flex-start;flex-direction:column}.calculator-start>.heading-actions{justify-content:flex-start}}
@media(max-width:700px){.calculator-stages{grid-template-columns:1fr;gap:9px;margin:18px 0}.calculator-stage{padding:16px}.calculator-stage-number{font-size:21px}.calculator-start{gap:16px}.calculator-start>.heading-actions{flex-shrink:1}.calculator-start .af-btn{white-space:normal;max-width:100%}.calculator-groups>.between{flex-wrap:wrap}.calculator-group-editor{padding:12px}.calculator-result-stages{grid-template-columns:1fr}.calculator-result-heading b{font-size:19px}.calculator-rule-overview{padding:12px}.cost-profiles-panel .profile-version>div:first-child{min-width:0;flex-basis:100%}}

/* The calculator page presents one stage and one kind of vehicle at a time. */
.ct-page{max-width:1180px;margin:0 auto;color:var(--ink,#243249)}
.ct-page-heading{margin:0 0 25px}.ct-page-heading h1{font-size:28px;letter-spacing:-.6px;margin:0 0 9px}.ct-page-heading p{font-size:13px;color:#66758a;line-height:1.9;margin:0}
.ct-stage-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px}
.ct-stage{display:flex;gap:16px;align-items:flex-start;text-align:left;padding:23px 22px;border:1px solid #e4e9ef;border-radius:12px;background:#fff;color:inherit;min-width:0;transition:border-color .15s,background .15s}
.ct-stage-number{font-size:25px;line-height:1.2;font-weight:800;color:#dba38e}.ct-stage>span:last-child{min-width:0}.ct-stage b{display:block;font-size:14px;margin:1px 0 8px}.ct-stage small{display:block;font-size:13px;color:#66758a;line-height:1.8}
.ct-stage.selected{background:#fff8f3;border-color:#eda58a;box-shadow:0 0 0 1px #eda58a33}.ct-stage.selected b{color:#bb5c3b}.ct-stage:hover{border-color:#e3b9a8}
.ct-stage:focus-visible,.ct-vehicle-tabs button:focus-visible{outline:3px solid #ec623e55;outline-offset:3px}
.ct-vehicle-tabs{display:flex;gap:28px;overflow-x:auto;border-bottom:1px solid #e0e6ed;margin-bottom:28px;scrollbar-width:thin}
.ct-vehicle-tabs button{padding:0 0 15px;border:0;border-bottom:2px solid transparent;background:none;color:#8995a4;font-size:13px;font-weight:700;white-space:nowrap}.ct-vehicle-tabs button[aria-selected=true]{color:var(--orange,#ec623e);border-bottom-color:var(--orange,#ec623e)}
.ct-catalog{background:#fff;border:1px solid #e5eaf0;border-radius:12px;padding:24px}.ct-catalog-heading{gap:20px;flex-wrap:wrap;margin-bottom:15px}.ct-catalog-heading h2{font-size:16px;margin:0}.ct-catalog-heading .heading-actions{flex-wrap:wrap;gap:8px}
.ct-scheme{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0;color:inherit;text-decoration:none;border-top:1px solid #edf0f4}.ct-scheme:hover b{color:var(--orange,#ec623e)}.ct-scheme>span:first-child{min-width:0}.ct-scheme b{display:block;font-size:14px;margin-bottom:7px}.ct-scheme small{display:block;color:#66758a;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:610px}.ct-scheme-meta{display:flex;align-items:center;gap:18px;flex-shrink:0;color:#66758a;font-size:13px}.ct-scheme-meta>span:last-child{font-size:19px;color:#b4bdc7}
.ct-status{padding:5px 8px;border-radius:5px;background:#f4f5f7;color:#66758a;white-space:nowrap}.ct-status.ready{background:#eef7f1;color:#648a74}
.ct-empty{text-align:center;padding:45px 18px 35px}.ct-empty h3{font-size:15px;margin:0 0 9px}.ct-empty p{color:#66758a;font-size:13px;margin:0;line-height:1.8}.ct-compose-link{margin:22px 0 0;padding-top:18px;border-top:1px solid #edf0f4;font-size:13px}.ct-compose-link a{color:#66758a;text-decoration:none}.ct-compose-link a:hover{color:var(--orange,#ec623e)}
.ct-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0 24px}.ct-template-list article{padding:19px;border:1px solid #e5eaf0;border-radius:9px;background:#fafbfc}.ct-template-list h3{font-size:13px;line-height:1.6}.ct-template-list p{font-size:13px;color:#66758a;line-height:1.8}
.ct-breadcrumb{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:13px;line-height:1.8;color:#66758a;margin:0 0 20px}.ct-breadcrumb a{color:#66758a;text-decoration:none}.ct-breadcrumb b{font-weight:600;color:#647286}
.ct-editor{background:white;border:1px solid #e4e9ef;border-radius:12px;padding:27px;min-width:0}.ct-editor-title{display:grid;grid-template-columns:minmax(220px,1fr) minmax(240px,1.4fr);gap:24px;padding-bottom:17px}.ct-editor-title input[name=scheme_name]{font-weight:700;font-size:15px}.ct-editor label,.ct-composition-form label{font-size:13px;color:#66758a}.ct-editor input,.ct-editor select,.ct-editor textarea{font-size:14px;max-width:100%}.ct-editor input:disabled,.ct-editor select:disabled,.ct-editor textarea:disabled{opacity:1;background:#fafbfc;color:#647286;cursor:default}
.ct-route-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;padding:0 0 20px;max-width:750px}.ct-route-fields p{grid-column:1/-1;color:#66758a;font-size:13px;line-height:1.8;margin:0 0 8px}
.ct-lines-heading{margin:18px 0 16px;gap:15px}.ct-lines-heading h2{font-size:16px;margin:0}.ct-expense-lines{display:grid;gap:16px}.ct-expense-line{border:1px solid #e6ebf1;border-radius:10px;padding:20px;min-width:0;background:#fff}.ct-line-heading{display:flex;align-items:center;gap:24px}.ct-line-heading>label{flex:1;min-width:0}.ct-line-heading input{font-weight:700}.ct-line-heading>.af-btn{color:#66758a;flex-shrink:0;font-size:13px}.ct-line-fields{display:grid;grid-template-columns:125px minmax(180px,250px);gap:20px}.ct-line-calculation{max-width:800px}.ct-line-calculation>label{max-width:375px}.ct-line-calculation textarea{max-width:100%;min-height:78px;font-family:inherit}.ct-formula-references{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:9px 0}.ct-formula-references>span{font-size:13px;color:#66758a;margin-right:3px}.ct-formula-references .af-btn{padding:5px 8px;font-size:13px;color:#66758a;background:#f7f9fb;border-color:#edf0f4}.ct-formula-help{font-size:13px;color:#66758a;line-height:1.9;margin:10px 0 0}.ct-empty-line{margin:0;padding:30px 12px;text-align:center;color:#66758a;font-size:13px;border:1px dashed #e1e7ee;border-radius:9px}
.ct-line-details{margin-top:17px;padding-top:13px;border-top:1px solid #f0f2f5}.ct-line-details summary,.ct-preserved summary,.ct-preview>summary,.ct-preview-fields>details>summary{cursor:pointer;color:#66758a;font-size:13px;line-height:1.8}.ct-line-details>p,.ct-preserved p{font-size:13px;line-height:1.8;color:#66758a}.ct-line-details>label:first-of-type{margin-top:15px}.ct-line-details textarea{min-height:64px}.ct-preserved{margin:22px 0}.ct-preserved ul{padding-left:19px;color:#77889c;font-size:13px;line-height:2}.ct-preserved li small{margin-left:9px;color:#66758a}
.ct-tariffs{padding:6px 0 0}.ct-tariffs>summary{font-size:13px;color:#66758a;cursor:pointer;line-height:1.8}.ct-tariffs table{width:100%;min-width:560px;border-collapse:collapse;margin:15px 0}.ct-tariffs th{font-size:13px;color:#66758a;padding:8px;text-align:left}.ct-tariffs td{padding:7px}.ct-tariffs input{width:100%;min-width:85px;margin:0;padding:8px}.ct-sum-members{display:grid;gap:8px}.ct-sum-members label{display:flex;align-items:center;gap:9px}.ct-sum-members input{width:auto;margin:0}
.ct-preview{border-top:1px solid #e7ecf2;padding-top:22px;margin-top:28px}.ct-preview>summary{font-size:13px;font-weight:700;color:#66758a}.ct-preview-fields{max-width:540px;padding-top:15px}.ct-preview-fields>details{margin:16px 0}.ct-preview .calculator-parameters>summary{font-size:13px;color:#66758a}.ct-preview .calculator-parameters p{font-size:13px}.ct-stage-result{margin-top:20px;padding:0}.ct-stage-result:has(strong){padding:21px;background:#f5f9f6;border:1px solid #e4eee6;border-radius:9px}.ct-stage-result strong{font-size:25px;font-weight:800;color:#557b63}.ct-result-label{font-size:13px;color:#66758a;margin-bottom:9px}.ct-stage-result>p{font-size:13px;line-height:1.8;color:#66758a}.ct-stage-result .ct-result-note{font-size:13px;color:#66758a;margin-bottom:0}
.ct-command-status{font-size:13px;color:#ac6d52;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.ct-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;border-top:1px solid #e7ecf2;padding-top:20px;margin-top:24px}.ct-editor-footer>span{font-size:13px;color:#66758a}.ct-editor-footer>.heading-actions{gap:8px;flex-wrap:wrap}
.ct-leave-guard{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:18px 20px;border:1px solid #efd5b9;border-radius:9px;background:#fff9ef;margin:0 0 22px}.ct-leave-guard b{font-size:13px;color:#926e45}.ct-leave-guard p{font-size:13px;color:#66758a;margin:5px 0 0}.ct-leave-guard .heading-actions{gap:8px;flex-wrap:wrap}.ct-saved-commands{font-size:13px;padding:15px 18px;background:#f9f7f2;border:1px solid #ede7d9;border-radius:9px;margin-bottom:22px;color:#66758a}.ct-saved-commands p{margin:0;display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.ct-loading{padding:35px 12px;text-align:center;color:#66758a;font-size:13px}.ct-recovery,.ct-composition{padding:25px;background:#fff;border:1px solid #e4e9ef;border-radius:12px}.ct-recovery h2,.ct-composition h2{font-size:18px}.ct-recovery p,.ct-composition>p{font-size:13px;color:#66758a;line-height:1.9}.ct-composition-form{max-width:650px;margin-top:25px}.ct-composition-form>p{font-size:13px;color:#66758a;line-height:1.8}
@media(max-width:1050px){.ct-stage{padding:20px 16px;gap:12px}.ct-stage small{font-size:13px}.ct-scheme-meta{gap:10px}.ct-scheme small{max-width:440px}}
@media(max-width:700px){.ct-page-heading h1{font-size:24px}.ct-page-heading{margin-bottom:20px}.ct-stage-tabs{gap:7px;margin-bottom:20px}.ct-stage{display:block;padding:14px 9px;border-radius:9px}.ct-stage-number{display:block;font-size:18px;margin-bottom:8px}.ct-stage b{font-size:13px;margin:0}.ct-stage small{display:none}.ct-vehicle-tabs{gap:23px;margin-bottom:22px}.ct-vehicle-tabs button{font-size:13px;padding-bottom:12px}.ct-catalog{padding:18px}.ct-catalog-heading{align-items:flex-start}.ct-catalog-heading .heading-actions{width:100%}.ct-catalog-heading .primary{flex:1;justify-content:center}.ct-scheme{display:block;padding:19px 0}.ct-scheme b{font-size:13px}.ct-scheme small{white-space:normal;line-height:1.8}.ct-scheme-meta{margin-top:13px;justify-content:flex-start;gap:15px}.ct-scheme-meta>span:last-child{margin-left:auto}.ct-template-list{grid-template-columns:1fr}.ct-editor{padding:18px}.ct-editor-title{grid-template-columns:1fr;gap:0}.ct-route-fields{grid-template-columns:1fr;gap:0}.ct-line-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.ct-line-heading>label{flex-basis:100%;margin-bottom:0}.ct-line-heading>.af-btn{margin:0 0 13px;padding-left:0}.ct-line-fields{grid-template-columns:95px minmax(0,1fr);gap:14px}.ct-expense-line{padding:15px}.ct-lines-heading h2{font-size:14px}.ct-formula-references .af-btn{max-width:100%;white-space:normal}.ct-editor-footer{align-items:flex-start;gap:12px}.ct-editor-footer>.heading-actions{width:100%}.ct-editor-footer .primary{width:100%;justify-content:center}.ct-editor-footer .af-btn{font-size:13px}.ct-leave-guard{padding:16px;gap:14px}.ct-recovery,.ct-composition{padding:19px}.ct-stage-result strong{font-size:23px}}

.ct-settings-link{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.ct-settings-link .ct-saved-commands{flex-basis:100%}.ct-retired{margin-top:20px;font-size:13px;color:#66758a}.ct-retired summary{cursor:pointer}.ct-retired>a{display:block;padding:12px 0;color:#526278}.ct-retired small{display:block;font-size:12px}.ct-composition-breakdown{list-style:none;padding:0;margin:18px 0}.ct-composition-breakdown li{display:flex;gap:15px;justify-content:space-between;margin:10px 0;font-size:13px;color:#526b5b}.ct-composition-breakdown b{font-weight:600;text-align:right}.ct-page .calculator-parameters p{font-size:13px;color:#66758a;line-height:1.8}.ct-page .af-btn{font-size:13px}.ct-page .ct-vehicle-tabs{overflow-x:auto;scrollbar-width:thin}.ct-composition-form input,.ct-composition-form textarea,.ct-composition-form select{font-size:14px}@media(max-width:700px){.ct-page .ct-stage b{font-size:13px}.ct-page .ct-vehicle-tabs{gap:16px}.ct-page .ct-vehicle-tabs button{font-size:13px;flex-shrink:0}.ct-composition-breakdown li{align-items:flex-start}.ct-composition-breakdown b{max-width:60%}}
/* field() emits sibling label/input nodes. Keep the line title above its input
   so the full-width control cannot consume the label's flex space. */
.ct-editor .ct-line-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:end}.ct-editor .ct-line-heading>label{grid-column:1;grid-row:1;margin:0}.ct-editor .ct-line-heading>input{grid-column:1;grid-row:2;min-width:0;width:100%}.ct-editor .ct-line-heading>.af-btn{grid-column:2;grid-row:2;align-self:center}
@media(max-width:700px){.ct-editor .ct-line-heading{grid-template-columns:minmax(0,1fr);gap:12px}.ct-editor .ct-line-heading>.af-btn{grid-column:1;grid-row:3;justify-self:start}}
