/* Fehler-/Ereignis-Log-Fenster — gleiche Farbwelt wie das Widget, aber auf Lesbarkeit in einem größeren Fenster ausgelegt. */ :root { color-scheme: dark; --surface: #1e1e22; --surface-raised: rgba(255, 255, 255, 0.05); --text-primary: #ffffff; --text-secondary: #c3c2b7; --text-muted: #898781; --hairline: rgba(255, 255, 255, 0.1); --accent: #3987e5; --good: #0ca30c; --warning: #fab219; --critical: #d03b3b; --update: #9b6bd6; --font: system-ui, -apple-system, "Segoe UI", sans-serif; } * { box-sizing: border-box; } [hidden] { display: none !important; } html, body { margin: 0; height: 100%; background: var(--surface); color: var(--text-primary); font-family: var(--font); font-size: 13px; overflow: hidden; } body { display: flex; flex-direction: column; } /* ── Titelleiste ─────────────────────────────────────────────────────── */ .titlebar { -webkit-app-region: drag; display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--hairline); flex: 0 0 auto; } .title { font-size: 12px; font-weight: 600; color: var(--text-secondary); } .spacer { flex: 1; } .icon-btn { -webkit-app-region: no-drag; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 22px; border: 0; border-radius: 4px; background: transparent; color: var(--text-muted); font-size: 13px; cursor: pointer; } .icon-btn:hover { background: var(--surface-raised); color: var(--text-primary); } /* ── Inhalt ──────────────────────────────────────────────────────────── */ .content { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px 18px; } .content::-webkit-scrollbar { width: 8px; } .content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; } .group + .group { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hairline); } .group h2 { margin: 0 0 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); } /* ── Aktueller Status ────────────────────────────────────────────────── */ .facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 12px; } .facts dt { color: var(--text-secondary); } .facts dd { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--text-secondary); } /* Status trägt immer Punkt + Text, nie Farbe allein. */ .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: 0 0 auto; } dd[data-severity="warn"] .status-dot { background: var(--warning); border-radius: 2px; transform: rotate(45deg); } dd[data-severity="critical"] .status-dot { background: var(--critical); border-radius: 2px; } dd[data-severity="warn"] .status-label { color: var(--warning); } dd[data-severity="critical"] .status-label { color: var(--critical); } /* ── Verlauf ─────────────────────────────────────────────────────────── */ .log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .log-entry { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); font-size: 11.5px; } .log-entry:last-child { border-bottom: 0; padding-bottom: 0; } .log-time { color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; } .log-source { font-size: 9.5px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 3px; padding: 1px 4px; white-space: nowrap; color: var(--text-muted); } .log-source[data-source="oauth"] { color: var(--warning); } .log-source[data-source="local"] { color: var(--critical); } .log-source[data-source="app"] { color: var(--accent); } .log-source[data-source="refresh"] { color: var(--good); } .log-source[data-source="update"] { color: var(--update); } .log-message { color: var(--text-secondary); line-height: 1.4; word-break: break-word; } .empty { margin: 0; font-size: 11.5px; color: var(--text-muted); } /* ── Fußzeile ────────────────────────────────────────────────────────── */ .actions { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--hairline); flex: 0 0 auto; flex-wrap: wrap; row-gap: 6px; } .feedback { font-size: 11.5px; color: var(--good); } .feedback[data-kind="error"] { color: var(--critical); } .btn { padding: 6px 14px; border: 1px solid var(--hairline); border-radius: 5px; background: transparent; color: var(--text-secondary); font-family: inherit; font-size: 12.5px; cursor: pointer; } .btn:hover { background: var(--surface-raised); color: var(--text-primary); } .btn:disabled { opacity: 0.45; cursor: default; } .count { font-size: 11px; color: var(--text-muted); }