.c03-panel {
  min-width: 0;
}

.c03-page [data-c03-theory] {
  margin-block: 12px;
}

.c03-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 15px;
  margin: 0 0 10px;
}

.c03-toolbar .c01-options {
  margin: 0;
}

.c03-slider {
  display: grid;
  grid-template-columns: max-content minmax(90px, 135px) max-content;
  gap: 7px;
  align-items: center;
  color: var(--text);
}

.c03-slider input,
.c03-playback input {
  width: 100%;
  accent-color: var(--accent);
}

.c03-slider output {
  min-width: 3.1ch;
  font-variant-numeric: tabular-nums;
}

.c03-figure {
  min-width: 0;
  margin: 0;
}

.c03-figure figcaption {
  color: var(--muted);
  font-size: .87em;
  margin-top: 4px;
}

.c03-plot {
  max-width: 880px;
  margin-inline: auto;
}

.c03-theory-figure {
  max-width: 600px;
  margin-inline: auto;
}

.c03-theory-figure .c03-svg {
  max-height: 240px;
}

.c03-pair {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 12px;
}

.c03-pair.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c03-pair .c03-figure {
  width: 100%;
}

.c03-guidance {
  margin: 0 0 9px;
  color: var(--muted);
}

.c03-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 6px;
  color: var(--muted);
  font-size: .88em;
}

.c03-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.c03-legend i {
  display: inline-block;
  width: 23px;
  border-top: 2px solid var(--accent);
}

.c03-legend .compare,
.c03-legend .third,
.c03-legend .band {
  border-top-style: dashed;
}

.c03-legend .compare {
  border-color: var(--orange);
}

.c03-legend .third {
  border-color: var(--muted);
}

.c03-legend .band {
  border-color: var(--line);
}

.c03-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 350px;
  margin-inline: auto;
  font-family: inherit;
}

.c03-svg text {
  fill: var(--text);
  font-size: 14px;
}

.c03-svg .c03-dim {
  fill: var(--muted);
  font-size: 12px;
}

.c03-wire {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.c03-dash {
  stroke-dasharray: 5 4;
}

.c03-grid {
  stroke: var(--line);
}

.c03-block,
.c03-actuator {
  fill: var(--surface2);
  stroke: var(--muted);
  stroke-width: 1.5;
}

.c03-arrow {
  fill: var(--muted);
}

.c03-pole {
  stroke: var(--accent);
  stroke-width: 2.8;
  stroke-linecap: round;
}

.c03-zero {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
}

.c03-member {
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
}

.c03-mass {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}

.c03-pivot {
  fill: var(--surface);
  stroke: var(--text);
  stroke-width: 2;
}

.c01-diagram .c03-third {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 3 5;
}

.c01-diagram .c03-band-line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.1;
  stroke-dasharray: 4 5;
  opacity: .72;
}

.c03-annotation {
  fill: var(--text);
  font-size: 14px;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 3.5px;
  stroke-linejoin: round;
}

.c03-cursor {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 3;
}

.c03-table {
  overflow-x: auto;
  margin: 12px 0;
}

.c03-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93em;
  font-variant-numeric: tabular-nums;
}

.c03-table th,
.c03-table td {
  padding: 7px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.c03-table th {
  color: var(--text);
  background: var(--surface2);
}

.c03-routh td,
.c03-routh th {
  text-align: center;
}

.c03-routh td:nth-child(2) {
  color: var(--accent);
  font-weight: 700;
}

.c03-toolbar button:disabled,
.c03-slider input:disabled {
  opacity: .48;
  cursor: default;
}

.c03-step-text,
.c03-reading-extra {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
}

.c03-step-text li + li {
  margin-top: 5px;
}

.c03-reading-extra summary {
  cursor: pointer;
}

.c03-playback {
  margin-bottom: 10px;
}

.c03-signals {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.c03-signal {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  text-align: center;
  color: var(--muted);
  font-size: .86em;
}

.c03-signal svg {
  max-height: 56px;
}

@media (max-width: 680px) {
  .c03-pair,
  .c03-pair.equal {
    grid-template-columns: minmax(0, 1fr);
  }

  .c03-pair .c03-device {
    max-width: 460px;
    margin-inline: auto;
  }

  .c03-signals {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }
}

.c03-pole-detail {
  max-width: 380px;
  margin: 12px auto 0;
}
