/* Ergänzende Stile der Gruppe „misc" — nur Klassen mit eigenem Präfix. */

/* ---------- Archiv (arc-) ---------- */
.arc-subject + .arc-subject { border-top: 1px solid var(--hairline); }
.arc-subject { display: block; }
.list > .arc-subject + .arc-subject { border-top: 1px solid var(--hairline); }
.arc-toggle { display: flex; align-items: center; gap: var(--s3); flex: 1 1 auto; min-width: 0; padding: 10px var(--s4); text-align: left; border-radius: 0; }
.arc-toggle:hover { background: color-mix(in srgb, var(--fg) 3.5%, transparent); }
.arc-actions { padding-right: var(--s3); flex: none; }
.arc-detail { padding: var(--s2) var(--s4) var(--s4) calc(var(--s4) + 4px + var(--s3)); background: var(--sunken); border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: var(--s2); }
.arc-label { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: var(--s2); }
.arc-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.arc-tasks li { display: flex; align-items: center; gap: var(--s2); font-size: 13px; min-width: 0; }
.arc-tasks li.done { color: var(--muted); text-decoration: line-through; }
.arc-note { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 6px 10px; }
.arc-note-text { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.arc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--faint)); flex: none; display: inline-block; }
.arc-struck { color: var(--muted); text-decoration: line-through; }
@media (max-width: 520px) { .arc-actions .btn { font-size: 0; gap: 0; padding: 0 8px; } .arc-actions .btn .icon { margin: 0; } }

/* ---------- Papierkorb (tr-) ---------- */
.tr-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tr-expired { color: var(--danger); font-weight: 600; }
.tr-row .meta .icon { vertical-align: -2px; }

/* ---------- Suche (se-) ---------- */
.se-box { display: flex; align-items: center; gap: var(--s2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 4px var(--s2) 4px var(--s4); margin-bottom: var(--s3); position: sticky; top: 0; z-index: 2; transition: border-color .12s, box-shadow .12s; }
.se-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash), var(--shadow-card); }
.se-input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 17px; height: 44px; }
.se-input::placeholder { color: var(--faint); }
.se-input::-webkit-search-cancel-button { display: none; }
.se-chips { margin-bottom: var(--s2); }
.se-hint { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; }
@media (max-width: 520px) { .se-hint { display: none; } }
.se-hit { text-decoration: none !important; color: inherit; align-items: flex-start; }
.se-hit.se-active { background: var(--accent-wash); }
.se-icon { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); margin-top: 1px; }
.se-sub { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.se-mark { background: color-mix(in srgb, var(--warn) 32%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.se-prio { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.se-done { color: var(--faint); text-decoration: line-through; }
.se-enter { align-self: center; flex: none; }
@media (hover: none) { .se-enter { display: none; } }

/* ---------- Lernen (le-) ---------- */
.le-week { display: flex; flex-direction: column; gap: var(--s4); margin-bottom: var(--s2); }
.le-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.le-timer { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s3); border-top: 1px solid var(--hairline); }
.le-timer-subject { width: auto; flex: 1 1 180px; max-width: 320px; }
.le-timer.running { background: var(--accent-wash); border-radius: var(--radius); border-top: 0; padding: var(--s3); }
.le-clock { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 92px; }
.le-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.le-subject { display: flex; flex-direction: column; gap: var(--s3); }
.le-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.le-facts .stat b { font-size: 17px; }
.le-dur { font-variant-numeric: tabular-nums; white-space: nowrap; }
.le-suggested { background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.le-mastery { display: flex; align-items: center; gap: var(--s2); width: 110px; flex: none; }
.le-mastery .progress { flex: 1; }
.le-mastery span { width: 34px; text-align: right; }
.le-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.le-ret { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none;
  background: conic-gradient(var(--warn) calc(var(--p) * 1%), var(--sunken) 0); position: relative; isolation: isolate; }
.le-ret::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); z-index: -1; }
.le-pick { max-height: 180px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; background: var(--surface); }
.le-pick-row { display: flex; align-items: center; gap: var(--s2); padding: 5px 8px 5px 8px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.le-pick-row:hover { background: var(--accent-wash); }
.le-card { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5) 0 var(--s2); }
.le-prompt { font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; white-space: pre-wrap; overflow-wrap: anywhere; }
.le-option { display: flex; align-items: center; gap: var(--s3); text-align: left; padding: 10px var(--s3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: background .12s, border-color .12s; }
.le-option:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-wash); }
.le-option:disabled { cursor: default; }
.le-option.right { border-color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); }
.le-option.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.le-answer { background: var(--sunken); border-radius: var(--radius); padding: var(--s3) var(--s4); }
.le-answer p { white-space: pre-wrap; overflow-wrap: anywhere; }
.le-rubric { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.le-result { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s4) 0; }
.le-result b { font-size: 32px; letter-spacing: -.02em; }
.le-result .progress { width: 100%; }
@media (max-width: 520px) { .le-stats .stat b { font-size: 19px; } .le-clock { font-size: 24px; } .le-mastery { width: 80px; } }

/* ---------- Chat (ch-) ---------- */
.ch-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); padding: var(--s6) var(--s4) var(--s5); max-width: 560px; margin: 0 auto; }
.ch-hero h2 { font-size: 24px; letter-spacing: -.02em; }
.ch-badge { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: var(--accent-fg); background: var(--accent-wash); border: 1px solid var(--accent-soft); }
.ch-points { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--s4); }
@media (max-width: 720px) { .ch-points { grid-template-columns: 1fr; } }
.ch-point { display: flex; flex-direction: column; gap: var(--s2); }
.ch-point-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); color: var(--accent-fg); }
.ch-more { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
