.quick-actions-bar {
  overflow-x: auto;
  padding: 10px 12px;
  background: #111827;
  border-bottom: 1px solid #334155;
  -webkit-overflow-scrolling: touch;
}
.quick-actions-scroll {
  display: flex;
  gap: 8px;
  min-width: min-content;
}
.qa-chip {
  flex-shrink: 0;
  border: 1px solid #475569;
  background: #1f2937;
  color: #f8fafc;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: Cairo, Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.qa-chip:active { transform: scale(0.97); }
.qa-chip--grade { border-color: #3b82f6; }
.qa-chip--subject { border-color: #10b981; }
.qa-chip--feature { border-color: #f59e0b; }
.qa-chip--summer { border-color: #ec4899; }

.hudhud-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #111827;
  border-bottom: 1px solid #334155;
}
.back-btn {
  border: none;
  background: #1f2937;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: Cairo, sans-serif;
  cursor: pointer;
}
.hudhud-header__title { display: flex; align-items: center; gap: 10px; }
.hudhud-header__title h1 { margin: 0; font-size: 1.1rem; color: #fff; }
.hudhud-avatar { font-size: 1.8rem; }
.hudhud-status { font-size: 12px; color: #10b981; }

.hudhud-chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #0f172a;
}
.chat-message { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.chat-message--user { justify-content: flex-end; }
.chat-avatar { font-size: 1.5rem; flex-shrink: 0; }
.chat-bubble {
  max-width: 85%;
  background: #1f2937;
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.6;
  font-family: Cairo, sans-serif;
  font-size: 14px;
}
.chat-bubble--user { background: #1e3a8a; }
.chat-message--typing .typing-dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin: 0 2px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.chat-message--typing .typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-message--typing .typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%,80%,100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.hudhud-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #111827;
  border-top: 1px solid #334155;
}
.hudhud-input-bar textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid #334155;
  background: #0b1220;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: Cairo, sans-serif;
}
.send-btn {
  border: none;
  background: #ff7a1a;
  color: #fff;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 800;
  font-family: Cairo, sans-serif;
  cursor: pointer;
}

body.hudhud-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  font-family: Cairo, Tahoma, sans-serif;
}
