/* AlgoLab assistant (components/assistant/ui.py): header request box + right drawer. Prefix as- */

.as-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 12px;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.10); border-radius: 10px;
  box-shadow: 0 0 24px rgba(75,233,250,0.08); }
.as-bar:focus-within { border-color: rgba(240,160,48,0.7); }
.as-bar-icon { color: #f0a030; font-size: .9rem; }
.as-input { flex: 1; min-width: 0; height: 30px; background: transparent !important; border: none !important;
  outline: none; color: #e8e8e8 !important; font-size: .86rem; }
.as-input::placeholder { color: #7f93a8; }
.as-send { height: 28px; padding: 0 14px; border: none; border-radius: 8px; background: #f0a030; color: #14100a;
  font-weight: 600; font-size: .8rem; cursor: pointer; }
.as-send:hover { filter: brightness(1.08); }
.as-toggle { height: 28px; width: 32px; border: none; border-radius: 8px; background: rgba(255,255,255,0.06);
  color: #cfefff; cursor: pointer; }
.as-toggle:hover { background: rgba(255,255,255,0.12); }

.offcanvas.as-drawer { width: 480px !important; max-width: 100vw; }
.as-drawer .offcanvas-body { display: flex; flex-direction: column; }
.as-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.as-status { color: #9fb3c8; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-btn { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: #e8e8e8;
  border-radius: 8px; padding: 4px 10px; font-size: .78rem; cursor: pointer; }
.as-btn:hover { background: rgba(255,255,255,0.12); }
.as-btn i { margin-right: 4px; }
.as-primary { background: #f0a030; color: #14100a; border-color: #f0a030; font-weight: 600; }
.as-primary:hover { background: #f5b04a; }

.as-log { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.as-welcome { display: flex; flex-direction: column; gap: 8px; }
.as-muted { color: #9fb3c8; font-size: .8rem; line-height: 1.45; }
.as-sec { color: #cfefff; font-size: .78rem; font-weight: 600; margin-top: 6px; }
.as-example { text-align: left; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04);
  color: #e8e8e8; border-radius: 10px; padding: 8px 10px; font-size: .8rem; cursor: pointer; }
.as-example:hover { border-color: rgba(240,160,48,0.6); }

.as-msg { border-radius: 10px; padding: 8px 11px; font-size: .84rem; line-height: 1.45; max-width: 100%; }
.as-user { align-self: flex-end; background: rgba(240,160,48,0.16); border: 1px solid rgba(240,160,48,0.35);
  color: #f3e3c8; max-width: 88%; white-space: pre-wrap; }
.as-bot { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #e8e8e8; }
.as-md p:last-child, .as-md ul:last-child { margin-bottom: 0; }
.as-md p { margin-bottom: 6px; }
.as-md code { color: #cfefff; background: rgba(255,255,255,0.06); padding: 0 4px; border-radius: 4px; }
.as-error { background: rgba(255,90,80,0.12); border: 1px solid rgba(255,90,80,0.35); color: #ffb4ac; }

.as-step { display: flex; align-items: baseline; gap: 7px; font-size: .76rem; color: #c9d6e2; padding: 1px 2px; }
.as-step.as-sub { padding-left: 18px; color: #9fb3c8; }
.as-dot { flex: 0 0 12px; text-align: center; font-weight: 700; }
.as-dot.ok { color: #5fbf6a; }
.as-dot.bad { color: #ff7a6e; }
.as-dot.run { color: #f0a030; }
.as-step-l { flex: 0 1 auto; }
.as-step-r { flex: 1; min-width: 0; color: #7f93a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-step-r.bad { color: #ff9a90; white-space: normal; }
.as-end { color: #7f93a8; font-size: .72rem; text-align: right; }
.as-working { display: flex; align-items: center; gap: 8px; color: #f0a030; font-size: .78rem; }
.as-spinner { width: 12px; height: 12px; border: 2px solid rgba(240,160,48,0.3); border-top-color: #f0a030;
  border-radius: 50%; animation: as-spin .8s linear infinite; }
@keyframes as-spin { to { transform: rotate(360deg); } }

.as-actions { gap: 8px; margin: 6px 0 8px; }
.as-compose { position: sticky; bottom: -16px; display: flex; gap: 6px; align-items: flex-end; padding: 8px 0 12px;
  background: rgb(14,22,30); }
.as-textarea { flex: 1; min-height: 38px; max-height: 120px; resize: vertical; background: rgba(0,0,0,0.6);
  color: #e8e8e8; border: 1px solid rgba(255,255,255,0.10); border-radius: 10px; padding: 7px 10px; font-size: .82rem; }
.as-textarea:focus { outline: none; border-color: rgba(240,160,48,0.7); }
