#asuna-companion{position:fixed;left:calc(100vw - 120px);top:calc(100dvh - 235px);width:128px;z-index:9500;font:12px system-ui;color:#f7f3ff;touch-action:none;user-select:none}#asuna-companion button{font:inherit;color:inherit;cursor:pointer}#asuna-companion .asuna-body{display:block;width:100%;height:250px;padding:0;border:0;background:none;cursor:grab}#asuna-companion img{height:100%;width:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 7px #0006)}#asuna-companion[data-moving=true] img{animation:asuna-step .48s ease-in-out infinite alternate}#asuna-companion .asuna-tools{display:flex;justify-content:center;gap:4px}#asuna-companion .asuna-tools button{background:#211b35;border:1px solid #8873b2;border-radius:20px;min-width:32px;min-height:32px;padding:4px 8px}#asuna-companion .asuna-name{display:block;text-align:center;text-shadow:0 1px 4px #000;margin:2px}#asuna-companion:focus-within img,#asuna-companion:hover img{animation-play-state:paused}#asuna-chat-panel{position:fixed;right:16px;bottom:16px;width:min(440px,calc(100vw - 24px));height:min(680px,calc(100dvh - 32px));z-index:9600;background:#101325;color:#fff;border:1px solid #7c669d;border-radius:20px;box-shadow:0 15px 60px #0008;overflow:hidden;display:flex;flex-direction:column}#asuna-chat-panel[hidden]{display:none}#asuna-chat-panel>header{display:flex;align-items:center;gap:12px;padding:12px 16px;font:14px system-ui}#asuna-chat-panel>header strong{flex:1}#asuna-chat-panel>header a{color:#d9c4ff}#asuna-chat-panel>header button{background:none;border:0;color:white;font-size:24px;cursor:pointer;min-width:32px}#asuna-chat-panel iframe{width:100%;flex:1;min-height:0;border:0}#asuna-show{position:fixed;right:16px;bottom:16px;z-index:9500;border:1px solid #8873b2;background:#211b35;color:white;padding:10px 16px;border-radius:24px;cursor:pointer}#asuna-show[hidden]{display:none}
.asuna-voice-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.asuna-voice-tools button{border:1px solid var(--line,#756089);border-radius:14px;background:var(--panel,#211b35);color:var(--text,#fff);padding:9px 12px;cursor:pointer}.asuna-voice-tools button[aria-pressed=true]{background:#70429d;color:#fff}.asuna-voice-status{font-size:12px;color:var(--muted,#b9b0cc)}
html.asuna-embedded body.ai-page{padding:0!important}html.asuna-embedded .ai-topbar,html.asuna-embedded .page-heading,html.asuna-embedded .companion-panel,html.asuna-embedded .training-panel,html.asuna-embedded .learning-details,html.asuna-embedded .ai-footer,html.asuna-embedded .skip-link{display:none!important}html.asuna-embedded main{max-width:none;width:100%;padding:0!important;margin:0!important}html.asuna-embedded .ai-layout{display:block;margin:0!important}html.asuna-embedded .conversation-panel{height:100dvh!important;min-height:0;border:0;border-radius:0;padding:12px!important;box-sizing:border-box}html.asuna-embedded .suggestions{display:none}html.asuna-embedded .panel-heading{flex-wrap:wrap;gap:6px}html.asuna-embedded .panel-heading>div{display:none}html.asuna-embedded .auto-tools{display:none}html.asuna-embedded .controls{flex-wrap:wrap}
@keyframes asuna-step{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-4px) rotate(2deg)}}@media(max-width:600px){#asuna-companion{width:100px}#asuna-companion .asuna-body{height:190px}}@media(prefers-reduced-motion:reduce){#asuna-companion img{animation:none!important}}

html.asuna-embedded #learning-reviews,html.asuna-embedded .image-teaching-panel,html.asuna-embedded .conversation-scroll>.intro{display:none!important}html.asuna-embedded,html.asuna-embedded body.ai-page{height:100%!important;overflow:hidden!important}html.asuna-embedded .asuna-voice-tools{flex:none}html.asuna-embedded .asuna-voice-status{width:100%;line-height:1.4}

/* Keep the conversation directly beneath its companion. */
#asuna-chat-panel{right:auto;bottom:auto;width:min(270px,calc(100vw - 16px));height:min(290px,calc(100dvh - 265px));border-radius:18px;overflow:visible}
#asuna-chat-panel::before{content:"";position:absolute;top:-7px;left:calc(50% - 7px);width:12px;height:12px;transform:rotate(45deg);background:#101325;border-left:1px solid #7c669d;border-top:1px solid #7c669d}
#asuna-chat-panel>header{position:relative;padding:7px 12px;gap:8px;font-size:12px;flex:none}
#asuna-chat-panel>header button{font-size:20px;min-height:28px}
#asuna-chat-panel iframe{border-radius:0 0 18px 18px}
#asuna-companion[data-chat-open=true] .asuna-body{height:190px}
html.asuna-embedded .panel-heading,html.asuna-embedded .composer-heading{display:none!important}
html.asuna-embedded .conversation-panel{padding:8px!important}
html.asuna-embedded .asuna-voice-tools{gap:5px;margin:5px 0}
html.asuna-embedded .asuna-voice-tools button{padding:5px 8px;font-size:11px;border-radius:10px;min-height:30px}
html.asuna-embedded .asuna-voice-status{font-size:10px;line-height:1.3}
html.asuna-embedded .conversation-panel #question{min-height:30px;height:32px;max-height:60px;font-size:12px}
html.asuna-embedded .conversation-panel #composer{padding:7px}
html.asuna-embedded .conversation-panel .controls{padding-top:5px;gap:5px;font-size:11px}
html.asuna-embedded .conversation-panel #image{max-width:160px}
html.asuna-embedded .conversation-scroll #service{font-size:10px;padding:4px 0}
html.asuna-embedded #signin{font-size:11px;padding:5px 8px}

html.asuna-embedded .image-label input{display:none}html.asuna-embedded .conversation-panel .image-label{cursor:pointer}html.asuna-embedded .conversation-panel .controls{justify-content:space-between}@media(max-width:600px){#asuna-companion[data-chat-open=true] .asuna-body{height:150px}}@media(max-height:480px){#asuna-companion[data-chat-open=true] .asuna-body{height:85px}#asuna-chat-panel{height:calc(100dvh - 165px)}}

/* Compact companion conversation. */
#asuna-chat-panel{background:#141323;border:1px solid #c4a0ee42;box-shadow:0 16px 48px #05051070;border-radius:20px}
#asuna-chat-panel::before{background:#1b182c;border-color:#c4a0ee42}
#asuna-chat-panel>header{padding:8px 12px;background:linear-gradient(110deg,#29203d,#171626);border-bottom:1px solid #c4a0ee20;border-radius:20px 20px 0 0}
#asuna-chat-panel>header strong::before{content:"✦";color:#e7b2ec;margin-right:7px}
#asuna-chat-panel>header a{font-size:10px;text-decoration:none;color:#c7bbdc}
#asuna-chat-panel>header button{font-size:18px;opacity:.7}
#asuna-chat-panel>header button:hover{opacity:1}
#asuna-chat-panel iframe{border-radius:0 0 20px 20px}
#asuna-companion .asuna-voice[aria-pressed=true]{background:#a455a0;border-color:#f5b6e8;box-shadow:0 0 18px #d680b549}
#asuna-companion .asuna-caption{display:block;text-align:center;font-size:10px;line-height:1.4;color:#f7eafa;text-shadow:0 1px 4px #000;background:#211a31e8;border-radius:10px;margin-top:5px;padding:5px 6px}
#asuna-companion .asuna-caption:empty{display:none}
html.asuna-embedded body.ai-page{background:#141323!important}
html.asuna-embedded body.ai-page::before{display:none!important}
html.asuna-embedded .conversation-panel{background:transparent!important;padding:9px!important;gap:0}
html.asuna-embedded .conversation-scroll{padding:0 1px 7px;scrollbar-width:thin}
html.asuna-embedded .conversation-scroll #service{color:#b9abc9;font-size:10px;padding:2px 0;margin:0 0 5px}
html.asuna-embedded #signin{margin:4px 0;padding:8px 10px;border:0;background:#b896d90d;border-radius:10px;line-height:1.5}
html.asuna-embedded .message{font-size:12px;line-height:1.55;padding:9px 11px;border-radius:13px;margin:7px 0;overflow-wrap:anywhere}
html.asuna-embedded .message.user{background:#8c55833b;margin-left:20px;border:1px solid #d58dc725}
html.asuna-embedded .message.assistant{background:#ffffff06;border:1px solid #b9a5d415;margin-right:12px}
html.asuna-embedded .conversation-panel #composer{display:grid;grid-template-columns:28px 28px 28px 28px 1fr;gap:5px;padding:8px;border:1px solid #c4a0ee30;border-radius:14px;background:#201d30;box-shadow:none;flex:none}
html.asuna-embedded .conversation-panel #question{grid-column:1/-1;grid-row:1;border:0!important;background:transparent!important;box-shadow:none!important;resize:none;outline-offset:0;color:#f4edf8;min-height:36px;height:36px;max-height:60px;font-size:12px;padding:2px 3px;box-sizing:border-box;width:100%}
html.asuna-embedded #question::placeholder{color:#b7aac7}
html.asuna-embedded .conversation-panel .controls,html.asuna-embedded .asuna-voice-tools{display:contents}
html.asuna-embedded .conversation-panel .image-label{grid-row:2;grid-column:1;font-size:0;padding:0!important;display:grid;place-items:center;width:28px;height:28px;min-height:0;border:0;background:none;color:#cdbddd}
html.asuna-embedded .image-label::before{content:"＋";font-size:21px}
html.asuna-embedded .asuna-voice-tools button{grid-row:2;min-height:28px;height:28px;width:28px;padding:0;background:transparent;border:0;border-radius:8px;font-size:15px;color:#d4c4e5}
html.asuna-embedded .asuna-voice-tools button:nth-child(1){grid-column:2}
html.asuna-embedded .asuna-voice-tools button:nth-child(2){grid-column:3}
html.asuna-embedded .asuna-voice-tools button:last-child{grid-column:4;font-size:23px}
html.asuna-embedded .asuna-voice-tools button:hover{background:#ffffff0c}
html.asuna-embedded .asuna-voice-tools button[aria-pressed=true]{background:#9e5c994d}
html.asuna-embedded .asuna-voice-status{grid-row:3;grid-column:1/-1;width:auto;font-size:9px;line-height:1.3;color:#ae9fbd;padding:1px 3px 0}
html.asuna-embedded .conversation-panel #send{grid-column:5;grid-row:2;justify-self:end;align-self:center;border:0;background:#b675a7;color:#fff;min-height:28px;width:28px;height:28px;border-radius:50%;padding:0;font-size:0;margin:0}
html.asuna-embedded #send::after{content:"↑";font-size:19px}
html.asuna-embedded #send:disabled{opacity:.35}
html.asuna-embedded #preview{grid-column:1/-1;max-height:45px;grid-row:4}
html.asuna-embedded #remove-image{grid-column:1/-1;grid-row:5;font-size:10px}

html.asuna-embedded .conversation-panel #composer #image{display:none!important}

.asuna-navigation-choice{display:block;width:100%;text-align:left;padding:9px 11px;margin-top:7px;border:1px solid #ae88c84d;border-radius:10px;background:#9e5c991a;color:inherit;font:inherit;cursor:pointer}.asuna-navigation-choice:hover{background:#9e5c993b}
