/* ---- Jarvis: the owner's PC ------------------------------------------------------- */
.jarvis { overflow-y: auto; display: block; }
.jarvis-inner { max-width: 1180px; margin: 0 auto; padding: 24px 22px 60px; }
.jarvis-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.jarvis-orb { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.jarvis-orb.on { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); animation: jarvisPulse 2.4s var(--ease) infinite; }
@keyframes jarvisPulse { 50% { box-shadow: 0 0 0 11px transparent; } }
.jarvis-on { color: var(--success, #3fb950); font-weight: 600; }
.jarvis-off { color: var(--text-3); font-weight: 600; }
.jarvis-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.jarvis-dot.on { background: var(--success, #3fb950); }
.jarvis-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .jarvis-grid { grid-template-columns: 1fr; } }

.jarvis-chat { display: flex; flex-direction: column; height: min(72vh, 680px); position: sticky; top: 0; }
@media (max-width: 960px) { .jarvis-chat { position: static; height: 60vh; } }
.jarvis-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.jmsg { display: flex; flex-direction: column; gap: 3px; max-width: 86%; }
.jmsg.me { align-self: flex-end; align-items: flex-end; }
.jbubble { padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.jmsg.me .jbubble { background: var(--accent); color: var(--accent-text, #fff); border-bottom-right-radius: 4px; }
.jmsg.them .jbubble { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.jarvis-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.jarvis-input .input { flex: 1; }
.icon-btn.listening { color: #fff; background: var(--danger); animation: jarvisPulse 1.2s infinite; }

.jarvis-action { border-radius: 12px; }
.jarvis-action + .jarvis-action { border-top: 1px solid var(--border); }
.jarvis-action-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: none; background: none; color: var(--text); border-radius: 12px; }
.jarvis-action-head:hover { background: var(--hover); }
.jarvis-action-head .q-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.jarvis-action-body { padding: 4px 10px 14px 56px; }
@media (max-width: 600px) { .jarvis-action-body { padding-left: 10px; } }

.jarvis-job + .jarvis-job { border-top: 1px solid var(--border); }
.jarvis-job .sp-row { color: var(--text); }
.jarvis-job .sp-row:hover { background: var(--hover); }
.jarvis-job-body { padding: 4px 8px 12px 32px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.jarvis-job-body .sp-out { width: 100%; background: var(--surface-2); color: var(--text-2); margin: 0; }
.jarvis-shot { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.jarvis-files { width: 100%; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.role-tag.job-done { background: rgba(63,185,80,.15); color: var(--success, #3fb950); }
.role-tag.job-failed { background: var(--danger-soft); color: var(--danger); }
.role-tag.job-queued, .role-tag.job-cancelled { background: var(--surface-2); color: var(--text-2); }
