.ev-console {
  --ev-ink: var(--ink, #172e2a);
  --ev-muted: var(--muted, #526760);
  --ev-teal: var(--teal, #176a5e);
  --ev-orange: var(--orange, #c25531);
  --ev-line: var(--line, #d4dad0);
  --ev-mono: var(--mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  container-type: inline-size;
  min-width: 0;
  color: var(--ev-ink);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
}
.ev-console *, .ev-console *::before, .ev-console *::after { box-sizing: border-box; }
.ev-console :is(h2, figure, p) { margin: 0; }
.ev-console b { font-weight: 650; }
.ev-console [hidden] { display: none !important; }
.ev-console .ev-mode {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin-bottom: 10px; padding: 3px; border-radius: 7px; background: #edf1e9;
}
.ev-console .ev-mode .ev-key { border-color: transparent; }
.ev-console .ev-mode .ev-key[aria-pressed="true"] { background: #fffefa; border-color: var(--ev-line); color: var(--ev-teal); }
.ev-console .ev-launch-origin { grid-template-columns: 1fr; }
.ev-console .ev-launch-readings {
  margin-top: 8px; padding-inline: 9px; border-left: 3px solid #4a7ea5;
  background: #edf1f3; color: var(--ev-ink); font-size: 12px;
}
.ev-console .ev-launch-readings p { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; }
.ev-console .ev-launch-readings p + p { border-top: 1px solid var(--ev-line); }
.ev-console .ev-launch-readings b { font-family: var(--ev-mono); white-space: nowrap; }
.ev-console [data-e="thrustValue"] { color: #2b628c; }
.ev-console .ev-line, .ev-console .ev-meterhead {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ev-console .ev-meter {
  color: #f8f8ec;
  background: var(--ev-ink);
  padding: 12px 15px 10px;
  border-radius: 8px;
}
.ev-console .ev-meter h2 { display: flex; align-items: baseline; gap: 8px; font-size: 16px; }
.ev-console .ev-meter h2 span {
  color: #acc4b8; font: 10px/1 var(--ev-mono); letter-spacing: .11em;
}
.ev-console .ev-condition {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px;
  color: #e1f4bb; background: #ffffff0e; border: 1px solid #90ad854f;
  border-radius: 4px; font-size: 11px; font-weight: 650;
}
.ev-console .ev-condition::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.ev-console .ev-readout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 8px; align-items: end; padding: 13px 0 11px;
}
.ev-console .ev-cap { display: block; color: #c2d0c6; font-size: 11px; }
.ev-console .ev-cap i, .ev-console .ev-motion i, .ev-console .ev-settings i { font-family: Georgia, serif; }
.ev-console .ev-force, .ev-console .ev-equivalent div { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.ev-console .ev-force { color: #d1eb99; }
.ev-console .ev-force b { font: 550 clamp(29px, 10.1cqi, 45px)/1.1 var(--ev-mono); letter-spacing: -.075em; }
.ev-console .ev-readout small { font: 12px/1 var(--ev-mono); }
.ev-console .ev-equivalent { border-left: 1px solid #ffffff38; padding-left: 13px; }
.ev-console .ev-equivalent b { font: 500 clamp(20px, 6.3cqi, 27px)/1.25 var(--ev-mono); letter-spacing: -.065em; }
.ev-console .ev-motion {
  display: grid; grid-template-columns: auto 1fr; gap: 13px;
  border-top: 1px solid #ffffff34; padding-top: 9px;
}
.ev-console .ev-motion div { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.ev-console .ev-motion div:last-child { justify-content: flex-end; }
.ev-console .ev-motion span { color: #c2d0c6; font-size: 11px; }
.ev-console .ev-motion b { font: 600 14px/1.2 var(--ev-mono); letter-spacing: -.045em; }
.ev-console .ev-motion small { color: #c2d0c6; font: 10px/1 var(--ev-mono); }
.ev-console .ev-tripline { min-height: 40px; padding-block: 6px; }
.ev-console .ev-phase { font-size: 13px; }
.ev-console .ev-altitude { white-space: nowrap; color: var(--ev-muted); font-size: 11px; }
.ev-console .ev-altitude b, .ev-console .ev-clock { font-family: var(--ev-mono); }
.ev-console .ev-tripkeys, .ev-console .ev-auxkeys {
  display: grid; grid-template-columns: 1fr 1fr .85fr; gap: 6px;
}
.ev-console .ev-key, .ev-console .ev-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 44px; min-width: 0; margin: 0; padding: 3px;
  border: 1px solid var(--ev-line); border-radius: 5px; color: var(--ev-ink);
  background: transparent; font-family: inherit;
  font-size: 13px; font-weight: 650; line-height: 1.2; white-space: nowrap;
  touch-action: manipulation; cursor: pointer;
}
.ev-console .ev-key svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ev-console .ev-direction { color: #fffefa; background: var(--ev-teal); border-color: var(--ev-teal); }
.ev-console .ev-direction span { font: 17px/1 var(--ev-mono); }
.ev-console .ev-destination { display: grid; grid-template-columns: 1fr 1fr .65fr; gap: 6px; margin-top: 6px; }
.ev-console .ev-destination label {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 3px;
  color: var(--ev-muted); font-size: 12px; white-space: nowrap;
}
.ev-console .ev-destination select {
  min-width: 0; min-height: 44px; padding-inline: 8px;
  border: 1px solid var(--ev-line); border-radius: 5px; background: transparent;
  color: var(--ev-ink); font: 600 14px var(--ev-mono); cursor: pointer;
}
.ev-console .ev-destination select:disabled { color: var(--ev-muted); cursor: not-allowed; }
.ev-console .ev-destination button {align-self:end;}
.ev-console .ev-scenery {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 4px;padding:8px 0;border-bottom:1px solid var(--ev-line);font-size:12px;color:var(--ev-muted);}
.ev-console .ev-scenery label {display:flex;align-items:center;gap:6px;}
.ev-console .ev-scenery select {min-height:38px;max-width:108px;border:1px solid var(--ev-line);border-radius:5px;padding:4px 8px;color:var(--ev-ink);background:transparent;font:inherit;}
.ev-console .ev-auxkeys { grid-template-columns: 1.15fr .8fr 1fr; gap: 4px; }
.ev-console .ev-auxkeys .ev-key, .ev-console .ev-switch { border-color: transparent; font-size: 12px; }
.ev-console .ev-demo { justify-self: start; color: var(--ev-teal); }
.ev-console .ev-demo::before { content: ""; width: 5px; height: 9px; border-bottom: 2px solid currentColor; border-top: 2px solid currentColor; transform: skewY(-20deg); }
.ev-console .ev-switch { justify-self: end; font-weight: 550; }
.ev-console .ev-switch input { width: 16px; height: 16px; margin: 0; accent-color: var(--ev-teal); }
.ev-console .ev-key:disabled { color: #68756e; border-color: #d8ded5; background: #eff1ea; cursor: not-allowed; }
.ev-console .ev-auxkeys .ev-key:disabled { border-color: transparent; background: transparent; color: #78837c; }
@media (hover: hover) {
  .ev-console :is(.ev-key:not(:disabled), .ev-switch, summary):hover { background: #edf2e8; }
  .ev-console .ev-direction:not(:disabled):hover { background: var(--ev-ink); }
}
.ev-console :is(button, input, select, summary):focus-visible { outline: 3px solid var(--ev-orange); outline-offset: 2px; }
.ev-console .ev-hint { color: var(--ev-muted); font-size: 12px; line-height: 1.5; }
.ev-console .ev-settings {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px;
  margin: 10px 0 12px; padding: 9px 0 0; border-block: 1px solid var(--ev-line);
}
.ev-console .ev-settings label { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 3px; font-size: 12px; }
.ev-console .ev-settings label > span { white-space: nowrap; }
.ev-console:has([data-e="launchMode"][aria-pressed="true"]) .ev-settings label {
  grid-template-columns: minmax(0, 1fr) auto;
}
.ev-console:has([data-e="launchMode"][aria-pressed="true"]) .ev-settings label > span { white-space: normal; }
.ev-console .ev-settings b { text-align: end; color: var(--ev-teal); font: 600 11px/1.3 var(--ev-mono); white-space: nowrap; }
.ev-console .ev-settings input { grid-column: 1 / -1; display: block; width: 100%; height: 44px; margin: 0; padding: 0; accent-color: var(--ev-teal); cursor: pointer; }
.ev-console .ev-settings input:disabled { cursor: not-allowed; }
.ev-console .ev-plot figcaption strong { font-size: 14px; }
.ev-console .ev-clock { color: var(--ev-muted); font-size: 11px; }
.ev-console .ev-legend { display: flex; gap: 14px; margin: 4px 0 0; color: var(--ev-muted); font-size: 11px; }
.ev-console .ev-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ev-console .ev-legend span::before { content: ""; width: 15px; border-top: 2px solid var(--ev-teal); }
.ev-console .ev-legend span + span::before { border-color: var(--ev-orange); border-style: dashed; border-width: 1px 0 0; }
.ev-console .ev-plot svg { display: block; width: 100%; height: auto; max-height: 112px; overflow: visible; }
.ev-console .ev-plot path, .ev-console .ev-plot line { fill: none; vector-effect: non-scaling-stroke; }
.ev-console .ev-grid path { stroke: var(--ev-line); stroke-width: .7; }
.ev-console .ev-axis, .ev-console .ev-weightlabel { fill: var(--ev-muted); font: 10px var(--ev-mono); }
.ev-console .ev-weightlabel { fill: var(--ev-orange); }
.ev-console .ev-baseline { stroke: var(--ev-orange); stroke-width: 1.2; stroke-dasharray: 4 3; }
.ev-console .ev-trace { stroke: var(--ev-teal); stroke-width: 2; stroke-linejoin: round; }
.ev-console .ev-cursor { fill: var(--ev-teal); stroke: #fffefa; stroke-width: 1; }
.ev-console .ev-law { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 7px; margin-top: 7px; padding: 7px 9px; border-left: 3px solid var(--ev-teal); background: #eef2e8; }
.ev-console .ev-law > span, .ev-console .ev-law > small { font-size: 11px; }
.ev-console .ev-law strong { font: italic 600 18px/1.15 Georgia, serif; }
.ev-console .ev-law small { color: var(--ev-muted); white-space: nowrap; }
.ev-console .ev-law small b, .ev-console .ev-lengths b { font-family: var(--ev-mono); }
.ev-console .ev-details { color: var(--ev-muted); font-size: 12px; }
.ev-console .ev-details summary { display: list-item; width: fit-content; min-height: 44px; padding-block: 13px 8px; color: var(--ev-teal); font-weight: 650; cursor: pointer; }
.ev-console .ev-details p { margin-bottom: 6px; line-height: 1.65; }
.ev-console .ev-details p:last-child { margin-bottom: 0; }
@container (max-width: 288px) {
  .ev-console .ev-meter { padding-inline: 10px; }
  .ev-console .ev-motion { gap: 5px; }
  .ev-console .ev-motion div { gap: 3px; }
  .ev-console .ev-settings { gap: 8px; }
}
