*{box-sizing:border-box;user-select:none;-webkit-user-select:none}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:#fff;touch-action:none}#app{width:100%;height:100%}#log{position:fixed;bottom:calc(5vh + 20px);left:50%;transform:translate(-50%);width:calc(90vw - 40px);max-height:22vh;overflow-y:auto;padding:12px 14px;font-family:SF Mono,ui-monospace,Menlo,Consolas,monospace;font-size:12px;line-height:1.6;color:#1e140a59;white-space:pre-wrap;word-break:break-word;display:flex;flex-direction:column-reverse;border-radius:10px;background:transparent;transition:color .3s,background .3s;z-index:10;pointer-events:auto;-webkit-mask-image:linear-gradient(to top,black 55%,transparent 100%);mask-image:linear-gradient(to top,black 55%,transparent 100%)}#log:hover{color:#1e140ad9;background:#0000000f;-webkit-mask-image:none;mask-image:none}#log *{user-select:text;-webkit-user-select:text}#log-inner{display:flex;flex-direction:column}.line{margin-bottom:4px}.line.user{color:#140a00d9}.line.system{color:#78502880}.line.wisper{color:#78502866}#log:hover .line.user{color:#140a00}#log:hover .line.system{color:#785028d9}#log:hover .line.wisper{color:#785028bf}#voiceStatus{position:fixed;bottom:12px;left:50%;transform:translate(-50%);background:#00000014;color:#111;font-family:SF Mono,ui-monospace,Menlo,Consolas,monospace;font-size:12px;padding:4px 12px;border-radius:99px;pointer-events:none;white-space:nowrap;opacity:0;transition:opacity .2s}#voiceStatus.visible{opacity:1}.agentIndicator{position:fixed;top:0;left:0;right:0;height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;pointer-events:none;opacity:0;transition:opacity .4s}.agentIndicator.visible{opacity:1}.agentViz{width:90vw;height:90vh;aspect-ratio:unset;border-radius:24px;box-shadow:0 8px 32px #00000040,4px 4px #00000026;overflow:hidden;pointer-events:auto;cursor:pointer}.agentViz canvas{width:100%!important;height:100%!important;display:block;pointer-events:auto}.agentIndicator.idle{color:#6b3a28}.agentIndicator.listening{color:#d4553f}.agentIndicator.thinking{color:sienna}.agentIndicator.speaking{color:#8b4513}#controls{position:fixed;top:12px;right:12px;z-index:20;pointer-events:auto}.control-btn{border:none;background:#fff;color:#111;border-radius:10px;padding:7px 12px;font-family:SF Mono,ui-monospace,Menlo,Consolas,monospace;font-size:12px;letter-spacing:.04em;cursor:pointer;box-shadow:0 2px 8px #00000026}.control-btn:active{transform:translateY(1px);box-shadow:0 1px 4px #00000026}#toast-container{position:fixed;top:16px;left:50%;transform:translate(-50%);width:min(92vw,480px);max-height:calc(100vh - 32px);overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:10px;z-index:100;pointer-events:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(255,200,140,.25) transparent;padding-bottom:4px}#toast-container::-webkit-scrollbar{width:4px}#toast-container::-webkit-scrollbar-track{background:transparent}#toast-container::-webkit-scrollbar-thumb{background:#ffc88c40;border-radius:2px}.toast{pointer-events:auto;background:#1c1610eb;border:1px solid rgba(255,200,140,.18);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;box-shadow:0 4px 24px #00000073;animation:toast-in .22s cubic-bezier(.34,1.4,.64,1) both;position:relative;max-width:100%;flex-shrink:0}.toast.dismissing{animation:toast-out .18s ease-in both}@keyframes toast-in{0%{opacity:0;transform:translateY(-14px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toast-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-10px) scale(.96)}}.toast-progress{position:absolute;bottom:0;left:0;height:2px;background:#ffbe788c;width:100%;transform-origin:left;animation:toast-progress-shrink linear both;border-radius:0 0 12px 12px}@keyframes toast-progress-shrink{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.toast-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.toast-title{font-family:SF Mono,ui-monospace,Menlo,Consolas,monospace;font-size:11px;font-weight:600;letter-spacing:.07em;color:#ffc88cd9;text-transform:uppercase;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toast-close{background:none;border:none;color:#fff5eb59;font-size:16px;line-height:1;cursor:pointer;padding:0 2px;flex-shrink:0;transition:color .15s}.toast-close:hover{color:#fff5ebd9}.toast-body{font-family:SF Mono,ui-monospace,Menlo,Consolas,monospace;font-size:12px;line-height:1.65;color:#fff5ebd1;white-space:normal;word-break:break-word;user-select:text;-webkit-user-select:text}.toast-body p{margin:0 0 6px}.toast-body p:last-child{margin-bottom:0}.toast-body h1,.toast-body h2,.toast-body h3,.toast-body h4,.toast-body h5,.toast-body h6{font-size:13px;font-weight:700;color:#ffc88cf2;margin:8px 0 4px}.toast-body ul,.toast-body ol{margin:4px 0 6px;padding-left:18px}.toast-body li{margin-bottom:2px}.toast-body code{background:#ffffff12;border-radius:4px;padding:1px 5px;font-size:11px}.toast-body pre{background:#00000059;border-radius:6px;padding:8px 10px;overflow-x:auto;margin:6px 0}.toast-body pre code{background:none;padding:0;font-size:11px}.toast-body table{border-collapse:collapse;width:100%;font-size:11px;margin:6px 0}.toast-body th,.toast-body td{border:1px solid rgba(255,200,140,.2);padding:4px 8px;text-align:left}.toast-body th{background:#ffc88c14;color:#ffc88ce6;font-weight:600}.toast-body a{color:#ffc88cd9;text-decoration:underline}.toast-body blockquote{border-left:3px solid rgba(255,200,140,.3);margin:6px 0;padding-left:10px;color:#fff5eb8c}.toast-body hr{border:none;border-top:1px solid rgba(255,200,140,.15);margin:8px 0}.toast-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.toast-choice-btn{background:#ffc88c1f;border:1px solid rgba(255,200,140,.35);border-radius:8px;color:#fff5ebe6;font-family:SF Mono,ui-monospace,Menlo,Consolas,monospace;font-size:12px;padding:6px 14px;cursor:pointer;transition:background .15s,border-color .15s;flex:1 1 auto;text-align:center}.toast-choice-btn:hover{background:#ffc88c40;border-color:#ffc88ca6}.toast-choice-btn:active{background:#ffc88c61}.toast-choice-btn:disabled{opacity:.4;cursor:default}.toast-image{width:100%;height:auto;object-fit:contain;border-radius:8px;display:block}