:root,:root[data-theme=classic]{--font: "Helvetica Neue", Helvetica, Arial, sans-serif;--fs: 14px;--lh: 1.42857143;--msg-size: 14px;--msg-lh: 1.45;--bg: #f5f5f5;--surface: #fff;--surface-hover: #e6e6e6;--surface-pressed: #d4d4d4;--text: #333;--muted: #777;--border: #ddd;--border-strong: #ccc;--stroke: #ccc;--stroke-hover: #adadad;--accent: #f07d00;--accent-hover: #d36e00;--accent-pressed: #b85f00;--accent-light: #fdf0e0;--accent-border: #f5c58d;--accent-btn-border: #d36e00;--on-accent: #fff;--link: #b85f00;--danger: #d9534f;--danger-bg: #f2dede;--danger-border: #ebccd1;--danger-text: #a94442;--radius: 4px;--radius-lg: 4px;--btn-radius: 4px;--btn-weight: 400;--btn-pad: 6px 12px;--input-h: 34px;--input-pad: 6px 12px;--shadow: 0 1px 1px rgba(0,0,0,.05);--head-bg: #f5f5f5;--head-border: 1px solid #ddd;--head-pad: 10px 15px;--title-size: 16px;--title-weight: 500;--assistant-left: 1px solid var(--border);--focus-border: #f07d00;--focus-bottom: #f07d00;--focus-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(240,125,0,.6);--input-inset: inset 0 1px 1px rgba(0,0,0,.075)}:root[data-theme=adriana_facelift]{--font: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, sans-serif;--fs: 14px;--lh: 1.4;--msg-size: 13px;--msg-lh: 1.6;--bg: #faf9f8;--surface: #fff;--surface-hover: #f3f2f1;--surface-pressed: #edebe9;--text: #323130;--muted: #605e5c;--border: #edebe9;--border-strong: #c8c6c4;--stroke: #d1d1d1;--stroke-hover: #adadad;--accent: #ff8c00;--accent-hover: #ea8000;--accent-pressed: #d57400;--accent-light: #fff4e6;--accent-border: #ffd09a;--accent-btn-border: #ff8c00;--on-accent: #fff;--link: #b85f00;--danger: #a4262c;--danger-bg: #fadde0;--danger-border: #f1b8bb;--danger-text: #8e1f24;--radius: 2px;--radius-lg: 4px;--btn-radius: 2px;--btn-weight: 600;--btn-pad: 6px 14px;--input-h: 32px;--input-pad: 4px 8px;--shadow: 0 1.6px 3.6px rgba(0,0,0,.132), 0 .3px .9px rgba(0,0,0,.108);--head-bg: #fff;--head-border: 2px solid #ff8c00;--head-pad: 12px 20px;--title-size: 18px;--title-weight: 600;--assistant-left: 3px solid var(--accent);--focus-border: #d1d1d1;--focus-bottom: #ff8c00;--focus-shadow: 0 1px 0 #ff8c00;--input-inset: none}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:var(--fs)/var(--lh) var(--font)}#app{display:flex;flex-direction:column;height:100vh;height:100dvh}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.head{display:flex;align-items:center;gap:12px;padding:var(--head-pad);background:var(--head-bg);border-bottom:var(--head-border)}.head-text{flex:1;min-width:0}.head h1{margin:0;font-size:var(--title-size);font-weight:var(--title-weight);color:var(--text)}.head p{margin:2px 0 0;font-size:12px;color:var(--muted)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:var(--btn-radius);cursor:pointer}.icon-btn:hover{background:var(--surface-hover);color:var(--text)}.list{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}.list::-webkit-scrollbar{width:6px;height:6px}.list::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:3px}.msg{max-width:92%;padding:10px 14px;border-radius:var(--radius-lg);font-size:var(--msg-size);line-height:var(--msg-lh);overflow-wrap:anywhere}.msg.assistant{align-self:flex-start;background:var(--surface);border:1px solid var(--border);border-left:var(--assistant-left);box-shadow:var(--shadow)}.msg.user{align-self:flex-end;background:var(--accent-light);border:1px solid var(--accent-border);white-space:pre-wrap}.msg.queued{opacity:.7}.msg p{margin:0 0 8px}.msg>:last-child{margin-bottom:0}.msg ul,.msg ol{margin:0 0 8px;padding-left:20px}.msg li{margin-bottom:3px}.msg a{color:var(--link);text-decoration:underline}.msg a:hover{color:var(--accent-pressed)}.msg code{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:0 4px;font-size:12px}.working{color:var(--muted)}.dots:after{content:"…";display:inline-block;width:1em;animation:dots 1.2s steps(4,end) infinite;overflow:hidden;vertical-align:bottom}@keyframes dots{0%{width:0}to{width:1em}}@media (prefers-reduced-motion: reduce){.dots:after{animation:none;width:1em}}.welcome{margin:auto 0;padding:8px 0}.welcome h2{margin:0 0 6px;font-size:20px;font-weight:var(--title-weight)}.welcome p{margin:0 0 14px;color:var(--muted);font-size:13px;line-height:1.5;max-width:46ch}.chips{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.chip{text-align:left;white-space:normal}.alert{align-self:stretch;padding:12px 16px;font-size:13px;background:var(--danger-bg);color:var(--danger-text);border:1px solid var(--danger-border);border-left:4px solid var(--danger);border-radius:var(--radius-lg)}.composer{padding:12px 16px 10px;background:var(--surface);border-top:1px solid var(--border)}.composer-row{display:flex;align-items:flex-end;gap:8px}.input{flex:1;min-width:0;resize:none;min-height:var(--input-h);max-height:120px;padding:var(--input-pad);font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius-lg);box-shadow:var(--input-inset);line-height:1.4}.input:hover{border-color:var(--stroke-hover)}.input:focus{outline:none;border-color:var(--focus-border);border-bottom-color:var(--focus-bottom);box-shadow:var(--focus-shadow)}.input::placeholder{color:var(--muted);opacity:1}.hint{margin:6px 0 0;font-size:11px;color:var(--muted)}.btn{display:inline-flex;align-items:center;gap:6px;padding:var(--btn-pad);min-height:var(--input-h);font:inherit;font-weight:var(--btn-weight);line-height:1.4;border:1px solid transparent;border-radius:var(--btn-radius);cursor:pointer;white-space:nowrap;transition:background-color .1s,border-color .1s}.btn-primary{background:var(--accent);border-color:var(--accent-btn-border);color:var(--on-accent)}.btn-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn-primary:active:not(:disabled){background:var(--accent-pressed);border-color:var(--accent-pressed)}.btn-default{background:var(--surface);border-color:var(--border-strong);color:var(--text)}.btn-default:hover{background:var(--surface-hover);border-color:var(--stroke-hover)}.btn-default:active{background:var(--surface-pressed)}.btn:disabled{opacity:.65;cursor:not-allowed}@media (max-width: 420px){.list{padding:12px}.composer{padding:10px 12px 8px}.msg{max-width:96%}}
