/* Expandable Live artifact tray (voice mode only). */
.live-artifact-tray {
    flex: 0 0 auto;
    max-height: 38vh;
    overflow: auto;
    margin: 0 12px 8px;
    border: 1px solid var(--live-outline);
    border-radius: 12px;
    background: var(--live-surface);
    color: var(--live-on-surface);
}
.live-artifact-tray > summary {
    position: sticky;
    top: 0;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    background: var(--live-surface);
}
.live-artifact-list { display: grid; gap: 8px; padding: 0 10px 10px; }
.live-artifact-card { min-width: 0; padding: 10px; border: 1px solid var(--live-outline); border-radius: 10px; overflow: hidden; }
.live-artifact-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--type-sm); font-weight: 600; }
.live-artifact-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-artifact-toggle {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 8px;
    border: 1px solid var(--live-outline);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}
/* Auto-collapsed (or manually folded) card: exactly one title row, still reopenable. */
.live-artifact-card[data-artifact-state="collapsed"] > :not(h3) { display: none; }
.live-artifact-card[data-artifact-state="collapsed"] h3 { margin-bottom: 0; }
.live-artifact-card details { padding: 5px 0; }
.live-artifact-visualization { height: 360px; min-height: 200px; }
.live-artifact-visualization iframe { width: 100%; height: 100%; }
.live-artifact-diagram { max-width: 100%; overflow: auto; }
.live-artifact-diagram pre { white-space: pre-wrap; }
