/**
 * components.css — Composants réutilisables OMNI
 * Auth, modals, notifications, cartes, boutons, formulaires, tableaux
 */

/* components.css — Composants réutilisables OMNI */

/* ═══════════ NOTIFICATION CENTER ═══════════ */
.notif-bell {
  position:relative; cursor:pointer; padding:6px 8px; border-radius:8px;
  border:1px solid var(--border); background:transparent; color:var(--text-secondary);
  transition:all 0.2s; display:flex; align-items:center; justify-content:center;
}
.notif-bell:hover { border-color:rgba(255,140,0,0.2); color:var(--text-primary); }
.notif-bell svg { width:18px; height:18px; }
.notif-badge {
  position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; padding:0 4px;
  border-radius:10px; background:var(--accent); color:#000; font-size:0.55rem;
  font-family:var(--font-mono); font-weight:700; display:flex; align-items:center;
  justify-content:center; line-height:1; border:2px solid rgba(5,4,2,0.9);
}
.notif-panel {
  position:absolute; top:calc(100% + 8px); right:0; width:360px; max-height:480px;
  background:rgba(17,16,8,0.97); border:1px solid rgba(255,140,0,0.12);
  border-radius:14px; backdrop-filter:blur(24px); z-index:20000;
  box-shadow:0 16px 48px rgba(0,0,0,0.5); overflow:hidden;
  animation:notifSlideIn 0.2s ease;
}
@keyframes notifSlideIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.notif-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px 10px; border-bottom:1px solid rgba(255,255,255,0.04);
}
.notif-header-title { font-family:var(--font-display); font-size:0.82rem; font-weight:600; color:var(--text-primary); }
.notif-header-clear {
  font-size:0.6rem; color:var(--text-muted); cursor:pointer; padding:3px 8px;
  border-radius:6px; border:1px solid rgba(255,255,255,0.06); transition:all 0.2s;
}
.notif-header-clear:hover { color:var(--accent); border-color:rgba(255,140,0,0.15); }
.notif-list { overflow-y:auto; max-height:400px; padding:6px 0; }
.notif-item {
  display:flex; gap:10px; padding:10px 16px; cursor:pointer; transition:background 0.15s;
  border-bottom:1px solid rgba(255,255,255,0.02);
}
.notif-item:hover { background:rgba(255,140,0,0.04); }
.notif-item.unread { background:rgba(255,140,0,0.03); }
.notif-item.unread::before {
  content:''; width:6px; height:6px; border-radius:50%; background:var(--accent);
  flex-shrink:0; margin-top:6px;
}
.notif-item:not(.unread)::before { content:''; width:6px; height:6px; flex-shrink:0; margin-top:6px; }
.notif-item-icon { font-size:1.1rem; flex-shrink:0; margin-top:1px; }
.notif-item-body { flex:1; min-width:0; }
.notif-item-title { font-size:0.72rem; font-weight:500; color:var(--text-primary); line-height:1.4; }
.notif-item-sub { font-size:0.6rem; color:var(--text-muted); margin-top:2px; }
.notif-item-time { font-size:0.52rem; color:var(--text-muted); margin-top:3px; font-family:var(--font-mono); }
.notif-empty {
  padding:32px 16px; text-align:center; color:var(--text-muted); font-size:0.72rem;
}
.notif-empty-icon { font-size:1.5rem; margin-bottom:8px; opacity:0.4; }

/* ═══════════ CHAT / FEED AREA ═══════════ */

/* ═══ AUTH OVERLAY ═══ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,8,13,0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  animation: fadeIn 0.4s ease;
}
.auth-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 40px;
  max-width: 420px;
  width: 90%;
  animation: modalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}
.auth-brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab.active {
  background: var(--accent-glow);
  color: var(--accent);
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form[data-tab="signup"] { display: none; }
.auth-input {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}
.auth-input:focus { border-color: var(--accent); }
.auth-input::placeholder { color: var(--text-muted); }
.auth-submit {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.auth-submit:hover { opacity: 0.9; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-error {
  font-size: 0.8rem;
  color: var(--danger);
  text-align: center;
  min-height: 20px;
}
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1f1f1f;
  border: none; border-radius: 10px; padding: 12px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s ease;
  width: 100%;
}
.auth-google:hover { background: #f0f0f0; }
.auth-google:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-google svg { flex-shrink: 0; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0;
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══ PAYWALL MODAL ═══ */

/* ═══ PAYWALL MODAL ═══ */
.paywall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.paywall-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.paywall-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.paywall-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.paywall-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.paywall-highlight {
  color: var(--accent);
  font-weight: 600;
}
.paywall-plans {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.paywall-plan {
  flex: 1;
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}
.paywall-plan:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.paywall-plan.recommended {
  border-color: var(--accent);
  background: rgba(255, 140, 0, 0.06);
}
.paywall-plan-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.paywall-plan-price {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}
.paywall-plan-packs {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.paywall-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}
.paywall-btn:hover {
  box-shadow: 0 4px 20px var(--accent-glow-strong);
  transform: translateY(-1px);
}
.paywall-dismiss {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.paywall-dismiss:hover { color: var(--text-secondary); }

.sidebar-footer {

/* ═══ TEMPLATE GROUPED SECTIONS ═══ */
.templates-grouped {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 24px;
}
.template-group {
  margin-bottom: 6px;
  border-radius: 12px;
  overflow: hidden;
  animation: cardEntrance 0.4s ease both;
}
.template-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  cursor: pointer;
  background: rgba(17, 16, 8, 0.4);
  border: 1px solid rgba(255,140,0,0.06);
  border-radius: 12px;
  transition: all 0.25s ease;
  user-select: none;
}
.template-group-header:hover {
  background: rgba(17, 16, 8, 0.6);
  border-color: rgba(255,140,0,0.15);
}
.template-group.open .template-group-header {
  border-radius: 12px 12px 0 0;
  border-color: rgba(255,140,0,0.12);
  background: rgba(17, 16, 8, 0.5);
}
.template-group-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 4px rgba(255,140,0,0.2));
}
.template-group-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}
.template-group-count {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,140,0,0.06);
}
.template-group-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}
.template-group.open .template-group-arrow { transform: rotate(90deg); color: var(--accent); }
.template-group-items {
  display: none;
  border: 1px solid rgba(255,140,0,0.06);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: rgba(10, 8, 4, 0.4);
  padding: 6px;
}
.template-group.open .template-group-items { display: block; }
.template-badge-popular {
  position:absolute; top:8px; right:8px; font-size:0.48rem; font-family:var(--font-mono); font-weight:600;
  padding:2px 7px; border-radius:8px; background:rgba(255,140,0,0.12); color:var(--accent);
  border:1px solid rgba(255,140,0,0.15); text-transform:uppercase; letter-spacing:0.5px;
}
.templates-grid, .template-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding: 4px 0;
  max-width: 780px;
  margin: 0 auto;
}
.template-card {
  padding: 16px 18px;
  background: rgba(17, 16, 8, 0.5);
  border: 1px solid rgba(255, 140, 0, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  animation: cardEntrance 0.5s ease both;
}
.template-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,140,0,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.template-card:hover::before { opacity: 1; }
.template-card:hover {
  border-color: rgba(255,140,0,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.08), 0 0 0 1px rgba(255,140,0,0.05);
  background: rgba(17, 16, 8, 0.8);
}
.template-card:nth-child(1) { animation-delay: 0s; }
.template-card:nth-child(2) { animation-delay: 0.05s; }
.template-card:nth-child(3) { animation-delay: 0.1s; }
.template-card:nth-child(4) { animation-delay: 0.15s; }
.template-card:nth-child(5) { animation-delay: 0.2s; }
.template-card:nth-child(6) { animation-delay: 0.25s; }
.template-card:nth-child(7) { animation-delay: 0.3s; }
.template-card:nth-child(8) { animation-delay: 0.35s; }
.template-icon {
  font-size: 1.3rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 6px rgba(255,140,0,0.2));
}
.template-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.template-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.template-tools {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.template-tool-tag {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255,140,0,0.06);
  color: var(--accent);
  border: 1px solid rgba(255,140,0,0.08);
  transition: all 0.2s;
}
.template-card:hover .template-tool-tag {
  background: rgba(255,140,0,0.10);
  border-color: rgba(255,140,0,0.15);
}

/* ═══ TEMPLATE FORM ═══ */
.tpl-form {
  max-width: 580px; margin: 0 auto; padding: 28px 0;
  animation: cardEntrance 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.tpl-form-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  padding: 20px;
  background: rgba(17, 16, 8, 0.5);
  border: 1px solid rgba(255,140,0,0.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
}
.tpl-form-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), #FFCF70, var(--accent), transparent);
  opacity: 0.5;
}
.tpl-form-icon {
  font-size: 2rem;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,140,0,0.06);
  border: 1px solid rgba(255,140,0,0.10);
  border-radius: 12px;
  flex-shrink: 0;
}
.tpl-form-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.tpl-form-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.tpl-form-fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.brief-tool-btn { transition: all 0.2s !important; }
.brief-tool-btn.active { border-color: #FF8C00 !important; background: rgba(255,140,0,0.15) !important; color: #FF8C00 !important; }
.brief-tool-btn:not(.active) { border-color: var(--border) !important; background: transparent !important; color: var(--text-muted) !important; }
.tpl-field-label {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px; display: block;
  text-transform: uppercase; letter-spacing: 1px;
}
.tpl-field-input {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1px solid rgba(255,140,0,0.10); background: rgba(10, 8, 4, 0.7);
  color: var(--text-primary); font-family: var(--font-body); font-size: 0.82rem;
  outline: none; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}
.tpl-field-input:focus { border-color: rgba(255,140,0,0.35); box-shadow: 0 0 20px rgba(255,140,0,0.08); }
.tpl-field-input::placeholder { color: var(--text-muted); }
.tpl-field-textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px; min-height: 100px; resize: vertical;
  border: 1px solid rgba(255,140,0,0.10); background: rgba(10, 8, 4, 0.7);
  color: var(--text-primary); font-family: var(--font-body); font-size: 0.82rem;
  outline: none; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}
.tpl-field-textarea:focus { border-color: rgba(255,140,0,0.35); box-shadow: 0 0 20px rgba(255,140,0,0.08); }
.tpl-field-textarea::placeholder { color: var(--text-muted); }
.tpl-form-actions { display: flex; gap: 12px; align-items: center; }
.tpl-form-run {
  padding: 11px 28px; border-radius: 10px; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  background: linear-gradient(135deg, #FF8C00, #CC6600);
  color: #000; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(255,140,0,0.2);
}
.tpl-form-run:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,140,0,0.3); }
.tpl-form-run:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.tpl-back-btn {
  background: none; border: none; color: var(--text-muted); font-size: 0.8rem;
  cursor: pointer; font-family: var(--font-body); padding: 0 0 14px 0;
  display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}
.tpl-back-btn:hover { color: var(--accent); transform: translateX(-2px); }
.feed-back-btn {
  display: flex; justify-content: center; padding: 8px 0 0;
}
.freq-btn {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary); font-size: 0.78rem;
  cursor: pointer; font-family: var(--font-body); transition: all 0.15s;
}
.freq-btn:hover { border-color: #10b981; color: #10b981; }
.freq-btn.active {
  background: rgba(16,185,129,0.12); border-color: #10b981; color: #10b981; font-weight: 600;
}
.tpl-form-tools { display: flex; gap: 6px; margin-left: auto; }
.tpl-form-tool {
  font-family: var(--font-mono); font-size: 0.55rem; padding: 3px 8px;
  border-radius: 4px; background: var(--accent-glow); color: var(--accent);
}

.quick-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  padding: 20px 0;
}
.quick-btn {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex; align-items: center; gap: 8px;
}
.quick-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.quick-btn .qb-icon { font-size: 1rem; }

/* ═══ MESSAGE BUBBLES (console mode) ═══ */
.msg { display: flex; gap: 14px; max-width: 780px; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ═══ MESSAGE BUBBLES (console mode) ═══ */
.msg { display: flex; gap: 14px; max-width: 780px; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.msg-avatar.user {
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
}
.msg-avatar.agent {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.msg-body { flex: 1; min-width: 0; }
.msg-sender {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.msg-sender .time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}
.msg-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ═══ COMMAND RUN ECHO ═══ */
.run-echo {
  max-width: 780px;
  animation: msgIn 0.3s ease;
  margin-bottom: 4px;
}
.run-echo-header {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.run-echo-instruction {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  padding: 10px 16px;
  background: rgba(255, 140, 0, 0.03);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

/* ═══ COMMAND SUGGESTIONS ═══ */
.cmd-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px; justify-content: center;
}
.cmd-suggestion {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.cmd-suggestion:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 140, 0, 0.04);
}

/* ═══ ACTION PLAN CARD ═══ */
.action-plan {
  background: var(--bg-card);

/* ═══ ACTION PLAN CARD ═══ */
.action-plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: visible;
  margin-top: 12px;
}
.action-plan-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 140, 0, 0.03);
}
.action-plan-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.action-plan-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.action-step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.04);
  transition: all 0.2s ease;
}
.action-step:last-child { border-bottom: none; }
.action-step:hover { background: rgba(255, 140, 0, 0.03); }

.step-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: rgba(255,140,0,0.05);
  border: 1px solid rgba(255,140,0,0.08);
}
.step-info { flex: 1; min-width: 0; }
.step-tool {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.step-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
}
.step-status.pending { color: var(--text-muted); background: rgba(100,116,139,0.1); }
.step-status.running { color: var(--warning); background: rgba(251,191,36,0.1); animation: pulse-status 1.5s ease-in-out infinite; }
.step-status.done { color: var(--success); background: rgba(255,140,0,0.1); animation: stepComplete 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes stepComplete { 0% { transform: scale(0.8); opacity: 0.5; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.step-status.error { color: var(--danger); background: rgba(248,113,113,0.1); }
@keyframes pulse-status { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══ STEP RISK INDICATORS ═══ */
.step-risk-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.step-risk-dot.risk-low { background: var(--success); color: var(--success); }
.step-risk-dot.risk-medium { background: var(--warning); color: var(--warning); }
.step-risk-dot.risk-high { background: var(--danger); color: var(--danger); }
.step-risk-label {
  font-family: var(--font-mono); font-size: 0.55rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-left: -4px;
}
.step-risk-label.risk-low { color: var(--success); }
.step-risk-label.risk-medium { color: var(--warning); }
.step-risk-label.risk-high { color: var(--danger); }

/* ═══ DEPENDENCY CHAIN ═══ */
.steps-chain { position: relative; }
.steps-chain::before {
  content: '';
  position: absolute;
  left: 37px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,140,0,0.20), rgba(255,140,0,0.08));
  border-radius: 1px;
  z-index: 0;
}
.steps-chain .action-step { position: relative; z-index: 1; }
.steps-chain .step-icon { position: relative; z-index: 2; box-shadow: 0 0 0 4px rgba(10,8,4,0.9); }

/* ═══ COMPILE PREVIEW SKELETON ═══ */
.compile-preview {
  background: rgba(10, 8, 4, 0.6);
  border: 1px solid rgba(255,140,0,0.08);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.compile-preview-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 10px;
}
.compile-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: compile-blink 1s ease-in-out infinite;
}
@keyframes compile-blink { 0%,100% { opacity: 1; box-shadow: 0 0 8px var(--accent); } 50% { opacity: 0.3; box-shadow: none; } }
.compile-preview-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.compile-preview-instruction {
  padding: 10px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  border-bottom: 1px solid var(--glass-border);
}
.skeleton-step {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,140,0,0.04);
}
.skeleton-step:last-child { border-bottom: none; }
.skeleton-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,140,0,0.08);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.skeleton-line {
  height: 10px; border-radius: 4px;
  background: rgba(255,140,0,0.06);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w55 { width: 55%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-badge {
  width: 56px; height: 22px; border-radius: 6px;
  background: rgba(100,116,139,0.08);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
@keyframes skeleton-shimmer { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ═══ DEMO MODE ═══ */
.demo-tag {
  font-family: var(--font-mono); font-size: 0.55rem; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(251,191,36,0.12); color: var(--warning);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.demo-cta {
  margin: 12px 18px 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255,140,0,0.06), rgba(204,102,0,0.06));
  border: 1px solid rgba(255,140,0,0.15);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
}
.demo-cta-icon { font-size: 1.2rem; }
.demo-cta a { color: var(--accent); text-decoration: none; font-weight: 600; }
.demo-cta a:hover { text-decoration: underline; }

/* ═══ COPY PLAN BUTTON ═══ */
.copy-plan-btn {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  padding: 4px 10px; border-radius: 5px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}
.copy-plan-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-plan-btn.copied { border-color: var(--success); color: var(--success); }

/* ═══ MODE CARDS GRID ═══ */
#heroDemos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  max-width: 780px;
  margin: 20px auto 0;
}
#heroDemos.hidden { display: none; }
.hero-demo {
  padding: 20px 16px 16px;
  background: rgba(17, 16, 8, 0.6);
  border: 1px solid rgba(255,140,0,0.10);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: cardEntrance 0.4s ease both;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-demo:nth-child(1) { animation-delay: 0s; }
.hero-demo:nth-child(2) { animation-delay: 0.06s; }
.hero-demo:nth-child(3) { animation-delay: 0.12s; }
.hero-demo:nth-child(4) { animation-delay: 0.18s; }
.hero-demo:nth-child(5) { animation-delay: 0.24s; }
.hero-demo:nth-child(6) { animation-delay: 0.3s; }
.hero-demo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,140,0,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.hero-demo:hover::after { opacity: 1; }
.hero-demo:hover {
  border-color: rgba(255,140,0,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,140,0,0.1), 0 0 0 1px rgba(255,140,0,0.05);
  background: rgba(17, 16, 8, 0.85);
}
.hero-demo-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 10px rgba(255,140,0,0.35));
}
.hero-demo-label {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: 0.04em;
  margin-bottom: 4px;
  position: relative; z-index: 1;
  background: linear-gradient(90deg, #CC6600, #FF8C00, #FFCF70, #fff, #FFCF70, #FF8C00, #CC6600);
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmerSweep 5s ease-in-out infinite;
}
.hero-demo-text {
  font-size: 0.62rem; color: var(--text-muted); line-height: 1.4;
  position: relative; z-index: 1;
  opacity: 0.5;
}
.hero-demo-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0.5;
  transition: opacity 0.35s;
}
.hero-demo:hover .hero-demo-glow { opacity: 1; }
/* All mode cards equal — no hero-primary override needed */

/* ═══ WELCOME ALIEN (animated character) ═══ */

/* ═══════════ COMMAND INPUT ═══════════ */
.command-area {
  padding: 10px 32px 14px;
  border-top: 1px solid var(--glass-border);
  background: rgba(6, 8, 13, 0.8);
  backdrop-filter: blur(12px);
}
.command-wrapper {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.command-mode-toggle {
  display: flex; gap: 4px;
  margin-bottom: 10px;
  justify-content: center;
}
.mode-btn {
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mode-btn.active {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: rgba(255, 140, 0, 0.3);
}
.mode-btn:hover:not(.active) { border-color: var(--border-hover); color: var(--text-secondary); }

.command-input-container {
  display: flex; align-items: flex-end;
  background: rgba(10, 8, 4, 0.8);
  border: 1px solid rgba(255,140,0,0.10);
  border-radius: 16px;
  padding: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,140,0,0.03);
}
.command-input-container:focus-within {
  border-color: rgba(255,140,0,0.4);
  box-shadow: 0 0 30px rgba(255,140,0,0.12), 0 0 60px rgba(255,140,0,0.05), 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,140,0,0.05);
}

.command-prompt {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  padding: 12px 4px 12px 16px;
  font-weight: 600;
  user-select: none;
}
.command-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 12px 8px;
  outline: none;
  resize: none;
  min-height: 44px;
  max-height: 200px;
  line-height: 1.5;
  overflow-y: auto;
}
.command-input::placeholder { color: var(--text-muted); }

.voice-btn {
  padding: 10px;
  background: rgba(255,140,0,0.03);
  border: 1px solid rgba(255,140,0,0.08);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.voice-btn:hover { color: var(--accent); border-color: rgba(255,140,0,0.3); background: rgba(255,140,0,0.06); }
.voice-btn.listening {
  color: #ff4444;
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
  animation: voice-pulse 1.5s ease-in-out infinite;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.3); }
  50% { box-shadow: 0 0 12px 4px rgba(255, 68, 68, 0.2); }
}
.voice-btn svg { width: 18px; height: 18px; }

/* Voice lock button — continuous mode */
.voice-lock-btn {
  padding: 10px;
  background: rgba(255,140,0,0.03);
  border: 1px solid rgba(255,140,0,0.08);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.voice-lock-btn:hover { color: #06b6d4; border-color: rgba(6,182,212,0.3); background: rgba(6,182,212,0.06); }
.voice-lock-btn.active {
  color: #06b6d4;
  border-color: rgba(6,182,212,0.5);
  background: rgba(6,182,212,0.1);
  box-shadow: 0 0 12px rgba(6,182,212,0.2);
}
.voice-lock-btn.active.listening {
  animation: voice-pulse-cyan 1.5s ease-in-out infinite;
}
@keyframes voice-pulse-cyan {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,182,212,0.3); }
  50% { box-shadow: 0 0 14px 4px rgba(6,182,212,0.2); }
}

/* Mode banner above command input */
.mode-active-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 4px 0;
  font-size: 0.7rem; font-family: var(--font-mono); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.mode-active-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid;
  cursor: pointer;
  transition: opacity 0.2s;
}
.mode-active-pill:hover { opacity: 0.7; }

/* ═══ NAV TRIO — Shadow · Compiler · Mission (3 cols) ═══ */
.nav-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  padding: 4px 0 2px;
}
.nav-trio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  min-height: 52px;
}
.nav-trio-item:nth-child(1) { border-color: rgba(167,139,250,0.25); background: rgba(139,92,246,0.05); }
.nav-trio-item:nth-child(2) { border-color: rgba(249,115,22,0.25);  background: rgba(249,115,22,0.05); }
.nav-trio-item:nth-child(3) { border-color: rgba(16,185,129,0.25);  background: rgba(16,185,129,0.05); }
.nav-trio-item:nth-child(1):hover { background: rgba(139,92,246,0.12); border-color: rgba(167,139,250,0.5); transform: translateY(-1px); }
.nav-trio-item:nth-child(2):hover { background: rgba(249,115,22,0.12);  border-color: rgba(249,115,22,0.5);  transform: translateY(-1px); }
.nav-trio-item:nth-child(3):hover { background: rgba(16,185,129,0.12);  border-color: rgba(16,185,129,0.5);  transform: translateY(-1px); }
.nav-trio-item.active { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }

/* Per-nav-item icon colors */
#navCommand .nav-icon   { color: #FF8C00; }
#navHistory .nav-icon   { color: #94a3b8; }
#navPlaybooks .nav-icon { color: #14b8a6; }
#navIntegrations .nav-icon { color: #3b82f6; }
#navFlows .nav-icon     { color: #818cf8; }
#navTriggers .nav-icon  { color: #f59e0b; }
#navCommit .nav-icon    { color: #84cc16; }
#navTrust .nav-icon     { color: #f43f5e; }
#navBuilder .nav-icon   { color: #fbbf24; }

.command-send {
  padding: 10px 22px;
  background: linear-gradient(135deg, #FF8C00, #CC6600);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 10px rgba(255,140,0,0.2);
}
.command-send:hover {
  box-shadow: 0 6px 24px rgba(255,140,0,0.35);
  transform: translateY(-2px);
}
.command-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.command-hints {
  display: flex; gap: 12px;
  margin-top: 10px;
  justify-content: center;
}
.command-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.hint-key {
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.6rem;
}

/* ═══ Scrollbar ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ═══ TRIGGER PANEL ═══ */
.trigger-card {

/* ═══════════ PLAYBOOKS ═══════════ */
.playbook-list { padding: 8px 0; }
.playbook-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; cursor: pointer; transition: background 0.15s;
  border-bottom: 1px solid var(--glass-border);
}
.playbook-item:hover { background: rgba(255,140,0,0.06); }
.playbook-icon { font-size: 0.85rem; opacity: 0.7; }
.playbook-info { flex: 1; min-width: 0; }
.playbook-name {
  font-size: 0.78rem; color: var(--text-primary); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.playbook-meta { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); }
.playbook-run {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; border: 1px solid var(--border);
  background: transparent; color: var(--accent); cursor: pointer; transition: all 0.2s;
  opacity: 0;
}
.playbook-item:hover .playbook-run { opacity: 1; }
.playbook-run:hover { background: rgba(255,140,0,0.1); border-color: var(--accent); }
.playbook-empty {
  padding: 20px 16px; text-align: center;
  font-size: 0.75rem; color: var(--text-muted);
}

/* ═══════════ WATCHERS ═══════════ */
.watcher-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; font-size: 0.72rem;
  border-bottom: 1px solid var(--glass-border);
}
.watcher-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.watcher-dot.paused { background: var(--text-muted); }
.watcher-name { flex: 1; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watcher-cron { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-muted); }

/* ═══════════ EXECUTION RECEIPT ═══════════ */

/* ═══════════ WATCHERS ═══════════ */
.watcher-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; font-size: 0.72rem;
  border-bottom: 1px solid var(--glass-border);
}
.watcher-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.watcher-dot.paused { background: var(--text-muted); }
.watcher-name { flex: 1; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watcher-cron { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-muted); }

/* ═══════════ EXECUTION RECEIPT ═══════════ */
.receipt-panel {
  background: rgba(10, 8, 4, 0.7);
  border: 1px solid rgba(255,140,0,0.10);
  border-radius: 14px;
  margin-top: 16px;
  overflow: hidden;
  animation: receiptIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,140,0,0.03);
}
@keyframes receiptIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }


/* ═══ QUOTA GATE ═══ */
.quota-gate-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); }
.quota-gate-card { background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 16px; padding: 32px; max-width: 420px; width: 90%; text-align: center; }
.quota-gate-icon { font-size: 2.5rem; margin-bottom: 12px; }
.quota-gate-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.quota-gate-sub { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.quota-gate-btn { padding: 10px 28px; border-radius: 10px; border: none; background: var(--accent); color: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.quota-gate-dismiss { margin-top: 12px; background: none; border: none; color: var(--text-muted); font-size: 0.7rem; cursor: pointer; }

/* ═══ EXECUTION GRAPH ═══ */
.exec-graph { padding: 0; }
.exec-graph-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.exec-graph-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.exec-graph-sub { font-size: 0.68rem; color: var(--text-muted); }
.exec-graph-legend { display: flex; gap: 12px; font-size: 0.6rem; color: var(--text-muted); }
.exec-graph-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* Pipeline chain */

/* ═══ CMD+K OVERLAY ═══ */
.cmdk-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 15000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: min(20vh, 160px);
  animation: fadeIn 0.15s ease;
}
.cmdk-overlay.show { display: flex; }
.cmdk-modal {
  background: rgba(10, 8, 4, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 140, 0, 0.15);
  border-radius: 18px;
  width: 580px;
  max-width: 95vw;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255,140,0,0.06), inset 0 1px 0 rgba(255,255,255,0.03);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.cmdk-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,140,0,0.3), rgba(255,207,112,0.2), rgba(255,140,0,0.3), transparent);
}
.cmdk-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.08);
}
.cmdk-input-wrap .cmdk-icon { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.cmdk-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--font-body); font-size: 1.05rem;
  color: var(--text-primary);
}
.cmdk-input::placeholder { color: var(--text-muted); }
.cmdk-kbd {
  font-family: var(--font-mono); font-size: 0.58rem;
  padding: 3px 8px; border-radius: 5px;
  background: rgba(255,140,0,0.06); border: 1px solid rgba(255,140,0,0.1);
  color: var(--text-muted);
}
.cmdk-results { max-height: 300px; overflow-y: auto; padding: 8px; }
.cmdk-group-label {
  font-family: var(--font-mono); font-size: 0.58rem;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1.5px; padding: 10px 12px 4px;
}
.cmdk-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem; color: var(--text-secondary);
  border: 1px solid transparent;
}
.cmdk-item:hover, .cmdk-item.selected {
  background: rgba(255,140,0,0.06);
  border-color: rgba(255,140,0,0.12);
  color: var(--text-primary);
  transform: translateX(4px);
}
.cmdk-item .cmdk-item-icon {
  font-size: 1rem; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,140,0,0.06); border-radius: 8px;
  border: 1px solid rgba(255,140,0,0.08);
  flex-shrink: 0;
}
.cmdk-item .cmdk-item-label { flex: 1; font-weight: 500; }
.cmdk-item .cmdk-item-hint {
  font-family: var(--font-mono); font-size: 0.58rem;
  color: var(--text-muted); opacity: 0.7;
}
.cmdk-item:hover .cmdk-item-hint, .cmdk-item.selected .cmdk-item-hint { opacity: 1; }
.cmdk-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255,140,0,0.06);
  display: flex; gap: 16px; justify-content: center;
  background: rgba(255,140,0,0.02);
}
.cmdk-footer span {
  font-family: var(--font-mono); font-size: 0.58rem;
  color: var(--text-muted); display: flex; align-items: center; gap: 4px;
}

/* ═══ ONBOARDING ═══ */
.onboarding-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: 16000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.onboarding-card {
  background: rgba(10, 8, 4, 0.95);
  border: 1px solid rgba(255,140,0,0.15);
  border-radius: 20px;
  width: 480px; max-width: 92vw;
  overflow: hidden;

/* ═══ ONBOARDING ═══ */
.onboarding-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: 16000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.onboarding-card {
  background: rgba(10, 8, 4, 0.95);
  border: 1px solid rgba(255,140,0,0.15);
  border-radius: 20px;
  width: 480px; max-width: 92vw;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 80px rgba(255,140,0,0.06);
  position: relative;
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.onboarding-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), var(--accent), #FFCF70, var(--accent), var(--accent-secondary), transparent);
  background-size: 200% 100%;
  animation: shimmerSweep 4s ease-in-out infinite;
}
.ob-header {
  text-align: center; padding: 32px 28px 20px;
}
.ob-alien { width: 56px; height: 56px; margin: 0 auto 12px; filter: drop-shadow(0 0 12px rgba(255,140,0,0.3)); }
.ob-title {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  background: linear-gradient(135deg, #FFCF70, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.ob-sub {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5;
}
.ob-steps {
  padding: 0 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.ob-step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,140,0,0.03);
  border: 1px solid rgba(255,140,0,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ob-step:hover {
  background: rgba(255,140,0,0.06);
  border-color: rgba(255,140,0,0.2);
  transform: translateX(4px);
}
.ob-step.done {
  border-color: rgba(52,211,153,0.2);
  background: rgba(52,211,153,0.04);
}
.ob-step-num {
  min-width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,140,0,0.08); border: 1px solid rgba(255,140,0,0.12);
  border-radius: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  color: var(--accent); flex-shrink: 0;
}
.ob-step.done .ob-step-num {
  background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.2);
  color: #34d399;
}
.ob-step-body { flex: 1; }
.ob-step-title {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 2px;
}
.ob-step-desc { font-size: 0.7rem; color: var(--text-muted); }
.ob-step-action {
  font-family: var(--font-mono); font-size: 0.55rem;
  color: var(--accent); opacity: 0; transition: opacity 0.2s ease;
}
.ob-step:hover .ob-step-action { opacity: 1; }
.ob-footer {
  padding: 16px 28px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.ob-skip {
  background: none; border: none;
  font-family: var(--font-body); font-size: 0.75rem;
  color: var(--text-muted); cursor: pointer;
  transition: color 0.2s ease;
}
.ob-skip:hover { color: var(--text-secondary); }
.ob-progress {
  display: flex; gap: 6px;
}
.ob-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,140,0,0.15);
  transition: all 0.3s ease;
}
.ob-dot.active { background: var(--accent); width: 20px; border-radius: 3px; }
.ob-dot.done { background: #34d399; }

/* ═══ COMPILE CINEMATIC UPGRADE ═══ */
.compile-preview .skeleton-step {
  opacity: 0;
  animation: skeletonReveal 0.4s ease forwards;

/* ═══ FEEDBACK LOOP — "✓ Fait" buttons ═══ */
.opp-card-action-row,
.alert-action-row,
.win-main {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
}
.opp-card-action-row > *:first-child,
.alert-action-row > *:first-child,
.win-main > *:first-child { flex: 1; }

.omni-done-btn {
  flex-shrink: 0;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.22);
  color: #34d399;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  padding: 3px 9px; border-radius: 5px;
  cursor: pointer; transition: all 0.18s ease;
  white-space: nowrap;
}
.omni-done-btn:hover {
  background: rgba(52,211,153,0.18);
  border-color: rgba(52,211,153,0.45);
  transform: scale(1.04);
}

.feedback-form {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-top: 4px;
}
.feedback-done-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: #34d399; font-weight: 700; white-space: nowrap;
}
.feedback-outcome-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.7rem;
  padding: 4px 8px; border-radius: 5px;
  outline: none; min-width: 200px; flex: 1;
  transition: border-color 0.18s ease;
}
.feedback-outcome-input:focus {
  border-color: rgba(52,211,153,0.4);
}
.feedback-save-btn {
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.3);
  color: #34d399;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  padding: 3px 9px; border-radius: 5px;
  cursor: pointer; transition: all 0.18s ease;
}
.feedback-save-btn:hover { background: rgba(52,211,153,0.22); }
.feedback-skip-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-family: var(--font-mono); font-size: 0.62rem;
  padding: 3px 7px; border-radius: 5px;
  cursor: pointer; transition: all 0.18s ease;
}
.feedback-skip-btn:hover { color: var(--text-secondary); border-color: rgba(255,255,255,0.18); }
.feedback-confirmed {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: #34d399; font-weight: 700;
  animation: feedbackFadeIn 0.3s ease;
}
@keyframes feedbackFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
