/* ═══════════════════════════════════════════
   APP SHELL & TOPBAR LAYOUT
   ═══════════════════════════════════════════ */
.app { display: flex; width: 100%; height: 100vh; opacity: 0; transition: opacity .5s; }
.app.visible { opacity: 1; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}
.topbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,170,.75), transparent);
  box-shadow: 0 0 14px rgba(0,212,170,.6);
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-title { font-size: 14px; font-weight: 600; color: var(--text); }
.topbar-badge {
  font-family: var(--mono); font-size: 10px;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 20px; padding: 2px 8px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.topbar-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 2px;
}
.topbar-status.generating { color: var(--accent); }
.topbar-right { display: flex; gap: 6px; }
.icon-btn {
  width: 32px; height: 32px; background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .15s;
}
.icon-btn:hover { background: var(--surface2); color: var(--text); }
