/* the assistant panel (js/assistant.js) */
#panel-assistant { height: min(600px, calc(100% - 140px)); }
#as-chat, #as-log { flex: 1; min-height: 0; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.as-msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.as-msg.dew { align-self: flex-start; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.as-msg.me { align-self: flex-end; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent-2) 28%, transparent)); border-bottom-right-radius: 4px; }
.as-msg.thinking { color: var(--muted); animation: as-pulse 1.2s ease-in-out infinite; }
@keyframes as-pulse { 50% { opacity: .45; } }
.as-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.as-choices button { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; max-width: 100%; }
.as-choices button span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-choices small { color: var(--muted); }
.as-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: center; padding: 4px 18px 12px; color: var(--muted); font-size: calc(13px * var(--ts)); }
.as-foot select { font: inherit; color: var(--text); background: var(--glass-strong); border: 1px solid var(--line); border-radius: 8px; padding: 2px 6px; }
.as-log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.as-log-head span { color: var(--muted); font-size: calc(13px * var(--ts)); margin-right: auto; }
#as-log ul { list-style: none; margin: 0; padding: 0; }
#as-log li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
#as-log time { flex: none; width: 110px; color: var(--muted); font-size: calc(13px * var(--ts)); }
@media (max-width: 560px) {
  #panel-assistant { height: calc(100% - 120px); }
  #as-log time { width: 80px; }
}
@media (prefers-reduced-motion: reduce) { .as-msg.thinking { animation: none; } }
