/* Chat editor pieces (Figma page 06, section 06y): photo thumbnails, thinking bubble, what changed + Undo. */
#studio .chat-thinking small { display: block; }
#studio .chat-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#studio .chat-photo { position: relative; width: 76px; height: 76px; margin: 0; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #dfe5da; font: inherit; }
#studio .chat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#studio .chat-photo.is-uploading img { opacity: .6; }
#studio .chat-photo.is-failed { cursor: pointer; background: #f1e1e1; }
#studio .chat-photo.is-failed img { opacity: .45; filter: grayscale(1); }
#studio .chat-photo__tag { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: #fff; color: #215438; font: 600 11px/1.4 "DM Sans", sans-serif; }
#studio .chat-photo.is-failed .chat-photo__tag { color: #9b2c2c; }
#studio .chat-photo__bar { position: absolute; left: 0; top: 0; height: 3px; width: var(--p, 10%); background: #215438; transition: width .4s ease; }
#studio .chat-thinking__row { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 14px; border: 1px solid #dfdfd9; border-radius: 16px; background: #fff; max-width: 100%; }
#studio .chat-thinking__line { font-size: 15px; color: #64645f; line-height: 1.45; white-space: pre-line; }
#studio .chat-mark { flex: 0 0 auto; width: 24px; height: 24px; animation: chat-pulse 1.4s ease-in-out infinite; }
#studio .chat-thinking.is-streaming .chat-thinking__line { color: #282622; }
@keyframes chat-pulse { 0%, 100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.06); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #studio .chat-mark { animation: none; opacity: .85; } }
#studio .chat-changes { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid #dfdfd9; border-radius: 12px; background: #fff; }
#studio .chat-changes ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: #282622; }
#studio .chat-changes li::before { content: "✓ "; color: #215438; font-weight: 600; }
#studio .chat-changes__actions { display: flex; gap: 8px; margin-top: 8px; }
#studio .chat-changes__actions button { min-height: 34px; padding: 0 14px; border: 1px solid #dfdfd9; border-radius: 999px; background: #fff; color: #215438; font: 500 14px "DM Sans", sans-serif; cursor: pointer; }
#studio .chat-guided { display: block; margin: 2px 0 0; font: 600 12px "DM Sans", sans-serif; color: #215438; }
#studio .quick-actions button[data-chat-guided] { background: #215438; border-color: #215438; color: #fff; }
