/* UstozOne — one viewport, one scrolling chat area, one shared navigation dock. */
html.uo-chat-document,
body.uo-chat-body{
 height:100%;min-height:0;overflow:hidden;overscroll-behavior:none;scroll-behavior:auto
}
.uo-chat-body .uo-app[data-uo-page="home"]{height:100dvh;min-height:0;overflow:hidden}
.uo-chat-body .uo-room{height:100%;min-height:0;overflow:hidden;isolation:isolate}
.uo-room-header{
 display:flex;align-items:center;justify-content:space-between;gap:14px;
 flex:none;min-height:70px;padding:10px clamp(16px,2.8vw,30px);
 border-bottom:1px solid #2b405b;background:#0e1d33
}
.uo-room-heading{display:flex;align-items:center;gap:12px;min-width:0}
.uo-room-heading img{display:none;width:40px;height:40px;border-radius:10px;object-fit:cover;flex:none}
.uo-room-heading>div{min-width:0}
.uo-room-heading h1{margin:0;color:#f3f7ff;font-size:18px;line-height:1.25;letter-spacing:-.035em}
.uo-room-heading p{margin:3px 0 0;color:#9cb0cc;font-size:11px}
.uo-room-top-actions{display:flex;gap:8px;flex:none}
.uo-room-top-actions a,.uo-room-top-actions button{
 display:grid;place-items:center;flex:none;width:38px;height:38px;
 padding:0;border:1px solid #344c6c;border-radius:10px;
 background:#182d49;color:#dce9fb;cursor:pointer
}
.uo-room-top-actions a:hover,.uo-room-top-actions button:hover{background:#23456d;border-color:#4981bc}
.uo-room-top-actions .icon{width:19px;height:19px}
.uo-room-install{display:none!important}
.uo-room-install[hidden]{display:none!important}
.uo-room-viewport{
 flex:1 1 auto;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;
 overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#355679 transparent;
 padding:22px clamp(14px,3vw,30px) 15px;background:#071221
}
.uo-room-timeline{
 width:min(100%,880px);min-height:100%;margin:0 auto;
 display:flex;flex-direction:column;justify-content:flex-end
}
.uo-room-more{
 align-self:center;min-height:36px;margin:0 auto 20px;padding:7px 14px;
 border:1px solid #37516d;border-radius:8px;background:#162a44;
 color:#c9def6;font-size:12px;cursor:pointer
}
.uo-room-more:hover{background:#203c5c}
.uo-room-state{padding:22px 12px;margin:auto;color:#9bafc9;font-size:13px;text-align:center}
.uo-room-messages{display:flex;flex-direction:column;gap:12px;list-style:none;padding:0;margin:0}
.uo-room-item{display:flex;align-items:flex-end;gap:9px;min-width:0}
.uo-room-item.is-mine{justify-content:flex-end}
.uo-room-avatar{
 display:grid;place-items:center;flex:none;width:31px;height:31px;
 border:1px solid #39587c;border-radius:9px;background:#193452;
 color:#c9ddf8;font-size:13px;font-weight:700
}
.uo-room-bubble{
 display:grid;gap:6px;min-width:0;max-width:min(81%,660px);
 padding:11px 13px 10px;border:1px solid #324f70;
 border-radius:12px 12px 12px 4px;background:#132940
}
.uo-room-item.is-mine .uo-room-bubble{
 border-color:#386b9e;border-radius:12px 12px 4px 12px;background:#193a5b
}
.uo-room-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;min-width:0}
.uo-room-meta strong{
 max-width:240px;color:#bcd9ff;font-size:12px;font-weight:700;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.uo-room-item.is-mine .uo-room-meta strong{color:#ffb64b}
.uo-room-meta time{color:#9eb4d2;font-size:10px;font-variant-numeric:tabular-nums}
.uo-room-text{
 margin:0;color:#f1f6ff;font-size:14px;line-height:1.52;
 white-space:pre-wrap;overflow-wrap:anywhere;user-select:text
}
.uo-room-quote{
 display:grid;gap:3px;max-width:100%;margin:2px 0 3px;padding:8px 10px;
 border-left:2px solid #368df3;border-radius:5px;background:#0b1d34a8
}
.uo-room-quote strong{
 font-size:11px;color:#bedcff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.uo-room-quote span{
 font-size:12px;color:#b4c4da;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.uo-room-actions{display:flex;align-items:center;gap:8px;margin-top:2px}
.uo-room-actions button{
 display:inline-flex;align-items:center;gap:5px;min-height:28px;
 padding:3px 7px;border:0;border-radius:6px;background:transparent;
 color:#aebfda;font-size:11px;font-weight:600;cursor:pointer
}
.uo-room-actions button:hover{background:#ffffff12;color:#fff}
.uo-room-actions button .icon{width:13px;height:13px}
.uo-room-bottom{
 flex:none;min-width:0;padding:11px clamp(14px,3vw,28px) 13px;
 border-top:1px solid #2d4560;background:#0e1d33
}
.uo-room-compose,.uo-room-guest,.uo-room-replybar,.uo-room-status{
 width:min(100%,880px);margin-left:auto;margin-right:auto
}
.uo-room-compose{display:flex;align-items:flex-end;gap:9px;min-width:0}
.uo-room-label{
 position:absolute;width:1px;height:1px;padding:0;margin:-1px;
 overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0
}
.uo-room-compose textarea{
 display:block;flex:1;min-width:0;width:100%;height:46px;min-height:46px;max-height:132px;
 resize:none;overflow-y:hidden;padding:11px 13px;
 border:1px solid #3a5675;border-radius:11px;outline:none;
 background:#172940;color:#f8fbff;font-size:14px;line-height:22px;
 scrollbar-width:thin;scrollbar-color:#45658c transparent
}
.uo-room-compose textarea::placeholder{color:#98aac4}
.uo-room-compose textarea:focus{border-color:#368df3;background:#1a304b}
.uo-room-compose button{
 display:grid;place-items:center;flex:none;width:46px;height:46px;
 border:1px solid #ffa62b;border-radius:11px;background:#ffa62b;
 color:#142238;cursor:pointer
}
.uo-room-compose button:hover:not(:disabled){background:#ffbd56}
.uo-room-compose button:disabled{opacity:.55;cursor:wait}
.uo-room-compose button .icon{width:21px;height:21px}
.uo-room-replybar{
 display:flex;align-items:center;gap:11px;padding:9px 12px;margin-bottom:8px;
 border-left:3px solid #368df3;border-radius:7px;background:#193653
}
.uo-room-replybar>div{display:grid;gap:3px;min-width:0;flex:1}
.uo-room-replybar strong{font-size:11px;color:#dbeaff}
.uo-room-replybar span{font-size:11px;color:#b2c6dc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uo-room-replybar button{
 width:30px;height:30px;display:grid;place-items:center;border:0;
 background:none;color:#b9cce2;cursor:pointer
}
.uo-room-replybar button .icon{width:17px;height:17px}
.uo-room-guest{
 display:flex;justify-content:space-between;align-items:center;gap:12px;
 padding:4px 0;color:#bdcbe0;font-size:12px
}
.uo-room-guest a{
 display:inline-flex;align-items:center;justify-content:center;min-height:40px;
 padding:0 15px;border-radius:9px;background:#ffa62b;color:#162338;font-weight:700
}
.uo-room-status{
 margin-bottom:8px;padding:9px 11px;border:1px solid #866052;
 border-radius:8px;background:#39281e;color:#ffd8bc;font-size:12px
}
.uo-room-unread{
 position:absolute;z-index:4;left:50%;bottom:87px;transform:translateX(-50%);
 border:1px solid #ffb544;border-radius:9px;background:#ffa62b;color:#142238;
 padding:9px 13px;box-shadow:0 4px 14px #0005;font-size:12px;font-weight:700;cursor:pointer
}
.uo-room :is(a,button,textarea):focus-visible{outline:2px solid #ffb64b;outline-offset:3px}
@media(max-width:540px){
 .uo-chat-body .uo-app[data-uo-page="home"]{
  height:var(--uo-chat-height,100dvh)
 }
 .uo-chat-body .uo-room{
  height:100%;min-height:0;
  padding-bottom:calc(var(--uo-mobile-dock-height) + env(safe-area-inset-bottom,0px))
 }
 .uo-room-header{min-height:62px;padding:9px 13px;gap:8px}
 .uo-room-heading{gap:9px}
 .uo-room-heading img{display:block;width:36px;height:36px;border-radius:9px}
 .uo-room-heading h1{font-size:16px}
 .uo-room-heading p{font-size:10px;margin-top:2px}
 .uo-room-top-actions a,.uo-room-top-actions button{width:35px;height:35px;border-radius:9px}
 .uo-room-top-actions .icon{width:18px;height:18px}
 .uo-room-install{display:grid!important}
 .uo-room-viewport{padding:14px 10px 12px;min-height:0;overflow-y:auto}
 .uo-room-messages{gap:10px}
 .uo-room-avatar{width:29px;height:29px;font-size:12px}
 .uo-room-item{gap:7px}
 .uo-room-bubble{max-width:88%;padding:10px 11px 9px}
 .uo-room-text{font-size:14px;line-height:1.5}
 .uo-room-meta strong{font-size:12px;max-width:185px}
 .uo-room-actions button{min-height:32px;padding:4px 7px}
 .uo-room-bottom{padding:9px 11px 10px}
 .uo-room-compose{gap:8px}
 .uo-room-compose textarea{font-size:16px}
 .uo-room-compose button{width:46px;height:46px}
 .uo-room-unread{bottom:calc(147px + env(safe-area-inset-bottom,0px))}
 .uo-room-guest{font-size:12px}
 .uo-chat-body.is-composing .uo-rail{display:none}
 .uo-chat-body.is-composing .uo-room{padding-bottom:0}
 .uo-chat-body.is-composing .uo-room-unread{bottom:83px}
}
@media(max-width:360px){
 .uo-room-header{padding-inline:10px}
 .uo-room-top-actions{gap:5px}
 .uo-room-bubble{max-width:91%}
}
@media print{
 html.uo-chat-document,body.uo-chat-body{height:auto;overflow:visible}
 .uo-chat-body .uo-app[data-uo-page="home"],
 .uo-chat-body .uo-room{height:auto;overflow:visible;display:block}
 .uo-room-viewport{overflow:visible}
 .uo-room-bottom,.uo-room-unread{display:none!important}
}
@media(prefers-reduced-motion:reduce){.uo-room *{scroll-behavior:auto!important}}
