.clara-help{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#29231f;position:fixed;right:1rem;bottom:1rem;z-index:9000;line-height:1.5;font-size:14px;max-width:calc(100vw - 2rem);isolation:isolate}.clara-help *{box-sizing:border-box}.clara-help button,.clara-help input,.clara-help textarea{font:inherit}.clara-help button{cursor:pointer;border:1px solid #e6d9ce;border-radius:10px;background:white;color:#332921;padding:9px 12px;font-weight:600}.clara-help button:focus-visible,.clara-help input:focus-visible,.clara-help textarea:focus-visible{outline:3px solid #f5a56e;outline-offset:2px}.clara-help .ch-primary{background:#b9400c;border-color:#b9400c;color:white}.ch-launch{display:flex;align-items:center;gap:8px;box-shadow:0 8px 32px #3b201c22}.ch-launch img{width:24px;height:24px}.ch-panel{width:400px;max-width:100%;max-height:calc(100dvh - 2rem);background:#fffdfb;border:1px solid #e8ded5;border-radius:20px;box-shadow:0 18px 75px #3a200c35;display:flex;flex-direction:column;overflow:auto}.ch-panel[hidden],.ch-launch[hidden],.ch-walker[hidden]{display:none!important}.ch-head{padding:16px 16px 10px;display:flex;align-items:center;gap:10px}.ch-title{font-size:17px;font-weight:750;letter-spacing:-.025em}.ch-sub{font-size:11px;color:#77695f}.ch-head button{margin-left:auto}.ch-character{display:flex;align-items:center;padding:0 16px 8px;gap:8px;background:linear-gradient(120deg,#fff5e9,#fffdfb)}.ch-character canvas{width:150px;height:140px;display:block;max-width:48%}.ch-metadata{flex:1;font-size:12px;color:#65584e}.ch-metadata strong{color:#9e370c;display:block;font-size:13px}.ch-actions{padding:9px 14px;display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #eee4dc}.ch-actions button{font-size:12px;padding:6px 9px}.ch-chat{min-height:100px;max-height:265px;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px}.ch-msg{border-radius:12px;background:#f5f0eb;padding:10px 12px;overflow-wrap:anywhere;white-space:pre-wrap}.ch-msg.user{background:#fff0e3;align-self:flex-end;max-width:93%}.ch-msg code{font-family:ui-monospace,monospace}.ch-msg pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#302822;color:#fff2e8;border-radius:8px;padding:10px;font-size:12px}.ch-msg a{display:block;color:#a6370c;font-weight:600;margin-top:7px}.ch-form{padding:10px 14px;display:flex;gap:6px}.ch-form input{min-width:0;flex:1}.clara-help input,.clara-help textarea{border:1px solid #d9ccc0;background:#fff;border-radius:9px;padding:9px;color:#26211e}.ch-details{padding:0 14px 10px}.ch-details summary{cursor:pointer;font-weight:650;color:#a6370c}.ch-details textarea,.ch-details input{width:100%;margin:6px 0;min-height:34px}.ch-details textarea{resize:vertical}.ch-details button{margin:2px}.ch-status{font-size:11px;color:#6b5b4e;padding:6px 14px;overflow-wrap:anywhere}.ch-walker{position:fixed;bottom:75px;left:12px;width:150px;height:130px;pointer-events:none;z-index:8999;animation:ch-walk 4s linear forwards;filter:drop-shadow(0 6px 3px #3a291c30)}@keyframes ch-walk{from{left:12px}to{left:calc(100vw - 162px)}}.ch-walker canvas{width:100%;height:100%}@media(max-width:480px){.clara-help{right:8px;bottom:8px;max-width:calc(100vw - 16px)}.ch-panel{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.ch-character canvas{height:100px}.ch-chat{max-height:220px}}@media(prefers-reduced-motion:reduce){.ch-walker{animation:none}}

.ch-character canvas{width:180px;height:155px;max-width:50%}.ch-details label{display:flex;align-items:center;gap:8px}.ch-details label input{width:auto;min-height:0}.ch-sub{letter-spacing:.07em}@media(max-width:480px){.ch-character canvas{width:160px;height:132px}.ch-chat{min-height:110px}}
/* Ambient companion: narrow corner footprint, transparent stage, no modal overlay. */
.ch-dock{display:flex;flex-direction:column;align-items:flex-end;gap:3px;position:relative}.ch-dock[hidden],.ch-perch[hidden],.ch-show[hidden]{display:none!important}.ch-dock-row{display:flex;align-items:center;gap:6px}.ch-dock .ch-launch{border:1px solid #e3d4c9;background:#fff;border-radius:16px;padding:12px 16px;color:#382a22;box-shadow:0 8px 24px #2b1b1622;min-height:48px}.ch-launch img{width:24px;height:24px}.ch-perch{position:relative;width:220px;height:155px;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:end}.ch-stage{position:relative;width:220px;height:129px;z-index:2;filter:drop-shadow(0px 6px 4px #292b3540);pointer-events:none}.ch-stage canvas,.ch-panel-stage canvas{display:block;width:100%;height:100%;max-width:none}.ch-floor{position:absolute;bottom:9px;left:34px;right:34px;height:16px;border:1px solid #db7a4544;border-radius:50%;background:radial-gradient(ellipse,#e3c0ab44 0%,#d68d4030 50%,transparent 75%);box-shadow:0 0 14px #ff781c28;z-index:0}.ch-dock-cap{display:flex;gap:5px;align-items:center;align-self:flex-end;background:#252b35;color:#f8e5d5;border-radius:6px;padding:3px 4px 3px 8px;font-size:10px;font-weight:650;letter-spacing:.04em;position:absolute;top:0;right:4px;z-index:3;box-shadow:0 4px 10px #242b3520;line-height:1.3}.ch-signal{width:6px;height:6px;background:#f9a052;border-radius:50%;box-shadow:0 0 6px #f9a052}.clara-help .ch-hide{background:transparent;color:#fff;border:none;padding:0 5px;border-radius:4px;line-height:22px;min-width:23px;font-size:17px;pointer-events:auto}.ch-show{padding:11px!important}.clara-help[data-pet-state=ready] .ch-signal{background:#78e2a2;box-shadow:0 0 8px #78e2a2}.clara-help[data-pet-state=error] .ch-signal{background:#ff7b68;box-shadow:0 0 8px #ff7b68}.clara-help[data-pet-state=building] .ch-signal,.clara-help[data-pet-state=thinking] .ch-signal,.clara-help[data-pet-state=speaking] .ch-signal{animation:ch-signal-pulse .8s ease-in-out infinite alternate}.ch-panel-stage{width:205px;height:132px;flex:0 0 52%;max-width:52%;filter:drop-shadow(0 5px 5px #29323c38);overflow:hidden}.ch-patrol .ch-stage,.ch-panel-stage.ch-patrol canvas{animation:ch-patrol-motion 4.2s ease-in-out both}.ch-patrol .ch-floor{animation:ch-patrol-motion 4.2s ease-in-out both}@keyframes ch-patrol-motion{0%,100%{transform:translateX(0)}45%,55%{transform:translateX(-76px)}}@keyframes ch-signal-pulse{from{opacity:.45}to{opacity:1}}@media(max-width:700px){.ch-perch{width:162px;height:121px}.ch-stage{width:166px;height:98px}.ch-floor{left:22px;right:22px;bottom:6px}.ch-dock .ch-launch{padding:10px 12px;font-size:13px;min-height:44px}.ch-panel-stage{height:110px}.ch-patrol .ch-stage,.ch-patrol .ch-floor,.ch-panel-stage.ch-patrol canvas{animation-name:ch-mini-patrol}@keyframes ch-mini-patrol{0%,100%{transform:translateX(0)}45%,55%{transform:translateX(-18px)}}}@media(prefers-reduced-motion:reduce){.clara-help *{animation:none!important;transition:none!important}}
.clara-help{pointer-events:none}.ch-dock-row,.ch-panel{pointer-events:auto}.ch-launch svg{flex-shrink:0}.ch-stage{pointer-events:none}
/* Original cube perch: no permanent labels, badges, or status words. */
.ch-perch{width:192px;height:218px;justify-content:flex-end;overflow:visible}.ch-stage{width:184px;height:210px;filter:drop-shadow(0 5px 5px #29212a30);pointer-events:auto;cursor:pointer}.ch-floor{left:42px;right:42px;bottom:18px;height:15px;background:radial-gradient(ellipse,#34231b25,transparent 75%);border:0;box-shadow:none}.ch-dock-cap{background:none;box-shadow:none;padding:0;top:21px;right:0;opacity:.45}.ch-dock-cap:hover,.ch-dock-cap:focus-within{opacity:1}.clara-help .ch-hide{color:#625b53;background:#fff9;border:1px solid #ddd5cd;border-radius:50%;width:24px;height:24px;line-height:20px}.ch-panel-stage{height:188px;width:180px}.ch-bubble{position:absolute;z-index:5;bottom:calc(100% - 20px);right:16px;max-width:180px;background:white;border:2px solid #332d28;border-radius:16px;padding:8px 12px;color:#302923;font-size:13px;font-weight:700;line-height:1.3;box-shadow:0 5px 12px #25170e18;overflow-wrap:anywhere}.ch-bubble::after{content:'';position:absolute;right:28px;bottom:-8px;width:12px;height:12px;background:white;border-bottom:2px solid #332d28;border-right:2px solid #332d28;transform:rotate(45deg)}.ch-bubble[hidden]{display:none!important}.ch-game .ch-stage{outline:2px dashed #da5b21;outline-offset:-12px;border-radius:35px}.ch-patrol .ch-stage,.ch-patrol .ch-floor{animation:ch-roam 4.2s ease-in-out both}.ch-panel-stage.ch-patrol canvas{animation:ch-mini-patrol 4.2s ease-in-out both}@keyframes ch-roam{0%,100%{transform:translateX(0)}45%,55%{transform:translateX(calc(-1 * min(40vw,500px)))}}@media(max-width:700px){.ch-perch{width:137px;height:166px}.ch-stage{width:137px;height:160px}.ch-floor{left:34px;right:34px;bottom:14px}.ch-dock-cap{top:10px}.ch-panel-stage{height:148px}.ch-patrol .ch-stage,.ch-patrol .ch-floor{animation-name:ch-roam-mobile}@keyframes ch-roam-mobile{0%,100%{transform:translateX(0)}45%,55%{transform:translateX(calc(-1 * min(36vw,145px)))}}.ch-bubble{right:6px;max-width:160px}}@media(prefers-reduced-motion:reduce){.clara-help *{animation:none!important;transition:none!important}}
/* CLARA speech controller. Solid ink, paper, orange accent, comic tail. */
.ch-stage{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.ch-stage:focus-visible{outline:2px dashed #db5420;outline-offset:-10px;border-radius:28px}.ch-stage.ch-held{filter:drop-shadow(0 0 7px #ff8a3d) drop-shadow(0 5px 5px #29212a30)}.ch-spark-ready .ch-stage{filter:drop-shadow(0 0 13px #f6a523)}.ch-quick{pointer-events:auto;position:absolute;right:2px;bottom:calc(100% - 16px);width:342px;max-width:calc(100vw - 24px);max-height:min(510px,calc(100dvh - 305px));display:flex;flex-direction:column;z-index:8;background:#fffdf7;border:2px solid #2d2522;border-radius:20px 20px 7px 20px;color:#302721;box-shadow:4px 5px 0 #2d2522,0 12px 30px #38160f20}.ch-quick[hidden]{display:none!important}.ch-quick::after{content:'';position:absolute;bottom:-15px;right:58px;width:23px;height:23px;background:#fffdf7;border-right:2px solid #2d2522;border-bottom:2px solid #2d2522;transform:rotate(45deg) skew(-10deg,-10deg);z-index:-1}.ch-qhead{display:flex;align-items:center;gap:10px;padding:12px 12px 10px;border-bottom:1px solid #e8dace}.ch-qseal{display:grid;place-items:center;width:38px;height:38px;flex:none;border:2px solid #352721;border-radius:12px 8px 12px 8px;background:#f3732a;color:#fff;font-size:23px;box-shadow:2px 2px 0 #352721}.ch-qhead strong{display:block;line-height:1.2;font-size:17px;font-weight:850;letter-spacing:-.04em}.ch-qhead small{display:block;font-size:11px;color:#716057}.clara-help .ch-qclose{margin-left:auto;flex:none;width:32px;height:32px;padding:0;border:0;background:none;font-size:24px;line-height:1;box-shadow:none}.ch-qscroll{overflow:auto;min-height:0;padding:10px 12px;overscroll-behavior:contain}.ch-qnav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ch-qnav a{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;min-height:54px;padding:5px 2px;border:1px solid #e2d4c7;border-radius:9px;background:#fff;color:#342923;font-size:11px;font-weight:750;text-align:center;text-decoration:none;line-height:1.2}.ch-qnav a span{font-size:19px;color:#a83c0b;line-height:1}.ch-qnav a:hover,.ch-qnav a:focus-visible,.ch-qnav a[aria-current=page]{border-color:#b9400c;background:#ffead9;outline-offset:1px}.ch-qform{margin-top:11px}.ch-qform label{display:block;font-size:10px;letter-spacing:.08em;font-weight:800;text-transform:uppercase;color:#8b3a19;margin-bottom:4px}.ch-qform>div{display:flex;gap:5px}.ch-qform input{flex:1;min-width:0;font-size:12px}.clara-help .ch-qform button{background:#d44813;color:white;border:2px solid #352721;padding:5px 11px;font-size:20px;line-height:1;box-shadow:2px 2px 0 #352721}.ch-qreply{margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere;border-left:3px solid #e3632b;background:#fff2e5;border-radius:3px 9px 9px 3px;padding:8px;font-size:12px;max-height:160px;overflow:auto}.ch-qreply[hidden]{display:none}.ch-qtools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}.clara-help .ch-qtools button{font-size:11px;padding:7px 3px;border:1px solid #ddc9ba;border-radius:8px;background:#fffaf2;min-height:34px}.clara-help .ch-qtools button:first-child{background:#342923;color:#fff;border-color:#342923}.ch-qfoot{font-size:10px;padding:7px 12px 9px;color:#736057;border-top:1px dashed #e2d0c0;font-weight:650}.ch-bubble{border:2px solid #2d2522;border-radius:18px 18px 5px 18px;box-shadow:3px 4px 0 #2d2522;background:#fffdf7;font-size:14px;font-weight:850;letter-spacing:-.025em;padding:9px 13px;max-width:205px}.ch-bubble::after{background:#fffdf7;right:38px}.ch-quick a:focus-visible{outline:2px solid #d9480f}.clara-help .ch-qform button:disabled{opacity:.5;cursor:wait}@media(max-width:700px){.ch-quick{right:4px;max-height:min(490px,calc(100dvh - 238px))}.ch-qnav a{min-height:50px}.ch-quick::after{right:48px}}@media(max-height:550px){.ch-quick{bottom:52px;right:0;max-height:calc(100dvh - 82px)}.ch-quick::after{display:none}.ch-qhead{padding:7px 10px}.ch-qfoot{display:none}.ch-qnav{grid-template-columns:repeat(3,minmax(0,1fr))}.ch-qnav a{min-height:40px}.ch-qnav a span{font-size:15px}}
.ch-qfoot{display:flex;align-items:center;justify-content:space-between;gap:6px}.clara-help .ch-qfoot button{font-size:10px;padding:4px 7px;border-radius:6px;white-space:nowrap;color:#7b3718;border:1px solid #e1bea5;background:#fff2e5}.clara-help .ch-qfoot button[aria-pressed=true]{background:#342923;border-color:#342923;color:white}@media(max-height:550px){.ch-qfoot{display:none}}
@media(max-height:550px){.ch-perch{width:128px;height:148px}.ch-stage{width:128px;height:142px}.ch-floor{bottom:12px;left:30px;right:30px}.ch-dock-cap{top:10px}.ch-quick{right:max(0px,min(140px,calc(100vw - 352px)));max-width:calc(100vw - 24px)}}
/* Free companion movement. Position is independent from the fixed Ask CLARA launcher. */
.ch-perch.ch-detached{position:fixed;left:var(--pet-x,0px);top:var(--pet-y,0px);right:auto;bottom:auto;z-index:6;filter:none}
.ch-detached .ch-stage,.ch-detached .ch-floor{animation:none!important}.ch-stage{cursor:grab}.ch-in-air .ch-stage{cursor:grabbing;filter:drop-shadow(0 8px 6px #29212a25)}.ch-in-air .ch-floor{opacity:0}
.ch-quick.ch-anchored{position:fixed;left:var(--quick-x,8px);top:var(--quick-y,8px);right:auto;bottom:auto;max-height:min(510px,calc(100dvh - 22px))}.ch-quick.ch-anchored::after{display:none}.ch-low-headroom .ch-bubble{bottom:auto;top:calc(100% - 14px)}.ch-low-headroom .ch-bubble::after{top:-8px;bottom:auto;transform:rotate(225deg)}.ch-detached .ch-dock-cap{pointer-events:auto}.ch-qtools [data-quick=home]{grid-column:span 2}.ch-in-air .ch-dock-cap{opacity:0;pointer-events:none}


.ch-library{padding-bottom:12px}.ch-library h4{margin:12px 0 6px;font-size:12px;color:#9e370c;text-transform:uppercase;letter-spacing:.06em}.ch-library-row{display:flex;gap:5px;flex-wrap:wrap}.ch-library select{flex:1;min-width:150px;max-width:100%;font:inherit;border:1px solid #e6d9ce;border-radius:9px;padding:8px;background:white;color:#332921}.ch-library-status{font-size:12px;color:#65584e;margin:5px 0;overflow-wrap:anywhere}.ch-model-card{display:flex;gap:9px;padding:9px 0;border-bottom:1px solid #e9ded4;align-items:center}.ch-model-card>div{flex:1;min-width:0}.ch-model-card strong,.ch-model-card small,.ch-pack small{display:block;overflow-wrap:anywhere}.ch-model-card small,.ch-pack small{font-size:11px;color:#65584e}.ch-model-card a,.ch-pack a{color:#ab390b;font-size:12px}.ch-model-card button{align-self:center}.ch-pack{padding:6px 0}.ch-model-file{max-width:100%}.ch-library[aria-busy=true] button{opacity:.6}

.ch-panel.ch-library-mode{overflow:hidden}.ch-panel.ch-library-mode>.ch-actions,.ch-panel.ch-library-mode>.ch-chat,.ch-panel.ch-library-mode>.ch-form,.ch-panel.ch-library-mode>.ch-details:not(.ch-library),.ch-panel.ch-library-mode>.ch-status{display:none}.ch-panel.ch-library-mode>.ch-character,.ch-panel.ch-library-mode>.ch-head{flex-shrink:0}.ch-panel.ch-library-mode .ch-library{flex:1 1 auto;min-height:0;overflow:auto;max-height:calc(100dvh - 220px);padding:12px 16px 16px}.ch-panel.ch-library-mode .ch-library>summary{font-size:11px;text-transform:uppercase;letter-spacing:.1em;margin:0 0 7px}.ch-library-top{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:14px}.ch-library-top button{font-size:11px;padding:6px 8px}.ch-model-card{border:1px solid #e6d9ce;border-radius:11px;margin:7px 0;padding:10px;background:#fff}.ch-model-card button{background:#b9400c;color:#fff;border-color:#b9400c}.ch-model-card a{display:inline-block;margin-top:3px}

.ch-clip-select{min-width:0;max-width:100%;font:inherit;border:1px solid #e6d9ce;border-radius:9px;background:white;color:#332921;padding:6px}.ch-clip-play{white-space:nowrap}.ch-model-card strong{font-weight:700}

/* Original CLARA cube: compact, collectible finish system and impact ripple. */
.clara-help{--cube-accent:#e95616}.ch-perch{width:164px;height:170px}.ch-stage{width:164px;height:160px}.ch-floor{left:31px;right:31px;bottom:22px;height:10px;background:radial-gradient(ellipse,#251b2538,transparent 72%);box-shadow:none}.ch-panel-stage{width:158px;height:145px}.ch-dock-cap{top:7px;right:0}.ch-stage.ch-held{filter:drop-shadow(0 0 8px var(--cube-accent))}.ch-qseal{background:var(--cube-accent)!important}.ch-quick{background:#fff;border-color:#211c20;box-shadow:4px 5px 0 #211c20,0 15px 36px #24192525}.ch-bubble{background:#fff;border-color:#211c20;box-shadow:3px 4px 0 #211c20;font-weight:800}.ch-bubble::after{background:#fff}.ch-skin-card{padding:9px;gap:10px}.ch-skin-swatch{display:grid!important;flex:0 0 52px!important;grid-template-columns:repeat(3,1fr);gap:2px;width:52px;height:52px;box-sizing:border-box;background:#1a181b;padding:3px;border-radius:7px;box-shadow:0 3px 5px #18151b28;transform:rotate(-5deg)}.ch-skin-swatch i{border-radius:3px;box-shadow:inset 0 1px 1px #ffffff60}.ch-active-skin{border-color:var(--cube-accent);background:#fff9f7}.ch-skin-card button[aria-pressed=true]{background:#272125;color:white;border-color:#272125}.ch-impact .ch-floor{animation:ch-cube-impact .55s ease-out both;background:transparent;border:2px solid var(--cube-accent)}@keyframes ch-cube-impact{0%{opacity:.8;transform:scale(.7)}100%{opacity:0;transform:scale(1.7)}}
@media(max-width:700px){.ch-perch{width:132px;height:138px}.ch-stage{width:132px;height:128px}.ch-floor{bottom:14px;left:25px;right:25px}.ch-panel-stage{width:120px;height:115px}.ch-quick{max-height:min(510px,calc(100dvh - 205px))}}@media(max-height:550px){.ch-perch{width:110px;height:116px}.ch-stage{width:110px;height:108px}.ch-quick{max-height:calc(100dvh - 76px)}}@media(prefers-reduced-motion:reduce){.ch-impact .ch-floor{animation:none}}
/* Collectible cube: contextual visual play, never intercepts document input. */
.ch-trick-menu{margin-top:10px;border:1px solid #e5d7d4;border-radius:10px;background:#fffaf8;padding:8px}.ch-trick-menu summary{font-size:12px;font-weight:800;cursor:pointer;list-style-position:inside;color:#292125}.ch-trick-menu summary span{float:right;color:#a03746;font:700 10px ui-monospace,monospace}.ch-trick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:8px 0}.clara-help .ch-trick-grid button{min-height:34px;font-size:11px;padding:5px;border-radius:7px;border:1px solid #e0d5d0;background:#fff;color:#251c20}.clara-help .ch-trick-grid button:hover{background:#fce9ec;border-color:#d8102d}.clara-help .ch-trick-grid button:disabled{opacity:.5;cursor:not-allowed}.ch-auto-play{display:flex;align-items:center;gap:7px;font-size:11px;color:#5d5354}.ch-letter-field{position:fixed;inset:0;pointer-events:none;z-index:9;overflow:hidden}.ch-letter-field span{position:absolute;left:0;top:0;will-change:transform,opacity;pointer-events:none;user-select:none;font-weight:900;color:var(--cube-accent);text-shadow:0 0 7px #fff,0 0 2px #fff;opacity:0}.ch-camouflaged canvas{opacity:var(--camo-opacity,1);transition:opacity .12s linear}.ch-cube-charged canvas{filter:drop-shadow(0 0 6px var(--cube-accent))}.clara-help[data-trick] .ch-floor{opacity:.32}.clara-help[data-trick=Tornado] .ch-floor,.clara-help[data-trick=Disassemble] .ch-floor{animation:ch-cube-impact 1.4s ease-out infinite;border:1px solid var(--cube-accent)}@media(prefers-reduced-motion:reduce){.ch-letter-field{display:none}.ch-camouflaged canvas{transition:none}.clara-help[data-trick] .ch-floor{animation:none!important}}

/* CUBE / interface collection. Material-aware surfaces, precise chrome, restrained contact shadow. */
.clara-help{--cube-ink:#19191f;--cube-light:#f6f4ef;--cube-seam:#75101d;--ui-paper:#fff;--ui-line:#e3e0e3;--ui-muted:#67646b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:var(--cube-ink);font-size:13px}
.clara-help button,.clara-help input,.clara-help textarea,.clara-help select{letter-spacing:0;min-width:0}
.clara-help button:focus-visible,.clara-help a:focus-visible,.clara-help input:focus-visible,.clara-help textarea:focus-visible,.clara-help select:focus-visible,.clara-help summary:focus-visible{outline:2px solid var(--cube-accent);outline-offset:3px}
.clara-help button{border-color:var(--ui-line);border-radius:8px;background:white;color:var(--cube-ink);transition:background .15s,border-color .15s,box-shadow .15s}
.clara-help button:hover{border-color:var(--cube-accent);background:color-mix(in srgb,var(--cube-accent) 5%,white)}
.clara-help button:disabled{cursor:not-allowed;opacity:.55}
.ch-dock .ch-launch{min-height:44px;padding:9px 14px;background:var(--cube-ink);border:1px solid var(--cube-ink);border-radius:8px;color:white;box-shadow:0 4px 12px #15131b20;font-weight:750;letter-spacing:.015em;gap:9px}
.ch-launch svg{width:22px;height:22px}.ch-launch svg path{fill:#fff}.ch-dock .ch-launch:hover{background:var(--cube-accent);border-color:var(--cube-accent)}
.ch-stage,.ch-panel-stage{filter:drop-shadow(0 3px 2px #15131b22)}
.ch-floor{left:34%;right:34%;height:7px;bottom:19px;border:0;box-shadow:none;opacity:.8;background:radial-gradient(ellipse,#211c2740 0%,#211c2710 45%,transparent 73%);transform:scaleX(1.1);pointer-events:none}
.ch-stage.ch-held{filter:drop-shadow(0 3px 2px #15131b25)}
.ch-stage.ch-held::after,.ch-spark-ready .ch-stage::after{content:'';position:absolute;left:19%;right:19%;bottom:14%;height:12%;border:1px solid var(--cube-accent);border-radius:50%;opacity:.9;pointer-events:none;animation:ch-ui-charge 1.1s ease-out infinite}
.ch-spark-ready .ch-stage{filter:drop-shadow(0 0 5px var(--cube-accent))}
.ch-cube-charged canvas{filter:drop-shadow(0 0 3px var(--cube-accent))}
.ch-in-air .ch-floor{opacity:0}.ch-impact .ch-floor{height:14px;background:transparent;border:1px solid var(--cube-accent);animation:ch-cube-impact .55s ease-out both}
@keyframes ch-ui-charge{from{transform:scale(.7);opacity:.9}to{transform:scale(1.4);opacity:0}}
.ch-dock-cap{opacity:.25}.ch-perch:hover .ch-dock-cap,.ch-dock-cap:focus-within{opacity:1}.clara-help .ch-hide{width:22px;height:22px;line-height:18px;border:1px solid #ddd;background:#fff;color:#595761}
/* Shared 3D-inspired identity tile. Real skin colors, no emoji or generic sparkle. */
.ch-qseal{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;width:37px;height:37px;flex:0 0 37px;padding:4px;background:var(--cube-ink)!important;border:1px solid var(--cube-ink);border-radius:8px;box-shadow:0 2px 0 var(--cube-seam);transform:rotate(-7deg)}
.ch-qseal i{display:block;min-width:0;min-height:0;border-radius:2px;background:var(--cube-accent);box-shadow:inset 0 1px 0 #ffffff55}
.ch-quick,.ch-panel{background:var(--ui-paper);border:1px solid #d9d7db;border-radius:15px;box-shadow:0 2px 0 var(--cube-ink),0 15px 55px #15131b30,0 0 0 1px #19191f08;overflow:visible;color:var(--cube-ink)}
.ch-quick,.ch-quick.ch-anchored{position:fixed;inset:auto;left:var(--bubble-x,8px);top:var(--bubble-y,8px);width:354px;max-width:calc(100vw - 16px);max-height:min(500px,calc(100dvh - 198px));z-index:8;isolation:isolate}
.ch-quick::after,.ch-quick.ch-anchored::after,.ch-bubble::after{display:block;content:'';position:absolute;width:13px;height:13px;background:#fff;border:0;border-right:1px solid #d9d7db;border-bottom:1px solid #d9d7db;transform:rotate(45deg);z-index:-1;left:calc(var(--tail-x,50%) - 7px);right:auto;bottom:-7px;top:auto;box-shadow:2px 2px 0 var(--cube-ink)}
.clara-help [data-side=below]::after{top:-7px;bottom:auto;transform:rotate(225deg);box-shadow:none}
.clara-help [data-side=left]::after{left:auto;right:-7px;top:calc(var(--tail-y,50%) - 7px);bottom:auto;transform:rotate(-45deg);box-shadow:none}
.clara-help [data-side=right]::after{left:-7px;right:auto;top:calc(var(--tail-y,50%) - 7px);bottom:auto;transform:rotate(135deg);box-shadow:none}
.clara-help [data-side=none]::after{display:none}
.ch-qhead,.ch-head{border-top:3px solid var(--cube-accent);border-radius:14px 14px 0 0;background:#fff;padding:12px 13px 11px;gap:11px;flex:none;border-bottom:1px solid var(--ui-line)}
.ch-qidentity,.ch-heading{min-width:0;flex:1}.ch-qhead small,.ch-sub,.ch-kicker{font:700 9px/1.2 ui-monospace,monospace;letter-spacing:.115em;color:var(--ui-muted);text-transform:uppercase;display:block;margin:0 0 4px}.ch-qhead strong,.ch-title{font-size:19px;line-height:1.1;font-weight:850;letter-spacing:-.055em;color:var(--cube-ink)}
.clara-help .ch-qclose,.clara-help .ch-close{border:1px solid var(--ui-line);padding:0;background:#f8f7f8;color:var(--cube-ink);width:32px;height:32px;min-height:32px;flex:none;font-size:21px;line-height:1;border-radius:8px;margin-left:auto}
.ch-qscroll{padding:12px;scrollbar-width:thin;scrollbar-color:#bbb5bf transparent;min-height:0;overflow:auto;overscroll-behavior:contain;border-radius:0 0 14px 14px}
.ch-section-label{display:flex;justify-content:space-between;align-items:center;font:700 9px/1.4 ui-monospace,monospace;letter-spacing:.09em;color:var(--ink,var(--cube-ink));margin:0 0 7px}.ch-section-label span{color:var(--ui-muted);font-weight:500}.ch-tool-label{margin-top:14px}
.ch-qnav{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.ch-qnav a{min-height:58px;padding:6px 1px;border:1px solid var(--ui-line);border-radius:8px;background:#faf9fa;color:var(--cube-ink);font-size:10px;font-weight:650;gap:5px;line-height:1.1}.ch-qnav a span{color:var(--cube-ink);display:flex;align-items:center;justify-content:center}.ch-qnav svg{width:20px;height:20px}.ch-qnav a[aria-current=page]{background:var(--cube-ink);border-color:var(--cube-ink);color:#fff}.ch-qnav a[aria-current=page] span{color:#fff}.ch-qnav a:hover,.ch-qnav a:focus-visible{border-color:var(--cube-accent);background:color-mix(in srgb,var(--cube-accent) 8%,white);color:var(--cube-ink)}.ch-qnav a:hover span{color:var(--cube-accent)}
.ch-qform{margin:14px 0 0}.ch-qform label{font:700 9px ui-monospace,monospace;letter-spacing:.1em;color:var(--cube-ink);margin-bottom:6px}.ch-qform>div,.ch-form{gap:6px}.clara-help input,.clara-help textarea{border:1px solid #d9d6dc;border-radius:8px;background:#fbfafb;color:var(--cube-ink);padding:10px;min-height:38px;font-size:13px}.clara-help .ch-qform button,.clara-help .ch-primary{background:var(--cube-ink);color:#fff;border:1px solid var(--cube-ink);border-radius:8px;box-shadow:none;min-width:40px;font-size:21px;padding:4px 9px}.clara-help .ch-qform button:hover,.clara-help .ch-primary:hover{background:var(--cube-accent);border-color:var(--cube-accent)}
.ch-qreply{border:1px solid var(--ui-line);border-left:3px solid var(--cube-accent);border-radius:7px;background:#f7f6f8;max-height:150px;font-size:12px;line-height:1.5;padding:10px;scrollbar-width:thin}
.ch-qtools{margin-top:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.clara-help .ch-qtools button{border:1px solid var(--ui-line);background:white;color:var(--cube-ink);font-size:10px;padding:6px 3px;border-radius:7px;font-weight:650;min-height:35px;white-space:normal}.ch-qtools [data-quick=home]{grid-column:auto}.clara-help .ch-qtools button:first-child{background:var(--cube-ink);border-color:var(--cube-ink);color:#fff}.clara-help .ch-qtools button[data-quick=characters]{border-color:var(--cube-accent)}
.ch-trick-menu{background:#f8f7f9;border:1px solid var(--ui-line);padding:8px;margin-top:10px;border-radius:8px}.ch-trick-menu summary{color:var(--cube-ink);font-weight:750;font-size:12px}.ch-trick-menu summary span{color:var(--ui-muted)}.clara-help .ch-trick-grid button{border-color:var(--ui-line);min-height:36px;background:white}.clara-help .ch-trick-grid button:hover{border-color:var(--cube-accent);background:color-mix(in srgb,var(--cube-accent) 6%,white)}.ch-auto-play{justify-content:flex-start;gap:7px;color:var(--ui-muted)}.clara-help .ch-auto-input{width:16px;min-height:0;height:16px;flex:none;accent-color:var(--cube-accent);margin:0}
.ch-qfoot{border-top:1px solid var(--ui-line);padding:8px 12px;background:#fff;border-radius:0 0 14px 14px;font:600 10px ui-monospace,monospace;color:var(--ui-muted);flex:none}.clara-help .ch-qfoot button{background:#f9f8fa;color:var(--cube-ink);border:1px solid var(--ui-line);min-height:28px}.clara-help .ch-qfoot button[aria-pressed=true]{background:var(--cube-ink);color:#fff}
/* A real anchored speech balloon, without a permanent label or big bloom. */
.clara-help .ch-bubble{position:fixed;inset:auto;left:var(--bubble-x,8px);top:var(--bubble-y,8px);width:max-content;max-width:min(240px,calc(100vw - 24px));padding:10px 13px;border:1px solid #d9d7db;border-top:3px solid var(--cube-accent);border-radius:12px;background:#fff;color:var(--cube-ink);font-size:13px;font-weight:750;line-height:1.35;letter-spacing:-.015em;box-shadow:0 2px 0 var(--cube-ink),0 6px 20px #15131b20;isolation:isolate;overflow:visible;z-index:9}
.ch-bubble[data-kind=music]{font-size:22px;letter-spacing:.15em;padding:7px 16px}.ch-bubble[data-kind=game]{font-family:ui-monospace,monospace;font-size:12px}.ch-bubble[data-kind=voice]{font-weight:550}
/* Full assistant: avatar gallery, chat first, optional controls and tools. */
.ch-panel{width:420px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;gap:0}
.ch-head{position:sticky;top:0;z-index:4}.ch-head .ch-qseal{width:34px;height:34px;flex-basis:34px}
.ch-character{display:flex;flex:none;gap:12px;padding:6px 16px 8px;background:linear-gradient(135deg,#f8f7f9,#fff);border-bottom:1px solid var(--ui-line);min-height:122px}.ch-panel-stage{flex:0 0 42%;width:138px;height:124px;max-width:42%;overflow:hidden}.ch-metadata{font-size:11px;color:var(--ui-muted);min-width:0}.ch-metadata strong{font-weight:850;font-size:20px;color:var(--cube-ink);letter-spacing:-.045em;line-height:1.2;margin:3px 0}.ch-avatar-state{display:block;line-height:1.4;overflow-wrap:anywhere}.clara-help .ch-finish-link{font-size:11px;font-weight:750;border:0;border-radius:0;background:transparent;padding:6px 0 0;color:var(--cube-ink);text-decoration:underline;text-underline-offset:3px}
.ch-control-drawer{margin:0 12px;border-bottom:1px solid var(--ui-line);padding:9px 0;flex:none}.ch-control-drawer summary{cursor:pointer;font-size:12px;font-weight:700;color:var(--cube-ink)}.ch-control-drawer summary span{float:right;font:500 10px ui-monospace,monospace;color:var(--ui-muted)}.ch-actions{padding:8px 0 0;gap:5px;border:0}.ch-actions button,.ch-clip-select{border-color:var(--ui-line);font-size:11px;padding:6px 8px;min-height:32px}.ch-actions button[aria-pressed=true]{background:var(--cube-ink);color:white}
.ch-chat{padding:12px;flex:1 0 auto;min-height:125px;max-height:min(310px,35dvh);gap:12px;scrollbar-width:thin;overscroll-behavior:contain}.ch-msg{border:1px solid var(--ui-line);border-left:3px solid var(--cube-accent);border-radius:3px 11px 11px 11px;background:#f6f5f7;padding:10px 12px;font-size:13px;line-height:1.55;max-width:100%}.ch-msg.user{background:var(--cube-ink);border:1px solid var(--cube-ink);border-radius:11px 3px 11px 11px;color:white}.ch-msg small{display:block;color:var(--ui-muted);font-size:10px;line-height:1.5}.ch-msg pre{background:var(--cube-ink);color:#f8f8fa;border-radius:6px;padding:10px}.ch-msg a{color:var(--cube-ink);text-decoration:underline;text-underline-offset:2px}
.ch-form{position:sticky;bottom:0;background:white;padding:10px 12px;border-top:1px solid var(--ui-line);flex:none;z-index:2}.ch-form input{font-size:13px}
.ch-details{padding:8px 0;margin:0 12px;border-top:1px solid var(--ui-line);flex:none}.ch-details summary{color:var(--cube-ink);font-size:12px;font-weight:700}.ch-details p{font-size:11px;color:var(--ui-muted)}.ch-details input,.ch-details textarea{width:100%}.ch-status{color:var(--ui-muted);font-size:10px;padding:8px 12px 12px}.ch-status a{color:var(--cube-ink)}
.ch-panel.ch-library-mode>.ch-control-drawer{display:none}.ch-panel.ch-library-mode .ch-library{padding:12px;margin:0;max-height:calc(100dvh - 220px)}.ch-library select,.ch-model-card{border-color:var(--ui-line)}.ch-model-card{border-radius:9px}.ch-model-card button{background:var(--cube-ink);color:#fff;border-color:var(--cube-ink);font-size:11px}.ch-active-skin{border-color:var(--cube-accent);background:color-mix(in srgb,var(--cube-accent) 4%,white)}
@media(max-width:700px){.ch-floor{bottom:12px}.ch-quick{max-height:min(500px,calc(100dvh - 174px))}.ch-panel{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.ch-character{padding:4px 12px;min-height:102px}.ch-panel-stage{height:102px}.ch-qnav a{min-height:54px}}
@media(max-height:550px){.ch-quick{max-height:calc(100dvh - 16px)}.ch-qfoot{display:none}.ch-panel{max-height:calc(100dvh - 16px)}.ch-character{min-height:76px}.ch-panel-stage{height:76px;flex-basis:31%}.ch-chat{max-height:140px;min-height:88px}.ch-head,.ch-qhead{padding:8px 12px}.ch-panel.ch-library-mode .ch-library{max-height:calc(100dvh - 130px)}}
@media(prefers-reduced-motion:reduce){.clara-help *, .clara-help *::after,.clara-help *::before{animation:none!important;transition:none!important}}
/* Give the nine enamel cells real grid tracks, independent of page typography. */
.ch-qseal{grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(3,minmax(0,1fr));place-items:stretch}
.ch-qseal i{width:100%;height:100%;align-self:stretch;justify-self:stretch}
.ch-quick .ch-qnav a[aria-current=page]:hover span{color:var(--cube-accent)}
/* Cubie Life: stable layout anchor and a single real-mesh shatter canvas. */
.ch-home-anchor{visibility:hidden!important;pointer-events:none!important;flex:none}.ch-home-anchor[hidden]{display:none!important}
.clara-help>.ch-shatter-canvas{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;display:block;z-index:10;pointer-events:none;filter:none}
.ch-shattering .ch-floor{opacity:.25}.ch-shattering .ch-stage{filter:none}.ch-shattering .ch-dock-cap{opacity:0;pointer-events:none}
.clara-help .ch-letter-field{display:block;pointer-events:none}
@media(prefers-reduced-motion:reduce){.clara-help>.ch-shatter-canvas,.clara-help .ch-letter-field{display:none!important}}
/* World Eater: isolated visual layer, never a page screenshot or a destructive DOM transform. */
.clara-help .ch-cinema{position:fixed;inset:0;z-index:30;overflow:hidden;isolation:isolate;pointer-events:auto;touch-action:manipulation;overscroll-behavior:contain}
.clara-help .ch-cinema-fx{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none}
.clara-help .ch-cinema-actor{position:absolute;left:0;top:0;will-change:transform,width,height;pointer-events:none;filter:drop-shadow(0 12px 24px #16090ab0)}
.clara-help .ch-cinema-actor canvas{width:100%;height:100%;display:block;max-width:none;pointer-events:none}
.clara-help .ch-cinema-title{position:absolute;left:clamp(12px,4vw,40px);top:max(16px,env(safe-area-inset-top));font:800 clamp(10px,2.5vw,14px)/1.2 ui-monospace,monospace;letter-spacing:.13em;color:#fff2df;background:#1a121cdd;border-left:3px solid #ff762b;padding:10px 12px;max-width:62%;pointer-events:none}
.clara-help button.ch-cinema-skip{position:absolute;right:max(10px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));padding:9px 12px;background:#17151a;color:#fff;border:1px solid #ffffff60;min-height:42px;font-size:12px;box-shadow:0 2px 12px #0007}
.ch-cinema-active .ch-dock{visibility:hidden}.clara-help[data-motion=throw] .ch-floor,.clara-help[data-motion=throw] .ch-dock-cap{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.clara-help .ch-cinema{display:none}}

.ch-in-air .ch-stage canvas{transform:scale(var(--bounce-round,1),var(--bounce-scale,1));transform-origin:50% 75%}
