/* Module cards, widgets, search */
.mod-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.search { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--line-2); background: var(--surface); }
.search::placeholder { color: var(--muted); }
.count-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.mod-grid { align-items: start; }
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mod[hidden] { display: none; }
.mod-head { display: flex; align-items: center; gap: 14px; }
.mod-num { flex: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; color: var(--spark-text); }
.mod h3 { font-size: 19px; }
.mod .count { font-size: 12.5px; color: var(--muted); }
.mod .blurb { font-size: 14px; color: var(--muted); }
.widget { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.widget .val { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; }
.widget .lab { font-size: 12px; color: var(--muted); margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 4px; width: 112px; height: 48px; flex: none; }
.bars i { flex: 1; border-radius: 3px; background: var(--teal); }
.bars i:last-child { background: var(--spark); }
.ring { flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ring > span { border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.ring.sm { width: 64px; height: 64px; }
.ring.sm > span { width: 46px; height: 46px; font-size: 12px; }
.heat5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; width: 84px; flex: none; }
.heat5 span { aspect-ratio: 1; border-radius: 3px; }
.heat5 .low { background: var(--sev-low); }
.heat5 .mid { background: var(--sev-mid); }
.heat5 .high { background: var(--sev-high); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.more { align-self: flex-start; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: transparent; color: var(--teal-text); font-size: 13px; font-weight: 600; }
.more:hover { border-color: var(--teal); }
.more[hidden] { display: none; }
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty[hidden] { display: none; }
.sample-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

@media (min-width: 640px) {
  .mod-tools { flex-direction: row; align-items: center; justify-content: space-between; }
  .search { width: 340px; }
  .mod { padding: 24px; }
}
