:root {
  --bg: #0b0f17;
  --panel: #11192a;
  --text: #e9eefc;
  --muted: #9fb0d0;
  --accent: #5aa2ff;
  --accent2: #6cffc7;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 15%, rgba(90, 162, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 80% 0%, rgba(108, 255, 199, 0.12), transparent 55%),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100svh;
  font: 15px/1.4 var(--sans);
}
.app {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 14px;
}
.hero,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}
.hero {
  padding: 16px;
}
.hero h1 {
  margin: 0 0 4px;
}
.test-tabs {
  margin: 10px 0 10px;
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}
.tab-btn {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
}
.tab-btn[aria-selected="true"] {
  border-color: rgba(90, 162, 255, 0.4);
  background: linear-gradient(180deg, rgba(90, 162, 255, 0.25), rgba(90, 162, 255, 0.12));
}
.hero p {
  margin: 0;
  color: rgba(233, 238, 252, 0.78);
}
.panel {
  padding: 14px;
}
.test-pane[hidden] {
  display: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.holding-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.manual-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.manual-stats .stat {
  min-height: 108px;
}
.top-input-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
}
.top-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  padding: 10px;
}
.stat .label {
  color: rgba(233, 238, 252, 0.72);
  font-size: 12px;
  margin-bottom: 4px;
}
.card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.card-head .label {
  margin-bottom: 0;
}
.card-head-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stat .value {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
}
.dial-wrap {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}
.dial-layout {
  display: grid;
  grid-template-columns: minmax(0, 200px) 188px;
  gap: 8px;
  width: 100%;
  align-items: start;
  justify-content: center;
}
.radial-dial {
  position: relative;
  width: min(200px, 100%);
  justify-self: center;
  overflow: visible;
}
.dial-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.dial-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 10;
  stroke-linecap: round;
}
.dial-track-gradient-delay {
  stroke: url(#dialGradDelay);
}
.dial-track-gradient-rate {
  stroke: url(#dialGradRate);
}
.dial-track-gradient-trigger {
  stroke: url(#dialGradTrigger);
}
.dial-track-gradient-manual-trigger {
  stroke: url(#dialGradManualTrigger);
}
.dial-track-gradient-manual-press {
  stroke: url(#dialGradManualPress);
}
.dial-track-gradient-manual-downdown {
  stroke: url(#dialGradManualDownDown);
}
.dial-ticks line {
  stroke: rgba(245, 249, 255, 0.96);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.dial-annotation-bands path {
  fill: none;
  stroke-linecap: butt;
  stroke-width: 6;
  opacity: 0.7;
}
.dial-annotation-bands path.is-active {
  opacity: 1;
  stroke-width: 8;
}
.dial-band-cant-type {
  stroke: #ef4444;
}
.dial-band-filterkey {
  stroke: #22c55e;
}
.dial-band-regular {
  stroke: #facc15;
}
.dial-band-too-slow {
  stroke: #f97316;
}
.dial-band-rate-filterkey {
  stroke: #22c55e;
}
.dial-band-rate-regular {
  stroke: #facc15;
}
.dial-band-rate-throttle {
  stroke: #f97316;
}
.dial-band-trigger-ideal {
  stroke: #22c55e;
}
.dial-band-trigger-regular {
  stroke: #facc15;
}
.dial-band-trigger-too-slow {
  stroke: #f97316;
}
.dial-tick-label {
  fill: rgba(233, 238, 252, 0.66);
  font: 10px/1 var(--mono);
  text-anchor: middle;
}
.dial-needle-wrap {
  transform-origin: 100px 100px;
  transform: rotate(-180deg);
  transition: transform 0.18s ease-out;
}
.dial-needle {
  stroke: rgba(233, 238, 252, 0.96);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.dial-hub {
  fill: rgba(233, 238, 252, 0.9);
}
.dial-scale {
  margin-top: -2px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(233, 238, 252, 0.72);
}
.dial-live-value {
  min-width: 72px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 8px;
  background: rgba(8, 12, 20, 0.78);
}
.dial-live-value.is-out-of-range {
  border-color: rgba(255, 159, 67, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.2);
  color: #ffd39a;
}
.dial-speed-fast {
  text-align: right;
}
.stat-key-bonk {
  display: grid;
  align-content: start;
  gap: 8px;
}
.sub-stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.16);
}
.sub-label {
  color: rgba(233, 238, 252, 0.72);
  font-size: 11px;
}
.sub-value {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
}
.sub-stat-manual {
  margin-top: 8px;
}
.top-input-card .sub-stat,
.top-input-card .sub-stat-manual {
  margin-top: 0;
  display: grid;
  align-content: start;
  min-height: 96px;
}
.sub-value-compact {
  font-size: 18px;
}
.top-input-log-block {
  display: grid;
  min-height: 0;
  align-self: stretch;
}
.top-input-log-block textarea {
  min-height: 140px;
  height: 100%;
  resize: none;
}
.top-input-log-block textarea::placeholder {
  color: rgba(233, 238, 252, 0.42);
}
.sub-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.sub-card-controls {
  justify-self: end;
}
.value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.value-row-select {
  display: grid;
  grid-template-columns: minmax(0, 200px) 188px;
  justify-content: center;
  align-items: center;
  margin-top: -24px;
}
.value-row-select .dial-live-value {
  grid-column: 1;
  justify-self: center;
}
.dial-value-only {
  display: grid;
  grid-template-columns: minmax(0, 200px);
  justify-content: center;
  margin-top: -24px;
}
.dial-value-only .dial-live-value {
  justify-self: center;
}
.dial-annotation-text {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(233, 238, 252, 0.86);
}
.dial-legend {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  padding: 8px;
  display: grid;
  gap: 6px;
  width: 188px;
}
.dial-legend-item {
  display: grid;
  grid-template-columns: 14px 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: rgba(233, 238, 252, 0.88);
  border-radius: 6px;
  padding: 2px 4px;
}
.dial-legend-item.is-active {
  background: rgba(255, 255, 255, 0.11);
}
.dial-legend-item.is-active .dial-legend-label {
  font-weight: 700;
  color: #fff;
}
.dial-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.dial-legend-range {
  font-family: var(--mono);
  text-align: right;
  white-space: nowrap;
}
.dial-legend-label {
  text-align: left;
  white-space: nowrap;
}
.dial-legend-swatch.dial-band-cant-type,
.dial-legend-swatch.dial-band-filterkey,
.dial-legend-swatch.dial-band-regular,
.dial-legend-swatch.dial-band-too-slow,
.dial-legend-swatch.dial-band-rate-filterkey,
.dial-legend-swatch.dial-band-rate-regular,
.dial-legend-swatch.dial-band-rate-throttle,
.dial-legend-swatch.dial-band-trigger-ideal,
.dial-legend-swatch.dial-band-trigger-regular,
.dial-legend-swatch.dial-band-trigger-too-slow {
  stroke: none;
}
.dial-legend-swatch.dial-band-cant-type { background: #ef4444; }
.dial-legend-swatch.dial-band-filterkey { background: #22c55e; }
.dial-legend-swatch.dial-band-regular { background: #facc15; }
.dial-legend-swatch.dial-band-too-slow { background: #f97316; }
.dial-legend-swatch.dial-band-rate-filterkey { background: #22c55e; }
.dial-legend-swatch.dial-band-rate-regular { background: #facc15; }
.dial-legend-swatch.dial-band-rate-throttle { background: #f97316; }
.dial-legend-swatch.dial-band-trigger-ideal { background: #22c55e; }
.dial-legend-swatch.dial-band-trigger-regular { background: #facc15; }
.dial-legend-swatch.dial-band-trigger-too-slow { background: #f97316; }
.mini-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 20px 8px 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
  line-height: 20px;
  height: 38px;
  min-height: 38px;
  width: 102px;
  min-width: 102px;
  max-width: 102px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='%23e9eefc' d='M1 3.25L5 7l4-3.75-.8-.85L5 5.45 1.8 2.4z'/%3E%3C/svg%3E");
  background-position: right 6px center;
  background-size: 9px 9px;
  background-repeat: no-repeat;
}
.mini-select::-ms-expand {
  display: none;
}
.mini-select:focus {
  outline: none;
  border-color: rgba(90, 162, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(90, 162, 255, 0.15);
}
.mini-select option {
  background: #0f1626;
  color: var(--text);
}
.progress-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-bar > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.18s ease;
}
.progress-text {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(233, 238, 252, 0.72);
  white-space: nowrap;
}
.plot-block {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto 320px;
  min-height: 0;
}
.plot-header {
  margin-bottom: 6px;
}
.plot-title {
  font-size: 13px;
  font-weight: 700;
}
.plot-subtitle {
  font-size: 11px;
  color: rgba(233, 238, 252, 0.68);
}
.plot-legend {
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: rgba(233, 238, 252, 0.8);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-swatch {
  width: 14px;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
}
.legend-swatch.press {
  background: #5aa2ff;
}
.legend-swatch.wait {
  background: #6cffc7;
}
.legend-swatch.downdown {
  background: #ff9f43;
}
.legend-swatch.hold {
  background: #5aa2ff;
}
.legend-swatch.trigger {
  background: #ff5ea8;
}
.legend-swatch.initial {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd166;
  border: 1px solid rgba(0, 0, 0, 0.45);
}
.legend-swatch.avg {
  width: 20px;
  background:
    repeating-linear-gradient(
      90deg,
      #5aa2ff 0 6px,
      transparent 6px 8px,
      #6cffc7 8px 14px,
      transparent 14px 16px
    );
}
.plot-canvas {
  width: 100%;
  min-height: 0;
  height: 320px;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}
.panel-plots #holdingPlotTabPanel:not([hidden]) {
  display: grid;
  grid-template-rows: auto;
  min-height: 0;
}
.panel-plots #holdingPlotTabPanel:not([hidden]) .plot-block {
  height: auto;
}
.panel-plots #manualPlotTabPanel:not([hidden]) {
  display: grid;
  grid-template-rows: auto;
  min-height: 0;
}
.panel-plots #manualPlotTabPanel:not([hidden]) .plot-block {
  height: auto;
}
.actions {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.panel-actions .actions {
  margin-bottom: 0;
}
.actions #viewModeToggleBtn {
  margin-left: auto;
}
.actions .knob-toggle {
  position: relative;
  border-radius: 999px;
  padding: 8px 12px 8px 66px;
  min-height: 40px;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.18);
  border-color: var(--border);
}
.actions .knob-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.actions .knob-toggle::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: left 0.15s ease;
}
.actions .knob-toggle[aria-pressed="true"]::before {
  background: rgba(90, 162, 255, 0.22);
  border-color: rgba(90, 162, 255, 0.55);
}
.actions .knob-toggle[aria-pressed="true"]::after {
  left: 32px;
}
.panel-plots .plot-block:first-child {
  margin-top: 0;
}
.action-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: rgba(233, 238, 252, 0.72);
  font-size: 12px;
}
.nav-rail {
  width: min(280px, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  padding: 10px;
}
.nav-rail-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(233, 238, 252, 0.9);
  margin: 0;
}
.nav-rail-toggle {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.nav-rail-sections {
  display: grid;
  gap: 10px;
}
.nav-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
  padding: 8px;
}
.nav-home-card {
  display: grid;
  gap: 8px;
}
.nav-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nav-group {
  display: grid;
  gap: 6px;
}
.nav-group-title {
  color: rgba(233, 238, 252, 0.62);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0 2px;
}
.nav-rail-list {
  display: grid;
  gap: 8px;
}
.nav-rail-link {
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 650;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.06s ease;
}
.nav-rail-link:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.24);
}
.nav-rail-link:active {
  transform: translateY(1px);
}
.nav-rail-link.is-active {
  border-color: rgba(90, 162, 255, 0.38);
  background: linear-gradient(180deg, rgba(90, 162, 255, 0.22), rgba(90, 162, 255, 0.09));
}
.compact-link {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav-rail.is-collapsed {
  width: 64px;
  padding: 10px 8px;
}
.nav-rail.is-collapsed .nav-card:not(.nav-home-card) {
  display: none;
}
.nav-rail.is-collapsed .nav-home-card .nav-rail-list,
.nav-rail.is-collapsed .nav-home-card .nav-rail-title {
  display: none;
}
.bongo-panel {
  width: min(380px, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  padding: 10px;
  display: grid;
  gap: 10px;
}
.panel-head {
  display: flex;
  justify-content: flex-end;
}
.panel-toggle-btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.bongo-panel.is-collapsed {
  width: 56px;
  padding: 10px 8px;
}
.bongo-panel.is-collapsed .bongo-frame,
.bongo-panel.is-collapsed .bonk-block {
  display: none;
}
.bongo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 40% 28%, rgba(90, 162, 255, 0.12), transparent 62%),
    rgba(0, 0, 0, 0.18);
  padding: 8px;
  aspect-ratio: 650 / 475;
  display: grid;
  place-items: center;
}
.bongo-display {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  image-rendering: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.bongo-display.is-active {
  opacity: 1;
  visibility: visible;
}
.bonk-block {
  display: grid;
  gap: 8px;
}
.bonk-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 40% 28%, rgba(90, 162, 255, 0.1), transparent 62%),
    rgba(0, 0, 0, 0.18);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 8px;
}
.bonk-display {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.bonk-display.is-active {
  opacity: 1;
  visibility: visible;
}
.inline-input-row {
  margin-top: 8px;
  display: inline-grid;
  gap: 6px;
  justify-self: start;
  color: rgba(233, 238, 252, 0.84);
  font-size: 12px;
}
.inline-number-input {
  width: min(180px, 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  font: 13px/1.2 var(--mono);
  min-height: 36px;
  line-height: 1.25;
}
.inline-number-input:focus {
  outline: none;
  border-color: rgba(90, 162, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(90, 162, 255, 0.15);
}
button {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.06s ease, border-color 0.15s ease, background 0.15s ease;
}
button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.24);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-link {
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 650;
}
.btn-link:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.24);
}
.logs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.log-block {
  display: grid;
  gap: 6px;
}
.log-label {
  display: block;
  color: rgba(233, 238, 252, 0.72);
  font-size: 12px;
}
textarea {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 10px;
  font: 13px/1.4 var(--mono);
  resize: vertical;
}
.note {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(233, 238, 252, 0.62);
}
@media (max-width: 760px) {
  .logs {
    grid-template-columns: 1fr;
  }
  textarea {
    min-height: 180px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .top-input-grid {
    grid-template-columns: 1fr;
  }
  .dial-layout {
    grid-template-columns: 1fr;
  }
  .dial-legend {
    order: 2;
  }
  .value-row-select {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: -10px;
  }
  .dial-value-only {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: -10px;
  }
  .card-head {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 6px;
  }
  .radial-dial {
    width: min(180px, 100%);
    justify-self: center;
  }
  .plot-canvas {
    height: 220px;
  }
}
@media (min-width: 1280px) {
  .nav-rail {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 5;
  }
  .bongo-panel {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 5;
  }
}
body.is-fullscreen-view {
  overflow: hidden;
}
body.is-fullscreen-view .app {
  width: min(1880px, calc(100vw - 32px));
  height: min(950px, calc(100svh - 32px));
  margin: 16px auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1.28fr) minmax(220px, 0.72fr);
  grid-template-areas:
    "actions actions"
    "data plots"
    "bongo logs";
  gap: 10px;
  align-items: stretch;
}
body.is-fullscreen-view .nav-rail {
  display: none;
}
body.is-fullscreen-view .hero {
  display: none;
}
body.is-fullscreen-view .panel-actions {
  grid-area: actions;
}
body.is-fullscreen-view .panel-data {
  grid-area: data;
}
body.is-fullscreen-view .panel-plots {
  grid-area: plots;
}
body.is-fullscreen-view .panel-logs {
  grid-area: logs;
}
body.is-fullscreen-view .bongo-panel {
  grid-area: bongo;
}
body.is-fullscreen-view .panel-actions .actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
body.is-fullscreen-view .panel-actions .actions .test-tabs {
  margin: 0 10px 0 0;
  padding: 3px;
}
body.is-fullscreen-view .panel.panel-actions {
  padding: 8px 10px;
}
body.is-fullscreen-view .panel-actions button {
  padding: 7px 10px;
  font-size: 13px;
}
body.is-fullscreen-view .panel-actions .knob-toggle {
  padding: 7px 10px 7px 64px;
  min-height: 36px;
}
body.is-fullscreen-view .actions #viewModeToggleBtn {
  margin-left: auto;
}
body.is-fullscreen-view .panel-actions .tab-btn {
  padding: 6px 9px;
}
body.is-fullscreen-view .app > * {
  min-height: 0;
}
body.is-fullscreen-view .panel,
body.is-fullscreen-view .hero,
body.is-fullscreen-view .bongo-panel {
  overflow: hidden;
}
body.is-fullscreen-view .panel-data,
body.is-fullscreen-view .panel-plots,
body.is-fullscreen-view .panel-logs {
  overflow: hidden;
}
body.is-fullscreen-view .stats {
  align-items: start;
}
body.is-fullscreen-view .holding-stats,
body.is-fullscreen-view .manual-stats {
  align-items: stretch;
}
body.is-fullscreen-view .stat {
  height: auto;
}
body.is-fullscreen-view .top-input-log-block textarea {
  min-height: 0;
  height: 100%;
}
body.is-fullscreen-view .trigger-dial-card {
  padding-top: 8px;
  padding-bottom: 8px;
}
body.is-fullscreen-view .trigger-dial-card .dial-wrap {
  margin-bottom: 4px;
}
body.is-fullscreen-view .trigger-dial-card .radial-dial {
  width: min(200px, 100%);
}
body.is-fullscreen-view .trigger-dial-card .dial-layout {
  grid-template-columns: minmax(0, 200px) 188px;
  gap: 8px;
}
body.is-fullscreen-view .trigger-dial-card .dial-legend {
  gap: 8px;
  font-size: 11px;
}
body.is-fullscreen-view .manual-metric-dial-card .radial-dial {
  width: min(200px, 100%);
}
body.is-fullscreen-view .manual-metric-dial-card .dial-layout {
  grid-template-columns: minmax(0, 200px) 188px;
  gap: 8px;
}
body.is-fullscreen-view .manual-metric-dial-card .dial-legend {
  gap: 8px;
  font-size: 11px;
}
body.is-fullscreen-view .panel-plots .test-pane {
  height: 100%;
  min-height: 0;
}
body.is-fullscreen-view .panel-plots #holdingPlotTabPanel:not([hidden]) {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}
body.is-fullscreen-view .panel-plots #manualPlotTabPanel:not([hidden]) {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}
body.is-fullscreen-view .panel-plots #holdingPlotTabPanel .plot-block,
body.is-fullscreen-view .panel-plots #manualPlotTabPanel .plot-block {
  height: 100%;
}
body.is-fullscreen-view .panel-plots .plot-block {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "header"
    "legend"
    "canvas";
  grid-template-rows: auto auto minmax(0, 1fr);
  row-gap: 6px;
  margin-top: 0;
}
body.is-fullscreen-view .panel-plots .plot-header {
  grid-area: header;
  margin-bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
body.is-fullscreen-view .panel-plots .plot-title,
body.is-fullscreen-view .panel-plots .plot-subtitle {
  margin: 0;
  white-space: nowrap;
}
body.is-fullscreen-view .panel-plots .plot-subtitle {
  font-size: 11px;
  color: rgba(233, 238, 252, 0.68);
}
body.is-fullscreen-view .panel-plots .plot-legend {
  grid-area: legend;
  margin-bottom: 0;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  white-space: normal;
}
body.is-fullscreen-view .panel-plots .plot-canvas {
  grid-area: canvas;
}
body.is-fullscreen-view .bongo-panel {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
body.is-fullscreen-view .bongo-panel .bongo-frame,
body.is-fullscreen-view .bongo-panel .bonk-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 170px;
}
body.is-fullscreen-view .bongo-panel .bonk-block {
  display: block;
  min-height: 0;
}
body.is-fullscreen-view .bongo-panel .panel-head {
  display: none;
}
body.is-fullscreen-view .panel-logs .logs {
  height: 100%;
  align-items: stretch;
}
body.is-fullscreen-view .panel-logs .log-block {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}
body.is-fullscreen-view .panel-logs .log-block textarea {
  min-height: 0;
  height: 100%;
}
body.is-fullscreen-view .plot-canvas {
  height: 100%;
  min-height: 0;
}
body.is-fullscreen-view textarea {
  min-height: 0;
  height: 170px;
  resize: none;
}
body.is-fullscreen-view .top-input-log-block textarea {
  min-height: 0;
  height: 100%;
}
