/* Der Knopf im Seitenkopf soll nicht auf zwei Zeilen umbrechen. Bewusst nur
   hier und nicht global — anderswo gibt es längere Beschriftungen. */
.assistant-head .button-link{white-space:nowrap}
.assistant-answer{scroll-margin-top:24px;overflow-wrap:anywhere}
.assistant-answer:focus{outline:2px solid #bad7c7;outline-offset:3px}
.assistant-answer .panel-head{padding:26px 28px 18px;border-bottom:0}
.assistant-answer .panel-head>div{width:100%}
.assistant-answer .panel-head p:not(.eyebrow){max-width:88ch;font-size:15px;line-height:1.7;color:var(--ink)}
.support-questions{margin:0 28px 22px;padding:20px 24px;background:var(--green-soft);border:1px solid #c9ded1;border-radius:12px}
.support-questions h3{margin:0 0 12px;font-size:17px}
.support-questions ol{margin:0;padding-left:22px;max-width:90ch;line-height:1.65}
.support-questions li+li{margin-top:10px}
.support-reply{margin:0 28px 24px;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:12px}
.support-reply label{display:block;margin-bottom:9px}
.support-reply textarea{min-height:92px}
.support-reply-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:12px}
.support-reply-footer p{font-size:12px;line-height:1.6;margin:0;flex:1;min-width:180px}
.support-reply-footer button{flex-shrink:0;min-height:44px}
.support-details{margin:0 28px 20px;padding:14px 0;border-top:1px solid var(--line);font-size:13px;line-height:1.65}
.support-details summary{cursor:pointer;font-weight:650;color:var(--green)}
.support-details .assistant-notes{margin:16px 0;padding-left:20px}
.support-details form{margin-top:16px}
.support-loading{display:flex;gap:14px;align-items:center;padding:16px;margin-top:14px;border-radius:10px;background:var(--green-soft);color:var(--green);flex-basis:100%;box-sizing:border-box}
.support-loading p{font-size:13px;line-height:1.5;margin:4px 0 0}
.assistant-answer>[data-support-job]{margin:0 24px 24px}
.support-spinner{width:22px;height:22px;flex-shrink:0;border:3px solid #b9d4c4;border-top-color:var(--green);border-radius:50%;animation:support-spin 1s linear infinite}
.support-submit-error{padding:14px;border-radius:8px;background:var(--red-soft);color:var(--red);font-size:14px;line-height:1.6}
[data-support-submit] button:disabled{opacity:.65;cursor:wait}
@keyframes support-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.support-spinner{animation:none}}
@media(max-width:640px){.assistant-answer .panel-head{padding:20px 18px}.support-questions,.support-reply{margin-left:16px;margin-right:16px;padding:16px}.support-details{margin-left:18px;margin-right:18px}.support-reply-footer{display:block}.support-reply-footer button{margin-top:14px;width:100%}}
.assistant-head{align-items:flex-start;gap:24px}.assistant-head>div{min-width:0}.assistant-head>div>p{max-width:78ch}.assistant-head>.button-link{flex-shrink:0;align-self:flex-start}
.assistant-form textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:112px;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;line-height:1.5}
.assistant-form textarea:focus,.support-attempt input:focus{outline:2px solid var(--green);outline-offset:2px}
.support-help-options{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}.support-help-option{display:flex;flex-direction:column;align-items:flex-start;padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.support-help-option--ai{background:var(--green-soft);border-color:#bad7c7}.support-help-option h2{font-size:24px;margin:6px 0 8px}.support-help-option>p{font-size:14px;line-height:1.55;color:var(--muted);margin:0 0 18px}.support-help-option>button{margin-top:auto;min-height:44px}.support-attempt{font-size:13px;width:100%;margin:0 0 18px}.support-attempt summary{cursor:pointer;color:var(--green);font-weight:650}.support-attempt label{display:block;margin:12px 0 6px}.support-attempt input{box-sizing:border-box;width:100%;max-width:260px;padding:11px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;background:#fff}
.support-help-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;padding-top:20px;margin-top:12px;border-top:1px solid var(--line);font-size:13px}.support-help-footer>a{font-weight:650}.assistant-form .support-privacy{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0 0}
.support-connection{display:flex;gap:10px;align-items:flex-start;font-size:13px}.support-connection small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.support-connection-dot{width:9px;height:9px;border-radius:50%;background:#8b9690;flex-shrink:0;margin-top:5px}.support-connection--success .support-connection-dot{background:var(--green)}.support-connection--failed .support-connection-dot{background:var(--red)}.support-connection--stale .support-connection-dot{background:var(--amber)}
.support-test-panel{margin:24px 0}.support-error{margin:20px 24px;padding:18px;border:1px solid #e2b0a8;border-radius:10px;background:#fff7f5;font-size:13px;overflow-wrap:anywhere}.support-error dl{display:flex;flex-wrap:wrap;gap:14px 28px;margin:12px 0}.support-error dt{font-size:11px;color:var(--muted)}.support-error dd{margin:3px 0 0;font-family:monospace}.support-error small{color:var(--muted)}.settings-section-form .support-error{margin:18px 0}
.support-test-panel form{margin-top:20px}.support-test-panel .settings-checkbox-label{gap:12px;line-height:1.5}
@media(max-width:700px){.support-help-options{grid-template-columns:1fr}.assistant-head{flex-direction:column}.support-help-option{padding:18px}.support-help-option>button{width:100%}.assistant-ask .assistant-form{padding:18px}.support-help-footer{align-items:flex-start;flex-direction:column}}

.assistant-ask .assistant-form{padding:22px 24px;display:flex;flex-direction:column;gap:8px}
.assistant-form label{font-size:12px;font-weight:700;color:var(--muted)}
.assistant-input-row{display:flex;gap:12px;align-items:stretch}
.assistant-input-row input{flex:1;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:9px;font:inherit;font-size:15px;background:#fff;color:var(--ink)}
.assistant-input-row button{white-space:nowrap}

.assistant-answer .panel-head p{margin-top:6px;font-size:13px;color:var(--muted);max-width:70ch}
.assistant-answer.answer-anleitung{border-color:#a8d3bd}
.assistant-answer.answer-nicht_vorgesehen{border-color:#eacb92}
.assistant-answer.answer-wegweiser{border-color:#b9cfe4}
.assistant-answer.answer-eskalation{border-color:#e2b0a8}
.assistant-answer.answer-anleitung .panel-head .eyebrow{color:var(--green)}
.assistant-answer.answer-nicht_vorgesehen .panel-head .eyebrow{color:var(--amber)}
.assistant-answer.answer-eskalation .panel-head .eyebrow{color:var(--red)}

.assistant-steps{margin:22px 24px;padding-left:22px;display:flex;flex-direction:column;gap:18px}
.assistant-steps>li{padding-left:6px}
.assistant-steps>li::marker{font-weight:750;color:var(--green)}
.support-step-cards{list-style:none;padding:0;counter-reset:support-step;gap:20px}
.support-step-cards>li{counter-increment:support-step;padding:22px;border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0}
.support-step-title{display:flex;align-items:center;gap:12px;font-size:20px;margin:0 0 14px}
.support-step-title:before{content:counter(support-step);display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:15px}
.support-change-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:18px 0;font-size:14px}
.support-change-table caption{text-align:left;font-weight:700;padding:0 0 10px}
.support-change-table th,.support-change-table td{padding:12px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.support-change-table thead{background:var(--paper);font-size:12px;color:var(--muted)}
.support-change-table th:first-child{width:32%}.support-change-table tbody th{font-weight:600;text-transform:none;letter-spacing:normal;font-size:14px;background:transparent}
.support-change-table small{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.support-step-check{padding:14px 16px;border-left:3px solid var(--green);background:var(--green-soft);font-size:14px;line-height:1.6;border-radius:0 8px 8px 0}
.support-step-check p{margin:4px 0 0}
.support-step-details{margin-top:16px;font-size:12px;line-height:1.6;color:var(--muted)}
.support-step-details summary{cursor:pointer}.support-step-details p{overflow-wrap:anywhere}
@media(max-width:640px){.support-step-cards{margin:16px}.support-step-cards>li{padding:16px}.support-change-table th,.support-change-table td{padding:10px 7px}.support-change-table th:first-child{width:40%}.support-change-table thead th{font-size:11px;letter-spacing:normal;text-transform:none}.support-step-title{font-size:18px}}
.assistant-step-text{margin:0;font-size:14px;line-height:1.55}
.assistant-step-path{margin:6px 0 0;font-size:12px;font-weight:700}
.assistant-step-path a{text-decoration:none;border-bottom:1px solid #b8d3c4}

.assistant-fields{margin:10px 0 0;padding:10px 14px;list-style:none;display:flex;flex-direction:column;gap:6px;background:var(--paper);border-radius:9px}
.assistant-fields li{font-size:13px;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.assistant-fields .muted{font-size:12px}
.assistant-required{background:var(--green-soft);color:var(--green);border-radius:99px;padding:1px 8px;font-size:11px;font-weight:750}

.assistant-notes{margin:0 24px 22px;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.assistant-problems{margin:0 24px 22px;padding:12px 14px;border-radius:9px;background:var(--red-soft);color:var(--red);font-size:13px}
.assistant-problems ul{margin:6px 0 0;padding-left:18px}

.assistant-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin:0 24px 22px;padding-top:16px;border-top:1px solid var(--line)}
.assistant-feedback{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.assistant-feedback button{background:#fff;border:1px solid var(--line);border-radius:8px;padding:7px 14px;font-size:13px;font-weight:700;color:var(--ink)}
.assistant-feedback button:hover{border-color:var(--green);color:var(--green)}
.assistant-feedback button.is-chosen{background:var(--green-soft);border-color:#a8d3bd;color:var(--green)}

@media (max-width:640px){
  .assistant-input-row{flex-direction:column}
  .assistant-actions{flex-direction:column;align-items:flex-start}
}
/* Platform AI settings reuse the settings form components. */
.system-ai-nav { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 22px; }
.system-ai-nav a { padding:10px 16px; border:1px solid #dce5de; border-radius:10px; background:#fff; text-decoration:none; }
.system-ai-nav a[aria-current="page"] { background:#e2f1e8; color:#286749; font-weight:700; }
.system-ai-grant { border:1px solid #dce5de; border-radius:12px; padding:16px; margin-bottom:12px; }
.system-ai-grant summary { cursor:pointer; display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; }
.system-ai-grant summary::before { content:"＋"; color:#286749; }
.system-ai-grant[open] summary::before { content:"−"; }
.system-ai-grant summary span { color:#62776c; font-size:14px; }
.system-ai-grant form { padding-top:20px; }
.system-ai-question { border-top:1px solid #e1e7e3; padding:18px 0; overflow-wrap:anywhere; }
.system-ai-question h3 { font-family:inherit; font-size:17px; font-weight:600; line-height:1.5; margin:8px 0; }
.system-ai-filter { display:flex; flex-wrap:wrap; gap:14px; align-items:end; margin-bottom:18px; }
.system-ai-filter div { flex:1 1 220px; min-width:0; }
.system-ai-filter label { display:block; margin-bottom:6px; }
.system-ai-filter input, .system-ai-filter select { width:100%; box-sizing:border-box; }
.support-guide-link{margin:14px 0 0;padding:10px 12px;border-radius:8px;background:#edf5f0;font-size:14px}.support-guide-link a{font-weight:700}
