#ai-guide-modal {display:flex;top:var(--kogassy-viewport-top,0px);bottom:auto;height:var(--kogassy-viewport-height,100dvh)}
#ai-guide-modal.hidden {display:none}
#ai-guide-sheet {--kogassy-room-bg:#f8f9f5;max-height:var(--kogassy-viewport-height,100dvh);overflow:hidden;min-height:0;background:var(--kogassy-room-bg)}
#ai-room-header {padding:10px 18px 12px;background:var(--kogassy-room-bg)}
#ai-room-title {font-style:normal;letter-spacing:.04em;cursor:default}
#ai-room-header button[onclick="cycleDevMode()"] {display:none}
#ai-room-close {width:auto;gap:5px;padding:0 12px;font-size:12px;color:#365347}
#kogassy-life-region {position:relative;flex:none;height:clamp(112px,18dvh,154px);background:var(--kogassy-room-bg);overflow:hidden;border-bottom:0}
#kogassy-life-frame {width:100%;height:100%;display:block;border:0}
#kogassy-life-loading {position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:20px;font-size:12px;color:#52604d;pointer-events:none}
#kogassy-life-loading[hidden] {display:none}
#kogassy-motion-toggle {display:none}
#ai-room-status {display:none}
#ai-room-header [hidden] {display:none!important}
#chat-container {min-height:65px;background:var(--kogassy-room-bg);padding:18px;overscroll-behavior:contain;gap:12px}
#chat-container .chat-bubble {max-width:92%;font-size:14px;line-height:1.75;overflow-wrap:anywhere;flex-shrink:0;margin-bottom:0}
#chat-container .bubble-ai {align-self:flex-start;background:white;color:#2e3d32;border:1px solid #e0e6dc;border-radius:3px 16px 16px;padding:12px 14px;box-shadow:none}
#chat-container .bubble-user {align-self:flex-end;background:#375a47;color:white;border-radius:16px 3px 16px 16px;padding:12px 14px}
#ai-initial-greeting {width:auto}
.kogassy-button-label {font-size:11px;font-weight:600;white-space:nowrap}
#ai-room-icon img,#ai-greeting-icon img {object-fit:contain}
#ai-room-icon {width:28px;height:28px;padding:0;background:transparent;border:0;box-shadow:none}
#ai-room-icon img {filter:brightness(0);opacity:.35}
#ai-greeting-icon {flex-shrink:0;width:32px;height:32px;overflow:hidden;border-radius:6px;box-shadow:none;background:transparent}
#ai-greeting-icon img {object-fit:cover;transform:scale(1.5);transform-origin:50% 0}
#ai-guide-sheet .kogassy-composer {flex:0 0 auto}
#ai-guide-sheet.kogassy-keyboard #chat-container {min-height:0;padding:10px 18px}
#ai-guide-sheet.kogassy-keyboard #kogassy-life-region {height:clamp(0px,calc(var(--kogassy-viewport-height,100dvh) - 240px),84px)}
#ai-guide-sheet.kogassy-keyboard #ai-room-header {padding-top:5px;padding-bottom:6px}
@media(max-height:550px) {#kogassy-life-region{height:110px}#ai-room-header{padding-top:5px;padding-bottom:6px}}
@media(prefers-reduced-motion:reduce) {#ai-guide-modal,#ai-guide-sheet{transition:none!important}#ai-room-header .animate-pulse{animation:none}}
