/* Styled Modal (system-prompts) — lgnu helles Theme. */
[hidden] { display: none !important; }

#systemPromptOverlay {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.system-prompt {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: systemPromptPop 0.18s ease-out; text-align: center;
}
@keyframes systemPromptPop { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.system-prompt-icon { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.system-prompt-title { color: var(--text); font-size: 20px; font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.system-prompt-text { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.system-prompt-input {
  width: 100%; box-sizing: border-box; margin-bottom: 14px;
  padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 16px; outline: none;
}
.system-prompt-input:focus { border-color: var(--rot); box-shadow: 0 0 0 3px rgba(226,0,26,.15); }
.system-prompt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.system-prompt-actions.system-prompt-actions--single { grid-template-columns: auto; justify-content: center; }
.system-prompt-actions.system-prompt-actions--single .system-prompt-confirm { min-width: 140px; padding-left: 28px; padding-right: 28px; }
.system-prompt-button {
  width: 100%; margin: 0; padding: 13px 16px; border: 0; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: .15s ease;
}
.system-prompt-cancel { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.system-prompt-cancel:hover { background: #F0F0F2; }
.system-prompt-confirm { background: var(--rot); color: #fff; }
.system-prompt-confirm:hover { background: var(--rot-dark); }
/* 3-Button (Speichern/Verwerfen/Abbrechen): Cancel oben-li · Discard oben-re · Confirm unten-re */
.system-prompt-actions--three-buttons { grid-template-areas: "cancel discard" ". confirm"; }
.system-prompt-actions--three-buttons .system-prompt-cancel  { grid-area: cancel; }
.system-prompt-actions--three-buttons #appDiscardBtn         { grid-area: discard; }
.system-prompt-actions--three-buttons .system-prompt-confirm { grid-area: confirm; }
