/* 闲置识别 — 沉睡资产雷达 */
.idle-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.signal-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
}
.signal-chip {
  font-size: 12px;
  color: var(--ink-2);
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}
.signal-chip b { color: var(--ink); font-weight: 600; }

.triage { grid-template-columns: repeat(3, 1fr); align-items: start; }
.triage-col {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  overflow: hidden;
}
.triage-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--border); border-top: 3px solid var(--idle); }
.triage-head h2 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.triage-head h2 b {
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0 8px;
}
.triage-head small { font-size: 11px; color: var(--ink-3); }
.triage-idle { border-top-color: #5F6B79; }
.triage-wake { border-top-color: var(--idle); }
.triage-low { border-top-color: var(--wake); }

.triage-list { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.triage-more { text-align: center; padding: 4px; }

.sleep-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: stretch;
  background: var(--surface);
  border: 1px dashed var(--idle);
  border-radius: var(--r-m);
  padding: 0;
  overflow: hidden;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.sleep-card:hover { border-color: var(--wake); border-style: solid; box-shadow: var(--shadow-rest); }
.sleep-card .thumb {
  width: 100%;
  min-height: 156px;
  height: 100%;
  border-radius: 0;
}
.sleep-body {
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sleep-top { display: flex; gap: 8px; align-items: flex-start; }
.sleep-card .arc-wrap { flex-shrink: 0; }
.sleep-card .arc-label strong { font-size: 16px; }
.sleep-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sleep-id .mono { font-size: 10.5px; color: var(--ink-3); }
.sleep-id strong {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sleep-id small { font-size: 11px; color: var(--ink-3); }
.sleep-signals {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 6px 8px;
  background: var(--surface-warm);
  border-radius: var(--r-s);
  min-width: 0;
}
.sleep-signals span { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; min-width: 0; }
.sleep-signals .spark { flex: 0 0 auto; }
.sleep-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.sleep-actions .num { flex: 1 1 100%; }
.sleep-actions .btn { flex: 1 1 auto; white-space: nowrap; }

.idle-bottom { grid-template-columns: 1.6fr 1fr; }

@media (max-width: 1360px) {
  .triage { grid-template-columns: 1fr; }
  .idle-bottom { grid-template-columns: 1fr; }
  .idle-stats { grid-template-columns: repeat(2, 1fr); }
  .sleep-card { grid-template-columns: 200px 1fr; }
}
