.screen-loading {
  padding: 24px;
  text-align: center;
  color: var(--pues-text-secondary);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pues-border-default);
  cursor: pointer;
  background: var(--pues-bg-surface);
  min-height: 56px;
}
.list-item:active {
  background: var(--pues-bg-raised);
}
.list-item-content {
  flex: 1;
  min-width: 0;
}
.list-item-content--indent {
  margin-left: 8px;
}
.list-item-title {
  font-weight: 500;
  color: var(--pues-text-primary);
  overflow-wrap: anywhere;
}
.list-item-meta {
  font-size: 14px;
  color: var(--pues-text-muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.empty-state-hint {
  padding: 16px;
  color: var(--pues-text-muted);
  text-align: center;
  margin: 0;
}
.app-root-panel--hidden {
  display: none;
}

.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.detail-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: color-mix(in oklab, var(--pues-bg-surface) 52%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.node-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.dialog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dialog-list li + li {
  margin-top: 6px;
}
.dialog-list li {
  overflow-wrap: anywhere;
}
.dialog-list code + code {
  margin-left: 6px;
}
.node-link {
  color: var(--pues-accent);
}
.node-link:hover {
  text-decoration: underline;
}
.history-time {
  color: var(--pues-text-muted);
}

:root {
  --depends-yellow: #facc15;
}
[data-theme="light"] {
  --depends-yellow: #ca8a04;
}

.ball {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.ball--red {
  background: var(--pues-danger);
}
.ball--yellow {
  background: var(--depends-yellow);
}
.ball--green {
  background: #16a34a;
}
.ball--empty {
  border: 2px solid var(--pues-text-muted);
}

.pues-counts {
  margin-left: 8px;
}
.pues-counts__value--red {
  color: var(--pues-danger-text);
}
.pues-counts__value--yellow {
  color: var(--depends-yellow);
}
.pues-counts__value--green {
  color: #16a34a;
}
