.mq-working { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #fbbf24; }
.mq-working i { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: mq-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }

.mq-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mq-list[hidden] { display: none; }
.mq-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 6px 6px 12px; background: rgba(17, 24, 39, .6); border: 1px solid #374151; border-radius: 10px; }
.mq-body { flex: 1; min-width: 0; }
.mq-label { display: flex; align-items: center; gap: 6px; margin-bottom: 1px; font-size: 11px; font-weight: 600; color: #9ca3af; }
.mq-time { font: 10px ui-monospace, Menlo, monospace; color: #9ca3af; }
.mq-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; color: #e5e7eb; }
.mq-text.mq-empty { color: #9ca3af; font-style: italic; }
.mq-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border: 1px solid #4b5563; border-radius: 99px; background: #1f2937; font-size: 11px; color: #d1d5db; }
.mq-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.mq-form { display: contents; }
.mq-steer { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 6px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.mq-steer:hover { background: #1d4ed8; }
.mq-steer:disabled { background: #374151; color: #9ca3af; cursor: default; }
.mq-spin { width: 12px; height: 12px; border: 2px solid #6b7280; border-top-color: #fcd34d; border-radius: 50%; animation: mq-spin 1s linear infinite; }
.mq-remove { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: #9ca3af; cursor: pointer; }
.mq-remove:hover { background: #374151; color: #f87171; }
.mq-remove:disabled { opacity: .4; background: none; color: #9ca3af; cursor: default; }
.mq-row :is(.mq-steer, .mq-remove):focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.mq-row[data-state=steer_requested] { border-color: rgba(245, 158, 11, .45); background: rgba(120, 53, 15, .18); }
.mq-row[data-state=steer_requested] .mq-label { color: #fcd34d; }

.feature-workspace .mq-row { background: #1d2939; border-color: #3a4a5e; border-radius: 9px; }
.feature-workspace .mq-label { color: var(--muted); }
.feature-workspace .mq-chip { background: #22364e; border-color: #516986; color: #d8e8ff; }
.feature-workspace .mq-steer:not(:disabled) { background: #3466cd; }
.feature-workspace .mq-steer:not(:disabled):hover { background: #2b57b0; }
.feature-workspace .mq-row[data-state=steer_requested] { background: #2e2a22; border-color: #7a5f2a; }
.feature-workspace .mq-row[data-state=steer_requested] .mq-label { color: #fcd34d; }

.msg-steered { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-bottom: 3px; font-size: 11px; font-weight: 600; color: #fcd34d; }

@media (max-width: 767px) {
  .mq-row { flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; padding: 8px 8px 8px 12px; }
  .mq-body { flex-basis: calc(100% - 46px); }
  .mq-actions { margin-left: auto; }
  .mq-steer { height: 36px; padding: 0 14px; font-size: 13px; }
  .mq-remove { width: 36px; height: 36px; }
}

@keyframes mq-pulse { 50% { opacity: .5; } }
@keyframes mq-spin { to { transform: rotate(360deg); } }
