/* 5-3 메신저 — 흰 바탕 + 오렌지 포인트, 둥근 말풍선 */
:root {
  --bg: #FFFFFF;
  --side: #FFFFFF;
  --chat-bg: #FFFFFF;
  --elev: #FFFFFF;
  --soft: #F4F5F7;
  --soft-2: #ECEEF1;
  --line: #EDEEF0;
  --text: #191A1C;
  --sub: #73767C;
  --faint: #ADB0B6;
  --point: #FF6A3D;
  --point-soft: #FFF1EC;
  --point-ink: #FFFFFF;
  --mine: #FF6A3D;
  --mine-text: #FFFFFF;
  --theirs: #F2F3F5;
  --theirs-text: #191A1C;
  --danger: #F0443A;
  --online: #20C05C;
  --unread: #FF6A3D;
  --shadow: 0 6px 24px rgba(20, 22, 26, .12);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17181B;
  --side: #17181B;
  --chat-bg: #17181B;
  --elev: #222327;
  --soft: #222327;
  --soft-2: #2B2C31;
  --line: #2A2B30;
  --text: #EEEFF1;
  --sub: #9A9DA4;
  --faint: #62656C;
  --point-soft: rgba(255, 106, 61, .14);
  --theirs: #2A2B30;
  --theirs-text: #EEEFF1;
  --shadow: 0 6px 24px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; -webkit-font-smoothing: antialiased; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { display: block; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--soft-2); border-radius: 8px; }
#app { height: 100dvh; }

/* ---------- 공통 ---------- */
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--sub); font-size: 17px; }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.btn { height: 46px; padding: 0 20px; border-radius: 23px; font-weight: 700; background: var(--point); color: var(--point-ink); }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--soft); color: var(--text); }
.btn.danger { background: var(--soft); color: var(--danger); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 16px; }
.field { width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid transparent; background: var(--soft); outline: none; }
.field:focus { border-color: var(--point); background: var(--bg); }
label.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--sub); margin: 14px 0 6px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 10px; }
.muted { color: var(--sub); }
.only-mobile { display: none !important; }

.av {
  --s: 40px; --c: #9FB3C8;
  width: var(--s); height: var(--s); border-radius: 50%; flex: none; position: relative;
  display: grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .4); color: #fff; background: var(--c); user-select: none;
}
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.av .dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--faint); border: 2.5px solid var(--side); }
.av .dot:not(.on) { display: none; }
.av .dot.on { background: var(--online); }
.av-stack { position: relative; display: inline-block; width: 46px; height: 46px; flex: none; }
#headAv { display: flex; }
.av-stack .av { position: absolute; --s: 30px; border: 2px solid var(--side); }
.av-stack .av:first-child { left: 0; top: 0; }
.av-stack .av:nth-child(2) { right: 0; bottom: 0; }
.av-stack .more { position: absolute; right: -4px; top: -2px; background: var(--soft-2); color: var(--sub); font-size: 10px; font-weight: 700; border-radius: 8px; padding: 0 5px; }

/* ---------- 로그인 ---------- */
.auth { height: 100%; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 360px; }
.auth-logo { font-size: 64px; font-weight: 900; letter-spacing: -3px; text-align: center; color: var(--point); line-height: 1; }
.auth-tag { text-align: center; color: var(--sub); margin: 10px 0 30px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 14px; padding: 4px; margin-bottom: 4px; }
.seg button { height: 38px; border-radius: 11px; font-weight: 700; color: var(--sub); }
.seg button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.auth .btn { width: 100%; margin-top: 16px; height: 50px; border-radius: 25px; }
.auth details { margin-top: 18px; font-size: 13px; color: var(--sub); }
.auth summary { cursor: pointer; }

/* ---------- 레이아웃 ---------- */
.shell { display: flex; height: 100%; }
.side { width: 340px; flex: none; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side-head { height: 64px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 14px 0 20px; }
.logo { flex: 1; font-size: 26px; font-weight: 900; letter-spacing: -1.5px; color: var(--point); display: flex; align-items: center; gap: 8px; }
.conn { width: 7px; height: 7px; border-radius: 50%; background: var(--online); }
.conn.off { background: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.side-head .acts { display: flex; gap: 2px; }
.me-btn { border-radius: 50%; padding: 2px; }
.me-btn:hover { background: var(--soft); }

.tabs { display: flex; gap: 6px; padding: 2px 16px 10px; }
.tabs button {
  height: 36px; padding: 0 16px; border-radius: 18px; font-weight: 700; font-size: 14px; color: var(--sub); background: var(--soft);
  display: flex; align-items: center; gap: 6px;
}
.tabs button svg { display: none; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--text); color: var(--bg); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; font-weight: 700; background: var(--point); color: #fff; display: inline-grid; place-items: center; line-height: 1; }
.tabs button.on .badge { background: var(--point); }
.badge:empty { display: none; }

.side-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.search-wrap { padding: 0 16px 8px; display: flex; gap: 6px; }
.search { flex: 1; min-width: 0; height: 40px; border-radius: 20px; border: 1.5px solid transparent; background: var(--soft); padding: 0 16px; outline: none; font-size: 14px; }
.search:focus { border-color: var(--point); background: var(--bg); }
.list { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; cursor: pointer; border-radius: 16px; }
.row:hover { background: var(--soft); }
.row.active { background: var(--point-soft); }
.row-main { flex: 1; min-width: 0; }
.row-top { display: flex; align-items: baseline; gap: 8px; }
.row-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-name .cnt { color: var(--faint); font-weight: 500; margin-left: 4px; font-size: 13px; }
.row-time { font-size: 12px; color: var(--faint); flex: none; }
.row-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.preview { flex: 1; min-width: 0; color: var(--sub); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview.typing { color: var(--point); font-weight: 600; }
.row .unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--point); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.row-end { display: flex; gap: 4px; align-items: center; }
.status-pill { max-width: 130px; font-size: 12px; color: var(--sub); background: var(--soft); border-radius: 10px; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-title { font-size: 12.5px; font-weight: 700; color: var(--faint); padding: 16px 12px 6px; }
.me-row { margin-bottom: 4px; }
.me-row .av { --s: 54px !important; }
.me-row .row-name { font-size: 17px; }
.add-friend { display: flex; gap: 6px; padding: 0 16px 8px; }
.add-friend .btn { height: 40px; border-radius: 20px; }
.empty { text-align: center; color: var(--sub); padding: 40px 24px; line-height: 1.6; font-size: 14px; }
.empty b { color: var(--point); }

/* ---------- 채팅 ---------- */
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--chat-bg); position: relative; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--faint); }
.chat-empty .big { font-size: 72px; font-weight: 900; color: var(--soft-2); letter-spacing: -4px; }
.chat-empty p { margin-top: 2px; }

.chat-head { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-head .back { display: none; font-size: 28px; color: var(--text); }
.head-main { flex: 1; min-width: 0; cursor: pointer; }
.head-title { font-weight: 800; font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-sub { font-size: 12.5px; color: var(--sub); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-sub .on { color: var(--online); font-weight: 600; }
.head-actions { display: flex; gap: 2px; }

.msgs { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 0 8px; }
.msgs-inner { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.room-start, .load-more { text-align: center; color: var(--faint); font-size: 12.5px; padding: 24px 0 6px; }
.day { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--faint); font-size: 12px; font-weight: 600; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sys { text-align: center; margin: 10px auto; max-width: 80%; font-size: 12.5px; color: var(--sub); }
.sys.poke span { display: inline-block; font-size: 13.5px; color: var(--point); background: var(--point-soft); padding: 7px 15px; border-radius: 16px; font-weight: 600; }

.msg { display: flex; gap: 8px; margin-top: 2px; position: relative; }
.msg.start { margin-top: 12px; }
.msg.mine { flex-direction: row-reverse; }
.msg .av-col { width: 36px; flex: none; }
.msg .av-col .av { --s: 36px !important; }
.msg.mine .av-col { display: none; }
.body-col { min-width: 0; max-width: min(70%, 520px); display: flex; flex-direction: column; align-items: flex-start; }
.msg.mine .body-col { align-items: flex-end; }
.msg .name { font-size: 12.5px; font-weight: 600; color: var(--sub); margin: 0 0 4px 4px; }
.line { display: flex; align-items: flex-end; gap: 6px; position: relative; max-width: 100%; }
.msg.mine .line { flex-direction: row-reverse; }
.bubble {
  background: var(--theirs); color: var(--theirs-text); padding: 9px 14px; border-radius: 20px;
  line-height: 1.45; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; min-width: 0;
}
.msg.mine .bubble { background: var(--mine); color: var(--mine-text); }
.msg.theirs:not(.end) .bubble { border-bottom-left-radius: 6px; }
.msg.theirs:not(.start) .bubble { border-top-left-radius: 6px; }
.msg.mine:not(.end) .bubble { border-bottom-right-radius: 6px; }
.msg.mine:not(.start) .bubble { border-top-right-radius: 6px; }
.bubble a { color: inherit; text-decoration: underline; }
.bubble .edited { font-size: 11px; opacity: .6; margin-left: 5px; }
.bubble.deleted { background: transparent !important; color: var(--faint) !important; border: 1.5px dashed var(--line); font-style: italic; }
.bubble.jumbo { background: transparent !important; font-size: 44px; padding: 0 2px; line-height: 1.15; color: var(--text) !important; }
.bubble.img { padding: 0; overflow: hidden; background: transparent !important; }
.bubble.img img { max-width: min(300px, 100%); max-height: 360px; border-radius: 18px; cursor: zoom-in; min-width: 80px; min-height: 60px; object-fit: cover; background: var(--soft); }
.meta { display: flex; flex-direction: column; align-items: flex-start; font-size: 11px; color: var(--faint); flex: none; line-height: 1.3; padding-bottom: 2px; }
.msg.mine .meta { align-items: flex-end; }
.unread-n { color: var(--unread); font-weight: 700; }
.quote {
  font-size: 12.5px; color: var(--sub); padding: 6px 12px; margin-bottom: 4px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quote b { color: var(--text); margin-right: 4px; font-weight: 600; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.react { height: 26px; padding: 0 8px; border-radius: 13px; font-size: 13.5px; display: flex; align-items: center; gap: 4px; background: var(--bg); border: 1.5px solid var(--line); }
.react b { font-size: 12px; color: var(--sub); font-weight: 600; }
.react.on { border-color: var(--point); background: var(--point-soft); }
.react.on b { color: var(--point); }

.tools {
  position: absolute; top: -34px; display: none; gap: 1px; padding: 3px; border-radius: 18px; z-index: 5;
  background: var(--elev); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.msg.theirs .tools { left: 0; }
.msg.mine .tools { right: 0; }
.tools button { width: 30px; height: 28px; border-radius: 14px; font-size: 14px; display: grid; place-items: center; color: var(--sub); }
.tools button:hover { background: var(--soft); }
@media (hover: hover) { .msg:hover .tools { display: flex; } }
.msg.show-tools .tools { display: flex; }
.msg.flash .bubble { animation: flash 1.2s; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--point); } }
.msg.new { animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } }

.typing { height: 22px; flex: none; padding: 0 24px; font-size: 12.5px; color: var(--sub); display: flex; align-items: center; gap: 6px; max-width: 900px; margin: 0 auto; width: 100%; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--point); animation: bounce 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

.composer-wrap { flex: none; position: relative; padding: 0 16px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); max-width: 900px; margin: 0 auto; width: 100%; }
.ctx-bar { display: none; align-items: center; gap: 8px; padding: 8px 14px; margin-bottom: 6px; font-size: 13px; border-radius: 14px; background: var(--soft); color: var(--sub); }
.ctx-bar.on { display: flex; }
.ctx-bar .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-bar b { color: var(--text); }
.ctx-bar button { font-size: 15px; color: var(--sub); padding: 0 4px; }
.composer { display: flex; align-items: flex-end; gap: 4px; padding: 5px; border-radius: 26px; background: var(--soft); border: 1.5px solid transparent; }
.composer:focus-within { border-color: var(--point); background: var(--bg); }
.composer textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; padding: 9px 6px; max-height: 140px; line-height: 1.4; min-width: 0; }
.send { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--point); color: #fff; transition: transform .1s; }
.send svg { width: 19px; height: 19px; margin-left: 2px; }
.send:disabled { background: var(--soft-2); color: var(--faint); cursor: default; }
.send:not(:disabled):active { transform: scale(.9); }

.emoji-pop {
  position: absolute; bottom: calc(100% + 4px); right: 16px; width: 330px; max-width: calc(100% - 32px); max-height: 290px; overflow-y: auto;
  background: var(--elev); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 10px; z-index: 20;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
}
.emoji-pop[hidden] { display: none; }
.emoji-pop button { font-size: 22px; height: 38px; border-radius: 10px; }
.emoji-pop button:hover { background: var(--soft); }
.emoji-pop .cap { grid-column: 1 / -1; font-size: 12px; color: var(--sub); font-weight: 600; padding: 4px 4px 2px; }

.drop-hint { position: absolute; inset: 10px; z-index: 30; display: none; place-items: center; font-size: 18px; font-weight: 700; color: var(--point); background: var(--point-soft); border: 2px dashed var(--point); border-radius: 20px; }
.chat.dragging .drop-hint { display: grid; }
.banner { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); z-index: 15; background: var(--text); color: var(--bg); padding: 6px 14px; border-radius: 16px; font-size: 12.5px; }

/* ---------- 모달 & 토스트 ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .35); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 400px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--bg); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); animation: up .18s ease-out; }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }
.sheet h3 { font-size: 18px; margin-bottom: 4px; }
.sheet .actions { display: flex; gap: 8px; margin-top: 20px; }
.sheet .actions .btn { flex: 1; }
.profile-top { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 4px; }
.profile-top .av { cursor: pointer; }
.profile-top .uname { color: var(--sub); font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; }
.swatches button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.check-list { max-height: 280px; overflow-y: auto; margin-top: 6px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 8px; cursor: pointer; border-radius: 14px; }
.check-row:hover { background: var(--soft); }
.check-row input { width: 19px; height: 19px; accent-color: var(--point); }
.check-row .nm { flex: 1; font-weight: 600; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.opt-row:last-child { border-bottom: 0; }
.opt-row small { font-size: 11.5px; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: var(--soft-2); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch.on { background: var(--point); }
.switch.on::after { left: 21px; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .9); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }

#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; width: max-content; max-width: min(380px, calc(100vw - 32px)); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 20px;
  box-shadow: var(--shadow); font-size: 13.5px; cursor: pointer; animation: drop .2s ease-out;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.toast b { display: block; margin-bottom: 1px; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }

.shake { animation: shake .5s; }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}

/* ---------- 모바일 ---------- */
@media (max-width: 760px) {
  .side { width: 100%; border-right: 0; }
  .side .me-btn { display: none; }
  .only-mobile { display: flex !important; }
  .tabs {
    order: 3; padding: 0 0 env(safe-area-inset-bottom); gap: 0; border-top: 1px solid var(--line); background: var(--bg);
  }
  .tabs button {
    flex: 1; height: 58px; border-radius: 0; background: none; flex-direction: column; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; position: relative;
  }
  .tabs button svg { display: block; width: 24px; height: 24px; }
  .tabs button.on { background: none; color: var(--point); }
  .tabs button .badge { position: absolute; top: 5px; left: calc(50% + 6px); }
  .chat { display: none; }
  .shell.in-chat .side { display: none; }
  .shell.in-chat .chat { display: flex; }
  .chat-head { padding-left: 4px; }
  .chat-head .back { display: grid; }
  .msgs-inner { padding: 0 12px; }
  .composer-wrap { padding-left: 10px; padding-right: 10px; }
  .body-col { max-width: 78%; }
}

/* ---------- 초대 코드 · 관리자 · 검열 ---------- */
.seg.three { grid-template-columns: 1fr 1fr 1fr; }
.auth-help { text-align: center; color: var(--sub); font-size: 14px; line-height: 1.6; margin: 18px 0 6px; }
.auth-help b { color: var(--point); }
.code-field { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 3px; height: 56px; margin-top: 8px; }
.link-btn { display: block; margin: 12px auto 0; color: var(--sub); font-size: 13px; }
.link-btn:hover { color: var(--text); }
.room-tag { flex: none; font-size: 10.5px; font-weight: 700; color: var(--point); background: var(--point-soft); border-radius: 6px; padding: 2px 6px; margin-left: 2px; }
.av.global { background: var(--point); font-size: calc(var(--s) * .3); font-weight: 900; letter-spacing: -.5px; }
.sys.warn span { display: inline-block; font-size: 12px; color: var(--sub); background: var(--soft); padding: 5px 12px; border-radius: 12px; }
.sys.note span { display: inline-flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--danger); background: rgba(240, 68, 58, .08); padding: 7px 14px; border-radius: 14px; }
.sys.note small { font-size: 11px; color: var(--sub); }
.chat-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.kind { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; border-radius: 16px; background: var(--soft); }
.kind:hover { background: var(--point-soft); }
.kind-ic { font-size: 26px; margin-bottom: 4px; }
.kind small { color: var(--sub); font-size: 12px; }
.sheet.wide { max-width: 480px; }
.small { font-size: 12px; }
.admin-new { display: flex; gap: 8px; margin-top: 8px; }
.admin-new .btn { flex: none; height: 48px; border-radius: 14px; }
.admin-list { max-height: 340px; overflow-y: auto; margin-top: 6px; }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.admin-row .grow { flex: 1; min-width: 0; }
.code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 14px; background: var(--point-soft); color: var(--point); padding: 4px 8px; border-radius: 8px; letter-spacing: 1px; }
.code.used { background: var(--soft); color: var(--faint); text-decoration: line-through; }
.invite-made { margin-top: 12px; padding: 16px; border-radius: 16px; background: var(--point-soft); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.big-code { font-family: ui-monospace, Consolas, monospace; font-size: 30px; font-weight: 900; letter-spacing: 4px; color: var(--point); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 14px; background: var(--soft); font-size: 13px; }
.chip button { width: 20px; height: 20px; border-radius: 50%; color: var(--sub); font-size: 11px; }
.chip button:hover { background: var(--soft-2); color: var(--danger); }
