@font-face{font-family:Rubik;src:url(fonts/rubik-cyrillic.woff2) format("woff2");font-weight:400 700;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Rubik;src:url(fonts/rubik-latin.woff2) format("woff2");font-weight:400 700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{font:16px/1.5 Rubik,system-ui,sans-serif;color:#231f2d;background:#fcfbfe;--ink:#231f2d;--muted:#645d70;--purple:#573987;--lav:#eee9f6;--line:#ded8e6;--paper:#fcfbfe;--rail:#f3f0f8}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
button,input,textarea,select{font:inherit}
button,select{cursor:pointer}
button{border:0;color:inherit;background:transparent}
button:hover:enabled{filter:brightness(.93)}
button:disabled{opacity:.52;cursor:default}
:focus-visible{outline:3px solid #8066bf;outline-offset:3px}
h1,h2,p{margin:0}
h1,h2{line-height:1.13;font-weight:600;letter-spacing:-.043em}
label{display:block;font-size:.86rem;font-weight:500;margin-bottom:.4rem}
input,textarea,select{color:var(--ink)}
input{min-width:0;width:100%;border:1px solid #bcb4c8;border-radius:8px;background:white;padding:.65rem .82rem}
input::placeholder,textarea::placeholder{color:#797182}
.primary,.quiet,.suggestions button,.send{border-radius:8px;font-weight:500}
.primary{background:var(--purple);color:white;padding:.68rem 1.15rem}
.quiet,.suggestions button{border:1px solid var(--line);padding:.52rem .9rem;background:#fff}
.text-btn{color:var(--purple);font-size:.87rem;font-weight:500;padding:.38rem .2rem}
.brand{display:flex;align-items:center;gap:.61rem;font-size:1.4rem;line-height:1;font-weight:600;letter-spacing:-.065em}
.mark{display:block;width:32px;height:32px;background:url(mark.svg) center/contain no-repeat;flex:none}
.gate{min-height:100vh;min-height:100dvh;background:linear-gradient(115deg,#f3eff9 0%,#fcfbfe 65%);display:flex;flex-direction:column;padding:clamp(22px,4.2vw,58px)}
.gate-content{width:min(100%,520px);margin:auto;align-self:center;padding:32px 0 68px}
.gate h1{font-size:clamp(2.4rem,5vw,3.8rem);margin:1.05rem 0}
.gate-content>p:not(.feedback),dialog p,.empty p,.room-header p{color:var(--muted)}
.gate form{margin-top:1.8rem}
.password-form{display:grid;max-width:400px}
.password-form label:not(:first-child){margin-top:.7rem}
.password-form .primary{justify-self:start;margin-top:1rem}
.invite-login{margin-top:1.1rem;max-width:440px}
.invite-login form{margin-top:.6rem}
summary{cursor:pointer;color:var(--purple);font-size:.92rem;font-weight:500;min-height:28px}
.gate-input{display:flex;gap:.55rem;align-items:stretch}
.gate-input button{flex:none}
.speech-art{height:74px;width:98px;position:relative;margin-left:5px}
.speech-art i,.speech-art b{display:block;position:absolute;border-radius:24% 26% 26% 8%;transform:rotate(-12deg);width:64%;height:68%;left:0;top:3%;background:#c9b9e5}
.speech-art b{left:31%;top:29%;background:var(--purple);transform:rotate(7deg);border-radius:22% 26% 8% 26%}
.speech-art b::after{content:"";position:absolute;left:24%;top:34%;width:48%;height:5px;border-radius:5px;background:#fff;box-shadow:-1px 9px 0 -1px #e6daf7}
.speech-art.small{width:67px;height:53px;margin:0 0 1.1rem}
.workspace{height:100vh;height:100dvh;display:grid;grid-template-columns:clamp(195px,20vw,260px) minmax(0,1fr)}
.rail{background:var(--rail);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 16px 16px}
.rail .brand{margin:0 10px 38px}
.rail nav{display:grid;gap:4px}
.nav-tab{display:flex;align-items:center;gap:12px;border-radius:8px;text-align:left;padding:.75rem .85rem;font-size:.95rem;font-weight:450}
.nav-tab[aria-current="page"]{background:#e2d9ed;color:#412767;font-weight:550}
.icon{position:relative;width:19px;height:17px;flex:none;display:inline-block}
.bubble::before,.team::before,.team::after{content:"";position:absolute;inset:1px 1px 3px;border:1.6px solid currentColor;border-radius:5px 5px 5px 1px}
.team::before{inset:0 5px 5px 0}
.team::after{inset:5px 0 0 6px;background:var(--rail);border-radius:4px 4px 1px 4px}
.nav-tab[aria-current="page"] .team::after{background:#e2d9ed}
.account{display:flex;gap:9px;align-items:center;margin-top:auto;border-top:1px solid var(--line);padding:16px 4px 0;font-size:.89rem}
.avatar{display:grid;place-items:center;background:#e4ddee;color:var(--purple);font-weight:600;border-radius:50%;width:32px;height:32px;flex:none}
#account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-more{margin-left:auto;font-size:.92rem;padding:6px;letter-spacing:.07em;color:var(--muted)}
.conversation{display:flex;flex-direction:column;min-width:0;min-height:0}
.room-header{min-height:79px;padding:14px clamp(18px,4vw,60px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}
.room-header h1{font-size:1.29rem;letter-spacing:-.028em}
.room-header p{font-size:.84rem;margin-top:.18rem}
.timeline{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#native-panel{flex:1;min-height:0;background:#231f2d}
#native-panel iframe{display:block;width:100%;height:100%;border:0}
.suggestions .primary{background:var(--purple);color:white;border-color:var(--purple)}
.empty,.messages,.composer-wrap{width:min(100%,810px);padding-inline:clamp(16px,4vw,40px);margin-inline:auto}
.empty{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:100%;padding-block:24px}
.empty h2{font-size:clamp(1.95rem,4vw,3.2rem)}
.empty p{max-width:49ch;margin:.75rem 0 1.25rem}
.suggestions{display:flex;gap:8px;flex-wrap:wrap}
.suggestions button{font-size:.88rem;text-align:left}
.messages{padding-block:20px 8px;display:grid;gap:20px}
.messages:empty{padding:0}
.message{max-width:91%;overflow-wrap:anywhere}
.message.mine{justify-self:end}
.by{color:var(--muted);font-size:.78rem;font-weight:500;margin:0 0 .32rem}
.mine .by{text-align:right}
.body{white-space:pre-wrap;line-height:1.54}
.person .body{background:#f0ecf6;border-radius:12px 12px 3px 12px;padding:.65rem .92rem}
.assistant .by{color:var(--purple)}
.pending .body,.failed .body{color:var(--muted)}
.composer-wrap{padding-top:.55rem;padding-bottom:max(10px,env(safe-area-inset-bottom))}
.composer{background:white;border:1px solid #c6becf;border-radius:13px;padding:10px 12px 8px}
.composer:focus-within{border-color:#8c76aa}
textarea{resize:vertical;min-height:45px;max-height:140px;width:100%;display:block;outline:none;border:none;background:none;padding:2px 2px 6px;line-height:1.4}
.compose-actions{display:flex;align-items:center;gap:9px}
.spacer{flex:1}
.compose-actions select{font-size:.8rem;border:1px solid var(--line);border-radius:6px;background:var(--paper);padding:5px;max-width:120px}
.send{width:36px;height:34px;background:var(--purple);display:grid;place-items:center}
.send i{display:block;position:relative;background:white;width:2px;height:15px}
.send i::before{position:absolute;content:"";width:8px;height:8px;border-top:2px solid white;border-left:2px solid white;transform:rotate(45deg);left:-3px;top:0}
.feedback{font-size:.82rem;color:#70424b;margin-top:.48rem;min-height:1.25em}
.group-hint{margin-bottom:7px;color:var(--muted);font-size:.83rem}
.group-hint .text-btn{padding:2px 3px}
dialog{border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);padding:24px;width:min(460px,calc(100% - 28px));max-height:86dvh;overflow:auto}
dialog::backdrop{background:rgba(34,24,49,.33)}
.dialog-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}
.dialog-head h2{font-size:1.42rem}
.dismiss{font-size:1.7rem;line-height:1;min-width:32px;min-height:32px}
dialog p{font-size:.92rem;margin:0 0 16px}
#account-panel button{display:block;margin:10px 0}
#link-box{margin-top:16px}
.members{list-style:none;padding:0;margin:16px 0 0}
.members li{display:flex;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--line);font-size:.86rem}
.members li span{flex:1;overflow-wrap:anywhere}
.members button{font-size:.8rem;color:var(--purple)}
.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:680px){
  .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .rail{flex-direction:row;align-items:center;flex-wrap:wrap;gap:14px 10px;padding:12px 16px 9px;border-right:0;border-bottom:1px solid var(--line)}
  .rail .brand{margin:0;font-size:1.17rem}
  .rail .mark{width:26px;height:26px}
  .rail nav{display:flex;order:3;flex-basis:100%}
  .nav-tab{padding:5px 9px;font-size:.85rem;gap:7px}
  .account{margin:0 0 0 auto;padding:0;border:0;gap:5px}
  .avatar{width:25px;height:25px}
  .room-header{min-height:57px;padding:8px 16px}
  .room-header h1{font-size:1.09rem}
  .room-header .quiet{padding:.35rem .65rem;font-size:.83rem}
  .suggestions{gap:6px}
  .empty{padding-block:12px}
  .speech-art.small{width:52px;height:40px;margin-bottom:.7rem}
  .composer-wrap{padding-top:4px;padding-bottom:max(3px,env(safe-area-inset-bottom))}
  .feedback:empty{min-height:4px;margin:0}
  .gate-content{padding-bottom:32px}
}
@media(max-height:530px){.speech-art.small{display:none}.empty{justify-content:flex-start}.rail .brand{margin-bottom:0}.gate-content{padding:16px 0}}
