/**
 * @file src/public/styles.css
 * @description Clean, accessible, responsive stylesheet for LIDIA Instructional Design Studio.
 */

:root {
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-dark: #0f172a;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #cbd5e1;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --accent: #0284c7;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;
  --purple: #6d28d9;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hidden {
  display: none !important;
}

/* ============================================================================
   TOP HEADER BAR
   ============================================================================ */
.topbar {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* In a narrow window the controls move to a new row rather than being cut off. */
  gap: 0.5rem 1rem;
  border-bottom: 2px solid #1e293b;
  flex-shrink: 0;
}

.topbar-left,
.topbar-center,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  font-size: 0.9rem;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
  /* Two tidy lines. Without a set width, the full name is squeezed into a tall, narrow column. */
  width: 12.5rem;
  line-height: 1.2;
  flex: none;
}

.project-picker-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.5rem;
}

.phase-pill {
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #334155;
  white-space: nowrap;
}

.progress-track {
  width: 120px;
  height: 8px;
  background: #334155;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #38bdf8;
  transition: width 0.25s ease;
}

.progress-pct {
  font-size: 0.78rem;
  color: #cbd5e1;
  min-width: 2.2rem;
}

.token-pill {
  background: #1e293b;
  color: #93c5fd;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.run-controls {
  display: flex;
  gap: 0.35rem;
}

/* ============================================================================
   BUTTONS & INPUT CONTROLS
   ============================================================================ */
.btn {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

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

.btn-sm {
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}
.btn-secondary:hover:not(:disabled) {
  background: #cbd5e1;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-warning {
  background: var(--warning);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: rgba(148, 163, 184, 0.4);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.15);
}

.btn-verbose {
  background: #334155;
  color: #e2e8f0;
  border: 1px solid #475569;
}
.btn-verbose.active {
  background: #15803d;
  color: #ffffff;
  border-color: #22c55e;
}

.select-control,
input[type="text"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
  color: var(--text-main);
}

.topbar .select-control {
  background: #1e293b;
  color: #fff;
  border-color: #475569;
  min-width: 210px;
}

.input-xs {
  width: 65px;
  padding: 0.25rem 0.4rem;
}

.input-sm {
  padding: 0.28rem 0.5rem;
  font-size: 0.82rem;
}

.flex-1 {
  flex: 1;
}

/* ============================================================================
   MAIN TWO-PANE WORKSPACE
   ============================================================================ */
.workspace-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  overflow: hidden;
}

.pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pane-header {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pane-header h2 {
  margin: 0;
  font-size: 0.98rem;
}

.muted-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================================================
   BANNERS (PLAN, YELLOW DELIVERABLE APPROVAL, REMEMBER, SKILL)
   ============================================================================ */
.banners-stack {
  display: flex;
  flex-direction: column;
}

.banner {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.banner-blue {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
}

.banner-yellow {
  background: #fef9c3;
  border-left: 5px solid #eab308;
}

.banner-purple {
  background: #f5f3ff;
  border-left: 4px solid var(--purple);
}

.banner-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.banner-desc {
  margin: 0.25rem 0;
  color: #1e293b;
}

.deliv-controls-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.banner-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.code-badge {
  background: rgba(15, 23, 42, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.76rem;
}

/* ============================================================================
   CHAT STREAM & COMPOSER
   ============================================================================ */
.chat-stream {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
}

.chat-bubble {
  max-width: 92%;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.chat-bubble.system {
  align-self: center;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
}

.bubble-meta {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.chat-composer {
  padding: 0.65rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-composer textarea {
  width: 100%;
  resize: none;
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.composer-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ============================================================================
   RIGHT PANE TABS
   ============================================================================ */
.tabs-nav {
  display: flex;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  flex-shrink: 0;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #ffffff;
}

.tab-panel {
  display: none;
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.85rem;
}

.tab-panel.active {
  display: flex;
}

.panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.6rem;
}

.panel-toolbar h3 {
  margin: 0;
  font-size: 1rem;
}

.toolbar-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================================
   CHECKLIST, DOCUMENT PARTS, TABLES, FILES, AND LOGS
   ============================================================================ */
.checklist-container,
.parts-list,
.quiz-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.task-card,
.part-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 0.95rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.task-card-header,
.part-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.status-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.status-tag.done,
.status-tag.approved,
.status-tag.settled {
  background: #dcfce7;
  color: #166534;
}
.status-tag.running,
.status-tag.open {
  background: #dbeafe;
  color: #1e40af;
}
.status-tag.pending,
.status-tag.draft {
  background: #f1f5f9;
  color: #475569;
}
.status-tag.blocked,
.status-tag.rejected,
.status-tag.changes_requested {
  background: #fee2e2;
  color: #991b1b;
}

.code-textarea {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.83rem;
  line-height: 1.5;
  background: #f8fafc;
}

.files-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0.85rem;
  flex: 1;
  min-height: 360px;
}

.files-sidebar {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.65rem;
  overflow-y: auto;
  background: var(--bg-subtle);
}

.files-sidebar h4 {
  margin: 0.6rem 0 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.file-tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-tree-list li {
  padding: 0.32rem 0.5rem;
  font-size: 0.82rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.file-tree-list li:hover {
  background: #e2e8f0;
}

.files-inspector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.data-table th {
  background: var(--bg-subtle);
  font-weight: 600;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.metric-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.85rem;
  background: var(--bg-subtle);
}

.metric-card .metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.log-console {
  flex: 1;
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.85rem;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow: auto;
  margin: 0;
  min-height: 360px;
}

/* ============================================================================
   MODALS
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-card {
  background: #fff;
  border-radius: 10px;
  width: 92%;
  max-width: 540px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-card.modal-lg {
  max-width: 740px;
}

.modal-header {
  padding: 0.85rem 1.15rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1rem;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.status-callout {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.83rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem;
}

/* Narrow windows: stack form columns, or the last one is cut off at the modal's edge. */
@media (max-width: 700px) {
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

/* Settings: the provider's models, beside the button that asks for them. */
.model-picker-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.model-picker-row .form-field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

/* Pictures taken from a recording: click a candidate frame to use it. */
.media-thumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.media-thumb {
  width: 160px;
  max-width: 100%;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
}

.media-thumb.selected {
  border-color: var(--primary);
}

/* Sign-in page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  background: var(--bg-app);
  overflow: auto;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.login-card h1 {
  margin: 0;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.login-notice {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
}

.login-notice pre {
  margin: 0.5rem 0 0;
  overflow-x: auto;
}

.login-error {
  color: var(--danger);
  font-size: 0.9rem;
}

/* ============================================================================
   REVIEW / APPROVE DRAWER & FORMATTED DOCUMENT STUDIO (PowerShell UI.Drawer parity)
   ============================================================================ */
.workspace-grid.wide-drawer {
  grid-template-columns: 340px 1fr;
}

.review-count-badge {
  display: inline-block;
  min-width: 1.35rem;
  padding: 0.08rem 0.42rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  background: #e2e8f0;
  color: #334155;
}

.review-count-badge.has-waiting {
  background: #eab308;
  color: #0f172a;
}

.review-drawer-layout,
.document-studio-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.review-sidebar,
.document-outline-sidebar {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.65rem;
  background: var(--bg-subtle);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.review-sidebar-section h4 {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-queue-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.review-queue-item {
  padding: 0.48rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.81rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.review-queue-item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.review-queue-item.active {
  background: #dbeafe;
  border-color: var(--primary);
  font-weight: 600;
}

.review-queue-item.waiting {
  border-left: 4px solid #eab308;
  background: #fefce8;
}

.review-queue-item.waiting.active {
  background: #fef08a;
  border-color: #ca8a04;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 0.25rem;
  flex-shrink: 0;
  background: #94a3b8;
}
.status-dot.approved {
  background: #16a34a;
}
.status-dot.waiting,
.status-dot.draft {
  background: #eab308;
}
.status-dot.changes_requested,
.status-dot.sent_back {
  background: #dc2626;
}

.review-main {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.review-detail-header {
  padding: 0.65rem 0.9rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-help-bar {
  padding: 0.45rem 0.9rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.8rem;
}

.review-content-box {
  flex: 1;
  padding: 1rem 1.25rem;
  overflow-y: auto;
  min-height: 220px;
}

.review-editor-box {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.review-editor-box textarea {
  flex: 1;
  width: 100%;
  resize: none;
}

.formatted-markdown-view {
  line-height: 1.6;
  font-size: 0.91rem;
  color: #0f172a;
}
.formatted-markdown-view h1,
.formatted-markdown-view h2,
.formatted-markdown-view h3,
.formatted-markdown-view h4 {
  margin-top: 1.1rem;
  margin-bottom: 0.45rem;
  color: #0f172a;
}
.formatted-markdown-view h1:first-child,
.formatted-markdown-view h2:first-child,
.formatted-markdown-view h3:first-child {
  margin-top: 0;
}
.formatted-markdown-view table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.84rem;
}
.formatted-markdown-view th,
.formatted-markdown-view td {
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.formatted-markdown-view th {
  background: var(--bg-subtle);
  font-weight: 600;
}
.formatted-markdown-view blockquote {
  margin: 0.65rem 0;
  padding: 0.5rem 0.85rem;
  border-left: 4px solid var(--primary);
  background: #eff6ff;
  border-radius: 4px;
}
.formatted-markdown-view code {
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}

.review-actions-footer {
  padding: 0.65rem 0.9rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-notes-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.review-score-label {
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.review-buttons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.doc-source-box {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.6rem;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
}

.part-card.status-approved {
  border-left: 4px solid #16a34a;
}
.part-card.status-waiting,
.part-card.status-draft {
  border-left: 4px solid #eab308;
}
.part-card.status-changes_requested {
  border-left: 4px solid #dc2626;
}

.part-formatted-body {
  padding: 0.5rem 0.25rem;
  border-top: 1px solid #f1f5f9;
}

.part-inline-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-top: 0.35rem;
}

/* Full-width Live Activity Bar above the chat composer & live thinking bubble inside the chat */
.chat-activity-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  background: #fef9c3;
  border-top: 2px solid #eab308;
  color: #713f12;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.35;
}

.activity-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d97706;
  flex-shrink: 0;
  animation: lidia-pulse 1.2s infinite ease-in-out;
}

.chat-bubble.live-thinking {
  align-self: flex-start;
  background: #fefce8;
  border: 1px dashed #eab308;
  color: #713f12;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

@keyframes lidia-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}


