/* Generated from the homepage styles, scoped under .tool-ui so it cannot affect the rest of the site.
   Styles used only by this tool. */
.tool-ui .tco-distance-choice{display:flex;flex-direction:column;gap:8px}
.tool-ui .tco-distance-topbar{display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:9px 11px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;box-sizing:border-box}
.tool-ui .tco-distance-topbar label{margin:0}
.tool-ui .tco-distance-toggle{border:1px solid #bfdbfe!important;cursor:pointer;white-space:nowrap}
.tool-ui .tco-distance-box{width:100%;box-sizing:border-box}
.tool-ui .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.tool-ui .tco-distance-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;margin-top:2px}
.tool-ui .tco-helper{font-size:11px;color:#64748b;line-height:1.4}
.tool-ui .tco-helper b{color:#334155}
@media(max-width:700px){
  .tool-ui .tco-distance-fields{grid-template-columns:1fr}
}
.tool-ui .card-solid-emerald{background:linear-gradient(135deg,#059669,#047857);border:none}
.tool-ui .card-solid-emerald h4, .tool-ui .card-solid-emerald .value, .tool-ui .card-solid-emerald .subtext{color:#fff!important}
.tool-ui .multi-year-table{width:100%;border-collapse:collapse;margin-top:22px;background:#fff;border-radius:16px;overflow:hidden;border:1.5px solid var(--card-border)}
.tool-ui .multi-year-table th{background:#f1f5f9;padding:12px 14px;font-size:13px;font-weight:800;text-align:center;color:#334155}
.tool-ui .multi-year-table td{padding:14px;font-size:13.5px;font-weight:700;text-align:center;border-top:1px solid #f1f5f9}
.tool-ui .multi-year-table tr:hover{background:#f8fafc}
.tool-ui .tco-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tool-ui .tco-compute-btn{max-width:none!important;width:auto!important;white-space:nowrap}
.tool-ui .tco-diff-good{color:#059669!important;font-weight:800}
.tool-ui .tco-diff-bad{color:#dc2626!important;font-weight:800}
.tool-ui .tco-one-time-note{margin-top:12px;padding:10px 12px;border-radius:12px;background:#f8fafc;border:1px solid #dbeafe;color:#475569;font-size:11.5px;line-height:1.5}
.tool-ui .tco-one-time-note.good{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.tool-ui .tco-one-time-note.warn{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
@media(max-width:900px){
  .tool-ui .tco-grid{grid-template-columns:1fr}
  .tool-ui .tco-compute-btn{width:100%!important}
}
.tool-ui .tco-grid .form-group{min-width:0}
.tool-ui .tco-grid .hub-input, .tool-ui .tco-grid .hub-select{width:100%;box-sizing:border-box}
@media(max-width:1100px){
  .tool-ui .multi-year-table{display:block;overflow-x:auto;white-space:nowrap}
}
@media(max-width:700px){
  .tool-ui .tco-compute-btn{white-space:normal!important}
  .tool-ui .tco-distance-fields{grid-template-columns:1fr}
}
.tool-ui .calc-action-row .tco-compute-btn{flex:1 1 auto;min-width:0;width:auto!important;max-width:none!important;white-space:nowrap;}
@media(max-width:700px){
  .tool-ui .calc-action-row .tco-compute-btn{min-width:0!important;padding-left:10px!important;padding-right:10px!important;font-size:13px!important;}
}
.tool-ui .calc-action-row .tco-compute-btn{display:block!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;max-width:none!important;}
@media(max-width:700px){
  .tool-ui .calc-action-row .tco-compute-btn{font-size:12.5px!important;padding:10px 8px!important;}
}
.tool-ui .tco-one-time-note{margin-top:14px;padding:10px 13px;border-radius:12px;background:linear-gradient(135deg,#eff6ff,#ecfdf5);border:1px solid #bfdbfe;color:#334155;font-size:11.5px;line-height:1.5;}
@media(max-width:700px){
  .tool-ui .tco-one-time-note{font-size:10.5px;padding:9px 11px}
  .tool-ui .multi-year-table{font-size:11px}
  .tool-ui .multi-year-table th, .tool-ui .multi-year-table td{padding:9px 8px}
}

/* Ownership cost layout */
.tool-ui .tco-sec{margin-top:6px}
.tool-ui .tco-sec-title{margin:0 0 10px;font-size:14px;font-weight:800;color:#0f172a}
.tool-ui .tco-opt{font-weight:600;color:#64748b;font-size:12px;margin-left:6px}
.tool-ui .tco-usage{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;align-items:start}
.tool-ui .tco-usage .tco-distance-choice{min-width:0}
.tool-ui .tco-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.tool-ui .tco-panel{border:1.5px solid #e2e8f0;border-radius:18px;background:#fff;padding:16px;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.tool-ui .tco-panel-ev{border-top:4px solid #10b981;background:linear-gradient(180deg,#f0fdf9,#fff 90px)}
.tool-ui .tco-panel-ice{border-top:4px solid #f97316;background:linear-gradient(180deg,#fff7ed,#fff 90px)}
.tool-ui .tco-panel-title{margin:0 0 12px;font-size:15px;font-weight:800;color:#0f172a}
.tool-ui .tco-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tool-ui .tco-panel-grid .form-group{min-width:0}
.tool-ui .tco-panel-grid .form-group:first-child{grid-column:1/-1}
.tool-ui .tco-panel-grid .hub-input,.tool-ui .tco-panel-grid .hub-select,.tool-ui .tco-usage .hub-select{width:100%;box-sizing:border-box}
.tool-ui .tco-battery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.4fr);gap:14px;align-items:end}
.tool-ui .tco-helper-box{padding:10px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;font-size:12px}
.tool-ui .tco-sched{margin-top:22px;border:1.5px solid #e2e8f0;border-radius:16px;background:#fff;padding:4px 16px 14px}
.tool-ui .tco-sched summary{cursor:pointer;font-weight:800;color:#0f766e;padding:12px 0;font-size:15px}
.tool-ui .tco-sched-note{margin:0 0 8px;font-size:12.5px;color:#64748b}
.tool-ui .tco-sched .multi-year-table{margin-top:0;border-radius:12px}
.tool-ui .tco-sched .tablewrap{overflow-x:auto}
@media(max-width:900px){
  .tool-ui .tco-panels{grid-template-columns:1fr}
  .tool-ui .tco-usage{grid-template-columns:1fr}
  .tool-ui .tco-battery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tool-ui .tco-helper-box{grid-column:1/-1}
}
@media(max-width:560px){
  .tool-ui .tco-panel-grid,.tool-ui .tco-battery{grid-template-columns:1fr}
  .tool-ui .tco-panel{padding:14px}
}
.tool-ui #tAnnualMode{grid-template-columns:1fr!important}
