.mochi-launch{position:fixed;z-index:21;right:20px;bottom:110px;width:100px;height:120px;padding:0;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:0;color:#e9be65;font-size:11px}.mochi-launch canvas{width:100px;height:100px;pointer-events:none}.mochi-launch:focus-visible{outline-offset:0}.mochi-launch[data-dismissed=true]{width:auto;height:44px;padding:8px 12px;background:#151d20;border:1px solid #e9be6533;border-radius:10px}.mochi-launch[data-dismissed=true] canvas{display:none}.brand-opening-active .mochi-launch,.workspace-active .mochi-launch{display:none}.mochi-dialog{color:#f4f1e8;background:#11191c;border:1px solid #e9be6540;border-radius:18px;width:min(370px,calc(100vw - 32px));max-height:calc(100dvh - 120px);padding:22px;margin:auto 22px 100px auto;overflow:auto;box-shadow:0 20px 60px #0008}.mochi-dialog::backdrop{background:#0008}.mochi-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.mochi-head h2{margin:0;font-size:20px}.mochi-dialog p{font-size:13px;line-height:1.8;margin:13px 0}.mochi-close{min-width:44px;min-height:44px;padding:6px;font-size:22px;background:transparent}.mochi-guide-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mochi-guide-buttons button{font-size:12px;min-height:44px;padding:8px}.mochi-guide-copy{border-left:2px solid #e9be65;padding-left:12px;min-height:70px}.mochi-actions{display:grid;gap:9px;margin-top:16px}.mochi-actions button,.mochi-actions a{min-height:44px;text-align:center;font-size:13px}.mochi-actions a{padding:10px;text-decoration:none;border:1px solid #e9be6530;border-radius:9px}.mochi-hide{color:#a5aeaa;font-size:11px;margin-top:15px;width:100%;background:transparent}.mochi-beta-label{font-size:10px;letter-spacing:1px;color:#bba778}.mochi-launch:hover{background:transparent}.mochi-launch[data-dismissed=true]:hover{background:#202721}@media(max-width:600px){.mochi-launch{top:14px;right:111px;bottom:auto;width:38px;height:42px;gap:0}.mochi-launch canvas{width:42px;height:42px}.mochi-launch .mochi-label{display:none}.mochi-launch[data-dismissed=true]{width:38px;height:38px;padding:3px;font-size:9px}.mochi-launch[data-dismissed=true] .mochi-label{display:block}.mochi-dialog{margin:auto auto calc(80px + env(safe-area-inset-bottom));width:calc(100vw - 24px);max-height:calc(100dvh - 160px);padding:18px}.mochi-head h2{font-size:18px}.workspace-keyboard .mochi-launch{display:none}}
@media(prefers-reduced-motion:reduce){.mochi-launch,.mochi-dialog{animation:none;transition:none}}
.mochi-portrait{width:72px;height:72px;flex-shrink:0}.mochi-head h2{flex:1}.mochi-guide-copy{overflow-wrap:anywhere}.mochi-dialog button:focus-visible,.mochi-dialog a:focus-visible{outline:2px solid #e9be65;outline-offset:2px}
.mochi-avatar{display:none;object-fit:contain;pointer-events:none}.mochi-launch[data-look=plush] canvas{display:none}.mochi-launch[data-look=plush] .mochi-avatar{display:block;width:110px;height:146px}.mochi-launch[data-look=original] .mochi-avatar,.mochi-launch[data-dismissed=true] .mochi-avatar{display:none}.mochi-launch[data-look=plush]:not([data-dismissed=true]){height:170px;width:110px;bottom:95px}.mochi-dialog{width:min(410px,calc(100vw - 24px));padding:20px;max-height:calc(100dvh - 100px)}.mochi-head{position:sticky;top:-20px;background:#11191c;z-index:2;padding:10px 0}.mochi-head h2{font-size:19px}.mochi-hero{display:grid;grid-template-columns:135px 1fr;align-items:center;column-gap:12px;border-bottom:1px solid #e9be6520;margin:0 0 12px;padding:0 0 12px}.mochi-art-button{grid-column:1;grid-row:1/3;padding:0;border:0;background:transparent;height:182px;border-radius:12px;overflow:visible}.mochi-plush{width:100%;height:182px;object-fit:contain;pointer-events:none}.mochi-hero .mochi-portrait{grid-column:1;grid-row:1/3;display:none;width:135px;height:135px}.mochi-welcome{grid-column:2;white-space:pre-line!important;font-size:15px!important;line-height:1.7!important;color:#eee0bd!important;margin:0!important}.mochi-look-toggle{grid-column:2;font-size:10px;min-height:36px;padding:7px;color:#aab0ad;align-self:start}.mochi-dialog[data-look=original] .mochi-art-button{display:none}.mochi-dialog[data-look=original] .mochi-portrait{display:block}.mochi-dialog>p{font-size:12px;margin:9px 0}.mochi-guide-copy{min-height:50px}.mochi-actions{margin-top:12px;grid-template-columns:1fr 1fr}.mochi-actions a{grid-column:1/3}.mochi-hide{margin-top:10px;font-size:10px;border:0;min-height:40px}.mochi-art-button:hover{background:transparent}.mochi-launch .mochi-label{background:#141c1deb;border:1px solid #e9be6528;border-radius:12px;padding:3px 10px}.mochi-launch[data-dismissed=true] .mochi-label{border:0;padding:0;background:none}@media(max-width:600px){.mochi-launch[data-look=plush]:not([data-dismissed=true]){height:42px;width:38px;top:12px;right:112px;bottom:auto;overflow:hidden;border-radius:10px}.mochi-launch[data-look=plush] .mochi-avatar{width:42px;height:64px;object-fit:cover;object-position:center top;transform:translateY(-2px)}.mochi-dialog{padding:16px;margin-bottom:calc(80px + env(safe-area-inset-bottom));max-height:calc(100dvh - 120px)}.mochi-head{top:-16px}.mochi-hero{grid-template-columns:115px 1fr}.mochi-art-button,.mochi-plush{height:165px}.mochi-welcome{font-size:13px!important}.mochi-hero .mochi-portrait{width:115px;height:115px}.mochi-dialog .mochi-guide-copy{min-height:50px}}@media(prefers-reduced-motion:no-preference){.mochi-dialog[data-look=plush] .mochi-plush{animation:mochi-breathe 5s ease-in-out infinite}.mochi-launch[data-look=plush] .mochi-avatar{animation:mochi-breathe 6s ease-in-out infinite}@keyframes mochi-breathe{0%,100%{scale:1;translate:0 0}50%{scale:1.015;translate:0 -2px}}}body.workspace-active .mochi-avatar,.brand-opening-active .mochi-avatar{animation-play-state:paused}
.mochi-presets{border-top:1px solid #ffffff14;padding-top:12px;margin-top:12px}.mochi-presets label{color:#e9be65}.mochi-presets select{font-size:12px;min-height:44px}.mochi-presets p{font-size:12px;line-height:1.8}

/* 1.0.45: calmer spacing and occasional greeting bubble */
.mochi-dialog{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:5px;box-sizing:border-box;width:min(410px,calc(100vw - 28px));max-height:calc(100dvh - 112px);padding:18px 22px 16px}
.mochi-dialog>.mochi-beta-label{display:block;margin:0 0 2px}
.mochi-head{margin:0 0 2px;min-height:46px}
.mochi-hero{margin:0;padding-bottom:10px;column-gap:14px}
.mochi-dialog>p{margin:5px 0}
.mochi-guide-buttons{gap:9px}
.mochi-guide-buttons button{min-width:0;overflow-wrap:anywhere}
.mochi-guide-copy{margin:3px 0 0!important;padding:8px 0 8px 12px;min-height:42px}
.mochi-actions{gap:8px;margin-top:7px}
.mochi-hide{margin-top:3px!important;padding:7px 0;min-height:38px}
.mochi-greeting-toast{position:fixed;z-index:23;right:24px;bottom:236px;width:min(300px,calc(100vw - 32px));display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:start;gap:6px;padding:11px 9px 11px 14px;border:1px solid #e9be6560;border-radius:15px;background:linear-gradient(145deg,#1b2425f5,#111719f7);box-shadow:0 14px 38px #0008;color:#f4f1e8;opacity:0;visibility:hidden;transform:translateY(8px) scale(.98);transition:opacity .28s ease,transform .28s ease,visibility .28s;backdrop-filter:blur(12px)}
.mochi-greeting-toast::before{content:'';position:absolute;right:25px;bottom:-6px;width:10px;height:10px;border-right:1px solid #e9be6560;border-bottom:1px solid #e9be6560;background:#141b1c;transform:rotate(45deg)}
.mochi-greeting-toast.is-visible{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.mochi-greeting-message{min-width:0;padding:1px 0;text-align:left;color:#eee0bd;background:transparent;border:0;font-size:13px;line-height:1.65;cursor:pointer}
.mochi-greeting-message:hover{background:transparent;color:#f5d681}
.mochi-greeting-dismiss{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border-radius:50%;background:#ffffff0a;color:#aab0ad;font-size:18px;line-height:1}
.mochi-greeting-dismiss:hover{color:#f4f1e8;background:#ffffff18}
.mochi-greeting-toast button:focus-visible{outline:2px solid #e9be65;outline-offset:2px}
@media(max-width:600px){.mochi-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 132px);padding:12px 15px calc(12px + env(safe-area-inset-bottom));gap:4px}.mochi-head{top:-12px;margin:0;min-height:44px}.mochi-hero{grid-template-columns:94px minmax(0,1fr);column-gap:10px;padding-bottom:8px}.mochi-art-button,.mochi-plush{height:124px}.mochi-guide-buttons{gap:7px}.mochi-actions{gap:7px;margin-top:5px}.mochi-greeting-toast{right:12px;top:calc(68px + env(safe-area-inset-top));bottom:auto;width:min(300px,calc(100vw - 24px));padding:10px 8px 10px 12px}.mochi-greeting-toast::before{display:none}.mochi-greeting-message{font-size:12px}.mochi-dialog>.mochi-beta-label{font-size:9px}}
@media(max-width:360px){.mochi-hero{grid-template-columns:78px minmax(0,1fr);column-gap:8px}.mochi-art-button,.mochi-plush{height:106px}.mochi-welcome{font-size:12px!important}.mochi-guide-buttons button{font-size:11px;padding:7px 5px}.mochi-dialog{padding-inline:12px}.mochi-presets{padding-top:8px;margin-top:8px}.mochi-presets p{line-height:1.55}.mochi-dialog>p{margin:3px 0}.mochi-hide{padding:4px 0;min-height:34px}}
@media(prefers-reduced-motion:reduce){.mochi-greeting-toast{transition:none;transform:none}}

/* 1.0.46: preserve native dialog visibility and scrollable content */
.mochi-dialog:not([open]){display:none!important}
.mochi-dialog[open]{display:grid;grid-auto-rows:max-content}

.update-notice[hidden]{display:none!important}.update-notice{position:fixed;z-index:80;top:76px;left:50%;transform:translateX(-50%);width:min(550px,calc(100vw - 24px));box-sizing:border-box;padding:12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;border:1px solid #e9be65;border-radius:12px;background:#11191c;color:#eee0bd;box-shadow:0 8px 30px #0008;font-size:13px}.update-notice span{flex:1 1 220px}.update-notice button{min-height:44px;padding:8px 14px}.mochi-dialog{overscroll-behavior:contain;scroll-padding-top:70px;scrollbar-gutter:stable}.mochi-head{flex-shrink:0}.mochi-presets select{width:100%;box-sizing:border-box;min-width:0}@media(max-width:600px){.mochi-dialog[open]{max-height:calc(100dvh - 104px);margin-top:auto;margin-bottom:calc(76px + env(safe-area-inset-bottom));overflow-y:auto;overflow-x:hidden}.mochi-dialog button,.mochi-dialog select{touch-action:manipulation}.mochi-welcome{overflow-wrap:anywhere}}@media(max-height:520px){.mochi-dialog[open]{max-height:calc(100dvh - 28px);margin:14px auto}.mochi-head{position:sticky}.mochi-greeting-toast{display:none}}

.mochi-open-tool{width:100%;min-height:44px;color:#19150d;background:#e9be65;border-color:#e9be65}.mochi-open-tool[hidden]{display:none!important}
