/* GBE-AI Studio's assistant and in-app notifications. */
#studio-editor .studio-chat-heading{position:relative;gap:9px;padding:15px 16px;flex:none}
#studio-editor .studio-chat-heading>.studio-session-state{margin-left:auto;font-size:10px;white-space:nowrap}
#studio-editor .studio-partner-name{display:grid;gap:2px}
#studio-editor .studio-partner-name b{font-size:15px;letter-spacing:-.03em}
#studio-editor .studio-partner-name small{font-size:10px;color:#87909e;font-weight:400}
#studio-editor #studio-chat-notifications{border:1px solid #e2e4eb;background:white;color:#606679;border-radius:8px;padding:6px 9px;font-size:11px;white-space:nowrap}
#studio-editor #studio-chat-notifications.has-unread{background:#eee9ff;color:#553ec0;border-color:#d7ccff}
#studio-editor .studio-chat-attention{display:flex;align-items:center;gap:10px;margin:0 12px 10px;padding:12px;border:1px solid #d7cdf6;border-left:3px solid #7759d4;border-radius:9px;background:#f5f2ff;flex:none}
#studio-editor .studio-chat-attention>div{display:grid;gap:4px;flex:1;min-width:0}
#studio-editor .studio-chat-attention b{font-size:12px;color:#473977}
#studio-editor .studio-chat-attention span{font-size:11px;line-height:1.6;color:#726887;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#studio-editor .studio-chat-attention button{background:#6550ba;color:white;border:0;border-radius:7px;font-size:11px;font-weight:600;padding:8px 10px;white-space:nowrap}
#studio-editor .studio-chat-attention.is-error{background:#fff6f4;border-color:#eac8c1}
#studio-editor .studio-chat-attention.is-error b{color:#9b4435}
#studio-editor .studio-chat-unread{align-self:center;flex:none;position:relative;z-index:2;margin:-5px 12px 8px;border:1px solid #d5c9f5;border-radius:30px;background:#6650b8;color:white;box-shadow:0 3px 12px #56419628;padding:8px 15px;font-size:11px;font-weight:600}
#studio-editor .studio-unread-badge{display:inline-grid;place-items:center;margin-left:4px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:#6b4dcc;color:white;font-size:9px}
#studio-editor .studio-latest-label{font-size:9px;font-style:normal;font-weight:600;padding:3px 6px;color:#654cac;background:#eee9fb;border-radius:4px;white-space:nowrap}
#studio-editor .studio-bubble.assistant>small>b{font-size:11px}
#studio-editor .studio-turn.is-latest .assistant{padding:14px;border:1px solid #e4dcf5;border-radius:12px;background:linear-gradient(135deg,#fcfbff,#fff)}
#studio-editor .studio-turn.is-latest .assistant:focus{outline:2px solid #a48bdd;outline-offset:2px}
#studio-editor .studio-past-error{color:#858b98;font-size:11px;border:1px dashed #e0e3eb;border-radius:8px;padding:10px}
#studio-editor .studio-past-error summary{cursor:pointer}
#studio-editor .studio-past-error p{font-size:11px;color:#858b98}
#studio-editor .studio-ai-result{border-color:#c8b9ef;background:#f5f2fd;box-shadow:0 3px 12px #56419609}
#studio-editor .studio-notice-list{position:absolute;z-index:35;top:calc(100% - 5px);left:12px;right:12px;background:white;border:1px solid #e0dcec;box-shadow:0 12px 30px #29243e20;border-radius:12px;padding:12px;max-height:280px;overflow:auto}
#studio-editor .studio-notice-list>b{font-size:11px;color:#6d687b}
#studio-editor .studio-notice-list>p{font-size:11px;color:#888392;line-height:1.7}
#studio-editor .studio-notice-list button{display:grid;width:100%;text-align:left;gap:6px;background:#fafafd;border:0;border-radius:7px;margin-top:8px;padding:11px;color:#4d485c}
#studio-editor .studio-notice-list button.is-unread{background:#f0eaff;border-left:3px solid #8461db}
#studio-editor .studio-notice-list strong{font-size:12px}
#studio-editor .studio-notice-list small{font-size:10px;line-height:1.6;color:#8b839d}
.studio-chat-toast{position:fixed;z-index:10000;right:24px;bottom:24px;width:min(370px,calc(100vw - 32px));display:flex;gap:12px;padding:18px;background:#fff;border:1px solid #ddd3f4;border-top:3px solid #7b60ce;border-radius:14px;box-shadow:0 10px 45px #21174728;color:#30334a;animation:studio-notice-in .22s ease-out;font-family:inherit;box-sizing:border-box}
.studio-chat-toast>img{width:34px;height:34px;object-fit:contain;flex:none}
.studio-chat-toast>div{min-width:0}
.studio-chat-toast small{display:block;font-size:10px;color:#8a809f;margin:0 0 6px}
.studio-chat-toast strong{font-size:14px}
.studio-chat-toast p{font-size:12px;line-height:1.7;margin:7px 0 12px;color:#766f85;overflow-wrap:anywhere;max-height:80px;overflow:auto}
.studio-notice-actions{display:flex;gap:8px}
.studio-notice-actions button{font-size:11px;font-weight:600;line-height:1.5;border:1px solid #e1d8f0;background:white;color:#6e6189;border-radius:7px;padding:7px 12px;cursor:pointer}
.studio-notice-actions button:first-child{background:#6550b8;color:white;border-color:#6550b8}
.studio-chat-toast.is-error{border-top-color:#c27465}
#studio-editor .studio-chat-attention[hidden],#studio-editor .studio-chat-unread[hidden],#studio-editor .studio-notice-list[hidden]{display:none}
@keyframes studio-notice-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:600px){.studio-chat-toast{right:16px;bottom:16px;padding:14px}#studio-editor .studio-session-state{display:none}}
@media(prefers-reduced-motion:reduce){.studio-chat-toast{animation:none}}

main[data-studio-session][hidden]{display:none!important}
body:has(main[data-studio-session]) .header-studio::after{content:"이어하기";font-size:9px;padding:3px 6px;border-radius:4px;background:#eee9fa;color:#6c52a7;white-space:nowrap}
body:has(main[data-studio-session][data-stage="generating"]) .header-studio::after{content:"작업 중";background:#eee9fa}
body:has(main[data-studio-session][data-stage="ready"]) .header-studio::after{content:"새 버전";background:#e2f3eb;color:#36755e}
@media(max-width:600px){body:has(main[data-studio-session]) .header-studio::after{font-size:8px;padding:2px 3px}}

#studio-editor .studio-chat-heading>.studio-notice-list{display:block}
#studio-editor .studio-chat-heading>.studio-notice-list[hidden]{display:none}
@media(max-width:600px){body:has(main[data-studio-session]) .header-studio{position:relative}body:has(main[data-studio-session]) .header-studio::after{position:absolute;right:5px;top:-9px;padding:2px 5px;border:1px solid #e1d9f2;background:#faf8ff}}
