/* A deliberately plain workspace: typography, rules, and readable controls. */
body.dashboard {
  --muted: #666;
  --border: #ddd;
  --accent: #202020;
  --light: #f5f5f5;
  --serif: Georgia, 'Times New Roman', serif;
  color: #202020;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}
.dashboard :is(button, a, input, textarea, select, summary):focus-visible {
  outline: 2px solid #333;
  outline-offset: 3px;
}
.dashboard :is(input, textarea, select) { color: #202020; }
.dashboard :is(input, textarea)::placeholder { color: #777; opacity: 1; }
.workspace-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 256px;
  padding: 30px 20px 24px;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border-right: 1px solid var(--border);
  z-index: 20;
}
.workspace-brand {
  padding: 0 10px;
  color: #151515;
  font: 700 27px/1.3 var(--serif);
  letter-spacing: -.8px;
  text-decoration: none;
}
.workspace-repository { margin: 38px 0 30px; min-width: 0; }
.workspace-repository label { font-size: 14px; color: #666; font-weight: 400; margin: 0 0 9px; }
.dashboard select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 36px 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  font-size: 15px;
  line-height: 1.5;
  text-overflow: ellipsis;
}
.workspace-repository p { font-size: 14px; color: #777; margin: 9px 0 0; }
.workspace-nav { display: grid; gap: 4px; }
.workspace-nav a, .sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  font-size: 15px;
  color: #555;
  text-decoration: none;
  border-radius: 3px;
}
.workspace-nav a:hover, .sidebar-footer a:hover { background: #f0f0f0; color: #111; }
.workspace-nav a[aria-current=page] { background: #eaeaea; color: #111; font-weight: 600; }
.workspace-nav svg, .sidebar-footer svg { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-footer { margin-top: auto; padding-top: 24px; }
.dashboard main, .dashboard main.stress-page {
  margin: 0 0 0 256px;
  max-width: none;
  min-width: 0;
  padding: 38px clamp(28px, 4.5vw, 76px) 60px !important;
}
.dashboard main > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
.dashboard-heading h1 { font: 700 34px/1.2 var(--serif); letter-spacing: -.8px; margin: 0; color: #171717; }
.dashboard-heading p { margin: 10px 0 0; color: #666; font-size: 16px; line-height: 1.6; }
.quiet-action { padding: 8px 13px; background: white; border: 1px solid #ccc; border-radius: 3px; color: #444; font-size: 14px; }
.quiet-action:hover { background: #f5f5f5; }
.workspace-indicator { color: #666; font-size: 14px; }
.panel-heading { font: 700 22px/1.35 var(--serif); letter-spacing: -.25px; margin: 0 0 24px; }
.dashboard .investigation-section, .dashboard .stress-workspace { padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; margin-bottom: 36px; }
.dashboard .context-button {
  gap: 9px;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid #252525;
  border-radius: 3px;
  background: #252525;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.dashboard .context-button:hover { background: #444; border-color: #444; }
.dashboard .context-button.secondary { background: #fff; color: #333; border-color: #c9c9c9; }
.dashboard .context-button.secondary:hover { background: #f5f5f5; border-color: #999; }
.dashboard .text-button { font-size: 15px; color: #555; text-decoration: underline; text-underline-offset: 4px; }
.dashboard .investigation-form { display: flex; gap: 18px; padding: 16px; border: 1px solid #c9c9c9; border-radius: 3px; box-shadow: none; background: #fff; }
.dashboard .investigation-form textarea { font-size: 16px; min-height: 72px; padding: 6px; line-height: 1.6; color: #222; }
.dashboard .investigation-form > .context-button { min-width: 142px; gap: 16px; }
.dashboard .investigation-hint { font-size: 14px; color: #777; margin: 12px 0 0; }
.dashboard #investigation-results { margin-top: 30px; padding: 28px 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.dashboard .investigation-result-heading h2 { font: 700 24px/1.3 var(--serif); }
.dashboard .status-message { padding: 12px 14px; border: 1px solid #e1e1e1; border-radius: 3px; background: #f7f7f7; color: #444; font-size: 15px; }
.dashboard .status-message.error { color: #8b3028; border-color: #e3c4bf; background: #fcf6f5; }
.dashboard .stress-target { display: flex; gap: 28px; align-items: flex-end; margin-bottom: 24px; }
.dashboard .stress-selectors { display: block; flex: 1; max-width: 420px; }
.dashboard .stress-selectors label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; margin: 0; }
.dashboard .stress-target .component-links { display: flex; flex-wrap: wrap; gap: 22px; margin: 0 0 10px; }
.dashboard .component-links a, .dashboard .component-links button { color: #555; font-size: 14px; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.dashboard .stress-inline .context-field { display: grid; gap: 8px; margin: 0 0 20px; font-size: 15px; font-weight: 500; }
.dashboard .stress-inline textarea { font-size: 16px; line-height: 1.6; min-height: 116px; margin: 0; padding: 14px; border: 1px solid #c9c9c9; border-radius: 3px; background: #fff; color: #222; }
.dashboard .stress-compose-footer { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; }
.dashboard .stress-compose-footer .context-field { margin: 0; min-width: 0; color: #666; font-size: 14px; font-weight: 400; }
.dashboard .stress-compose-footer input[type=file] { font-size: 14px; border: 0; padding: 0; margin: 0; width: auto; max-width: 100%; }
.dashboard .stress-compose-footer input::file-selector-button { border: 1px solid #ccc; border-radius: 3px; color: #444; }
.dashboard .stress-compose-footer > .context-button { flex: none; }
.dashboard .stress-inline .stress-setup { margin: 0; }
.dashboard .stress-setup > summary { font-size: 15px; font-weight: 400; color: #555; margin: 0 0 20px; }
.dashboard .stress-inline .status-message { margin: 20px 0 22px; }
.dashboard .stress-inline .stress-finding { font-size: 22px; line-height: 1.5; font-weight: 600; color: #222; overflow-wrap: anywhere; margin: 0 0 12px; max-width: 900px; }
.dashboard .stress-inline .stress-scope { color: #666; font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.stress-result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.stress-result-actions .context-button { margin: 0; }
.dashboard .stress-evidence { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.dashboard .stress-evidence > summary { color: #444; font-size: 15px; font-weight: 500; }
.dashboard .stress-evidence :is(p, li, blockquote) { font-size: 15px; overflow-wrap: anywhere; }
.dashboard .stress-waveform { margin: 24px 0; padding: 20px; border-radius: 3px; border-color: #ddd; }
.dashboard .stress-waveform figcaption { font-size: 16px; font-weight: 500; }
.dashboard .stress-waveform svg { color: #444; }
.dashboard .stress-time-axis, .dashboard .stress-voltage-axis { font-size: 14px; }
.activity-section, .dashboard .saved-section { margin-top: 36px; padding-top: 28px; background: #fff; border: 0; border-top: 1px solid #bbb; border-radius: 0; }
.activity-heading, .dashboard .saved-section .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 12px; padding: 0; }
.activity-heading h2, .dashboard .saved-section h2 { font: 700 22px/1.3 var(--serif); letter-spacing: -.2px; margin: 0; }
.activity-heading > span { color: #777; font-size: 14px; }
.dashboard .saved-section .lede { font-size: 14px; color: #666; padding: 0; margin: 0 0 20px; max-width: none; }
.activity-list, .dashboard .saved-runs { display: grid; gap: 0; }
.activity-row, .dashboard .saved-run { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 24px; padding: 19px 12px; text-align: left; border: 0; border-top: 1px solid #e5e5e5; border-radius: 0; background: #fff; color: #222; }
.activity-row:last-child, .dashboard .saved-run:last-child { border-bottom: 1px solid #e5e5e5; }
.activity-row:hover, .dashboard .saved-run:hover, .dashboard .saved-run[aria-pressed=true] { background: #f7f7f7; border-color: #e5e5e5; }
.activity-copy, .dashboard .saved-copy { flex: 1; min-width: 0; display: grid; gap: 6px; }
.activity-copy strong, .dashboard .saved-copy strong { font-size: 15px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.activity-copy span, .dashboard .saved-copy > span { font-size: 14px; color: #777; }
.activity-status, .dashboard .run-outcome { flex: none; font-size: 14px; white-space: nowrap; border: 1px solid #ddd; border-radius: 3px; padding: 4px 8px; color: #555; background: #fafafa; }
.dashboard .run-outcome[data-state=failed] { color: #333; border-color: #b8b8b8; background: #f0f0f0; }
.dashboard .run-outcome[data-state=active] { border-style: dashed; }
.activity-empty { font-size: 15px; color: #777; padding: 20px 0; margin: 0; }
.dashboard .map-section { margin-top: 28px; }
.dashboard .map-section > summary { padding: 14px 0; color: #444; font-size: 16px; }
.dashboard .map-layout { border-radius: 3px; }
.dashboard .context-dialog { border-radius: 4px; }
.dashboard .context-dialog :is(input, textarea, select, .context-item, .context-editor, .context-choice) { border-radius: 3px; }
.dashboard .context-dialog-heading h2 { font: 700 26px/1.3 var(--serif); }
@media (max-width: 1100px) {
  .workspace-sidebar { width: 230px; padding: 28px 16px; }
  .dashboard main, .dashboard main.stress-page { margin-left: 230px; padding: 32px 28px 48px !important; }
  .dashboard .stress-target { gap: 20px; }
  .dashboard .stress-target .component-links { gap: 12px; }
  .dashboard .map-layout { grid-template-columns: 190px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .dashboard .stress-target { align-items: stretch; flex-direction: column; gap: 12px; }
  .dashboard .stress-target .component-links { margin: 0; }
  .dashboard .saved-run { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dashboard .stress-compose-footer { align-items: stretch; flex-direction: column; gap: 20px; }
  .dashboard .stress-compose-footer > .context-button { align-self: flex-end; }
  .dashboard .investigation-form { flex-direction: column; align-items: stretch; }
  .dashboard .investigation-form > .context-button { align-self: flex-end; }
}
@media (max-width: 700px) {
  .workspace-sidebar { position: static; width: auto; padding: 20px; display: grid; grid-template-columns: 1fr; gap: 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .workspace-brand { padding: 0; font-size: 25px; }
  .workspace-repository { margin: 0; }
  .workspace-repository label, .workspace-repository p { display: none; }
  .workspace-nav { display: flex; gap: 8px; }
  .workspace-nav a { flex: 1; font-size: 15px; padding: 10px; gap: 9px; }
  .sidebar-footer { display: none; }
  .dashboard main, .dashboard main.stress-page { margin: 0; padding: 28px 20px 40px !important; }
  .dashboard-heading { gap: 16px; padding-bottom: 22px; margin-bottom: 26px; }
  .dashboard-heading h1 { font-size: 30px; }
  .dashboard-heading p { font-size: 15px; }
  .workspace-indicator { display: none; }
  .dashboard .stress-inline .stress-finding { font-size: 20px; }
  .dashboard .stress-selectors { max-width: none; }
  .dashboard .investigation-form { padding: 12px; }
  .activity-heading > span { display: none; }
  .activity-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .activity-row, .dashboard .saved-run { padding: 18px 0; }
  .dashboard .map-layout { grid-template-columns: 1fr; }
  .dashboard .stress-waveform { padding: 14px; }
  .dashboard .node-heading-actions { gap: 8px; }
}
