:root{--plush-wool:#fdfaf5;--plush-wool-shadow:#d9cdbf;--plush-skin:#e4d6cc;--plush-skin-shadow:#c7b3a6;--plush-snout:#ddcbbf;--plush-ear:#b3a093;--plush-thread:#5b463d;--plush-nose:#7a6157;--plush-button:#181210;--plush-blush:#f4aab5;--plush-hoof:#8e7a6e;--tear:#8fd3ff}.plush-llama,.spot{width:100%;max-width:460px;height:100%;overflow:visible}.spot-sheen{fill:#fff}.vrm-avatar,.plush-3d{width:100%;height:100%}.plush-fuzzy{filter:var(--plush-fuzz)}.plush-wool{fill:var(--plush-wool)}.plush-wool-outline{fill:var(--plush-wool-shadow)}.plush-ear-outer{stroke:var(--plush-wool-shadow);stroke-width:3px;stroke-linejoin:round}.plush-ear-inner{fill:var(--plush-ear)}.plush-curl{fill:none;stroke:var(--plush-wool-shadow);stroke-width:2.4px;stroke-linecap:round}.plush-skin{fill:var(--plush-skin)}.plush-snout{fill:var(--plush-snout);stroke:var(--plush-skin-shadow);stroke-width:2px}.plush-thread{fill:none;stroke:var(--plush-thread);stroke-width:3.4px;stroke-linecap:round}.plush-lash{fill:none;stroke:var(--plush-button);stroke-width:2.4px;stroke-linecap:round}.plush-button{fill:var(--plush-button)}.plush-button-shine{fill:#fff;opacity:.9}.plush-lid{fill:var(--plush-skin);stroke:var(--plush-thread);stroke-width:1.6px}.plush-nose{fill:var(--plush-nose)}.plush-nose-shine{fill:none;stroke:#fff;stroke-width:1.6px;stroke-linecap:round;opacity:.45}.plush-mouth{fill:var(--plush-nose);stroke:var(--plush-thread);stroke-width:3px;stroke-linejoin:round;stroke-linecap:round}.plush-cheeks{fill:var(--plush-blush)}.plush-tear{fill:var(--tear)}.plush-hoof{fill:var(--plush-hoof)}.plush-hoof-split,.plush-toes{fill:none;stroke:var(--plush-wool-shadow);stroke-width:2px;stroke-linecap:round}.plush-outlined{stroke:var(--plush-wool-shadow);stroke-width:3px;stroke-linejoin:round}.plush-cream .plush-wool{fill:var(--plush-skin)}.plush-cream .plush-wool-outline{fill:var(--plush-skin-shadow)}.plush-ear-tuft{fill:var(--plush-skin)}.plush-spines{fill:var(--plush-wool);stroke:var(--plush-wool-shadow);stroke-width:2.2px;stroke-linejoin:round}.plush-streak{fill:none;stroke:var(--plush-thread);stroke-width:2.6px;stroke-linecap:round;opacity:.45}.plush-ear-outer-tan,.plush-paw{fill:var(--plush-ear);stroke:var(--plush-wool-shadow);stroke-width:2px}.plush-spines-back{fill:var(--plush-wool-shadow)}.plush-horn{fill:var(--plush-ear);stroke:var(--plush-hoof);stroke-width:2.4px;stroke-linejoin:round}.plush-horn-ridge{fill:none;stroke:var(--plush-hoof);stroke-width:2px;stroke-linecap:round}.plush-sclera{fill:#fffdf8;stroke:var(--plush-thread);stroke-width:2.4px}.plush-teeth{fill:#fffdf8;stroke:var(--plush-thread);stroke-width:1.2px;stroke-linejoin:round}.plush-bean{fill:var(--plush-ear)}.plush-claw{fill:none;stroke:#fffdf8;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round}.plush-fox .plush-lid,.plush-monster .plush-lid{fill:var(--plush-wool)}.plush-accent{fill:var(--plush-accent,#7c5cff);stroke:var(--plush-accent-shadow,#563fb3);stroke-width:1.4px}.plush-accent-knot{fill:var(--plush-accent-shadow,#563fb3)}.plush-accent-stripe{fill:none;stroke:var(--plush-accent-shadow,#563fb3);stroke-width:2px;stroke-dasharray:3 4}.plush-accent-fringe{fill:none;stroke:var(--plush-accent,#7c5cff);stroke-width:2px;stroke-linecap:round}.plush-glasses{fill:#ffffff1f;stroke:var(--plush-accent-shadow,#563fb3);stroke-width:2.6px}.plush-flower-centre{fill:#f6d55c}.plush-thinking{fill:var(--accent,#7c5cff);transition:opacity .3s}.plush-sleep{fill:var(--muted,#6b6880);font:700 22px system-ui,sans-serif}:root{--bg:#f6f5fb;--surface:#fff;--border:#e3e0ef;--text:#1d1b26;--muted:#6b6880;--accent:#7c5cff;--accent-hover:#6a48f5;--on-accent:#fff;--error:#c62f4a;--success:#1f8a5b;--radius:14px;--shadow:0 1px 2px #140a3c0f, 0 8px 24px #140a3c0f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#14131b;--surface:#1d1c27;--border:#2f2d3d;--text:#ecebf4;--muted:#9c99b3;--accent:#9b82ff;--accent-hover:#ad98ff;--on-accent:#14131b;--error:#ff7a90;--success:#5fd49d;--shadow:none}}*{box-sizing:border-box}body{background:var(--bg);min-height:100vh;margin:0}h1,h2{margin:0;line-height:1.2}a{color:var(--accent)}.muted{color:var(--muted)}.error{color:var(--error);margin:0}.success{color:var(--success);margin:0}.splash{min-height:100vh}.stack{gap:14px;display:grid}label{gap:6px;font-size:.9rem;font-weight:500;display:grid}input{font:inherit;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;padding:10px 12px}input:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button{font:inherit;background:var(--accent);color:var(--on-accent);cursor:pointer;border:0;border-radius:10px;padding:10px 16px;font-weight:600}button:hover:not(:disabled){background:var(--accent-hover)}button:disabled{opacity:.6;cursor:progress}button.secondary{color:var(--text);border:1px solid var(--border);background:0 0}button.link{color:var(--muted);background:0 0;padding:0;font-weight:500}button.link:hover:not(:disabled){color:var(--text);background:0 0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}.auth-page{place-items:center;min-height:100vh;padding:16px;display:grid}.auth-card{justify-items:stretch;gap:18px;width:min(100%,380px);display:grid}.auth-card .familiar-mark{justify-self:center}.auth-card h1{text-align:center;font-size:1.5rem}.auth-card>.muted{text-align:center;margin:0}.topbar{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.brand{color:var(--text);align-items:center;gap:8px;font-weight:700;text-decoration:none;display:flex}.topbar nav{align-items:center;gap:16px;font-size:.95rem;display:flex}.topbar nav a{color:var(--muted);text-decoration:none}.topbar nav a.active,.topbar nav a:hover{color:var(--text)}.content{max-width:1120px;margin:0 auto;padding:24px 16px}.shell{flex-direction:column;min-height:100vh;display:flex}.shell .content{flex:1;width:100%}.home{grid-template-rows:auto 1fr;gap:16px;height:calc(100vh - 105px);min-height:520px;display:grid}@media (width>=900px){.home{grid-template-rows:1fr;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}.stage-panel{grid-template-rows:1fr auto auto;justify-items:center;min-height:0;display:grid}.avatar-stage{justify-content:center;align-items:center;width:100%;height:clamp(180px,32vh,320px);display:flex;overflow:hidden}@media (width>=900px){.avatar-stage{height:100%}}.familiar-name{margin:4px 0 0;font-size:1.1rem;font-weight:700}.familiar-status{color:var(--muted);font-size:.95rem;font-weight:400}.timers{width:min(100%,360px);margin-top:8px}.timers ul{gap:6px;margin:0;padding:0;list-style:none;display:grid}.job{border:1px solid var(--border);background:var(--surface);border-radius:999px;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;padding:6px 6px 6px 12px;font-size:.95rem;display:grid}.job-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.job-when{font-variant-numeric:tabular-nums;color:var(--muted)}.job.timer .job-when{color:var(--accent);font-weight:700}.job-cancel{color:var(--muted);padding:2px 8px}.push-nudge{text-align:center;margin:8px 0 0;font-size:.85rem}.chat{grid-template-rows:1fr auto auto auto;min-height:0;padding:0;display:grid;overflow:hidden}.transcript{flex-direction:column;gap:10px;min-height:0;margin:0;padding:16px;list-style:none;display:flex;overflow-y:auto}.transcript-empty{text-align:center;margin:auto}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:16px;gap:2px;max-width:85%;padding:9px 13px;display:grid}.bubble.user{background:var(--accent);color:var(--on-accent);border-bottom-right-radius:5px;align-self:flex-end}.bubble.assistant{background:var(--bg);border:1px solid var(--border);border-bottom-left-radius:5px;align-self:flex-start}.bubble.streaming .bubble-text:after{content:"▍";color:var(--accent);margin-left:1px;animation:1s step-end infinite caret}@keyframes caret{50%{opacity:0}}.bubble-meta{color:var(--muted);font-size:.75rem}.chat-error{padding:0 16px 8px}.tool-chips{white-space:normal;flex-wrap:wrap;gap:4px;margin:0 0 2px;padding:0;list-style:none;display:flex}.tool-chip{border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:999px;padding:2px 9px;font-size:.8rem}.tool-chip.done{color:var(--success);border-color:color-mix(in srgb, var(--success) 35%, var(--border))}.tool-chip.failed{color:var(--error);border-color:color-mix(in srgb, var(--error) 35%, var(--border))}.tool-chip.running{animation:1.2s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.55}}.bubble.tools-only{background:0 0;border:none;padding:0}.confirm{border:1px solid var(--accent);gap:10px;margin:0 12px 10px;padding:12px 14px;display:grid}.confirm p{margin:0}.confirm-actions{gap:8px;display:flex}.composer{border-top:1px solid var(--border);align-items:flex-end;gap:8px;padding:12px;display:flex}.composer textarea{font:inherit;resize:none;field-sizing:content;border:1px solid var(--border);background:var(--bg);max-height:160px;color:var(--text);border-radius:10px;flex:1;padding:10px 12px}.composer textarea:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.chat-footer{justify-content:flex-end;padding:0 12px 10px;font-size:.85rem;display:flex}@media (prefers-reduced-motion:reduce){.bubble.streaming .bubble-text:after{animation:none}}.field-row{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;display:grid}.slider{gap:2px}.slider input[type=range]{accent-color:var(--accent);padding:0}.slider-ends{justify-content:space-between;font-size:.8rem;font-weight:400;display:flex}.settings{gap:16px;max-width:760px;margin:0 auto;display:grid}.settings h2{margin-bottom:16px;font-size:1.1rem}.facts{grid-template-columns:max-content 1fr;gap:6px 16px;margin:0;display:grid}.facts dt{color:var(--muted)}.facts dd{overflow-wrap:anywhere;margin:0}.device-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.device-list li{justify-content:space-between;align-items:center;gap:12px;display:flex}.device-list li>div{display:grid}.device-list .muted,.device-list .error{font-size:.85rem}.row-actions{flex:none;align-items:center;gap:8px;display:flex}.memory-list,.event-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.memory-list li{justify-content:space-between;align-items:center;gap:12px;display:flex}.memory-list li>div{display:grid}.memory-list .muted{font-size:.8rem}.memory-edit{flex:1;gap:8px;display:flex}.memory-edit input{flex:1;min-width:0}.event-list li{grid-template-columns:minmax(8.5rem,auto) 1fr auto;align-items:baseline;gap:10px;display:grid}.event-when{font-variant-numeric:tabular-nums;font-size:.85rem}.link.danger{color:var(--error);justify-self:start}label.check{flex-direction:row;align-items:flex-start;gap:10px;display:flex}label.check input{width:auto;margin-top:4px}.composer button.mic{background:var(--bg);width:44px;height:44px;color:var(--text);border:1px solid var(--border);border-radius:50%;flex:none;place-items:center;padding:0;display:grid}.composer button.mic:hover:not(:disabled){background:var(--surface);color:var(--accent)}.composer button.mic.recording{background:var(--error);border-color:var(--error);color:#fff;animation:1.4s ease-in-out infinite listening}@keyframes listening{50%{box-shadow:0 0 0 7px color-mix(in srgb, var(--error) 25%, transparent)}}@media (prefers-reduced-motion:reduce){.composer button.mic.recording{animation:none}}.chat-footer{justify-content:space-between}.voice-toggle{align-items:center;gap:6px;display:inline-flex}.voice-row{flex-wrap:wrap;align-items:end;gap:10px;display:flex}.voice-row label{flex:1;min-width:180px}select{font:inherit;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;padding:10px 12px}.composer .mic.hands-free{width:44px;height:44px;color:var(--accent);border:1px solid var(--accent);background:color-mix(in srgb, var(--accent) 12%, transparent);border-radius:50%;flex:none;place-items:center;display:grid}.composer .mic.hands-free.hearing{color:#fff;background:var(--accent);animation:1.2s ease-in-out infinite listening-accent}@keyframes listening-accent{50%{box-shadow:0 0 0 7px color-mix(in srgb, var(--accent) 25%, transparent)}}.voice-toggles{gap:14px;display:inline-flex}.voice-toggle[aria-pressed=true]{color:var(--text)}@media (prefers-reduced-motion:reduce){.composer .mic.hands-free.hearing{animation:none}}.studio{grid-template-columns:minmax(0,1fr);gap:16px;display:grid}@media (width>=900px){.studio{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.studio-stage{position:sticky;top:16px}.studio-stage .avatar-stage{height:52vh}}.studio-stage{grid-template-rows:auto auto auto;gap:8px}.studio-controls fieldset{border:none;margin:0 0 18px;padding:0}.studio-controls legend{margin-bottom:8px;font-weight:700}.try-row{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.studio-controls .try-row{justify-content:flex-start}button.chip{border:1px solid var(--border);background:var(--surface);color:var(--text);text-transform:capitalize;border-radius:999px;padding:4px 12px;font-size:.85rem;font-weight:500}button.chip.selected,button.swatch.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.swatches{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;margin-bottom:12px;display:grid}button.swatch{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);justify-items:center;gap:4px;padding:8px 4px;font-size:.8rem;font-weight:500;display:grid}.swatch-wool{border:1px solid #00000026;border-radius:50%;place-items:center;width:38px;height:38px;display:grid}.swatch-face{border-radius:50%;width:18px;height:22px}.colour-pickers{flex-wrap:wrap;gap:10px 16px;display:flex}.colour-pickers label{flex-direction:row;align-items:center;gap:6px;font-size:.9rem;display:flex}.colour-pickers input[type=color]{border:1px solid var(--border);background:0 0;border-radius:6px;width:34px;height:28px;padding:0}.model-row{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.upload{cursor:pointer}.button-like{border:1px solid var(--border);border-radius:10px;padding:8px 14px;font-weight:600;display:inline-block}.small{font-size:.85rem}.connections h3{margin:8px 0 0}.reveal{border:1px solid var(--accent);border-radius:var(--radius);gap:8px;padding:12px 14px;display:grid}.reveal p{margin:0}.reveal-value{align-items:center;gap:8px;display:flex}.reveal-value code{overflow-wrap:anywhere;flex:1;min-width:0;font-size:.85rem}pre.snippet{background:var(--bg);border:1px solid var(--border);border-radius:10px;margin:0;padding:10px 12px;font-size:.8rem;overflow-x:auto}.check-group{border:none;gap:6px;margin:0;padding:0;display:grid}.check-group legend{margin-bottom:6px;font-weight:600}.mcp-server{border-bottom:1px solid var(--border);gap:6px;padding-bottom:10px;display:grid}.tool-list{gap:4px;margin:0;padding:0 0 0 4px;list-style:none;display:grid}.risk{border:1px solid var(--border);border-radius:999px;padding:1px 7px;font-size:.72rem}.risk.read{color:var(--success)}.risk.write{color:var(--accent)}.user-list{gap:14px;margin:0;padding:0;list-style:none;display:grid}.user-row{gap:6px;display:grid}.user-row.disabled strong{color:var(--muted);text-decoration:line-through}.user-summary{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.user-meta{display:block}.badge{border:1px solid var(--accent);color:var(--accent);border-radius:999px;margin-left:6px;padding:1px 7px;font-size:.72rem}.badge.muted{border-color:var(--border);color:var(--muted)}.row-actions.wrap{flex-wrap:wrap}
