/* In-app desk assistant drawer (v1 vanilla UI). Reuses the dark palette from style.css;
   no new fonts or external assets. */

.assistant-slot { display: inline-flex; align-items: center; }
.assistant-btn {
  font-weight: 700;
  color: var(--accent);
  border-color: var(--accent);
}
.assistant-btn:hover { background: var(--panel-2); }

.assistant-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.assistant-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 94vw);
  background: var(--panel);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.assistant-title { font-weight: 700; color: var(--accent); }
.assistant-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
}
.assistant-close:hover { color: var(--text); }

.assistant-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.assistant-hint { font-size: 12px; margin: 0; }

.assistant-msg { display: flex; }
.assistant-msg.user { justify-content: flex-end; }
.assistant-bubble {
  max-width: 85%;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assistant-msg.user .assistant-bubble { background: var(--accent); color: #06121f; }
.assistant-msg.assistant .assistant-bubble { background: var(--panel-2); color: var(--text); }

.assistant-chip {
  align-self: flex-start;
  font-size: 11px;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}
.assistant-status { font-size: 12px; }

.assistant-error {
  background: rgba(231, 76, 60, 0.14);
  border: 1px solid var(--failed);
  color: var(--failed);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}

.assistant-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.assistant-input {
  flex: 1;
  resize: none;
  font-size: 13px;
  font-family: inherit;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
}
.assistant-input:focus { border-color: var(--accent); outline: none; }
.assistant-send { align-self: stretch; white-space: nowrap; }
.assistant-send:disabled { opacity: 0.5; cursor: not-allowed; }
