/* ============================================
   Amity Glassmorphism — Smart Mode Cards
   ============================================ */

/* --- Welcome State --- */
#amity-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
  max-width: 360px;
  margin: 0 auto;
}

#amity-welcome.hidden { display: none; }

.welcome-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(99,102,241,0.4), rgba(139,92,246,0.2), transparent 70%);
  box-shadow: 0 0 40px rgba(99,102,241,0.2), inset 0 0 20px rgba(99,102,241,0.1);
  animation: welcome-breathe 4s ease-in-out infinite;
}

@keyframes welcome-breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.welcome-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.welcome-new-btn {
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.welcome-new-btn:hover {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 4px 20px rgba(99,102,241,0.2);
}

.welcome-negotiation-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 36px;
  border-radius: 16px;
  border: 1px solid rgba(212,175,55,0.55);
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(184,134,11,0.10));
  color: #f5e6a8;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 24px rgba(212,175,55,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.welcome-negotiation-btn:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.30), rgba(184,134,11,0.18));
  border-color: rgba(212,175,55,0.85);
  box-shadow: 0 6px 32px rgba(212,175,55,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.welcome-neg-icon {
  font-size: 1.4rem;
  color: #ffd966;
  text-shadow: 0 0 12px rgba(255,217,102,0.5);
}

.welcome-neg-label {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.welcome-neg-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(245,230,168,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Card Content --- */
.smart-mode-icon {
  font-size: 1.8rem;
}

.smart-mode-title {
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.smart-mode-desc {
  color: var(--text-dim);
  font-size: 0.72rem;
}

/* --- Active Bar --- */
.smart-active-bar {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--text);
}

/* --- Back Button --- */
.smart-back-btn {
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.smart-back-btn:hover {
  color: var(--text);
}

/* --- Connection Dots --- */
.smart-connection-dot.connected {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.smart-connection-dot.disconnected {
  background: #ef4444;
}

/* --- Panic Button --- */
.smart-panic-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.smart-panic-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* --- Smart Video Uploader --- */
.smart-video-dropzone {
  border-color: var(--glass-border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.smart-video-dropzone:hover {
  border-color: var(--accent);
  background: rgba(42, 157, 143, 0.05);
}

.smart-video-url-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: var(--radius-sm);
}

.smart-video-url-input::placeholder {
  color: var(--text-dim);
}

.smart-video-url-input:focus {
  outline: none;
  border-color: var(--accent);
}

.smart-video-url-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.smart-video-url-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================
   Project Wizard Modal
   ============================================ */

/* --- Overlay --- */
.pw-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pw-overlay.pw-visible {
  opacity: 1;
}

/* --- Modal --- */
.pw-modal {
  background: rgba(24, 24, 32, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.pw-visible .pw-modal {
  transform: translateY(0);
}

/* --- Header --- */
.pw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.pw-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.pw-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.pw-close:hover {
  color: #fff;
}

/* --- Steps Bar --- */
.pw-steps {
  display: flex;
  gap: 8px;
  padding: 16px 28px 0;
}

.pw-step-dot {
  flex: 1;
  text-align: center;
  padding: 8px 0 4px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s;
}

.pw-step-dot.pw-step-active {
  border-color: #6366f1;
}

.pw-step-dot.pw-step-done {
  border-color: #22c55e;
}

.pw-step-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.pw-step-active .pw-step-label {
  color: rgba(255, 255, 255, 0.85);
}

.pw-step-done .pw-step-label {
  color: rgba(34, 197, 94, 0.7);
}

/* --- Content --- */
.pw-content {
  padding: 20px 28px;
  min-height: 240px;
}

.pw-step-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pw-step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.pw-step-hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.4;
}

/* --- Inputs --- */
.pw-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.pw-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.pw-input:focus {
  border-color: #6366f1;
}

.pw-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* --- Toggle Switch --- */
.pw-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pw-toggle-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.pw-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.pw-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pw-toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  transition: background 0.3s;
}

.pw-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.pw-toggle input:checked + .pw-toggle-slider {
  background: #6366f1;
}

.pw-toggle input:checked + .pw-toggle-slider::before {
  transform: translateX(22px);
}

/* --- Info Box --- */
.pw-info-box {
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.pw-info-box strong {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Radio Cards --- */
.pw-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pw-radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.pw-radio-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.pw-radio-card.pw-radio-selected {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
}

.pw-radio-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.pw-radio-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pw-radio-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.pw-radio-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.3;
}

.pw-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.2s;
}

.pw-radio-selected .pw-radio-dot {
  border-color: #6366f1;
  background: #6366f1;
  box-shadow: inset 0 0 0 3px rgba(24, 24, 32, 0.9);
}

/* --- Upload Area --- */
.pw-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pw-dropzone:hover,
.pw-dropzone.pw-drag-active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
  color: rgba(255, 255, 255, 0.6);
}

.pw-dropzone-icon {
  font-size: 1.8rem;
}

.pw-upload-status {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  min-height: 20px;
  margin-top: 6px;
}

.pw-upload-success {
  color: #22c55e;
}

/* --- Doc List --- */
.pw-doc-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 8px 0 4px;
  font-weight: 600;
}

.pw-doc-item {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0;
}

.pw-doc-meta {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
}

/* --- Footer --- */
.pw-footer {
  display: flex;
  justify-content: space-between;
  padding: 0 28px 24px;
  gap: 12px;
}

.pw-btn {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.pw-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
}

.pw-btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.pw-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pw-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pw-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --- Edit Button in Sidebar --- */
.project-card-edit {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.project-card-edit:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Shake Animation --- */
@keyframes pw-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.pw-shake {
  animation: pw-shake 0.4s ease;
}

/* ============================================
   COCKPIT LAYOUT — Variable Split + Drag Resizer
   Container-Query Text-Scaling
   ============================================ */

/* --- Container: CSS Grid — 1fr 5px 1fr (drag-resizable) --- */
body[data-smart-mode="meeting"] #live-columns,
body[data-smart-mode="telefonat"] #live-columns {
  display: grid !important;
  grid-template-columns: 1fr 5px 2fr !important;
  height: calc(100vh - 60px) !important;
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 100 !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
}

/* --- LEFT: Video — Grid-Item, min-width fuer Grid --- */
body[data-smart-mode="meeting"] #live-col-spiegel,
body[data-smart-mode="telefonat"] #live-col-spiegel {
  display: flex !important;
  flex-direction: column !important;
  background: #000 !important;
  overflow: hidden !important;
  height: 100% !important;
  padding: 0 !important;
  border: none !important;
  position: relative !important;
  min-width: 0 !important;
}

/* --- RESIZER: Drag-Handle — Grid column, z-index ueber alles --- */
body[data-smart-mode="meeting"] #cockpit-resize-handle,
body[data-smart-mode="telefonat"] #cockpit-resize-handle {
  width: 100% !important;
  min-width: 0 !important;
  background: linear-gradient(180deg, #1a2e2e 0%, #1f3535 50%, #1a2e2e 100%) !important;
  cursor: col-resize !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 500 !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: background 0.15s, box-shadow 0.15s !important;
  overflow: visible !important;
  height: 100% !important;
  border-left: 1px solid rgba(42,157,143,0.2) !important;
  border-right: 1px solid rgba(42,157,143,0.2) !important;
}

body[data-smart-mode="meeting"] #cockpit-resize-handle:hover,
body[data-smart-mode="telefonat"] #cockpit-resize-handle:hover {
  background: linear-gradient(180deg, #2a9d8f 0%, #238b7e 50%, #2a9d8f 100%) !important;
  box-shadow: 0 0 12px rgba(42,157,143,0.4) !important;
  /* KEIN width/flex Override — bricht CSS Grid */
}

body[data-smart-mode="meeting"] #cockpit-resize-handle::after,
body[data-smart-mode="telefonat"] #cockpit-resize-handle::after {
  content: '';
  display: block;
  width: 4px;
  height: 40px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  pointer-events: none;
}

body[data-smart-mode="meeting"] #cockpit-resize-handle:hover::after,
body[data-smart-mode="telefonat"] #cockpit-resize-handle:hover::after {
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0 6px rgba(255,255,255,0.3);
  height: 60px;
}

body[data-smart-mode="meeting"] #cockpit-resize-handle.dragging,
body[data-smart-mode="telefonat"] #cockpit-resize-handle.dragging {
  background: #2a9d8f !important;
  width: 6px !important;
  min-width: 6px !important;
  box-shadow: 0 0 20px rgba(42,157,143,0.6) !important;
}

body[data-smart-mode="meeting"] #cockpit-resize-handle.dragging::after,
body[data-smart-mode="telefonat"] #cockpit-resize-handle.dragging::after {
  display: none;
}

/* --- RIGHT: Teleprompter — Grid-Item, scrollbar, container-query --- */
body[data-smart-mode="meeting"] #live-col-teleprompter,
body[data-smart-mode="telefonat"] #live-col-teleprompter {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  height: 100% !important;
  background: #0a0a1a !important;
  padding: 16px 20px !important;
  gap: 12px !important;
  border: none !important;
  container-type: inline-size;
  container-name: teleprompter;
}

/* --- Card-Container: Kein Overflow ueber Grid hinaus --- */
body[data-smart-mode="meeting"] #live-teleprompter-cards,
body[data-smart-mode="telefonat"] #live-teleprompter-cards,
body[data-smart-mode="meeting"] #live-navigatore-cards,
body[data-smart-mode="telefonat"] #live-navigatore-cards {
  overflow: hidden !important;
  position: relative !important;
}

/* --- Kalibrieren Button --- */
.live-calibrate-btn {
  background: rgba(42,157,143,0.15);
  color: #2a9d8f;
  border: 1px solid rgba(42,157,143,0.3);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}
.live-calibrate-btn:hover {
  background: rgba(42,157,143,0.3);
  border-color: #2a9d8f;
}
.live-calibrate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#live-calibrate-status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 8px;
}

/* --- Video area --- */
#cockpit-video-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
  min-height: 0;
}

#cockpit-video-area video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Transcript strip */
body[data-smart-mode="meeting"] .live-transcript-box,
body[data-smart-mode="telefonat"] .live-transcript-box {
  max-height: 80px;
  overflow-y: auto;
  font-size: 0.7rem;
  padding: 6px 10px;
  background: rgba(0,0,0,0.95);
  border-top: 1px solid rgba(42,157,143,0.3);
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* Hide labels + header/footer in cockpit */
body[data-smart-mode="meeting"] .live-col-label,
body[data-smart-mode="telefonat"] .live-col-label {
  display: none !important;
}

body[data-smart-mode="meeting"] #live-overlay-header,
body[data-smart-mode="telefonat"] #live-overlay-header {
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

body[data-smart-mode="meeting"] #live-overlay-footer,
body[data-smart-mode="telefonat"] #live-overlay-footer {
  display: none !important;
}

/* ==============================================
   AUTO-TEXT-SCALING — Container Queries
   Text skaliert mit Teleprompter-Breite
   ============================================== */

/* Teleprompter Cards */
body[data-smart-mode="meeting"] .teleprompter-card,
body[data-smart-mode="telefonat"] .teleprompter-card {
  padding: 20px 24px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.06) !important;
  border-left: 6px solid var(--accent, #2a9d8f) !important;
}

body[data-smart-mode="meeting"] .teleprompter-prefix,
body[data-smart-mode="telefonat"] .teleprompter-prefix {
  font-size: clamp(0.75rem, 2cqi, 1.8rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.15em !important;
  color: #2a9d8f !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
}

/* HAUPT-TEXT: skaliert von 1.1rem bis 3rem je nach Breite */
body[data-smart-mode="meeting"] .teleprompter-sentence,
body[data-smart-mode="telefonat"] .teleprompter-sentence {
  font-size: clamp(1.2rem, 5cqi, 6rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
}

body[data-smart-mode="meeting"] .teleprompter-context,
body[data-smart-mode="telefonat"] .teleprompter-context {
  font-size: clamp(0.85rem, 3cqi, 3rem) !important;
  color: rgba(255,255,255,0.55) !important;
  margin-top: 8px !important;
}

/* Critical cards */
body[data-smart-mode="meeting"] .teleprompter-card.critical,
body[data-smart-mode="telefonat"] .teleprompter-card.critical {
  border-left-color: #ef4444;
  background: rgba(239,68,68,0.1);
}

body[data-smart-mode="meeting"] .teleprompter-card.critical .teleprompter-prefix,
body[data-smart-mode="telefonat"] .teleprompter-card.critical .teleprompter-prefix {
  color: #ef4444;
}

/* Navigatore, Body Coach, Vision Alert — skaliert */
body[data-smart-mode="meeting"] .navigatore-card,
body[data-smart-mode="meeting"] .body-coach-card,
body[data-smart-mode="meeting"] .vision-alert-card {
  font-size: clamp(1rem, 2cqi, 1.5rem) !important;
  padding: 20px 24px !important;
}

body[data-smart-mode="meeting"] .navigatore-instruction,
body[data-smart-mode="meeting"] .body-coach-instruction {
  font-size: clamp(1.1rem, 4cqi, 4.5rem) !important;
  font-weight: 700 !important;
  color: #fff !important;
}

/* Panic card */
body[data-smart-mode="meeting"] .panic-card {
  padding: 28px !important;
  border: 3px solid #ef4444 !important;
  background: rgba(239,68,68,0.2) !important;
}

body[data-smart-mode="meeting"] .panic-sentence {
  font-size: clamp(1.5rem, 6cqi, 7rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
}

/* === PLAKAT-MODUS: Wenn Teleprompter > 70% Breite === */
@container teleprompter (min-width: 900px) {
  .teleprompter-card {
    padding: 28px 32px !important;
    border-left-width: 8px !important;
  }
  .teleprompter-sentence {
    letter-spacing: 0.01em !important;
    word-spacing: 0.05em !important;
  }
}

@container teleprompter (min-width: 1200px) {
  .teleprompter-card {
    padding: 36px 40px !important;
    border-left-width: 10px !important;
    border-radius: 20px !important;
  }
  .teleprompter-sentence {
    letter-spacing: 0.02em !important;
    word-spacing: 0.08em !important;
    line-height: 1.25 !important;
  }
}

/* === STABLE-STATE Karten (Anti-Repetition) === */
.teleprompter-card.stable-state {
  border-left-color: #52525b !important;
  background: rgba(255,255,255,0.03) !important;
  opacity: 0.7;
}

.teleprompter-card.stable-state .teleprompter-prefix {
  color: #71717a !important;
}

.teleprompter-card.stable-state .teleprompter-sentence {
  color: rgba(255,255,255,0.5) !important;
  font-weight: 500 !important;
}

/* Permission Denied — Floating Banner (nicht layout-blockierend) */
#perm-denied-overlay {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  width: min(92vw, 600px);
  background: rgba(180, 20, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255,80,80,0.3);
  box-shadow: 0 8px 32px rgba(200,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  color: #fff;
  animation: perm-banner-in 0.4s ease;
}

@keyframes perm-banner-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#perm-denied-overlay .perm-denied-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: perm-denied-shake 0.5s infinite;
}

#perm-denied-overlay h1 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

#perm-denied-overlay p {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
  opacity: 0.85;
}

@keyframes perm-denied-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

#perm-denied-overlay button {
  padding: 8px 18px;
  border: 1.5px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

#perm-denied-overlay button:hover {
  background: rgba(255,255,255,0.15);
}

/* Vision proof snapshot in teleprompter */
.vision-proof-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
}

.vision-proof-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

body[data-smart-mode="meeting"] .vision-proof-thumb {
  width: 160px;
  height: 120px;
}

.vision-proof-chain {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
}

body[data-smart-mode="meeting"] .vision-proof-chain {
  font-size: 1rem;
}

.vision-proof-step {
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.vision-proof-arrow {
  color: #2a9d8f;
  font-weight: 700;
  margin-right: 4px;
}

.vision-proof-kb {
  color: #f59e0b;
  font-style: italic;
}

/* Snapshot evidence card in teleprompter */
.snapshot-evidence-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border-left: 4px solid #6366f1;
  margin-bottom: 8px;
  animation: di-item-in 0.3s ease;
}

.snapshot-evidence-img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

body[data-smart-mode="meeting"] .snapshot-evidence-img {
  width: 140px;
  height: 105px;
}

.snapshot-evidence-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snapshot-evidence-meaning {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f59e0b;
}

body[data-smart-mode="meeting"] .snapshot-evidence-meaning {
  font-size: 1.2rem;
}

.snapshot-evidence-action {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

body[data-smart-mode="meeting"] .snapshot-evidence-action {
  font-size: 1.05rem;
}

/* Report button */
#cockpit-report-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(239,68,68,0.4);
  transition: all 0.2s ease;
  display: none;
}

#cockpit-report-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239,68,68,0.5);
}

body[data-smart-mode="meeting"] #cockpit-report-btn,
body[data-smart-mode="telefonat"] #cockpit-report-btn {
  display: block;
}

#cockpit-video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 24px;
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 12px;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

#cockpit-video-badge.hidden {
  display: none;
}
