/* Carbon budget simulator — light, modern Seoul palette */
:root{
  --bg:#eef2f4; --panel:#ffffff; --ink:#18232b; --ink2:#3b4a54; --muted:#6a7983; --line:#d6dee3;
  --accent:#0f6e74; --accent-ink:#ffffff; --accent-text:#0b5f65; --btn:#f7f9fa; --q-bg:#e3f1f1; --hot:#c4462d;
  --top-bg:#ffffff; --top-line:#d6dee3; --top-ink:#18232b; --top-muted:#6a7983; --top-hover:#eef4f5;
  --stat-bg:#14262f; --stat-line:#14262f; --stat-ink:#ffffff; --stat-muted:#9fb3bd;
  --tip-bg:#14262f; --tip-ink:#e8f0f3; --tip-head:#7fd3cf; --foot:#6a7983; --intro-bg:#0d1820;
  --ck-dial-hi:#e9eef0; --ck-dial-lo:#b9c6cc; --ck-dial-rim:#2c3d46; --ck-dial-tick:#33444c; --ck-dial-arm:#22323a; --ck-knob:#0f6e74;
  --panel-shadow:0 1px 2px rgba(20,38,47,.06);
}
.cb-app{grid-template-columns:470px minmax(0,1fr)}
.cb-inputs,.cb-results{display:flex;flex-direction:column}
.cb-chart{width:100%;display:block;touch-action:none}
#emisChart{height:clamp(220px,30vh,340px)}
.cb-tchart{height:clamp(150px,19vh,210px)}
.cb-stage{position:relative;height:clamp(230px,30vh,360px)}
.cb-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;border-radius:8px}
#stats dd{white-space:normal}
.cb-val,.cb-rng{display:inline-block;white-space:nowrap}
.cb-rng{font-size:.86em}
#pLev{margin-top:auto;border-top:1px solid var(--line);padding-top:8px}
/* svg chart parts */
.ax{fill:var(--muted);font-size:11px}
.grid{stroke:#e6ecef;stroke-width:1}
.zero{stroke:#9fb0b8;stroke-width:1}
.epath{fill:none;stroke:var(--accent);stroke-width:2.6}
.earea{fill:var(--accent);opacity:.12}
.eneg{fill:#2f7d4f;opacity:.18}
.ept{fill:#fff;stroke:var(--accent);stroke-width:2.4;cursor:ns-resize}
.ept:focus{outline:none;stroke:#000;stroke-width:3}
.ept-hit{fill:transparent;cursor:ns-resize}
.eval{font-size:11px;font-weight:700;fill:var(--ink)}
.obs{fill:none;stroke:#55656e;stroke-width:1.4}
.tline{fill:none;stroke:var(--hot);stroke-width:2.6}
.tband{fill:var(--hot);opacity:.13}
.tghost{fill:none;stroke:#3b4a54;stroke-width:1.5;stroke-dasharray:5 4}
.lim{stroke-width:1.2;stroke-dasharray:4 4}
.limlab{font-size:11px;font-weight:700}
.play{stroke:#18232b;stroke-width:1.4}
.playlab{font-size:11px;font-weight:700;fill:#18232b}
.ndc{fill:none;stroke:#c4462d;stroke-width:1.2;stroke-dasharray:3 3}
@media (max-width:1100px){ .cb-app{grid-template-columns:minmax(0,1fr)} }
