/* Travis OS — Command Interface Design System */
:root {
  /* Base palette: deep dark command environment */
  --bg-primary: #0c0f14;
  --bg-secondary: #141820;
  --bg-card: #181d27;
  --bg-card-hover: #1e2433;
  --bg-input: #111520;
  --bg-surface: #1a1f2b;

  /* Text hierarchy */
  --text-primary: #e8e6e1;
  --text-secondary: #9a9590;
  --text-muted: #7a756f;
  --text-accent: #b8965a;

  /* Accent: muted brass / antique gold */
  --accent: #b8965a;
  --accent-hover: #d4ad6a;
  --accent-dim: rgba(184, 150, 90, 0.12);
  --accent-border: rgba(184, 150, 90, 0.25);

  /* Borders */
  --border: #252a35;
  --border-strong: #333842;

  /* Semantic: restrained, not loud */
  --status-critical: #c0392b;
  --status-warning: #b8965a;
  --status-success: #5a8a5c;
  --status-info: #5a7a8a;
  --status-waiting: #7a6a9a;
  --status-muted: #4a4a4a;

  /* Urgency: serious, not alarming */
  --urgency-critical: #c0392b;
  --urgency-high: #b8965a;
  --urgency-medium: #5a7a8a;
  --urgency-low: #4a5060;
  --urgency-none: #333842;

  /* Business tag colors: bright enough to read on dark backgrounds */
  --biz-sentinel_room: #a090c8;
  --biz-marinello: #b090b0;
  --biz-cocktail_co: #c090a0;
  --biz-ice_foundry: #70b0c8;
  --biz-trekka: #70a0c0;
  --biz-starfleet: #c8a860;
  --biz-kc_getaway: #7ab8a0;
  --biz-real_estate: #70b878;
  --biz-beacon_point: #c07070;
  --biz-personal: #989898;
  --biz-unassigned: #787878;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 56px;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ===== App Shell ===== */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

/* Desktop: add side padding so content doesn't hit edges on wide screens */
@media (min-width: 768px) {
  .screen-content { padding-left: var(--space-xl); padding-right: var(--space-xl); }
  .decision-card { max-width: 900px; }
  .command-module { max-width: 900px; }
  .detail-header { max-width: 900px; }
  .action-bar-grid { max-width: 900px; }
}

@media (min-width: 1200px) {
  .screen-content { padding-left: 10%; padding-right: 10%; }
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  min-height: 48px;
  flex-shrink: 0;
}

@supports (padding-top: env(safe-area-inset-top)) {
  .app-header {
    padding-top: calc(var(--space-md) + env(safe-area-inset-top));
  }
}

.app-header h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.header-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Screen Content */
.screen-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
  z-index: 100;
  height: calc(var(--nav-height) + var(--safe-bottom));
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  min-width: 48px;
}

.nav-item.active {
  color: var(--accent);
  box-shadow: inset 0 2px 0 var(--accent);
}
.nav-item svg { width: 20px; height: 20px; margin-bottom: 2px; }

.nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  background: var(--urgency-critical);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ===== Cards ===== */
.decision-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.decision-card:active { background: var(--bg-card-hover); }

.decision-card.overdue {
  border-left: 2px solid var(--urgency-critical);
}

/* Urgency left accent — scan priority at a glance */
.decision-card.urgency-critical {
  border-left: 3px solid var(--urgency-critical);
  background: rgba(192, 57, 43, 0.04);
}
.decision-card.urgency-high {
  border-left: 2px solid var(--urgency-high);
}

/* Desktop hover — feels alive on mouse/keyboard */
@media (hover: hover) {
  .decision-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  }
  .decision-card.urgency-critical:hover {
    background: rgba(192, 57, 43, 0.07);
  }
}

.decision-card.email-read {
  opacity: 0.65;
  border-color: transparent;
}

#refresh-btn.refreshing svg {
  animation: spin 0.8s linear infinite;
}

.card-top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
}

.biz-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.urgency-dot.critical { background: var(--urgency-critical); animation: pulse 2.5s infinite; }
.urgency-dot.high { background: var(--urgency-high); }
.urgency-dot.medium { background: var(--urgency-medium); }
.urgency-dot.low { background: var(--urgency-low); }
.urgency-dot.none { background: var(--urgency-none); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.card-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.card-time.overdue { color: var(--urgency-critical); font-weight: 600; }

.card-summary {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
  word-break: break-word;
}

.card-action {
  font-size: 12px;
  color: var(--text-secondary);
}

.card-action::before {
  content: '\2192 ';
  color: var(--accent);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.pending { background: rgba(184,150,90,0.12); color: var(--status-warning); }
.status-pill.in_progress { background: rgba(90,122,138,0.15); color: var(--status-info); }
.status-pill.waiting { background: rgba(122,106,154,0.15); color: var(--status-waiting); }
.status-pill.resolved { background: rgba(90,138,92,0.12); color: var(--status-success); }

/* ===== Section Headers ===== */
.section-header {
  padding: var(--space-xl) var(--space-lg) var(--space-xs);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ===== Filters ===== */
.filter-bar {
  display: flex;
  gap: 6px;
  padding: var(--space-md) var(--space-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
  -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, black 90%, transparent 100%);
  padding-right: var(--space-xl);
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s;
}

.filter-chip.active {
  background: rgba(184, 150, 90, 0.18);
  border-color: rgba(184, 150, 90, 0.4);
  color: var(--accent);
}

@media (hover: hover) {
  .filter-chip:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
  }
  .filter-chip.active:hover {
    background: rgba(184, 150, 90, 0.24);
  }
}

/* ===== Search ===== */
.search-bar {
  padding: var(--space-sm) var(--space-lg);
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  font-size: 16px; /* prevent iOS zoom */
}

.search-input:focus { border-color: var(--accent-border); }
.search-input::placeholder { color: var(--text-muted); }

.search-wrapper { position: relative; }

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

/* ===== Detail Screen ===== */
.detail-header {
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.detail-back {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: var(--space-md);
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.detail-summary {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-md);
  word-break: break-word;
}

.detail-meta-row {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

@media (max-width: 420px) {
  .detail-meta-row {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

.detail-meta-item {
  font-size: 12px;
  color: var(--text-secondary);
}

.detail-meta-item strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ===== Action Buttons ===== */
.action-bar {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-lg);
  flex-wrap: wrap;
}

@media (max-width: 400px) {
  .action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.action-btn {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s, background 0.15s;
  text-align: center;
  letter-spacing: 0.01em;
}

.action-btn:active { opacity: 0.7; }

@media (hover: hover) {
  .action-btn.primary:hover { background: var(--accent-hover); }
  .action-btn.secondary:hover { background: var(--bg-surface); }
  .action-btn.danger:hover { background: rgba(192,57,43,0.18); }
  .action-btn.tertiary:hover { background: var(--bg-input); opacity: 1; }
}

.action-btn.primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.action-btn.secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.action-btn.danger {
  background: rgba(192,57,43,0.1);
  color: var(--urgency-critical);
  border: 1px solid rgba(192,57,43,0.25);
}

.action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Approval badge */
.approval-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--urgency-critical);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== Timeline ===== */
/* Detail action grid: 3-col mobile, full-width desktop */
.detail-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.detail-actions-grid .action-btn {
  flex: none;
  width: 100%;
  padding: 12px 8px;
  font-size: 12px;
  min-height: 44px;
}

@media (min-width: 500px) {
  .detail-actions-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

.timeline { padding: var(--space-lg); }

.timeline-item {
  display: flex;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-content { flex: 1; }

.timeline-text {
  font-size: 12px;
  color: var(--text-primary);
}

.timeline-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== Login Screen ===== */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--space-xl) var(--space-lg);
}

.login-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: var(--space-xs);
}

.login-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  font-size: 13px;
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

.login-form {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.login-form input {
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 16px; /* prevent iOS zoom */
  outline: none;
  transition: border-color 0.15s;
}

.login-form input:focus { border-color: var(--accent-border); }

.login-btn {
  padding: 12px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: var(--space-sm);
  transition: background 0.15s;
}

@media (hover: hover) {
  .login-btn:hover { background: var(--accent-hover); }
}

.login-error {
  color: var(--urgency-critical);
  font-size: 12px;
  text-align: center;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-muted);
}

.empty-state svg { width: 48px; height: 48px; margin-bottom: var(--space-md); opacity: 0.3; }
.empty-state p { font-size: 13px; }

/* ===== Loading ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Business Tag Colors (brightened for readability) ===== */
.biz-sentinel_room { background: rgba(142,126,174,0.22); color: #a090c8; }
.biz-marinello { background: rgba(158,126,158,0.22); color: #b090b0; }
.biz-cocktail_co { background: rgba(174,126,142,0.22); color: #c090a0; }
.biz-ice_foundry { background: rgba(90,158,174,0.22); color: #70b0c8; }
.biz-trekka { background: rgba(90,142,168,0.22); color: #70a0c0; }
.biz-starfleet { background: rgba(168,148,90,0.22); color: #c8a860; }
.biz-kc_getaway { background: rgba(90,158,138,0.22); color: #7ab8a0; }
.biz-real_estate { background: rgba(90,158,102,0.22); color: #70b878; }
.biz-beacon_point { background: rgba(174,100,100,0.22); color: #c07070; }
.biz-personal { background: rgba(130,130,130,0.22); color: #989898; }
.biz-new_venture { background: rgba(90,174,140,0.2); color: #5ab88c; }
.biz-unassigned { background: rgba(100,100,100,0.22); color: #787878; }

/* ===== Capture Screen ===== */
.capture-form {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 16px; /* prevent iOS zoom */
  font-family: inherit;
  outline: none;
}

.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent-border); }

.form-group textarea { min-height: 120px; resize: vertical; }

.capture-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

@media (max-width: 340px) {
  .capture-type-grid { grid-template-columns: repeat(2, 1fr); }
}

.capture-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.15s;
}

.capture-type-btn.active {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

.capture-type-btn svg { width: 22px; height: 22px; }

/* ===== Command Modules ===== */
.command-module {
  margin: var(--space-sm) var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.command-module-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.command-stat {
  text-align: center;
}

.command-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.command-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Touch Optimization ===== */
/* On touch devices, suppress hover states that would otherwise persist after tap */
@media (hover: none) {
  .decision-card:hover { background: var(--bg-card); box-shadow: 0 1px 4px rgba(0,0,0,0.25); border-color: var(--border); }
  .decision-card.urgency-critical:hover { background: rgba(192, 57, 43, 0.04); }
  .filter-chip:hover { background: transparent; border-color: var(--border); color: var(--text-secondary); }
  .filter-chip.active:hover { background: rgba(184, 150, 90, 0.18); }
}

/* Prevent horizontal overflow */
body, #app, .screen-content {
  overflow-x: hidden;
}

/* ===== Focus & Keyboard Accessibility ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.action-btn:focus-visible,
.filter-chip:focus-visible,
.nav-item:focus-visible,
.decision-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 8px 16px;
  z-index: 200;
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus { top: 0; }

/* Issue detail: Next Move block */
.next-move-block {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.next-move-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.next-move-action {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Issue detail: current state line */
.current-state {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

.current-state strong {
  color: var(--text-muted);
  font-weight: 500;
}

/* Action button: completion (lowest emphasis) */
.action-btn.tertiary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  opacity: 0.8;
}

/* ===== Action Bar Grid: 2x2 default on detail ===== */
.action-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.action-bar-grid .action-btn {
  flex: none;
  width: 100%;
}

/* ===== Utility ===== */
@media (max-width: 360px) {
  .card-time {
    margin-left: 0;
    width: 100%;
    margin-top: 2px;
  }
}

/* ===== Aiden Avatar Animations ===== */
@keyframes aiden-breathe {
  0%, 100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 3px rgba(184, 152, 96, 0.15));
  }
  50% {
    transform: scale(1.06) translateY(-1px);
    filter: drop-shadow(0 0 10px rgba(184, 152, 96, 0.55)) drop-shadow(0 0 20px rgba(184, 152, 96, 0.2));
  }
}

@keyframes aiden-think {
  0%, 100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 6px rgba(184, 152, 96, 0.4));
  }
  25% {
    transform: scale(1.1) translateY(-3px);
    filter: drop-shadow(0 0 18px rgba(184, 152, 96, 0.85)) drop-shadow(0 0 32px rgba(184, 152, 96, 0.3));
  }
  75% {
    transform: scale(1.05) translateY(-1px);
    filter: drop-shadow(0 0 12px rgba(184, 152, 96, 0.6));
  }
}

@keyframes aiden-ring {
  0%   { box-shadow: 0 0 0 0 rgba(184, 152, 96, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(184, 152, 96, 0); }
  100% { box-shadow: 0 0 0 0  rgba(184, 152, 96, 0); }
}

/* Idle — slow breathing glow */
.aiden-alive {
  animation: aiden-breathe 3.8s ease-in-out infinite, aiden-ring 3.8s ease-out infinite;
  border-radius: 50%;
  will-change: transform, filter;
}

/* Active — faster pulse while Aiden is thinking */
.aiden-thinking {
  animation: aiden-think 1.1s ease-in-out infinite;
  border-radius: 50%;
  will-change: transform, filter;
}

/* Nav tab avatar */
.aiden-nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1px;
  animation: aiden-breathe 3.8s ease-in-out infinite;
  will-change: transform, filter;
}
