/* ══════════════════════════════════════════════════════════════
   Collrd — Dashboard
   Dom-Dashboard, Dashboard/Index (db-*), Dashboard/Profil
   ══════════════════════════════════════════════════════════════ */

/* ── Dom Dashboard Layout ───────────────────────────────── */
.dom-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1100px;
}

.dom-main-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .dom-main-grid { grid-template-columns: 1fr; }
}

.dom-col-left, .dom-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Sektionen ──────────────────────────────────────────── */
.dom-section { display: flex; flex-direction: column; gap: 16px; }

.dom-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.dom-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dom-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.dom-section-link {
  font-size: 14px;
  color: var(--neon-cyan);
  text-decoration: none;
}

.dom-section-link:hover { text-decoration: underline; }

.dom-badge {
  background: rgba(255,77,106,0.12);
  color: var(--status-error);
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 8px;
}

.dom-badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
}

/* ── Sub-Karten ─────────────────────────────────────────── */
.dom-subs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.dom-sub-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.dom-sub-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.dom-sub-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--border-default); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.dom-sub-avatar-img { width: 100%; height: 100%; object-fit: cover; }

.dom-sub-avatar-initial {
  font-size: 16px; font-weight: 600; color: var(--text-secondary);
}

.dom-sub-info {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}

.dom-sub-name {
  font-size: 16px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dom-sub-pronouns { font-size: 12px; color: var(--text-tertiary); }
.dom-sub-since    { font-size: 12px; color: var(--text-tertiary); }
.dom-sub-arrow    { color: var(--border-strong); font-size: 16px; flex-shrink: 0; }

/* ── Frozen Sub-Karte ── */
.dom-sub-card--frozen {
  border-color: var(--neon-cyan)44;
  background: rgba(0,229,255,0.04);
}
.dom-sub-card--frozen:hover {
  border-color: var(--neon-cyan)88;
  background: rgba(0,229,255,0.08);
}
.dom-sub-freeze-badge {
  font-size: 14px;
  margin-left: 4px;
}

/* ── Not-Okay Sub-Karte ── */
.dom-sub-card--notok {
  border-color: rgba(255,77,106,0.5);
  background: rgba(255,77,106,0.06);
}
.dom-sub-card--notok:hover {
  border-color: rgba(255,77,106,0.8);
  background: rgba(255,77,106,0.12);
}
.dom-sub-notok-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--status-error);
  background: rgba(255,77,106,0.10);
  border: 1px solid rgba(231,76,60,0.25);
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: 6px;
  white-space: nowrap;
  vertical-align: middle;
}

/* ── Hard Limits Vorschau in Sub-Karte ── */
.dom-sub-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}
.dom-sub-limit-tag {
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,77,106,0.10);
  border: 1px solid rgba(255,77,106,0.25);
  color: var(--status-error);
  white-space: nowrap;
}
.dom-sub-limit-more {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 1px 4px;
}

/* ── Feed ───────────────────────────────────────────────── */
.dom-feed { display: flex; flex-direction: column; gap: 0; }

/* ── Dom-Feed Mini-Tabs ─────────────────────────────────── */
.dom-feed-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.dom-feed-tab {
  padding: 4px 12px; border-radius: 14px; font-size: 14px; font-weight: 500;
  background: transparent; border: 1px solid var(--border-default); color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s;
}
.dom-feed-tab:hover { border-color: var(--border-strong); color: var(--text-primary); }
.dom-feed-tab.active { background: var(--neon-magenta-soft); border-color: var(--neon-magenta); color: var(--neon-magenta); }

/* ── Feed Skeleton ──────────────────────────────────────── */
.dom-feed-skeleton {
  height: 52px; border-bottom: 1px solid var(--bg-elevated);
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%; animation: domShimmer 1.4s infinite;
}
@keyframes domShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Feed Icon ──────────────────────────────────────────── */
.dom-feed-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; margin-top: 2px;
}

/* ── Status + XP Badges ─────────────────────────────────── */
.dom-feed-status { font-size: 12px; border-radius: var(--radius-md); padding: 1px 6px; }
.dom-feed-status.open       { background: var(--bg-elevated); color: var(--text-primary); }
.dom-feed-status.completed  { background: rgba(74,222,128,0.08); color: var(--status-success); }
.dom-feed-status.expired    { background: rgba(255,77,106,0.10);  color: var(--status-error); }
.dom-feed-status.locked_by_penance { background: rgba(168,85,247,0.10); color: var(--neon-violet); }
.dom-feed-xp-badge { font-size: 12px; font-weight: 600; border-radius: var(--radius-md); padding: 1px 6px; }
.dom-feed-xp-badge.positive { color: var(--status-success); background: rgba(46,204,113,0.1); }
.dom-feed-xp-badge.negative { color: var(--status-error); background: rgba(255,77,106,0.10); }

.dom-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-elevated);
}

.dom-feed-item:last-child { border-bottom: none; }

.dom-feed-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border-default); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.dom-feed-avatar-img { width: 100%; height: 100%; object-fit: cover; }

.dom-feed-avatar-initial {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
}

.dom-feed-body {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}

.dom-feed-name  { font-size: 14px; color: var(--neon-cyan); font-weight: 600; }
.dom-feed-text  { font-size: 14px; color: var(--text-primary); }
.dom-feed-xp    { font-size: 14px; }
.dom-feed-xp.positive { color: var(--status-success); }
.dom-feed-xp.negative { color: var(--status-error); }
.dom-feed-time  { font-size: 12px; color: var(--text-tertiary); flex-shrink: 0; white-space: nowrap; }

/* ── Listen (Strafen / Belohnungen) ─────────────────────── */
.dom-list { display: flex; flex-direction: column; }

.dom-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-elevated);
}

.dom-list-item:last-child { border-bottom: none; }

.dom-list-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border-default); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.dom-list-body {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}

.dom-list-sub   { font-size: 14px; color: var(--neon-cyan); font-weight: 600; }
.dom-list-title { font-size: 16px; color: var(--text-primary); }
.dom-list-meta  { font-size: 14px; color: var(--text-tertiary); }
.dom-list-meta.overdue { color: var(--status-error); }
.dom-list-xp    { font-size: 14px; color: var(--text-secondary); flex-shrink: 0; white-space: nowrap; }

/* ── Empty States ───────────────────────────────────────── */
.dom-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 24px; gap: 12px; text-align: center;
}

.dom-empty-icon { font-size: 32px; }
.dom-empty p    { font-size: 16px; color: var(--text-tertiary); }

.dom-empty-inline {
  font-size: 14px; color: var(--text-tertiary);
  padding: 16px 0; text-align: center;
}

/* ── dashboard / index ─────────────────────────────────── */
/* ── Layout ──────────────────────────────────────────── */
.db-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1060px;
}

.db-top-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}

.db-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.db-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.db-card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  font-weight: 400;
}

/* ── Hero ────────────────────────────────────────────── */
.db-hero-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.db-ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.db-ring {
  width: 80px;
  height: 80px;
}

.db-ring-avatar {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.db-ring-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-ring-avatar-initial {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.db-ring-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 16px;
  background: var(--bg-card);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
}

.db-hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.db-hero-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-hero-level {
  font-size: 14px;
  color: var(--neon-magenta);
  font-weight: 600;
}

.db-hero-title {
  font-size: 14px;
  color: var(--text-secondary);
}

.db-hero-stats {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.db-hero-counters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.db-hero-counter {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.db-hero-counter-value {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.db-hero-counter-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.db-hero-counter-value         { color: var(--text-primary); }
.db-hero-counter-value.green   { color: var(--status-success); }

/* ── Heute fällig ────────────────────────────────────── */
.db-due-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-void);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.db-due-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-body);
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.db-due-tab.active {
  background: var(--neon-magenta-soft);
  color: var(--neon-magenta);
}

.db-due-panel {
  overflow-y: auto;
  max-height: 220px;
}

.db-due-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-due-day {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-top: 8px;
  margin-bottom: 2px;
}

.db-due-day:first-child { margin-top: 0; }

.db-due-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.2s;
  gap: 8px;
}

.db-due-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-due-item:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.db-due-item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-due-item-xp {
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

.db-due-item-xp.negative { color: var(--status-error); }

.db-due-item-type {
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}

.db-due-item-type.routine {
  background: rgba(168,85,247,0.12);
  color: var(--neon-violet);
  border: 1px solid rgba(168,85,247,0.20);
}

.db-due-item-type.punishment {
  background: rgba(255,77,106,0.10);
  color: var(--status-error);
  border: 1px solid rgba(231,76,60,0.25);
}

/* Erledigt-Zustand: durchgestrichen + gedimmt */
.db-due-item--done {
  opacity: 0.45;
  pointer-events: none;
}

.db-due-item--done .db-due-item-title {
  text-decoration: line-through;
}

.db-due-item--done .db-due-item-type {
  background: rgba(46, 204, 113, 0.12);
  color: var(--status-success);
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.db-due-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1.6;
}

.db-due-empty-icon {
  font-size: 29px;
  margin-bottom: 8px;
}

/* ── Chart ───────────────────────────────────────────── */
.db-chart-card { padding-bottom: 20px; }

.db-chart-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-void);
  border-radius: 6px;
  padding: 3px;
}

.db-chart-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-body);
  padding: 10px 14px;
  min-height: 44px; /* F6b: Touch-Target */
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.db-chart-tab.active {
  color: var(--neon-magenta);
  border-bottom-color: var(--neon-magenta);
}

.db-chart-filters { display: flex; gap: 4px; }

.db-filter-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-tertiary);
  font-size: 14px;
  font-family: var(--font-body);
  padding: 8px 12px;
  min-height: 44px; /* F6b: Touch-Target */
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.db-filter-btn:hover { color: var(--text-primary); }

.db-filter-btn.active {
  border-color: var(--neon-magenta);
  color: var(--neon-magenta);
  background: var(--neon-magenta-soft);
}

.db-chart-comparison {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  min-height: 18px;
}

.db-chart-comparison .positive { color: var(--status-success); }
.db-chart-comparison .negative { color: var(--status-error); }

.db-chart-area {
  height: 200px;
  position: relative;
}

/* ── Collapsbare Sektionen ───────────────────────────── */
.db-sections {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-section {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.db-section:hover  { border-color: var(--border-strong); }
.db-section.open   { border-color: var(--border-strong); }

.db-section-header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-body);
  text-align: left;
  transition: background 0.15s;
}

.db-section-header:hover { background: rgba(255,255,255,0.02); }

.db-section-icon    { font-size: 20px; flex-shrink: 0; line-height: 1; color: var(--text-secondary); }
.db-section-label   { font-size: 16px; font-weight: 600; color: var(--text-primary); flex: 1; }
.db-section-summary { font-size: 14px; color: var(--text-tertiary); flex-shrink: 0; }

.db-section-chevron {
  font-size: 16px;
  color: var(--border-strong);
  flex-shrink: 0;
  transition: transform 0.25s;
  display: inline-block;
}

.db-section.open .db-section-chevron { transform: rotate(90deg); }

.db-section-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--bg-elevated);
}

.db-section-content { padding-top: 16px; }

/* Stats Grid */
.db-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.db-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.db-stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.db-stat-value.gold   { color: var(--text-primary); }
.db-stat-value.purple { color: var(--neon-violet); }
.db-stat-value.green  { color: var(--status-success); }
.db-stat-value.red    { color: var(--status-error); }

/* Streak */
.db-streak-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.db-streak-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.db-streak-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-streak-name    { flex: 1; font-size: 14px; color: var(--text-secondary); }
.db-streak-current { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.db-streak-best    { font-size: 12px; color: var(--text-tertiary); }

/* Meilensteine */
.db-milestone {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.db-milestone-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.db-milestone-value { font-size: 16px; color: var(--text-primary); }

.db-milestone-bar-wrap {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}

.db-milestone-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-violet));
  border-radius: 2px;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px var(--neon-magenta-glow);
}

/* Mood-Korrelation */
.db-correlation {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--neon-cyan);
  line-height: 1.5;
}

/* ── Skeleton Loading ─────────────────────────────────── */
.skel {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, #222230 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s infinite;
  border-radius: 4px;
  display: block;
}

@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skel-inline  { display: inline-block; }
.skel-w40     { width: 40px; }
.skel-w60     { width: 60px; }
.skel-w80     { width: 80%; }
.skel-w120    { width: 120px; }
.skel-w200    { width: 200px; }
.skel-h12     { height: 12px; }
.skel-h14     { height: 14px; }
.skel-h20     { height: 20px; }

.skel-due-item  { height: 38px; border-radius: var(--radius-md); width: 100%; }
.skel-stat      { height: 70px; border-radius: var(--radius-md); }
.skel-chart-area { height: 160px; border-radius: var(--radius-md); width: 100%; }

.skel-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding: 0 8px;
}

.skel-bar { flex: 1; border-radius: 3px 3px 0 0; }

.db-chart-skeleton {
  height: 200px;
  display: flex;
  align-items: flex-end;
}
/* ── Aktivitätskalender ──────────────────────────────── */
.db-calendar-card { overflow-x: auto; }

#db-calendar {
  min-height: 120px;
}

.db-cal-grid {
  display: flex;
  gap: 3px;
  align-items: flex-start;
}

.db-cal-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.db-cal-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.db-cal-cell:hover { opacity: 0.75; }

.db-cal-cell[data-level="0"] { background: var(--bg-elevated); }
.db-cal-cell[data-level="1"] { background: rgba(255,45,123,0.20); }
.db-cal-cell[data-level="2"] { background: rgba(255,45,123,0.40); }
.db-cal-cell[data-level="3"] { background: rgba(255,45,123,0.65); }
.db-cal-cell[data-level="4"] { background: var(--neon-magenta); }

.db-cal-months {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
  padding-left: 20px;
}

.db-cal-month-label {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.db-cal-weekdays {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-right: 4px;
  padding-top: 1px;
}

.db-cal-weekday {
  height: 12px;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 12px;
  width: 16px;
  text-align: right;
}

.db-cal-legend-label {
  font-size: 12px;
  color: var(--text-tertiary);
}

.db-cal-dot[data-level="0"] { background: var(--bg-elevated); }
.db-cal-dot[data-level="1"] { background: rgba(255,45,123,0.20); }
.db-cal-dot[data-level="2"] { background: rgba(255,45,123,0.40); }
.db-cal-dot[data-level="3"] { background: rgba(255,45,123,0.65); }
.db-cal-dot[data-level="4"] { background: var(--neon-magenta); }

/* ── Viewer Banner ───────────────────────────────────── */
.viewer-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 20px;
}
.viewer-banner-avatar {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover; border: 2px solid var(--border-default);
}
.viewer-banner-avatar-placeholder {
  background: var(--border-default); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
}
.viewer-banner-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.viewer-banner-name { font-size: 16px; color: var(--text-primary); font-weight: 600; }
.viewer-banner-label { font-size: 14px; color: var(--text-secondary); }

/* ── Dom-Aktionen Toolbar ───────────────────────────── */
.dom-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--neon-magenta-soft);
  border: 1px solid rgba(255,45,123,0.15);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 4px;
}
.dom-toolbar-label {
  font-size: 14px;
  color: var(--neon-magenta);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.dom-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dom-toolbar-btn {
  background: rgba(255,45,123,0.08);
  border: 1px solid rgba(255,45,123,0.2);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.dom-toolbar-btn i.ph {
  font-size: 15px;
  color: var(--neon-magenta);
  flex-shrink: 0;
  line-height: 1;
}
.dom-toolbar-btn:hover {
  background: rgba(255,45,123,0.15);
  border-color: var(--neon-magenta);
}
.db-locked-section {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 32px 16px; gap: 8px;
  color: var(--text-tertiary); text-align: center;
}
.db-locked-section-icon { font-size: 29px; }
/* ── Viewer Achievement Accordion ── */
.achievements-trigger {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer; user-select: none;
  transition: background 0.15s;
}
.achievements-trigger:hover { background: rgba(201,168,76,0.04); }
.achievements-trigger-left {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.achievements-count-pill {
  font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 20px;
  background: var(--neon-magenta-soft);
  border: 1px solid rgba(255,45,123,0.2);
  color: var(--neon-magenta);
}
.achievements-preview { display: flex; gap: 3px; align-items: center; }
.achievement-preview-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 1px solid transparent;
}
.achievement-preview-dot.bronze  { background: #cd7f32; border-color: #cd7f3260; }
.achievement-preview-dot.silver  { background: #c0c0c0; border-color: #c0c0c060; }
.achievement-preview-dot.gold    { background: #ffd700; border-color: #ffd70060; }
.achievement-preview-dot.diamond { background: #b9f2ff; border-color: #b9f2ff60; }
.achievements-chevron {
  font-size: 12px; color: var(--text-tertiary);
  transition: transform 0.25s ease;
}
.achievements-trigger.open .achievements-chevron { transform: rotate(180deg); }
.achievements-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--bg-elevated);
}
.achievements-body.open { display: block; }
.achievement-category { margin-top: 20px; }
.achievement-category-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-tertiary); margin-bottom: 10px;
}
.achievement-row { display: flex; gap: 10px; flex-wrap: nowrap; }
.achievement-badge {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 5px; width: 64px;
  flex-shrink: 0; cursor: default;
}
.badge-circle {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent;
  transition: transform 0.2s ease;
}
.badge-bronze  .badge-circle { background: radial-gradient(135deg,#3d2a0f,#1a0f05); border-color: #cd7f32; box-shadow: 0 0 8px rgba(205,127,50,.35); }
.badge-silver  .badge-circle { background: radial-gradient(135deg,#2a2a2a,var(--bg-card)); border-color: #c0c0c0; box-shadow: 0 0 8px rgba(192,192,192,.3); }
.badge-gold    .badge-circle { background: radial-gradient(135deg,#3d320a,#1a1505); border-color: #ffd700; box-shadow: 0 0 12px rgba(255,215,0,.45); }
.badge-diamond .badge-circle { background: radial-gradient(135deg,#0a1f2e,#050d14); border-color: #b9f2ff; box-shadow: 0 0 14px rgba(185,242,255,.5); }
.badge-locked  .badge-circle { background: var(--bg-void); border-color: var(--border-default); border-style: dashed; }
.achievement-badge:not(.badge-locked):hover .badge-circle { transform: scale(1.08); }
.badge-icon-img { width: 22px; height: 22px; object-fit: contain; }
.badge-locked  .badge-icon-img { filter: grayscale(1) brightness(0.3); }
.badge-bronze  .badge-icon-img { filter: drop-shadow(0 0 2px rgba(205,127,50,.6)); }
.badge-silver  .badge-icon-img { filter: drop-shadow(0 0 2px rgba(192,192,192,.5)); }
.badge-gold    .badge-icon-img { filter: drop-shadow(0 0 3px rgba(255,215,0,.7)); }
.badge-diamond .badge-icon-img { filter: drop-shadow(0 0 4px rgba(185,242,255,.8)); }
.badge-title {
  font-size: 9px; text-align: center; line-height: 1.3; max-width: 64px;
}
.badge-bronze  .badge-title { color: #cd7f32; }
.badge-silver  .badge-title { color: #b0b0b0; }
.badge-gold    .badge-title { color: #ffd700; }
.badge-diamond .badge-title { color: #b9f2ff; }
.badge-locked  .badge-title { color: var(--border-strong); }
.badge-date { font-size: 9px; color: var(--text-tertiary); text-align: center; }

/* ── Viewer Limits & Freeze Block ── */
.viewer-limits-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 0;
}

/* Freeze Banner */
.viewer-freeze-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--neon-cyan-soft);
  border: 1px solid rgba(0,229,255,0.20);
  border-radius: 10px;
  padding: 12px 16px;
}
.viewer-freeze-icon { font-size: 22px; flex-shrink: 0; }
.viewer-freeze-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.viewer-freeze-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--neon-cyan);
}
.viewer-freeze-note {
  font-size: 14px;
  color: #7a9abf;
}
.viewer-freeze-since {
  font-size: 12px;
  color: var(--text-tertiary);
}
.viewer-freeze-label {
  font-size: 12px;
  color: var(--neon-cyan);
  background: rgba(0,229,255,0.10);
  border: 1px solid rgba(0,229,255,0.20);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Limits Row */
.viewer-limits-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 480px) {
  .viewer-limits-row { grid-template-columns: 1fr; }
}
.viewer-limits-col { display: flex; flex-direction: column; gap: 6px; }
.viewer-limits-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.viewer-limits-label--hard { color: var(--status-error); }
.viewer-limits-label--soft { color: var(--status-warning); }
.viewer-limits-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.viewer-limit-tag {
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.viewer-limit-tag--hard {
  background: rgba(255,77,106,0.10);
  border: 1px solid rgba(231,76,60,0.35);
  color: var(--status-error);
}
.viewer-limit-tag--soft {
  background: rgba(230,126,34,0.1);
  border: 1px solid rgba(230,126,34,0.35);
  color: var(--status-warning);
}
.viewer-limits-reviewed {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
}

/* ── dashboard / profil ────────────────────────────────── */
/* ── Profil Hero ──────────────────────────────────────────── */
.profil-hero {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.profil-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,45,123,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Avatar ───────────────────────────────────────────────── */
.profil-avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.profil-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
}

.profil-avatar {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profil-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profil-avatar-initial {
  font-size: 35px;
  font-weight: 700;
  color: var(--text-primary);
}

.profil-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 18px;
  background: var(--bg-card);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  z-index: 2;
}

.profil-badge.widget-badge-achievement {
  background: color-mix(in srgb, var(--badge-color) 12%, var(--bg-card));
  border-color: color-mix(in srgb, var(--badge-color) 35%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--badge-color) 45%, transparent);
}

/* ── Hero Info ────────────────────────────────────────────── */
.profil-hero-info {
  flex: 1;
  min-width: 0;
}

.profil-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.profil-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.profil-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.profil-role-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid currentColor;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── XP Progress Bar ──────────────────────────────────────── */
.profil-xp-section {
  margin-bottom: 12px;
}

.profil-xp-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.profil-level-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-magenta);
  letter-spacing: 0.04em;
}

.profil-rank-title {
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 2px;
}

.profil-xp-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.profil-progress-bar {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.profil-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-violet));
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px var(--neon-magenta-glow);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Gems ─────────────────────────────────────────────────── */
.profil-gems {
  font-size: 14px;
  color: var(--text-secondary);
}

.profil-gems strong {
  color: var(--text-primary);
}

/* ── Edit Button ──────────────────────────────────────────── */
.profil-edit-btn {
  flex-shrink: 0;
}

/* ── Grid Layout ──────────────────────────────────────────── */
.profil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .profil-grid { grid-template-columns: 1fr; }
  .profil-hero { flex-direction: column; align-items: center; text-align: center; }
  .profil-hero-top { justify-content: center; }
  .profil-roles { justify-content: center; }
}

/* ── Cards ────────────────────────────────────────────────── */
.profil-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px;
}

.profil-card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

/* ── Über mich ────────────────────────────────────────────── */
.profil-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.profil-description-empty {
  font-size: 16px;
  color: var(--text-tertiary);
}

.profil-description-empty a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.profil-description-empty a:hover {
  text-decoration: underline;
}

/* ── Fetische ─────────────────────────────────────────────── */
.profil-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profil-tag {
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.profil-tags-empty {
  font-size: 16px;
  color: var(--text-tertiary);
}

/* ── Meta ─────────────────────────────────────────────────── */
.profil-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profil-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.profil-meta-key {
  color: var(--text-secondary);
}

.profil-meta-val {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Streak ───────────────────────────────────────────────── */
.profil-streak-row {
  display: flex;
  gap: 16px;
}

.profil-streak-badge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
  background: var(--bg-void);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  text-align: center;
}

.profil-streak-icon {
  font-size: 22px;
}

.profil-streak-num {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.profil-streak-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════
   ACHIEVEMENTS — Accordion
══════════════════════════════════════════════════════════ */

.profil-achievements-section {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}

/* ── Accordion Trigger ── */
.achievements-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.achievements-trigger:hover {
  background: rgba(201,168,76,0.04);
}

.achievements-trigger-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.achievements-count-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--neon-magenta-soft);
  border: 1px solid rgba(255,45,123,0.2);
  color: var(--neon-magenta);
}

/* Earned-Badge Vorschau — kleine Dots */
.achievements-preview {
  display: flex;
  gap: 3px;
  align-items: center;
}

.achievement-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid transparent;
}

.achievement-preview-dot.bronze  { background: #cd7f32; border-color: #cd7f3260; }
.achievement-preview-dot.silver  { background: #c0c0c0; border-color: #c0c0c060; }
.achievement-preview-dot.gold    { background: #ffd700; border-color: #ffd70060; }
.achievement-preview-dot.diamond { background: #b9f2ff; border-color: #b9f2ff60; }
.achievement-preview-dot.locked  { background: var(--bg-elevated); border-color: var(--border-default); }

.achievements-chevron {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.achievements-trigger.open .achievements-chevron {
  transform: rotate(180deg);
}

/* ── Accordion Body ── */
.achievements-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--bg-elevated);
}

.achievements-body.open {
  display: block;
}

/* ── Kategorie-Block ── */
.achievement-category {
  margin-top: 20px;
}

.achievement-category-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.achievement-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

/* ── Einzelnes Badge ── */
.achievement-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 64px;
  flex-shrink: 0;
  cursor: default;
}

.badge-circle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Earned States */
.badge-bronze .badge-circle {
  background: radial-gradient(135deg, #3d2a0f 0%, #1a0f05 100%);
  border-color: #cd7f32;
  box-shadow: 0 0 8px rgba(205,127,50,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

.badge-silver .badge-circle {
  background: radial-gradient(135deg, #2a2a2a 0%, var(--bg-card) 100%);
  border-color: #c0c0c0;
  box-shadow: 0 0 8px rgba(192,192,192,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.badge-gold .badge-circle {
  background: radial-gradient(135deg, #3d320a 0%, #1a1505 100%);
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255,215,0,0.45), inset 0 1px 0 rgba(255,255,255,0.1);
}

.badge-diamond .badge-circle {
  background: radial-gradient(135deg, #0a1f2e 0%, #050d14 100%);
  border-color: #b9f2ff;
  box-shadow: 0 0 14px rgba(185,242,255,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  animation: diamond-pulse 3s ease-in-out infinite;
}

@keyframes diamond-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(185,242,255,0.5); }
  50%       { box-shadow: 0 0 22px rgba(185,242,255,0.75); }
}

/* Locked */
.badge-locked .badge-circle {
  background: var(--bg-void);
  border-color: var(--border-default);
  border-style: dashed;
  box-shadow: none;
}

.achievement-badge:not(.badge-locked):hover .badge-circle {
  transform: scale(1.08);
}

/* Icons */
.badge-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.badge-locked .badge-icon-img {
  filter: grayscale(1) brightness(0.3);
}

.badge-bronze  .badge-icon-img { filter: drop-shadow(0 0 2px rgba(205,127,50,0.6)); }
.badge-silver  .badge-icon-img { filter: drop-shadow(0 0 2px rgba(192,192,192,0.5)); }
.badge-gold    .badge-icon-img { filter: drop-shadow(0 0 3px rgba(255,215,0,0.7)); }
.badge-diamond .badge-icon-img { filter: drop-shadow(0 0 4px rgba(185,242,255,0.8)); }

/* Titel */
.badge-title {
  font-size: 9px;
  text-align: center;
  line-height: 1.3;
  max-width: 64px;
  word-break: break-word;
}

.badge-bronze  .badge-title { color: #cd7f32; }
.badge-silver  .badge-title { color: #b0b0b0; }
.badge-gold    .badge-title { color: #ffd700; }
.badge-diamond .badge-title { color: #b9f2ff; }
.badge-locked  .badge-title { color: var(--border-strong); }

/* Datum */
.badge-date {
  font-size: 9px;
  color: var(--text-tertiary);
  text-align: center;
}

/* ── Limits ── */
.profil-limits-section {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.profil-limits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 1024px) {
  .profil-limits-grid { grid-template-columns: 1fr; }
}
.profil-limits-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.profil-limits-label--hard { color: var(--status-error); }
.profil-limits-label--soft { color: var(--status-warning); }
.profil-limits-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profil-limit-tag {
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.profil-limit-tag--hard {
  background: rgba(255,77,106,0.10);
  border: 1px solid rgba(231,76,60,0.35);
  color: var(--status-error);
}
.profil-limit-tag--soft {
  background: rgba(230,126,34,0.1);
  border: 1px solid rgba(230,126,34,0.35);
  color: var(--status-warning);
}

/* ── contract / index ──────────────────────────────────── */


/* ── Chastity Active Card (Dashboard Widget) ──────────── */
/* DS v2 §2.7: Keuschheit = --neon-violet                  */

.chastity-active-card {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chastity-active-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--neon-violet);
  font-family: var(--font-mono);
}


/* ── Severity Pill (catalog items) ────────────────────── */

.severity-pill {
  font-size: 12px;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: var(--radius-full);
  padding: 1px 7px;
}


/* ── Profil Empty State ───────────────────────────────── */

.profil-empty-text {
  font-size: 14px;
  color: var(--text-tertiary);
}

.profil-hint-text {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 12px;
  margin-bottom: 0;
}


/* ══════════════════════════════════════════════════════════════
   F6d — RESPONSIVE LAYOUTS (Dashboard)
   ══════════════════════════════════════════════════════════════ */

/* ── db-top-row: 340px + 1fr → stacked ──────────────────── */
@media (max-width: 1024px) {
  .db-top-row {
    grid-template-columns: 1fr;
  }
}

/* ── Achievement-Row: horizontal scroll statt abschneiden ── */
.achievement-row {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}

/* ── viewer-limits-row: bereits @480px ✅ ─────────────────── */

/* ── Profil-Achievement-Row (Profil-Seite) ────────────────── */
@media (max-width: 480px) {
  .db-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Aktivitäts-Kalender: scroll + vergrößerte Zellen auf Mobile ── */
@media (max-width: 1024px) {
  .db-calendar-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  #db-calendar {
    min-width: 720px;
  }
  .db-cal-months {
    min-width: 720px;
  }
  .db-cal-cell {
    width: 14px;
    height: 14px;
  }
  .db-cal-grid {
    gap: 2px;
  }
  .db-cal-week {
    gap: 2px;
  }
}

/* ── Kalender-Kontrast verbessern (global, nicht nur Mobile) ──── */
.db-cal-month-label {
  color: var(--text-secondary); /* war --text-tertiary, zu schwacher Kontrast */
}
.db-cal-weekday {
  color: var(--text-secondary); /* war --text-tertiary */
}
.db-cal-legend-label {
  color: var(--text-secondary); /* war implizit --text-tertiary */
}

/* ── Chart-Tabs + Filter-Buttons: wrappen ────────────────── */
@media (max-width: 480px) {
  .db-chart-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }
  .db-chart-filters {
    flex-wrap: wrap;
  }
  .db-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
