:root{color-scheme:dark;font-family:Inter,Pretendard,"Noto Sans KR",system-ui,-apple-system,sans-serif;background:#0c1422;color:#eaf1fb;font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.42}.hidden{display:none!important}.app{display:flex;height:100dvh;min-height:420px;overflow:hidden}
.sidebar{width:340px;min-width:300px;display:flex;flex-direction:column;background:#101a2b;border-right:1px solid #28354a}.side-header{padding:21px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #263448}.brand-mark{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:#142026;font-size:23px;background:#b9edc9}.brand{display:flex;flex:1;flex-direction:column;gap:4px;font-size:15px}.brand small,.muted,.sidebar-footer,.section-caption,.chat-title span{color:#92a2b9;font-size:12px}.icon-btn{background:transparent;color:#c4d1e6;font-size:21px;width:34px;height:34px;border-radius:9px}.icon-btn:hover,.mini-btn:hover,.link-btn:hover{background:#26364b}.devices-section{padding:17px 16px 16px;border-bottom:1px solid #29364a}.section-caption{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;font-weight:650}.section-caption b{background:#4e6784;color:#fff;border-radius:10px;padding:2px 7px;font-size:11px}.mini-btn,.link-btn{background:transparent;color:#a8e9b8;border-radius:8px;padding:5px 7px;font-size:12px}select,input,textarea{outline:0;border:1px solid #32455f;border-radius:9px;background:#18253b;color:#ebf2ff;padding:11px;width:100%}input:focus,textarea:focus,select:focus{border-color:#a8e9b8}.device-status{display:flex;align-items:center;gap:7px;margin-top:9px;color:#9eacc2;font-size:12px}.live-dot,.off-dot{width:7px;height:7px;border-radius:50%;background:#6ae39d;display:inline-block}.off-dot{background:#77869d}.threads-section{display:flex;flex-direction:column;overflow:hidden;flex:1;padding:17px 0}.threads-section>.section-caption,.threads-section>.search{margin-left:16px;margin-right:16px}.threads-section>.search{width:calc(100% - 32px);margin-bottom:10px}.thread-list{overflow:auto;flex:1}.thread-item{width:100%;display:flex;gap:12px;text-align:left;background:transparent;color:inherit;padding:13px 15px;border-left:3px solid transparent}.thread-item:hover{background:#1a2940}.thread-item.active{background:#253852;border-left-color:#9deab6}.avatar{flex-shrink:0;width:42px;height:42px;border-radius:16px;background:#2a415e;color:#c6eada;display:grid;place-items:center;font-weight:700}.thread-content{flex:1;min-width:0}.thread-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.thread-top strong{font-size:13px;font-weight:650}.thread-top time{white-space:nowrap;font-size:11px;color:#8b9bb2}.thread-excerpt{display:flex;justify-content:space-between;gap:7px;margin-top:6px}.thread-excerpt span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;color:#9bacc2}.thread-excerpt b{font-size:11px;padding:2px 6px;border-radius:12px;background:#b8eab9;color:#12211c;min-width:19px;text-align:center}.sidebar-footer{padding:12px 16px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #29364a}.server-status.online{color:#7bdf9e}.server-status.offline{color:#f19ca3}
.chat-pane{flex:1;display:flex;flex-direction:column;min-width:0;background:radial-gradient(circle at 70% 0,#192b43 0,transparent 38%),#101927}.chat-header{height:72px;display:flex;align-items:center;gap:12px;padding:0 22px;background:#132035;border-bottom:1px solid #29394d}.chat-title{display:flex;flex-direction:column;gap:5px;flex:1}.chat-title strong{font-size:16px}.back-btn{display:none}.message-list{flex:1;min-height:0;overflow-y:auto;padding:24px 28px;display:flex;flex-direction:column;gap:12px}.empty-chat{margin:auto;text-align:center;color:#8d9ab0}.empty-chat strong{color:#bccbdd}.empty-chat p{font-size:12px}.empty-icon{font-size:40px;margin-bottom:12px}.bubble-wrap{display:flex;max-width:84%;gap:9px;flex-direction:column}.bubble-wrap.out{align-self:flex-end;align-items:flex-end}.bubble-wrap.in{align-self:flex-start;align-items:flex-start}.bubble{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 14px;border-radius:15px;background:#263a54;line-height:1.55}.bubble-wrap.out .bubble{background:#bcedc0;color:#173124;border-top-right-radius:4px}.bubble-wrap.in .bubble{border-top-left-radius:4px}.bubble-meta{color:#8699b2;font-size:10px;padding:0 3px}.bubble-meta.failed{color:#f5a1a8}.compose-form{border-top:1px solid #2a394e;padding:14px 20px 17px;background:#132035}.compose-form textarea{resize:none;min-height:62px;max-height:170px}.compose-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:10px;gap:12px;color:#8193ac;font-size:11px}.primary{background:#b4eab9;color:#152d20;border-radius:10px;padding:11px 17px;font-weight:750}.primary:hover{background:#d1f4d5}.secondary{background:#2a3b50;color:#edf5ff;padding:11px;border-radius:10px}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:25px;background:radial-gradient(circle at 70% 20%,#1c3c43,transparent 45%),#0c1524}.login-card{background:#142237;border:1px solid #2f435a;border-radius:20px;width:min(390px,100%);padding:32px;display:flex;flex-direction:column;gap:14px;box-shadow:0 22px 70px #0005}.login-card h1{text-align:center;font-size:24px;letter-spacing:.09em;margin:0}.login-card p{text-align:center;margin:0 0 12px;font-size:12px;color:#8ba0b6}.login-icon{margin:0 auto;background:#b4eab9;border-radius:18px;font-size:35px;color:#182b22;width:64px;height:64px;display:grid;place-items:center}.login-card label{font-size:12px;color:#a7b4c8}.error{color:#ff9ca5;min-height:16px}.modal{background:#16243a;color:inherit;border:1px solid #344a63;border-radius:18px;width:min(480px,calc(100% - 24px));padding:0;box-shadow:0 25px 90px #000b;max-height:88dvh;overflow:auto}.modal::backdrop{background:#020912c4}.dialog-body{padding:23px;display:flex;flex-direction:column;gap:15px}.dialog-body label{font-size:12px;color:#b7c7dc;display:flex;flex-direction:column;gap:8px}.dialog-body p{line-height:1.55;margin:0}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{font-size:19px;margin:0}.credentials{border:1px solid #63856d;border-radius:12px;background:#213a37;padding:14px;display:flex;flex-direction:column;gap:12px}.credentials input{font-size:12px}.warning{color:#f6d68a;font-size:11px}.manager-row{padding:13px 0;border-bottom:1px solid #33435c;display:flex;align-items:center;justify-content:space-between;gap:9px}.manager-row strong{display:block;font-size:13px}.manager-row small{color:#8ba0b6}.danger-btn{background:#4a2934;color:#ffbbc2;padding:8px 10px;border-radius:9px}.empty-small{padding:22px 14px;text-align:center;color:#849ab0;font-size:12px}#toast-area{position:fixed;right:18px;bottom:20px;z-index:9999;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast{background:#263b54;border:1px solid #46627e;padding:12px 16px;border-radius:12px;box-shadow:0 10px 28px #0007;max-width:320px;font-size:13px;pointer-events:auto}
@media(max-width:760px){.sidebar{width:100%;min-width:0}.chat-pane{display:none}.app.chat-open .sidebar{display:none}.app.chat-open .chat-pane{display:flex}.back-btn{display:block}.message-list{padding:17px}.chat-header{padding:0 12px}.compose-form{padding:11px}.bubble-wrap{max-width:90%}.section-caption{font-size:12px}}
body.embed .side-header{padding:12px}.embed .sidebar{min-width:210px;width:260px}.embed .devices-section{padding:10px}.embed .chat-header{height:54px;padding:0 12px}.embed .compose-form{padding:10px}.embed .message-list{padding:14px}.embed .thread-item{padding:10px}.embed .brand small{display:none}
@media(max-width:560px){body.embed .sidebar{width:100%}}
