/* Native ThoughtLine adaptation. React Bits notice: chat-widget.js and licenses/REACT-BITS-LICENSE.txt. */
.scripts-chat-thought { display: block; margin: 0 0 13px; color: var(--chat-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.scripts-chat-thought::before { content: none; }
.scripts-chat-body { overflow-anchor: none; }
.scripts-chat-thought::details-content { interpolate-size: allow-keywords; block-size: 0; overflow: clip; transition: block-size .35s cubic-bezier(.23,1,.32,1), content-visibility .35s; transition-behavior: allow-discrete; }
.scripts-chat-thought[open]::details-content { block-size: auto; }
.scripts-chat-thought-head { display: flex; align-items: center; gap: 5px; min-height: 36px; width: fit-content; max-width: 100%; padding: 4px 0; list-style: none; cursor: pointer; }
.scripts-chat-thought-head::-webkit-details-marker { display: none; }
.scripts-chat-thought-head[aria-disabled] { cursor: default; }
.scripts-chat-thought-head:focus-visible { outline: 2px solid var(--chat-accent); outline-offset: 4px; border-radius: 4px; }
.scripts-chat-thought-glyph { display: inline-flex; flex: 0 0 17px; width: 17px; height: 17px; margin-right: 3px; color: var(--chat-accent); opacity: .55; transition: opacity .35s; }
.scripts-chat-thought-glyph svg, .scripts-chat-thought-chevron svg, .scripts-chat-thought-step-mark svg { width: 100%; height: 100%; }
.scripts-chat-thought[data-working="true"] .scripts-chat-thought-glyph { animation: scripts-chat-thought-breathe 1.6s cubic-bezier(.77,0,.175,1) infinite; }
@keyframes scripts-chat-thought-breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.scripts-chat-thought-label { display: inline-grid; min-width: 0; transition: width .35s cubic-bezier(.77,0,.175,1); }
.scripts-chat-thought-work, .scripts-chat-thought-done { grid-area: 1/1; width: max-content; transition: opacity .35s cubic-bezier(.23,1,.32,1), filter .35s cubic-bezier(.23,1,.32,1); }
.scripts-chat-thought-work { opacity: 0; filter: blur(2px); }
.scripts-chat-thought-done { opacity: .75; }
.scripts-chat-thought[data-working="true"] .scripts-chat-thought-work { opacity: 1; filter: none; background: linear-gradient(100deg,#4f5a6b80 30%,var(--chat-ink) 50%,#4f5a6b80 70%); background-size: 250% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: scripts-chat-thimmer 1.8s linear infinite; }
.scripts-chat-thought[data-working="true"] .scripts-chat-thought-done { opacity: 0; filter: blur(2px); }
@keyframes scripts-chat-thimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.scripts-chat-thought-timer { flex: 0 0 auto; color: var(--chat-subtle); font-variant-numeric: tabular-nums; font-size: 11px; }
.scripts-chat-thought-chevron { display: inline-flex; flex: 0 0 15px; width: 15px; height: 15px; margin-left: 3px; opacity: .6; transition: transform .2s cubic-bezier(.23,1,.32,1); }
.scripts-chat-thought-head[aria-disabled] .scripts-chat-thought-chevron { visibility: hidden; }
.scripts-chat-thought[open] .scripts-chat-thought-chevron { transform: rotate(180deg); }
.scripts-chat-thought-fold { overflow: hidden; }
.scripts-chat-thought-steps { display: flex; flex-direction: column; gap: 7px; list-style: none; margin: 0; padding: 5px 0 8px 25px; color: var(--chat-muted); font-size: 11px; font-weight: 400; }
.scripts-chat-thought-step { display: flex; align-items: center; gap: 7px; }
.scripts-chat-thought-step-mark { position: relative; display: inline-flex; flex: 0 0 13px; width: 13px; height: 13px; }
.scripts-chat-thought-step-mark svg { visibility: hidden; }
.scripts-chat-thought-step:not([data-done="true"]) .scripts-chat-thought-step-mark::after { content: ''; width: 5px; height: 5px; margin: auto; border-radius: 50%; background: var(--chat-subtle); animation: scripts-chat-thought-breathe 1.6s ease infinite; }
.scripts-chat-thought-step[data-done="true"] { opacity: .65; }
.scripts-chat-thought-step[data-done="true"] .scripts-chat-thought-step-mark svg { visibility: visible; }
.scripts-chat-message[data-streaming="true"] .scripts-chat-message-label strong { color: var(--chat-accent); }
.scripts-chat-stream-chunk { animation: scripts-chat-chunk-in .18s ease-out both; }
@keyframes scripts-chat-chunk-in { from { opacity: .35; } to { opacity: 1; } }
.scripts-chat-reasoning { margin: 13px 0 0; padding-top: 10px; border-top: 1px solid var(--chat-surface); color: var(--chat-muted); }
.scripts-chat-reasoning summary { min-height: 36px; padding: 7px 0; cursor: pointer; font-size: 11px; font-weight: 600; }
.scripts-chat-reasoning p { margin: 5px 0 0; color: var(--chat-muted); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.scripts-chat-composer-tools { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 8px 8px; }
.scripts-chat-composer-tools .scripts-chat-send { position: static; margin-left: auto; }
.scripts-chat-attach { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--chat-muted); font-size: 11px; }
.scripts-chat-attach:hover { background: #e8fdf7; color: var(--chat-accent); }
.scripts-chat-attach:disabled { opacity: .45; }
.scripts-chat-attach .scripts-chat-icon { width: 18px; height: 18px; }
.scripts-chat-file-guidance { color: var(--chat-subtle); font-size: 10px; }
.scripts-chat-compose-row .scripts-chat-input { padding: 12px 14px; }
.scripts-chat-files { display: flex; flex-direction: column; gap: 7px; max-height: clamp(60px, calc(var(--scripts-chat-viewport-height, 100dvh) - 330px), 194px); overflow-y: auto; margin: 0 0 9px; }
.scripts-chat-file { display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 8px 8px 8px 11px; border: 1px solid var(--chat-surface); border-radius: 12px; background: var(--chat-surface); }
.scripts-chat-file > .scripts-chat-icon { flex: 0 0 20px; color: var(--chat-subtle); }
.scripts-chat-file-info { flex: 1 1 auto; min-width: 0; }
.scripts-chat-file-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--chat-muted); font-size: 11px; font-weight: 500; }
.scripts-chat-file-state { display: block; color: var(--chat-subtle); font-size: 10px; line-height: 1.5; }
.scripts-chat-file[data-state="error"] .scripts-chat-file-state, .scripts-chat-file[data-state="remove-error"] .scripts-chat-file-state { color: #a35146; }
.scripts-chat-file-remove { flex: 0 0 36px; width: 36px; height: 44px; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: var(--chat-muted); }
.scripts-chat-file-remove:hover { background: var(--chat-surface); }
.scripts-chat-file-retry { min-height: 44px; padding: 7px; border: 0; border-radius: 8px; background: transparent; color: var(--chat-accent); font-size: 10px; }
.scripts-chat-file-progress { display: block; width: 100%; height: 3px; margin-top: 5px; border: 0; border-radius: 999px; overflow: hidden; accent-color: var(--chat-mint); }
.scripts-chat-message-files { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.scripts-chat-message-file { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 9px 11px; border: 1px solid var(--chat-surface); border-radius: 10px; background: var(--chat-surface); color: var(--chat-muted) !important; }
.scripts-chat-message-file > span { flex: 1 1 auto; min-width: 0; font-size: 11px; overflow-wrap: anywhere; }
.scripts-chat-message-file small { display: block; margin-top: 2px; color: var(--chat-subtle); font-size: 9px; }
.scripts-chat-message-file .scripts-chat-icon { width: 16px; height: 16px; }
.scripts-chat-message[data-role="user"] .scripts-chat-message-files { margin-top: 10px; }
@media (max-width:360px) { .scripts-chat-file-guidance { display: none; } }
@media (max-height:570px) { .scripts-chat-compose-row .scripts-chat-input { min-height: 44px; max-height: 64px; } }
@media (max-height:400px) { .scripts-chat-compose-row .scripts-chat-input { min-height: 44px; max-height: 44px; } }
@media (prefers-reduced-motion:reduce) { .scripts-chat-thought *, .scripts-chat-stream-chunk { animation: none !important; transition: none !important; filter: none !important; } .scripts-chat-thought[data-working="true"] .scripts-chat-thought-work { background: none; color: var(--chat-muted); } }
