html[data-ui="workbench"] .system-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  position: relative;
  flex: none;
}
html[data-ui="workbench"] .system-status-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 27px;
  min-width: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}
html[data-ui="workbench"] .system-status-button svg { width: 14px; height: 14px; flex: none; }
html[data-ui="workbench"] .system-status-button.is-active { color: var(--ink); }
html[data-ui="workbench"] .system-status-button:hover,
html[data-ui="workbench"] .system-status-button[aria-expanded="true"] { color: var(--ink); background: var(--brand-soft); }
html[data-ui="workbench"] .system-status-button:focus-visible,
html[data-ui="workbench"] .system-popover button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

html[data-ui="workbench"] .system-popover {
  position: absolute;
  z-index: 45;
  right: 0;
  bottom: calc(100% + 9px);
  width: min(330px, calc(100vw - 16px));
  max-height: min(420px, calc(100dvh - 74px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 32px rgb(0 0 0 / .2);
  font-size: 11px;
  line-height: 1.4;
  scrollbar-width: thin;
}
html[data-ui="workbench"] .system-popover.is-floating {
  position: fixed;
  inset: auto;
  margin: 0;
  max-height: min(420px, calc(100dvh - 16px));
}
html[data-ui="workbench"] .system-popover header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
html[data-ui="workbench"] .system-popover header strong { flex: 1; font-size: 12px; font-weight: 650; }
html[data-ui="workbench"] .system-popover header span { color: var(--muted); font-variant-numeric: tabular-nums; }
html[data-ui="workbench"] .system-icon-button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
html[data-ui="workbench"] .system-icon-button:hover { color: var(--ink); background: var(--brand-soft); }
html[data-ui="workbench"] .system-icon-button svg { width: 15px; height: 15px; }
html[data-ui="workbench"] .system-totals { display: flex; gap: 18px; padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
html[data-ui="workbench"] .system-totals strong { margin-left: 5px; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
html[data-ui="workbench"] .system-processes { padding: 2px 12px 8px; }
html[data-ui="workbench"] .system-process-head,
html[data-ui="workbench"] .system-process-row { display: grid; grid-template-columns: minmax(0,1fr) 46px 70px; align-items: center; gap: 8px; min-height: 27px; }
html[data-ui="workbench"] .system-process-head { color: var(--muted); font-size: 10px; }
html[data-ui="workbench"] .system-process-row { border-top: 1px solid var(--line); }
html[data-ui="workbench"] .system-process-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="workbench"] .system-process-head span:not(:first-child),
html[data-ui="workbench"] .system-process-row span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
html[data-ui="workbench"] .system-empty { margin: 0; padding: 13px 0; color: var(--muted); }
html[data-ui="workbench"] .system-error { margin: 8px 12px 0; color: var(--red); }
html[data-ui="workbench"] .system-mode-list { padding: 5px; }
html[data-ui="workbench"] .system-mode-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
html[data-ui="workbench"] .system-mode-list button:hover:not([aria-disabled="true"]) { background: var(--brand-soft); }
html[data-ui="workbench"] .system-mode-list button[aria-disabled="true"] { opacity: .65; cursor: default; }
html[data-ui="workbench"] .system-mode-list button strong,
html[data-ui="workbench"] .system-mode-list button small { display: block; }
html[data-ui="workbench"] .system-mode-list button strong { font-size: 11px; font-weight: 600; }
html[data-ui="workbench"] .system-mode-list button small { margin-top: 2px; color: var(--muted); font-size: 10px; }
html[data-ui="workbench"] .system-radio-dot { width: 13px; height: 13px; flex: none; border: 1px solid var(--muted); border-radius: 50%; }
html[data-ui="workbench"] .system-mode-list button[aria-checked="true"] .system-radio-dot { border: 4px solid var(--ink); }

@media (max-width: 960px) {
  html[data-ui="workbench"] .system-status-button { padding-inline: 5px; }
  html[data-ui="workbench"] .system-status-label { max-width: 66px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 720px) {
  html[data-ui="workbench"] .system-status-label { display: none; }
  html[data-ui="workbench"] .system-popover { right: -3px; }
}
