:root{font-family:system-ui,-apple-system,Arial,sans-serif;color-scheme:dark;background:#0b1220;color:#eef2f9}*{box-sizing:border-box}body{margin:0}.app{max-width:760px;margin:auto;min-height:100dvh;display:flex;flex-direction:column;background:#111b2b}header{padding:18px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #263448}.brand{font-weight:800;font-size:19px}.brand small{font-weight:400;color:#8fa4bf;font-size:11px}#status{font-size:12px;color:#9acbbd}.panel{padding:22px 18px;flex:1}h1{font-size:22px}h2{font-size:18px}.warning{padding:12px;border:1px solid #ad8045;border-radius:12px;color:#ffe1a6;background:#40301e}label{display:block;margin:14px 0 6px;font-size:13px;color:#b8c7d9}input{width:100%;padding:13px 12px;border:1px solid #35465f;border-radius:11px;background:#18263a;color:white;font:inherit}button{border:0;border-radius:10px;background:#2d85e4;color:white;padding:12px 16px;font:inherit;cursor:pointer}button:disabled{opacity:.5}#config button,#auth button,#pair button{margin-top:10px}.error{color:#ff9999;white-space:pre-wrap}.invite{overflow-wrap:anywhere;color:#99e5c7;font-size:13px}#chat{flex:1;min-height:0;display:flex;flex-direction:column}#messages{flex:1;min-height:300px;overflow:auto;padding:15px;display:flex;flex-direction:column;gap:10px}.bubble{max-width:86%;border-radius:16px;padding:11px 13px;background:#23334a;align-self:flex-start;overflow-wrap:anywhere;white-space:pre-wrap}.bubble.mine{align-self:flex-end;background:#225c92}.bubble time{display:block;font-size:10px;color:#b7c8dd;text-align:right;margin-top:6px}.bubble img,.bubble video{display:block;max-width:100%;max-height:320px;border-radius:8px;margin-top:7px}.bubble a{color:#cceaff}#compose{display:flex;align-items:center;gap:9px;padding:12px;background:#18263a}#compose input{flex:1}#compose button{font-size:20px}#compose .attach{font-size:28px;margin:0;cursor:pointer;color:#b6d9ff}#uploadBar{padding:8px;color:#b6d9ff}footer{padding:8px 14px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#91a5be}footer button{padding:6px 10px;background:#33445d}[hidden]{display:none!important}
