/* Extras: Optionen, Suche, Auswertung, Rückblick, Spardepots, Schulden */
.switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; border-radius: 16px; background: var(--card); font-size: 15px; font-weight: 600; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 14px; background: rgba(128,128,128,.45); position: relative; transition: background .15s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--plus); }
.switch input:checked::after { transform: translateX(18px); }
#paydayField { margin: 8px 0 0 14px; }
.perday { margin-top: 10px; font-size: 13px; font-weight: 650; background: rgba(255,255,255,.18); border-radius: 10px; padding: 6px 10px; display: inline-block; }
#viewStart .note, #viewStart .chips { flex-shrink: 0; }

.search { margin: 0 0 14px; }
.search-sum { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; margin-bottom: 10px; font-weight: 700; }
#searchResults .tx { margin-bottom: 6px; }

.review, .ana { padding: 16px 18px; margin-bottom: 18px; }
.review h3, .ana h3 { margin: 0 0 12px; font-size: 16px; }
.review .pills { display: flex; gap: 8px; margin-bottom: 8px; }
.rline { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rline span { color: var(--muted); }
.rline b { text-align: right; font-variant-numeric: tabular-nums; }
.rline.total { margin-top: 6px; font-size: 15px; }
.rline.total span { color: var(--text); font-weight: 800; }
.arow { margin-bottom: 12px; }
.atop { display: flex; justify-content: space-between; font-size: 15px; font-weight: 650; }
.atop b { font-variant-numeric: tabular-nums; }
.ana .progress { margin-top: 6px; height: 8px; }
.ana .progress div { background: var(--text); opacity: .75; }
.adelta { font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.adelta.up { color: var(--minus-text); }
.adelta.down { color: var(--plus-text); }

.title.sec { margin-top: 30px; font-size: 22px; }
.debt-sum { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 2px 12px; }
.drow { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.drow:last-child { border-bottom: 0; }
.drow .dmain { flex: 1; min-width: 0; }
.drow .what { font-size: 15px; font-weight: 650; }
.drow .when { font-size: 12px; color: var(--muted); margin-top: 2px; }
.drow.done .what, .drow.done .amt { opacity: .55; text-decoration: line-through; }
.dbtn { flex: none; height: 34px; padding: 0 12px; border-radius: 12px; background: var(--bg); font-size: 13px; font-weight: 700; }
.done-toggle { display: block; margin: 4px 2px 8px; padding: 8px 0; color: var(--muted); font-weight: 700; font-size: 14px; }
#depBg .alt { background: var(--card); color: var(--text); }
.switch small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.trow .via { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.dask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 2px 14px; border-bottom: 1px solid var(--line); }
.dask span { flex: 1 1 100%; font-size: 13px; color: var(--muted); font-weight: 650; }
.dask button { flex: 1; height: 42px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 800; font-size: 14px; }
.dask button[data-via="bar"] { background: var(--bg); color: var(--text); }
