/* === Amity — Therapeutic Clean (Headspace) === */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-alt: #faf9f7;
  --border: #e8e4de;
  --text: #2d2a26;
  --text-muted: #7a756d;
  --text-soft: #5c5750;
  --accent: #2a9d8f;
  --accent-light: #e8f6f4;
  --accent-hover: #238b7f;
  --coral: #e07a5f;
  --coral-light: #fdf0ec;
  --warm: #f4a261;
  --warm-light: #fef5ec;
  --danger: #e07a5f;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 16px;
  --radius-sm: 12px;
}

html {
  height: auto;
}

body {
  min-height: 100vh;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* === Mode Toggle === */
#mode-toggle-bar {
  display: flex;
  justify-content: center;
  padding: 12px 16px 0;
  background: var(--surface);
}

#mode-toggle {
  position: relative;
  display: flex;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  gap: 0;
}

.mode-btn {
  position: relative;
  z-index: 1;
  padding: 6px 20px;
  border: none;
  border-radius: 17px;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s;
}

.mode-btn.active {
  color: #fff;
}

#mode-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 17px;
  background: var(--accent);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(42, 157, 143, 0.3);
}

#mode-toggle.business #mode-slider {
  transform: translateX(100%);
  background: #4a6fa5;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.3);
}

/* === Header === */
#app-header {
  text-align: center;
  padding: 32px 16px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: visible;
}

#header-inner {
  position: relative;
  z-index: 1;
}

#header-orb {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  opacity: 0.2;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.15); opacity: 0.35; }
}

#app-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

#app-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

/* === DateTime Display === */
#datetime-display {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}

#datetime-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* === Action Intent Radio Buttons === */
#action-intent {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

#action-intent.hidden { display: none; }

.intent-option {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex: 1;
  min-width: 0;
}

.intent-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}

.intent-option input[type="radio"] {
  accent-color: var(--accent);
  margin: 0;
  cursor: pointer;
}

.intent-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intent-option:has(input:checked) .intent-label {
  color: var(--accent);
}

/* === Chat Container === */
#chat-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 220px;
  width: 100%;
}

#messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0 0;
}

/* === Message Bubbles === */
.message {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: var(--radius);
  line-height: 1.6;
  font-size: 0.94rem;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.message.bot {
  align-self: flex-start;
  background: transparent;
  max-width: 100%;
  padding: 0;
}

/* === Response Sections (3 blocks) === */
.response-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.response-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  animation: slideUp 0.35s ease;
}

.response-section:nth-child(2) { animation-delay: 0.08s; }
.response-section:nth-child(3) { animation-delay: 0.16s; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-label.label-empathy { color: var(--accent); }
.section-label.label-impact { color: var(--warm); }
.section-label.label-suggestion { color: var(--coral); }

.section-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-soft);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Suggestion block — highlighted */
.response-section.section-suggestion {
  background: var(--accent-light);
  border-color: rgba(42, 157, 143, 0.2);
}

.response-section.section-suggestion .section-text {
  color: var(--text);
  font-weight: 600;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Copy Button */
.copy-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  position: sticky;
  bottom: 100px;
  z-index: 5;
}

.copy-btn:hover {
  background: var(--accent);
  color: #fff;
}

.copy-btn.copied {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* === Loading dots === */
.loading-dots {
  padding: 14px 18px !important;
  background: var(--surface) !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}

.loading-dots span {
  animation: blink 1.4s infinite;
  font-size: 1.2rem;
  color: var(--accent);
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* === Context Selects === */
#context-selects {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

#context-selects select {
  flex: 1;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a756d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
  transition: border-color 0.2s;
}

#context-selects select:focus {
  border-color: var(--accent);
}

/* === Input Bar === */
#input-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px 20px;
  background: linear-gradient(to top, var(--bg) 85%, transparent);
  max-width: 600px;
  margin: 0 auto;
}

#input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px 6px 4px 16px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(42, 157, 143, 0.12);
}

#user-input {
  flex: 1;
  resize: none;
  border: none;
  padding: 10px 0;
  font-size: 0.94rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  outline: none;
  max-height: 300px;
  line-height: 1.4;
}

#user-input::placeholder { color: var(--text-muted); }

#send-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}

#send-btn:hover { background: var(--accent-hover); }
#send-btn:active { transform: scale(0.94); }
#send-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* === Countdown Overlay === */
#countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #fdf0ec 0%, #fef5ec 50%, #f5f3ef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#countdown-overlay.hidden { display: none; }
#countdown-overlay.fade-out { opacity: 0; }

#countdown-content {
  text-align: center;
  color: var(--text);
}

#countdown-orb {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--warm));
  opacity: 0.25;
  animation: breathe-slow 2s ease-in-out infinite;
}

@keyframes breathe-slow {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.2); opacity: 0.4; }
}

#countdown-number {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  animation: pulse-soft 1s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

#countdown-step {
  font-size: 1.1rem;
  margin-top: 20px;
  max-width: 360px;
  line-height: 1.7;
  color: var(--text-soft);
  font-weight: 400;
}

/* === Neutralized Overlay === */
#neutralized-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#neutralized-overlay.hidden { display: none; }
#neutralized-overlay.fade-out { opacity: 0; }

#neutralized-content {
  text-align: center;
  animation: slideUp 0.5s ease;
}

#neutralized-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  line-height: 64px;
  box-shadow: 0 4px 20px rgba(42, 157, 143, 0.3);
}

#neutralized-content p {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

#neutralized-content p.sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === Additional Context Input === */
#additional-context-wrapper {
  margin-top: 6px;
  position: relative;
}

#additional-context {
  width: 100%;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  outline: none;
  transition: border-color 0.2s;
}

#additional-context:focus {
  border-color: var(--accent);
}

#additional-context::placeholder {
  color: var(--text-muted);
  font-size: 0.78rem;
}

#additional-context-wrapper label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
  padding-left: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Tab System === */
.tab-bar {
  display: flex;
  gap: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--accent);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.tab-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-content.hidden {
  display: none;
}

.tab-content .response-section {
  border: none;
  box-shadow: none;
  border-radius: var(--radius-sm);
}

/* === Pending State: Textarea readonly waehrend Phase 1→2 === */
#user-input.pending-readonly {
  opacity: 0.6;
  pointer-events: none;
  background: var(--surface-alt);
}

/* === 2-Phasen Workflow === */

/* CTA-Section in Tab 1 (Einsicht) */
.response-section.section-cta {
  background: var(--warm-light);
  border-color: rgba(244, 162, 97, 0.3);
}

.section-label.label-cta {
  color: var(--warm);
}

.section-cta .section-text {
  color: var(--text-soft);
}

.section-cta .section-text strong {
  color: var(--text);
}

/* Warning-Section: Rote Warnung ohne Grund */
.response-section.section-warning {
  background: #fef2f2;
  border-color: rgba(224, 122, 95, 0.35);
}

.section-label.label-warning {
  color: var(--danger);
}

.section-warning .section-text {
  color: var(--text-soft);
  font-size: 0.82rem;
}

/* Tab disabled State */
.tab-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Phase-2 Platzhalter in Tab 2 */
.phase2-placeholder {
  padding: 32px 18px;
  text-align: center;
}

/* Zusatz-Info Highlight waehrend Phase 2 */
@keyframes pulseYellow {
  0%, 100% { border-color: var(--border); background: var(--surface-alt); }
  50% { border-color: #f4a261; background: #fef5ec; box-shadow: 0 0 12px rgba(244, 162, 97, 0.3); }
}

#additional-context.highlight-pulse {
  animation: pulseYellow 1.2s ease-in-out 3;
  border-color: #f4a261;
  background: #fef5ec;
}

#additional-context-wrapper.phase2-active #additional-context {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* Generate-Button */
.generate-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
  box-shadow: 0 2px 8px rgba(42, 157, 143, 0.3);
}

.generate-btn:hover { background: var(--accent-hover); }
.generate-btn:active { transform: scale(0.98); }
.generate-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.generate-btn.hidden { display: none; }

/* === Header Actions === */
#header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

#privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.2s, color 0.2s;
}

#privacy-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Gmail Button === */
#gmail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

#gmail-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#gmail-btn.connected {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

#gmail-btn svg { flex-shrink: 0; }

/* === Inbox Panel === */
#inbox-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

#inbox-panel.hidden {
  transform: translateX(-100%);
  display: flex;
}

#inbox-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

#inbox-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

#inbox-search {
  flex: 1;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--text-soft);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
}

#inbox-search:focus { border-color: var(--accent); }

#inbox-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#inbox-close:hover { background: var(--surface-alt); color: var(--text); }

#inbox-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.inbox-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.inbox-item:hover { background: var(--surface-alt); }
.inbox-item.selected { background: var(--accent-light); border-left: 3px solid var(--accent); }
.inbox-item.unread { font-weight: 600; }

.inbox-item-from {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.inbox-item-subject {
  font-size: 0.8rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-item-snippet {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.inbox-item-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  float: right;
  margin-top: -14px;
}

/* === Notification Toast === */
.inbox-notification {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  z-index: 2000;
  transition: bottom 0.3s ease;
  white-space: nowrap;
}

.inbox-notification.visible {
  bottom: 80px;
}

/* === Druck-Warnung (Pressure Warning) === */
.response-section.section-pressure-warning {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
  border-left: 4px solid #dc2626;
}

.section-label.label-pressure {
  color: #dc2626;
}

.section-pressure-warning .section-text {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* === RED FLAG HALT-Banner === */
.response-section.section-red-flag-halt {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.10), rgba(220, 38, 38, 0.06));
  border: 2px solid rgba(185, 28, 28, 0.4);
  border-left: 5px solid #b91c1c;
  border-radius: var(--radius-sm);
  padding: 18px;
}

.section-label.label-halt {
  color: #b91c1c;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.halt-reason {
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.red-flag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.red-flag-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 3px solid #dc2626;
}

.red-flag-item.red-flag-historical_accusation { border-left-color: #d97706; }
.red-flag-item.red-flag-character_attack { border-left-color: #dc2626; }
.red-flag-item.red-flag-existential_distress { border-left-color: #7c3aed; }
.red-flag-item.red-flag-ultimatum_threat { border-left-color: #b91c1c; }

.red-flag-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.red-flag-match {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.red-flag-halt-msg {
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.halt-correction {
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.response-section.section-blocked {
  background: rgba(185, 28, 28, 0.06);
  border-color: rgba(185, 28, 28, 0.2);
  text-align: center;
}

.section-blocked .section-text {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* === Souveränitäts-Mapping: Green Suggestion Boxes === */
.sovereign-alternative {
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.08), rgba(42, 157, 143, 0.04));
  border: 1px solid rgba(42, 157, 143, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
}

.sovereign-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.sovereign-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-hover);
  line-height: 1.5;
}

/* === Transform Button === */
.transform-section {
  margin-top: 16px;
  text-align: center;
}

.transform-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(42, 157, 143, 0.3);
}

.transform-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(42, 157, 143, 0.4);
}

.transform-btn:active { transform: scale(0.97); }
.transform-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.transform-btn.transform-success {
  background: #16a34a;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.3);
}

/* === Responsive === */
@media (max-width: 600px) {
  #app-header { padding: 24px 12px 12px; }
  #chat-container { padding: 0 8px 200px; }
  #input-bar { padding: 8px 8px 12px; }
  .message { max-width: 90%; }
  .message.bot { max-width: 100%; }
  .response-section { padding: 14px; }
  #countdown-number { font-size: 4rem; }
  #countdown-step { font-size: 0.95rem; }
  #datetime-display { top: 8px; right: 8px; padding: 4px 10px; }
  #datetime-text { font-size: 0.7rem; }
  #action-intent { gap: 4px; }
  .intent-option { padding: 4px 8px; }
  .intent-label { font-size: 0.72rem; }
  .tab-btn { padding: 8px 10px; font-size: 0.78rem; }
  #additional-context { font-size: 0.78rem; padding: 6px 12px; }
  .generate-btn { font-size: 0.8rem; padding: 8px 14px; }
  #inbox-panel { width: 100%; }
  .copy-btn { bottom: 80px; }
}
