/* Devices page (/devices). Values come from tokens.css. */
.device-fleet-link {
  display: inline-block;
  font-size: var(--e-font-footnote);
  line-height: var(--e-leading-footnote);
  color: var(--e-accent);
  text-decoration: none;
}
.device-fleet-link:focus-visible {
  outline: 2px solid var(--e-accent);
  outline-offset: 2px;
}
.e-wide > .device-card {
  margin-top: var(--e-space-m);
}
.device-card {
  display: grid;
  gap: var(--e-space-l);
}
.device-card-head {
  display: grid;
  gap: var(--e-space-xs);
}
.device-card-title {
  margin: 0;
  font-size: var(--e-font-body);
  line-height: var(--e-leading-body);
  font-weight: var(--e-weight-semibold-value);
}
.device-connected {
  color: var(--e-success);
}
.device-subsection {
  display: grid;
  gap: var(--e-space-s);
}
.device-subsection + .device-subsection {
  margin-top: var(--e-space-l);
}
.device-subsection-label {
  margin: 0;
  font-size: var(--e-font-footnote);
  line-height: var(--e-leading-footnote);
  font-weight: var(--e-weight-semibold-value);
}
.device-subsection-body {
  display: grid;
  gap: var(--e-space-s);
}
.device-capabilities {
  display: grid;
  gap: 0;
}
.device-card .e-list {
  background: var(--e-bg);
}
.device-row-content {
  display: grid;
  gap: var(--e-space-xs);
  padding: var(--e-space-s) var(--e-card-padding);
}
.device-row-title {
  margin: 0;
  font-size: var(--e-font-body);
  line-height: var(--e-leading-body);
}
.device-rename,
.device-confirm {
  display: grid;
  gap: var(--e-space-s);
}
.device-confirm > p {
  margin: 0;
  font-size: var(--e-font-body);
  line-height: var(--e-leading-body);
}
.device-task-next:empty {
  display: none;
}
.device-task-command {
  font-family:
    ui-monospace, monospace; /* design-literal: scheduled commands stay monospace */
  font-size: var(--e-font-caption);
  line-height: var(--e-leading-caption);
}
.device-task-failed {
  margin: 0;
  font-size: var(--e-font-footnote);
  line-height: var(--e-leading-footnote);
  color: var(--e-danger);
}
.device-task pre {
  margin: var(--e-space-xs) 0 0;
  padding: var(--e-space-s) var(--e-card-padding-compact);
  border-radius: var(--e-radius-card);
  background: var(--e-bg);
  font-size: var(--e-font-caption);
  line-height: var(--e-leading-caption);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.device-task-pill,
.device-capability-pill,
.device-job-pill {
  display: inline-block;
  font-size: var(--e-font-caption);
  line-height: var(--e-leading-caption);
  font-weight: var(--e-weight-semibold-value);
  padding: var(--e-space-xs) var(--e-space-s);
  border-radius: var(--e-radius-full);
}
.device-task-pill-healthy,
.device-capability-pill-available,
.device-job-pill-succeeded {
  color: var(--e-success);
  background: var(--e-success-surface);
}
.device-task-pill-failing,
.device-job-pill-failed,
.device-job-pill-expired {
  color: var(--e-danger);
  background: var(--e-danger-surface);
}
.device-task-pill-pending,
.device-capability-pill-unavailable,
.device-job-pill-queued,
.device-job-pill-running {
  color: var(--e-text-muted);
  background: var(--e-bg);
}
.device-capability-name,
.device-recent-run-label {
  margin: 0;
  font-weight: var(--e-weight-semibold-value);
  font-size: var(--e-font-footnote);
  line-height: var(--e-leading-footnote);
}
.device-capability-detail {
  margin-left: var(--e-space-s);
}
.device-recent-run-label {
  margin-right: var(--e-space-s);
}
.device-recent-run p,
.device-capability p,
.device-task p {
  margin: 0;
}
