/* v0.2: anchored activity, compact output, accessible diff hover preview. */
.work-view { overflow: hidden; }
.conversation-scroll { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; scrollbar-gutter: stable; overscroll-behavior: contain; }
.conversation-scroll > * { flex-shrink: 0; }
.composer-wrap { flex-shrink: 0; margin-top: 0; padding-top: 10px; }
.task-feedback { background: transparent; border: 0; border-radius: 0; padding: 0 4px; margin: 24px auto 20px; max-width: 890px; }
.reasoning-panel { background: var(--soft); border: 0; padding: 9px 12px; margin: 0 0 7px; border-radius: 9px; }
.reasoning-panel summary { font-size: 12px; line-height: 1.5; }
.reasoning-panel small { font-size: 10px; opacity: .85; }
.reasoning-panel p { margin: 8px 0 1px; line-height: 1.65; font-size: 12px; }
.reasoning-panel pre { margin: 8px 0 1px; line-height: 1.6; }
.stream-preview { font-size: 13px; line-height: 1.65; padding: 9px 2px 0; min-height: 0; }
.output-note { font-size: 10px; color: var(--muted); margin: 6px 2px 12px; line-height: 1.4; }
.message { line-height: 1.7; }
.review-entry { margin-top: 0; padding: 12px 14px; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.review-entry:hover, .review-entry:focus-visible { background: rgba(59,142,113,.12); border-color: #579d8270; box-shadow: 0 4px 16px #3f735411; }
.review-hint { font-size: 10px; color: var(--muted); margin-left: 7px; }
.status-dock { margin: 0 6px 9px; border-radius: 9px; background: var(--soft); padding: 0 10px; overflow: hidden; }
.status-line { height: 31px; display: flex; align-items: center; gap: 8px; font-size: 11px; }
#stage-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-demo-label { margin-left: auto; white-space: nowrap; color: var(--muted); font-size: 9px; }
.activity-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.status-dock .stop-button { margin-left: 2px; padding: 3px 7px; font-size: 10px; line-height: 1.4; background: transparent; color: var(--muted); }
.status-dock .stop-button:hover { color: #b66a61; background: #b96a6010; }
.activity-track { height: 2px; position: relative; background: #7caa971b; margin: 0 -10px; overflow: hidden; }
.activity-track > span { display: block; position: absolute; width: 36%; height: 100%; background: linear-gradient(90deg,transparent,#66b49e,var(--accent),transparent); opacity: .95; }
.status-dock[data-state="running"] .activity-track > span { animation: glide-activity 1.65s ease-in-out infinite; }
.status-dock[data-state="running"] .activity-dot { animation: pulse-activity 1.65s ease-in-out infinite; }
.status-dock[data-state="complete"] .activity-track > span { width: 100%; background: linear-gradient(90deg,#9acdb8,var(--accent)); opacity: .5; }
.status-dock[data-state="stopped"] .activity-track > span { width: 100%; background: #9aa99f; opacity: .3; }
.status-dock[data-state="stopped"] .activity-dot { background: #9aa99f; }
@keyframes glide-activity { 0% { transform: translateX(-110%); } 100% { transform: translateX(390%); } }
@keyframes pulse-activity { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.diff-tooltip { position: fixed; z-index: 30; width: min(380px,calc(100vw - 24px)); padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(251,254,252,.96); backdrop-filter: blur(22px); box-shadow: 0 10px 42px #274a3c25,0 2px 8px #274a3c0b; color: var(--text); }
.tooltip-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; align-items: center; }
.tooltip-heading strong { font-weight: 600; }
.diff-tooltip p { font-size: 10px; color: var(--muted); margin: 7px 0 10px; }
.diff-tooltip pre { font: 11px/1.65 Consolas,monospace; margin: 0; border-radius: 7px; overflow: hidden; }
.diff-tooltip pre span { display: block; padding: 2px 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-tooltip > small { display: block; font-size: 10px; color: var(--muted); margin-top: 10px; }
.diff-columns pre span:hover { outline: 1px solid #679d8540; outline-offset: -1px; filter: brightness(.98); }
body.dark .diff-tooltip { background: rgba(32,48,41,.98); }
@media(max-width:760px) {
  .composer-wrap { padding-top: 7px; }
  .task-feedback { width: calc(100% - 34px); padding: 0; margin-top: 18px; }
  .status-line { height: 30px; font-size: 10px; gap: 6px; }
  .status-dock { margin-left: 3px; margin-right: 3px; }
  .status-demo-label { font-size: 8px; }
  .reasoning-panel small { display: inline; margin-left: 7px; }
  .review-entry { gap: 7px; padding: 11px 12px; }
}
@media(prefers-reduced-motion:reduce) {
  .status-dock[data-state="running"] .activity-track > span { animation: none; width: 100%; opacity: .4; }
  .status-dock[data-state="running"] .activity-dot { animation: none; }
}
