.sim-phone{--sim-bg:#eef2f7;--sim-bot:#fff;--sim-bot-ink:#0b1b2e;--sim-user:#145aff;--sim-user-ink:#fff;--sim-muted:#4a5a6d;--sim-line:#d5dce6;--sim-accent:#0f4fd9;background:var(--sim-bg);width:320px;max-width:100%;height:600px;max-height:78vh;color:var(--sim-bot-ink);border:8px solid #101826;border-radius:34px;flex-direction:column;margin:0 auto;font-size:14px;line-height:1.4;display:flex;position:relative;overflow:hidden;box-shadow:0 18px 44px #0b1b2e38}.sim-phone--fill{width:100%;height:100%;max-height:none;box-shadow:none;border-width:0;border-radius:0}.sim-phone__notch{z-index:2;background:#101826;border-radius:0 0 12px 12px;width:96px;height:14px;position:absolute;top:0;left:50%;transform:translate(-50%)}.sim-phone--fill .sim-phone__notch{display:none}.sim-phone__head{border-bottom:1px solid var(--sim-line);background:#fff;align-items:center;gap:8px;padding:24px 12px 12px;display:flex}.sim-phone--fill .sim-phone__head{padding-top:12px}.sim-phone__avatar{background:var(--sim-accent);color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:34px;height:34px;font-weight:700;display:inline-flex}.sim-phone__who{flex-direction:column;flex:1;min-width:0;display:flex}.sim-phone__who strong{text-overflow:ellipsis;white-space:nowrap;color:var(--sim-bot-ink);font-size:14px;overflow:hidden}.sim-phone__who small{color:var(--sim-muted);font-size:11px}.sim-phone__restart{width:44px;height:44px;color:var(--sim-muted);cursor:pointer;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;margin:-8px -8px -8px 0;display:inline-flex}.sim-phone__restart:hover{background:var(--sim-bg);color:var(--sim-accent)}.sim-phone__log{overscroll-behavior:contain;flex-direction:column;flex:1;gap:8px;padding:12px;display:flex;overflow-y:auto}.sim-phone__log:focus-visible,.sim-phone__restart:focus-visible,.sim-btn:focus-visible,.sim-chip:focus-visible,.sim-phone__input:focus-visible,.sim-phone__send:focus-visible{outline:2px solid var(--sim-accent);outline-offset:2px}.sim-row{flex-direction:column;align-items:flex-start;gap:4px;max-width:88%;display:flex}.sim-row--user{align-self:flex-end;align-items:flex-end}.sim-bubble{background:var(--sim-bot);color:var(--sim-bot-ink);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:16px 16px 16px 4px;flex-direction:column;gap:4px;padding:8px 12px;display:flex;box-shadow:0 1px 1px #0b1b2e14}.sim-bubble--user{background:var(--sim-user);color:var(--sim-user-ink);border-radius:16px 16px 4px}.sim-media{color:var(--sim-muted);border:1px dashed var(--sim-line);border-radius:8px;padding:8px;font-size:12px}.sim-btns{flex-direction:column;gap:4px;width:100%;min-width:180px;display:flex}.sim-btn{text-align:center;min-height:40px;color:var(--sim-accent);font:inherit;cursor:pointer;background:#0f4fd91f;border:0;border-radius:10px;padding:9px 12px;font-weight:600;text-decoration:none;display:block}.sim-btn:hover:not(:disabled){background:#0f4fd933}.sim-btn:disabled{opacity:.6;cursor:default}.sim-btn--link{background:#0b1b2e0f}.sim-wait{color:var(--sim-muted);text-align:center;background:#0b1b2e14;border-radius:999px;flex-direction:column;align-self:center;align-items:center;padding:4px 12px;font-size:12px;display:flex}.sim-wait small{opacity:.9;font-size:10px}.sim-note{max-width:92%;color:var(--sim-muted);text-align:center;overflow-wrap:anywhere;background:#0b1b2e0f;border-radius:8px;align-self:center;margin:0;padding:4px 12px;font-size:11.5px}.sim-note--ai{color:#5b21b6;background:#7c3aed1a}.sim-note--stop,.sim-note--loop{color:#a02b20;background:#c0392b1a}.sim-typing{flex-direction:row;gap:4px;padding:12px 16px}.sim-typing span{background:var(--sim-muted);border-radius:50%;width:6px;height:6px;animation:1s ease-in-out infinite sim-dot}.sim-typing span:nth-child(2){animation-delay:.15s}.sim-typing span:nth-child(3){animation-delay:.3s}@keyframes sim-dot{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@media (prefers-reduced-motion:reduce){.sim-typing span{opacity:.6;animation:none}}.sim-phone__foot{border-top:1px solid var(--sim-line);background:#fff;flex-direction:column;gap:8px;padding:8px 12px 12px;display:flex}.sim-phone__hint{color:var(--sim-muted);margin:0;font-size:11.5px}.sim-chip{border:1px solid var(--sim-accent);min-height:36px;color:var(--sim-accent);font:inherit;cursor:pointer;background:#fff;border-radius:999px;align-self:flex-start;padding:8px 12px;font-size:13px;font-weight:600}.sim-chip:disabled{opacity:.6}.sim-phone__form{gap:8px;display:flex}.sim-phone__input{border:1px solid var(--sim-line);background:var(--sim-bg);min-width:0;min-height:42px;color:var(--sim-bot-ink);font:inherit;border-radius:999px;flex:1;padding:8px 16px;font-size:16px}.sim-phone__send{background:var(--sim-accent);color:#fff;cursor:pointer;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;width:42px;height:42px;display:inline-flex}.sim-phone__send:disabled{cursor:default;background:#6b7a90}.sim-panel{z-index:60;background:var(--card);border-left:1px solid var(--border);flex-direction:column;width:400px;max-width:100vw;display:flex;position:fixed;top:0;bottom:0;right:0;box-shadow:-12px 0 32px #00000024}.sim-panel__head{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:12px 16px;display:flex}.sim-panel__head h4{flex:1;margin:0;font-size:15px}.sim-panel__x{width:44px;height:44px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;margin:-8px -8px -8px 0;font-size:22px}.sim-panel__x:hover{background:var(--bg-secondary,#0000000d)}.sim-panel__body{flex-direction:column;flex:1;gap:12px;min-height:0;padding:12px 16px;display:flex;overflow-y:auto}.sim-panel__lead{color:var(--text-secondary);margin:0;font-size:13px}.sim-panel__stage{justify-content:center;display:flex}.sim-panel__actions{flex-wrap:wrap;gap:8px;display:flex}.sim-panel__stale{border:1px solid var(--border);background:var(--bg-secondary,var(--card));border-radius:10px;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;font-size:13px;display:flex}@media (max-width:720px){.sim-panel{border-left:0;width:100%}.sim-panel__stage{flex:1;min-height:0}.sim-panel__stage .sim-phone{width:100%;height:100%;max-height:none;box-shadow:none;border-width:0;border-radius:12px}.sim-panel__stage .sim-phone__notch{display:none}}.sim-modal{width:100%;max-width:420px}.sim-modal__stage{justify-content:center;margin:8px 0;display:flex}@media (max-width:480px){.sim-modal__stage .sim-phone{height:70vh}}.sim-phone .sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}
