/* Flight experiment console, scoped to the private mission preview. */
.ec-section {
  --ec-paper: #f3f6fc;
  --ec-muted: #b6c1d0;
  --ec-quiet: #9baabd;
  --ec-stroke: #303a48;
  --ec-accent: #a3c4ff;
  --ec-trace: #83b3ff;
  --ec-gutter: clamp(17px, 2.7vw, 42px);
  color: var(--ec-paper);
  background: #080c12;
  padding: clamp(70px, 7.6vw, 126px) 0;
  font-family: Inter, Arial, sans-serif;
}
.ec-section h2, .ec-section h3, .ec-section h4,
.ec-section p, .ec-section figure { margin: 0; }
.ec-section button, .ec-section summary {
  font: inherit;
  color: inherit;
}
.ec-section :is(button, summary, input, .ec-workspace, .ec-table-scroll):focus-visible {
  outline: 2px solid #a5c8ff;
  outline-offset: 3px;
}
.ec-header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
  align-items: end;
  gap: clamp(20px, 6vw, 92px);
  margin-bottom: clamp(25px, 3.4vw, 54px);
}
.ec-header h2 {
  font: 500 clamp(42px, 5.5vw, 82px)/.99 var(--display);
  letter-spacing: -.064em;
  color: inherit;
}
.ec-header > p {
  max-width: 42ch;
  color: var(--ec-muted);
  font: 400 clamp(15px, 1.28vw, 20px)/1.55 var(--sans);
}
.ec-instruments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--ec-stroke);
}
.ec-instruments button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.45vw, 25px);
  padding: clamp(10px, 1.28vw, 22px) clamp(10px, 1.35vw, 28px);
  color: #c0c8d6;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  text-align: left;
  transition: background .22s, color .22s, border-color .22s;
}
.ec-instruments button+button { border-left: 1px solid var(--ec-stroke); }
.ec-instruments button:hover { background: #141c28; color: #fff; }
.ec-instruments button:is([aria-selected=true], [aria-pressed=true]) {
  color: #fff;
  background: #152132;
  border-bottom-color: var(--ec-trace);
}
.ec-instruments img {
  width: clamp(46px, 5.5vw, 89px);
  height: clamp(37px, 4.5vw, 67px);
  object-fit: contain;
  flex: 0 0 auto;
  opacity: .8;
}
.ec-instruments button:is([aria-selected=true],[aria-pressed=true],:hover) img { opacity: 1; }
.ec-instruments span {
  min-width: 0;
  font: 530 clamp(15px, 1.4vw, 24px)/1.2 var(--display);
  letter-spacing: -.035em;
}
.ec-workspace {
  margin-top: clamp(18px, 1.9vw, 32px);
  padding: var(--ec-gutter);
  border: 1px solid var(--ec-stroke);
  background: #10161e;
  color-scheme: dark;
}
.ec-workhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.ec-workhead h3 {
  font: 500 clamp(25px, 2.6vw, 39px)/1.1 var(--display);
  letter-spacing: -.05em;
}
.ec-workhead p:not(.ec-sim) {
  color: var(--ec-muted);
  max-width: 66ch;
  margin-top: 7px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.52;
}
.ec-sim {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding-top: 5px;
  color: #c1d7fc;
  font: 600 10px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
.ec-sim::before { content: ''; width: 6px; height: 6px; background: var(--ec-trace); border-radius: 50%; }
.ec-section fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.ec-window, .ec-options {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
}
.ec-section legend, .ec-controls label, .ec-inspect label, .ec-title p {
  color: var(--ec-quiet);
  font: 600 10px/1.5 var(--sans);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.ec-section legend { padding: 0; margin: 0 0 7px; }
.ec-window button, .ec-options button {
  background: #171f2a;
  padding: 7px 11px;
  min-height: 32px;
  border: 1px solid #364352;
  border-radius: 0;
  font: 500 12px/1.25 var(--sans);
  color: #cad4e3;
  transition: background .18s, color .18s, border-color .18s;
}
.ec-window button:hover, .ec-options button:hover { border-color: #71869f; color: white; }
.ec-window button:is([aria-pressed=true],[aria-selected=true]),
.ec-options button:is([aria-pressed=true],[aria-selected=true]) {
  background: #253750;
  color: #e7f1ff;
  border-color: #799bc8;
}
.ec-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 13px clamp(18px, 2.4vw, 40px);
  padding: 20px 0 22px;
}
.ec-plots {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr);
  border: 1px solid var(--ec-stroke);
  background: #0b1017;
}
.ec-series, .ec-instant {
  position: relative;
  min-width: 0;
  padding: clamp(14px, 1.55vw, 25px);
  align-content: start;
}
.ec-instant { border-left: 1px solid var(--ec-stroke); }
.ec-title h4 {
  font: 500 clamp(16px, 1.45vw, 23px)/1.25 var(--display);
  margin: 4px 0;
  letter-spacing: -.035em;
  color: #edf2f9;
}
.ec-section [data-ec=reading] {
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  color: #e1edff;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ec-section [data-ec=reading] strong { font-size: clamp(23px, 2.25vw, 34px); font-weight: 500; letter-spacing: -.055em; }
.ec-section [data-ec=reading] small { font-size: .78rem; font-weight: 500; color: var(--ec-quiet); }
.ec-plot, .ec-secondary-svg { display: block; width: 100%; height: clamp(164px, 15.5vw, 240px); overflow: visible; }
.ec-plot { cursor: crosshair; }
.ec-section svg .ec-grid { stroke: #303b47; stroke-width: 1px; }
.ec-section svg .ec-line { stroke: var(--ec-trace); fill: none; stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.ec-section svg .ec-text { fill: #a8b4c6; font-size: 10px; font-family: Inter, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.ec-section svg .ec-marker, .ec-section svg .ec-guide { stroke: #bdccde; stroke-width: 1px; stroke-dasharray: 3 5; }
.ec-section svg .ec-dot { stroke: #a3c7ff; fill: #f5f8ff; stroke-width: 2px; }
.ec-section svg .ec-area { fill: #76a6ee; fill-opacity: .105; }
.ec-section svg .ec-bar { fill: #536f94; }
.ec-section svg .ec-bar.ec-active { fill: #92bcff; }
.ec-table tr[aria-current=true] { color: #e6f0ff; background: #213046; }
.ec-section svg .ec-zero { stroke: #8797ac; stroke-width: 1px; }
.ec-inspect {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  color: var(--ec-muted);
}
.ec-inspect input[type=range] { flex: 1; min-width: 95px; accent-color: #99bcf7; cursor: pointer; }
.ec-inspect output { font-size: 13px; font-variant-numeric: tabular-nums; }
.ec-bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 16px; margin-top: 19px; border-top: 1px solid var(--ec-stroke); padding-top: 12px; }
.ec-section .ec-export, .ec-section .ec-table summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  padding: 6px 0;
  background: transparent;
  color: #d4e3fa;
  font: 550 13px/1.35 var(--sans);
}
.ec-section .ec-export:hover, .ec-section .ec-table summary:hover { color: #fff; }
.ec-export svg { width: 16px; height: 16px; flex-shrink: 0; }
.ec-table { min-width: 0; color: var(--ec-muted); }
.ec-table[open] { flex-basis: 100%; }
.ec-table summary { list-style-type: none; }
.ec-table summary::-webkit-details-marker { display: none; }
.ec-table summary::after { content: ''; width: 7px; height: 7px; margin: -3px 2px 0; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.ec-table[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.ec-table table { border-collapse: collapse; font: 400 12px/1.4 var(--sans); font-variant-numeric: tabular-nums; text-align: left; width: 100%; }
.ec-table th, .ec-table td { border-bottom: 1px solid var(--ec-stroke); padding: 8px 10px; vertical-align: top; }
.ec-table th { color: #e2ebf7; font-weight: 550; background: #18212d; }
.ec-note, .ec-status { font: 400 12px/1.5 var(--sans); color: var(--ec-quiet); }
.ec-status:empty { display: none; }
.ec-window { width: fit-content; gap: 0; border: 1px solid #425063; }
.ec-window button { padding: 8px 17px; border: 0; min-height: 35px; }
.ec-window button+button { border-left: 1px solid #425063; }
.ec-window button:is([aria-selected=true],[aria-pressed=true]) { color: #152337; background: #c6d9f6; }
.ec-title { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; min-height: 48px; }
.ec-title .ec-reading { padding-top: 7px; }
.ec-axis-title { text-align: center; color: var(--ec-quiet); font-size: 11px; line-height: 1.4; letter-spacing: .012em; }
.ec-inspect label { display: inline-flex; align-items: baseline; gap: 12px; }
.ec-inspect strong { color: #e2eafa; font: 500 16px/1.3 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.012em; }
.ec-section .ec-note { margin-top: 8px; letter-spacing: -.01em; }

.ec-table-scroll { max-height: 240px; overflow: auto; scrollbar-color: #56677e #131b25; margin-top: 7px; }
.ec-table .ec-table-scroll th { position: sticky; top: 0; z-index: 1; }
.ec-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ec-section .ec-status:not(:empty) { margin-top: 8px; }
.ec-table[open] + .ec-export { margin-left: auto; }
@media (max-width: 880px) {
  .ec-plots { grid-template-columns: minmax(0, 1.35fr) minmax(208px, 1fr); }
  .ec-instruments span { font-size: clamp(13px, 2.05vw, 18px); }
  .ec-series, .ec-instant { padding: 13px; }
}
@media (max-width: 680px) {
  .ec-header { grid-template-columns: 1fr; gap: 15px; }
  .ec-workhead { flex-wrap: wrap; }
  .ec-workhead .ec-sim { padding-top: 0; }
  .ec-plots { grid-template-columns: minmax(0, 1fr); }
  .ec-instant { border-top: 1px solid var(--ec-stroke); border-left: 0; }
  .ec-instruments button { flex-direction: column; align-items: flex-start; justify-content: start; gap: 6px; padding: 9px 8px 11px; }
  .ec-instruments img { width: 53px; height: 37px; }
  .ec-section .ec-instruments span { font-size: clamp(12px, 2.6vw, 16px); }
  .ec-workspace { padding: 14px; }
  .ec-controls { flex-direction: column; }
  .ec-series, .ec-instant { padding: 14px 10px 12px; }
  .ec-title .ec-reading { padding-top: 0; }
  .ec-plot { height: 160px; }
  .ec-secondary-svg { height: 135px; }
  .ec-title { min-height: 44px; }
  .ec-window button, .ec-options button { padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-section * { transition-duration: 0s !important; }
}
@media (max-width: 390px) {
  .ec-section .ec-workspace { padding: 12px; }
  .ec-bottom { gap: 3px 12px; }
  .ec-sim { font-size: 9px; }
  .ec-options { gap: 4px; }
}
