/* Shared AI Studio / Agent chat surfaces. Responsive composition stays in responsive.css. */
.dc-eyebrow {font-family:var(--font-mono);font-size: var(--meta-font-size);line-height:1.7;letter-spacing:.12em;color: var(--text-secondary)}
.dc-icon-btn {--control-icon-size:44px;--button-bg:transparent;margin-left:auto;display:grid;place-items:center}
.dc-task-picker {height:var(--summary-row-height);min-height:var(--summary-row-height);display:flex;align-items:center;grid-gap:12px;gap:12px;margin:0 var(--page-gutter) 12px;padding:10px 12px;text-align:left;flex:none;border:0;box-shadow:none}
.dc-task-symbol {width:var(--summary-icon-size);height:var(--summary-icon-size);flex:none;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:0;line-height:0;background:transparent;box-shadow:none;color:var(--icon-entry-ink)}
.dc-task-symbol > .dc-spinner {margin:0;align-self:center;line-height:0}
.dc-task-label {min-width:0;display:flex;flex-direction:column;grid-gap:2px;gap:2px}
.dc-task-label small {font-size:var(--meta-font-size);line-height:18px;color:var(--text-secondary)}
.dc-task-label strong {font-size:var(--list-title-font-size);font-weight:var(--list-title-font-weight);line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dc-chevron {display:grid;place-items:center;flex:none;width:20px;height:20px;line-height:1;margin-left:auto;color:var(--text-secondary)}
.dc-chevron svg {display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Cached hidden frames can retain the legacy gap fallback; never stack it with native gap. */
.no-flex-gap .dc-task-picker,.no-flex-gap .dc-task-label {grid-gap:0;gap:0}
.no-flex-gap .dc-task-label > :not(:last-child) {margin-bottom:2px}
.dc-conversation {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 18px 24px;scroll-behavior:smooth}
.dc-welcome {display:flex;min-height:100%;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px 10px 35px}
.dc-welcome-mark {width:62px;height:62px;border-radius:var(--surface-radius);background:linear-gradient(145deg,var(--bg-card),var(--site-brand-soft));border:1px solid var(--border-welcome);display:grid;place-items:center;color:var(--welcome-mark-color);box-shadow:var(--shadow-card);margin-bottom:22px}
.dc-welcome-mark svg {width:31px;height:31px;stroke-width:1.4}
.dc-welcome h1 {font-size:var(--font-size-27);font-weight:var(--font-weight-700);line-height:1.5;letter-spacing:-.06em;margin:12px 0}
.dc-welcome p {font-size: var(--body-font-size);line-height:1.9;color:var(--text-secondary);margin:0 0 26px}
.dc-welcome-foot {font-size: var(--meta-font-size);color: var(--text-secondary);margin-top:21px;display:flex;align-items:center;grid-gap:6px;gap:6px}
.dc-welcome-foot i {width:4px;height:4px;background:var(--text-muted);border-radius:100%}
.dc-composer {padding:8px var(--page-gutter) var(--layout-bottom-gap);flex:none;background:var(--bg-page)}
.dc-compose-box {display:flex;grid-gap:4px;gap:4px;align-items:flex-end;background:var(--bg-card);border:1px solid var(--border);box-shadow:none;padding:6px;border-radius:var(--surface-radius)}
.dc-compose-box:focus-within {border-color:var(--border-focus);box-shadow:var(--focus-ring)}
.chat-input {display:block;box-sizing:border-box;resize:none;height:44px;min-height:44px;max-height:120px;line-height:1.5;border:0;background:transparent;flex:1;min-width:0;margin:0;padding:10px 0;align-self:flex-end;overflow-y:hidden;-webkit-appearance:none;appearance:none;font-size:var(--font-size-16);outline:none;color:var(--text-primary)}
.chat-input::placeholder {color: var(--text-secondary)}
.chat-send {--button-shadow:none;display:grid;place-items:center;grid-gap:0;gap:0;flex:none;margin:4px;align-self:flex-end;width:36px;min-width:36px;height:36px;min-height:36px}
/* Send/stop/loading are alternate states, not adjacent button contents. */
.no-flex-gap .chat-send > :not(:last-child) {margin-right:0}
.dc-compose-meta {display:flex;justify-content:space-between;grid-gap:8px;gap:8px;font-size: var(--meta-font-size);color: var(--text-secondary);padding:7px 4px 0;letter-spacing:.01em}
.dc-message {margin:0 0 var(--section-gap);animation:dc-appear .18s ease}
.dc-message-head {display:flex;align-items:center;grid-gap:7px;gap:7px;font-size: var(--meta-font-size);color: var(--text-secondary);margin-bottom:7px}
.dc-avatar {font-family:var(--font-mono);width:21px;height:21px;display:grid;place-items:center;font-size: var(--meta-font-size);font-weight:var(--font-weight-700);background:var(--icon-status-purple-bg);color:var(--icon-tone-purple-ink);border-radius:var(--radius-7)}
.dc-message-text {font-size: var(--body-large-size);line-height:1.85;white-space:pre-wrap;overflow-wrap: break-word;overflow-wrap:anywhere;margin:0;color:var(--text-primary)}
.dc-message.user {margin-left:38px}
.dc-message.user .dc-message-head {justify-content:flex-end}
.dc-message.user .dc-message-text {background:var(--bg-chat-bubble);border:1px solid var(--border-chat-bubble);padding:12px 14px;border-radius:var(--radius-14) var(--radius-4) var(--radius-14) var(--radius-14)}
.dc-message.assistant .dc-message-text {padding:2px 1px}
.dc-message.progress .dc-message-text {border-left:2px solid var(--border-progress);padding:2px 0 2px 12px;color:var(--text-progress);font-size: var(--body-font-size)}
.dc-thread-row {display:flex;align-items:center;grid-gap:12px;gap:12px;border:0;background:transparent;width:100%;padding:14px 12px 14px 16px;border-radius:var(--list-row-radius);margin-bottom:0;text-align:left}
.dc-thread-row.selected {background:transparent}
.dc-thread-row .dot {height:6px;width:6px;border-radius:100%;background:var(--status-idle);flex:none}
.dc-thread-row .dot.active {background:var(--accent-blue)}
.dc-thread-copy {min-width:0;flex:1}
.dc-thread-copy strong {display:block;font-weight:var(--list-title-font-weight);font-size:var(--font-size-15);line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dc-thread-copy small {display:block;color: var(--text-secondary);font-size:var(--font-size-13);line-height:20px;margin-top:4px}
.dc-message-text code {font-family:var(--font-mono);background:var(--bg-code);padding:2px 4px;border-radius:var(--radius-4);font-size: var(--caption-font-size)}
.dc-message-text a {color:var(--text-brand);text-decoration:underline;text-underline-offset:3px}
.dc-message-text strong {font-weight:var(--font-weight-650)}
.dc-compose-box.is-multiline {align-items:flex-end}
.dc-conversation.dc-reading-history .dc-message { animation:none; }
.chat-send svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
@keyframes dc-appear { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion: reduce) { .dc-message { animation:none; } }
.dc-thread-item { display:flex;align-items:center;grid-gap:4px;gap:4px;padding-right:10px;margin:0;min-width:0;min-height:74px;background:var(--bg-card);border-radius:var(--list-row-radius) }
.dc-thread-item .dc-thread-row { flex:1;min-width:0;margin:0 }
