html,body{min-height:100%;margin:0;background:#101a29;color:#ecf2fa;color-scheme:dark}
#entry{min-height:100svh;display:grid;place-items:center;padding:24px;box-sizing:border-box;font:16px/1.5 system-ui,sans-serif}
#entry section{width:min(100%,350px);text-align:center}#entry h1{font-size:28px;font-weight:500;margin:16px 0 6px;line-height:1.2}#entry p{margin:0 0 22px;color:#b0bed0}
.star{margin:auto;display:grid;place-items:center;border-radius:28px;width:90px;height:90px;background:linear-gradient(135deg,#5c7cb0,#7166aa);font:72px/1 Georgia;color:white}
#entry label{text-align:left;display:block;font-size:14px;color:#c3d1e1;margin:12px 0}
#entry input,#entry button{font:inherit;box-sizing:border-box}#entry input{display:block;width:100%;margin-top:5px;border:1px solid #566a81;border-radius:11px;padding:12px 14px;background:#152334;color:white}
#entry input:focus-visible,#entry button:focus-visible{outline:2px solid #94c8ff;outline-offset:2px}
#entry button{width:100%;border-radius:12px;padding:12px;border:0;cursor:pointer}#next{background:#8acbff;color:#102134}#switch{background:transparent;color:#9ad2ff;margin-top:6px}
#entry #feedback{color:#ffd0cc;margin:12px 0}#entry [hidden],#entry[hidden],converse-root[hidden]{display:none!important}
#messenger[hidden],#conversation[hidden],#empty[hidden]{display:none}
#messenger{display:grid;grid-template-columns:minmax(240px,30%) 1fr;height:100dvh;font:16px system-ui;color:#e7eef7}
#messenger *{box-sizing:border-box}#messenger aside{padding:16px;background:#142234;overflow:auto;border-right:1px solid #314050}
#messenger header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px}
#messenger b{font-weight:500}#messenger input,#messenger button{font:inherit;color:inherit;border:1px solid #405569;border-radius:12px;padding:10px 12px}
#messenger button{cursor:pointer;background:#263c54}#messenger input{background:#101c2a;min-width:0;flex:1}#newChat label{display:block;font-size:13px;color:#afbfd1;margin:18px 0 6px}#newChat div,#compose{display:flex;gap:8px}
#dialogs button{display:block;width:100%;text-align:left;margin-top:8px;border-color:transparent;background:transparent}#dialogs button[aria-current=true]{background:#294561}#dialogs small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#b2c2d4}
#thread{min-width:0;background:linear-gradient(140deg,#1c3040,#262640)}#empty{height:100%;margin:0;display:grid;place-items:center;color:#c0c7d7}
#conversation{height:100%;display:grid;grid-template-rows:auto 1fr auto}#conversation header,#compose{background:#182636ed;padding:12px 18px;justify-content:flex-start}#messages{overflow:auto;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:18px}
.bubble{background:#26384a;border-radius:12px;padding:9px 13px;max-width:78%;white-space:pre-wrap;overflow-wrap:anywhere}.mine{align-self:flex-end;background:#28516a}#back{display:none}
@media(max-width:680px){#messenger{display:block}#messenger aside,#thread{height:100%}#thread,#messenger.in-chat aside{display:none}#messenger.in-chat #thread,#back{display:block}#compose{padding:9px}}
