@scope (.workspace-page) {
.wf-page {
  container-type:inline-size;
  min-width:0;
  color:var(--ws-text);
}
.wf-title,.wf-heading,.wf-card-head,.wf-actions,.wf-row,.wf-stats button,.wf-shortcuts button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.55rem;
}
.wf-title {margin-bottom:.9rem; flex-wrap:wrap}
.wf-title h2 {font-size:1.38rem; margin:0}
.wf-page button,.wf-page input,.wf-page select,.wf-page summary {font:inherit}
.wf-title button,.wf-filters button,.wf-filters input,.wf-filters select,.wf-actions button,.wf-actions summary,.wf-empty button {
  font-size:.86rem; border-radius:5px; padding:.4rem .66rem; line-height:1.3;
}
.wf-page h3 {font-size:1rem; margin:0}
.wf-heading small,.wf-meta,.wf-id,.wf-foot,.wf-empty p,.wf-target small {color:var(--ws-muted); overflow-wrap:anywhere}
.wf-filters {display:flex; align-items:end; gap:.6rem; flex-wrap:wrap; margin-bottom:.85rem}
.wf-search {flex:0 1 24rem}
.wf-filters label {gap:.22rem; font-size:.8rem}
.wf-filters select,.wf-filters input,.wf-filters button {min-height:32px}
.wf-grid {display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr)); gap:.7rem}
.wf-card,.wf-empty,.wf-stats button,.wf-shortcuts button,.wf-rows {
  min-width:0; background:var(--ws-surface); border:1px solid var(--ws-border); border-radius:8px;
}
.wf-card,.wf-empty {padding:.85rem}
.wf-card:has(.wf-device) {padding:0}
.wf-card h3,.wf-card-head strong,.wf-row span {min-width:0; overflow-wrap:anywhere}
.wf-device {display:block; width:100%; height:100%; padding:.82rem; border:0; border-radius:inherit; text-align:left}
.wf-device:hover,.wf-row:hover {background:var(--ws-surface-muted)}
.wf-card-head {align-items:baseline; flex-wrap:wrap; gap:.22rem .45rem}
.wf-meta,.wf-id,.wf-foot {display:block; font-size:.76rem; line-height:1.45; margin:.28rem 0}
.wf-id,.wf-target small,.wf-foot {font-variant-numeric:tabular-nums}
.wf-id {font-family:ui-monospace,Consolas,monospace}
.wf-state {display:inline-flex; flex:none; align-items:center; gap:.3rem; color:var(--ws-muted); font-size:.76rem; line-height:1.5}
.wf-state::before {content:""; width:.43rem; height:.43rem; border-radius:50%; background:currentColor}
.wf-state[data-state=live] {color:var(--ws-good)}
.wf-state[data-state=stale] {color:var(--ws-warning)}
.wf-metrics {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem; margin:.55rem 0}
.wf-metrics .system-metric {padding:.35rem .4rem; border-radius:5px}
.system-detail .system-metric,.wf-metrics .system-metric {background:var(--ws-surface-muted); color:var(--ws-text); border-color:var(--ws-border)}
.wf-metrics .system-metric-head {gap:.1rem .25rem; line-height:1.25; font-size:.7rem}
.wf-metrics .system-metric-head strong {font-size:.88rem; line-height:1.2}
.wf-metrics .system-metric-head small {font-size:.66rem}
.wf-metrics .system-trace {height:24px; margin:4px 0 0}
.system-trace .trace-grid {stroke:var(--ws-border)}
.system-trace text {fill:var(--ws-muted)}
.system-metric[data-metric=cpu_percent] {--trace-color:var(--ws-good)}
.system-metric[data-metric=memory_percent] {--trace-color:#236ca9}
.system-metric[data-metric=disk_percent] {--trace-color:#7a4799}
.system-metric[data-metric=cpu_temperature] {--trace-color:var(--ws-warning)}
:where([data-theme=dark] *) .system-metric[data-metric=memory_percent] {--trace-color:#8bc8ff}
:where([data-theme=dark] *).system-metric[data-metric=disk_percent] {--trace-color:#d3a8ee}
.system-detail .system-capacity,.system-detail .system-kernel,.system-detail .system-caption,.system-detail .system-scope,
.system-facts dt,.device-facts dt {color:var(--ws-muted)}
.system-facts,.system-facts>div,.device-facts>div {border-color:var(--ws-border)}
.system-detail .system-facts {margin-top:1rem}
.system-detail .system-facts>div,.device-dialog .system-facts>div {padding:.6rem 0}
.wf-actions {padding-top:.4rem; margin-top:.45rem; border-top:1px solid var(--ws-border); align-items:start; flex-wrap:wrap}
.wf-actions>button,.wf-actions summary {border:0; background:transparent; color:var(--ws-accent); padding:.35rem .25rem; cursor:pointer}
.wf-actions summary {list-style:none; color:var(--ws-muted)}
.wf-actions details[open] {display:contents}
.wf-menu {display:flex; flex-wrap:wrap; width:100%; gap:.35rem}
.wf-menu .danger {color:var(--ws-danger); background:var(--ws-surface)}
.wf-section {margin:0 0 1.1rem}
.wf-section h3,.wf-heading {margin-bottom:.45rem}
.wf-heading h3 {margin:0}
.wf-stats,.wf-shortcuts {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr)); gap:.5rem}
.wf-stats button,.wf-shortcuts button,.wf-row {padding:.6rem .8rem; text-align:left; font-size:.85rem}
.wf-stats strong {font:650 1.12rem/1 ui-monospace,monospace; color:var(--ws-accent)}
.wf-shortcuts button {justify-content:flex-start; font-weight:600}
.wf-shortcuts span {margin-left:auto; color:var(--ws-accent)}
.wf-rows {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); overflow:hidden}
.wf-row {border:0; border-radius:0; background:transparent}
.wf-empty h3,.wf-empty p {margin:0 0 .4rem; overflow-wrap:anywhere}
.wf-target {display:grid; gap:.1rem; overflow-wrap:anywhere}
.device-dialog {width:min(92vw,40rem); padding:1.2rem}
.device-dialog .system-facts {margin:0}
.device-dialog [data-status],.device-dialog [data-status].system-error,.system-detail .system-error {
  background:var(--ws-surface-muted); color:var(--ws-text); border-color:var(--ws-border)
}
.device-dialog [data-status].system-error,.system-detail .system-error,.wf-page [data-health-status] {color:var(--ws-warning)}
.wf-page [role=status] {font-size:.85rem; overflow-wrap:anywhere}
.device-dialog .stack {gap:.65rem}
@container (min-width:650px) and (max-width:880px) {
  .wf-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container (min-width:340px) and (max-width:549px) {
  .wf-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
  .wf-card,.wf-device {padding:.62rem}
  .wf-card:has(.wf-device) {padding:0}
}
@container (max-width:549px) {
  .wf-filters {display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:.35rem}
  .wf-search {min-width:0}
  .wf-filters input {width:100%}
  .wf-page button,.wf-page summary {min-height:32px}
  .wf-stats {grid-template-columns:repeat(3,minmax(0,1fr))}
}
}
