.system-workspace {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.system-panel {
  box-sizing: border-box;
  width: clamp(260px, 23vw, 340px);
  flex-shrink: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: #101a2b;
  color: #ecf2ff;
  border-left: 1px solid #34455e;
  font: 400 13px/1.45 "Segoe UI", system-ui, sans-serif;
  scrollbar-color: #465d80 #101a2b;
}
.system-panel[hidden], .compact-viewer .system-toggle[hidden] { display: none; }
.compact-viewer .system-toggle[aria-expanded="true"] {
  color: #fff;
  background: #244898;
  border-color: #6896ff;
}
.system-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.system-panel .system-panel-heading h2 { margin: 0; font: 650 18px/1.25 "Segoe UI", system-ui, sans-serif; }
.system-close { border: 0; background: transparent; color: #dbe7ff; font-size: 22px; padding: 2px 8px; cursor: pointer; }
.system-status, .system-time, .system-note { margin: 6px 0; font-size: 12px; color: #b9c7df; }
.system-status:empty, .system-time:empty { display: none; }
.system-section { padding: 12px 0; border-top: 1px solid #2f3f59; }
.system-panel .system-section h3 { margin: 0 0 4px; font: 600 14px/1.4 "Segoe UI", system-ui, sans-serif; }
.system-value { margin: 5px 0; color: #edf3ff; overflow-wrap: anywhere; }
.system-note { overflow-wrap: anywhere; }
.system-attention { color: #ffd691; margin: 6px 0; font-size: 12px; }
.system-panel progress { width: 100%; height: 6px; display: block; margin: 6px 0; accent-color: #6696ff; }
.system-panel progress::-webkit-progress-bar { background: #283955; border-radius: 5px; }
.system-panel progress::-webkit-progress-value { background: #6293ff; border-radius: 5px; }
.system-events { list-style: none; margin: 8px 0 0; padding: 0; }
.system-events li { margin-bottom: 8px; border-left: 2px solid #e3b367; padding-left: 8px; overflow-wrap: anywhere; }
.system-events li[data-level="critical"] { border-left-color: #ff8f87; }
.system-events small { display: block; color: #b9c7df; }
.system-panel button:focus-visible, .system-toggle:focus-visible { outline: 2px solid #8fb3ff; outline-offset: 2px; }
@media (max-width: 899px) {
  .system-panel {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: min(340px, 100%);
    max-height: 100%;
    border-bottom: 1px solid #34455e;
    border-radius: 0 0 0 10px;
    box-shadow: -5px 8px 20px #0007;
  }
}
