.chat-toggle{position:fixed;right:24px;bottom:24px;z-index:1080;display:flex;align-items:center;gap:10px;border:1px solid #65e6c0;background:#20c997;color:#08241c;padding:15px 21px;border-radius:999px;box-shadow:0 8px 40px #0007;font:700 14px Inter,sans-serif;cursor:pointer}
.chat-toggle span{font-size:23px}.chat-toggle:hover{background:#70e7c4}.chat-toggle:focus-visible,.bt-chat :focus-visible{outline:3px solid #8de9ce;outline-offset:3px}
.bt-chat[hidden],.bt-chat [hidden]{display:none!important}.bt-chat{position:fixed;right:24px;bottom:94px;width:min(440px,calc(100vw - 32px));height:min(660px,calc(100dvh - 118px));z-index:1080;background:#151d1b;color:#e6eee9;border:1px solid #496158;border-radius:20px;box-shadow:0 18px 80px #0009;display:flex;flex-direction:column;overflow:hidden;font:14px/1.5 Inter,sans-serif}
.bt-chat-header{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 15px;background:linear-gradient(120deg,#1b3930,#17251f);flex:none}.bt-chat-eyebrow{font-size:9px;letter-spacing:.18em;color:#8ee7cc;font-weight:700}.bt-chat h2{font-size:18px;margin:5px 0 0;font-weight:700}.bt-icon-button{border:0;background:transparent;color:#e0efe7;font-size:28px;line-height:1;padding:4px 8px;cursor:pointer}
.bt-chat-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 20px;border-bottom:1px solid #30423a;font-size:10px;color:#a7b9af;flex:none}.bt-chat-toolbar button{border:0;background:none;color:#8ee7cc;padding:2px;cursor:pointer}.bt-chat-toolbar button:first-of-type{margin-left:auto}
.bt-chat-history{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#496158 transparent;padding:20px;display:flex;flex-direction:column;gap:16px}.bt-message{max-width:95%;padding:14px 16px;border-radius:14px;overflow-wrap:anywhere;flex:none}.bt-message p{white-space:pre-wrap;margin:5px 0 0}.bt-message-assistant{background:#23332b;border:1px solid #344d3e;align-self:flex-start}.bt-message-user{background:#1b5341;border:1px solid #2b785e;align-self:flex-end}.bt-message-label{font-size:9px;letter-spacing:.12em;color:#9bbcaf;font-weight:700}.bt-message-user .bt-message-label{color:#b8e9d4}.bt-message-error{color:#ffd39b}.bt-message details{font-size:11px;margin-top:9px;color:#b8cfc2}.bt-message summary{cursor:pointer;color:#83e1bd}.bt-message details p{font-size:11px;max-height:190px;overflow-y:auto}.bt-message .bt-citation{color:#9aeacb;text-decoration:underline;text-underline-offset:3px}
.bt-chat-status{min-height:22px;margin:0;padding:4px 20px;color:#b8cec2;font-size:11px;flex:none}.bt-chat-status[data-busy="true"]:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#65dfb0;margin-right:8px;animation:bt-pulse 1s ease-in-out infinite alternate}@keyframes bt-pulse{to{opacity:.2}}
.bt-chat-composer{display:flex;align-items:flex-end;gap:8px;margin:7px 16px 0;padding:9px;border:1px solid #476c57;border-radius:12px;background:#0f1712;flex:none}.bt-chat-composer textarea{resize:none;flex:1;min-width:0;background:transparent;color:#f0f7f2;border:0;outline-offset:0;padding:5px;font:inherit;max-height:130px}.bt-chat-composer textarea::placeholder{color:#91aa9b}.bt-chat-composer button,.bt-chat-login button{background:#20c997;color:#08241c;border:0;border-radius:8px;font:700 12px Inter,sans-serif;padding:10px 12px;cursor:pointer}.bt-chat button:disabled{opacity:.45;cursor:not-allowed}.bt-chat-note{font-size:9px;text-align:center;color:#92a99b;margin:8px 12px 12px;flex:none}.bt-chat-login{margin:8px 16px;padding:12px;border:1px solid #586947;border-radius:10px;font-size:11px;flex:none}.bt-login-row{display:flex;gap:8px;margin-top:8px}.bt-login-row input{min-width:0;width:100%;background:#0f1712;border:1px solid #647665;border-radius:6px;color:white;padding:7px}.bt-chat-login p{color:#ffd39b;margin:5px 0 0}
@media(max-width:575px){.bt-chat{right:12px;bottom:84px;width:calc(100vw - 24px);height:min(640px,calc(100dvh - 104px));border-radius:16px}.chat-toggle{right:16px;bottom:16px;padding:12px 17px}.bt-chat-history{padding:14px}.bt-chat-header{padding:15px 16px}}
@media(prefers-reduced-motion:reduce){.bt-chat-status[data-busy="true"]:before{animation:none}}
.studio-steps{padding-left:1.2rem;color:#aad5c4;line-height:2.2;font-size:.9rem}.studio-concept{border-top:1px solid #40534d}.studio-concept summary{cursor:pointer;color:#8ee7cc;font-size:.9rem}.studio-concept dl{font-size:.9rem}.studio-concept dt{color:#a2bdb2;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;margin-top:14px}.studio-concept dd{color:#e0eee7;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.studio-badge{color:#8ee7cc;background:#153f30;border:1px solid #38694f;border-radius:99px;padding:4px 10px;font-size:.7rem}.studio-manuscript{white-space:pre-wrap;overflow-wrap:anywhere;max-height:500px;overflow-y:auto;background:#111b16;border:1px solid #344c3e;border-radius:10px;padding:20px;color:#d7e9de;font:14px/1.8 Georgia,serif}.bt-chat-actions{display:flex;gap:8px;flex-wrap:wrap;padding:8px 16px 0}.bt-chat-actions button{border:1px solid #4f8163;border-radius:7px;padding:7px 10px;color:#9ee8bf;background:#203e2d;font-size:11px;cursor:pointer}#writing-progress-bar{accent-color:#20c997;height:8px}#genre-assistant{scroll-margin-top:70px}#genre-assistant [hidden]{display:none!important}
