:root {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #45333d;
  background: #fff9fb;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.5;
  --pink: #d9437c;
  --pink-dark: #a92d5d;
  --ink-muted: #987582;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; border-top: 4px solid #f6b8cf; }
button, textarea { font: inherit; letter-spacing: 0; }
button, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
button:focus-visible, textarea:focus-visible, .response-body:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
button img { width: 17px; height: 17px; flex: 0 0 17px; }
.workspace { width: min(100% - 36px, 1060px); margin: 0 auto; padding: 20px 0 max(12px, env(safe-area-inset-bottom)); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 23px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 40px; height: 50px; flex: 0 0 40px; object-fit: contain; }
h1 { font-size: 23px; line-height: 1.25; margin: 0; font-weight: 800; }
.brand-subtitle { margin: 4px 0 0; color: var(--ink-muted); font-size: 11px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-button img { opacity: .47; }
.icon-button:hover:not(:disabled), .icon-button:focus-visible { background: #f9e7ef; }
.icon-button:disabled { opacity: .26; }
.settings-button { background: #fce8f0; width: 34px; height: 34px; }
.settings-button img { opacity: .65; }
.composer { margin-bottom: 5px; }
.composer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
label { font-size: 13px; font-weight: 700; }
.character-count { font-size: 10px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.input-wrap { position: relative; }
textarea { display: block; width: 100%; color: #5f3b4c; border: 1px solid #edc3d3; border-radius: 8px; background: #fff0f6; padding: 13px 15px; font-size: 16px; line-height: 1.6; outline: 0; resize: none; caret-color: var(--pink); box-shadow: inset 0 1px 0 #fff, 0 3px 14px #e777a00a; transition: border-color .2s, box-shadow .2s, background .2s; }
textarea::placeholder { color: #bc8ba0; }
textarea:focus { border-color: #dd81a5; background: #fff4f8; box-shadow: inset 0 1px 0 #fff, 0 0 0 3px #fbe1ed, 0 5px 20px #d9437c12; }
textarea:disabled { opacity: .75; }
#message { height: 108px; padding-right: 30px; }
.input-corner { pointer-events: none; position: absolute; right: 10px; bottom: 9px; width: 14px; height: 14px; opacity: .17; }
.input-corner img { display: block; width: 14px; height: 14px; }
.composer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.composer-utilities { display: flex; align-items: center; gap: 7px; min-width: 0; }
.image-button { position: relative; width: 35px; height: 39px; border: 1px solid #e9bdcf; background: #fff9fc; }
.image-button img { opacity: .64; }
.image-button[aria-busy="true"] img { opacity: .35; }
.image-attachments { display: flex; flex-wrap: wrap; gap: 12px; max-width: 100%; margin-top: 8px; padding: 4px 0 7px; border-bottom: 1px solid #f1d9e3; }
.image-attachment { display: grid; grid-template-columns: 96px 28px; align-items: center; gap: 5px 4px; width: 128px; min-width: 0; flex: 0 0 128px; }
.image-preview { display: block; width: 96px; height: 60px; padding: 0; border: 1px solid #e6b6ca; border-radius: 5px; overflow: hidden; background: #fff; }
.image-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-remove { width: 28px; height: 28px; }
.image-details { display: flex; flex-direction: column; gap: 2px; grid-column: 1 / -1; min-width: 0; }
.image-caption { display: flex; align-items: baseline; gap: 5px; min-width: 0; color: #775261; font-size: 11px; }
.image-number { flex-shrink: 0; color: #a92d5d; font-variant-numeric: tabular-nums; }
.image-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-meta { color: #a07e8c; font-size: 10px; white-space: nowrap; }
.data-button { position: relative; }
.data-button.is-attached { border-color: #d9437c; background: #ffe5ef; }
.data-indicator { position: absolute; right: 4px; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: #bd2863; }
.attachment-count { position: absolute; right: 2px; top: 1px; min-width: 13px; height: 13px; border-radius: 4px; background: #b72c62; color: #fff; font-size: 9px; font-weight: 700; line-height: 13px; text-align: center; }
.image-button.is-attached { border-color: #d9437c; background: #ffe5ef; }
.data-attachment { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 0; border-bottom: 1px solid #f1d9e3; }
.data-preview { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; padding: 3px 0; border: 0; background: transparent; text-align: left; color: #775261; }
.data-preview > img { width: 24px; height: 28px; flex-basis: 24px; opacity: .6; }
.data-preview > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.data-preview strong { font-size: 12px; font-weight: 600; }
#data-preview-count { color: #a07e8c; font-size: 10px; font-weight: 400; }
#data-preview-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #987582; font-size: 11px; }
.history-section { margin-top: 26px; padding-right: 40px; }
.history-section > .section-heading { align-items: flex-start; gap: 8px; }
.history-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.history-note { color: #775261; font-size: 11px; line-height: 1.8; }
#history-count { flex-shrink: 0; white-space: nowrap; }
.history-empty { margin: 8px 0; font-size: 12px; color: var(--ink-muted); }
.history-entry { position: relative; border-top: 1px solid #f0d7e2; padding-right: 36px; }
.history-entry:last-child { border-bottom: 1px solid #f0d7e2; }
.history-entry summary { display: flex; align-items: flex-start; gap: 9px; padding: 12px 0; cursor: pointer; list-style: none; }
.history-entry summary::-webkit-details-marker { display: none; }
.history-entry summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.history-entry summary > img { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 3px; opacity: .5; transition: transform 150ms ease; }
.history-entry details[open] summary > img { transform: rotate(180deg); }
.history-summary { min-width: 0; flex: 1; }
.history-question { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; line-height: 1.7; }
.history-entry details[open] .history-question { display: block; }
.history-meta { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 10px; }
.history-remove { position: absolute; top: 9px; right: 0; width: 30px; height: 30px; }
.history-replies { display: grid; gap: 12px; padding: 0 0 15px 23px; }
.history-provider { min-width: 0; }
.history-provider h3 { display: flex; align-items: center; gap: 5px; margin: 0 0 4px; color: #775261; font-size: 11px; font-weight: 600; }
.history-provider h3 img { width: 17px; height: 17px; object-fit: contain; }
.history-reply { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: 12px; line-height: 1.8; }
.history-reply.is-empty { color: var(--ink-muted); }
.history-status { color: #ae355c; font-size: 11px; margin: 9px 0 0; }
@media (min-width: 760px) {
  .history-section { padding-right: max(0px, calc(88px - 50vw + 50%)); }
  .history-replies { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
#data-input { height: min(44dvh, 340px); min-height: 130px; font-size: 16px; line-height: 1.75; tab-size: 4; }
#data-dialog .prompt-meta { margin-bottom: 18px; }
#image-dialog { width: min(calc(100% - 28px), 1040px); padding: 16px; }
#image-dialog .dialog-heading { margin-bottom: 12px; }
#image-dialog-title { font-size: 16px; }
#image-full { display: block; max-width: 100%; max-height: calc(100dvh - 126px); width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.form-buttons { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.button-primary, .button-secondary, .button-generate { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 39px; padding: 0 15px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.button-primary { background: var(--pink); color: #fff; box-shadow: 0 3px 0 #b52c62; }
.button-primary img { filter: invert(1); }
.button-primary:hover:not(:disabled) { background: #c9336d; }
.button-primary:active:not(:disabled) { box-shadow: 0 1px 0 #b52c62; transform: translateY(2px); }
.button-primary:disabled { background: #efb6cb; box-shadow: 0 3px 0 #dfa1b8; color: #fffafd; }
#send-button { position: relative; isolation: isolate; overflow: hidden; min-width: 115px; border-color: #f399b9; background: linear-gradient(135deg, #e96595, #d63d79 65%, #bf346d); box-shadow: inset 0 1px 0 #ffffff75, 0 2px 0 #a92d5d, 0 5px 14px #d9437c2b; transition: box-shadow .2s, border-color .2s, transform .2s; }
#send-button::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 20%, #ffffff0a 35%, #ffffff59 49%, #ffffff0a 63%, transparent 78%); transform: translateX(-140%); pointer-events: none; }
#send-button:not(:disabled)::before { animation: button-sheen 7s ease-in-out infinite; }
#send-button > span, #send-button > img { position: relative; }
#send-button:hover:not(:disabled), #send-button:focus-visible { border-color: #ffe0ee; box-shadow: inset 0 1px 0 #ffffffa6, 0 3px 0 #a92d5d, 0 7px 18px #d9437c3b; transform: translateY(-1px); }
#send-button:hover:not(:disabled) > img { transform: translate(1px, -1px); }
#send-button > img { transition: transform .2s; }
#send-button:active:not(:disabled) { box-shadow: inset 0 1px 0 #ffffff75, 0 1px 0 #a92d5d, 0 2px 7px #d9437c20; transform: translateY(1px); }
#send-button:disabled { border-color: #eeb3ca; background: #e9afc6; box-shadow: inset 0 1px 0 #ffffff60, 0 2px 0 #d694ae; }
#send-button.is-predicting { color: #fff; border-color: #eaa2bf; background: linear-gradient(135deg, #e58fb0, #c85483); }
#send-button .button-spinner { display: none; width: 17px; height: 17px; flex: 0 0 17px; border: 2px solid #ffffff50; border-top-color: #fff; border-radius: 50%; }
#send-button.is-predicting > img { display: none; }
#send-button.is-predicting .button-spinner { display: block; animation: spin .85s linear infinite; }
.button-generate { border-color: #e9bdcf; background: #fff9fc; color: var(--pink-dark); }
.button-generate img { opacity: .64; }
.button-generate:hover:not(:disabled) { background: #fce7f0; }
.button-generate:disabled { opacity: .53; }
.button-secondary { border-color: #e9cbd7; background: #fff8fb; color: #865c6d; }
.button-secondary img { opacity: .55; }
.button-secondary:hover:not(:disabled) { background: #f9e7ef; }
.request-status { min-height: 21px; margin: 8px 0 0; color: #967382; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.request-status.is-error, .prompt-status.is-error { color: #af3058; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.section-heading h2 { font-size: 13px; font-weight: 750; margin: 0; }
.prediction-count { color: #a3818e; font-size: 10px; font-variant-numeric: tabular-nums; }
.responses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.response-panel { position: relative; min-width: 0; height: 140px; background: #fff; border: 1px solid #efd9e3; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 0 #f9eaf0; }
.response-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px 4px; height: 48px; }
.provider-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.provider-identity > div { min-width: 0; }
.provider-avatar { display: block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.doubao-avatar { border-radius: 7px; }
.deepseek-avatar { padding: 2px; }
.gpt-avatar { padding: 3px; }
.provider-identity h3 { font-size: 13px; font-weight: 750; line-height: 1.3; margin: 0; }
.provider-status { font-size: 10px; line-height: 1.3; color: #a08792; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.provider-status::before { content: ""; width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.response-tools { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.response-tools .icon-button { width: 29px; height: 30px; }
.response-tools img { width: 14px; height: 14px; flex-basis: 14px; }
.drag-handle { touch-action: none; cursor: grab; }
.response-body { height: 85px; padding: 6px 13px 8px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #e9bccf transparent; }
.response-body.is-empty { color: #b59aa6; }
.response-panel.has-speech { height: auto; }
.response-speech { min-height: 95px; padding: 8px 12px 9px; border-top: 1px solid #f4e2ea; background: #fffafd; }
.speech-caption { min-height: 15px; color: #a07e8c; font-size: 10px; line-height: 1.5; }
.speech-controls { display: flex; align-items: center; gap: 9px; height: 34px; margin-top: 3px; }
.speech-play { width: 30px; height: 30px; color: var(--pink-dark); background: #fce6ef; border: 1px solid #efccdc; }
.speech-play img { opacity: .65; width: 14px; height: 14px; flex-basis: 14px; }
.speech-play:disabled { opacity: .4; }
.speech-spinner { display: none; width: 14px; height: 14px; border: 1.5px solid #e9c2d2; border-top-color: var(--pink); border-radius: 50%; }
.speech-play[aria-busy="true"] img { display: none; }
.speech-play[aria-busy="true"] .speech-spinner { display: block; animation: spin .85s linear infinite; }
.speech-seek { display: block; min-width: 0; flex: 1; width: 0; height: 24px; margin: 0; accent-color: var(--pink); cursor: pointer; }
.speech-seek:disabled { opacity: .4; cursor: default; }
.speech-seek:focus-visible, .speech-download:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.speech-download { width: 30px; height: 30px; color: inherit; }
.speech-download img { width: 15px; height: 15px; }
.speech-download[aria-disabled="true"] { opacity: .3; cursor: default; pointer-events: none; }
.speech-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 21px; margin-top: 1px; color: #a07e8c; font-size: 10px; line-height: 1.5; }
.speech-status { min-width: 0; overflow-wrap: anywhere; }
.speech-status.is-error { color: #af3058; }
.speech-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.response-panel[data-state="ready"] .provider-status, .response-panel[data-state="success"] .provider-status { color: #348777; }
.response-panel[data-provider="deepseek"] .provider-identity h3 { color: #4a68a9; }
.response-panel[data-provider="gpt"] .provider-identity h3 { color: #378173; }
.response-panel[data-state="loading"] .provider-status { color: #c3527e; }
.response-panel[data-state="loading"] .provider-status::before { width: 8px; height: 8px; background: transparent; border: 1.5px solid #f1d4df; border-top-color: #c3527e; animation: spin .75s linear infinite; }
.response-panel[data-state="loading"] .response-body { background-image: linear-gradient(90deg, #fcecf3 45%, transparent 45%), linear-gradient(90deg, #fcf2f6 75%, transparent 75%); background-size: calc(100% - 28px) 6px; background-position: 13px 41px, 13px 54px; background-repeat: no-repeat; }
.response-panel[data-state="error"] .provider-status, .response-panel[data-state="error"] .response-body { color: #af3058; }
.response-panel[data-state="success"] { border-color: #e5bbcf; box-shadow: 0 2px 0 #f6e2ec, 0 4px 16px #d9437c08; }
.response-panel[data-state="success"] .response-body { animation: answer-arrive .38s ease-out both; }
.response-panel[data-state="success"]::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, #f2bfd300, #df84ac, #9bc7c2, #f2bfd300); pointer-events: none; animation: answer-light .9s ease-out both; }
.response-panel.is-dragging { border-color: #d76f96; box-shadow: 0 4px 16px #bb64802b; background: #fff5f9; }
.response-panel.is-dragging, .response-panel.is-dragging .response-body { animation: none; }
body.is-reordering, body.is-reordering * { cursor: grabbing; user-select: none; }
.reorder-menu { position: absolute; right: 8px; top: 46px; display: flex; background: #fff4f8; border: 1px solid #e9bdcf; box-shadow: 0 3px 10px #9e476220; padding: 3px; border-radius: 6px; z-index: 2; }
.reorder-menu button { display: grid; place-items: center; width: 33px; height: 32px; border: 0; border-radius: 4px; background: transparent; }
.reorder-menu button:hover { background: #f8deea; }
.reorder-menu button:disabled { opacity: .25; }
.reorder-menu img { width: 15px; height: 15px; opacity: .6; }
footer { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; color: #b08c9b; font-size: 10px; }
footer img { opacity: .32; }
dialog { width: min(calc(100% - 28px), 570px); max-height: calc(100dvh - 36px); border: 1px solid #ebbbcf; border-radius: 8px; background: #fff8fb; color: #543b47; padding: 20px; box-shadow: 0 20px 70px #6a2e4c30; overflow: auto; }
dialog::backdrop { background: #5734486b; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.dialog-heading h2 { font-size: 18px; margin: 0; }
.prompt-label { display: block; font-size: 12px; margin-bottom: 8px; color: #976e7f; }
#prompt-input { height: min(43dvh, 350px); min-height: 150px; font-size: 16px; overflow-y: auto; }
.prompt-meta { display: flex; justify-content: space-between; gap: 10px; margin: 7px 0; font-size: 10px; color: #ab8092; }
.prompt-status { min-height: 21px; font-size: 12px; margin: 8px 0 12px; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 3px; }
.prompt-reload { margin-bottom: 14px; }
.site-mascot { position: fixed; right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); width: 40px; height: 50px; object-fit: contain; pointer-events: none; z-index: 3; }
.copy-helper { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; padding: 0; opacity: 0; }
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); margin: 0; padding: 9px 15px; background: #674452; color: #fff; border-radius: 6px; font-size: 12px; box-shadow: 0 4px 16px #74435b20; z-index: 10; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.is-generating img { animation: spin 2s linear infinite; }
.site-header, .composer, .section-heading, .response-panel { animation: page-reveal .45s ease-out backwards; }
.composer { animation-delay: .04s; }
.section-heading { animation-delay: .08s; }
.response-panel:nth-child(1) { animation-delay: .1s; }
.response-panel:nth-child(2) { animation-delay: .15s; }
.response-panel:nth-child(3) { animation-delay: .2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes button-sheen { 0%, 70% { transform: translateX(-140%); } 88%, 100% { transform: translateX(140%); } }
@keyframes page-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes answer-arrive { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes answer-light { from { opacity: 0; } 35% { opacity: 1; } to { opacity: .5; } }
@media (min-width: 760px) {
  .workspace { padding-top: 36px; }
  .site-header { margin-bottom: 38px; }
  h1 { font-size: 28px; }
  .brand-subtitle { font-size: 12px; }
  .brand-mark { width: 48px; height: 60px; flex-basis: 48px; }
  .composer-heading { margin-bottom: 12px; }
  #message { height: 120px; padding: 16px 18px; }
  .composer-actions { margin-top: 14px; }
  .request-status { margin-top: 10px; }
  .composer { margin-bottom: 22px; }
  .section-heading { margin-bottom: 12px; }
  .responses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .response-panel { height: 295px; }
  .response-header { padding: 15px 13px 9px; height: 62px; }
  .provider-identity { gap: 8px; }
  .response-body { height: 219px; padding: 13px 16px; font-size: 14px; line-height: 1.95; }
  footer { margin-top: 29px; }
  .site-mascot { width: 64px; height: 80px; right: 16px; bottom: 16px; }
}
@media (min-width: 760px) and (max-width: 1000px) {
  .response-header { height: 78px; align-items: flex-start; padding-top: 12px; }
  .provider-identity { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 7px; row-gap: 4px; }
  .provider-identity > div { display: contents; }
  .provider-identity h3 { grid-column: 2; grid-row: 1; }
  .provider-status { grid-column: 1 / -1; }
  .response-body { height: 203px; }
  .response-tools .icon-button { width: 25px; }
}
@media (max-width: 370px) {
  .workspace { width: calc(100% - 28px); }
  .brand { gap: 7px; }
  h1 { font-size: 21px; }
  .brand-mark { width: 36px; height: 45px; flex-basis: 36px; }
  .header-actions { gap: 4px; }
  .brand-subtitle { font-size: 10px; }
  .button-primary, .button-secondary, .button-generate { padding: 0 11px; gap: 6px; }
  .composer-actions, .composer-utilities, .form-buttons { gap: 5px; }
  .image-button { width: 32px; }
  .reconnect-button { width: 28px; }
  #stop-button { width: 34px; padding: 0; }
  #stop-button span { display: none; }
}
@media (max-height: 750px) and (max-width: 759px) {
  .workspace { padding-top: 12px; }
  .site-header { margin-bottom: 16px; }
  #message { height: 80px; padding-top: 10px; padding-bottom: 10px; }
  .response-panel { height: 117px; }
  .response-body { height: 59px; padding-top: 4px; line-height: 1.7; }
  .responses { gap: 8px; }
  footer { margin-top: 12px; }
  .prediction-section { margin-right: 32px; }
  .site-mascot { width: 30px; height: 37.5px; right: 5px; bottom: 5px; }
}
@media (max-height: 620px) and (max-width: 759px) {
  .workspace { padding-top: 9px; padding-bottom: 7px; }
  .site-header { margin-bottom: 10px; }
  #message { height: 70px; }
  .composer-heading { margin-bottom: 6px; }
  .composer-actions { margin-top: 7px; }
  .button-primary, .button-secondary, .button-generate { height: 34px; }
  .image-button { height: 34px; }
  .request-status { margin-top: 6px; min-height: 18px; font-size: 10px; }
  .section-heading { margin-bottom: 6px; }
  .response-panel { height: 87px; }
  .response-header { height: 39px; padding-top: 4px; padding-bottom: 1px; }
  .provider-avatar { width: 27px; height: 27px; flex-basis: 27px; }
  .response-body { height: 43px; font-size: 12px; padding-top: 2px; }
  footer { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.history-knowledge-save { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.prediction-knowledge { padding: 8px 0; color: var(--muted, #865969); font-size: 12px; overflow-wrap: anywhere; }
.prediction-knowledge summary { cursor: pointer; }
.prediction-knowledge p { margin: 6px 0; }
.responses { align-items: start; }
.response-panel.has-followups { height: auto; }
.response-followups { border-top: 1px solid #f0d7e2; background: #fffafd; }
.followup-toggle { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 40px; padding: 8px 13px; color: #a92d5d; text-align: left; font-size: 12px; font-weight: 600; border: 0; background: transparent; }
.followup-toggle:disabled { color: #a78d99; }
.followup-toggle > img { width: 14px; height: 14px; flex-basis: 14px; opacity: .55; }
.followup-toggle:hover:not(:disabled) { background: #fff0f6; }
.followup-toggle .followup-chevron { margin-left: auto; transition: transform .18s ease; }
.followup-toggle[aria-expanded="true"] .followup-chevron { transform: rotate(180deg); }
.followup-count { min-width: 18px; color: #99707f; font-size: 11px; font-variant-numeric: tabular-nums; }
[data-followup-body] { padding: 0 12px 10px; }
.followup-thread { max-height: 310px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #e9bccf transparent; margin-bottom: 10px; }
.followup-thread:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.followup-turn + .followup-turn { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0dce5; }
.followup-turn-heading { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: start; gap: 6px; }
.followup-remove { width: 28px; height: 28px; }
.followup-question, .followup-reply { margin: 0; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.followup-question { padding-left: 8px; border-left: 2px solid #dd81a5; color: #a92d5d; font-weight: 600; }
.followup-reply { margin-top: 6px; color: #57414b; }
[data-followup-input] { min-height: 76px; height: 76px; padding: 9px 11px; font-size: 16px; line-height: 1.6; }
.followup-actions { display: flex; align-items: center; justify-content: space-between; min-height: 39px; gap: 8px; margin-top: 4px; }
.followup-length { color: #987582; font-size: 10px; font-variant-numeric: tabular-nums; }
.followup-send, .followup-stop { width: 36px; height: 36px; border: 1px solid #efccdc; background: #fce6ef; }
.followup-send img, .followup-stop img { opacity: .7; }
.followup-status { min-height: 17px; margin: 0; color: #987582; font-size: 11px; overflow-wrap: anywhere; }
.followup-status.is-error { color: #af3058; }
.response-followups[data-followup-state="loading"] .followup-status { color: #a92d5d; }
.history-followups { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #edc3d3; }
.history-followups h4 { margin: 0 0 8px; color: #987582; font-size: 11px; font-weight: 500; }
.history-followups .followup-question, .history-followups .followup-reply { font-size: 12px; }
@media (max-width: 759px) {
  .followup-actions { padding-right: 24px; }
}
@media (min-width: 760px) and (max-width: 1199px) {
  .followup-actions { padding-right: 52px; }
}
@media (min-width: 760px) {
  .followup-toggle { padding-left: 16px; padding-right: 16px; }
  [data-followup-body] { padding-left: 15px; padding-right: 15px; }
}
