/* ============================================================
   STEP 2: view tabs + list toggles + activities + quotes + dormant
   Append AFTER styles-additions-v2.css.
   ============================================================ */

/* ---------- View tabs ---------- */

.ds-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  width: fit-content;
  margin: 0 0 18px;
  align-items: center;
}

.ds-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.6);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.ds-tab:hover { color: rgba(0, 0, 0, 0.85); }

.ds-tab.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(0, 0, 0, 0.92);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ds-tab-count {
  font-size: 11px;
  opacity: 0.55;
  font-weight: 400;
}

.ds-config-btn {
  margin-left: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.55);
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}

.ds-config-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.85);
}

/* ---------- Config panel ---------- */

.ds-config-panel {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.ds-config-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 12px;
}

.ds-config-section { margin-bottom: 12px; }

.ds-config-section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-bottom: 6px;
}

.ds-config-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  cursor: pointer;
}

.ds-config-row input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

.ds-config-row-text { flex: 1; }

.ds-config-row-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.ds-config-row-desc {
  font-size: 11px;
  opacity: 0.65;
  line-height: 1.4;
  margin-top: 1px;
}

.ds-config-hint {
  font-size: 11px;
  opacity: 0.55;
  margin-top: 8px;
  font-style: italic;
}

/* ---------- List blocks (containers for each enabled list) ---------- */

.ds-list-block { margin-bottom: 24px; }

.ds-list-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.ds-list-title {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.ds-list-count {
  font-size: 11px;
  opacity: 0.5;
}

.ds-empty {
  font-size: 12px;
  opacity: 0.55;
  font-style: italic;
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

/* ---------- Activity list ---------- */

.al-empty {
  font-size: 12px;
  opacity: 0.55;
  font-style: italic;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  text-align: center;
}

.al-group { margin-bottom: 18px; }

.al-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
}

.al-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.al-group-title {
  font-size: 13px;
  font-weight: 500;
}

.al-group-count {
  font-size: 11px;
  opacity: 0.6;
  margin-left: auto;
}

.al-overdue-badge {
  color: #993C1D;
  font-weight: 500;
}

.al-card {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.al-card:hover { background: rgba(0, 0, 0, 0.04); }
.al-card.is-overdue { background: #FAECE7; }
.al-card.is-overdue:hover { background: #F5DDD2; }
.al-card.is-today { background: #FAEEDA; }
.al-card.is-today:hover { background: #F5E2C2; }

.al-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  margin-top: 6px;
  margin-left: 5px;
}
.al-card.is-overdue .al-bullet { background: #993C1D; }
.al-card.is-today .al-bullet { background: #854F0B; }

.al-body { min-width: 0; }

.al-line1 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.al-line2 {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
  line-height: 1.3;
}

.al-card.is-overdue .al-line2 { opacity: 0.9; color: #712B13; }
.al-card.is-today .al-line2 { opacity: 0.9; color: #633806; }

.al-due {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  align-self: center;
}

.al-card.is-overdue .al-due { background: #993C1D; color: #fff; }
.al-card.is-today .al-due { background: #854F0B; color: #fff; }

.al-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 400;
}

.al-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.al-more {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.al-more:hover {
  color: rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.03);
}

/* ---------- Quote list ---------- */

.ql-empty {
  font-size: 12px;
  opacity: 0.55;
  font-style: italic;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  text-align: center;
}

.ql-group { margin-bottom: 18px; }

.ql-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
}

.ql-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ql-group-title {
  font-size: 13px;
  font-weight: 500;
}

.ql-group-meta {
  font-size: 11px;
  opacity: 0.6;
  margin-left: auto;
}

.ql-row {
  display: grid;
  grid-template-columns: 1.5fr 80px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease;
}

.ql-row:hover { background: rgba(0, 0, 0, 0.04); }
.ql-row.is-cooling { background: #FAEEDA; color: #412402; }
.ql-row.is-cooling:hover { background: #F5E2C2; }
.ql-row.is-stalled { background: #FAECE7; color: #4A1B0C; }
.ql-row.is-stalled:hover { background: #F5DDD2; }
.ql-row.is-won { background: #E1F5EE; color: #04342C; }
.ql-row.is-won:hover { background: #D2EAE0; }

.ql-left { min-width: 0; }

.ql-account {
  font-weight: 500;
  font-size: 13px;
}

.ql-sub {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
  margin-top: 1px;
}

.ql-amount {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 13px;
}

.ql-meta {
  font-size: 12px;
  opacity: 0.8;
}

.ql-prob {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  min-width: 36px;
}

.ql-prob.is-high { background: #E1F5EE; color: #085041; }
.ql-prob.is-med  { background: #FAEEDA; color: #633806; }
.ql-prob.is-low  { background: #FAECE7; color: #712B13; }
.ql-prob.is-won  { background: #0F6E56; color: #fff; }

.ql-arrow {
  color: rgba(0, 0, 0, 0.4);
  font-size: 14px;
}

.ql-row.is-cooling .ql-arrow,
.ql-row.is-stalled .ql-arrow,
.ql-row.is-won .ql-arrow {
  color: inherit;
  opacity: 0.5;
}

.ql-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 400;
}

.ql-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ---------- Dormant accounts list ---------- */

.da-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.da-header-text {
  font-size: 12px;
  opacity: 0.7;
}

.da-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0.7;
}

.da-threshold-select {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 6px;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.da-empty {
  font-size: 12px;
  opacity: 0.55;
  font-style: italic;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  text-align: center;
}

.da-list { display: flex; flex-direction: column; gap: 2px; }

.da-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease;
}

.da-row:hover { background: rgba(0, 0, 0, 0.04); }

.da-name {
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.da-watched {
  color: #854F0B;
  font-size: 12px;
}

.da-sub {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 1px;
}

.da-streams {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.da-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.da-chip-empty {
  background: transparent;
  border: 0.5px dashed rgba(0, 0, 0, 0.2);
  font-style: italic;
  opacity: 0.6;
}

.da-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.da-since {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.da-arrow {
  color: rgba(0, 0, 0, 0.4);
  font-size: 14px;
}

/* ---------- Dark mode safety ---------- */

@media (prefers-color-scheme: dark) {
  .ds-tabs { background: rgba(255, 255, 255, 0.06); }
  .ds-tab { color: rgba(255, 255, 255, 0.6); }
  .ds-tab:hover { color: rgba(255, 255, 255, 0.85); }
  .ds-tab.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
  }
  .ds-config-btn:hover { background: rgba(255, 255, 255, 0.08); }
  .ds-config-panel {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .al-card:hover, .ql-row:hover, .da-row:hover { background: rgba(255, 255, 255, 0.05); }
  .da-threshold-select { border-color: rgba(255, 255, 255, 0.2); }
  .al-bullet { background: rgba(255, 255, 255, 0.3); }
  .al-due, .ql-prob, .da-since, .al-chip, .ql-chip, .da-chip {
    background: rgba(255, 255, 255, 0.08);
  }
  .al-more:hover { background: rgba(255, 255, 255, 0.05); }
}
