/* demo.css — styles for A3 client demo mode (May 2026)
   Only loaded when ?demo=true. Scoped under .demo-* classes. */


/* ===================================================================
   INTRO / OUTRO — fullscreen black
   =================================================================== */

.demo-intro {
  position: fixed; inset: 0;
  z-index: 9000;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer;
  user-select: none;
}

.demo-intro__line {
  color: #fff;
  font-family: var(--a3-font-sans, 'Inter', sans-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  line-height: 1.6;
  text-align: center;
}

.demo-intro__line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-intro__line--stat {
  font-family: var(--a3-font-mono, 'JetBrains Mono', monospace);
  font-size: 56px;
  font-weight: 500;
  color: var(--a3-cobalt, #3155FF);
  margin-bottom: 8px;
}

.demo-intro__line--sub {
  font-size: 20px;
  color: #888;
  margin-top: 4px;
}

.demo-intro__mark {
  margin-bottom: 24px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.demo-intro__mark.is-visible {
  opacity: 1;
  transform: scale(1);
}

.demo-intro__line--wordmark {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-intro__logo {
  margin-top: 48px;
  opacity: 0;
  transition: opacity 1s ease 0.4s;
}

.demo-intro__logo.is-visible {
  opacity: 1;
}

.demo-intro__logo-text {
  font-family: var(--a3-font-sans, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.08em;
}

.demo-intro__url {
  font-family: var(--a3-font-mono, 'JetBrains Mono', monospace);
  font-size: 14px;
  color: #444;
  margin-top: 12px;
}


/* ===================================================================
   TEAMS CHAT MOCKUP — New Teams 2024, macOS faithful replica
   CSS prefix: teams__
   =================================================================== */

/* Outer shell: fixed fullscreen, stacks titlebar + body */
.teams__shell {
  position: fixed; inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: #242424;
  background: #fff;
  user-select: none;
}

/* ── macOS Title Bar ──────────────────────────────────────────────── */

.teams__titlebar {
  height: 32px;
  background: #2B2B2B;
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
  position: relative;
}

.teams__titlebar-traffic {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.teams__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.teams__dot--close    { background: #FF5F57; }
.teams__dot--minimize { background: #FFBD2E; }
.teams__dot--maximize { background: #28CA41; }

.teams__titlebar-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #9E9E9E;
  letter-spacing: 0.01em;
  pointer-events: none;
}

/* ── Body row: rail + list + main ─────────────────────────────────── */

.teams__body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ── Activity Rail ────────────────────────────────────────────────── */

.teams__rail {
  width: 48px;
  background: #292929;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  gap: 2px;
  flex-shrink: 0;
}

.teams__rail-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9E9E9E;
  cursor: default;
}

.teams__rail-item.is-active {
  color: #fff;
}

.teams__rail-accent {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: #5B5FC7;
  border-radius: 0 2px 2px 0;
}

/* ── Chat List ────────────────────────────────────────────────────── */

.teams__list {
  width: 280px;
  background: #fff;
  border-right: 1px solid #E8E8E8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.teams__list-header {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid #F0F0F0;
  flex-shrink: 0;
}

.teams__list-title {
  font-size: 18px;
  font-weight: 600;
  color: #242424;
  flex: 1;
}

.teams__list-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.teams__list-search {
  margin: 8px 10px;
  height: 30px;
  background: #F0F0F0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 7px;
  flex-shrink: 0;
}

.teams__list-search-icon { color: #888; display: flex; align-items: center; }

.teams__list-search-placeholder {
  font-size: 12px;
  color: #8A8A8A;
}

.teams__list-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 10px;
  cursor: default;
  border-bottom: 1px solid #F5F5F5;
  flex-shrink: 0;
}

.teams__list-item.is-active {
  background: #E8ECFA;
}

.teams__list-item-body {
  flex: 1;
  min-width: 0;
}

.teams__list-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}

.teams__list-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #242424;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams__list-item-time {
  font-size: 11px;
  color: #888;
  flex-shrink: 0;
}

.teams__list-item-preview {
  font-size: 12px;
  color: #8A8A8A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* ── Avatar ───────────────────────────────────────────────────────── */

.teams__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.teams__avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.teams__status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* ── Main chat pane ───────────────────────────────────────────────── */

.teams__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #F5F5F5;
}

/* ── Chat Header ──────────────────────────────────────────────────── */

.teams__chat-header {
  height: 52px;
  background: #fff;
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.teams__chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teams__chat-header-info {
  display: flex;
  flex-direction: column;
}

.teams__chat-header-name {
  font-size: 14px;
  font-weight: 600;
  color: #242424;
  line-height: 1.2;
}

.teams__chat-header-status {
  font-size: 11px;
  color: #6BB700;
  line-height: 1.2;
}

.teams__chat-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ── Shared icon button ───────────────────────────────────────────── */

.teams__icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #424242;
  cursor: default;
  padding: 0;
}

.teams__icon-btn:hover {
  background: #F0F0F0;
}

/* ── Message area ─────────────────────────────────────────────────── */

.teams__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teams__msg-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.teams__msg-group--right {
  flex-direction: row-reverse;
}

.teams__msg-avatar-col {
  flex-shrink: 0;
  padding-top: 18px;
}

.teams__msg-content {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}

.teams__msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  padding-left: 2px;
}

.teams__msg-meta--right {
  flex-direction: row-reverse;
  padding-left: 0;
  padding-right: 2px;
}

.teams__msg-sender {
  font-size: 12px;
  font-weight: 600;
  color: #242424;
}

.teams__msg-time {
  font-size: 11px;
  color: #8A8A8A;
}

.teams__bubble {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.teams__bubble--received {
  background: #fff;
  color: #242424;
  border: 1px solid #E8E8E8;
  border-top-left-radius: 2px;
}

.teams__bubble--sent {
  background: #E8EBFA;
  color: #242424;
  border-top-right-radius: 2px;
  align-self: flex-end;
}

.teams__bubble-cursor {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #242424;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: teams-blink 1s step-end infinite;
}

@keyframes teams-blink {
  50% { opacity: 0; }
}

/* ── Typing indicator ─────────────────────────────────────────────── */

.teams__typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 2px;
}

.teams__typing-bubble {
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  border-top-left-radius: 2px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.teams__typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8A8A8A;
  animation: teams-dot-bounce 1.2s ease-in-out infinite;
}

.teams__typing-dot:nth-child(2) { animation-delay: 0.2s; }
.teams__typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes teams-dot-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40%           { opacity: 1;   transform: translateY(-3px); }
}

.teams__typing-label {
  font-size: 11px;
  color: #8A8A8A;
}

/* ── A3 link inside chat bubble ─────────────────────────────────── */

.teams__a3-link {
  color: #5B5FC7;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
  display: inline;
}

.teams__a3-link:hover {
  color: #4447A8;
}

/* ── Compose box ──────────────────────────────────────────────────── */

.teams__compose {
  margin: 0 20px 16px;
  background: #fff;
  border: 1px solid #D0D0D0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  flex-shrink: 0;
}

.teams__compose:hover {
  border-color: #B0B0B0;
}

.teams__compose--used {
  cursor: default;
}

.teams__compose-toolbar {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 6px 10px 0;
  border-bottom: 1px solid #F0F0F0;
  padding-bottom: 6px;
}

.teams__format-btn {
  width: 26px;
  height: 24px;
  border: none;
  background: transparent;
  border-radius: 3px;
  font-size: 12px;
  color: #424242;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 0;
  font-family: inherit;
}

.teams__format-btn:hover { background: #F0F0F0; }

.teams__format-btn--italic  em  { font-style: italic; }
.teams__format-btn--underline u { text-decoration: underline; }
.teams__format-btn--strike   s  { text-decoration: line-through; }

.teams__compose-sep {
  width: 1px;
  height: 16px;
  background: #D8D8D8;
  margin: 0 4px;
  flex-shrink: 0;
}

.teams__compose-input-row {
  padding: 10px 14px 6px;
  min-height: 38px;
}

.teams__compose-input {
  font-size: 13px;
  color: #242424;
  min-height: 20px;
  line-height: 1.4;
}

.teams__compose-placeholder {
  color: #9E9E9E;
}

.teams__compose-text {
  color: #242424;
}

.teams__compose-cursor {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #242424;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: teams-blink 1s step-end infinite;
}

.teams__compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 8px;
}

.teams__compose-footer-left {
  display: flex;
  align-items: center;
  gap: 2px;
}

.teams__compose-icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #424242;
  cursor: default;
  padding: 0;
}

.teams__compose-icon-btn:hover { background: #F0F0F0; }

.teams__compose-send {
  width: 30px;
  height: 30px;
  border: none;
  background: #5B5FC7;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 0;
}

.teams__compose-send:hover { background: #4447A8; }


/* ===================================================================
   BLOCKER CARD — amber overlay on bereich view
   =================================================================== */

.demo-blocker {
  background: #fffbf0;
  border: 2px solid #d4a017;
  border-radius: 6px;
  padding: 20px 24px;
  margin: 16px 0;
}

.demo-blocker__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff3cd;
  color: #8a6d00;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.demo-blocker__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--a3-text-primary, #0F1523);
  margin-bottom: 14px;
}

.demo-blocker__row {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}

.demo-blocker__label {
  color: var(--a3-text-secondary, #5A6480);
  min-width: 130px;
}

.demo-blocker__value {
  font-family: var(--a3-font-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  color: var(--a3-text-primary, #0F1523);
}

.demo-blocker__diff {
  font-family: var(--a3-font-mono, 'JetBrains Mono', monospace);
  font-size: 15px;
  font-weight: 500;
  color: #c82020;
  margin: 10px 0;
}

.demo-blocker__cause {
  font-size: 13px;
  color: var(--a3-text-secondary, #5A6480);
  line-height: 1.5;
  margin: 12px 0;
  padding: 10px 12px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e8e0c8;
}

.demo-blocker__action {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--a3-cobalt, #3155FF);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.demo-blocker__action:hover { background: var(--a3-cobalt-hover, #2542CF); }


/* ===================================================================
   SPREADSHEET MODAL
   =================================================================== */

.demo-spreadsheet {
  position: fixed; inset: 0;
  z-index: 9100;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  cursor: default;
}

.demo-spreadsheet__card {
  width: 92vw;
  max-width: 1200px;
  max-height: 88vh;
  background: #fff;
  border-radius: 6px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.demo-spreadsheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
}

.demo-spreadsheet__title {
  font-family: var(--a3-font-sans, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--a3-text-primary, #0F1523);
}

.demo-spreadsheet__close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none;
  font-size: 18px; color: #666;
  cursor: pointer; border-radius: 4px;
}
.demo-spreadsheet__close:hover { background: #eee; }

.demo-spreadsheet__body {
  overflow: auto;
  flex: 1;
}

.demo-spreadsheet__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--a3-font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
}

.demo-spreadsheet__table th {
  position: sticky; top: 0;
  background: #f5f5f5;
  border-bottom: 2px solid #d0d0d0;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  text-align: right;
  white-space: nowrap;
  z-index: 1;
}

.demo-spreadsheet__table th:nth-child(1),
.demo-spreadsheet__table th:nth-child(2) {
  text-align: left;
}

.demo-spreadsheet__table td {
  padding: 6px 12px;
  border-bottom: 1px solid #f0f0f0;
  text-align: right;
  color: #333;
  white-space: nowrap;
}

.demo-spreadsheet__table td:nth-child(1) {
  text-align: center;
  color: #888;
  font-size: 11px;
  width: 36px;
}

.demo-spreadsheet__table td:nth-child(2) {
  text-align: left;
  font-family: var(--a3-font-sans, 'Inter', sans-serif);
  font-size: 13px;
  color: #333;
  min-width: 220px;
}

.demo-spreadsheet__table tr.is-highlight {
  background: #fff8e1;
}

.demo-spreadsheet__table tr.is-highlight td {
  border-bottom-color: #e8d98a;
}

.demo-spreadsheet__table tr.is-total {
  font-weight: 500;
  border-top: 2px solid #333;
}

.demo-spreadsheet__table tr.is-total td {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: none;
  color: #111;
}

/* Agent annotation callout */
.demo-spreadsheet__annotation {
  margin: 0 20px 20px;
  padding: 14px 16px;
  background: #edf1ff;
  border: 1px solid var(--a3-cobalt-ring, rgba(26, 79, 204, 0.2));
  border-left: 3px solid var(--a3-cobalt, #3155FF);
  border-radius: 4px;
  display: flex; align-items: flex-start; gap: 10px;
}

.demo-spreadsheet__annotation-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--a3-cobalt, #3155FF);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.demo-spreadsheet__annotation-text {
  font-family: var(--a3-font-sans, 'Inter', sans-serif);
  font-size: 13px;
  line-height: 1.55;
  color: #333;
}

.demo-spreadsheet__annotation-text strong {
  font-weight: 500;
}


/* ===================================================================
   EMAIL OVERLAY
   =================================================================== */

.demo-email {
  position: fixed; inset: 0;
  z-index: 9100;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
}

.demo-email__card {
  width: 640px;
  max-height: 88vh;
  background: #fff;
  border-radius: 6px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.demo-email__head {
  padding: 16px 24px;
  border-bottom: 1px solid #e8e8e8;
}

.demo-email__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--a3-text-primary, #0F1523);
  margin-bottom: 4px;
}

.demo-email__meta {
  font-size: 12px;
  color: var(--a3-text-secondary, #5A6480);
}

.demo-email__fields {
  padding: 12px 24px;
  display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.demo-email__field {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}

.demo-email__field-label {
  color: var(--a3-text-secondary, #5A6480);
  min-width: 60px;
  font-weight: 500;
}

.demo-email__field-value {
  color: var(--a3-text-primary, #0F1523);
  padding: 6px 10px;
  background: #f8f9fb;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  flex: 1;
}

.demo-email__body {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  overflow-y: auto;
  flex: 1;
  white-space: pre-wrap;
}

.demo-email__footer {
  padding: 14px 24px;
  border-top: 1px solid #e8e8e8;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  background: #fafafa;
}

.demo-email__btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.demo-email__btn--ghost {
  background: none;
  color: var(--a3-text-secondary, #5A6480);
  border: 1px solid #d0d0d0;
}

.demo-email__btn--primary {
  background: var(--a3-cobalt, #3155FF);
  color: #fff;
}
.demo-email__btn--primary:hover {
  background: var(--a3-cobalt-hover, #2542CF);
}


/* ===================================================================
   DEMO WRAPPER — fullscreen container for DemoFlow
   =================================================================== */

.demo-wrap {
  position: fixed; inset: 0;
  z-index: 8000;
  background: var(--a3-canvas, #EEF2FC);
}

/* When DemoFlow embeds the Control Room shell for scenes 4/5/8 */
.demo-wrap .shell {
  position: absolute; inset: 0;
}


/* ===================================================================
   FADE TRANSITION
   =================================================================== */

.demo-fade {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-fade.is-active {
  opacity: 1;
  transform: scale(1);
}


/* ===================================================================
   SCENE 8 — agent resumes animation
   =================================================================== */

.demo-resume-flash {
  animation: demo-resume-pulse 0.6s ease;
}

@keyframes demo-resume-pulse {
  0% { background-color: #edf1ff; }
  100% { background-color: transparent; }
}


/* ===================================================================
   BLOCKER CARD ENTRANCE — slide up (Scene 5)
   =================================================================== */

@keyframes blocker-enter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo-fade.is-active .demo-blocker {
  animation: blocker-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}


/* ===================================================================
   MODAL ENTRANCE — scale up (Scenes 6-7)
   =================================================================== */

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.demo-spreadsheet__card,
.demo-email__card {
  animation: modal-enter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}


/* ===================================================================
   BACKDROP ENTRANCE — smooth fade (not instant)
   =================================================================== */

@keyframes backdrop-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.demo-spreadsheet,
.demo-email {
  animation: backdrop-enter 0.35s ease both;
}


/* ===================================================================
   AGENT RESUME TOAST — slide in from bottom-right (Scene 8)
   =================================================================== */

.demo-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid var(--a3-cobalt, #3155FF);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-family: var(--a3-font-sans, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--a3-text-primary, #0F1523);
  animation: toast-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.demo-toast__icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6BB700;
  flex-shrink: 0;
  animation: toast-pulse 1.5s ease-in-out infinite;
}

@keyframes toast-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
