*{box-sizing:border-box} [hidden]{display:none!important}
:root{font:16px system-ui,sans-serif;color:#252922;background:#f5f4ed} body{margin:0}
header{background:#263125;color:white;padding:15px max(20px,calc((100vw - 1060px)/2));display:flex;align-items:center;justify-content:space-between}
header strong,header small{display:block} header strong{font-size:23px;letter-spacing:-.04em} header small{color:#d9e4d6}
main{max-width:1100px;margin:auto;padding:22px 20px 36px}
h1,h2,h3,p{margin:0} h1{font-size:clamp(34px,6vw,60px);letter-spacing:-.06em;margin-bottom:14px} h2{font-size:26px;letter-spacing:-.04em} h3{font-size:17px} p{line-height:1.5} small,p.secondary{color:#515d50}
nav{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
button{border:1px solid #c3cabc;border-radius:8px;padding:9px 13px;min-height:39px;font:600 .9rem system-ui;color:#28352a;background:white;cursor:pointer}
button[aria-current],form>button,.primary{background:#f7d34b;border-color:#dabc45} button:hover{border-color:#576d55} button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #53724b;outline-offset:2px}
#status:not(:empty){background:#e8f0e2;border-radius:8px;padding:9px 11px;margin-bottom:12px;color:#304832}
form,.card{display:grid;gap:9px;background:white;border:1px solid #dce0d2;border-radius:12px;padding:15px;min-width:0}
#login{max-width:430px} #view{display:grid;gap:11px}
label{display:grid;gap:5px;font-size:.85rem;font-weight:650}
input,textarea,select{min-height:38px;width:100%;font:inherit;padding:7px 9px;border:1px solid #bfc8ba;border-radius:8px;background:white;color:#263125}
textarea{min-height:72px;resize:vertical}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row>label{flex:1;min-width:130px}
.inbox{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.5fr);align-items:start;gap:12px}
#rooms,.bubbles{display:grid;gap:7px} #rooms button{text-align:left}.bubbles{max-height:420px;overflow:auto}
.bubble{width:fit-content;max-width:90%;padding:9px 12px;border:1px solid #dce0d2;border-radius:10px;background:#f5f4ed;overflow-wrap:anywhere}.bubble.own{justify-self:end;background:#e8f0e2}.bubble p{white-space:pre-wrap}.bubble small{display:block;margin-top:3px}
@media(max-width:640px){.inbox{grid-template-columns:1fr} .bubbles{max-height:360px}}
