.c05-page, .c05-workbench {
  --c04-signal: var(--blue);
  --c04-reference: var(--muted);
}

.c05-workbench {
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
}

.c05-workbench .c05-help {
  margin: 0 0 12px;
  color: var(--muted);
  text-indent: 0;
}

.c05-toolbar, .c05-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.c05-toolbar .button {
  padding: 6px 12px;
  white-space: nowrap;
}

.c05-toolbar [aria-pressed="true"] {
  color: var(--surface);
  background: var(--accent);
  border-color: var(--accent);
}

.c05-fields { gap: 12px; }
.c05-field { flex: 1 1 220px; min-width: 0; }
.c05-field label { font-size: .88em; font-weight: 650; }

.c05-field > div {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 6em;
  align-items: center;
  gap: 8px;
}

.c05-field input[type="range"] { width: 100%; accent-color: var(--accent); }

.c05-field input[type="number"] {
  width: 100%;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: var(--surface);
}

.c05-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.c05-metrics > div {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.c05-metrics dt { color: var(--muted); font-size: .84em; }
.c05-metrics dd { margin: 0; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.c05-operation-result { margin: 0 0 12px; color: var(--text); font-size: .92em; }
.c05-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.c05-line.main, .c05-key.main { stroke: var(--blue); border-color: var(--blue); }
.c05-line.alternate, .c05-key.alternate { stroke: var(--orange); border-color: var(--orange); stroke-dasharray: 7 4; border-top-style: dashed; }
.c05-line.third, .c05-key.third { stroke: var(--muted); border-color: var(--muted); stroke-dasharray: 2 5; border-top-style: dotted; }
.c05-line.fourth, .c05-key.fourth { stroke: var(--accent2); border-color: var(--accent2); stroke-dasharray: 9 4 2 4; border-top-style: dashed; }
.c05-line.direction { stroke-dasharray: none; stroke-width: 1.5; }
.c05-guide { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; opacity: .75; }
.c05-point { fill: var(--blue); stroke: var(--plot); stroke-width: 1.3; }
.c05-point.critical { fill: var(--orange); stroke: var(--text); }
.c04-legend .c05-key { width: 20px; border-top-width: 2px; }
.c05-svg .c04-axis-label { font-size: 16px; }

.c05-table { overflow-x: auto; margin: 8px 0 14px; }
.c05-table table { width: 100%; border-collapse: collapse; font-size: .94em; }
.c05-table th, .c05-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.c05-table thead th { background: var(--surface2); }
.c05-table tbody th { font-weight: 650; }
.c05-steps { padding-inline-start: 2em; }
.c05-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.c05-page .c05-prerequisite { color: var(--muted); font-size: .9em; }
.c05-read-more summary::after { content: '展开 ＋'; }
.c05-read-more[open] summary::after { content: '收起 −'; }
.c05-page .c02-svg, .c05-page .c03-svg { display: block; width: 100%; max-height: 220px; }
.c01-projection .c05-workbench { font-size: clamp(17px, 1.65vw, 23px); }
.c01-projection .c05-workbench .c04-svg { max-height: 40vh; }

@media (max-width: 650px) {
  .c05-workbench .c04-pair, .c05-page .c04-pair { grid-template-columns: minmax(0, 1fr); }
  .c05-table table { min-width: 440px; }
}
