:root{color:#111;background:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:17px;line-height:22px;color-scheme:light;--bg: #f5f5f7;--bar: rgba(255, 255, 255, .72);--hers: #e9e9eb;--mine: #007aff;--mine-ink: #ffffff;--send: #007aff;--muted: #8e8e93;--ink: #111111;--accent: #007aff;--danger: #d84a4a}*{box-sizing:border-box}html,body,.thread,.screen,.stage,textarea{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{display:none;width:0;height:0}body{margin:0;min-height:100dvh;overflow-x:hidden;background:var(--bg)}button,input,textarea,a{font:inherit;color:inherit}button{border:0;background:transparent;color:var(--accent);border-radius:12px;min-height:44px;padding:.4rem .7rem;cursor:pointer}button:disabled{cursor:default}:focus-visible{outline:2px solid #007aff;outline-offset:2px}.stage,.screen{min-height:100dvh;display:flex;flex-direction:column;width:min(100%,640px);margin:0 auto;background:var(--bg);padding-top:env(safe-area-inset-top)}html[data-ayra-platform=mobile] .stage,html[data-ayra-platform=mobile] .screen{width:100%;max-width:none}html[data-ayra-platform=desktop] .stage,html[data-ayra-platform=desktop] .screen{width:min(100%,720px)}.chat-stage{height:100dvh;min-height:100dvh}.boot{margin:auto;color:var(--muted)}.navbar,.dock{background:var(--bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.navbar{position:relative;display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:.35rem .85rem;border-bottom:1px solid rgba(0,0,0,.06)}.nav-title{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:.45rem;pointer-events:none}.nav-title h1{margin:0;font-size:17px;font-weight:600;line-height:22px}.nav-avatar{width:36px;height:36px;font-size:15px}button.nav-link{position:relative;z-index:1;min-height:44px;padding:0 .15rem;background:transparent;color:var(--accent);font-size:17px}.thread{flex:1;overflow:auto;padding:.7rem .75rem .4rem;display:flex;flex-direction:column;gap:3px}.thread>div:not(:has(.msg.grouped)){margin-top:7px}.thread>div:first-child{margin-top:0}.stamp{align-self:center;margin:.45rem 0 .25rem;color:var(--muted);font-size:12px;line-height:16px}.empty-hero{margin:auto;display:flex;flex-direction:column;align-items:center;gap:.35rem;text-align:center}.empty-hero h2{margin:.15rem 0 0;font-size:22px;font-weight:600;line-height:26px}.empty-hero p{margin:0;color:var(--muted);font-size:17px;line-height:22px}.hero-avatar{width:72px;height:72px;font-size:28px}.avatar{width:32px;height:32px;border-radius:50%;background:#d1d1d6;color:#3a3a3c;display:grid;place-items:center;font-size:14px;font-weight:600;flex:none}.avatar.spacer{visibility:hidden}.msg{display:flex;align-items:flex-end;gap:.4rem;max-width:100%}.msg.mine{justify-content:flex-end}.bubble-wrap{display:flex;flex-direction:column;max-width:75%;min-width:0}.msg.mine .bubble-wrap{align-items:flex-end}.bubble{border-radius:18px;padding:.5rem .75rem;color:var(--ink)}.bubble p{margin:0;font-size:17px;line-height:22px;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.ayra{background:var(--hers);border-top-left-radius:6px}.bubble.mine{background:var(--mine);color:var(--mine-ink);border-top-right-radius:6px}.msg.grouped .bubble.ayra{border-top-left-radius:6px;border-bottom-left-radius:6px}.msg.grouped .bubble.mine{border-top-right-radius:6px;border-bottom-right-radius:6px}.bubble img{display:block;width:100%;border-radius:12px;margin:0 0 .4rem}.rates{display:none;gap:.35rem;margin-top:.25rem}.msg:hover .rates,.msg:focus-within .rates,.rates.open{display:flex}button.tiny{min-height:32px;padding:.1rem .55rem;background:transparent;color:var(--accent);border:1px solid rgba(0,122,255,.35);border-radius:999px;font-size:12px}button.tiny.on{background:var(--accent);color:#fff;border-color:var(--accent)}.retry{margin-top:.2rem;min-height:32px;padding:0;background:transparent;color:var(--danger);font-size:13px}.pending-line{color:var(--ink)}.dots{display:inline-flex;gap:.18rem;margin-left:.35rem;vertical-align:middle}.dots i{width:.28rem;height:.28rem;border-radius:50%;background:var(--muted);animation:blink 1.1s ease-in-out infinite}.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}.dock{border-top:1px solid rgba(0,0,0,.06);padding:.4rem .55rem calc(.45rem + env(safe-area-inset-bottom))}.hint,.error{margin:0 .35rem .3rem;font-size:13px;line-height:1.4}.hint{color:#3a3a3c}.error{color:var(--danger)}.composer{display:flex;align-items:flex-end;gap:.2rem}.icon-btn{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;background:transparent;color:var(--accent);display:grid;place-items:center}.composer textarea{flex:1;min-width:0;min-height:40px;max-height:120px;resize:none;overflow:auto;border:0;background:#fff;border-radius:20px;padding:.55rem .85rem;font-size:17px;line-height:22px;color:var(--ink)}.composer textarea:focus{outline:none}.send-btn{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;background:var(--send);color:#fff;display:grid;place-items:center}.send-btn svg{width:18px;height:18px}.send-btn.stop{background:#8e8e93}.screen{justify-content:center;padding-right:1.25rem;padding-left:1.25rem;padding-bottom:calc(1.5rem + env(safe-area-inset-bottom))}.screen-inner{width:100%}.large-title{margin:0 0 .4rem;font-size:34px;font-weight:700;letter-spacing:-.02em;line-height:1.15}.lede{margin:0 0 1.25rem;color:var(--muted);font-size:17px;line-height:22px}.mode-row{display:flex;gap:1rem;margin-bottom:.9rem}.mode-row button{background:transparent;color:var(--muted);min-height:44px;padding:0;font-size:17px}.mode-row button[aria-pressed=true]{color:var(--accent);font-weight:600}.group{background:#fff;border-radius:12px;overflow:hidden}.group label{display:grid;gap:.15rem;padding:.45rem .9rem;font-size:13px;color:var(--muted)}.group label+label{border-top:1px solid rgba(0,0,0,.06)}.group input{width:100%;min-height:44px;border:0;background:transparent;padding:0;font-size:17px;line-height:22px;color:var(--ink)}.stack{display:flex;flex-direction:column;gap:.85rem;margin-top:1.1rem}.stack .primary,button.primary{width:100%;min-height:44px;background:var(--accent);color:#fff;border-radius:12px;font-size:17px;font-weight:600}.stack .primary:disabled,button.primary:disabled{opacity:.45}.code-row{display:flex;gap:.55rem;align-items:stretch}.code-row .group{flex:1}button.code-btn{min-width:7.4rem;min-height:44px;align-self:stretch;background:#fff;color:var(--accent);border-radius:12px;font-size:15px}button.code-btn:disabled{color:var(--muted)}.quiet{color:var(--muted)}@keyframes blink{0%,to{opacity:.3}50%{opacity:1}}.workspace{display:flex;width:100%;height:100dvh;min-height:100dvh;background:var(--bg)}.sidebar{display:none}.workspace-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}.who{display:contents}.who-name{display:none}html[data-ayra-platform=web] body,html[data-ayra-platform=web] .workspace{background:#f5f5f5}html[data-ayra-platform=web] .sidebar{display:flex;flex-direction:column;width:252px;flex:none;padding:14px 12px 12px;background:#f3f3f3;border-right:1px solid rgba(0,0,0,.08)}html[data-ayra-platform=web] .side-brand{display:flex;align-items:center;gap:8px;padding:4px 8px 14px;font-size:15px;font-weight:600}html[data-ayra-platform=web] .side-brand .avatar{width:28px;height:28px;font-size:13px;background:#e4e4e6}html[data-ayra-platform=web] .side-pill{align-self:stretch;margin:0 4px;padding:8px 10px;border-radius:8px;background:#e7e7e8;color:#111;font-size:14px}html[data-ayra-platform=web] .side-user{margin-top:auto;width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;background:transparent}html[data-ayra-platform=web] .side-dot{display:block;width:28px;height:28px;border-radius:50%;background:#dedee0}html[data-ayra-platform=web] .stage,html[data-ayra-platform=web] .screen{width:100%;max-width:none;margin:0;height:100%;min-height:0;background:transparent}html[data-ayra-platform=web] .chat-stage{height:100%}html[data-ayra-platform=web] .navbar{display:none}html[data-ayra-platform=web] .thread,html[data-ayra-platform=web] .dock{width:min(100% - 48px,720px);margin-left:auto;margin-right:auto}html[data-ayra-platform=web] .chat-stage.is-empty{justify-content:center}html[data-ayra-platform=web] .chat-stage.is-empty .thread{flex:0 0 auto;overflow:visible}html[data-ayra-platform=web] .chat-stage.is-empty .empty-hero{margin:0 auto 18px}html[data-ayra-platform=web] .chat-stage.is-empty .dock{border:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;padding-bottom:0}html[data-ayra-platform=web] .msg.ayra{flex-direction:column;align-items:stretch;gap:8px}html[data-ayra-platform=web] .msg.ayra .who{display:flex;align-items:center;gap:8px}html[data-ayra-platform=web] .who-name{display:inline;font-size:14px;font-weight:600}html[data-ayra-platform=web] .msg.ayra .avatar.spacer,html[data-ayra-platform=web] .msg.ayra .who:has(.spacer){display:none}html[data-ayra-platform=web] .bubble-wrap,html[data-ayra-platform=web] .msg.mine .bubble-wrap{max-width:100%;align-items:stretch}html[data-ayra-platform=web] .msg.mine{justify-content:stretch}html[data-ayra-platform=web] .bubble,html[data-ayra-platform=web] .bubble.ayra,html[data-ayra-platform=web] .bubble.mine,html[data-ayra-platform=web] .msg.grouped .bubble.ayra,html[data-ayra-platform=web] .msg.grouped .bubble.mine{border-radius:16px;background:#fff;color:#171717;border:1px solid rgba(0,0,0,.08);box-shadow:0 1px 2px #0000000a}html[data-ayra-platform=web] .bubble.mine{background:#f3f3f4}html[data-ayra-platform=web] .bubble p{font-size:15px;line-height:1.5}html[data-ayra-platform=web] .composer{flex-wrap:wrap;align-items:center;gap:6px;padding:12px 12px 10px;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;box-shadow:0 10px 30px #0000000f}html[data-ayra-platform=web] .composer textarea{order:-1;flex:1 0 100%;background:transparent;border-radius:0;padding:4px 6px 8px;font-size:15px;line-height:1.45}html[data-ayra-platform=web] .composer .icon-btn{width:32px;height:32px;min-width:32px;min-height:32px;background:#ececee;color:#444}html[data-ayra-platform=web] .composer .icon-btn:first-of-type{margin-right:auto}html[data-ayra-platform=web] .send-btn,html[data-ayra-platform=web] .send-btn.stop{width:36px;height:36px;min-width:36px;min-height:36px;background:#111;color:#fff}html[data-ayra-platform=web] .screen{align-items:center;justify-content:center}html[data-ayra-platform=web] .screen-inner{width:min(100%,440px);background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:28px 24px 22px;box-shadow:0 10px 30px #0000000d}html[data-ayra-platform=web] .stack .primary,html[data-ayra-platform=web] button.primary{background:#111;color:#fff}html[data-ayra-platform=web] .mode-row button[aria-pressed=true]{color:#111}html[data-ayra-platform=web] .group{background:#f7f7f8}@media(prefers-reduced-motion:reduce){.dots i{animation:none;opacity:.8}}
