/* Companion navigation stays in the existing left gutter, clear of documents. */
#home-shortcut{position:fixed;left:6px;top:58px;z-index:20;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #c6efff;border-radius:50%;color:#14527c;background:radial-gradient(circle at 30% 20%,#fff,#eafaff 30%,#9edcff 65%,#2c83d8);box-shadow:inset 0 1px 2px #fff,0 0 8px #e4f8ff66,0 0 16px #58baff30}
#home-shortcut:hover{color:#fff;background:var(--button-hover-fill,linear-gradient(120deg,#007dba,#079ea0));box-shadow:0 0 12px #82eeff88,0 0 24px #00c8c244}
#home-shortcut:focus-visible{outline:2px solid #87eeff;outline-offset:3px}
.chat-home.has-chat{height:calc(100dvh - 130px);min-height:400px;justify-content:flex-start;gap:12px;padding-bottom:10px}
.chat-home.has-chat .world-stage,.chat-home.has-chat .chat-greeting{display:none}
#chat-heading{width:min(840px,100%);display:flex;align-items:center;justify-content:space-between;gap:16px;color:#b8d5ed;font-size:15px;padding:8px 0}
#chat-messages{width:min(840px,100%);min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:12px 20px 30px 4px;scrollbar-width:thin;scrollbar-color:#386080 transparent}
.chat-message{margin:0 0 24px;line-height:1.75;font-size:17px;color:#e1effa;overflow-wrap:anywhere}
.chat-speaker{display:block;font-size:12px;font-weight:650;letter-spacing:.08em;color:#85b5d6;margin:0 0 8px}
.chat-message-text{white-space:pre-wrap}
.chat-user{margin-left:auto;width:fit-content;max-width:88%;padding:14px 20px;border:1px solid #285a7b;border-radius:22px 22px 5px 22px;background:linear-gradient(120deg,#133451,#0d2945)}
.chat-assistant{padding:8px 4px 4px;max-width:100%}
.chat-assistant .chat-speaker{color:#61d2f4}
.chat-reply-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:12px;color:#a1b8ce;font-size:12px}
.chat-reply-actions:empty{display:none}
.chat-reply-actions button,#new-chat{color:#abdff5;border:1px solid #315870;padding:6px 12px;border-radius:18px;background:#0c263c}
.chat-reply-actions button:hover,#new-chat:hover{color:#fff;background:var(--button-hover-fill);box-shadow:var(--button-hover-glow)}
.chat-home.has-chat .chat-composer{flex-shrink:0;width:min(840px,100%)}
.chat-home.has-chat .chat-composer #chat-input{text-align:left}
#chat-status{color:#9dbdd7;font-size:12px;min-height:0;margin:0;text-align:center;max-width:800px}
#chat-status:empty{display:none}
.chat-home.has-chat .chat-note{margin:0;font-size:11px}
.is-streaming:after{content:'';display:inline-block;width:6px;height:17px;border-radius:3px;background:#71dcff;margin-left:5px;vertical-align:middle;animation:chat-caret 1s ease-in-out infinite}
@keyframes chat-caret{50%{opacity:.3}}
@media(max-width:740px){.chat-home.has-chat{height:calc(100dvh - 155px);min-height:340px}#chat-messages{padding-right:6px}.chat-message{font-size:16px}.chat-user{max-width:94%;padding:12px 15px}#chat-heading{font-size:14px}.chat-home.has-chat .chat-composer{column-gap:8px}}
@media(prefers-reduced-motion:reduce){.is-streaming:after{animation:none}}
