/* 分类状态只用这一套；金额、计数和长错误仍按各自字段显示，不再包成胶囊。 */
.app {
  --app-state-success: #166534; --app-state-success-bg: #edf8f0; --app-state-success-border: #c5e6cf;
  --app-state-info: #1e40af; --app-state-info-bg: #eef4ff; --app-state-info-border: #cfddfa;
  --app-state-warning: #92400e; --app-state-warning-bg: #fff6e8; --app-state-warning-border: #f2dab6;
  --app-state-danger: #b42318; --app-state-danger-bg: #fff0ee; --app-state-danger-border: #f3c9c3;
  --app-state-neutral: #475569; --app-state-neutral-bg: #f1f5f9; --app-state-neutral-border: #dce3eb;
}
.app .app-status {
  --status-text: var(--app-state-neutral); --status-fill: var(--app-state-neutral-bg); --status-border: var(--app-state-neutral-border);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto;
  width: fit-content; max-width: 100%; min-height: 28px; box-sizing: border-box;
  padding: 3px 8px; border: 1px solid var(--status-border); border-radius: 6px;
  background: var(--status-fill); color: var(--status-text); font-size: 14px; font-weight: 600;
  line-height: 1.4; white-space: nowrap; vertical-align: middle; text-decoration: none;
}
.app .app-status::before { content: ''; display: block; flex: 0 0 6px; width: 6px; height: 6px;
  margin: 0; border-radius: 50%; background: currentColor; }
.app .app-status--success { --status-text: var(--app-state-success); --status-fill: var(--app-state-success-bg); --status-border: var(--app-state-success-border); }
.app .app-status--info { --status-text: var(--app-state-info); --status-fill: var(--app-state-info-bg); --status-border: var(--app-state-info-border); }
.app .app-status--warning { --status-text: var(--app-state-warning); --status-fill: var(--app-state-warning-bg); --status-border: var(--app-state-warning-border); }
.app .app-status--danger { --status-text: var(--app-state-danger); --status-fill: var(--app-state-danger-bg); --status-border: var(--app-state-danger-border); }
.app .app-status--neutral { --status-text: var(--app-state-neutral); --status-fill: var(--app-state-neutral-bg); --status-border: var(--app-state-neutral-border); }
.app .status-filter.is-on { color: var(--status-text); background: var(--status-fill);
  border-color: var(--status-text); box-shadow: inset 0 0 0 1px var(--status-text); }
.app .app-status--text { padding: 0; min-height: 24px; border: 0; background: none; }
.app .status-danger-value { color: var(--app-state-danger); font-weight: 600; }
.app .app-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.profile-state .app-status-line { justify-content: flex-end; }
.profile-list--storage .profile-state .app-status-line,
.profile-list--rentals .profile-state .app-status-line { justify-content: flex-start; }
@media (max-width: 899px) {
  .app .task-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .app .task-phone { grid-column: 2; max-width: 100%; }
  .app .task-details { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
}
@media print {
  .app .app-status { color: #000; border-color: #888; background: transparent; }
}
