:root {
  --bg: #0b0d11;
  --panel: #12151b;
  --panel-2: #171b23;
  --panel-3: #1d222c;
  --line: #232833;
  --line-soft: #1a1f28;
  --text: #e6e8ee;
  --muted: #9aa3b5;
  --dim: #78829a;
  --accent: #e0a458;
  --accent-soft: rgba(224, 164, 88, .14);
  --ok: #4ec9a0;
  --warn: #e8b84b;
  --bad: #e06c75;
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  /* Discord-Referenzwerte (Bericht 20.11.2026) */
  --dc-bg: #313338;
  --dc-text: #dbdee1;
  --dc-name: #f2f3f5;
  --dc-meta: #949ba4;
  --dc-blurple: #5865f2;
  --dc-hover: rgba(4, 4, 5, .07);
  --dc-line: #3f4147;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #151a24 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262c38; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #333a49; background-clip: content-box; }

/* ---------- Boot / Login ---------- */
.boot {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px;
}
.boot-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #14181f, #101319);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #b97c33);
  color: #1a1206; font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 18px rgba(224,164,88,.25);
}
.brand.small .brand-mark { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
.brand-title { font-size: 13px; letter-spacing: .18em; font-weight: 700; }
.brand-sub { font-size: 12px; color: var(--dim); letter-spacing: .08em; }
.auth-form { display: grid; gap: 8px; margin-top: 26px; }
.auth-form label { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.auth-form input {
  background: #0d1015; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-form .btn { margin-top: 10px; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.err { color: var(--bad); font-size: 13px; margin-top: 6px; }
.boot-foot { margin-top: 26px; text-align: center; color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  background: var(--panel-3); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { background: #232a36; border-color: #2f3745; }
.btn.primary { background: linear-gradient(180deg, #e8ae66, #cf8f3f); color: #1a1206; border: none; font-weight: 650; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.tiny { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: default; }
.icon-btn {
  background: transparent; border: 1px solid transparent; border-radius: 9px;
  width: 34px; height: 34px; font-size: 18px; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { background: var(--panel-3); color: var(--text); }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--nav-w, 264px) 1fr; height: 100dvh; overflow: hidden; position: relative; }
.app.nav-collapsed { grid-template-columns: 0 1fr; }
.app.nav-collapsed .sidebar { visibility: hidden; overflow: hidden; }
.app > .sidebar { grid-column: 1; }
.app > .main { grid-column: 2; }
.nav-resizer { position: absolute; right: -5px; top: 0; bottom: 0; width: 10px; cursor: col-resize; z-index: 46; }
.nav-resizer::after { content: ""; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 2px; height: 46px; border-radius: 2px; background: rgba(255,255,255,.18); transition: background .15s, height .15s; }
.nav-resizer:hover::after, .nav-resizer.dragging::after { background: var(--accent); height: 74px; }
body.resizing-shell { cursor: col-resize; user-select: none; }
.sidebar {
  display: flex; flex-direction: column; min-height: 0; position: relative;
  background: linear-gradient(180deg, #0f1218, #0c0f14);
  border-right: 1px solid var(--line-soft);
}
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 14px; }
.nav { display: grid; gap: 12px; padding: 6px 10px; overflow-y: auto; flex: 1; align-content: start; }
.nav-group { display: grid; gap: 2px; }
.nav-section-head { display: grid; gap: 2px; padding: 9px 12px 6px; border-top: 1px solid var(--line-soft); margin-top: 3px; }
.nav-section-label { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.nav-section-caption { color: var(--dim); font-size: 9px; letter-spacing: .02em; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); cursor: pointer; border: 1px solid transparent; font-size: 14px;
  background: none; text-align: left; width: 100%;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--text); border-color: rgba(224,164,88,.28); }
.nav-item .ic { width: 20px; text-align: center; }
.slot { display: none; }
.sb-foot { padding: 12px; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pill { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); padding: 2px 7px; border-radius: 20px; }
.foot-actions { display: flex; gap: 6px; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  height: 54px; flex: 0 0 54px; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; border-bottom: 1px solid var(--line-soft); background: rgba(11,13,17,.7);
  backdrop-filter: blur(10px);
}
.tb-title { font-weight: 600; letter-spacing: .02em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.flag { font-size: 10px; letter-spacing: .12em; color: #1a1206; background: var(--accent); padding: 3px 8px; border-radius: 6px; font-weight: 800; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px rgba(78,201,160,.6); }
.dot.bad { background: var(--bad); }
.view { flex: 1; min-height: 0; overflow: auto; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
.only-mobile { display: none; }

/* ---------- Chat-Modul ---------- */
.chat { display: grid; grid-template-columns: var(--topics-w, 232px) minmax(0, 1fr); height: 100%; min-height: 0; }
.chat.topics-hidden { grid-template-columns: 0 minmax(0, 1fr); }
.chat.topics-hidden .topics { display: none; }
.topics { border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; min-height: 0; background: #0e1116; }
.topics-head { display: flex; gap: 8px; padding: 12px; }
.topics-head .btn { flex: 1; }
.topic-list { overflow: auto; padding: 4px 8px 12px; display: grid; gap: 3px; align-content: start; }
.topic {
  padding: 9px 11px; border-radius: 9px; cursor: pointer; border: 1px solid transparent;
  display: grid; gap: 2px;
}
.topic:hover { background: var(--panel-2); }
.topic.active { background: var(--panel-3); border-color: var(--line); }
.topic .t { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic .m { font-size: 11px; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.topic .owner { font-size: 10px; color: var(--accent); }
.mini-bar { height: 3px; border-radius: 2px; background: #232833; overflow: hidden; margin-top: 3px; }
.mini-bar i { display: block; height: 100%; background: var(--ok); }

.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ctxbar {
  display: flex; align-items: center; gap: 10px; padding: 8px 18px;
  border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--muted);
  min-width: 0;
}
.ctxbar > * { flex-shrink: 0; }
#ctxPct { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctx-track { flex: 0 0 200px; height: 5px; border-radius: 3px; background: #1b202a; overflow: hidden; max-width: 260px; }
.ctx-track i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .4s, background .3s; }
.ctxbar.warn .ctx-track i { background: var(--warn); }
.ctxbar.bad #ctxLabel { color: var(--bad); font-weight: 600; }
.ctxbar.bad .ctx-track i { background: var(--bad); }
.ctx-actions { margin-left: auto; display: flex; gap: 6px; min-width: 0; }

.thread { flex: 1; overflow: auto; padding: 16px 0 24px; display: grid; gap: 14px; align-content: start; background: var(--bg); }
.thread:has(.empty) { align-content: center; }
/* Discord-Optik: jede Nachricht eine Zeile mit Avatar, Hover-Fläche, kompakte Folgezeilen */
.msg {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px;
  padding: 2px 90px 2px 16px; border-radius: 4px; max-width: none;
  position: relative; transition: background .06s linear;
}
.msg:hover { background: var(--dc-hover); }
.msg .actions {
  position: absolute; top: -30px; right: 12px; display: none; gap: 3px;
  background: #2b2d31; border: 1px solid #1e1f22; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.35); padding: 2px; z-index: 3;
}
.msg:hover .actions { display: flex; }
.msg .actions button {
  width: 56px; height: 52px; display: grid; place-items: center; border: 0;
  background: transparent; color: #b5bac1; cursor: pointer; border-radius: 6px; font-size: 28px;
}
.msg .actions button:hover { background: #35373c; color: #fff; }
.msg .av {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; font-weight: 750; user-select: none; margin-top: 2px;
}
.msg.assistant .av {
  background: linear-gradient(145deg, var(--accent), #b97c33); color: #1a1206;
  box-shadow: 0 2px 10px rgba(224,164,88,.22); position: relative;
}
.msg.assistant .av::after { display: none; }
.msg.user .av { background: #2b3342; color: #cdd4e2; }
.msg.compact { padding-top: 1px; padding-bottom: 1px; }
.msg.compact .av { opacity: 0; }
.msg.grouped .head { display: none; }
.msg.grouped { padding-top: 1px; padding-bottom: 1px; }
.msg.grouped .av { opacity: 0; }
.msg .content { min-width: 0; display: grid; gap: 2px; align-content: start; }
.msg .head { display: flex; align-items: baseline; gap: 8px; }
.msg .name { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--dc-name); }
.msg.assistant .name { color: var(--accent); }
.msg.user .name { color: #cfd6e4; }
.msg .time { font-size: 12px; color: var(--dc-meta); font-variant-numeric: tabular-nums; }
.msg .tag {
  font-size: 10px; font-weight: 600; letter-spacing: .02em; color: #fff;
  background: var(--dc-blurple); border-radius: 3px; padding: 1px 4px; transform: translateY(-1px);
  line-height: 12px;
}
.daysep { display: flex; align-items: center; gap: 12px; margin: 14px 6px 6px; }
.daysep::before, .daysep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.daysep span { font-size: 11px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.msg .body { white-space: pre-wrap; word-wrap: break-word; font-size: 17px; line-height: 24px; color: #e8ebf2; }
.msg.assistant .body { padding: 0; }
.msg.assistant .body p { margin: 0 0 10px; }
.msg.assistant .body code { font-family: var(--mono); font-size: 14px; background: #1a1f28; padding: 1px 6px; border-radius: 5px; }
.msg.assistant .body pre {
  font-family: var(--mono); font-size: 14px; background: #0d1015; border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 10px; overflow: auto;
}
.tool { font-size: 12px; color: var(--dim); font-family: var(--mono); display: flex; gap: 8px; align-items: center; }
.tool .spin { width: 10px; height: 10px; border: 2px solid #2c3442; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.caret::after { content: "▌"; color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.composer { border-top: 1px solid var(--line-soft); padding: 12px clamp(12px, 4vw, 40px) max(14px, env(safe-area-inset-bottom)); background: var(--bg); }
.composer textarea { border-radius: 8px; padding: 11px 16px; background: #1a1f28; border-color: transparent; color: var(--text); }
.composer .btn.primary { border-radius: 8px; background: #5865f2; border-color: #5865f2; color: #fff; }
.composer-inner { display: flex; gap: 10px; align-items: flex-end; max-width: 900px; margin: 0 auto; }
.composer textarea {
  flex: 1; resize: none; background: #1a1f28; border: 1px solid transparent;
  border-radius: 8px; padding: 11px 16px; max-height: 200px; min-height: 44px; outline: none;
  color: var(--text); font-size: 17px; line-height: 24px;
}
.composer textarea:focus { border-color: #5865f2; box-shadow: none; }
.composer .btn.primary { height: 46px; padding: 0 20px; }
.composer-hint { max-width: 900px; margin: 6px auto 0; font-size: 11px; color: var(--dim); display: flex; gap: 10px; }

.empty { display: grid; place-items: center; height: 100%; color: var(--dim); text-align: center; padding: 40px; }
.empty h3 { color: var(--text); font-weight: 600; margin: 0 0 6px; }
.ghost-menu {
  position: fixed; z-index: 60; background: var(--panel-3); border: 1px solid var(--line);
  border-radius: 10px; padding: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.5); min-width: 160px;
}
.ghost-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.ghost-menu button:hover { background: #262d3a; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .only-mobile { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 50;
    transform: translateX(-102%); transition: transform .22s ease;
  }
  .sidebar.open { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.6); }
  .chat { grid-template-columns: 1fr; }
  .topics {
    position: absolute; inset: 0 auto 0 0; width: min(280px, 84vw); z-index: 30;
    transform: translateX(-102%); transition: transform .22s ease; background: #0b0e13;
  }
  .topics.open { transform: none; box-shadow: 24px 0 60px rgba(0,0,0,.6); }
  .chat { position: relative; }
  .thread { padding: 16px 14px; }
  .ctxbar { gap: 8px; padding: 8px 12px; }
  .ctx-track { flex: 1 1 60px; max-width: none; min-width: 40px; }
  .ctx-actions .btn { padding: 5px 9px; font-size: 11px; }
  .composer-hint .desk-only { display: none; }
  .msg { max-width: 100%; }
  .projects-root.projects-root { padding: 16px 12px; }
  .projects-root .project-hero { display: grid; }
  .projects-root .project-head-actions { justify-content: space-between; }
  .projects-root .project-layout { grid-template-columns: 1fr; }
  .projects-root .project-section-head { display: grid; }
  .projects-root .project-section-sub { text-align: left; }
  .projects-root .project-inline { display: grid; }
  .projects-root .graph-node { width: 100%; }
}

.tool-time { color: var(--dim); font-size: 11px; margin-left: 8px; font-variant-numeric: tabular-nums; }

/* q-resize-shell: mobil keine Ziehhilfe, Collapse nicht anwenden */
@media (max-width: 820px) {
  .app.nav-collapsed { grid-template-columns: 1fr; }
  .app.nav-collapsed .sidebar { display: flex; }
  #navToggle { display: none; }
  .nav-resizer { display: none; }
}

/* q-col-resize v2: Klapp-Button am Griff */
.col-collapse { position: absolute; top: 6px; z-index: 22; width: 16px; height: 16px; padding: 0;
  border: 1px solid var(--line); border-radius: 5px; background: rgba(14,17,22,.9); color: var(--muted);
  font-size: 11px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.col-collapse:hover { color: var(--text); border-color: var(--accent); }
.col-min { overflow: hidden; }
.col-min > *:not(.col-resizer):not(.col-collapse) { visibility: hidden; }

/* Arbeitsstatus im Chat (q-work-status) */
.work-status { display: flex; align-items: center; gap: 8px; max-width: 900px; margin: 0 auto 10px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
  color: var(--muted); font-size: 13px; }
.work-status[hidden] { display: none; }
.work-status .spin { width: 12px; height: 12px; border: 2px solid #2c3442; border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite; }

/* 12.2 — Werkzeug-Spinner unter der Blase, direkt hinter dem Cursor */
.tool.inline-below { margin: 2px 0 0 2px; padding-left: 2px; opacity: .85; }

/* 15 — Ungelesen-Trennlinie wie bei Discord */
.unread-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px;
  color: #f23f42; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.unread-line::before { content: ""; flex: 1; height: 1px; background: #f23f42; }
.unread-line::after { content: ""; position: absolute; right: 0; width: 0; }
.unread-line span { color: #f23f42; }

/* 14 — Anhang-Chips mit Bildvorschau */
.attach-chip .attach-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 4px;
  border: 1px solid #2c3442; flex: 0 0 auto; }

/* ===== Discord-Angleichung (Verhalten + Optik), 20.11.2026 ===== */
.msg.assistant .body { white-space: normal; }
.msg.assistant .body p { margin: 0 0 8px; }
.msg.assistant .body p:last-child { margin-bottom: 0; }
.msg.assistant .body code.inline,
.msg.assistant .body code {
  font-family: var(--mono); font-size: 12.5px; background: rgba(255,255,255,.075);
  padding: 1px 5px; border-radius: 4px; color: #e6edf7;
}
.msg.assistant .body pre,
.msg.assistant .body pre.code-block {
  background: #0d1117; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; margin: 8px 0; overflow-x: auto; position: relative;
}
.msg.assistant .body pre code {
  background: none; padding: 0; font-size: 12.5px; white-space: pre; color: #cfd8e3;
}
.msg.assistant .body pre .lang {
  position: absolute; top: 4px; right: 9px; font-size: 10px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--dim);
}
.msg.assistant .body a { color: #58a6ff; text-decoration: none; }
.msg.assistant .body a:hover { text-decoration: underline; }
.msg.assistant .body blockquote {
  border-left: 3px solid #d9a45b; margin: 8px 0; padding: 2px 0 2px 12px; color: #d6dbe5;
}
.msg.assistant .body ul, .msg.assistant .body ol { margin: 8px 0; padding-left: 22px; }
.msg.assistant .body li { margin: 3px 0; }
.msg.assistant .body strong { color: #ffffff; }
.msg.assistant .body del { color: var(--dim); }

/* Gruppierte Nachrichten (gleicher Autor, < 7 Minuten): kein zweiter Kopf */
.msg.grouped { padding-top: 1px; padding-bottom: 1px; }
.msg.grouped .head { display: none; }
.msg.grouped .av { visibility: hidden; }

/* Eigene Avatar-Farbe je Agent statt einer gemeinsamen Akzentfarbe */
.agent-q .msg.assistant .av {
  background: linear-gradient(145deg, #4aa3df, #2d6f9e); color: #04121c;
  box-shadow: 0 2px 10px rgba(74,163,223,.22);
}
.agent-klausingo .msg.assistant .av,
.agent-klaus .msg.assistant .av {
  background: linear-gradient(145deg, #9b8cff, #6b5cd6); color: #0d0a1c;
  box-shadow: 0 2px 10px rgba(155,140,255,.22);
}
.agent-fritz .msg.assistant .av {
  background: linear-gradient(145deg, #e06c75, #b04a52); color: #1c0708;
  box-shadow: 0 2px 10px rgba(224,108,117,.22);
}

/* ===== Reaktionen (Discord) ===== */
.msg .reactions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.msg .reactions:empty { display: none; }
.reaction-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; height: 27px;
  border-radius: 8px; background: #2b2d31; border: 1px solid transparent;
  color: #e8ebf2; font-size: 16px; cursor: pointer; line-height: 1;
}
.reaction-chip:hover { background: #35373c; border-color: #4e5058; }
.reaction-chip.mine { background: rgba(88,101,242,.16); border-color: #5865f2; }
.reaction-chip .cnt { font-size: 12px; color: #b5bac1; font-variant-numeric: tabular-nums; }
.reaction-chip.mine .cnt { color: #c9cdfb; }
.emoji-picker {
  position: absolute; top: 56px; right: 0; display: flex; gap: 2px; padding: 6px;
  background: #2b2d31; border: 1px solid #1e1f22; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index: 5;
}
.emoji-picker button {
  width: 48px; height: 48px; border: 0; background: transparent; font-size: 28px;
  cursor: pointer; border-radius: 6px;
}
.emoji-picker button:hover { background: #35373c; }

/* Chef-Entscheid 20.11.2026: Statusblase ("X arbeitet noch") im Chat aus. */
.work-status, #workStatus { display: none !important; }

/* Zwei-Faktor-Einrichtung (20.11.2026) */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.modal-card { background: #12161d; border: 1px solid #21262d; border-radius: 10px; padding: 18px; width: min(440px, 100%); max-height: 85vh; overflow: auto; }
.modal-card h3 { margin: 0 0 10px; font-size: 16px; }
.modal-card p { margin: 8px 0; font-size: 14px; line-height: 1.45; color: #b5bac1; }
.modal-card .secret { font-family: ui-monospace, monospace; font-size: 15px; letter-spacing: 1px; background: #1a1f28; border: 1px solid #2a313b; border-radius: 6px; padding: 10px; word-break: break-all; color: #e8ebf2; margin: 10px 0; }
.modal-card input { width: 100%; box-sizing: border-box; margin: 8px 0; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.modal .ok { color: #7ee2a8; }
.modal .bad { color: #e06c75; }
