/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  color: #1e293b;
}

/* ===== LAYOUT ===== */
.page {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 28px;
}

.brand h1 {
  font-size: 22px;
  font-weight: 700;
}

.brand p {
  font-size: 13px;
  color: #64748b;
}

/* ===== BADGES ===== */
.badge {
  background: #e0e7ff;
  color: #3730a3;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: 6px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: white;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.panel h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

/* ===== CHIPS ===== */
.chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chip {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  text-align: left;
  transition: 0.2s;
}

.chip:hover {
  background: #e2e8f0;
}

/* ===== HERO ===== */
.hero-card {
  background: white;
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.hero-text h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-text p {
  color: #64748b;
  font-size: 14px;
}

.hero-meta {
  margin-top: 12px;
  font-size: 13px;
  color: #475569;
}

/* ===== STATUS ===== */
.status {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
}

.status.success {
  background: #dcfce7;
  color: #166534;
}

.status.error {
  background: #fee2e2;
  color: #991b1b;
}

.status.loading {
  background: #e0f2fe;
  color: #075985;
}

/* ===== DECISION CARD ===== */
.decision-card {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
}

/* ===== CHAT ===== */
.chat-box {
  background: white;
  border-radius: 16px;
  padding: 16px;
  height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.message {
  display: flex;
  margin-bottom: 12px;
  gap: 10px;
}

.message.user {
  justify-content: flex-end;
}

.avatar {
  width: 36px;
  height: 36px;
  background: #1e293b;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.message.user .avatar {
  background: #f97316;
}

.bubble {
  max-width: 70%;
  padding: 12px;
  border-radius: 14px;
  background: #f1f5f9;
  font-size: 14px;
}

.message.user .bubble {
  background: #f97316;
  color: white;
}

/* ===== LOADER ===== */
.loader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.loader-dot {
  width: 8px;
  height: 8px;
  background: #f97316;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

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

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* ===== INPUT ===== */
.input-panel {
  background: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  margin-top: 8px;
  resize: none;
}

.actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.primary-btn {
  background: #f97316;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.primary-btn:hover {
  background: #ea580c;
}

.secondary-btn {
  background: #e2e8f0;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* ===== HINT ===== */
.hint {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

/* ===== HIDDEN ===== */
.hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
/** { box-sizing: border-box; } body { margin: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background: radial-gradient(circle at top left, #fff7ed 0%, transparent 28%), radial-gradient(circle at top right, #e0f2fe 0%, transparent 25%), linear-gradient(135deg, #f8fafc, #eef2ff); color: #111827; } .page { max-width: 1400px; margin: 0 auto; padding: 24px; } .topbar { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; } .brand { display: flex; gap: 16px; align-items: center; } .brand-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f97316, #fb923c); color: white; font-size: 1.5rem; box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25); } .brand h1 { margin: 0; font-size: 2rem; } .brand p { margin: 4px 0 0; color: #4b5563; } .top-badges { display: flex; gap: 10px; flex-wrap: wrap; } .badge { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px; background: white; border: 1px solid #e5e7eb; color: #374151; font-weight: 600; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); } .layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; } .panel, .hero-card, .chat-box, .input-panel { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px); border: 1px solid rgba(229, 231, 235, 0.85); border-radius: 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); } .panel { padding: 20px; margin-bottom: 18px; } .panel h2 { margin-top: 0; font-size: 1.05rem; } .panel ul { padding-left: 18px; margin: 12px 0 0; color: #374151; line-height: 1.7; } .chips { display: flex; flex-wrap: wrap; gap: 10px; } .chip { border: 1px solid #d1d5db; background: #f9fafb; color: #111827; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 600; } .hero-card { padding: 22px; display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; } .eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.08em; color: #ea580c; font-weight: 700; font-size: 0.82rem; } .hero-card h2 { margin: 0 0 10px; font-size: 1.7rem; } .hero-card p { margin: 0; color: #4b5563; line-height: 1.7; } .hero-meta { min-width: 280px; align-self: center; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; color: #374151; line-height: 1.7; } .status { margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; font-weight: 700; } .status.loading { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; } .status.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; } .status.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; } .hidden { display: none !important; } .chat-box { min-height: 420px; max-height: 540px; overflow-y: auto; padding: 22px; margin-bottom: 16px; } .message { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; } .message.user { flex-direction: row-reverse; } .avatar { min-width: 42px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; } .message.ai .avatar { background: linear-gradient(135deg, #0f172a, #334155); color: white; } .message.user .avatar { background: linear-gradient(135deg, #f97316, #fb923c); color: white; } .bubble { max-width: 78%; padding: 14px 16px; border-radius: 18px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; } .message.ai .bubble { background: #f8fafc; border: 1px solid #e5e7eb; color: #111827; border-top-left-radius: 6px; } .message.user .bubble { background: linear-gradient(135deg, #f97316, #fb923c); color: white; border-top-right-radius: 6px; } .loader { display: flex; align-items: center; gap: 8px; color: #475569; font-weight: 600; margin: 0 0 16px 4px; } .loader-dot { width: 10px; height: 10px; border-radius: 50%; background: #f97316; animation: bounce 1.2s infinite ease-in-out; } .loader-dot:nth-child(2) { animation-delay: 0.15s; } .loader-dot:nth-child(3) { animation-delay: 0.3s; } @keyframes bounce { 0%,80%,100% { transform: scale(0.7); opacity: 0.6; } 40% { transform: scale(1.05); opacity: 1; } } .input-panel { padding: 20px; } .input-panel label { display: block; margin-bottom: 10px; font-weight: 700; } textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 16px; padding: 16px; font-size: 1rem; resize: vertical; min-height: 110px; background: #fff; } .actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; } .primary-btn, .secondary-btn { border: none; border-radius: 14px; padding: 13px 18px; font-size: 1rem; font-weight: 700; cursor: pointer; } .primary-btn { background: linear-gradient(135deg, #f97316, #fb923c); color: white; } .secondary-btn { background: #eef2f7; color: #111827; border: 1px solid #d1d5db; } .primary-btn:disabled, .secondary-btn:disabled { opacity: 0.65; cursor: not-allowed; } .hint { margin: 12px 0 0; color: #6b7280; font-size: 0.92rem; } @media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .bubble { max-width: 88%; } }*/