/* Interactive runtime explorer */
.tb-runtime-explorer, .tb-runtime-explorer *{box-sizing:border-box}.tb-runtime-explorer{margin:0;background:#fbfaf6;color:#20372f;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}.tb-runtime-explorer{max-width:980px;margin:36px auto;padding:24px 20px;border-radius:18px}.tb-runtime-explorer .tb-runtime-title{font-size:clamp(25px,4vw,38px);line-height:1.16;max-width:760px;margin:12px 0}.tb-runtime-explorer h3{font-size:20px;margin:0 0 18px}.tb-runtime-explorer p{margin:10px 0}.tb-runtime-explorer .kicker{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#486353}.tb-runtime-explorer .intro{max-width:770px;color:#51655b}.tb-runtime-explorer .panel{background:#fff;border:1px solid #d6e0d7;border-radius:18px;padding:24px;margin-top:24px}.tb-runtime-explorer .tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.tb-runtime-explorer button, .tb-runtime-explorer input, .tb-runtime-explorer select{font:inherit}.tb-runtime-explorer button{cursor:pointer;min-height:44px;padding:10px 18px;border:1px solid #bdcdc0;border-radius:8px;background:#fff;color:#20372f}.tb-runtime-explorer .tabs button[aria-selected="true"]{background:#184e3f;border-color:#184e3f;color:#fff}.tb-runtime-explorer .fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tb-runtime-explorer .field{display:block;font-size:13px;font-weight:600;min-width:0}.tb-runtime-explorer .field input, .tb-runtime-explorer .field select{display:block;width:100%;min-width:0;margin-top:6px;padding:10px 11px;border:1px solid #b6c6ba;border-radius:7px;color:#20372f;background:#fff;min-height:44px;font-size:16px}.tb-runtime-explorer .field small{display:block;font-size:12px;font-weight:400;color:#506359;margin-top:5px}.tb-runtime-explorer .section{margin-top:24px;padding-top:22px;border-top:1px solid #e0e7e1}.tb-runtime-explorer .load-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tb-runtime-explorer .range-wrap{margin:18px 0 8px}.tb-runtime-explorer .range-wrap label{display:flex;justify-content:space-between;gap:12px;font-weight:600;flex-wrap:wrap}.tb-runtime-explorer input[type="range"]{width:100%;min-height:44px;accent-color:#184e3f;cursor:pointer}.tb-runtime-explorer .results{display:flex;gap:36px;flex-wrap:wrap;margin:24px 0 18px}.tb-runtime-explorer .stat small{display:block;color:#52665a;font-size:13px}.tb-runtime-explorer .stat strong{display:block;font-size:clamp(26px,5vw,38px);font-weight:650;letter-spacing:-.04em;line-height:1.25}.tb-runtime-explorer .stat span{font-size:13px;color:#52665a}.tb-runtime-explorer .error{padding:12px 15px;background:#fff6ea;color:#704300;border-left:4px solid #c58b37}.tb-runtime-explorer .note{font-size:13px;color:#52665a}.tb-runtime-explorer .chart-shell{position:relative;min-width:0}.tb-runtime-explorer svg{display:block;width:100%;overflow:visible}.tb-runtime-explorer svg text{font-size:12px;fill:#294537}.tb-runtime-explorer svg .grid{stroke:#e2e9e3;stroke-width:1}.tb-runtime-explorer .chart-readout{min-height:24px;font-size:13px;color:#52665a}.tb-runtime-explorer .fuel-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.tb-runtime-explorer .fuel-grid label{font-size:12px}.tb-runtime-explorer summary{cursor:pointer;padding:12px 0;font-weight:600}.tb-runtime-explorer table{border-collapse:collapse;width:100%;font-size:14px;margin-top:8px}.tb-runtime-explorer th, .tb-runtime-explorer td{padding:10px 8px;text-align:left;border-bottom:1px solid #dbe4dc}.tb-runtime-explorer th{font-weight:650}.tb-runtime-explorer footer{font-size:12px;color:#506359;padding:20px 0 36px}.tb-runtime-explorer .warning{font-size:13px;border-left:3px solid #ba8234;padding-left:12px}.tb-runtime-explorer .method{max-width:800px;font-size:13px}.tb-runtime-explorer a{color:#14553f}.tb-runtime-explorer .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tb-runtime-explorer [hidden]{display:none!important}@media(max-width:620px){.tb-runtime-explorer{margin:22px auto;padding:0 12px}.tb-runtime-explorer .panel{padding:18px 14px}.tb-runtime-explorer .fields{grid-template-columns:1fr 1fr}.tb-runtime-explorer .fuel-grid{grid-template-columns:1fr 1fr}.tb-runtime-explorer .results{gap:18px}.tb-runtime-explorer .stat{flex:1;min-width:140px}}@media(max-width:360px){.tb-runtime-explorer .fields, .tb-runtime-explorer .load-grid{grid-template-columns:1fr}.tb-runtime-explorer .tabs button{flex:1;padding:9px 10px}.tb-runtime-explorer .results{display:block}.tb-runtime-explorer .stat{margin-bottom:12px}}


.tb-runtime-explorer button:focus-visible,.tb-runtime-explorer input:focus-visible,.tb-runtime-explorer select:focus-visible,.tb-runtime-explorer summary:focus-visible{outline:3px solid #b97821;outline-offset:3px}

/* Multi-device battery planner. Every rule remains scoped to this widget. */
.tb-runtime-explorer .load-planner{max-width:100%;min-width:0}
.tb-runtime-explorer .load-planner summary{font-size:18px;color:#184e3f}
.tb-runtime-explorer .load-planner h3{margin:12px 0}
.tb-runtime-explorer .planner-period{max-width:340px;margin:20px 0}
.tb-runtime-explorer .planner-device{min-width:0;margin:18px 0;padding:16px;border:1px solid #c7d7cb;border-radius:12px;background:#f7faf7}
.tb-runtime-explorer .planner-device legend{padding:0 7px;font-size:13px;font-weight:700;color:#365847}
.tb-runtime-explorer .planner-device-fields{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.tb-runtime-explorer .planner-remove{margin-top:12px;font-size:13px}
.tb-runtime-explorer .planner-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0}
.tb-runtime-explorer .planner-actions button{max-width:100%;white-space:normal}
.tb-runtime-explorer .planner-actions button[data-plan="use"]{background:#184e3f;color:#fff;border-color:#184e3f}
.tb-runtime-explorer .load-planner button:disabled{cursor:not-allowed;opacity:.55}
.tb-runtime-explorer .load-planner .stat{flex:1 1 240px;min-width:0;max-width:100%}
.tb-runtime-explorer .load-planner .stat strong{overflow-wrap:anywhere}
.tb-runtime-explorer .planner-balance{padding:14px;border-left:3px solid #184e3f;background:#f2f7f3;font-size:14px}
.tb-runtime-explorer .planner-table{max-width:100%;overflow-x:auto;margin:22px 0}
.tb-runtime-explorer .planner-table table{min-width:520px}
.tb-runtime-explorer .planner-table caption{text-align:left;font-size:13px;color:#52665a;margin-bottom:10px}
.tb-runtime-explorer .planner-table th[scope="row"]{overflow-wrap:anywhere;max-width:240px}
.tb-runtime-explorer .planner-table:focus-visible{outline:3px solid #b97821;outline-offset:3px}
@media(max-width:720px){.tb-runtime-explorer .planner-device-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-runtime-explorer .planner-device-name{grid-column:1/-1}}
@media(max-width:360px){.tb-runtime-explorer .planner-device-fields{grid-template-columns:1fr}.tb-runtime-explorer .planner-device{padding:12px}.tb-runtime-explorer .load-planner .results{display:block}}
