@layer base, utilities;
:root{color-scheme:light;font-family:"DM Sans",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:#163831;background:#f5f5ee;font-size:15px;line-height:1.5}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}a{color:#126653;text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}[hidden]{display:none!important}button,a,input,textarea,select{outline-offset:4px}:focus-visible{outline:2px solid #209e82}
h1,h2,p,ol,ul{margin:0}h1{font-size:clamp(1.65rem,3.2vw,2.15rem);font-weight:730;letter-spacing:-.045em}h2{font-weight:700;font-size:1.13rem}
.primary,.subtle,.rail-btn{border:0;border-radius:9px;padding:.65rem 1rem;font-weight:650;line-height:1.3}.primary{background:#176951;color:white}.primary:hover:not(:disabled){background:#105440}.subtle{background:#ebf1eb;color:#245747}.subtle:hover:not(:disabled){background:#dbe8dd}
.brand,.identity,.composer-bar,.topbar,.members header,.settings-head,.links,.code-line{display:flex;align-items:center;gap:12px}.brand{font-size:1.12rem;font-weight:750;color:inherit}.brand:hover{text-decoration:none}.brand-mark{display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:none;width:38px;height:38px;background:#b5efad;border-radius:13px 13px 13px 3px}.brand-mark i{width:4px;border-radius:8px;background:#194a36;height:9px}.brand-mark i:nth-child(2){height:19px}.brand-mark i:last-child{height:13px}
.shell{display:grid;grid-template-columns:minmax(176px,215px) minmax(0,1fr) minmax(190px,234px);height:100dvh;overflow:hidden}.rail{background:#173e36;color:#e5f0e5;padding:30px 17px 18px;display:flex;flex-direction:column}.rail-nav{display:grid;gap:4px;margin-top:45px}.rail-nav a{display:block;color:inherit;padding:11px 14px;border-radius:8px}.rail-nav b{color:#c3eab1;margin-right:6px}.nav-current{background:#2b5145}.rail-account{margin-top:auto;border-top:1px solid #426255;padding:18px 2px 0}.identity{min-width:0}.identity strong,.identity small{display:block;overflow-wrap:anywhere}.identity small{color:#a8c4b1;font-size:.78rem}.rail-btn{background:transparent;color:#c2d5c9;margin:9px 0 0;padding-left:0}
.conversation{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fafbf6}.topbar{justify-content:space-between;padding:21px clamp(16px,3vw,42px);border-bottom:1px solid #dfe5da;background:#fff}.topbar h1{font-size:1.5rem}.topbar em{font-style:normal;color:#669576;margin-right:3px}.connection{display:flex;align-items:center;gap:6px;color:#627365;font-size:.78rem}.connection i{width:7px;height:7px;background:#af9271;border-radius:50%}.connection i.live{background:#438952}
#stream{overflow-y:auto;padding:0 clamp(14px,3.5vw,52px);scrollbar-gutter:stable;overscroll-behavior:contain}#messages,#members{list-style:none;padding:0}#messages{padding:22px 0}.msg{display:flex;align-items:flex-start;gap:11px;margin:0 0 19px}.msg .block-body{min-width:0;max-width:min(85%,650px)}.meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#5b7164;font-size:.78rem;margin-bottom:4px}.meta b{color:#274a39}.meta time{color:#64756c}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;background:white;border:1px solid #dce4d8;border-radius:0 13px 13px;padding:9px 13px;display:inline-block}.own .bubble{background:#dfefd8;border-color:#cde0c8}.withdrawn{color:#6b786c;font-style:italic}.text-btn{border:0;background:transparent;color:#30684d;font-size:.77rem;text-decoration:underline}.avatar{display:inline-grid;place-items:center;flex:none;width:35px;height:35px;border-radius:11px;background:#e3ebd7;color:#375d47;font-weight:700}.tone1{background:#fae4d5;color:#824629}.tone2{background:#dee7f1;color:#38556d}.tone3{background:#e9e2f1;color:#624d74}
.empty{display:grid;min-height:55vh;place-content:center;justify-items:center;gap:9px;text-align:center;color:#637566}.empty h2{color:#294e3c}.room-icon{display:grid;place-items:center;border-radius:18px;background:#e1edda;color:#3e6e4e;width:60px;height:60px;font-size:34px;font-weight:700;margin-bottom:5px}
.composer{padding:0 clamp(14px,3vw,40px) 20px}.composer form{border:1px solid #cdd9ca;background:white;border-radius:14px;padding:12px}.composer textarea{resize:vertical;width:100%;border:0;min-height:45px;max-height:140px;color:inherit;background:transparent}.composer-bar,.settings-head,.links,.members header{justify-content:space-between}.composer-bar small,.settings-card small{color:#657568}.notice{font-size:.9rem;color:#286347;white-space:pre-line;overflow-wrap:anywhere}.notice:not(:empty){padding:9px 0}.notice.bad{color:#9a3e2e}
.members{border-left:1px solid #dce3d8;padding:30px 18px;background:#f1f4eb;overflow:auto}.members h2{font-size:1rem}.members .count{background:#dce5d6;border-radius:20px;padding:1px 9px;color:#456449;font-size:.85rem}.members li{margin:15px 0}.member-line{display:flex;align-items:center;gap:9px;width:100%;background:transparent;color:inherit;border:0;text-align:left;padding:0}.member-line strong,.member-line small{display:block;overflow-wrap:anywhere}.member-line small{font-size:.75rem;color:#677567}.member-line strong{font-size:.9rem}.member-line button{margin-left:auto}.member-action{color:#3c664d;margin-left:auto}.members button.member-line:hover{text-decoration:underline}#member-toggle,#members-close{display:none}
.auth-wrap,.settings-wrap{min-height:100dvh}.auth-wrap{display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 10% 0%,#dcebdd,transparent 65%),#f5f4ec}.auth-card,.settings-card,dialog{background:#fff;border:1px solid #dbe2d6;border-radius:18px;box-shadow:0 9px 38px #2b46300b}.auth-card{width:min(100%,435px);padding:clamp(24px,5vw,40px)}.auth-brand{margin-bottom:22px}.auth-card h1,.settings-card h2{margin-bottom:20px}.auth-card form,.settings-card form{display:grid;gap:15px}label{display:grid;gap:6px;font-weight:600;font-size:.9rem}label input:not([type=checkbox]),select{width:100%;border:1px solid #c7d3c6;border-radius:8px;color:#244435;padding:10px 12px;background:#fff}.code-line input{min-width:0;flex:1}.code-line button{white-space:nowrap}.links{margin-top:18px;font-size:.88rem}.settings-wrap{width:min(100%,740px);margin:auto;padding:26px 18px 60px}.settings-head .brand{margin:0}.settings-head{margin-bottom:32px}.settings-card{padding:24px;margin-top:16px}.check{display:flex;align-items:center;gap:8px}.settings-card form>button{justify-self:start}dialog{top:50%;left:50%;transform:translate(-50%,-50%);margin:0;padding:24px;width:min(90vw,360px);color:inherit}dialog::backdrop{background:#142c2366}dialog p{margin:10px 0;color:#617366}#action-buttons{display:grid;gap:7px;margin:16px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:900px){.shell{grid-template-columns:164px minmax(0,1fr)}.members{display:none}.members.open{display:block;position:fixed;inset:0 0 0 auto;width:min(83vw,290px);z-index:2;box-shadow:-16px 0 60px #193b2a38}#member-toggle,#members-close{display:inline-block}}
@media(max-width:600px){.shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.rail{padding:8px 12px;flex-direction:row;align-items:center;gap:10px}.rail .brand{font-size:.93rem}.rail .brand-mark{width:29px;height:29px}.rail-nav{display:flex;margin:0 0 0 auto}.rail-nav a{padding:3px;font-size:.8rem}.rail .nav-current,.rail-account .identity{display:none}.rail-account{margin:0;border:0;padding:0}.rail-btn{font-size:.8rem;margin:0;padding:4px}.topbar{padding:11px 16px}.composer{padding:0 10px max(8px,env(safe-area-inset-bottom))}.composer-bar small{font-size:.7rem}.avatar{width:30px;height:30px}#stream{padding:0 12px}.msg{gap:7px}.members{padding:18px}.composer textarea{font-size:16px}}
