/* Cards, pills, avatars, alerts */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 14px 18px; }
.card-foot { padding: 10px 18px; border-top: 1px solid var(--border); }
.section-title { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }

.stat { padding: 16px 18px; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--neutral-soft); color: var(--text-2);
}
.pill .pip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-success { background: var(--success-soft); color: var(--success); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-danger { background: var(--danger-soft); color: var(--danger); }
.tone-muted { background: transparent; color: var(--muted); }
.tone-brand { background: var(--brand-soft); color: var(--brand); }
.tone-neutral { background: var(--neutral-soft); color: var(--text-2); }
.text-danger { color: var(--danger); } .text-warn { color: var(--warn); } .text-success { color: var(--success); } .text-info { color: var(--info); } .text-brand { color: var(--brand); }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--text-2); font-family: var(--mono); }

.avatar {
  width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  font-size: 10.5px; font-weight: 700; color: #fff; letter-spacing: 0.02em;
}
.avatar-sm { width: 20px; height: 20px; font-size: 9px; }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.avatar-xl { width: 64px; height: 64px; font-size: 22px; }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid var(--surface); margin-left: -6px; }
.avatars .avatar:first-child { margin-left: 0; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--brand-soft); color: var(--text); border-color: var(--brand-soft); }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .ic { color: var(--border-2); margin-bottom: 8px; }
.empty-title { color: var(--text); font-weight: 600; margin-bottom: 4px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 12px; font-weight: 550; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--brand); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.seg a, .seg button, .seg label { padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 550; color: var(--muted); border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.seg a.active, .seg button.active, .seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.seg input { display: none; }
.seg input:checked + span { padding: 4px 10px; margin: -4px -10px; border-radius: 6px; }

.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.progress.ok > span { background: var(--success); } .progress.warn > span { background: var(--warn); } .progress.bad > span { background: var(--danger); }
