/* Modus "Jira-Entwurf" (Kummerkasten KK-8MT8-YC, 19.11.2026). Nur intern; sichtbar, wenn
   /api/jira-entwurf/status aktiv meldet. Akzentfarbe Jira-Blau. */
body.mode-jira .header { border-bottom: 2px solid #2684ff; }
body.mode-jira .mode-select { border-color: #2684ff; color: #93c5fd; }
body.mode-jira #messageInput, body.mode-jira .upload-btn, body.mode-jira .anhang-leiste,
body.mode-jira .usage-counter { display: none !important; }
body.mode-jira .text-input-row { justify-content: flex-end; padding: 0 4px 4px; }

.je-panel { display: none; padding: 6px 8px 2px; }
body.mode-jira .je-panel { display: block; }
.je-kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12px; color: #94a3b8; margin-bottom: 6px; }
.je-mini { background: #1e293b; border: 1px solid #334155; color: #cbd5e1; border-radius: 6px; padding: 2px 8px;
    font-size: 12px; cursor: pointer; }
.je-mini:hover { border-color: #2684ff; color: #fff; }
.je-editor { min-height: 110px; max-height: 42vh; overflow-y: auto; background: #0b1220; border: 1px dashed #475569;
    border-radius: 10px; padding: 10px 12px; color: #e2e8f0; font-size: 13px; line-height: 1.5; outline: none;
    overflow-wrap: anywhere; }
.je-editor:focus { border-color: #2684ff; border-style: solid; }
.je-editor:empty::before { content: attr(data-platzhalter); color: #64748b; white-space: pre-line; }
.je-editor img { max-width: 100%; max-height: 260px; border: 1px solid #334155; border-radius: 4px; vertical-align: top; }
.je-editor img.je-bild { outline: 2px solid #2684ff55; }
.je-editor table { border-collapse: collapse; } .je-editor td, .je-editor th { border: 1px solid #334155; padding: 2px 4px; }
.je-editor p { margin: 0; }
.je-luecke { display: inline-block; background: #422006; border: 1px dashed #f59e0b; color: #fcd34d; border-radius: 6px;
    padding: 6px 10px; margin: 4px 0; cursor: pointer; font-size: 12px; user-select: none; }
.je-luecke.aktiv { background: #713f12; border-style: solid; box-shadow: 0 0 0 2px #f59e0b55; }
.je-unten { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #94a3b8; margin-top: 6px; }
.je-dateien { display: flex; flex-wrap: wrap; gap: 6px; }
.je-chip { background: #1e293b; border: 1px solid #334155; border-radius: 6px; padding: 2px 8px; color: #cbd5e1; }
.je-chip button { background: none; border: none; color: #64748b; cursor: pointer; margin-left: 4px; }
.je-ki { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.je-tipp { margin-left: auto; color: #64748b; }
.je-meldung { color: #fbbf24; font-size: 12px; margin-top: 4px; }

/* Ergebniskarte im Chat */
.message.assistant .message-bubble:has(.je-karte) { min-width: 0; max-width: 100%; width: 100%; }
.message.assistant:has(.je-karte) { max-width: 100%; width: 100%; }
.je-karte { font-size: 13px; line-height: 1.5; }
.je-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.je-kopf b { color: #f1f5f9; font-size: 15px; }
.je-ki-status { color: #93c5fd; font-size: 12px; }
.je-ki-status.fehler { color: #fbbf24; }
.je-ki-status.fertig { color: #86efac; }
.je-erkannt { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.je-fakt { background: #0f2a1e; border: 1px solid #166534; color: #bbf7d0; border-radius: 12px; padding: 1px 9px; font-size: 12px; }
.je-hinweis { color: #fbbf24; font-size: 12px; margin: 2px 0; }
.je-offen { background: #3b1d0a; border: 1px solid #b45309; color: #fde68a; border-radius: 8px; padding: 6px 10px;
    margin: 8px 0; font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.je-offen.fertig { background: #0f2a1e; border-color: #166534; color: #bbf7d0; }
.je-gruppe { border: 1px solid #334155; border-radius: 10px; padding: 8px 10px 4px; margin: 8px 0; background: #172033; }
.je-gruppe > .je-gtitel { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin-bottom: 4px; }
.je-gruppe.ki { border-color: #1d4ed8; background: #111c3a; }
.je-frage { display: grid; grid-template-columns: 190px 1fr; gap: 4px 10px; align-items: start; padding: 5px 0;
    border-top: 1px solid #1e293b; }
.je-gruppe .je-frage:first-of-type { border-top: none; }
.je-frage.offen > .je-label { color: #fdba74; }
.je-label { color: #cbd5e1; font-size: 12px; padding-top: 4px; }
.je-label .pflicht { color: #f87171; margin-left: 2px; }
.je-quelle { display: inline-block; font-size: 10px; border-radius: 8px; padding: 0 6px; margin-left: 6px; vertical-align: 1px; cursor: help; }
.je-quelle.mail { background: #14532d; color: #86efac; }
.je-quelle.ki { background: #1e3a8a; color: #bfdbfe; }
.je-quelle.standard { background: #334155; color: #cbd5e1; }
.je-feld { min-width: 0; }
.je-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.je-pill { background: #0f172a; border: 1px solid #475569; color: #cbd5e1; border-radius: 14px; padding: 3px 11px;
    font-size: 12px; cursor: pointer; transition: all .15s; }
.je-pill:hover { border-color: #2684ff; color: #fff; }
.je-pill.an { background: #2684ff; border-color: #2684ff; color: #fff; }
.je-pill.vorschlag:not(.an) { border-style: dashed; border-color: #60a5fa; }
.je-feld input[type=text], .je-feld input[type=date], .je-feld select, .je-feld textarea {
    width: 100%; box-sizing: border-box; background: #0f172a; border: 1px solid #475569; color: #e2e8f0; border-radius: 6px;
    padding: 4px 8px; font-size: 13px; font-family: inherit; }
.je-feld input[type=date] { width: auto; color-scheme: dark; }
.je-feld textarea { min-height: 54px; resize: vertical; }
.je-feld input:focus, .je-feld select:focus, .je-feld textarea:focus { outline: none; border-color: #2684ff; }
.je-vorschlaege { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.je-vorschlaege .je-pill { font-size: 11px; padding: 1px 8px; }
.je-erkl { font-size: 11px; color: #64748b; margin-top: 2px; }
.je-frei { display: inline-flex; }
.je-frei input { width: 140px !important; padding: 2px 6px !important; font-size: 12px !important; border-radius: 14px !important; }
details.je-weitere > summary { cursor: pointer; color: #94a3b8; font-size: 12px; padding: 4px 0; }

.je-ergebnis { border-top: 1px solid #334155; margin-top: 10px; padding-top: 10px; }
.je-titelzeile { font-size: 14px; color: #f1f5f9; margin-bottom: 6px; overflow-wrap: anywhere; }
.je-titelzeile .je-projtyp { color: #93c5fd; font-size: 12px; margin-right: 6px; }
.je-tabs { display: flex; gap: 4px; margin: 6px 0 0; }
.je-tab { background: transparent; border: 1px solid #334155; border-bottom: none; color: #94a3b8; border-radius: 8px 8px 0 0;
    padding: 3px 12px; font-size: 12px; cursor: pointer; }
.je-tab.an { background: #f8fafc; color: #172b4d; border-color: #f8fafc; }
.je-seite { display: none; } .je-seite.an { display: block; }
.je-vorschau { width: 100%; height: 460px; border: 1px solid #cbd5e1; border-radius: 0 8px 8px 8px; background: #fff; resize: vertical; }
.je-markup { width: 100%; box-sizing: border-box; height: 460px; background: #0b1220; color: #e2e8f0; border: 1px solid #334155;
    border-radius: 0 8px 8px 8px; font: 12px/1.45 ui-monospace, Consolas, monospace; padding: 8px; resize: vertical; }
.je-felder { width: 100%; border-collapse: collapse; font-size: 12px; }
.je-felder td { border-bottom: 1px solid #334155; padding: 3px 6px; vertical-align: top; }
.je-felder td:first-child { color: #94a3b8; width: 40%; }
.je-manuell { font-size: 12px; color: #fbbf24; margin: 4px 0; }
.je-aktionen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.je-anlegen { background: linear-gradient(135deg, #2684ff, #0052cc); color: #fff; border: none; border-radius: 8px;
    padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.je-anlegen:disabled { opacity: .45; cursor: not-allowed; }
.je-grund { font-size: 11px; color: #94a3b8; }
.je-anh { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #cbd5e1; margin-top: 8px; }
.je-erfolg { background: #0f2a1e; border: 1px solid #22c55e; color: #bbf7d0; border-radius: 8px; padding: 8px 12px; margin-top: 10px; }
.je-erfolg a { color: #86efac; font-weight: 600; }
.je-fehler { background: #3b0d0d; border: 1px solid #ef4444; color: #fecaca; border-radius: 8px; padding: 8px 12px; margin-top: 10px; }
.je-pruefung { font: 11px/1.4 ui-monospace, Consolas, monospace; white-space: pre-wrap; background: #0b1220; border: 1px solid #334155;
    border-radius: 8px; padding: 8px; max-height: 260px; overflow: auto; margin-top: 6px; }
@media (max-width: 700px) {
    .je-frage { grid-template-columns: 1fr; }
    .je-label { padding-top: 0; }
}
@media print { .je-panel, .je-aktionen, .je-tabs { display: none !important; } }
