.view-ask {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== Landing (empty) ===== */
.ask-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s-14) var(--s-15);
  text-align: center;
}
.ask-empty .panda-mark {
  position: relative;
  margin-bottom: var(--s-10);
}
.ask-empty .panda-mark .cloud {
  position: absolute;
  top: -8px;
  right: -22px;
  opacity: 0.18;
}
.ask-empty h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-4xl);
  color: var(--ink-1);
  margin-bottom: 4px;
}
.ask-empty .zh {
  font-size: var(--text-md);
  color: var(--ink-ghost);
  margin-bottom: 4px;
}
.ask-empty .sub {
  font-size: var(--text-lg);
  color: var(--ink-mute);
  margin-bottom: var(--s-13);
  max-width: 38em;
}
.ask-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  max-width: 520px;
  width: 100%;
  margin-bottom: var(--s-14);
}
@media (max-width: 560px) {
  .ask-suggestions { grid-template-columns: 1fr; }
}
.ask-suggestion {
  border: 1px solid var(--line-2);
  border-radius: var(--r-card-lg);
  padding: var(--s-7) var(--s-9);
  background: var(--sidebar-bg);
  display: flex;
  align-items: center;
  gap: var(--s-5);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.ask-suggestion:hover {
  border-color: var(--brand);
  background: var(--canvas);
}
.ask-suggestion .sug-icon {
  width: 20px; height: 20px;
  border-radius: 4px;
  background: var(--brand);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
}
.ask-suggestion .sug-label {
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--ink-2);
}

/* ===== Active chat ===== */
.ask-conversation {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-11) var(--s-13);
  display: flex;
  flex-direction: column;
  gap: var(--s-9);
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

.ask-msg-user {
  align-self: flex-end;
  max-width: 65%;
  background: var(--ink-1);
  color: #fff;
  border-radius: var(--r-bubble-user);
  padding: 13px 16px;
  font-size: var(--text-md);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.ask-msg-ai {
  align-self: flex-start;
  max-width: 80%;
  display: flex;
  gap: var(--s-6);
}
.ask-msg-ai .ai-avatar {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--brand);
  flex-shrink: 0;
}
.ask-msg-ai .ai-body { flex: 1; }
.ask-msg-ai .bubble {
  background: var(--canvas-soft);
  border-radius: var(--r-bubble-ai);
  padding: 15px 17px;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--ink-1);
  white-space: pre-wrap;
  word-break: break-word;
}
.ask-msg-ai.error .bubble {
  background: var(--brand-tint);
  color: var(--ink-1);
}
.ask-msg-ai .actions {
  display: flex; gap: var(--s-7);
  margin-top: var(--s-4);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--ink-faint);
}
.ask-msg-ai .actions button {
  font: inherit;
  color: inherit;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.ask-msg-ai .actions button:hover { color: var(--ink-3); }
.ask-msg-ai .actions .add-to-trip { color: var(--brand); }
.ask-msg-ai .actions .add-to-trip:hover { color: var(--brand); text-decoration: underline; }

/* Thinking bubble */
.ask-thinking .bubble {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  font-style: italic;
  color: var(--ink-5);
  font-size: var(--text-base);
}
.thinking-dot {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  animation: blink 1.4s var(--ease) infinite;
}
.thinking-dot:nth-child(3) { animation-delay: 0.2s; }
.thinking-dot:nth-child(4) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* Follow-up chips */
.ask-chips {
  display: flex; gap: var(--s-4);
  padding: 0 var(--s-13) var(--s-7);
  flex-wrap: wrap;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}
.ask-chip {
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--ink-3);
  border: 1px solid var(--line-3);
  padding: 8px 13px;
  border-radius: var(--r-chip);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.ask-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Input bar */
.ask-compose {
  padding: var(--s-6) var(--s-13) calc(var(--s-11) + var(--safe-bottom));
  display: flex;
  gap: var(--s-5);
  align-items: end;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}
.ask-compose .input-wrap {
  flex: 1;
  border: 1px solid var(--line-1);
  border-radius: var(--r-input);
  padding: 14px 18px;
  background: var(--canvas);
  box-shadow: var(--shadow-input);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.ask-compose textarea {
  flex: 1;
  resize: none;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.5;
  max-height: 9em;
  min-height: 22px;
  color: var(--ink-1);
}
.ask-compose .send {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--text-2xl);
  flex-shrink: 0;
  transition: background-color var(--dur-fast) var(--ease);
}
.ask-compose .send:hover { background: #b95938; }
.ask-compose .send:disabled { background: var(--ink-ghost); cursor: not-allowed; }
