.brand { min-height: 44px; white-space: nowrap; }
.btn, .kpi .v { white-space: nowrap; }
@media (max-width: 820px) {
.nav .wrap { gap: 10px; }
.menu-btn { margin-left: 0; }
.nav .wrap > .btn-primary { display: inline-flex; margin-left: auto; padding: 8px 14px; }
}
@media (max-width: 480px) {
.waitlist input { flex-basis: 100%; }
.waitlist .btn { width: 100%; justify-content: center; }
.kpi .v { font-size: 17px; }
}
@media (max-width: 360px) {
.brand { font-size: 15px; }
.nav .wrap > .btn-primary, .menu-btn { padding: 8px 12px; }
.xs-hide { display: none; }
}
/* Polish */
.foot-cols .btn-primary { background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 500; }
.foot-cols .btn-primary:hover { color: var(--bg); box-shadow: var(--shadow); }
.media-hero .media-window { width: min(90%, 760px); }
.media-hero .mini { font-size: 14px; padding: 20px !important; gap: 10px; }
.media-hero .mini-row { padding: 12px 14px; }
.dots-band { background: radial-gradient(60% 70% at 50% 50%, var(--accent-soft), transparent 75%); }
.car-nav[hidden] { display: none !important; }
/* Chat: typing indicator, busy composer, New chat on phones */
.msg p.typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.msg p.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite ease-in-out; }
.msg p.typing i:nth-child(2) { animation-delay: .15s; } .msg p.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.composer form[aria-busy="true"] textarea { opacity: .6; }
.composer .newchat { justify-self: start; font-size: 13px; color: var(--body); }
@media (min-width: 761px) { .composer .newchat { display: none; } }
@media (prefers-reduced-motion: reduce) { .msg p.typing i { animation: none; opacity: .6; } }
/* Chat: answers with code, links and tool activity */
.msg.sys .body { display: grid; gap: 10px; min-width: 0; }
.msg.sys .body p { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .body a, .msg .tool-log a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.msg .body p code { font: 13px var(--font-mono); background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.codeblock { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); min-width: 0; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font: 12px var(--font-mono); color: var(--muted); border-bottom: 1px solid var(--line); }
.code-bar button { border: 0; background: none; color: var(--body); font-size: 12px; font-weight: 500; cursor: pointer; padding: 6px 4px; min-height: 32px; }
.code-bar button:hover { color: var(--fg); }
.codeblock pre { margin: 0; padding: 12px 14px; overflow-x: auto; font: 13px/1.5 var(--font-mono); color: var(--fg); }
.tool-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.tool-log > li { padding-left: 18px; position: relative; overflow-wrap: anywhere; }
.tool-log > li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.tool-log > li.ok::before { background: #2fa36b; } .tool-log > li.failed::before { background: #d64545; }
.tool-log > li.pending::before { animation: typing 1.2s infinite ease-in-out; }
.tool-log .sources { list-style: none; padding: 4px 0 0; margin: 0; display: grid; gap: 2px; }
.tool-log details { margin-top: 6px; display: grid; gap: 6px; } .tool-log summary { cursor: pointer; color: var(--body); }
.tool-log[hidden] { display: none; }
