:root{font-family:Arial,Helvetica,sans-serif;color:#e9edf7;background:#101827}*{box-sizing:border-box}body{margin:0}.shell{height:100dvh;min-height:320px;display:flex;flex-direction:column;background:#111b2c}.topbar{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#172338;border-bottom:1px solid #28364d;flex:none}.brand{display:flex;align-items:center;gap:11px}.brand-icon,.login-icon{display:grid;place-items:center;background:#16b7a7;color:#052823;border-radius:12px;font-size:25px;font-weight:bold;width:37px;height:37px}.brand strong{display:block;font-size:16px;letter-spacing:.2px}.brand small,.conversation-head small{display:block;color:#9baac0;font-size:11px;margin-top:3px}.status{font-size:11px;color:#79dbb1}.status:before{content:"";display:inline-block;width:7px;height:7px;background:#35c684;border-radius:50%;margin-right:6px}.hidden{display:none!important}.chat{display:flex;flex:1;min-height:0}.sidebar{width:260px;border-right:1px solid #28364d;display:flex;flex-direction:column;min-width:200px}.sidebar-title{padding:17px 14px;font-weight:bold;border-bottom:1px solid #28364d}.sidebar-title span{color:#9baac0;font-weight:normal}.threads{overflow:auto;flex:1}.thread{width:100%;text-align:left;background:transparent;color:#e9edf7;border:0;border-bottom:1px solid #233148;padding:13px 14px;cursor:pointer}.thread.active{background:#23354b;border-left:3px solid #19c1ac;padding-left:11px}.thread strong,.thread small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread small{color:#9baac0;margin-top:5px}.conversation{display:flex;flex:1;min-width:0;flex-direction:column}.conversation-head{height:53px;padding:10px 17px;background:#142035;border-bottom:1px solid #28364d;display:flex;align-items:center;justify-content:space-between}.conversation-head strong{font-size:14px}.text-button{background:none;border:0;color:#9baac0;cursor:pointer}.messages{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:11px;background:radial-gradient(circle at 85% 12%,#1a3145 0,transparent 42%),#111b2c}.empty{margin:auto;color:#91a1b9;text-align:center;font-size:13px}.bubble{max-width:min(82%,440px);align-self:flex-start;background:#26354b;border-radius:14px 14px 14px 4px;padding:10px 12px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.bubble.mine{align-self:flex-end;background:#0e8f83;border-radius:14px 14px 4px 14px}.bubble time{display:block;text-align:right;color:#b8d5d5;font-size:10px;margin-top:5px}.composer{display:flex;align-items:end;gap:9px;padding:11px 14px;background:#172338;border-top:1px solid #28364d}.composer textarea,.login input{background:#26354b;color:#f2f5fb;border:1px solid #384962;border-radius:11px;outline:none;padding:11px 12px;font:inherit}.composer textarea:focus,.login input:focus{border-color:#17bfae}.composer textarea{flex:1;min-height:40px;max-height:110px;resize:vertical;font-size:13px}.composer button,.login button{background:#18b9aa;color:#042b28;border:0;border-radius:11px;font-weight:bold;cursor:pointer}.composer button{width:42px;height:40px;font-size:20px}.composer button:disabled{opacity:.45;cursor:default}.notice{min-height:18px;background:#172338;color:#ffbe98;font-size:11px;padding:0 15px 5px}.login{margin:auto;padding:24px;width:min(370px,100%);text-align:center}.login-icon{margin:0 auto 20px;width:56px;height:56px;font-size:35px}.login h1{font-size:20px;margin:0 0 8px}.login p{color:#9baac0;font-size:13px;line-height:1.5}.login form{display:flex;flex-direction:column;gap:10px;margin-top:21px}.login input,.login button{height:43px}.error{color:#ff9b98!important}@media(max-width:600px){.topbar{height:52px;padding:0 12px}.brand strong{font-size:14px}.sidebar{width:118px;min-width:118px}.sidebar-title{font-size:12px;padding:12px 9px}.thread{padding:10px 8px;font-size:11px}.thread small{font-size:10px}.conversation-head{padding:8px 10px}.messages{padding:12px}.bubble{font-size:12px;max-width:90%}}
.admin-tabs{display:flex;gap:6px;margin-left:auto;margin-right:18px}.admin-tabs button{border:1px solid #34445c;background:#20314a;color:#dce6f3;padding:8px 13px;border-radius:9px;cursor:pointer;font-weight:600}.admin-tabs button.active{background:#16b7a7;color:#052823;border-color:#16b7a7}.loc-panel{flex:1;min-height:0;overflow:auto;padding:24px;display:flex;align-items:flex-start;justify-content:center;gap:18px;background:#111b2c}.loc-card{width:min(500px,100%);background:#172338;border:1px solid #2d3e56;border-radius:15px;padding:22px}.loc-card h1{font-size:20px;margin:0 0 8px}.loc-card h2{font-size:16px;margin:0 0 15px}.loc-card p{color:#aab9cb;font-size:13px;line-height:1.5;margin:0 0 18px}.loc-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 20px}.loc-summary div{background:#213249;border-radius:10px;padding:10px;color:#a8bad0;font-size:11px}.loc-summary strong{display:block;color:#eaf3fc;font-size:14px;margin-top:5px;overflow-wrap:anywhere}.loc-card form{display:flex;flex-direction:column;gap:9px}.loc-card label{font-size:13px;font-weight:600;margin-top:5px}.loc-card input,.loc-card textarea{background:#26354b;color:#f2f5fb;border:1px solid #384962;border-radius:10px;outline:none;padding:11px 12px;font:inherit;width:100%}.loc-card input:focus,.loc-card textarea:focus{border-color:#17bfae}.loc-lookup{display:flex;gap:8px}.loc-lookup button,.loc-send{border:0;border-radius:10px;background:#18b9aa;color:#042b28;font-weight:bold;cursor:pointer;padding:0 13px;white-space:nowrap}.loc-send{height:43px;margin-top:8px}.loc-send:disabled{opacity:.45;cursor:default}.loc-recipient{font-size:12px;min-height:18px;color:#8de0bc}.loc-result{font-size:13px;min-height:20px;line-height:1.5;white-space:pre-wrap}.loc-result.error{color:#ff9b98}.loc-history{width:min(400px,100%)}.loc-history-item{padding:11px 0;border-top:1px solid #2d3e56;font-size:12px;line-height:1.5}.loc-history-item strong{display:block;font-size:13px}.loc-history-item span{color:#9fb1c7}.loc-history-item small{display:block;color:#80d6b1;margin-top:3px}@media(max-width:850px){.loc-panel{flex-direction:column;align-items:stretch;padding:16px}.loc-card,.loc-history{width:100%}}@media(max-width:600px){.topbar{flex-wrap:wrap;height:auto;min-height:52px;padding:7px 12px;gap:5px}.admin-tabs{order:3;width:100%;margin:0}.admin-tabs button{flex:1}.loc-summary{grid-template-columns:1fr 1fr}.loc-card{padding:16px}}
.loc-logout{float:right;padding:3px 0 8px 10px}
