/* Antillia LLM test tab. Tokens follow antillia.tech site.css (dark only, like the site). */
:root{color-scheme:dark;--bg:#101216;--surface:#181c22;--surface-2:#1f242c;--ink:#f4f2ee;
  --muted:#b0b5bd;--line:#30353c;--orange:#ff681f;--teal:#66dece;--red:#ff7a7a;--radius:16px;
  --gutter:clamp(16px,4.8vw,88px)}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;min-height:100vh}
button,textarea{font:inherit;color:inherit}
h1{font-family:Manrope,'DM Sans',system-ui,sans-serif;font-weight:500;letter-spacing:-.05em;
  line-height:1.1;margin:0;font-size:clamp(32px,6vw,56px)}
em{font-style:normal;color:var(--orange)}
p{margin:0;color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
:focus-visible{outline:2px solid var(--teal);outline-offset:2px}

.top{display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:20px var(--gutter);border-bottom:1px solid var(--line)}
.brand{font-family:Manrope,'DM Sans',sans-serif;font-weight:700;letter-spacing:-.03em;
  font-size:20px;color:var(--ink);text-decoration:none}
.status{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);
  border:1px solid var(--line);border-radius:999px;padding:4px 12px}
.status i{width:8px;height:8px;border-radius:50%;background:var(--muted)}
.status[data-state=online] i{background:var(--teal);box-shadow:0 0 0 4px #66dece22}
.status[data-state=busy] i{background:var(--orange)}
.status[data-state=offline] i{background:var(--red)}

.wrap{max-width:860px;margin:0 auto;padding:40px var(--gutter) 32px}
.intro{display:grid;gap:12px;margin-bottom:28px}
.model{font-size:14px}.model b{color:var(--ink);font-weight:600}

.chat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  display:flex;flex-direction:column;min-height:min(70vh,640px)}
.log{list-style:none;margin:0;padding:20px;display:flex;flex-direction:column;gap:14px;
  flex:1;overflow-y:auto;max-height:62vh}
.log:empty{display:none}
.empty{flex:1;display:grid;place-items:center;padding:20px;font-size:15px;text-align:center}
.empty[hidden]{display:none}
.msg{max-width:85%;padding:10px 14px;border-radius:14px;white-space:pre-wrap;
  overflow-wrap:anywhere;word-break:normal}
.msg.user{align-self:flex-end;background:var(--orange);color:#111;border-bottom-right-radius:4px}
.msg.assistant{align-self:flex-start;background:var(--surface-2);border:1px solid var(--line);
  border-bottom-left-radius:4px}
.msg.assistant em{color:var(--ink);font-style:italic}
.msg code{font-family:ui-monospace,Consolas,monospace;font-size:.92em;background:var(--bg);
  padding:1px 5px;border-radius:6px}
.msg .note{display:block;margin-top:6px;font-size:13px;color:var(--muted)}
.msg .note.err{color:var(--red)}
.msg.pending::after{content:'';display:inline-block;width:8px;height:1em;margin-left:2px;
  vertical-align:-2px;background:var(--muted);animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.msg.pending::after{animation:none}}

.composer{border-top:1px solid var(--line);padding:14px;display:grid;gap:10px}
.composer textarea{width:100%;resize:vertical;min-height:52px;max-height:40vh;background:var(--bg);
  border:1px solid var(--line);border-radius:12px;padding:12px 14px;line-height:1.5}
.composer textarea:disabled{opacity:.5}
.bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.count{margin-left:auto;font-size:13px;color:var(--muted)}
.send,.ghost{border-radius:999px;padding:8px 18px;cursor:pointer;border:1px solid var(--line);
  background:transparent}
.send{background:var(--ink);color:#111;border-color:var(--ink);font-weight:600}
.send:disabled,.ghost:disabled{opacity:.45;cursor:default}
.ghost:hover:not(:disabled){border-color:var(--muted)}

@media (max-width:560px){.wrap{padding-top:24px}.msg{max-width:92%}.count{order:-1;width:100%;
  text-align:right}.log{max-height:58vh}}
