/* PKL Documents console — scoped utilities only.
 * Layout, hero, section, tabs, cards, and buttons come from ae-pkm-cleaner.css (same as Media). */

#app-utils .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

#app-utils .field {
  margin-bottom: 1rem;
}

#app-utils .ae-hero-stat dd.warn {
  color: #f87171;
}

#app-utils .ae-hero-stat dd.pec-muted {
  font-size: 1rem;
  font-weight: 500;
  color: var(--lfiq-text-secondary);
}

#app-utils .small {
  font-size: 0.75rem;
}

#app-utils .warn {
  color: #fca5a5;
}

#app-utils .ok {
  color: #4ade80;
}

/* Health rows */
#app-utils .health-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(173, 198, 255, 0.08);
}

#app-utils .health-row:last-child {
  border-bottom: none;
}

#app-utils .dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 3px;
}

#app-utils .dot--ok {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

#app-utils .dot--fail {
  background: #f87171;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.4);
}

#app-utils .dot--warn {
  background: #fbbf24;
}

#app-utils .dot--info {
  background: #60a5fa;
}

#app-utils .health-info {
  flex: 1;
  min-width: 0;
}

#app-utils .health-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lfiq-ink-strong);
}

#app-utils .health-loc {
  display: block;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.7rem;
  color: rgba(173, 198, 255, 0.7);
  margin-top: 0.15rem;
  word-break: break-all;
}

#app-utils .health-fix {
  margin-top: 0.4rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: 8px;
}

#app-utils .health-fix code {
  font-size: 0.7rem;
  color: #fca5a5;
}

/* Tables */
#app-utils table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

#app-utils table.data th,
#app-utils table.data td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(173, 198, 255, 0.08);
}

#app-utils table.data th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lfiq-text-secondary);
}

#app-utils table.data tr:hover td {
  background: rgba(173, 198, 255, 0.03);
}

#app-utils table.data .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#app-utils table.data .stale {
  color: #fca5a5;
}

#app-utils table.data code {
  font-size: 0.75rem;
}

/* Inbox lanes */
#app-utils .lane-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#app-utils .lane-card .lane-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

#app-utils .lane-count {
  font-family: var(--font-display, ui-sans-serif, system-ui, sans-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--lfiq-primary);
}

#app-utils .lane-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow: auto;
  font-size: 0.8rem;
}

#app-utils .lane-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(173, 198, 255, 0.06);
  word-break: break-all;
}

#app-utils .lane-list li.stale {
  color: #fca5a5;
}

/* Run history / job output */
#app-utils .job-log {
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(173, 198, 255, 0.12);
  background: var(--surface-container-low);
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
  color: var(--lfiq-text-secondary);
}

#app-utils .alert-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.06);
}

#app-utils .alert-row.info {
  border-color: rgba(96, 165, 250, 0.18);
  background: rgba(96, 165, 250, 0.06);
}

#app-utils .alert-row .alert-title {
  font-weight: 600;
  color: var(--lfiq-ink-strong);
  margin-bottom: 0.15rem;
}

#app-utils .alert-row .alert-detail {
  font-size: 0.8rem;
  color: var(--lfiq-text-secondary);
}
