:root{--blue: #325AB1;--blue-dark: #26448A;--blue-soft: #DCE7FA;--blue-faint: #EEF3FC;--navy: #16233B;--ink: #16233B;--muted: #4A566B;--line: #E1E6EE;--ground: #F4F6FA;--red: #C62828}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:Noto Sans KR,system-ui,-apple-system,sans-serif;color:var(--ink);background:#fff;font-size:15px}button,input,textarea{font-family:inherit;font-size:inherit;color:inherit}button{cursor:pointer}h1,h2,p{margin:0}.muted{color:var(--muted);font-size:13px}.dim{color:#7a869b;display:inline-flex}.center{height:100%;min-height:160px;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.error{background:#fdecec;color:#9b1c1c;padding:10px 12px;border-radius:10px;font-size:14px}.info{background:var(--blue-faint);color:var(--navy);padding:10px 12px;border-radius:10px;font-size:14px;margin-bottom:12px}.tag{display:inline-block;font-size:12px;font-weight:700;color:var(--blue)}.btn{min-height:44px;padding:0 16px;border-radius:10px;border:1.5px solid #C5CCD8;background:#fff;font-weight:700}.btn:hover{background:var(--ground)}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.primary:hover{background:var(--blue-dark)}.btn.primary:disabled{opacity:.6;cursor:default}.btn.ghost{border-color:transparent;background:var(--ground)}.btn.link{border:none;background:none;color:var(--blue)}.btn.small{min-height:36px;padding:0 12px;font-size:13px}.btn.big{min-height:52px;font-size:16px}.btn.danger{color:var(--red)}.icon-btn{width:44px;height:44px;flex:none;border:none;border-radius:10px;background:var(--ground);display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}.icon-btn:hover{background:var(--line)}.icon-btn.on{background:var(--blue-soft);color:var(--blue)}.mini{width:28px;height:28px;border:none;border-radius:8px;background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center}.mini:hover{background:var(--line)}.avatar{flex:none;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:700;object-fit:cover}input:not([type=checkbox]):not([type=file]),textarea{width:100%;min-height:48px;padding:12px 14px;border:1.5px solid #C5CCD8;border-radius:10px;background:#fff}input:focus,textarea:focus,button:focus-visible{outline:2px solid var(--blue);outline-offset:1px}label,.form-label{font-size:14px;font-weight:700}.check{display:flex;align-items:center;gap:8px;font-weight:500;min-height:36px}.check input{width:18px;height:18px}.row{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.auth-wrap,.picker-wrap{min-height:100%;display:flex;justify-content:center;align-items:flex-start;padding:48px 20px;background:var(--ground)}.auth-card{width:100%;max-width:400px;background:#fff;border-radius:18px;padding:32px 28px;display:flex;flex-direction:column;gap:10px}.auth-card h1{font-size:26px;font-weight:900;margin-top:8px}.auth-card label{margin-top:8px}.auth-card .btn.big{margin-top:12px}.picker{width:100%;max-width:440px;display:flex;flex-direction:column;gap:12px}.picker-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.picker-head h1{font-size:26px;font-weight:900}.branch-card{display:flex;align-items:center;gap:14px;padding:16px;border-radius:16px;border:none;background:#fff;text-align:left}.branch-card:hover{background:var(--blue-faint)}.branch-card.dashed{background:transparent;border:1.5px dashed #8FA9DA;color:var(--blue)}.branch-card>svg{transform:rotate(180deg);color:var(--muted)}.branch-mark{width:48px;height:48px;flex:none;border-radius:14px;background:var(--blue);color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center}.branch-mark.light{background:var(--blue-soft);color:var(--blue)}.branch-text{flex:1;display:flex;flex-direction:column;gap:2px}.panel{background:#fff;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px}.app{height:100%;display:flex}.rail{flex:0 0 68px;background:var(--navy);display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 0}.rail-btn{width:46px;height:46px;border:none;border-radius:12px;background:transparent;color:#c7d0e0;display:flex;align-items:center;justify-content:center}.rail-btn:hover{background:#2b3b5c;color:#fff}.rail-gap{flex:1}.side{flex:0 0 290px;background:var(--ground);display:flex;flex-direction:column;min-width:0}.side-head{padding:20px 18px 12px;display:flex;flex-direction:column;gap:2px}.side-head strong{font-size:17px;font-weight:900}.side-scroll{flex:1;overflow-y:auto;padding:0 10px 16px}.side-label{display:flex;align-items:center;justify-content:space-between;padding:14px 8px 6px;font-size:12px;font-weight:700;color:var(--muted)}.side-empty{padding:4px 8px;font-size:13px;color:var(--muted)}.room-row{width:100%;min-height:46px;display:flex;align-items:center;gap:10px;padding:0 8px;border:none;border-radius:10px;background:transparent;text-align:left}button.room-row:hover{background:var(--line)}.room-row.on{background:var(--blue-soft);font-weight:700}.room-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--red);color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.main{flex:1;min-width:0;display:flex;flex-direction:column}.chat-head{display:flex;align-items:center;gap:8px;padding:12px 20px;border-bottom:1px solid var(--line)}.chat-title{flex:1;min-width:0}.chat-title h1{font-size:18px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notice{margin:12px 20px 0;padding:10px 14px;border-radius:12px;background:var(--blue-faint);display:flex;align-items:flex-start;gap:10px}.notice-tag{flex:none;padding:2px 9px;border-radius:6px;background:var(--blue);color:#fff;font-size:12px;font-weight:700}.notice-body{flex:1;font-size:14px;white-space:pre-wrap;word-break:break-word}.msgs{flex:1;overflow-y:auto;padding:16px 20px;display:flex;flex-direction:column;gap:14px}.more{align-self:center}.day{display:flex;justify-content:center}.day span{font-size:12px;color:var(--muted);background:var(--ground);padding:4px 12px;border-radius:12px}.msg{display:flex;gap:10px;align-items:flex-start}.msg.mine{justify-content:flex-end}.msg-col{max-width:min(560px,78%);display:flex;flex-direction:column;gap:5px;align-items:flex-start}.msg.mine .msg-col{align-items:flex-end}.msg-who{font-size:13px}.bubble{padding:10px 14px;border-radius:4px 16px 16px;background:var(--ground);line-height:1.55;white-space:pre-wrap;word-break:break-word}.msg.mine .bubble{background:var(--blue);color:#fff;border-radius:16px 4px 16px 16px}.bubble.deleted,.msg.mine .bubble.deleted{background:var(--ground);color:var(--muted);font-style:italic}.msg-meta{font-size:12px;color:var(--muted);display:flex;gap:4px;align-items:center}.del{border:none;background:none;color:var(--muted);font-size:12px;text-decoration:underline;padding:6px}.att-img{display:block;max-width:280px;max-height:280px;border-radius:12px}.att-img.loading{width:200px;height:140px;background:var(--ground)}.att-file{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;max-width:100%}.att-file:hover{background:var(--ground)}.att-icon{width:38px;height:38px;flex:none;border-radius:10px;background:var(--blue-soft);color:var(--blue);display:flex;align-items:center;justify-content:center}.att-text{display:flex;flex-direction:column;min-width:0}.att-text strong{font-size:14px;word-break:break-all}.composer{margin:0 20px 20px;padding:8px 10px;border:1.5px solid #C5CCD8;border-radius:14px}.composer-row{display:flex;align-items:flex-end;gap:8px}.composer textarea{flex:1;border:none;min-height:44px;max-height:140px;padding:10px 4px;resize:none;outline:none}.chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 2px 8px}.chip{display:inline-flex;align-items:center;gap:4px;padding:4px 6px 4px 10px;border-radius:8px;background:var(--blue-faint);font-size:13px}.chip button{border:none;background:none;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#16233b73;display:flex;align-items:center;justify-content:center;padding:16px;z-index:10}.modal{width:100%;max-width:560px;max-height:90vh;background:#fff;border-radius:18px;display:flex;flex-direction:column}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 8px 22px}.modal-head h2{font-size:19px;font-weight:900}.modal-body{padding:8px 22px 22px;overflow-y:auto}.form{display:flex;flex-direction:column;gap:10px}.tabs{display:flex;gap:4px;margin-bottom:14px;background:var(--ground);padding:4px;border-radius:12px}.tabs button{flex:1;min-height:40px;border:none;border-radius:9px;background:transparent;font-weight:700;color:var(--muted)}.tabs button.on{background:#fff;color:var(--ink)}.people{display:flex;flex-direction:column;gap:4px}.person{display:flex;align-items:center;gap:12px;padding:8px 4px;flex-wrap:wrap}.person.blocked{opacity:.6}.person-text{flex:1;min-width:140px;display:flex;flex-direction:column}.person-actions{display:flex;gap:6px;flex-wrap:wrap}.pick-list{max-height:220px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;padding:6px 12px}.code-box{font-size:28px;font-weight:900;letter-spacing:4px;text-align:center;padding:18px;border-radius:12px;background:var(--blue-faint);color:var(--blue-dark)}.profile-top{display:flex;align-items:center;gap:16px}.profile-top>div{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%);background:var(--navy);color:#fff;padding:12px 18px;border-radius:12px;z-index:20;max-width:90vw}.only-mobile{display:none}@media (max-width: 760px){.rail{flex-basis:56px}.side{flex:1}.main,.app.show-chat .rail,.app.show-chat .side{display:none}.app.show-chat .main{display:flex}.only-mobile{display:inline-flex}.chat-head{padding:10px 12px}.msgs{padding:12px}.composer{margin:0 10px 10px}.msg-col{max-width:84%}}
