:root{--radius: 12px;--font: "DM Sans", system-ui, sans-serif}:root,[data-theme=light]{color-scheme:light;--bg: #f4f5f7;--surface: #ffffff;--surface-elevated: #eef0f4;--border: #d8dde6;--text: #1a1d24;--text-muted: #5c6573;--accent: #3d7aed;--accent-dim: #2f62c4;--accent-hover: #356fd9;--user-bg: #e4ebf8;--user-border: #c5d0e4;--assistant-bg: var(--surface-elevated);--error-bg: #fde8e8;--error-text: #9b1c1c;--error-border: #f5b8b8;--btn-send-text: #ffffff}[data-theme=dark]{color-scheme:dark;--bg: #0f1115;--surface: #181b22;--surface-elevated: #1e222b;--border: #2a303c;--text: #e8eaed;--text-muted: #9aa3b2;--accent: #6b9fff;--accent-dim: #4a7ad4;--accent-hover: #7dadff;--user-bg: #243044;--user-border: #33415a;--error-bg: #3a1f24;--error-text: #ffb4b4;--error-border: #5c2a32;--btn-send-text: #0a0c10}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased}.app{display:flex;flex-direction:column;height:100%;max-width:48rem;margin:0 auto;padding:1rem 1.25rem 1.25rem}.header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border);flex-shrink:0}.header-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:flex-end;flex-shrink:0}.appearance-control{display:inline-flex;padding:2px;border-radius:8px;border:1px solid var(--border);background:var(--surface-elevated);gap:2px}.appearance-segment{font:inherit;font-size:.8125rem;font-weight:500;padding:.35rem .55rem;border:none;border-radius:6px;background:transparent;color:var(--text-muted);cursor:pointer;transition:background .15s,color .15s}.appearance-segment:hover{color:var(--text)}.appearance-segment[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000000f}[data-theme=dark] .appearance-segment[aria-pressed=true]{box-shadow:0 1px 2px #00000059}.title{margin:0;font-size:1.25rem;font-weight:600;letter-spacing:-.02em}.subtitle{margin:.15rem 0 0;font-size:.875rem;color:var(--text-muted)}.main{display:flex;flex-direction:column;flex:1;min-height:0;gap:.75rem;padding-top:1rem}.history{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.history-scroll{flex:1;overflow-y:auto;padding:1rem}.history-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:12rem;text-align:center;color:var(--text-muted)}.history-empty-title{margin:0;font-size:1rem;color:var(--text);font-weight:500}.history-empty-hint{margin:.5rem 0 0;font-size:.875rem;max-width:20rem}.message-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.75rem}.bubble{padding:.65rem .85rem;border-radius:10px;max-width:92%}.bubble-user{margin-left:auto;background:var(--user-bg);border:1px solid var(--user-border)}.bubble-assistant{margin-right:auto;background:var(--assistant-bg);border:1px solid var(--border)}.bubble-label{display:block;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:.35rem}.bubble-content{margin:0;white-space:pre-wrap;word-break:break-word;font-size:.9375rem}.typing{display:flex;gap:.35rem;padding:.25rem 0}.typing span{width:6px;height:6px;border-radius:50%;background:var(--text-muted);animation:bounce 1.2s ease-in-out infinite}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,80%,to{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}.prompt{display:flex;gap:.5rem;align-items:flex-end;flex-shrink:0}.prompt-input{flex:1;resize:none;font:inherit;font-size:.9375rem;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.65rem .85rem;min-height:2.75rem;max-height:10rem;line-height:1.45}.prompt-input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}.prompt-input:disabled{opacity:.6}.btn-send{flex-shrink:0;font:inherit;font-size:.875rem;font-weight:600;padding:.65rem 1.1rem;border:none;border-radius:var(--radius);background:var(--accent);color:var(--btn-send-text);cursor:pointer;transition:background .15s}.btn-send:hover:not(:disabled){background:var(--accent-hover)}.btn-send:disabled{opacity:.45;cursor:not-allowed}.btn-ghost{font:inherit;font-size:.8125rem;padding:.4rem .65rem;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--text-muted);cursor:pointer}.btn-ghost:hover:not(:disabled){color:var(--text);border-color:var(--text-muted)}.btn-ghost:disabled{opacity:.4;cursor:not-allowed}.banner{font-size:.875rem;padding:.5rem .75rem;border-radius:8px;flex-shrink:0}.banner-error{background:var(--error-bg);color:var(--error-text);border:1px solid var(--error-border)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
