/* Ask Alba (Alba Pro). SCOPE: .assistant, .assistant-*.
   ROLLBACK: remove this file, assets/js/assistant.js, api/ai.js, package.json and the menu item in index.html. */
.assistant {
  max-width: 820px;
}
.assistant-shared {
  margin: 8px 0 16px;
  font-size: 13px;
  color: var(--muted, #777a71);
}
.assistant-shared summary {
  cursor: pointer;
}
.assistant-shared pre {
  max-height: 220px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid var(--line, #ddd9cf);
  border-radius: 8px;
  background: var(--surface, #fff);
  font: 12px/1.5 ui-monospace, Menlo, monospace;
  white-space: pre-wrap;
  color: var(--ink, #242722);
}
.assistant-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.assistant-suggest .secondary-btn {
  font-size: 13px;
  padding: 6px 12px;
}
.assistant-log {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.assistant-msg {
  width: fit-content;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line, #ddd9cf);
  background: var(--surface, #fff);
  line-height: 1.5;
}
.assistant-msg p {
  margin: 0 0 8px;
  white-space: pre-wrap;
}
.assistant-msg p:last-child {
  margin-bottom: 0;
}
.assistant-msg.mine {
  justify-self: end;
  background: var(--maroon-soft, #f3e3e5);
  border-color: transparent;
}
.assistant-msg.pending {
  color: var(--muted, #777a71);
}
.assistant-msg.error {
  border-color: #b3261e;
  color: #b3261e;
}
.assistant-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.assistant-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line, #ddd9cf);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}
.assistant-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.assistant-actions .link-btn {
  border: 0;
  background: transparent;
  color: var(--muted, #777a71);
  font-size: 12px;
  cursor: pointer;
}
.assistant-actions .link-btn:hover {
  color: var(--maroon, #7a1f2b);
}
