:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#18302d;background:#eeeae2}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:0}.hidden{display:none!important}.brand{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:20px;font-weight:800;letter-spacing:-.06em;color:#d7e6a9}.login{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(circle at 15% 10%,#33594d,#102a29 55%);padding:20px}.login-card{width:min(420px,100%);background:#f6f4ed;padding:42px;border-radius:28px;box-shadow:0 20px 70px #071b1a55}.login-card .brand{color:#41654e}.login h1{font:800 36px/1.15 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:-.05em;margin:32px 0 8px}.login p{color:#70827a;margin-bottom:30px}.login label,dialog label{display:block;font-weight:700;font-size:13px;margin:14px 0}.login input,dialog input{display:block;width:100%;margin-top:7px;border:1px solid #d9ddd2;border-radius:12px;background:white;padding:13px 15px;outline:none}.login input:focus,dialog input:focus,.composer input:focus{border-color:#55886c}.login button,dialog button:not(.subtle){background:#244c3e;color:white;border-radius:12px;padding:13px 20px;font-weight:700}.login button{width:100%;margin-top:12px}.login small,dialog small{display:block;color:#b0443a;min-height:20px;margin-top:8px}.app{height:100dvh;display:grid;grid-template-columns:310px 1fr;max-width:1500px;margin:auto;background:#f9f8f4;box-shadow:0 0 80px #1431281a}.sidebar{display:flex;flex-direction:column;background:#102a29;color:#f4f6eb;min-width:0}.sidebar header{padding:27px 22px 30px;display:flex;align-items:start;justify-content:space-between}.sidebar header small{display:block;color:#a9beb1;margin-top:8px}.subtle{background:transparent;color:inherit;opacity:.75;padding:4px}.subtle:hover{opacity:1}.section-label{font-size:11px;font-weight:700;letter-spacing:.16em;color:#8eac9b;padding:0 22px 14px}.sidebar nav{flex:1;overflow:auto}.room{display:flex;align-items:center;gap:13px;width:calc(100% - 20px);margin:3px 10px;padding:12px;border-radius:13px;color:#e9eee5;background:transparent;text-align:left}.room:hover,.room.active{background:#24453e}.avatar{flex:0 0 42px;height:42px;border-radius:15px;background:#d9e4a6;color:#234237;display:grid;place-items:center;font-weight:800}.room span:nth-child(2){font-weight:700}.sidebar-foot{padding:20px 22px;border-top:1px solid #ffffff18}.conversation{min-width:0;display:flex;flex-direction:column;background:#f8f7f2}.conversation header{display:flex;align-items:center;gap:14px;padding:21px 30px;background:#fff;border-bottom:1px solid #e7e8df}.conversation h2{font:800 20px system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:-.04em;margin:0}.conversation header small{color:#83928a}.back{display:none;background:none;font-size:30px;color:#24453e}.messages{flex:1;overflow:auto;padding:30px max(28px,calc((100% - 780px)/2));display:flex;flex-direction:column;gap:12px}.message{max-width:min(75%,540px);align-self:flex-start;background:#fff;border:1px solid #e8eae1;border-radius:18px 18px 18px 5px;padding:11px 15px;box-shadow:0 2px 5px #17342a08;overflow-wrap:anywhere}.message.mine{align-self:flex-end;background:#e3edcf;border-color:#d8e7bd;border-radius:18px 18px 5px 18px}.message .sender{display:block;font-size:12px;color:#56806a;font-weight:700;margin-bottom:3px}.message .body{white-space:pre-wrap;line-height:1.45}.message time{display:block;text-align:right;font-size:10px;color:#87938b;margin-top:4px}.message a{color:#205d56;font-weight:700}.empty{margin:auto;color:#8b9b8e;text-align:center}.composer{display:flex;gap:10px;align-items:center;padding:16px max(24px,calc((100% - 800px)/2));background:#fff;border-top:1px solid #e8eae2}.composer input{min-width:0;flex:1;border:1px solid #e3e7df;border-radius:14px;background:#f7f8f3;padding:13px 16px;outline:none}.composer button{border-radius:14px;background:#244c3e;color:#fff;width:46px;height:46px}.attach{font-size:29px;color:#53745b;cursor:pointer}dialog{border:0;border-radius:22px;padding:30px;width:min(390px,calc(100% - 30px));box-shadow:0 20px 70px #102a2955}dialog::backdrop{background:#102a2999}dialog h2{margin:0 0 15px;font:800 23px system-ui,-apple-system,'Segoe UI',sans-serif}.actions{display:flex;justify-content:end;gap:14px;margin-top:20px}@media(max-width:700px){.app{display:block}.sidebar,.conversation{height:100dvh}.app:not(.show-chat) .conversation{display:none}.app.show-chat .sidebar{display:none}.back{display:block}.messages{padding:18px 14px}.composer{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.message{max-width:88%}}

.title{flex:1}.search-button{background:transparent;color:#244c3e;font-size:30px;line-height:1}

.reply-banner{display:flex;justify-content:space-between;align-items:center;padding:8px max(24px,calc((100% - 800px)/2));background:#edf2e3;color:#375b46;border-top:1px solid #d9e4cb;font-size:13px}.reply-banner button{background:none;color:#375b46;font-size:20px}.reply-quote{border-left:3px solid #78a17b;padding:4px 8px;margin:4px 0 7px;color:#587363;font-size:12px;max-height:58px;overflow:hidden}.message-actions{display:flex;align-items:center;gap:8px;margin-top:5px}.message-actions button{background:transparent;color:#6e8575;font-size:11px;padding:2px}.reaction-picker button{font-size:19px;padding:2px 4px}.reactions{display:flex;gap:5px;margin-top:7px}.reaction-chip{border:1px solid #d6dfcf;border-radius:14px;background:#f5f8ed;padding:2px 7px;font-size:12px}.reaction-chip.selected{background:#cbdcab;border-color:#aac58c}@media(max-width:700px){.reply-banner{padding:8px 14px}}

.sidebar-foot{display:flex;flex-direction:column;align-items:flex-start;gap:8px}

.alternative-auth{margin-top:18px}.divider{text-align:center;color:#8a9a8d;font-size:12px;margin:15px 0}.alternative-auth label{display:block;font-size:12px;font-weight:700;margin:9px 0}.alternative-auth input{display:block;width:100%;border:1px solid #d9ddd2;border-radius:11px;padding:10px 12px;margin-top:5px}.auth-option{width:100%;display:block;background:#e4ebdd;color:#244c3e;border-radius:11px;padding:11px;margin:7px 0;font-weight:700}.auth-option:hover{background:#d3e1c6}.hint{font-size:12px;color:#768a7d;line-height:1.4}#invite-result input{font-size:12px}#invite-result button{background:#e3edcf;color:#244c3e;border-radius:9px;padding:8px 12px}
