@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-variable.ttf") format("truetype"); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-variable.ttf") format("truetype"); font-style: normal; font-weight: 600 800; font-display: swap; }

:root {
  --bg: #031820;
  --panel: #072630;
  --panel-2: #092d37;
  --line: #16414a;
  --line-bright: #1f5c62;
  --text: #f0f7f5;
  --muted: #9bb4b7;
  --green: #10e6b0;
  --green-soft: rgba(16, 230, 176, .11);
  --cyan: #22baf1;
  --orange: #ffa14f;
  --yellow: #ffdc3c;
  --danger: #ff7a70;
  --shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: radial-gradient(circle at 48% -15%, #0b3440 0, var(--bg) 38%); color: var(--text); font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }

.topbar { height: 58px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; background: rgba(2, 19, 26, .94); border-bottom: 1px solid #0d3440; position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(12px); }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 12px; font: 800 21px "Manrope", sans-serif; letter-spacing: -.7px; }
.brand strong { color: var(--green); }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #02352d; font-size: 27px; font-weight: 900; box-shadow: 0 0 24px rgba(16,230,176,.22); }
.prototype { display: flex; gap: 8px; align-items: center; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.prototype i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.dashboard { padding: 10px 12px 14px; display: grid; grid-template-columns: minmax(310px, 1fr) minmax(330px, 1fr) minmax(610px, 2fr); grid-template-areas: "site load results" "system system results"; gap: 10px; align-items: stretch; }
.dashboard-card { min-width: 0; background: linear-gradient(145deg, rgba(8,42,52,.98), rgba(4,29,38,.98)); border: 1px solid #12404b; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.site-card { grid-area: site; }.load-card { grid-area: load; }.system-card { grid-area: system; }.results-card { grid-area: results; }
.card-header { padding: 12px 14px 10px; border-bottom: 1px solid rgba(26,80,90,.55); }
.card-header > div { display: flex; align-items: center; gap: 10px; }
.card-header h1, .card-header h2 { margin: 0; font: 700 18px/1.15 "Manrope", sans-serif; }
.step-number { color: var(--green); font: 800 22px/1 "Manrope", sans-serif; }
.card-header p { margin: 4px 0 0 2px; color: var(--muted); font-size: 11px; }

.map-frame { margin: 0 10px; height: 340px; position: relative; border-left: 5px solid #020d12; border-right: 5px solid #020d12; background: #06252d; }
#map { height: 100%; filter: saturate(.65) brightness(.72) hue-rotate(125deg); background: #06252d; }
.leaflet-control-attribution { font-size: 8px !important; background: rgba(2,21,26,.75) !important; color: #b4c7c7 !important; }
.leaflet-control-attribution a { color: var(--green) !important; }
.leaflet-bar { border: 1px solid #2a6066 !important; box-shadow: none !important; }
.leaflet-bar a { color: var(--green) !important; background: #082a33 !important; border-color: #1b4850 !important; }
.selected-pin { width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green); border: 3px solid #dffff7; box-shadow: 0 0 0 7px rgba(16,230,176,.18), 0 0 18px var(--green); }
.site-facts { display: grid; grid-template-columns: 1.15fr .85fr; gap: 7px; padding: 9px 10px 11px; }
.site-facts > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: rgba(5,35,43,.7); }
.fact-icon { grid-row: 1 / 3; color: var(--green); font-size: 19px; align-self: center; text-align: center; }
.site-facts small { color: var(--muted); font-size: 9px; }.site-facts strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }

.load-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
.choice { min-height: 92px; border: 1px solid var(--line-bright); border-radius: 7px; background: rgba(5,34,42,.68); padding: 10px; text-align: left; cursor: pointer; transition: .18s ease; }
.choice span, .choice strong, .choice small { display: block; }.choice span { color: #b8d4d6; font-size: 21px; margin-bottom: 8px; }.choice strong { font-size: 12px; }.choice small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.choice:hover { border-color: #2b817e; }.choice.active { border-color: var(--green); background: linear-gradient(145deg, rgba(11,104,88,.34), rgba(6,44,49,.8)); box-shadow: inset 0 0 0 1px rgba(16,230,176,.22), 0 0 14px rgba(16,230,176,.08); }.choice.active span { color: var(--green); }
.demand-scale { padding: 0 10px 10px; }.field-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 10px; }.field-label strong { color: var(--green); font-size: 9px; }
.scale-control { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line-bright); border-radius: 7px; overflow: hidden; }
.scale-control button { border: 0; border-right: 1px solid var(--line-bright); background: rgba(4,31,39,.65); padding: 7px; cursor: pointer; }.scale-control button:last-child { border-right: 0; }.scale-control strong, .scale-control small { display: block; }.scale-control strong { font-size: 11px; }.scale-control small { color: var(--muted); font-size: 8px; }.scale-control button.active { color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.load-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px 10px; }
.load-metrics > div { display: grid; grid-template-columns: 25px 1fr; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(8,45,55,.72); }.load-metrics > div > span { grid-row: 1 / 4; color: var(--green); font-size: 18px; }.load-metrics small { color: var(--muted); font-size: 9px; }.load-metrics strong { font: 700 18px "Manrope", sans-serif; }.load-metrics em { color: var(--muted); font-style: normal; font-size: 8px; }
.load-chart { margin: 0 10px 10px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(4,29,37,.7); }.chart-title { display: flex; justify-content: space-between; align-items: center; }.chart-title strong { font-size: 10px; }.chart-title span { color: var(--muted); font-size: 8px; }
#load-chart-svg { width: 100%; height: 105px; margin-top: 5px; overflow: visible; }.chart-grid line { stroke: #17404a; stroke-width: 1; vector-effect: non-scaling-stroke; }.chart-area { fill: url(#loadFill); }.chart-line { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(16,230,176,.38)); }
.week-labels { display: grid; grid-template-columns: repeat(7,1fr); color: #91aaad; font-size: 8px; text-align: center; }

.system-header { display: flex; justify-content: space-between; align-items: center; }.system-header > div > div { display: flex; align-items: center; gap: 10px; }.system-header > div > p { margin-left: 2px; }
.simulate-button { padding: 9px 13px; border: 1px solid var(--green); border-radius: 6px; background: rgba(16,230,176,.08); color: var(--green); cursor: pointer; font-size: 10px; font-weight: 800; box-shadow: 0 0 13px rgba(16,230,176,.08); }.simulate-button .gear { margin-right: 6px; }.simulate-button:hover { background: rgba(16,230,176,.17); }.simulate-button:disabled { opacity: .5; cursor: wait; }
.system-flow { display: grid; grid-template-columns: minmax(175px,1fr) 32px 34px 72px 34px 32px minmax(210px,1.12fr); align-items: center; gap: 7px; padding: 12px 14px 10px; }
.component-stack { display: grid; gap: 8px; }.input-components { grid-template-rows: 1fr 1fr; }.output-components { grid-template-rows: 1fr 1fr auto; }
.technology { min-width: 0; padding: 8px; border: 1px solid #31505a; border-radius: 7px; background: rgba(5,31,39,.72); opacity: .62; transition: .18s ease; }.technology.active { opacity: 1; border-color: var(--green); background: linear-gradient(145deg, rgba(9,79,70,.36), rgba(5,34,42,.9)); box-shadow: inset 0 0 0 1px rgba(16,230,176,.14); }
.tech-check { display: grid; grid-template-columns: 18px 1fr; align-items: center; column-gap: 7px; cursor: pointer; }.tech-check input { position: absolute; opacity: 0; pointer-events: none; }.tech-check > span { grid-row: 1/3; width: 17px; height: 17px; border: 1px solid #6a8386; border-radius: 4px; }.technology.active .tech-check > span { position: relative; background: var(--green); border-color: var(--green); }.technology.active .tech-check > span::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #00372e; border-width: 0 2px 2px 0; transform: rotate(45deg); }.tech-check b { color: var(--text); font-size: 10px; }.tech-check small { color: var(--muted); font-size: 8px; }
.price-field { display: block; margin-top: 6px; }.price-field > span { display: block; color: #829da0; font-size: 7px; text-transform: uppercase; letter-spacing: .45px; margin-bottom: 3px; }.price-field > div { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: rgba(3,23,29,.8); }.price-field input { width: 100%; min-width: 0; padding: 5px 6px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 9px; font-weight: 700; }.price-field input:disabled { color: #70858a; }.price-field em { padding-right: 6px; white-space: nowrap; color: var(--muted); font-size: 8px; font-style: normal; }.dual-price { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.flow-links { align-self: stretch; display: grid; color: var(--green); text-align: center; font: 700 21px "Manrope", sans-serif; }.left-links { grid-template-rows: 1fr 1fr; }.right-links { grid-template-rows: 1fr 1fr 1fr; color: var(--cyan); }.flow-links span { display: grid; place-items: center; text-shadow: 0 0 8px currentColor; }.battery-flow { letter-spacing: -4px; color: var(--green) !important; font-size: 24px; }
.bus { align-self: stretch; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--green); }.bus i { width: 12px; height: 70%; min-height: 125px; border-radius: 7px; background: currentColor; box-shadow: 0 0 13px currentColor; }.bus span, .bus small { color: #b8cbcc; font-size: 8px; }.bus.ac { color: var(--cyan); }.inverter { display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--cyan); }.inverter span { width: 46px; height: 40px; display: grid; place-items: center; border: 2px solid #8bdcff; border-radius: 6px; background: #0b3341; font-size: 24px; }.inverter small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.load-component { display: grid; grid-template-columns: 31px 1fr 20px; align-items: center; gap: 7px; padding: 8px; border: 1px solid var(--green); border-radius: 7px; background: rgba(16,230,176,.1); }.load-symbol { display: grid; place-items: center; width: 28px; height: 28px; color: var(--green); font-size: 21px; }.load-component b, .load-component small { display: block; }.load-component b { font-size: 10px; }.load-component small { color: #8ccabd; font-size: 8px; }.fixed-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #01392f; font-size: 11px; font-weight: 900; }
.simulation-progress { display: grid; grid-template-columns: minmax(190px,auto) 1fr 38px; align-items: center; gap: 12px; margin: 0 14px 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(3,24,31,.78); }.progress-copy strong, .progress-copy span { display: block; }.progress-copy strong { color: var(--green); font-size: 9px; }.progress-copy span { max-width: 330px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 8px; }.progress-track { height: 5px; overflow: hidden; background: #143942; border-radius: 99px; }.progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg,var(--green),var(--cyan)); transition: width .3s ease; }.simulation-progress > b { color: var(--green); font-size: 9px; text-align: right; }.system-note { margin: 0 14px 10px; color: #769196; font-size: 8px; }

.results-card { min-height: calc(100vh - 82px); }.results-header > div { gap: 11px; }.results-icon { color: var(--green); font-size: 23px; }.results-header p { margin-left: 34px; }
.empty-result { min-height: 680px; padding: 45px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }.result-orbit { width: 104px; height: 104px; border: 1px solid rgba(16,230,176,.22); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 50px rgba(16,230,176,.08); }.result-orbit span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: #003c30; background: var(--green); font-size: 34px; box-shadow: 0 0 25px rgba(16,230,176,.35); }.empty-result h3 { margin: 25px 0 7px; font: 700 18px "Manrope",sans-serif; }.empty-result p { max-width: 390px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.hidden { display: none !important; }.result-content { padding: 10px; }
.best-system { min-height: 105px; display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--green); border-radius: 8px; background: linear-gradient(110deg, rgba(12,102,84,.32), rgba(5,38,45,.85)); box-shadow: inset 0 0 25px rgba(16,230,176,.04); }.best-check { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #00392e; font-size: 35px; box-shadow: 0 0 25px rgba(16,230,176,.32); }.best-copy { min-width: 155px; }.best-copy small, .best-copy strong, .best-copy span { display: block; }.best-copy small { color: #8dc8bc; text-transform: uppercase; letter-spacing: .8px; font-size: 7px; }.best-copy strong { color: var(--green); font: 700 24px "Manrope",sans-serif; }.best-copy span { margin-top: 3px; color: #c1d3d2; font-size: 9px; }
.system-result-chips { flex: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }.system-result-chips > div { min-width: 0; display: grid; grid-template-columns: 26px 1fr; column-gap: 4px; align-items: center; padding: 8px; border: 1px solid rgba(16,230,176,.65); border-radius: 7px; background: rgba(3,29,35,.58); }.system-result-chips span { grid-row: 1 / 3; color: var(--green); font-size: 20px; }.system-result-chips strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }.system-result-chips small { color: var(--muted); font-size: 8px; }
.kpi-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 10px; }.kpi-grid article { min-width: 0; min-height: 125px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, rgba(9,47,57,.93), rgba(5,34,42,.93)); }.kpi-icon { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-bottom: 12px; border-radius: 6px; color: var(--green); background: var(--green-soft); }.kpi-grid small, .kpi-grid strong, .kpi-grid em { display: block; }.kpi-grid small { min-height: 24px; color: #bdd0d0; font-size: 8px; text-transform: uppercase; letter-spacing: .45px; }.kpi-grid strong { margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 700 19px "Manrope",sans-serif; }.kpi-grid em { margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; margin-top: 10px; }.analysis-card { min-height: 265px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(5,34,42,.78); }.analysis-title { display: flex; justify-content: space-between; }.analysis-title strong { font-size: 11px; }.analysis-title span { color: var(--muted); font-size: 8px; }.service-ring { width: 160px; height: 160px; margin: 27px auto 0; padding: 13px; border-radius: 50%; background: conic-gradient(var(--green) 0 99.9%, #183f46 99.9%); box-shadow: 0 0 25px rgba(16,230,176,.12); }.service-ring > div { width: 100%; height: 100%; border-radius: 50%; background: #062630; display: flex; flex-direction: column; justify-content: center; align-items: center; }.service-ring strong { font: 700 24px "Manrope",sans-serif; }.service-ring small { color: var(--muted); font-size: 8px; }.validation-card { display: flex; justify-content: center; align-items: center; gap: 18px; }.validation-check { flex: 0 0 auto; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); border: 1px solid var(--green); color: var(--green); font-size: 30px; }.validation-card strong { color: var(--green); font: 700 17px "Manrope",sans-serif; }.validation-card p { max-width: 260px; color: var(--muted); font-size: 10px; line-height: 1.55; }

@media (max-width: 1280px) { .dashboard { grid-template-columns: 1fr 1fr; grid-template-areas: "site load" "system system" "results results"; }.results-card { min-height: 620px; }.empty-result { min-height: 480px; } }
@media (max-width: 760px) { .topbar { padding: 0 12px; }.brand { font-size: 17px; }.prototype { display: none; }.dashboard { grid-template-columns: 1fr; grid-template-areas: "site" "load" "system" "results"; padding: 8px; }.system-header { align-items: flex-start; gap: 10px; }.simulate-button { max-width: 155px; }.system-flow { grid-template-columns: 1fr 28px 22px 52px 22px 28px 1fr; padding: 10px 8px; gap: 3px; }.bus { min-height: 250px; }.inverter span { width: 40px; }.dual-price { grid-template-columns: 1fr; }.simulation-progress { grid-template-columns: 1fr 35px; }.progress-copy { grid-column: 1 / 3; }.kpi-grid { grid-template-columns: repeat(2,1fr); }.kpi-grid article:first-child { grid-column: 1 / 3; }.best-system { align-items: flex-start; flex-wrap: wrap; }.system-result-chips { flex-basis: 100%; }.analysis-grid { grid-template-columns: 1fr; } }
@media (max-width: 470px) { .load-options { grid-template-columns: 1fr; }.choice { min-height: 66px; }.site-facts { grid-template-columns: 1fr; }.map-frame { height: 300px; }.system-flow { display: grid; grid-template-columns: 1fr; }.flow-links, .bus, .inverter { display: none; }.component-stack { grid-template-columns: 1fr; }.system-result-chips { grid-template-columns: 1fr 1fr; }.kpi-grid { grid-template-columns: 1fr; }.kpi-grid article:first-child { grid-column: auto; } }

/* Web prototype refinements */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg, .result-orbit svg { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.simulate-button svg { width: 15px; height: 15px; margin-right: 6px; vertical-align: middle; }
#map { filter: none; background: radial-gradient(circle at 45% 48%, #0b3d47, #031820 72%); }
.leaflet-container { background: transparent; font-family: inherit; }
.leaflet-interactive { transition: fill-opacity .15s ease, stroke .15s ease; }
.map-frame { border: 1px solid #164852; border-radius: 8px; overflow: hidden; }
.coordinates { margin: -4px 10px 10px; color: #779297; font-size: 8px; text-align: center; letter-spacing: .3px; }
.fact-icon { width: 20px; height: 20px; grid-row: 1 / 3; color: var(--green); align-self: center; justify-self: center; }
.choice svg { display: block; width: 23px; height: 23px; margin-bottom: 8px; color: #b8d4d6; }
.choice.active svg { color: var(--green); }
.load-metrics svg { width: 19px; height: 19px; grid-row: 1 / 4; color: var(--green); }
.tech-check { grid-template-columns: 18px 24px 1fr; }
.tech-check svg { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--muted); }
.technology.active .tech-check svg { color: var(--green); }
.load-symbol { width: 26px; height: 26px; }
.results-icon { width: 23px; height: 23px; }
.system-result-chips svg { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--green); }
.system-result-chips > div.hidden { display: none; }
.system-result-chips { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.kpi-icon { padding: 5px; }
.analysis-grid { grid-template-columns: 1fr 1.2fr; }
.analysis-card { min-height: 250px; overflow: hidden; }
.donut-layout { height: 205px; display: grid; grid-template-columns: minmax(128px, .9fr) 1.1fr; align-items: center; gap: 14px; }
.donut { width: 142px; height: 142px; margin: auto; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; box-shadow: 0 0 24px rgba(16,230,176,.1); }
.donut::after { content: ""; position: absolute; inset: 23px; border-radius: 50%; background: #062630; box-shadow: inset 0 0 0 1px #17444c; }
.donut span, .donut small { position: relative; z-index: 1; }
.donut span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; font: 700 17px "Manrope", sans-serif; }
.donut small { color: var(--muted); font-size: 7px; }
.plot-legend { display: grid; gap: 7px; min-width: 0; }
.legend-row { display: grid; grid-template-columns: 9px minmax(52px, 1fr) auto; gap: 6px; align-items: center; color: #c7d7d7; font-size: 8px; }
.legend-row i, .dispatch-legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-row b { color: var(--text); font-size: 8px; white-space: nowrap; }
.bar-chart { height: 205px; display: flex; align-items: stretch; padding-top: 14px; }
.bar-plot { width: 100%; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 5px; border-bottom: 1px solid #37606a; background: repeating-linear-gradient(to top, transparent 0, transparent 24%, rgba(27,72,80,.7) 25%); }
.month-column { height: 100%; display: flex; flex-direction: column; justify-content: end; position: relative; }
.month-stack { min-height: 1px; display: flex; flex-direction: column-reverse; justify-content: flex-start; overflow: hidden; border-radius: 2px 2px 0 0; }
.month-stack i { display: block; width: 100%; }
.month-column small { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); color: #91aaad; font-size: 7px; }
.dispatch-chart { width: 100%; height: 182px; margin-top: 8px; overflow: visible; }
.dispatch-grid { stroke: #17404a; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dispatch-area { stroke: none; opacity: .84; }
.dispatch-load { fill: none; stroke: #edf7f5; stroke-width: 1.7; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.dispatch-axis { fill: #8ca5a8; stroke: none; font-size: 8px; }
.dispatch-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; color: var(--muted); font-size: 7px; }
.dispatch-legend span { display: flex; align-items: center; gap: 4px; }
@media (max-width: 760px) { .donut-layout { grid-template-columns: 1fr 1fr; }.analysis-card { min-height: 240px; } }

/* Selectable street map: only the map images are recolored; labels stay legible. */
#map { filter: none; }
.leaflet-control-attribution { padding: 2px 5px !important; font-size: 10px !important; }

/* The simulation action has its own bottom row below the system diagram. */
.system-actions { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px; align-items: stretch; margin: 0 14px 8px; }
.system-actions .simulate-button { min-width: 182px; padding: 10px 14px; font-size: 11px; }
.system-actions .simulation-progress { min-width: 0; margin: 0; }

/* Load axis and week labels use the same plot margins. */
.chart-axis text { fill: #a9c2c5; stroke: none; font: 13px "DM Sans", sans-serif; }
.chart-axis .chart-axis-unit { fill: var(--green); font-weight: 700; }
.week-labels { padding-left: 7.33%; padding-right: .67%; font-size: 9px; }

@media (min-width: 1281px) {
  .card-header h1, .card-header h2 { font-size: 20px; }
  .card-header p { font-size: 12px; }
  .choice strong { font-size: 13px; }
  .choice small { font-size: 10px; }
  .field-label, .chart-title strong { font-size: 11px; }
  .scale-control strong { font-size: 12px; }
  .scale-control small { font-size: 9px; }
  .load-metrics strong { font-size: 20px; }
  .load-metrics small, .site-facts small { font-size: 10px; }
  .site-facts strong { font-size: 11px; }
  .tech-check b { font-size: 11px; }
  .tech-check small, .price-field input, .price-field em { font-size: 9px; }
  .price-field > span, .system-note { font-size: 8px; }
  .progress-copy strong, .kpi-grid small { font-size: 10px; }
  .progress-copy span { font-size: 9px; max-width: 430px; }
  .analysis-title strong { font-size: 12px; }
  .analysis-title span, .legend-row, .legend-row b { font-size: 9px; }
}

@media (min-width: 1281px) and (min-height: 900px) {
  body.tool-page { height: 100%; overflow: hidden; }
  .dashboard { height: calc(100vh - 58px); grid-template-rows: minmax(0, 56%) minmax(0, 44%); overflow: hidden; }
  .dashboard-card { min-height: 0; }
  .site-card, .load-card, .system-card, .results-card { height: 100%; }
  .site-card, .load-card, .system-card { display: flex; flex-direction: column; }
  .map-frame, .load-chart, .system-flow { min-height: 0; flex: 1; }
  .map-frame { height: auto; }
  .load-options .choice { min-height: 76px; padding: 8px; }
  .load-options .choice svg { margin-bottom: 4px; }
  .load-metrics > div { padding: 7px 9px; }
  .load-chart { display: flex; flex-direction: column; }
  #load-chart-svg { min-height: 0; height: 100%; flex: 1; }
  .system-flow { padding-top: 5px; padding-bottom: 5px; }
  .system-flow .bus { min-height: 160px; }
  .results-card { min-height: 0; }
  .empty-result { min-height: 0; height: calc(100% - 65px); }
}

@media (max-width: 760px) {
  .system-actions { grid-template-columns: 1fr; }
  .system-actions .simulate-button { width: 100%; max-width: none; }
}

/* Compact four-step layout and charts that use the available panel height. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dashboard { grid-template-areas: "site load results" "system system results" "action action results"; }
.action-card { grid-area: action; min-height: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; }
.card-header { display: flex; align-items: center; gap: 13px; padding: 9px 14px; }
.card-header > div { flex: none; gap: 8px; }
.card-header p, .results-header p { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.system-header { justify-content: flex-start; }
.system-header > div > p { margin: 0; }
.action-card .card-header { height: 100%; border-bottom: 0; border-right: 1px solid rgba(26,80,90,.55); }
.action-card .card-header h2 { font-size: 16px; white-space: nowrap; }
.action-card .system-actions { margin: 0 12px; grid-template-columns: max-content minmax(0, 1fr); }
.action-card .simulate-button { min-width: 220px; padding: 12px 16px; font-size: 12px; }
.action-card .simulation-progress { grid-template-columns: minmax(150px, 215px) minmax(0, 1fr) 32px; gap: 8px; padding: 6px 8px; }
.action-card .progress-copy span { max-width: 210px; }

.site-card .map-frame { margin: 0 8px 8px; }
.site-card .site-facts { position: absolute; z-index: 450; left: 9px; right: 9px; bottom: 17px; padding: 0; gap: 7px; pointer-events: none; }
.site-card .site-facts > div { background: rgba(3, 31, 39, .91); border-color: rgba(58, 116, 118, .78); box-shadow: 0 5px 17px rgba(0,0,0,.3); backdrop-filter: blur(8px); }
.site-card .site-facts small { font-size: 10px; }
.site-card .site-facts strong { font-size: 13px; }

.demand-scale { padding-bottom: 8px; }
.load-metrics { padding-bottom: 7px; }
.load-metrics > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: 15px auto; column-gap: 7px; padding: 7px 9px; }
.load-metrics svg { grid-row: 1 / 3; align-self: center; }
.load-metrics small { grid-column: 2; align-self: center; }
.load-value { grid-column: 2; display: flex; align-items: baseline; gap: 5px; min-width: 0; white-space: nowrap; }
.load-value strong { font-size: 19px; line-height: 1.1; }
.load-value em { font-size: 9px; }
.load-chart { display: flex; flex-direction: column; min-height: 0; }
.chart-title { flex: none; }
.chart-title span { font-size: 9px; }
.load-plot { display: flex; gap: 6px; min-height: 70px; flex: 1; margin-top: 7px; }
.load-axis { flex: 0 0 34px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; color: #a9c2c5; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1; }
#load-chart-svg { width: 100%; height: 100%; min-height: 0; flex: 1; margin: 0; overflow: hidden; }
.week-labels { grid-template-columns: 40px repeat(7, 1fr); padding: 0; margin-top: 4px; font-size: 9px; }

.system-flow { grid-template-columns: minmax(0, 1fr) 28px 26px 78px 26px 28px minmax(0, 1.12fr); gap: 5px; padding: 6px 12px; }
.component-stack { gap: 6px; }
.technology { padding: 7px; }
.price-field { margin-top: 4px; }
.price-field input { padding: 4px 6px; }
.bus { min-height: 0; }
.bus i { min-height: 96px; height: 63%; }
.inverter { position: relative; color: #79e4d5; }
.inverter::before, .inverter::after { content: ""; position: absolute; top: 37%; width: 12px; height: 3px; box-shadow: 0 0 8px currentColor; }
.inverter::before { left: -9px; background: var(--green); }
.inverter::after { right: -9px; background: var(--cyan); }
.inverter > span { width: 72px; height: 48px; border: 2px solid transparent; background: linear-gradient(110deg, #0b3c3b, #0a3442) padding-box, linear-gradient(90deg, var(--green), var(--cyan)) border-box; box-shadow: -5px 0 16px rgba(16,230,176,.22), 5px 0 16px rgba(34,186,241,.22); }
.inverter svg { width: 55px; height: 29px; color: #a5efe7; stroke-width: 2.2; }
.inverter small { font-size: 9px; }

.results-card { display: flex; flex-direction: column; }
.results-header > div { gap: 8px; }
.empty-result { flex: 1; min-height: 0; }
.result-content { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 8px; }
.best-system { min-height: 85px; gap: 10px; padding: 9px; }
.best-check { width: 48px; height: 48px; font-size: 29px; }
.best-copy { min-width: 146px; }
.best-copy strong { font-size: 22px; }
.best-copy span { font-size: 10px; }
.system-result-chips > div { padding: 7px; grid-template-columns: 27px minmax(0, 1fr); }
.system-result-chips strong { font-size: 15px; }
.system-result-chips small { font-size: 9px; }
.kpi-grid { gap: 7px; margin-top: 8px; }
.kpi-grid article { display: flex; flex-direction: column; min-height: 0; padding: 8px 9px; }
.kpi-heading { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.kpi-heading .kpi-icon { flex: none; width: 23px; height: 23px; margin: 0; }
.kpi-grid small { min-height: 0; font-size: 9px; }
.kpi-grid strong { margin-top: 4px; font-size: 20px; line-height: 1.12; }
.kpi-grid em { margin-top: 1px; font-size: 9px; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; flex: 1; margin-top: 8px; }
.analysis-card { min-height: 0; display: flex; flex-direction: column; padding: 10px; overflow: hidden; }
.analysis-title { flex: none; gap: 6px; }
.donut-layout { flex: 1; min-height: 0; height: auto; grid-template-columns: 122px minmax(0, 1fr); gap: 7px; }
.donut { width: 116px; height: 116px; }
.donut::after { inset: 19px; }
.donut span { font-size: 15px; }
.donut small { font-size: 8px; }
.plot-legend { gap: 9px; }
.legend-row { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 6px; font-size: 10px; }
.legend-row b { font-size: 10px; }
.bar-chart { flex: 1; min-height: 0; height: auto; padding: 10px 0 17px; }
.month-column small { font-size: 8px; }
.dispatch-chart { flex: 1; min-height: 0; height: auto; margin-top: 4px; }
.dispatch-legend { flex: none; margin-top: 3px; gap: 8px; font-size: 9px; }

@media (min-width: 1281px) and (min-height: 900px) {
  .dashboard { grid-template-rows: minmax(0, 58fr) minmax(0, 33fr) minmax(74px, 9fr); }
  .site-card, .load-card, .system-card, .action-card, .results-card { height: 100%; }
  .site-card .map-frame { min-height: 0; flex: 1; }
  .load-chart { min-height: 0; flex: 1; }
  .system-flow { min-height: 0; flex: 1; }
  .empty-result { height: auto; }
}

@media (max-width: 1280px) {
  .dashboard { grid-template-areas: "site load" "system system" "action action" "results results"; }
}
@media (max-width: 760px) {
  .dashboard { grid-template-areas: "site" "load" "system" "action" "results"; }
  .card-header { flex-wrap: wrap; row-gap: 3px; }
  .card-header p { white-space: normal; }
  .action-card { grid-template-columns: 1fr; }
  .action-card .card-header { border-right: 0; border-bottom: 1px solid rgba(26,80,90,.55); }
  .action-card .system-actions { grid-template-columns: 1fr; margin: 10px; }
  .system-flow { grid-template-columns: 1fr 28px 22px 58px 22px 28px 1fr; padding: 10px 8px; gap: 3px; }
  .inverter > span { width: 54px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .analysis-card { min-height: 250px; }
}
@media (max-width: 470px) {
  .site-card .site-facts { grid-template-columns: 1fr 1fr; }
  .site-card .site-facts > div { padding: 6px; }
  .system-flow { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-grid article:first-child { grid-column: auto; }
}

/* Compact location card and clean cost inputs. */
.site-card .site-facts {
  position: absolute;
  z-index: 450;
  left: 9px;
  right: auto;
  bottom: 17px;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 18px);
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(58, 116, 118, .78);
  border-radius: 7px;
  background: rgba(3, 31, 39, .93);
  box-shadow: 0 5px 17px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
}
.site-card .site-facts .fact-icon { flex: none; width: 17px; height: 17px; }
.site-card .site-facts > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 160px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.site-card .site-facts > div + div { padding-left: 9px; border-left: 1px solid var(--line-bright); }
.site-card .site-facts strong { font-size: 12px; }
.action-card .card-header { border-right: 0; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* One-line progress labels and consistent data hover feedback. */
.action-card .simulation-progress { grid-template-columns: minmax(105px, 135px) minmax(0, 1fr) 32px; }
.progress-copy strong { font-size: 11px; white-space: nowrap; }
.simulation-progress[data-tip-title] { cursor: help; border-color: rgba(255,152,77,.72); }
.kpi-grid article { transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.kpi-grid article:hover, .kpi-grid article:focus-visible {
  border-color: rgba(16,230,176,.75);
  box-shadow: 0 0 16px rgba(16,230,176,.12);
  transform: translateY(-1px);
  outline: none;
  cursor: help;
}
.donut { cursor: crosshair; transition: filter .16s ease, box-shadow .16s ease; }
.donut:hover, .donut:focus-visible { filter: brightness(1.13); box-shadow: 0 0 22px rgba(16,230,176,.22); outline: none; }
.legend-row { border-radius: 4px; cursor: help; transition: background .16s ease; }
.legend-row:hover, .legend-row:focus-visible { background: rgba(16,230,176,.1); outline: none; }
.month-stack i { cursor: crosshair; transition: filter .16s ease; }
.month-stack i:hover, .month-stack i:focus-visible { filter: brightness(1.35); outline: 1px solid rgba(255,255,255,.6); }
.chart-hit { pointer-events: all; cursor: crosshair; stroke: none; }
.hover-guide { display: none; stroke: var(--green); stroke-width: 1.4; stroke-dasharray: 4 3; pointer-events: none; vector-effect: non-scaling-stroke; }
.hover-guide.visible { display: block; }
.app-tooltip {
  position: fixed; z-index: 5000; left: 0; top: 0; max-width: min(310px, calc(100vw - 16px));
  padding: 9px 12px; border: 1px solid rgba(66,142,142,.85); border-left: 3px solid var(--tooltip-accent, var(--green));
  border-radius: 7px; background: rgba(3,27,36,.97); box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 16px rgba(16,230,176,.08);
  color: #e9f8f5; font-size: 11px; line-height: 1.4; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .12s ease, visibility .12s ease;
}
.app-tooltip.visible { opacity: 1; visibility: visible; }
.app-tooltip strong { display: block; margin-bottom: 4px; color: var(--tooltip-accent, var(--green)); font-size: 12px; }
.app-tooltip span { display: block; color: #c4dbda; white-space: pre-line; }

/* Give the time-series plots more room and place donut labels below each ring. */
.analysis-grid { grid-template-columns: minmax(210px, .58fr) minmax(0, 1.42fr); }
.donut-layout { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.donut { flex: none; width: 112px; height: 112px; margin: 0; }
.plot-legend { width: 100%; gap: 5px; }
.legend-row { font-size: 10px; }
.legend-row b { font-size: 10px; }
.monthly-legend { display: flex; flex: none; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px 12px; min-height: 16px; margin-top: 3px; color: #bdd0d0; font-size: 9px; }
.monthly-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.monthly-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

@media (min-width: 1281px) and (min-height: 900px) {
  .dashboard { grid-template-rows: minmax(0, 56fr) minmax(0, 35fr) minmax(74px, 9fr); }
  .system-flow { padding-bottom: 9px; }
}
@media (max-width: 1280px) { .analysis-grid { grid-template-columns: minmax(210px, .58fr) minmax(0, 1.42fr); } }
@media (max-width: 760px) { .analysis-grid { grid-template-columns: 1fr; } }
@media (max-width: 470px) {
  .site-card .site-facts { max-width: calc(100% - 18px); }
  .site-card .site-facts > div { padding: 0; }
  .site-card .site-facts > div + div { padding-left: 8px; }
}

/* Dispatch uses the space freed by the cost donut. */
.analysis-grid {
  grid-template-columns: minmax(205px, .58fr) minmax(0, 1.42fr);
  grid-template-rows: minmax(0, .86fr) minmax(0, 1.14fr);
}
.dispatch-card { grid-column: 1 / -1; }
.dispatch-card .analysis-title { align-items: center; }
.dispatch-controls { display: flex; align-items: center; gap: 4px; min-width: 0; }
.dispatch-months { display: flex; gap: 2px; margin-right: 6px; padding: 2px; border: 1px solid #37646a; border-radius: 6px; background: #082b35; }
.dispatch-controls .dispatch-months button { border: 0; background: transparent; }
.dispatch-months button[aria-pressed="true"] { background: #0b5c56; color: #dcfff4; box-shadow: inset 0 0 0 1px #10e6b0; }
.dispatch-controls #dispatch-week-label { margin-right: 8px; color: #b6d2d2; font-size: 10px; white-space: nowrap; }
.dispatch-controls button {
  display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px;
  border: 1px solid #37646a; border-radius: 4px; background: #0a3540;
  color: #d1e9e8; font: 700 12px "Manrope", sans-serif; cursor: pointer;
}
.dispatch-controls button:hover:not(:disabled), .dispatch-controls button:focus-visible { border-color: var(--green); color: var(--green); outline: none; }
.dispatch-controls button:disabled { opacity: .35; cursor: default; }
.dispatch-controls #dispatch-window { margin-left: 5px; color: #b6d2d2; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dispatch-chart { display: block; flex: 1; min-height: 0; width: 100%; height: auto; margin-top: 3px; overflow: hidden; touch-action: none; }
.dispatch-axis { fill: #a6bdc0; font-size: 12px; }
.dispatch-unit { fill: #c9dedd; font-size: 11px; font-weight: 700; }
.dispatch-area { opacity: .78; }
.dispatch-day { opacity: .6; }
.dispatch-load { stroke-width: 1.8; }
.dispatch-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
.dispatch-footer small { flex: none; color: #829fa3; font-size: 9px; white-space: nowrap; }
.dispatch-legend { justify-content: flex-start; gap: 4px 10px; margin: 0; color: #c7dbd9; font-size: 9px; }
.dispatch-legend i.line-key { width: 13px; height: 3px; border-radius: 2px; }
.dispatch-card .chart-hit { cursor: grab; }
.dispatch-card .chart-hit:active { cursor: grabbing; }
.price-field input[data-cost] { appearance: none; -moz-appearance: none; }

/* Start all three subtitles at the same height as their section titles. */
.input-header { align-items: flex-start; gap: 10px; }
.input-header > div:first-child { flex: none; }
.input-header p { flex: 1; margin: 0; }
.system-header .currency-switch {
  display: flex; flex: none; align-self: center; gap: 2px; margin-left: auto;
  padding: 2px; border: 1px solid #37646a; border-radius: 6px; background: #082b35;
}
.currency-switch button {
  min-width: 39px; height: 22px; padding: 0 7px; border: 0; border-radius: 4px;
  background: transparent; color: #d1e9e8; font: 700 11px "Manrope", sans-serif; cursor: pointer;
}
.currency-switch button[aria-pressed="true"] {
  background: #0b5c56; color: #dcfff4; box-shadow: inset 0 0 0 1px #10e6b0;
}
.currency-switch button:hover, .currency-switch button:focus-visible { color: var(--green); outline: 1px solid var(--green); }
@media (max-width: 760px) {
  .system-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .system-header > div:first-child { grid-column: 1; grid-row: 1; }
  .system-header .currency-switch { grid-column: 2; grid-row: 1; }
  .system-header p { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
}

/* Shared site navigation. */
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a { padding: 9px 14px; border: 1px solid transparent; border-radius: 7px; color: #bad0d0; text-decoration: none; font-size: 12px; font-weight: 700; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); background: rgba(16,230,176,.08); border-color: var(--line); outline: none; }
.site-nav a[aria-current="page"] { color: var(--green); background: rgba(16,230,176,.09); }
.site-nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--green); }
@media (max-width: 600px) {
  .topbar { height: auto; min-height: 58px; flex-wrap: wrap; justify-content: center; gap: 3px 12px; padding: 8px 12px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; }
  .site-nav { width: 100%; justify-content: center; }
  .site-nav a { padding: 7px 11px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav a { transition: none; }
}

@media (max-width: 760px) {
  .analysis-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .dispatch-card { grid-column: auto; min-height: 330px; }
  .dispatch-controls #dispatch-window { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .dispatch-card .analysis-title { flex-wrap: wrap; }
  .dispatch-controls { flex-wrap: wrap; }
  .dispatch-footer { flex-wrap: wrap; }
}

/* Shared, compact legal navigation and result context. */
.site-footer { min-height: 27px; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 5px 14px; border-top: 1px solid #0d3440; background: #031922; font-size: 11px; }
.site-footer a { color: #b7d5d2; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.result-disclaimer { margin: 5px 2px 0; color: #afc9c6; font-size: 10px; line-height: 1.3; }
.error-result { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 28px; text-align: center; }
.error-result-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,161,79,.75); border-radius: 50%; background: rgba(255,161,79,.12); color: var(--orange); font: 800 26px "Manrope", sans-serif; }
.error-result h3 { margin: 17px 0 7px; color: var(--text); font: 700 19px "Manrope", sans-serif; }
.error-result p { max-width: 480px; margin: 0; color: #c6d9d6; font-size: 13px; line-height: 1.55; }
@media (min-width: 1281px) and (min-height: 900px) {
  body.tool-page .dashboard {
    height: calc(100vh - 85px);
    grid-template-rows: minmax(0, 55fr) minmax(0, 39fr) minmax(62px, 6fr);
  }
  .action-card .card-header { padding-top: 5px; padding-bottom: 5px; }
  .action-card .simulate-button { padding-top: 9px; padding-bottom: 9px; }
}
