:root{--ink:#14213c;--muted:#65718a;--blue:#2153dc;--line:#e7eaf1;--soft:#f5f7fb;--navy:#102142}*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:system-ui,-apple-system,"Noto Sans KR","Malgun Gothic",sans-serif;color:var(--ink);background:#fff}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #94b1ff;outline-offset:2px}a{text-decoration:none;color:inherit}[hidden]{display:none!important}.top{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 26px;gap:24px}.brand{display:flex;align-items:center;gap:9px;font-size:23px;font-weight:800;letter-spacing:-.06em}.mark{width:34px;height:34px;border-radius:11px;background:var(--blue);color:white;display:grid;place-items:center;font-size:20px;padding-right:2px}.top-title{font-size:15px;font-weight:700;color:var(--muted)}.top-right{margin-left:auto;display:flex;align-items:center;gap:16px;font-size:14px;color:var(--muted)}.shell{height:calc(100dvh - 68px);min-height:480px;display:grid;grid-template-columns:minmax(305px,360px) minmax(0,1fr);max-width:1440px;margin:auto}.sidebar{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.sidebar-head{padding:25px 22px 12px;display:flex;align-items:center;justify-content:space-between}.sidebar-head h1{font-size:25px;letter-spacing:-.05em;margin:0}.sidebar-head p{font-size:14px;color:var(--muted);margin:2px 0}.total-badge{background:var(--blue);color:white;border-radius:99px;padding:2px 9px;font-size:13px;font-weight:700}.search{margin:0 16px 13px;background:var(--soft);border-radius:12px;display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--muted);font-size:23px}.search input{height:43px;border:0;background:transparent;outline:0;width:100%;font-size:14px;color:var(--ink)}.room-list{overflow:auto;flex:1;padding:0 9px 15px}.room-tile{width:100%;border:0;background:transparent;text-align:left;display:flex;gap:12px;align-items:center;padding:12px;border-radius:15px;color:var(--ink)}.room-tile:hover,.room-tile.selected{background:#edf2ff}.avatar{width:51px;height:51px;border-radius:15px;object-fit:cover;background:#e8efff;flex:none}.avatar-fallback{display:grid;place-items:center;color:var(--blue);font-size:21px}.room-info{min-width:0;flex:1}.room-line{display:flex;gap:8px;align-items:center}.room-name{font-size:15px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.time{font-size:12px;color:var(--muted);white-space:nowrap}.room-meta{font-size:12px;color:var(--blue);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.unread{font-size:12px;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:var(--blue);color:white;display:grid;place-items:center}.empty{text-align:center;color:var(--muted);font-size:15px;padding:42px 18px}.conversation{min-width:0;position:relative}.no-room{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);text-align:center}.empty-icon{font-size:35px;display:grid;place-items:center;width:72px;height:72px;border-radius:23px;background:#edf2ff;color:var(--blue);margin-bottom:18px}.no-room h2{color:var(--ink);font-size:19px;margin:0}.no-room p{margin:7px 0}.room-view{height:100%;display:flex;flex-direction:column}.room-header{height:68px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line);padding:0 19px;flex:none}.room-image,.room-fallback{width:40px;height:40px;border-radius:12px;object-fit:cover;background:#eaf0ff;flex:none}.room-fallback{display:grid;place-items:center;font-size:13px;color:var(--blue);font-weight:700}.room-heading{display:flex;flex-direction:column;min-width:0;flex:1}.room-heading strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px}.room-heading span{font-size:12px;color:var(--muted)}.quiet,.icon-button{border:0;background:transparent;color:var(--muted);padding:9px;border-radius:10px}.quiet:hover,.icon-button:hover{background:var(--soft);color:var(--blue)}.icon-button{font-size:23px;line-height:1}.back{display:none}.room-context{background:#f0f4ff;color:#425271;padding:9px 20px;font-size:13px}.messages{flex:1;min-height:0;overflow:auto;background:#fafbfe;padding:23px max(22px,calc((100% - 760px)/2));display:flex;flex-direction:column;gap:12px}.message{display:flex;gap:9px;max-width:83%;align-items:flex-end}.message.mine{align-self:flex-end;flex-direction:row-reverse}.message.other{align-self:flex-start}.message.system{align-self:center;max-width:90%;font-size:13px;color:var(--muted);background:#edf0f6;border-radius:100px;padding:6px 13px}.bubble-wrap{min-width:0}.sender{color:var(--muted);font-size:12px;margin:0 0 4px 6px}.bubble{background:white;border:1px solid var(--line);border-radius:17px 17px 17px 4px;padding:10px 13px;font-size:15px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}.mine .bubble{background:#dfe9ff;border-color:#dfe9ff;border-radius:17px 17px 4px 17px}.bubble.image,.bubble.sticker{background:transparent;border:0;padding:0}.bubble img{display:block;max-width:min(310px,60vw);max-height:310px;border-radius:14px;object-fit:contain}.bubble.sticker img{width:130px;height:130px;object-fit:contain}.reply-quote{border-left:3px solid #7193ec;padding:3px 9px;margin-bottom:8px;font-size:12px;color:#53637e;background:#ffffff7a;border-radius:4px}.message-time{font-size:11px;color:#8c97aa;white-space:nowrap}.message-actions{display:none;gap:3px}.message:hover .message-actions,.message:focus-within .message-actions{display:flex}.message-actions button{font-size:12px;border:0;border-radius:7px;background:#edf1f8;color:#53637e;padding:4px 6px}.date-divider{text-align:center;color:#8995a8;font-size:12px;margin:9px 0}.reply{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);background:#f6f8fc;padding:8px 20px;color:var(--muted);font-size:13px}.reply button{border:0;background:transparent;font-size:20px;color:var(--muted)}.composer{border-top:1px solid var(--line);display:flex;align-items:flex-end;gap:8px;padding:13px 18px;background:white}.composer textarea{flex:1;resize:none;min-height:43px;max-height:110px;border:1px solid var(--line);border-radius:12px;padding:10px 13px;font-size:15px;line-height:1.4}.send,.confirm{border:0;background:var(--blue);color:white;border-radius:11px;padding:11px 17px;font-weight:750;min-height:42px}.send:disabled{opacity:.45;cursor:not-allowed}.sticker-panel{border-top:1px solid var(--line);height:230px;overflow:auto;padding:10px 17px;background:white}.pack-tabs{display:flex;gap:6px}.pack-tabs button{border:0;background:#f0f3f8;border-radius:9px;padding:7px 14px;color:var(--muted)}.pack-tabs button.active{background:#e2ebff;color:var(--blue);font-weight:700}.sticker-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding-top:10px}.sticker-grid button{background:white;border:0;border-radius:9px;padding:3px}.sticker-grid button:hover{background:#edf2ff}.sticker-grid img{width:100%;max-width:65px;aspect-ratio:1;object-fit:contain}.dialog{border:0;border-radius:18px;width:min(390px,calc(100% - 32px));box-shadow:0 25px 80px #14213c55;padding:23px;color:var(--ink)}.dialog::backdrop{background:#0c1d3b88}.dialog h2{font-size:20px;margin:0 0 14px}.dialog p{color:var(--muted);line-height:1.55}.dialog-actions{display:flex;gap:10px;justify-content:flex-end}.dialog-cancel{border:0;background:#f1f3f8;border-radius:10px;padding:10px 15px;color:var(--ink)}.dialog #menu-actions{display:grid;gap:7px;margin-bottom:14px}.dialog #menu-actions button{border:0;background:var(--soft);border-radius:10px;text-align:left;padding:12px 14px;color:var(--ink)}.dialog #participants-list{max-height:300px;overflow:auto;margin-bottom:16px}.participant{display:flex;align-items:center;gap:11px;padding:8px}.participant img,.participant .initial{width:36px;height:36px;object-fit:cover;border-radius:50%;background:#edf2ff;display:grid;place-items:center}.login-needed{min-height:calc(100dvh - 68px);display:grid;place-items:center;text-align:center;padding:20px}.login-needed>div{max-width:390px}.login-needed .empty-icon{margin:0 auto 20px}.login-needed h1{font-size:23px}.login-needed p{color:var(--muted)}.login-needed a{display:inline-block;background:var(--blue);color:white;border-radius:11px;padding:12px 20px;margin-top:10px;font-weight:700}@media(max-width:720px){.top{padding:0 15px}.top-title,.top-right #account{display:none}.shell{display:block}.sidebar{height:100%;border:0}.conversation{display:none;height:100%}.shell.room-open .sidebar{display:none}.shell.room-open .conversation{display:block}.back{display:block}.room-header{padding:0 10px}.messages{padding:18px 13px}.message{max-width:91%}.sticker-grid{grid-template-columns:repeat(5,1fr)}}

/* App/Web pure-chat parity additions */
.dialog-input{width:100%;height:43px;border:1px solid var(--line);border-radius:11px;padding:0 12px;margin-bottom:12px;color:var(--ink)}
.message-search-results{max-height:360px;overflow:auto;display:grid;gap:6px;margin-bottom:14px}
.message-search-result{border:0;background:var(--soft);border-radius:10px;padding:10px 12px;text-align:left;color:var(--ink)}
.message-search-result strong{display:block;font-size:12px;color:var(--blue);margin-bottom:3px}.message-search-result span{font-size:13px;line-height:1.45}
.message.search-hit .bubble{outline:3px solid #7ea2ff;outline-offset:2px}
.image-dialog{width:min(720px,calc(100% - 28px))}.image-dialog>img{display:block;max-width:100%;max-height:70vh;object-fit:contain;margin:0 auto 16px;border-radius:12px}.dialog-cancel.full{width:100%;margin-top:10px}
.mention-suggestions{border-top:1px solid var(--line);background:white;max-height:190px;overflow:auto;padding:6px 12px;display:grid;gap:3px}.mention-suggestions button{border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:9px;color:var(--ink)}.mention-suggestions button:hover,.mention-suggestions button:focus{background:var(--soft)}
.report-reasons{display:grid;gap:7px;margin-bottom:14px}.report-reasons button{border:0;background:var(--soft);border-radius:10px;padding:12px;text-align:left;color:var(--ink)}
.participant{border:0;width:100%;background:transparent;text-align:left;border-radius:10px;color:var(--ink)}button.participant:hover{background:var(--soft)}
.profile-card{text-align:center}.profile-card img,.profile-card .initial{width:76px;height:76px;border-radius:50%;object-fit:cover;margin:0 auto 12px;background:#edf2ff;display:grid;place-items:center;font-size:30px}.profile-card h3{margin:0;font-size:20px}.profile-card p{margin:6px 0 0;color:var(--muted)}
.message-actions button.action-danger{color:#b42318;background:#fff0ee}
@media(max-width:720px){.message-actions{display:flex;opacity:.86}.message-actions button{padding:3px 5px}.room-header .quiet{font-size:12px;padding:7px}}

.sender{border:0;background:transparent;padding:0 0 4px 6px;cursor:pointer;text-align:left}.bubble.mentioned{box-shadow:0 0 0 2px #9bb5ff inset}.image-button{border:0;background:transparent;padding:0;display:block;border-radius:14px}

.action-list{display:grid;gap:6px;margin-bottom:14px}.action-list button{border:0;background:var(--soft);border-radius:10px;padding:12px 14px;text-align:left;color:var(--ink)}.action-list button.danger{color:#b42318;background:#fff0ee}
