:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1e293b;background:#f3f6f5}
*{box-sizing:border-box}body{margin:0;min-height:100vh}.shell{max-width:1120px;margin:0 auto;padding:28px 18px}.hidden{display:none!important}
.auth-card{max-width:430px;margin:8vh auto;background:white;border:1px solid #e4ebe7;border-radius:22px;padding:30px;box-shadow:0 18px 55px #163c2c12}
.brand{display:flex;align-items:center;gap:13px;margin-bottom:26px}.brand-icon{width:45px;height:45px;border-radius:14px;background:#e5f4ed;color:#176b55;display:grid;place-items:center;font-size:24px}.brand h1{font-size:21px;margin:0;color:#153e32}.brand p{font-size:12px;color:#7b8b84;margin:4px 0 0}
label{display:block;font-size:13px;font-weight:600;color:#42564d;margin:15px 0}input,textarea{width:100%;margin-top:7px;border:1px solid #dce5e0;border-radius:10px;padding:12px 13px;font:inherit;font-size:14px;outline:none;background:white;color:#1e293b}input:focus,textarea:focus{border-color:#40977a;box-shadow:0 0 0 3px #40977a18}.primary{border:0;background:#176b55;color:white;border-radius:10px;padding:12px 17px;font-weight:650;cursor:pointer}.primary:hover{background:#10543f}.primary:disabled{opacity:.6}.full{width:100%;margin-top:10px}.error{color:#bd3c3c;font-size:13px;min-height:18px}.hint{font-size:12px;line-height:1.6;color:#87948e;margin:18px 0 0}
.app{background:white;border:1px solid #e3eae6;border-radius:20px;overflow:hidden;min-height:calc(100vh - 56px);box-shadow:0 18px 55px #163c2c0c}.topbar{height:78px;padding:0 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8eeeb}.brand.small{margin:0}.brand.small .brand-icon{width:39px;height:39px}.brand.small h1{font-size:18px}.brand.small p{font-size:11px}.status{display:flex;align-items:center;gap:8px;color:#75847d;font-size:12px}.dot{width:8px;height:8px;border-radius:50%;background:#d49b35}.dot.online{background:#2aab73}.quiet{border:0;background:transparent;color:#60736b;cursor:pointer;margin-left:10px}
.layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 136px)}.sidebar{background:#f8faf9;border-right:1px solid #e8eeeb;padding:24px 14px;position:relative}.side-heading{font-size:10px;letter-spacing:1.2px;font-weight:700;color:#9aa8a1;padding:0 12px 13px}.nav-item{width:100%;border:0;background:transparent;text-align:left;padding:12px;border-radius:9px;color:#64756d;font-weight:600;cursor:pointer;margin-bottom:5px}.nav-item.selected{background:#e8f4ee;color:#176b55}.side-footer{position:absolute;bottom:22px;left:25px;right:15px;font-size:11px;color:#a0aaa5}
.content{min-width:0}.panel{height:100%;min-height:600px;display:flex;flex-direction:column}.panel-head{padding:25px 30px 19px;border-bottom:1px solid #edf1ef;display:flex;justify-content:space-between;align-items:center}.panel-head h2{margin:0;font-size:18px;color:#203c31}.panel-head p{margin:5px 0 0;color:#87948e;font-size:12px}.secure{font-size:9px;letter-spacing:1px;color:#388568;background:#edf7f1;padding:7px 9px;border-radius:6px;font-weight:700}
.messages{padding:22px 30px;flex:1;overflow-y:auto;max-height:calc(100vh - 330px);min-height:320px;display:flex;flex-direction:column;gap:13px}.message{max-width:76%;align-self:flex-start;background:#f0f4f2;border-radius:5px 15px 15px 15px;padding:11px 14px}.message.mine{align-self:flex-end;background:#e3f3e9;border-radius:15px 5px 15px 15px}.message .body{font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.message .meta{font-size:10px;color:#87948e;margin-top:6px}.composer{display:flex;align-items:flex-end;gap:10px;padding:14px 25px;border-top:1px solid #edf1ef}.composer textarea{resize:none;max-height:120px;margin:0}.send{width:45px;height:45px;padding:0;font-size:20px;flex-shrink:0}.offline-note{text-align:center;color:#9aa6a0;font-size:10px;margin:0 0 12px}.pending-info{padding:0 27px;color:#b17b25;font-size:11px}.empty{margin:auto;text-align:center;padding:35px;max-width:380px}.empty-icon{font-size:32px;color:#8aab9b}.empty h3{font-size:16px}.empty p{font-size:13px;color:#89968f;line-height:1.6}
.note-composer{padding:22px 30px;border-bottom:1px solid #edf1ef}.note-composer textarea{resize:vertical;margin:0 0 10px}.notes-list{padding:20px 30px;display:grid;gap:12px}.note{border:1px solid #e8eeeb;border-radius:12px;padding:15px}.note p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}.note footer{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:#9aa6a0;font-size:10px}.delete{border:0;background:transparent;color:#b35d5d;cursor:pointer}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#203c31;color:white;padding:11px 16px;border-radius:10px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s}.toast.show{opacity:1}
@media(max-width:680px){.shell{padding:0}.app{border-radius:0;border:0;min-height:100vh}.topbar{padding:0 15px;height:68px}.layout{grid-template-columns:1fr;min-height:calc(100vh - 68px)}.sidebar{display:flex;align-items:center;gap:6px;padding:8px 12px;border-right:0;border-bottom:1px solid #e8eeeb}.side-heading,.side-footer{display:none}.nav-item{width:auto;margin:0;padding:10px 12px;font-size:12px}.content .panel{min-height:calc(100vh - 126px)}.panel-head{padding:18px}.messages{padding:18px;max-height:calc(100vh - 290px)}.composer{padding:12px}.note-composer,.notes-list{padding:18px}.status{font-size:0}.status .quiet{font-size:11px}.brand.small p{max-width:150px;overflow:hidden;text-overflow:ellipsis}.auth-card{margin:7vh 16px;padding:24px}}
