/* Life OS Workflows Tab Styles */
/* Upper Selector Strip (Matching Pic 1: Now, Later, etc.) */
.wf-upper-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 7px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin: 0 0 10px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
}

.wf-upper-strip::-webkit-scrollbar {
  display: none;
}

.wf-upper-strip .priority-tabs-scroll {
  display: flex;
  align-items: center;
  background: var(--bg-card-elevated, #fbf9f4);
  padding: 3px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-subtle, #e7e2d9);
  gap: 3px;
  flex-shrink: 0;
}

.wf-upper-strip .priority-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--text-secondary, #596677);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.wf-upper-strip .priority-chip:hover {
  background: var(--accent-indigo-soft, rgba(108, 122, 224, 0.08));
  color: var(--text-primary, #0f172a);
}

.wf-upper-strip .priority-chip.active {
  background: var(--accent-indigo, #6c7ae0);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(108, 122, 224, 0.30);
}

.wf-upper-strip .priority-chip .p-icon {
  font-size: 11px;
  display: inline-block;
  line-height: 1;
}

.wf-upper-strip .priority-chip .p-label {
  font-weight: 600;
  font-size: 0.82rem;
}

.wf-upper-strip .priority-chip .p-badge {
  font-size: 10px;
  padding: 0 5px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.07);
  color: inherit;
  font-weight: 700;
  line-height: 15px;
}

.wf-upper-strip .priority-chip.active .p-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.workflows-list,
.savings-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.workflow-card,
.pool-card {
  background: var(--bg-subcard);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.pool-card.is-default-pool {
  border-color: rgba(47, 158, 119, 0.45);
}

.wf-top,
.pool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.wf-title,
.pool-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.15s ease;
  word-break: break-word;
}

.wf-header-clickable {
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 6px;
  margin: -4px -6px;
  transition: background 0.15s ease;
  user-select: none;
  flex: 1 1 240px;
  min-width: 0;
}

.wf-header-clickable:hover {
  background: rgba(99, 102, 241, 0.08);
}

.wf-header-clickable:hover .wf-title {
  color: #6366f1;
}

.wf-trigger,
.wf-last-run,
.pool-sub {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-top: 2px;
  word-break: break-word;
}

/* Summary Stats Card (Vertically Stacked) */
.wf-summary-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-left: auto;
  box-sizing: border-box;
}

.wf-stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.wf-stat-label {
  color: var(--text-secondary, #64748b);
  font-weight: 500;
}

.wf-stat-val {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

/* Claims Tabs Bar (Like Project Page with Multi-row Wrap Support) */
.wf-claims-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
  row-gap: 3px;
  border-bottom: 1.5px solid var(--border-subtle, #cbd5e1);
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 0 2px;
  position: relative;
  z-index: 4;
}

.wf-claim-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px 5px 8px;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border: 1.5px solid var(--border-subtle, #cbd5e1);
  border-bottom: 1.5px solid var(--border-subtle, #cbd5e1);
  background: var(--bg-surface-muted, #f8fafc);
  color: var(--text-secondary, #64748b);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-right: -1.5px;
  position: relative;
  z-index: 1;
  transition: all 0.15s ease;
  white-space: nowrap;
  outline: none;
  font-family: inherit;
}

.wf-claim-tab:hover {
  background: #f1f5f9;
  color: var(--text-primary, #1e293b);
  z-index: 2;
}

.wf-claim-tab.active {
  background: var(--bg-surface, #ffffff);
  color: #1d4ed8;
  border: 1.5px solid var(--border-subtle, #cbd5e1);
  border-top: 3.5px solid #3b82f6;
  border-bottom: 2.5px solid var(--bg-surface, #ffffff) !important;
  font-weight: 700;
  padding: 5px 8px 6px 8px;
  margin-bottom: -2px;
  position: relative;
  z-index: 8;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03);
}

.wf-claim-tab .tab-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-secondary, #64748b);
}

.wf-claim-tab.active .tab-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

@media (max-width: 768px) {
  .wf-claim-tab {
    padding: 5px 6px 4px 6px;
    font-size: 11px;
    gap: 3px;
  }
  .wf-claim-tab.active {
    padding: 4px 6px 5px 6px;
  }
  .wf-claim-tab .tab-badge {
    font-size: 9.5px;
    padding: 0 4px;
    min-width: 14px;
    height: 14px;
  }
}

.wf-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wf-claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 0.78rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
  user-select: none;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wf-claim-row:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.05);
}

.wf-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  max-width: 100%;
  flex-wrap: wrap;
}

.wf-claim-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wf-claim-actions button {
  padding: 3px 6px;
  font-size: 0.72rem;
  line-height: 1;
  border-radius: 4px;
  cursor: pointer;
}

.status-pill {
  font-size: 0.69rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
}

.status-active,
.status-settled,
.status-reimbursed,
.status-closed_reimbursed {
  background: var(--accent-emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #15803d;
}

.status-verified {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #047857;
  font-weight: 700;
}

.wf-claim-row.row-status-verified {
  border-left: 4px solid #059669;
  background: rgba(16, 185, 129, 0.08);
}

.btn-verify-claim {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #047857;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-verify-claim:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.25);
}

.wf-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #065f46;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.status-closed_deductible,
.status-closed_in_deductible {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #0369a1;
}

.status-reviewing,
.status-wait_provider,
.status-awaiting_details,
.status-paused_portal_maintenance {
  background: var(--accent-amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #b45309;
}

.status-pending_submit,
.status-submitted,
.status-awaiting_response {
  background: var(--accent-indigo-soft);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #4f46e5;
}

.status-rejected,
.status-closed_ineligible {
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(100, 116, 139, 0.45);
  color: #64748b;
}

.wf-claim-row.row-status-reimbursed,
.wf-claim-row.row-status-settled,
.wf-claim-row.row-status-closed_reimbursed {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.06);
}

.wf-claim-row.row-status-closed_deductible,
.wf-claim-row.row-status-closed_in_deductible {
  border-left: 4px solid #0284c7;
  background: rgba(14, 165, 233, 0.05);
}

.wf-reach-out-titlebar {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #b91c1c;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.wf-title-alert-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #b91c1c;
  vertical-align: middle;
}

.wf-claim-row.row-status-rejected,
.wf-claim-row.row-status-closed_ineligible {
  border-left: 4px solid #94a3b8;
  background: rgba(148, 163, 184, 0.08);
  opacity: 0.82;
}

.wf-claim-row.row-status-wait_provider,
.wf-claim-row.row-status-awaiting_details {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}

.wf-claim-row.row-status-submitted,
.wf-claim-row.row-status-awaiting_response {
  border-left: 4px solid #6366f1;
}

.wf-logs-section {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 8px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wf-logs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

/* Collapsible Workflow Logs */
details.wf-log-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.71rem;
  color: var(--text-secondary);
  transition: background 0.15s ease, border-color 0.15s ease;
  display: block;
}

details.wf-log-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

details.wf-log-item > summary {
  list-style: none;
  cursor: pointer;
  outline: none;
  user-select: none;
}

details.wf-log-item > summary::-webkit-details-marker {
  display: none;
}

.wf-log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.wf-log-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  display: inline-block;
  color: var(--text-muted);
  flex-shrink: 0;
}

details.wf-log-item[open] .wf-log-chevron {
  transform: rotate(90deg);
  color: var(--text-primary);
}

.wf-log-content {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wf-log-ops {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 6px;
  border-left: 2px solid var(--border-subtle);
  margin-top: 2px;
}

/* Vampire Hunter Specific Styles */
.vh-whitelist-panel {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vh-whitelist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vh-whitelist-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vh-whitelist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vh-wl-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.vh-wl-chip-remove {
  background: none;
  border: none;
  color: #047857;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.vh-wl-chip-remove:hover {
  color: #dc2626;
}

.vh-whitelist-add-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vh-wl-input {
  flex: 1 1 180px;
  font-size: 0.74rem;
  padding: 4px 9px;
  border: 1px solid var(--border-subtle, #cbd5e1);
  border-radius: 6px;
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #0f172a);
}

.vh-action-toggle-group {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, #cbd5e1);
  background: var(--bg-surface-muted, #f8fafc);
}

.vh-toggle-btn {
  border: none;
  background: transparent;
  font-size: 0.69rem;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  color: var(--text-secondary, #64748b);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.vh-toggle-btn.keep-btn:hover,
.vh-toggle-btn.keep-btn.active {
  background: #10b981;
  color: #ffffff;
}

.vh-toggle-btn.cancel-btn:hover,
.vh-toggle-btn.cancel-btn.active {
  background: #ef4444;
  color: #ffffff;
}

.wf-claim-row.row-status-dispute_needed {
  border-left: 5px solid #dc2626;
  border-color: rgba(220, 38, 38, 0.55);
  background: rgba(239, 68, 68, 0.08);
}

.wf-claim-row.row-status-cancelled_verified {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.06);
}

.wf-claim-row.row-status-cancel_requested {
  border-left: 4px solid #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}

.wf-claim-row.row-status-pending_review {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.wf-claim-row.row-status-whitelisted {
  border-left: 4px solid #94a3b8;
  background: rgba(148, 163, 184, 0.05);
}

.vh-price-hike-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #b45309;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.vh-dispute-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fee2e2;
  border: 1px solid #dc2626;
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.vh-dispute-box {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #881337;
}

.vh-dispute-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono, monospace);
  font-size: 0.67rem;
  background: #ffffff;
  border: 1px solid #fda4af;
  border-radius: 4px;
  padding: 8px;
  margin-top: 6px;
  color: #1e293b;
  max-height: 220px;
  overflow-y: auto;
}

/* Perks Vault Dashboard Styles */
.pv-red-alert-panel {
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.92), rgba(255, 241, 242, 0.96));
  border: 1.5px solid rgba(220, 38, 38, 0.55);
  border-left: 5px solid #dc2626;
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv-red-alert-head {
  color: #991b1b;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.pv-red-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pv-red-prompt-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 8px 34px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-dismiss-perk-alert {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 999px;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  z-index: 2;
}

.btn-dismiss-perk-alert:hover {
  background: #dc2626;
  border-color: #b91c1c;
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.3);
}

.pv-red-prompt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pv-countdown-badge {
  display: inline-flex;
  align-items: center;
  background: #dc2626;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.pv-red-prompt-body {
  font-size: 0.73rem;
  line-height: 1.4;
  color: #7f1d1d;
  background: #fff5f5;
  border-radius: 5px;
  padding: 5px 8px;
}

.pv-all-clear-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #065f46;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 0.76rem;
}

.pv-vault-groups-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
}

@media (max-width: 1120px) {
  .pv-vault-groups-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .pv-vault-groups-grid {
    grid-template-columns: 1fr;
  }
}

.pv-temp-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #6d28d9;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.pv-cadence-group {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, #cbd5e1);
  background: #f8fafc;
}

.pv-cadence-btn {
  border: none;
  background: transparent;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
}

.pv-cadence-btn.active {
  background: #4f46e5;
  color: #ffffff;
}

.pv-vault-group-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pv-vault-group-card.has-red {
  border-color: rgba(220, 38, 38, 0.45);
  border-top: 3px solid #dc2626;
}

.pv-vault-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 5px;
}

.pv-vault-group-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pv-vault-group-sum {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #1e293b;
}

.pv-vault-group-sum.text-red {
  color: #dc2626;
}

.pv-vault-group-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pv-vault-mini-tile {
  border-radius: 6px;
  padding: 5px 7px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  border: 1px solid var(--border-subtle);
}

.pv-vault-mini-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.pv-vault-mini-tile.pv-mini-red {
  background: #fef2f2;
  border-color: #fca5a5;
  border-left: 3.5px solid #dc2626;
  color: #991b1b;
}

.pv-vault-mini-tile.pv-mini-active {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-left: 3.5px solid #6366f1;
  color: #1e293b;
}

.pv-vault-mini-tile.pv-mini-done {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left: 3.5px solid #10b981;
  color: #065f46;
}

.pv-vault-mini-tile.pv-mini-ignored {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-left: 3.5px solid #94a3b8;
  color: #64748b;
  opacity: 0.82;
}

.pv-enroll-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pv-enroll-chip.is-enrolled {
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #065f46;
}

.pv-enroll-chip.needs-activate {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.pv-enroll-pill {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.pv-subcredits-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.pv-subcredit-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
}

.pv-subcredit-pill.burned {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
  text-decoration: line-through;
}

.pv-progress-wrap {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.pv-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.pv-inline-prompt {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  line-height: 1.38;
  background: rgba(99, 102, 241, 0.06);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  color: #312e81;
}

.pv-inline-prompt.is-red {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(220, 38, 38, 0.45);
  color: #7f1d1d;
}



