
.hcc-panel{min-width:0;margin:18px 0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);overflow:hidden;font:11px/1.7 var(--font)}.hcc-panel *{box-sizing:border-box}.hcc-panel h2,.hcc-panel p{margin:0}.hcc-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;border-bottom:1px solid var(--line)}.hcc-head h2{font:600 13px/1.5 var(--font)}.hcc-head p{font-size:9px;color:var(--faint);margin-top:4px}.hcc-head>span{font-size:9px;color:var(--faint);white-space:nowrap}.hcc-intervals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:18px}.hcc-intervals>div{display:flex;flex-direction:column;gap:6px;min-width:0}.hcc-intervals>div+div{padding-left:24px;border-left:1px solid var(--line)}.hcc-intervals span{font-size:10px;color:var(--muted)}.hcc-intervals strong{font:500 17px/1.6 var(--mono);overflow-wrap:anywhere}.hcc-intervals em,.hcc-calculated em{font-style:normal;font-weight:400;color:var(--faint)}.hcc-intervals small{font:9px var(--mono);color:var(--faint)}.hcc-panel .hcc-data-state{padding:0 18px 14px;color:var(--amber);font-size:9px}.hcc-controls{display:grid;grid-template-columns:1.2fr repeat(3,minmax(0,1fr));gap:12px;padding:15px 18px 0;border-top:1px solid var(--line);background:var(--surface2)}.hcc-controls>label{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--muted);font-size:10px}.hcc-controls input{display:block;width:100%;min-width:0;height:35px;border:1px solid var(--line);border-radius:4px;background:var(--surface);padding:7px 10px;color:var(--text);font:11px var(--mono);outline:none}.hcc-controls input:focus{border-color:var(--accent)}.hcc-controls input[aria-invalid="true"]{border-color:var(--red)}.hcc-controls small{font-size:8px;line-height:1.8;color:var(--red);min-height:0}.hcc-controls small:empty{display:none}.hcc-form-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 18px 15px;background:var(--surface2)}.hcc-form-actions p{font-size:9px;color:var(--faint);line-height:1.8}.hcc-form-actions button{display:inline-flex;justify-content:center;align-items:center;min-height:33px;padding:7px 13px;background:var(--accent);border:1px solid var(--accent);border-radius:5px;color:var(--accent-text);font:500 10px/1.5 var(--font);cursor:pointer;white-space:nowrap}.hcc-form-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.hcc-output{padding:17px 18px;border-top:1px solid var(--line)}.hcc-idle strong{font-size:11px;font-weight:550;color:var(--muted)}.hcc-idle p{font-size:9px;color:var(--faint);line-height:1.9;margin-top:6px}.hcc-invalid strong{color:var(--red)}.hcc-calculated{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.hcc-calculated>div{display:flex;flex-direction:column;gap:7px;min-width:0}.hcc-calculated span{font-size:9px;color:var(--muted)}.hcc-calculated strong{font:500 20px/1.6 var(--mono);overflow-wrap:anywhere}.hcc-calculated>.hcc-budget{border-left:1px solid var(--line);padding-left:20px}.hcc-budget strong{font-size:17px}.hcc-budget b{font-size:9px;font-weight:500}.hcc-gain{color:var(--green)!important}.hcc-loss{color:var(--red)!important}.hcc-amber{color:var(--amber)!important}.hcc-panel .hcc-formula{font:9px/1.8 var(--mono);color:var(--muted);margin-top:14px;padding-top:12px;border-top:1px solid var(--line);overflow-wrap:anywhere}.hcc-panel .hcc-result-note{font-size:8px;color:var(--faint);line-height:1.9;margin-top:7px}.hcc-panel footer{font-size:8px;color:var(--faint);line-height:1.8;padding:10px 18px;border-top:1px solid var(--line)}
@media(max-width:1050px){.hcc-intervals strong{font-size:15px}.hcc-calculated strong{font-size:17px}.hcc-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}}
@media(max-width:760px){.hcc-panel{margin:14px 0}.hcc-head{padding:14px}.hcc-head h2{font-size:12px}.hcc-head p,.hcc-head>span{font-size:8px}.hcc-intervals{padding:15px 14px;gap:14px}.hcc-intervals>div+div{padding-left:14px}.hcc-intervals span{font-size:8px}.hcc-intervals strong{font-size:12px;line-height:1.8}.hcc-intervals small{font-size:8px}.hcc-controls{padding:14px 14px 0;gap:12px}.hcc-controls>label{font-size:9px}.hcc-controls input{height:35px;padding:7px 8px;font-size:11px}.hcc-form-actions{padding:12px 14px 14px;gap:10px;align-items:flex-end}.hcc-form-actions p{font-size:8px}.hcc-form-actions button{font-size:9px;padding:7px 10px}.hcc-output{padding:15px 14px}.hcc-calculated{grid-template-columns:1fr;gap:14px}.hcc-calculated>.hcc-budget{padding:12px 0 0;border-left:0;border-top:1px solid var(--line)}.hcc-calculated strong{font-size:18px}.hcc-budget strong{font-size:16px}.hcc-panel footer{padding:10px 14px}.hcc-panel .hcc-data-state{padding:0 14px 13px;font-size:8px}}

