#floppy-launcher{position:fixed;right:24px;bottom:24px;z-index:65;display:flex;align-items:center;gap:10px;padding:8px 18px 8px 8px;border:1px solid #0b6b4a;border-radius:99px;background:#0b6b4a;color:#fff;font-family:inherit;font-weight:600;font-size:14px;box-shadow:0 6px 24px #143d3026;cursor:pointer}
.floppy-avatar{display:inline-block;flex:0 0 auto;width:44px;height:44px;border:2px solid #ffffffb3;border-radius:50%;background:#eef3ed url('/assets/learn/floppy-introduction.jpg') 51% 33%/188% no-repeat}
#ask-floppy{width:min(460px,calc(100vw - 24px));height:min(730px,calc(100dvh - 32px));max-width:none;max-height:none;margin:auto 20px 20px auto;padding:0;border:1px solid #d6dee8;border-radius:18px;background:#fff;color:#172331;box-shadow:0 20px 80px #102b3333;overflow:hidden}
#ask-floppy::backdrop{background:#142c322e}
#ask-floppy [hidden]{display:none!important}
#ask-floppy .floppy-layout{height:100%;display:flex;flex-direction:column}
.floppy-header{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid #dce5e0;background:#f2f7f4;flex-shrink:0}
.floppy-header h2{margin:0;font-size:19px;letter-spacing:-.03em}
.floppy-header p{margin:4px 0 0;font-size:11px;color:#53675b}
.floppy-header button{margin-left:auto;border:0;border-radius:6px;min-width:40px;min-height:40px;background:#e6eee8;color:#244b38;font-size:22px;cursor:pointer}
.floppy-ticker{display:inline-block;margin-left:7px;font:600 11px monospace;color:#0b6b4a;background:#e3eee6;border-radius:4px;padding:3px 5px;vertical-align:middle}
.floppy-scroll{padding:20px;overflow-y:auto;flex:1;min-height:0}
.floppy-welcome{margin:0 0 14px;font-size:15px;line-height:1.6}
.floppy-mode{font:600 11px monospace;text-transform:uppercase;letter-spacing:.05em;color:#0b6b4a;margin:0 0 12px}
.floppy-prompts{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 16px}
.floppy-prompts button{background:#fff;border:1px solid #cadbd1;color:#24523d;text-align:left;border-radius:8px;padding:9px 10px;font:inherit;font-size:12px;line-height:1.4;cursor:pointer}
.floppy-prompts button:hover{background:#eff6f1}
.floppy-prompts button:disabled{opacity:.55;cursor:wait}
.floppy-home-presets{display:flex;gap:7px}
.floppy-home-presets button{font-weight:600;border-color:#a9c6b5;background:#f5faf7}
.floppy-learning{font-size:12px;color:#24523d;margin-bottom:16px}
.floppy-learning summary{cursor:pointer;padding:8px 0}
.floppy-public-link{display:block;margin:12px 0;font-weight:600}
.floppy-message{margin:12px 0;padding:13px 14px;border:1px solid #dce5df;border-radius:12px;background:#f5f8f6;font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.floppy-message[data-role=user]{margin-left:28px;background:#e7f1eb;border-color:#c8ddd0}
.floppy-message small{display:block;font:600 10px monospace;color:#64726a;margin-bottom:5px;letter-spacing:.05em;white-space:normal}
.floppy-message details{font-size:11px;white-space:normal;margin-top:10px;border-top:1px solid #d2dfd6;padding-top:8px}
.floppy-message summary{cursor:pointer;color:#0b6b4a}
.floppy-message .floppy-source-text{white-space:pre-wrap;font-size:13px;line-height:1.75}
.floppy-message ul{padding-left:16px;margin-bottom:0}
.floppy-message a{color:#0b6b4a}
.floppy-status{font-size:12px;color:#73551b;line-height:1.6;margin:10px 0}
.floppy-access{padding:12px;border:1px solid #d5e2d9;border-radius:9px;font-size:12px;line-height:1.6;background:#f8faf8}
.floppy-access a{color:#0b6b4a;font-weight:600}
.floppy-compose{padding:14px 18px;border-top:1px solid #dce5e0;background:#fff;flex-shrink:0}
.floppy-compose label{font-size:12px;font-weight:600;display:block;margin-bottom:6px}
.floppy-compose textarea{box-sizing:border-box;resize:none;width:100%;height:70px;border:1px solid #c5d6ca;border-radius:8px;padding:10px;font:inherit;font-size:13px;color:#172331;background:#fff}
.floppy-compose textarea:focus{outline:2px solid #0b6b4a;outline-offset:2px}
.floppy-compose footer{display:flex;align-items:center;gap:8px;margin:8px 0 0;padding:0;border:0;background:transparent}
.floppy-compose button{padding:9px 14px;border-radius:7px;border:0;background:#0b6b4a;color:#fff;font-weight:600;cursor:pointer;white-space:nowrap}
.floppy-compose button:disabled{opacity:.55;cursor:wait}
.floppy-compose button[data-floppy-clear]{background:#eff3f0;color:#465c4f}
.floppy-usage{margin-left:auto;font-size:10px;color:#64726a;text-align:right;line-height:1.5}
.floppy-privacy{font-size:10px;line-height:1.55;color:#64726a;margin:10px 0 0}
@media(max-width:600px){#floppy-launcher{right:12px;bottom:14px}#ask-floppy{width:calc(100vw - 16px);height:calc(100dvh - 20px);margin:auto 8px 10px;border-radius:14px}.floppy-scroll{padding:16px}.floppy-header{padding:14px 16px}.floppy-compose footer{flex-wrap:wrap}.floppy-usage{flex-basis:100%;text-align:left;margin:0}}
/* Small phones: icon-only launcher so it doesn't cover page content. Name stays via aria-label. */
@media(max-width:390px){#floppy-launcher{padding:3px;gap:0;right:8px;bottom:10px}#floppy-launcher .floppy-avatar{width:34px;height:34px}#floppy-launcher .floppy-launcher-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}}
