/* ============================================================================
   AGENT MICROANIMATION SYSTEM
   Reusable "living" animations for ANY agent / avatar instance.
   Any agent — JARVIS today, any future agent tomorrow — opts in by applying
   a size-specific class. No per-agent CSS needed.
   ----------------------------------------------------------------------------
   Size guide (pick one, mutually exclusive):
     .agent-float-sm   rosters, chips, collaborators                 (-2px bob)
     .agent-float-md   in-scene bots inside a room                   (-4px bob)
     .agent-float-lg   "Selected Agent" large avatar                 (-7px bob)

   Companion classes (optional, stack freely):
     .agent-halo         breathing radial glow behind the avatar
     .agent-shadow       counter-breathing floor shadow (sits on ground,
                         scales horizontally as the body floats up)
     .agent-core-pulse   subtle opacity pulse on a visor / chest core

   Staggering across multiple agents:
     apply inline  style={{ animationDelay: `${idx * 0.4}s` }}  so a row of
     avatars breathes out of sync and feels organic.
============================================================================ */

/* ----- FLOAT ----- */
@keyframes agent-float-sm {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
@keyframes agent-float-md {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes agent-float-lg {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.agent-float-sm,
.agent-float-md,
.agent-float-lg {
  will-change: transform;
  transform-box: fill-box;    /* matters for SVG <g> */
  transform-origin: center center;
}
.agent-float-sm { animation: agent-float-sm 3.4s ease-in-out infinite; }
.agent-float-md { animation: agent-float-md 3.8s ease-in-out infinite; }
.agent-float-lg { animation: agent-float-lg 4.4s ease-in-out infinite; }

/* ----- HALO ----- breathing radial glow layered behind the avatar */
@keyframes agent-halo {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50%      { opacity: 0.95; transform: scale(1.08); }
}
.agent-halo {
  animation: agent-halo 4.6s ease-in-out infinite;
  will-change: transform, opacity;
  transform-origin: center center;
}

/* ----- SHADOW ----- counter-breathing floor shadow under a floating body */
@keyframes agent-shadow {
  0%, 100% { opacity: 0.85; transform: scaleX(1); }
  50%      { opacity: 0.55; transform: scaleX(0.82); }
}
.agent-shadow {
  animation: agent-shadow 3.8s ease-in-out infinite;
  will-change: transform, opacity;
  transform-box: fill-box;
  transform-origin: center center;
}

/* ----- VISOR / CORE PULSE ----- subtle opacity shimmer */
@keyframes agent-core-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
.agent-core-pulse {
  animation: agent-core-pulse 2.6s ease-in-out infinite;
}

/* ----- HEADER LIVE DOT (pre-existing keyframe name used by rooms grid) ----- */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* Respect users who prefer reduced motion: silence every animation above. */
@media (prefers-reduced-motion: reduce) {
  .agent-float-sm,
  .agent-float-md,
  .agent-float-lg,
  .agent-halo,
  .agent-shadow,
  .agent-core-pulse {
    animation: none;
  }
}

/* ----- Selected-agent action buttons (Team Overview bottom panel) ----- */
.bp-agent-actions {
  margin-top: 10px;
  margin-bottom: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
}
.bp-action-btn {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-start;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
/* Edit — ghost cyan */
.bp-edit-btn {
  border-color: rgba(79, 216, 255, 0.3);
  color: rgba(126, 232, 255, 0.78);
}
.bp-edit-btn:hover {
  background: rgba(79, 216, 255, 0.1);
  border-color: rgba(79, 216, 255, 0.6);
  color: #7EE8FF;
  box-shadow: 0 0 10px rgba(79, 216, 255, 0.18);
}
.bp-edit-btn:focus-visible {
  outline: 2px solid rgba(79, 216, 255, 0.6);
  outline-offset: 2px;
}
/* Remove — ghost coral */
.bp-remove-btn {
  border-color: rgba(255, 138, 122, 0.3);
  color: rgba(255, 138, 122, 0.78);
}
.bp-remove-btn:hover {
  background: rgba(255, 138, 122, 0.1);
  border-color: rgba(255, 138, 122, 0.6);
  color: #FF8A7A;
  box-shadow: 0 0 10px rgba(255, 138, 122, 0.18);
}
.bp-remove-btn:focus-visible {
  outline: 2px solid rgba(255, 138, 122, 0.6);
  outline-offset: 2px;
}

/* ----- Task Control (View Tasks modal) ----- */
.tc-tab {
  padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.tc-tab:hover {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(79, 216, 255, 0.28);
}
.tc-tab.active {
  color: #7EE8FF;
  background: rgba(79, 216, 255, 0.1);
  border-color: rgba(79, 216, 255, 0.5);
  box-shadow: 0 0 10px rgba(79, 216, 255, 0.15);
}
.tc-tab-count {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  opacity: 0.75;
}

/* Quick-progress tiny buttons: 0/25/50/75/100 */
.tc-qp-btn {
  padding: 2px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(126, 232, 255, 0.7);
  background: rgba(79, 216, 255, 0.04);
  border: 1px solid rgba(79, 216, 255, 0.18);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s;
}
.tc-qp-btn:hover {
  color: #fff;
  background: rgba(79, 216, 255, 0.15);
  border-color: rgba(79, 216, 255, 0.5);
}
.tc-qp-btn.active {
  color: #0a1a2e;
  background: linear-gradient(90deg, #4FD8FF, #7EE8FF);
  border-color: transparent;
  box-shadow: 0 0 8px rgba(79, 216, 255, 0.3);
}

/* Action chips per task (resume / pause / complete / cancel) */
.tc-chip {
  padding: 3px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all 0.12s;
}
.tc-chip:hover { box-shadow: 0 0 8px currentColor; }
.tc-chip-primary { color: #7EE8FF; border-color: rgba(79, 216, 255, 0.45); background: rgba(79, 216, 255, 0.08); }
.tc-chip-primary:hover { background: rgba(79, 216, 255, 0.18); color: #fff; }
.tc-chip-pause   { color: #FFD170; border-color: rgba(255, 209, 112, 0.45); background: rgba(255, 209, 112, 0.08); }
.tc-chip-pause:hover { background: rgba(255, 209, 112, 0.18); color: #fff; }
.tc-chip-ok      { color: #4FE08A; border-color: rgba(79, 224, 138, 0.5); background: rgba(79, 224, 138, 0.1); }
.tc-chip-ok:hover { background: rgba(79, 224, 138, 0.22); color: #fff; }
.tc-chip-danger  { color: #FF8A7A; border-color: rgba(255, 138, 122, 0.45); background: rgba(255, 138, 122, 0.08); }
.tc-chip-danger:hover { background: rgba(255, 138, 122, 0.2); color: #fff; }

/* Row card */
.tc-row {
  padding: 10px 12px;
  background: rgba(10, 20, 36, 0.5);
  border: 1px solid rgba(79, 216, 255, 0.1);
  border-radius: 9px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tc-row:hover {
  border-color: rgba(79, 216, 255, 0.3);
  box-shadow: 0 0 12px rgba(79, 216, 255, 0.06);
}
.tc-row[data-status="completed"]  { opacity: 0.72; }
.tc-row[data-status="cancelled"]  { opacity: 0.55; }
.tc-row[data-status="paused"]     { border-color: rgba(255, 209, 112, 0.28); }

/* Priority accent dots */
.tc-prio-low      { color: #A8BDD6; }
.tc-prio-medium   { color: #7EE8FF; }
.tc-prio-high     { color: #FFD170; }
.tc-prio-critical { color: #FF8A7A; }

/* ----- Message hint (last-message indicator, bottom panel) ----- */
.bp-message-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(193, 122, 255, 0.72);
  white-space: nowrap;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.bp-message-hint::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #C17AFF;
  box-shadow: 0 0 6px #C17AFF;
}

/* ----- Room card edit button (custom rooms only) -----
   Tint colour is applied inline per-room so each card's pencil
   reads as "this room's colour" rather than a neutral grey.
   Keeps it distinct from the coral delete button right next to it. */
.rg-room-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: rgba(126, 232, 255, 0.65);
  background: transparent;
  border: 1px solid rgba(126, 232, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.rg-room-edit:hover {
  color: #fff;
  background: rgba(126, 232, 255, 0.12);
  border-color: rgba(126, 232, 255, 0.6);
  box-shadow: 0 0 8px rgba(126, 232, 255, 0.25);
  transform: translateY(-1px);
}
.rg-room-edit:focus-visible {
  outline: 2px solid rgba(126, 232, 255, 0.55);
  outline-offset: 2px;
}

/* ----- Room card delete button (custom rooms only) ----- */
.rg-room-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 138, 122, 0.55);
  background: transparent;
  border: 1px solid rgba(255, 138, 122, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.rg-room-remove:hover {
  color: #fff;
  background: rgba(255, 138, 122, 0.2);
  border-color: rgba(255, 138, 122, 0.6);
  box-shadow: 0 0 8px rgba(255, 138, 122, 0.25);
}

/* ----- "+ Nueva sala" tile at the end of the rooms grid ----- */
.rg-new-room-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(79, 216, 255, 0.04);
  border: 1px dashed rgba(79, 216, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  color: #7EE8FF;
  font-family: 'Inter', sans-serif;
  min-height: 200px;
}
.rg-new-room-tile:hover {
  background: rgba(79, 216, 255, 0.1);
  border-color: rgba(79, 216, 255, 0.6);
  box-shadow: 0 0 18px rgba(79, 216, 255, 0.15), inset 0 0 24px rgba(79, 216, 255, 0.05);
}
.rg-new-room-tile:focus-visible {
  outline: 2px solid rgba(79, 216, 255, 0.55);
  outline-offset: 2px;
}
.rg-new-room-plus {
  font-size: 28px;
  font-weight: 300;
  color: #7EE8FF;
  line-height: 1;
  text-shadow: 0 0 12px rgba(79, 216, 255, 0.5);
}
.rg-new-room-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.rg-new-room-hint {
  font-size: 10px;
  color: rgba(126, 232, 255, 0.45);
  letter-spacing: 0.5px;
}

/* ----- Collaborators modal rows ----- */
.ca-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(10, 20, 36, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.1);
  border-radius: 9px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ca-row:hover { border-color: rgba(79, 216, 255, 0.28); }
.ca-row.ca-active {
  border-color: rgba(79, 216, 255, 0.5);
  background: rgba(79, 216, 255, 0.06);
  box-shadow: 0 0 12px rgba(79, 216, 255, 0.08);
}
.ca-row-body { flex: 1; min-width: 0; }
.ca-row-name {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #EAF6FF;
  letter-spacing: 0.2px;
}
.ca-row-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(168, 189, 214, 0.72);
  margin-top: 2px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.ca-toggle {
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.ca-toggle-add {
  color: rgba(126, 232, 255, 0.78);
  border-color: rgba(79, 216, 255, 0.3);
}
.ca-toggle-add:hover {
  color: #fff;
  background: rgba(79, 216, 255, 0.15);
  border-color: rgba(79, 216, 255, 0.55);
  box-shadow: 0 0 8px rgba(79, 216, 255, 0.2);
}
.ca-toggle-remove {
  color: rgba(255, 138, 122, 0.8);
  border-color: rgba(255, 138, 122, 0.3);
}
.ca-toggle-remove:hover {
  color: #fff;
  background: rgba(255, 138, 122, 0.15);
  border-color: rgba(255, 138, 122, 0.55);
  box-shadow: 0 0 8px rgba(255, 138, 122, 0.2);
}

/* Empty state inside collaborators modal */
.ca-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px 20px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(79, 216, 255, 0.2);
  border-radius: 10px;
  background: rgba(79, 216, 255, 0.02);
}
.ca-empty-title  { font-size: 11.5px; letter-spacing: 0.06em; color: rgba(234, 246, 255, 0.72); }
.ca-empty-sub    { font-size: 10px; color: rgba(255, 255, 255, 0.38); line-height: 1.5; max-width: 320px; }

/* ----- Queue + History chips under CURRENT TASK in BottomPanel ----- */
.bp-queue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(79, 216, 255, 0.1);
}
.bp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 1px;
  font-weight: 700;
  line-height: 1;
  color: rgba(234, 246, 255, 0.7);
  background: rgba(10, 20, 36, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.bp-chip:hover {
  color: #fff;
  background: rgba(79, 216, 255, 0.1);
  border-color: rgba(79, 216, 255, 0.5);
  box-shadow: 0 0 8px rgba(79, 216, 255, 0.2);
}
.bp-chip-icon  { font-size: 10px; opacity: 0.85; }
.bp-chip-label { letter-spacing: 1.2px; }
.bp-chip-count {
  padding: 1px 6px;
  background: rgba(79, 216, 255, 0.15);
  border-radius: 999px;
  color: #7EE8FF;
  font-size: 9.5px;
  letter-spacing: 0;
}
.bp-chip-history .bp-chip-count { background: rgba(79, 224, 138, 0.15); color: #4FE08A; }

/* ----- Queue + History modal row actions ----- */
.qh-action {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; line-height: 1;
  background: transparent;
  border: 1px solid rgba(79, 216, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.qh-activate { color: rgba(79, 224, 138, 0.8); border-color: rgba(79, 224, 138, 0.25); }
.qh-activate:hover:not(:disabled) {
  color: #fff; background: rgba(79, 224, 138, 0.15);
  border-color: rgba(79, 224, 138, 0.55);
  box-shadow: 0 0 8px rgba(79, 224, 138, 0.22);
}
.qh-activate:disabled { opacity: 0.35; cursor: not-allowed; }
.qh-remove { color: rgba(255, 138, 122, 0.7); border-color: rgba(255, 138, 122, 0.22); }
.qh-remove:hover {
  color: #fff; background: rgba(255, 138, 122, 0.15);
  border-color: rgba(255, 138, 122, 0.55);
  box-shadow: 0 0 8px rgba(255, 138, 122, 0.22);
}

/* ----- Alerts floating chip (top-right, inside Team Overview area) ----- */
.alerts-chip {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid;
  background: rgba(10, 20, 36, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.alerts-chip:hover { transform: translateY(-1px); }
.alerts-chip-icon  { font-size: 12px; }
.alerts-chip-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}
.alerts-chip-info    { color: #7EE8FF; border-color: rgba(79, 216, 255, 0.5);
                       box-shadow: 0 0 12px rgba(79, 216, 255, 0.2); }
.alerts-chip-info:hover    { box-shadow: 0 0 18px rgba(79, 216, 255, 0.35); }
.alerts-chip-warning { color: #FFD170; border-color: rgba(255, 209, 112, 0.55);
                       box-shadow: 0 0 12px rgba(255, 209, 112, 0.25); }
.alerts-chip-warning:hover { box-shadow: 0 0 20px rgba(255, 209, 112, 0.4); }
.alerts-chip-critical { color: #FF8A7A; border-color: rgba(255, 138, 122, 0.6);
                        box-shadow: 0 0 14px rgba(255, 138, 122, 0.3);
                        animation: pulseGlow 1.8s ease-in-out infinite; }

/* ----- Alerts modal sections ----- */
.am-sections { display: flex; flex-direction: column; gap: 14px;
               max-height: 460px; overflow-y: auto; padding-right: 4px; }
.am-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 2px 6px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.6px; color: #7EE8FF; font-weight: 700;
}
.am-count {
  font-size: 11px; color: rgba(255, 255, 255, 0.45);
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
}
.am-empty {
  font-size: 11.5px; color: rgba(255, 255, 255, 0.35);
  padding: 8px 6px; font-style: italic;
}
.am-list { list-style: none; margin: 0; padding: 0;
           display: flex; flex-direction: column; gap: 6px; }
.am-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(10, 20, 36, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.08);
  border-radius: 8px;
}
.am-row.am-sev-warning  { border-color: rgba(255, 209, 112, 0.25); }
.am-row.am-sev-critical { border-color: rgba(255, 138, 122, 0.3);  }
.am-severity {
  flex-shrink: 0;
  padding: 3px 7px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 800; letter-spacing: 0.8px;
  border: 1px solid transparent;
}
.am-sev-tag-info     { background: rgba(79, 216, 255, 0.12);  color: #7EE8FF; border-color: rgba(79, 216, 255, 0.3); }
.am-sev-tag-warning  { background: rgba(255, 209, 112, 0.14); color: #FFD170; border-color: rgba(255, 209, 112, 0.35); }
.am-sev-tag-critical { background: rgba(255, 138, 122, 0.14); color: #FF8A7A; border-color: rgba(255, 138, 122, 0.4);  }
.am-row-main { flex: 1; min-width: 0; }
.am-row-title { color: #EAF6FF; font-size: 12.5px; font-weight: 600; margin-bottom: 2px;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-row-detail { color: rgba(234, 246, 255, 0.65); font-size: 11px;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-row-meta { color: rgba(255, 255, 255, 0.35); font-size: 10px;
               font-family: 'JetBrains Mono', monospace; margin-top: 2px; letter-spacing: 0.3px; }
.am-row-actions { display: flex; gap: 4px; flex-shrink: 0; }
.am-action {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; line-height: 1;
  background: transparent;
  border: 1px solid rgba(79, 216, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.am-ack      { color: rgba(79, 224, 138, 0.8); border-color: rgba(79, 224, 138, 0.25); }
.am-ack:hover {
  color: #fff; background: rgba(79, 224, 138, 0.15);
  border-color: rgba(79, 224, 138, 0.55);
  box-shadow: 0 0 8px rgba(79, 224, 138, 0.22);
}
.am-dismiss  { color: rgba(255, 138, 122, 0.7); border-color: rgba(255, 138, 122, 0.22); }
.am-dismiss:hover {
  color: #fff; background: rgba(255, 138, 122, 0.15);
  border-color: rgba(255, 138, 122, 0.55);
  box-shadow: 0 0 8px rgba(255, 138, 122, 0.22);
}

/* ============================================================================
   INBOX / SOCIAL AGENT  —  scoped to the new BANDEJA tab (#view-inbox).
   Same premium language: dark cyan-on-navy, JetBrains Mono accents, rounded
   panels, subtle glow on focus. No layout dependency on Tactical or LiveOps.
============================================================================ */
.ix-root {
  position: relative;
  flex: 1;
  display: flex;
  min-width: 0; min-height: 0;
  background: radial-gradient(ellipse at top, #0F2544 0%, #06101E 60%, #02060E 100%);
  color: #EAF6FF;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}
.ix-bg-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(79, 216, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 216, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.ix-shell {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  padding: 14px 18px;
  gap: 12px;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
}

/* HEADER */
.ix-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.12);
}
.ix-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 2.4px; color: #7EE8FF;
  font-weight: 700; text-transform: uppercase;
}
.ix-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 0.3px; margin-top: 4px; }
.ix-sub { font-size: 11.5px; color: rgba(234, 246, 255, 0.55); margin-top: 3px; }
.ix-mode-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.6px; font-weight: 800; color: #FFD170;
  background: rgba(255, 209, 112, 0.1);
  border: 1px solid rgba(255, 209, 112, 0.35);
  padding: 5px 10px; border-radius: 999px; flex-shrink: 0;
}

/* SUMMARY STRIP */
.ix-summary {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px;
  background: rgba(10, 20, 36, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.15);
  border-radius: 12px;
  box-shadow: inset 0 0 30px rgba(79, 216, 255, 0.03);
}
.ix-summary-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ix-sum-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 12px;
  background: rgba(10, 20, 36, 0.7);
  border: 1px solid rgba(79, 216, 255, 0.18);
  border-radius: 8px;
}
.ix-sum-label { font-size: 10.5px; letter-spacing: 0.6px; color: rgba(234, 246, 255, 0.65); font-weight: 600; }
.ix-sum-value { font-size: 16px; font-weight: 800; color: #fff; font-family: 'JetBrains Mono', monospace; }
.ix-sum-urgent      { border-color: rgba(255, 138, 122, 0.45); }
.ix-sum-urgent      .ix-sum-value { color: #FF8A7A; }
.ix-sum-collab      { border-color: rgba(126, 232, 255, 0.4); }
.ix-sum-collab      .ix-sum-value { color: #7EE8FF; }
.ix-sum-opportunity { border-color: rgba(255, 209, 112, 0.45); }
.ix-sum-opportunity .ix-sum-value { color: #FFD170; }
.ix-sum-community   { border-color: rgba(79, 224, 138, 0.4); }
.ix-sum-community   .ix-sum-value { color: #4FE08A; }
.ix-sum-spam        { border-color: rgba(255, 255, 255, 0.15); opacity: 0.75; }
.ix-sum-new         { border-color: rgba(126, 232, 255, 0.4); }
.ix-sum-new         .ix-sum-value { color: #7EE8FF; }
.ix-summary-rec {
  display: flex; align-items: center; gap: 8px;
  padding-top: 4px; border-top: 1px dashed rgba(79, 216, 255, 0.12);
}
.ix-rec-icon { color: #7EE8FF; font-size: 12px; }
.ix-rec-text { color: rgba(234, 246, 255, 0.85); font-size: 12.5px; font-weight: 500; }
.ix-summary-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.4px;
  color: rgba(234, 246, 255, 0.42);
  font-style: italic;
  padding-top: 2px;
}

/* FILTERS */
.ix-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(10, 20, 36, 0.6);
  border: 1px solid rgba(79, 216, 255, 0.15);
  border-radius: 999px;
  color: rgba(234, 246, 255, 0.65);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.2px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.ix-filter:hover { color: #fff; background: rgba(79, 216, 255, 0.08); border-color: rgba(79, 216, 255, 0.4); }
.ix-filter.active {
  color: #0a1a2e;
  background: linear-gradient(90deg, #4FD8FF, #7EE8FF);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(79, 216, 255, 0.3);
}
.ix-filter-count {
  font-size: 9.5px; padding: 1px 6px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.3); letter-spacing: 0;
}
.ix-filter.active .ix-filter-count { background: rgba(10, 26, 46, 0.4); color: #0a1a2e; }
.ix-filter:not(.active).ix-filter-urgent      { border-color: rgba(255, 138, 122, 0.35); color: #FF8A7A; }
.ix-filter:not(.active).ix-filter-collab      { border-color: rgba(126, 232, 255, 0.35); color: #7EE8FF; }
.ix-filter:not(.active).ix-filter-opportunity { border-color: rgba(255, 209, 112, 0.35); color: #FFD170; }
.ix-filter:not(.active).ix-filter-community   { border-color: rgba(79, 224, 138, 0.35);  color: #4FE08A; }
.ix-filter:not(.active).ix-filter-spam        { opacity: 0.7; }
.ix-filter:not(.active).ix-filter-later       { border-color: rgba(183, 139, 255, 0.35); color: #B78BFF; }

/* 2-COLUMN BODY */
.ix-body-2col {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.3fr);
  gap: 12px;
}
.ix-col-list, .ix-col-detail {
  background: rgba(10, 20, 36, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 0;
}
.ix-col-list   { padding: 6px; overflow-y: auto; }
.ix-col-detail { padding: 14px; overflow-y: auto; }

/* LIST */
.ix-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ix-list-empty {
  padding: 24px 12px; text-align: center;
  color: rgba(234, 246, 255, 0.4); font-size: 12px; font-style: italic;
}
.ix-row {
  position: relative;
  padding: 10px 12px 10px 14px;
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid rgba(79, 216, 255, 0.08);
  border-left: 3px solid transparent; /* overridden by .ix-row-prio-* */
  border-radius: 9px;
  cursor: pointer; transition: all 0.15s;
}
.ix-row:hover { background: rgba(79, 216, 255, 0.04); border-color: rgba(79, 216, 255, 0.25); }
/* Priority as a left bar — instant read of operator load. */
.ix-row-prio-high   { border-left-color: rgba(255, 138, 122, 0.85); }
.ix-row-prio-medium { border-left-color: rgba(255, 209, 112, 0.7); }
.ix-row-prio-low    { border-left-color: rgba(255, 255, 255, 0.06); }
/* Calm down community/spam without hiding them. */
.ix-row.muted-cat   { opacity: 0.7; }
.ix-row.muted-cat:hover { opacity: 0.95; }
/* Subtle status indicators (no chip). */
.ix-row-state-dot {
  width: 5px; height: 5px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
  margin-right: 1px;
}
.ix-row-state-pending  { background: #FFD170; box-shadow: 0 0 5px rgba(255, 209, 112, 0.6); }
.ix-row-state-reviewed { background: rgba(255, 255, 255, 0.4); }
.ix-row.selected {
  background: linear-gradient(135deg, rgba(79, 216, 255, 0.12), rgba(79, 216, 255, 0.03));
  border-color: rgba(79, 216, 255, 0.55);
  box-shadow: 0 0 14px rgba(79, 216, 255, 0.18), inset 0 0 18px rgba(79, 216, 255, 0.04);
}
.ix-row.new::before {
  content: ""; position: absolute; left: 5px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #4FD8FF; box-shadow: 0 0 6px #4FD8FF;
}
.ix-row.dim { opacity: 0.55; }
.ix-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ix-row-sender { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex: 1; }
.ix-row-name {
  color: #EAF6FF; font-weight: 700; font-size: 12.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ix-row-handle { color: rgba(126, 232, 255, 0.6); font-size: 10.5px; font-family: 'JetBrains Mono', monospace; }
.ix-row-time {
  color: rgba(255, 255, 255, 0.4); font-size: 10px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.4px; flex-shrink: 0;
}
.ix-row-preview {
  color: rgba(234, 246, 255, 0.6);
  font-size: 11.5px; line-height: 1.4;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.ix-row-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* TAGS */
.ix-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.8px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid transparent; text-transform: uppercase;
}
.ix-tag-platform { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.08); }
.ix-tag-cat-urgent      { background: rgba(255, 138, 122, 0.14); color: #FF8A7A; border-color: rgba(255, 138, 122, 0.32); }
.ix-tag-cat-collab      { background: rgba(126, 232, 255, 0.14); color: #7EE8FF; border-color: rgba(126, 232, 255, 0.32); }
.ix-tag-cat-opportunity { background: rgba(255, 209, 112, 0.14); color: #FFD170; border-color: rgba(255, 209, 112, 0.32); }
.ix-tag-cat-community   { background: rgba(79, 224, 138, 0.12); color: #4FE08A; border-color: rgba(79, 224, 138, 0.3); }
.ix-tag-cat-spam        { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.18); }
.ix-tag-cat-later       { background: rgba(183, 139, 255, 0.14); color: #B78BFF; border-color: rgba(183, 139, 255, 0.32); }
.ix-tag-prio-high       { background: rgba(255, 138, 122, 0.14); color: #FF8A7A; border-color: rgba(255, 138, 122, 0.3); }
.ix-tag-prio-medium     { background: rgba(255, 209, 112, 0.12); color: #FFD170; border-color: rgba(255, 209, 112, 0.3); }
.ix-tag-prio-low        { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.12); }
.ix-tag-status          { background: rgba(255, 255, 255, 0.04); color: rgba(234, 246, 255, 0.6); border-color: rgba(255, 255, 255, 0.1); }
.ix-tag-status-new      { color: #4FD8FF; border-color: rgba(79, 216, 255, 0.35); background: rgba(79, 216, 255, 0.08); }
.ix-tag-status-resolved { color: #4FE08A; border-color: rgba(79, 224, 138, 0.35); background: rgba(79, 224, 138, 0.08); }
.ix-tag-status-ignored  { color: rgba(255, 138, 122, 0.7); border-color: rgba(255, 138, 122, 0.25); }

/* DETAIL */
.ix-detail { display: flex; flex-direction: column; gap: 14px; }
.ix-detail-empty { margin: auto; text-align: center; max-width: 320px; padding: 24px; }
.ix-detail-empty-title { font-size: 13px; font-weight: 700; color: rgba(234, 246, 255, 0.6); }
.ix-detail-empty-sub   { font-size: 11.5px; color: rgba(255, 255, 255, 0.35); margin-top: 6px; line-height: 1.55; }
.ix-detail-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(79, 216, 255, 0.1);
}
.ix-detail-sender { font-size: 15px; font-weight: 800; color: #fff; }
.ix-detail-meta {
  font-size: 11px; color: rgba(234, 246, 255, 0.5); margin-top: 3px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.3px;
}
.ix-detail-tags { display: flex; gap: 4px; flex-shrink: 0; flex-wrap: wrap; }

.ix-section { display: flex; flex-direction: column; gap: 6px; }
.ix-section-label {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.6px; color: #7EE8FF; font-weight: 700;
}
.ix-body {
  background: rgba(10, 20, 36, 0.65);
  border: 1px solid rgba(79, 216, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px; line-height: 1.55;
  color: rgba(234, 246, 255, 0.85);
  white-space: pre-wrap;
}
.ix-reply {
  background: rgba(79, 216, 255, 0.06);
  border: 1px dashed rgba(79, 216, 255, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px; line-height: 1.55;
  color: rgba(234, 246, 255, 0.85);
  white-space: pre-wrap;
}
.ix-reply-empty { color: rgba(255, 255, 255, 0.35); font-style: italic; }
.ix-copy-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 1px; font-weight: 700;
  padding: 3px 9px;
  background: rgba(79, 216, 255, 0.06);
  border: 1px solid rgba(79, 216, 255, 0.3);
  border-radius: 4px; color: #7EE8FF;
  cursor: pointer; transition: all 0.15s;
}
.ix-copy-btn:hover {
  background: rgba(79, 216, 255, 0.18);
  border-color: rgba(79, 216, 255, 0.6);
  color: #fff;
  box-shadow: 0 0 8px rgba(79, 216, 255, 0.25);
}

/* QUICK ACTIONS */
.ix-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-action {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  padding: 6px 11px;
  background: rgba(10, 20, 36, 0.7);
  border: 1px solid rgba(79, 216, 255, 0.18);
  border-radius: 7px;
  color: rgba(234, 246, 255, 0.8);
  cursor: pointer; transition: all 0.15s;
}
.ix-action:hover { background: rgba(79, 216, 255, 0.08); border-color: rgba(79, 216, 255, 0.4); color: #fff; }
.ix-act-urgent   { border-color: rgba(255, 138, 122, 0.3); color: rgba(255, 138, 122, 0.85); }
.ix-act-urgent:hover   { background: rgba(255, 138, 122, 0.12); border-color: rgba(255, 138, 122, 0.6); color: #fff; box-shadow: 0 0 10px rgba(255, 138, 122, 0.2); }
.ix-act-collab   { border-color: rgba(126, 232, 255, 0.3); color: #7EE8FF; }
.ix-act-collab:hover   { background: rgba(126, 232, 255, 0.12); border-color: rgba(126, 232, 255, 0.6); color: #fff; box-shadow: 0 0 10px rgba(126, 232, 255, 0.2); }
.ix-act-later    { border-color: rgba(183, 139, 255, 0.3); color: #B78BFF; }
.ix-act-later:hover    { background: rgba(183, 139, 255, 0.12); border-color: rgba(183, 139, 255, 0.6); color: #fff; box-shadow: 0 0 10px rgba(183, 139, 255, 0.2); }
.ix-act-resolved { border-color: rgba(79, 224, 138, 0.32); color: #4FE08A; }
.ix-act-resolved:hover { background: rgba(79, 224, 138, 0.12); border-color: rgba(79, 224, 138, 0.6); color: #fff; box-shadow: 0 0 10px rgba(79, 224, 138, 0.22); }
.ix-act-ignore   { border-color: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.5); }
.ix-act-ignore:hover   { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.85); }

/* MANUAL SELECTORS — collapsible secondary block. Closed by default so the
   primary actions own the operator's attention. */
.ix-manual {
  border: 1px solid rgba(79, 216, 255, 0.06);
  border-radius: 8px;
  background: rgba(10, 20, 36, 0.25);
}
.ix-manual.open {
  border-color: rgba(79, 216, 255, 0.14);
  background: rgba(10, 20, 36, 0.4);
}
.ix-manual-toggle {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 1.2px; font-weight: 700;
  color: rgba(234, 246, 255, 0.5);
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}
.ix-manual-toggle:hover { color: rgba(234, 246, 255, 0.85); }
.ix-manual.open .ix-manual-toggle { color: #7EE8FF; }
.ix-manual-caret {
  display: inline-block;
  width: 12px; text-align: center;
  color: rgba(126, 232, 255, 0.7);
  font-size: 10px;
}
.ix-manual-hint {
  margin-left: auto;
  font-size: 9.5px; letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600; text-transform: none;
}
.ix-manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.ix-manual-row { display: flex; flex-direction: column; gap: 4px; }
.ix-manual-row > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.4px; color: rgba(234, 246, 255, 0.45);
  font-weight: 700; text-transform: uppercase;
}
.ix-manual-row > select {
  background: rgba(10, 20, 36, 0.7);
  border: 1px solid rgba(79, 216, 255, 0.18);
  border-radius: 6px;
  color: #EAF6FF;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  padding: 6px 8px;
  outline: none; cursor: pointer;
}
.ix-manual-row > select:focus { border-color: rgba(79, 216, 255, 0.55); box-shadow: 0 0 8px rgba(79, 216, 255, 0.18); }

/* RESPONSIVE */
@media (max-width: 880px) {
  .ix-body-2col { grid-template-columns: 1fr; grid-template-rows: minmax(260px, 1fr) minmax(260px, 1fr); }
}

/* ---- Filter tiers: primary reads first, secondary attenuated after divider ---- */
.ix-filter-divider {
  display: inline-block;
  width: 1px; height: 18px;
  background: rgba(79, 216, 255, 0.18);
  margin: 0 4px;
  align-self: center;
}
.ix-filter-secondary:not(.active) {
  font-size: 9px;
  letter-spacing: 0.9px;
  padding: 4px 9px;
  opacity: 0.7;
  color: rgba(234, 246, 255, 0.5);
  background: rgba(10, 20, 36, 0.4);
  border-color: rgba(79, 216, 255, 0.08);
}
.ix-filter-secondary:not(.active):hover {
  opacity: 1;
  color: rgba(234, 246, 255, 0.9);
  border-color: rgba(79, 216, 255, 0.3);
}
/* Override per-category color tints on secondaries — keep them quiet. */
.ix-filter-secondary:not(.active).ix-filter-community,
.ix-filter-secondary:not(.active).ix-filter-later,
.ix-filter-secondary:not(.active).ix-filter-spam {
  color: rgba(234, 246, 255, 0.5);
  border-color: rgba(79, 216, 255, 0.1);
}

/* ============================================================================
   EXECUTIVE BRIEF (NIVEL 1) — vista por defecto, mínima.
============================================================================ */

/* 4 chips ejecutivos — el número grande domina, la etiqueta debajo. */
.ix-exec-summary {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px;
  background: rgba(10, 20, 36, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.18);
  border-radius: 14px;
  box-shadow: inset 0 0 40px rgba(79, 216, 255, 0.04);
}
.ix-exec-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ix-exec-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 16px;
  background: rgba(10, 20, 36, 0.7);
  border: 1px solid rgba(79, 216, 255, 0.15);
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ix-exec-chip-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 800; color: #fff;
  line-height: 1;
}
.ix-exec-chip-label {
  font-size: 10.5px; letter-spacing: 1.2px; font-weight: 700;
  color: rgba(234, 246, 255, 0.55);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.ix-exec-chip-urgent      { border-color: rgba(255, 138, 122, 0.5); }
.ix-exec-chip-urgent      .ix-exec-chip-value { color: #FF8A7A; }
.ix-exec-chip-urgent      .ix-exec-chip-label { color: rgba(255, 138, 122, 0.8); }
.ix-exec-chip-collab      { border-color: rgba(126, 232, 255, 0.45); }
.ix-exec-chip-collab      .ix-exec-chip-value { color: #7EE8FF; }
.ix-exec-chip-collab      .ix-exec-chip-label { color: rgba(126, 232, 255, 0.8); }
.ix-exec-chip-pending     { border-color: rgba(255, 209, 112, 0.45); }
.ix-exec-chip-pending     .ix-exec-chip-value { color: #FFD170; }
.ix-exec-chip-pending     .ix-exec-chip-label { color: rgba(255, 209, 112, 0.8); }
.ix-exec-chip-new         { border-color: rgba(126, 232, 255, 0.3); }
.ix-exec-chip-new         .ix-exec-chip-value { color: #BEF2FF; }

/* Lista clave — card contenedora */
.ix-exec-list-wrap {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.ix-exec-list-toolbar {
  display: flex; justify-content: flex-end;
}
.ix-open-full-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 1.2px; font-weight: 700;
  padding: 7px 14px;
  background: rgba(79, 216, 255, 0.06);
  border: 1px solid rgba(79, 216, 255, 0.3);
  border-radius: 7px;
  color: #7EE8FF;
  cursor: pointer;
  transition: all 0.15s;
}
.ix-open-full-btn:hover {
  background: rgba(79, 216, 255, 0.16);
  border-color: rgba(79, 216, 255, 0.6);
  color: #fff;
  box-shadow: 0 0 12px rgba(79, 216, 255, 0.25);
}

.ix-exec-list-card {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  background: rgba(10, 20, 36, 0.5);
  border: 1px solid rgba(79, 216, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
}
.ix-exec-list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.1);
}
.ix-exec-list-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.8px; color: #7EE8FF;
  font-weight: 700;
}
.ix-exec-list-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.6px;
  color: rgba(234, 246, 255, 0.4);
}
.ix-exec-list-empty {
  padding: 28px 18px; text-align: center;
  color: rgba(234, 246, 255, 0.45);
  font-size: 12.5px; font-style: italic;
}
.ix-exec-list {
  list-style: none; margin: 0; padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}

/* Row ejecutiva — una fila, una decisión. Reutiliza .ix-row-prio-* como
   acento izquierdo (ya definido arriba). */
.ix-exec-row {
  position: relative;
  padding: 10px 14px 10px 14px;
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.08);
  border-left: 3px solid transparent;
  border-radius: 9px;
  transition: background 0.15s, border-color 0.15s;
}
.ix-exec-row:hover {
  background: rgba(79, 216, 255, 0.04);
  border-color: rgba(79, 216, 255, 0.22);
}
.ix-exec-row-top {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px;
}
.ix-exec-row-name {
  color: #EAF6FF; font-weight: 700; font-size: 13px;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ix-exec-row-time {
  color: rgba(255, 255, 255, 0.42); font-size: 10px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.4px;
  flex-shrink: 0;
}
.ix-exec-row-preview {
  color: rgba(234, 246, 255, 0.6);
  font-size: 11.5px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 8px;
}
.ix-exec-row-actions {
  display: flex; gap: 6px;
}
.ix-exec-action {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  padding: 5px 12px;
  background: rgba(10, 20, 36, 0.7);
  border: 1px solid rgba(79, 216, 255, 0.18);
  border-radius: 6px;
  color: rgba(234, 246, 255, 0.85);
  cursor: pointer;
  transition: all 0.15s;
}
.ix-exec-action:hover {
  background: rgba(79, 216, 255, 0.1);
  border-color: rgba(79, 216, 255, 0.45);
  color: #fff;
}
.ix-exec-act-view     { color: #7EE8FF; border-color: rgba(126, 232, 255, 0.32); }
.ix-exec-act-view:hover     { background: rgba(126, 232, 255, 0.14); border-color: rgba(126, 232, 255, 0.6); color: #fff; box-shadow: 0 0 10px rgba(126, 232, 255, 0.2); }
.ix-exec-act-resolve  { color: #4FE08A; border-color: rgba(79, 224, 138, 0.32); }
.ix-exec-act-resolve:hover  { background: rgba(79, 224, 138, 0.14); border-color: rgba(79, 224, 138, 0.6); color: #fff; box-shadow: 0 0 10px rgba(79, 224, 138, 0.22); }
.ix-exec-act-postpone { color: #B78BFF; border-color: rgba(183, 139, 255, 0.3); }
.ix-exec-act-postpone:hover { background: rgba(183, 139, 255, 0.14); border-color: rgba(183, 139, 255, 0.6); color: #fff; box-shadow: 0 0 10px rgba(183, 139, 255, 0.2); }

/* ============================================================================
   FULL INBOX DRAWER (NIVEL 2) — overlay interno que ocupa el shell.
============================================================================ */
.ix-fullscreen-overlay {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  gap: 12px;
  animation: ix-drawer-in 0.22s ease-out;
}
@keyframes ix-drawer-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ix-fullscreen-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px 8px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.12);
}
.ix-back-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 1px; font-weight: 700;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(79, 216, 255, 0.25);
  border-radius: 6px;
  color: rgba(126, 232, 255, 0.85);
  cursor: pointer;
  transition: all 0.15s;
}
.ix-back-btn:hover {
  background: rgba(79, 216, 255, 0.08);
  border-color: rgba(79, 216, 255, 0.55);
  color: #fff;
  box-shadow: 0 0 10px rgba(79, 216, 255, 0.2);
}
.ix-fullscreen-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 2px; font-weight: 800;
  color: rgba(234, 246, 255, 0.55);
}

/* Responsive: 4 chips → 2x2 en viewports angostos */
@media (max-width: 720px) {
  .ix-exec-summary-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   OPERATOR GUIDE  —  scoped to the GUÍA tab (#view-guide).
   Static content, premium look consistent with Inbox / Team Overview.
============================================================================ */
.gd-root {
  position: relative;
  flex: 1;
  display: flex;
  min-width: 0; min-height: 0;
  background: radial-gradient(ellipse at top, #0F2544 0%, #06101E 60%, #02060E 100%);
  color: #EAF6FF;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}
.gd-bg-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.32;
  background-image:
    linear-gradient(rgba(79, 216, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 216, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.gd-shell {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 16px 22px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
}

/* HEADER */
.gd-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.12);
}
.gd-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 2.4px; color: #7EE8FF;
  font-weight: 700; text-transform: uppercase;
}
.gd-title  { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 0.3px; margin-top: 4px; }
.gd-sub    { font-size: 11.5px; color: rgba(234, 246, 255, 0.55); margin-top: 3px; }
.gd-mode-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.6px; font-weight: 800;
  color: #7EE8FF;
  background: rgba(79, 216, 255, 0.08);
  border: 1px solid rgba(79, 216, 255, 0.3);
  padding: 5px 10px; border-radius: 999px;
  flex-shrink: 0;
}

/* START HERE — bloque destacado siempre visible */
.gd-start {
  background: linear-gradient(135deg, rgba(79, 216, 255, 0.08), rgba(79, 216, 255, 0.02));
  border: 1px solid rgba(79, 216, 255, 0.35);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 0 24px rgba(79, 216, 255, 0.08), inset 0 0 30px rgba(79, 216, 255, 0.04);
}
.gd-start-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(79, 216, 255, 0.18);
}
.gd-start-icon {
  font-size: 16px; color: #7EE8FF;
  text-shadow: 0 0 8px rgba(79, 216, 255, 0.45);
}
.gd-start-title {
  font-size: 14px; font-weight: 800; color: #fff;
  letter-spacing: 0.3px;
}
.gd-start-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gd-start-step { display: flex; align-items: flex-start; gap: 12px; }
.gd-start-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(79, 216, 255, 0.14);
  border: 1px solid rgba(79, 216, 255, 0.4);
  border-radius: 50%;
  color: #7EE8FF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 800;
}
.gd-start-step-title  { color: #EAF6FF; font-size: 12.5px; font-weight: 700; }
.gd-start-step-detail { color: rgba(234, 246, 255, 0.6); font-size: 11.5px; line-height: 1.45; margin-top: 2px; }

/* GROUP DIVIDERS */
.gd-group-divider {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 2.4px; font-weight: 700;
  color: rgba(126, 232, 255, 0.55);
  text-transform: uppercase;
  padding-top: 8px; margin-top: 4px;
  border-top: 1px dashed rgba(79, 216, 255, 0.1);
}

/* ACCORDIONS */
.gd-acc {
  background: rgba(10, 20, 36, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gd-acc.open {
  border-color: rgba(79, 216, 255, 0.28);
  box-shadow: 0 0 18px rgba(79, 216, 255, 0.08);
}
.gd-acc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background 0.15s;
}
.gd-acc-head:hover { background: rgba(79, 216, 255, 0.04); }
.gd-acc-head-text { display: flex; flex-direction: column; gap: 2px; }
.gd-acc-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.8px; font-weight: 700;
  color: rgba(126, 232, 255, 0.7);
}
.gd-acc-title { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.2px; }
.gd-acc-caret {
  font-size: 13px; color: #7EE8FF;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.gd-acc-body {
  padding: 0 16px 16px;
  display: flex; flex-direction: column; gap: 14px;
  animation: gd-slide-in 0.18s ease-out;
}
@keyframes gd-slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CONCEPT CARDS */
.gd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.gd-card {
  background: rgba(10, 20, 36, 0.7);
  border: 1px solid rgba(79, 216, 255, 0.12);
  border-radius: 9px;
  padding: 10px 12px;
}
.gd-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 1.6px; font-weight: 700;
  color: rgba(126, 232, 255, 0.7);
  margin-bottom: 5px;
}
.gd-card-body { color: rgba(234, 246, 255, 0.85); font-size: 11.5px; line-height: 1.5; }

/* SECTION-MINI titles inside accordions */
.gd-section-mini {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.4px; font-weight: 700;
  color: #7EE8FF;
  margin-top: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.1);
}

/* BULLETS */
.gd-bullets {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.gd-bullets li {
  display: flex; align-items: flex-start; gap: 8px;
  color: rgba(234, 246, 255, 0.85);
  font-size: 12px; line-height: 1.5;
}
.gd-bullet-mark {
  color: #7EE8FF;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

/* HIGHLIGHTS */
.gd-highlight {
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 11.5px; line-height: 1.5;
  border: 1px solid;
}
.gd-highlight-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.2px; font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.gd-hl-info {
  background: rgba(79, 216, 255, 0.06);
  border-color: rgba(79, 216, 255, 0.25);
  color: rgba(234, 246, 255, 0.85);
}
.gd-hl-info .gd-highlight-title { color: #7EE8FF; }
.gd-hl-warning {
  background: rgba(255, 209, 112, 0.08);
  border-color: rgba(255, 209, 112, 0.32);
  color: rgba(234, 246, 255, 0.88);
}
.gd-hl-warning .gd-highlight-title { color: #FFD170; }

/* NEXT ACTIONS */
.gd-next {
  background: rgba(79, 224, 138, 0.06);
  border: 1px solid rgba(79, 224, 138, 0.28);
  border-radius: 9px;
  padding: 10px 12px;
}
.gd-next-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.4px; font-weight: 800;
  color: #4FE08A;
  margin-bottom: 6px;
}
.gd-next-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.gd-next-list li {
  position: relative;
  padding-left: 14px;
  color: rgba(234, 246, 255, 0.85);
  font-size: 11.5px; line-height: 1.45;
}
.gd-next-list li::before {
  content: "→";
  position: absolute; left: 0;
  color: #4FE08A;
  font-family: 'JetBrains Mono', monospace;
}

/* FAQ */
.gd-faq { display: flex; flex-direction: column; gap: 6px; }
.gd-faq-item {
  background: rgba(10, 20, 36, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.1);
  border-radius: 9px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.gd-faq-item.open { border-color: rgba(79, 216, 255, 0.3); }
.gd-faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #EAF6FF;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.gd-faq-q:hover { background: rgba(79, 216, 255, 0.04); }
.gd-faq-caret {
  color: #7EE8FF;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.gd-faq-a {
  padding: 0 14px 12px;
  color: rgba(234, 246, 255, 0.7);
  font-size: 11.5px; line-height: 1.55;
  animation: gd-slide-in 0.18s ease-out;
}

/* FOOTNOTE */
.gd-footnote {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.3);
  padding: 14px 0 4px;
}

/* ============================================================================
   ALFRED  —  scoped to the ALFRED tab (#view-alfred).
   Operational butler: reads MissionState, no mutations, premium quiet feel.
============================================================================ */
.al-root {
  position: relative;
  flex: 1;
  display: flex;
  min-width: 0; min-height: 0;
  background: radial-gradient(ellipse at top, #0F2544 0%, #06101E 60%, #02060E 100%);
  color: #EAF6FF;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}
.al-bg-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.32;
  background-image:
    linear-gradient(rgba(79, 216, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 216, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.al-shell {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 16px 22px;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

/* HEADER */
.al-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.12);
}
.al-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 2.4px; color: #7EE8FF;
  font-weight: 700; text-transform: uppercase;
}
.al-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 0.3px; margin-top: 4px; }
.al-sub   { font-size: 11.5px; color: rgba(234, 246, 255, 0.55); margin-top: 3px; }
.al-mode-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.6px; font-weight: 800;
  color: rgba(126, 232, 255, 0.85);
  background: rgba(79, 216, 255, 0.08);
  border: 1px solid rgba(79, 216, 255, 0.32);
  padding: 5px 10px; border-radius: 999px;
  flex-shrink: 0;
}

/* STATUS LINE */
.al-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.6px;
  border: 1px solid;
  border-radius: 999px;
  width: fit-content;
}
.al-status-ok {
  color: rgba(79, 224, 138, 0.95);
  background: rgba(79, 224, 138, 0.06);
  border-color: rgba(79, 224, 138, 0.3);
}
.al-status-warn {
  color: rgba(255, 209, 112, 0.95);
  background: rgba(255, 209, 112, 0.06);
  border-color: rgba(255, 209, 112, 0.32);
}
.al-status-dot { font-size: 9px; }
.al-status-sep { color: rgba(255, 255, 255, 0.3); }

/* SNAPSHOT 5 cards */
.al-snapshot {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.al-snap-card {
  background: rgba(10, 20, 36, 0.6);
  border: 1px solid rgba(79, 216, 255, 0.15);
  border-radius: 11px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.al-snap-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.6px; font-weight: 700;
  color: rgba(126, 232, 255, 0.7);
  text-transform: uppercase;
}
.al-snap-lines { display: flex; flex-direction: column; gap: 2px; }
.al-snap-line {
  color: rgba(234, 246, 255, 0.85);
  font-size: 12px;
  line-height: 1.3;
}
.al-tone-info     { /* neutral cyan */ }
.al-tone-warning  { border-color: rgba(255, 209, 112, 0.4); box-shadow: 0 0 14px rgba(255, 209, 112, 0.06); }
.al-tone-warning  .al-snap-label { color: #FFD170; }
.al-tone-critical { border-color: rgba(255, 138, 122, 0.5); box-shadow: 0 0 16px rgba(255, 138, 122, 0.1); }
.al-tone-critical .al-snap-label { color: #FF8A7A; }

/* 3-column body */
.al-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.al-col {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(10, 20, 36, 0.5);
  border: 1px solid rgba(79, 216, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 0;
  overflow: hidden;
}
.al-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.1);
  flex-shrink: 0;
}
/* Internal scroll container: every direct child of .al-col except the
   sticky header. Keeps each panel's content inside its own frame. */
.al-col > .al-review-list,
.al-col > .al-caps,
.al-col > .al-recent,
.al-col > .al-review-empty,
.al-col > .al-recent-empty {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 216, 255, 0.25) transparent;
}
.al-col > .al-review-list::-webkit-scrollbar,
.al-col > .al-caps::-webkit-scrollbar,
.al-col > .al-recent::-webkit-scrollbar { width: 6px; }
.al-col > .al-review-list::-webkit-scrollbar-thumb,
.al-col > .al-caps::-webkit-scrollbar-thumb,
.al-col > .al-recent::-webkit-scrollbar-thumb {
  background: rgba(79, 216, 255, 0.22);
  border-radius: 3px;
}
.al-col > .al-caps { display: flex; flex-direction: column; }
.al-section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 2px; font-weight: 700;
  color: #7EE8FF;
}
.al-section-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: rgba(255, 255, 255, 0.4);
}

/* REVIEW QUEUE */
.al-review-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.al-review-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(79, 216, 255, 0.1);
  border-left: 3px solid transparent;
  border-radius: 9px;
}
.al-review-tone-critical { border-left-color: #FF8A7A; }
.al-review-tone-warning  { border-left-color: #FFD170; }
.al-review-tone-info     { border-left-color: rgba(126, 232, 255, 0.5); }
.al-review-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(79, 216, 255, 0.1);
  border: 1px solid rgba(79, 216, 255, 0.32);
  border-radius: 50%;
  color: #7EE8FF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 800;
}
.al-review-body { flex: 1; min-width: 0; }
.al-review-step-title {
  color: #EAF6FF; font-size: 12.5px; font-weight: 700; margin-bottom: 2px;
}
.al-review-step-detail {
  color: rgba(234, 246, 255, 0.6);
  font-size: 11px; line-height: 1.4;
}
.al-review-go {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1px; font-weight: 700;
  padding: 4px 10px;
  background: rgba(79, 216, 255, 0.06);
  border: 1px solid rgba(79, 216, 255, 0.28);
  border-radius: 6px;
  color: #7EE8FF;
  cursor: pointer;
  transition: all 0.15s;
}
.al-review-go:hover {
  background: rgba(79, 216, 255, 0.16);
  border-color: rgba(79, 216, 255, 0.6);
  color: #fff;
  box-shadow: 0 0 8px rgba(79, 216, 255, 0.22);
}
.al-review-empty {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px;
  background: rgba(79, 224, 138, 0.06);
  border: 1px solid rgba(79, 224, 138, 0.3);
  border-radius: 10px;
  color: rgba(234, 246, 255, 0.92);
  font-size: 12.5px; line-height: 1.45;
}
.al-review-empty-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(79, 224, 138, 0.18);
  border: 1px solid rgba(79, 224, 138, 0.5);
  border-radius: 50%;
  color: #4FE08A;
  font-weight: 800;
}

/* CAPABILITIES */
.al-caps-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.al-cap {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px;
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.08);
  border-radius: 8px;
}
.al-cap-mark {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 800;
}
.al-cap-mark-active {
  color: #4FE08A;
  background: rgba(79, 224, 138, 0.14);
  border: 1px solid rgba(79, 224, 138, 0.4);
}
.al-cap-mark-pending {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.al-cap-body { flex: 1; min-width: 0; }
.al-cap-name {
  display: flex; align-items: baseline; gap: 6px;
  color: #EAF6FF; font-size: 12px; font-weight: 700;
  margin-bottom: 2px;
}
.al-cap-line {
  color: rgba(234, 246, 255, 0.55);
  font-size: 11px; line-height: 1.4;
}
.al-cap-go {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  padding: 0 6px;
  background: transparent;
  border: 1px solid rgba(79, 216, 255, 0.25);
  border-radius: 4px;
  color: #7EE8FF;
  cursor: pointer;
  transition: all 0.15s;
}
.al-cap-go:hover {
  background: rgba(79, 216, 255, 0.14);
  border-color: rgba(79, 216, 255, 0.55);
  color: #fff;
}
.al-cap-pending { opacity: 0.7; }
.al-cap-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.8px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* RECENT CHANGES */
.al-recent {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.al-recent-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 10px;
  background: rgba(10, 22, 40, 0.45);
  border: 1px solid rgba(79, 216, 255, 0.06);
  border-radius: 7px;
}
.al-recent-time {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.4px;
  color: rgba(126, 232, 255, 0.55);
}
.al-recent-msg {
  color: rgba(234, 246, 255, 0.78);
  font-size: 11px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.al-recent-empty {
  padding: 12px 10px;
  font-size: 11px; font-style: italic;
  color: rgba(255, 255, 255, 0.4);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .al-shell { overflow-y: auto; overflow-x: hidden; }
  .al-cols {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
    overflow: visible;
  }
  .al-col { max-height: 60vh; }
  .al-snapshot { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .al-snapshot { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   CONTENT AGENT (Mission 2 · Fase 1) — pestaña CONTENIDO.
   Namespace: .cta-*  (renombrado desde .ca-* por colisión con Custom Agents)
   Aislado del resto del shell. Cero clases compartidas con base fija.
============================================================================ */

/* shell + scoped reset (box-sizing + button defaults) */
.cta-shell,
.cta-shell *,
.cta-shell *::before,
.cta-shell *::after { box-sizing: border-box; }

.cta-shell {
  display: flex; flex-direction: column;
  flex: 1; min-width: 0; min-height: 0;
  background:
    radial-gradient(ellipse at top right, rgba(79, 216, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(6, 14, 26, 0.96), rgba(4, 10, 20, 0.98));
  color: #eaf6ff;
  font-family: 'Inter', sans-serif;
  padding: 18px 22px 14px;
  gap: 14px;
  overflow: hidden;
}
.cta-shell button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.cta-shell textarea {
  font-family: inherit;
  margin: 0;
}

/* ---------- header ---------- */
.cta-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.12);
  flex-shrink: 0;
}
.cta-header-titlebox { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cta-header-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.8px;
  color: rgba(126, 232, 255, 0.55);
  text-transform: uppercase;
}
.cta-header-titlerow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  min-width: 0;
}
.cta-header-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: 1.4px;
  color: #eaf6ff;
  text-shadow: 0 0 14px rgba(79, 216, 255, 0.18);
}
.cta-header-phase {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(126, 232, 255, 0.82);
  padding: 4px 10px 4px 9px;
  border: 1px solid rgba(79, 216, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(79, 216, 255, 0.08), rgba(79, 216, 255, 0.03));
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
.cta-header-phase-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #7EE8FF;
  box-shadow: 0 0 6px rgba(126, 232, 255, 0.65);
}
.cta-header-sub {
  font-size: 11.5px; line-height: 1.4;
  color: rgba(234, 246, 255, 0.55);
}
.cta-header-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: rgba(234, 246, 255, 0.7);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.cta-header-led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4FE0A8;
  box-shadow: 0 0 8px rgba(79, 224, 168, 0.65);
}
.cta-header-status { color: #4FE0A8; letter-spacing: 0.6px; }
.cta-header-pipe   { color: rgba(255,255,255,0.18); }
.cta-header-count  { color: rgba(126, 232, 255, 0.78); letter-spacing: 0.4px; }

/* ---------- main grid ---------- */
.cta-main {
  display: grid;
  grid-template-columns: minmax(300px, 38%) 1fr;
  gap: 16px;
  flex: 1; min-height: 0;
  overflow: hidden;
}

.cta-section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.8px;
  color: rgba(126, 232, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* ---------- input column ---------- */
.cta-input-col {
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.12);
  border-radius: 10px;
  padding: 14px 14px 16px;
  overflow-y: auto;
  min-height: 0;
}

.cta-field { display: flex; flex-direction: column; gap: 6px; }
.cta-field-label {
  font-size: 11px; letter-spacing: 0.5px;
  color: rgba(234, 246, 255, 0.78);
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.cta-field-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
}
.cta-field-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.4px;
  color: rgba(126, 232, 255, 0.55);
}
.cta-field-counter--low { color: #ffb47e; }
.cta-field-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #ffb47e;
}

.cta-textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  background: rgba(2, 8, 18, 0.85);
  border: 1px solid rgba(79, 216, 255, 0.14);
  border-radius: 8px;
  padding: 11px 13px;
  color: #eaf6ff;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; line-height: 1.55;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.cta-textarea:focus {
  outline: none;
  border-color: rgba(79, 216, 255, 0.55);
  background: rgba(2, 8, 18, 0.95);
  box-shadow: 0 0 0 3px rgba(79, 216, 255, 0.08);
}
.cta-textarea::placeholder {
  color: rgba(234, 246, 255, 0.32);
  font-style: italic;
}

/* chip group */
.cta-chip-group {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cta-chip {
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid rgba(79, 216, 255, 0.16);
  color: rgba(234, 246, 255, 0.72);
  font-size: 11.5px; font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 140ms ease;
  letter-spacing: 0.2px;
}
.cta-chip:hover {
  border-color: rgba(79, 216, 255, 0.4);
  color: #eaf6ff;
  background: rgba(10, 22, 40, 0.9);
}
.cta-chip--active {
  background: rgba(79, 216, 255, 0.16);
  border-color: rgba(79, 216, 255, 0.65);
  color: #eaf6ff;
  box-shadow: 0 0 0 1px rgba(79, 216, 255, 0.18) inset;
}

/* generate button */
.cta-generate-btn {
  margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #FFB070, #FF8B40);
  color: #1a0f06;
  border: 1px solid rgba(255, 200, 140, 0.65);
  border-radius: 8px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px; letter-spacing: 1.6px; font-weight: 700;
  cursor: pointer;
  transition: filter 140ms ease, box-shadow 140ms ease, transform 80ms ease;
  box-shadow: 0 4px 14px rgba(255, 140, 60, 0.22);
  text-transform: uppercase;
}
.cta-generate-icon {
  font-size: 11px;
  transform: translateY(-0.5px);
}
.cta-generate-btn:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: 0 6px 22px rgba(255, 140, 60, 0.32);
}
.cta-generate-btn:active:not(:disabled) { transform: translateY(1px); }
.cta-generate-btn:disabled {
  background: rgba(60, 70, 85, 0.45);
  color: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  box-shadow: none;
}

.cta-error {
  background: rgba(255, 90, 90, 0.10);
  border: 1px solid rgba(255, 90, 90, 0.35);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 11.5px;
  color: #ffbcbc;
  line-height: 1.45;
}

/* ---------- output column ---------- */
.cta-output-col {
  display: flex; flex-direction: column;
  background: rgba(10, 22, 40, 0.4);
  border: 1px solid rgba(79, 216, 255, 0.10);
  border-radius: 10px;
  min-height: 0;
  overflow: hidden;
}
.cta-output-inner {
  display: flex; flex-direction: column; gap: 12px;
  flex: 1; min-height: 0;
  padding: 14px 16px 14px;
  overflow: hidden;
}
.cta-section-eyebrow--right { margin-bottom: 0; }

.cta-out-header {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.10);
  flex-shrink: 0;
}
.cta-out-headline {
  display: flex; align-items: baseline; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.8px;
  text-transform: uppercase;
}
.cta-out-fmt   { color: #7EE8FF; font-weight: 700; }
.cta-out-tone  { color: rgba(234, 246, 255, 0.72); }
.cta-out-sep   { color: rgba(255,255,255,0.2); }
.cta-out-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.4px;
  color: rgba(234, 246, 255, 0.4);
}

.cta-out-body {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 6px 4px 4px 0;
}

/* hook */
.cta-out-hook {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 18px;
  background:
    linear-gradient(180deg, rgba(79, 216, 255, 0.05), transparent),
    rgba(2, 8, 18, 0.7);
  border-left: 3px solid #7EE8FF;
  border-radius: 8px;
  box-shadow: inset 0 0 30px rgba(79, 216, 255, 0.04);
}
.cta-out-hook-line {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px; font-weight: 600; line-height: 1.3;
  color: #eaf6ff;
  letter-spacing: 0.2px;
}

/* caption */
.cta-out-caption {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px;
  background: rgba(2, 8, 18, 0.55);
  border: 1px solid rgba(79, 216, 255, 0.08);
  border-radius: 8px;
}
.cta-out-caption-p {
  margin: 0;
  font-size: 14px; line-height: 1.6;
  color: rgba(234, 246, 255, 0.92);
}

/* carousel */
.cta-out-carousel {
  display: flex; flex-direction: column; gap: 8px;
}
.cta-out-slide {
  background: rgba(2, 8, 18, 0.65);
  border: 1px solid rgba(79, 216, 255, 0.12);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color 120ms ease;
}
.cta-out-slide:hover {
  border-color: rgba(255, 165, 92, 0.35);
}
.cta-out-slide-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 5px;
}
.cta-out-slide-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  color: #FFA55C;
  flex-shrink: 0;
  min-width: 22px;
}
.cta-out-slide-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.3px;
  color: #eaf6ff;
}
.cta-out-slide-body {
  font-size: 12.5px; line-height: 1.5;
  color: rgba(234, 246, 255, 0.78);
  padding-left: 34px;
}

/* story */
.cta-out-story {
  display: flex; gap: 14px;
  padding: 16px 16px 16px 14px;
  background: rgba(2, 8, 18, 0.55);
  border: 1px solid rgba(183, 139, 255, 0.14);
  border-radius: 8px;
}
.cta-out-story-bar {
  width: 3px; flex-shrink: 0;
  background: linear-gradient(180deg, #B78BFF, rgba(183, 139, 255, 0.2));
  border-radius: 2px;
}
.cta-out-story-text {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 14.5px; line-height: 1.65;
  color: rgba(234, 246, 255, 0.92);
}

/* variant tabs */
.cta-variant-tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-top: 1px solid rgba(79, 216, 255, 0.10);
  padding-top: 8px;
  flex-shrink: 0;
}
.cta-vt {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(234, 246, 255, 0.55);
  font-size: 11.5px; font-weight: 500;
  padding: 7px 13px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 140ms ease;
  letter-spacing: 0.2px;
}
.cta-vt:hover { color: #eaf6ff; }
.cta-vt--active {
  color: #FFA55C;
  border-bottom-color: #FFA55C;
}
.cta-vt-dot {
  font-size: 7px;
  color: #4FE0A8;
}
.cta-vt--active .cta-vt-dot { color: #FFA55C; }

/* action row */
.cta-action-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  flex-shrink: 0;
}
.cta-action {
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid rgba(79, 216, 255, 0.18);
  color: #eaf6ff;
  font-size: 11.5px; font-weight: 500;
  padding: 8px 13px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 140ms ease;
  letter-spacing: 0.2px;
}
.cta-action:hover {
  border-color: rgba(79, 216, 255, 0.5);
  background: rgba(79, 216, 255, 0.10);
}
.cta-action--primary {
  background: rgba(79, 224, 168, 0.16);
  border-color: rgba(79, 224, 168, 0.5);
  color: #c4ffe6;
  font-weight: 600;
}
.cta-action--primary:hover {
  background: rgba(79, 224, 168, 0.26);
  border-color: rgba(79, 224, 168, 0.75);
}
.cta-notice {
  font-size: 11px;
  color: #4FE0A8;
  font-style: italic;
  letter-spacing: 0.2px;
}

/* empty state */
.cta-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  margin: auto;
  padding: 36px 28px;
  text-align: center;
  color: rgba(234, 246, 255, 0.55);
  max-width: 400px;
}
.cta-empty-icon {
  font-size: 38px;
  color: rgba(79, 216, 255, 0.35);
  margin-bottom: 4px;
  text-shadow: 0 0 24px rgba(79, 216, 255, 0.25);
}
.cta-empty-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.8px;
  color: rgba(126, 232, 255, 0.45);
  text-transform: uppercase;
}
.cta-empty-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 18px; font-weight: 600; letter-spacing: 0.4px;
  color: rgba(234, 246, 255, 0.85);
}
.cta-empty-hint {
  font-size: 13px; line-height: 1.55;
  color: rgba(234, 246, 255, 0.6);
  margin-top: 2px;
}
.cta-empty-hint strong { color: #FFA55C; font-weight: 600; }
.cta-empty-meta {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(126, 232, 255, 0.55);
  font-family: 'JetBrains Mono', monospace;
  display: flex; gap: 8px; justify-content: center;
}
.cta-empty-meta strong { color: #eaf6ff; font-weight: 600; }
.cta-empty-sep { color: rgba(255,255,255,0.2); }

/* ---------- drafts bar (bottom strip) ---------- */
.cta-drafts-bar {
  flex-shrink: 0;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(79, 216, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}
.cta-drafts-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  background: transparent;
  border: none;
  color: rgba(234, 246, 255, 0.78);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px; letter-spacing: 0.4px;
  text-align: left;
}
.cta-drafts-toggle:hover { color: #eaf6ff; background: rgba(79, 216, 255, 0.04); }
.cta-drafts-caret {
  font-size: 11px;
  color: rgba(126, 232, 255, 0.6);
  width: 12px; flex-shrink: 0;
}
.cta-drafts-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 1.6px;
  color: rgba(126, 232, 255, 0.78);
  text-transform: uppercase;
  flex: 1;
}
.cta-drafts-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  background: rgba(79, 216, 255, 0.14);
  color: #7EE8FF;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}
.cta-drafts-list {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 8px 14px 14px;
  border-top: 1px solid rgba(79, 216, 255, 0.08);
}
.cta-drafts-list::-webkit-scrollbar { height: 6px; }
.cta-drafts-list::-webkit-scrollbar-track { background: transparent; }
.cta-drafts-list::-webkit-scrollbar-thumb {
  background: rgba(79, 216, 255, 0.18);
  border-radius: 3px;
}
.cta-drafts-empty {
  font-style: italic;
  font-size: 12px;
  color: rgba(234, 246, 255, 0.45);
  padding: 4px 0 4px;
}
.cta-draft-card {
  flex-shrink: 0;
  width: 230px;
  text-align: left;
  background: rgba(2, 8, 18, 0.7);
  border: 1px solid rgba(79, 216, 255, 0.12);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  transition: all 140ms ease;
  color: #eaf6ff;
  display: flex; flex-direction: column; gap: 5px;
}
.cta-draft-card:hover {
  border-color: rgba(79, 216, 255, 0.45);
  background: rgba(2, 8, 18, 0.9);
  transform: translateY(-1px);
}
.cta-draft-meta {
  display: flex; align-items: baseline; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.5px;
  color: rgba(126, 232, 255, 0.68);
  text-transform: uppercase;
}
.cta-draft-fmt   { color: #7EE8FF; font-weight: 700; }
.cta-draft-tone  { color: rgba(234, 246, 255, 0.62); }
.cta-draft-dot   { color: rgba(255,255,255,0.22); }
.cta-draft-when  { margin-left: auto; color: rgba(234, 246, 255, 0.4); text-transform: lowercase; letter-spacing: 0.2px; }
.cta-draft-text {
  font-size: 11.5px; line-height: 1.45;
  color: rgba(234, 246, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cta-main { grid-template-columns: 1fr; }
  .cta-input-col { max-height: 380px; }
}
@media (max-width: 720px) {
  .cta-shell { padding: 14px 14px 12px; }
  .cta-header { flex-wrap: wrap; gap: 10px; }
  .cta-out-hook-line { font-size: 18px; }
}

