html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', ui-sans-serif, system-ui, sans-serif; }
.merri { font-family: 'Merriweather', serif; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.panel {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.75rem;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}
.panel-title {
  margin-top: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.metric-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.35rem;
  padding: 1.1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}
.metric-label { color: #64748b; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.metric-value { margin-top: .35rem; font-size: 1.65rem; font-weight: 800; color: #0F172A; }
.workspace-input, .workspace-textarea {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.92);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.workspace-textarea { width: 100%; resize: vertical; }
.workspace-input:focus, .workspace-textarea:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}
.btn-primary, .btn-secondary, .btn-ghost {
  border-radius: 9999px;
  font-weight: 800;
  padding: 0.8rem 1.15rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #22D3EE 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.22);
}
.btn-secondary { background: rgba(99,102,241,.09); color: #4f46e5; }
.btn-ghost { background: transparent; color: #64748b; padding: .6rem .9rem; }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); }
.info-box {
  border: 1px dashed rgba(148, 163, 184, 0.5);
  border-radius: 1.2rem;
  padding: 1rem;
  background: rgba(248,250,252,.82);
  color: #475569;
  line-height: 1.65;
}
.card-small {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.2rem;
  padding: 1rem;
  background: rgba(248,250,252,.78);
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: .25rem .65rem;
  background: rgba(99,102,241,.08);
  color: #4f46e5;
  font-size: .75rem;
  font-weight: 800;
}
.chat-user { display: flex; justify-content: flex-end; }
.chat-bot { display: flex; justify-content: flex-start; }
.chat-bubble {
  max-width: 86%;
  border-radius: 1.4rem;
  padding: .85rem 1rem;
  white-space: pre-line;
  line-height: 1.55;
}
.chat-user .chat-bubble { background: #6366F1; color: #fff; }
.chat-bot .chat-bubble { background: #fff; border: 1px solid rgba(148,163,184,.28); color: #0F172A; }
.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  padding: .9rem 1.1rem;
  background: #0F172A;
  color: #fff;
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(15,23,42,.22);
  max-width: 420px;
}
.copy-btn {
  border-radius: 9999px;
  padding: .45rem .75rem;
  background: rgba(34,211,238,.12);
  color: #0891b2;
  font-size: .78rem;
  font-weight: 800;
}
.code-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.58;
  color: #334155;
}
