/* The hints-only tutor's chat (public/static/tutor.js), on any page that mounts it. Tokens from site.css. */
.tutor-btn { margin-left: 8px; }
.tutor { margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); padding: 14px 16px; display: grid; gap: 12px; font-size: 15px; }
.tutor-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text); }
.tutor-log { display: grid; gap: 10px; max-height: 360px; overflow-y: auto; }
.tutor-log:empty { display: none; }
.tutor-msg { margin: 0; padding: 10px 12px; border-radius: 8px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 92%; }
.tutor-assistant { background: var(--bg); border: 1px solid var(--line); color: var(--text-body); }
.tutor-user { justify-self: end; background: var(--primary-soft); color: var(--text); border: 1px solid var(--link-line); }
.tutor-wait { color: var(--text-dim); font-style: italic; }
.tutor-form { display: grid; gap: 8px; }
.tutor-form textarea { resize: vertical; min-height: 64px; }
.tutor-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tutor-note { margin: 0; color: var(--text-body); }
.row > .tutor-btn { margin-left: 0; }
.task-line > .tutor-btn { flex: none; }
