.ch-wrap{max-width:1400px;margin:0 auto;padding:20px 20px 0;height:100dvh;display:flex;flex-direction:column}.ch-wrap>.bar{flex:none}.ch{flex:1 1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);margin:8px 0 16px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface)}.ch-admin{grid-template-columns:300px minmax(0,1fr)}.ch-list{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line)}.ch-list-head{padding:14px 14px 10px;display:grid;grid-gap:10px;gap:10px;border-bottom:1px solid var(--line)}.ch-list-head h2{margin:0;font-size:1.3rem;display:flex;align-items:center;gap:8px}.ch-search{padding:8px 11px;font-size:.92rem}.ch-items{flex:1 1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px}.ch-none{padding:10px;font-size:.9rem}.ch-item{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--fg);font-weight:400;text-align:left}.ch-item:hover:not(:disabled){filter:none;background:var(--hover)}.ch-item.on{background:rgba(232,161,58,.13)}.ch-meta{flex:1 1;min-width:0;display:grid;grid-gap:1px;gap:1px}.ch-top{display:flex;align-items:baseline;gap:8px}.ch-top b{flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:.94rem}.ch-top time{flex:none;color:var(--mut);font-size:.75rem}.ch-prev{color:var(--mut);font-size:.84rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ch-item.unread .ch-prev{color:var(--fg)}.ch-item.unread .ch-top time{color:var(--amber)}.ch-av{flex:none;width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--surface2);color:var(--fg);font-size:.8rem;font-weight:700;letter-spacing:.02em}.ch-av.big{width:40px;height:40px;background:rgba(232,161,58,.18);color:var(--amber)}.ch-av{position:relative}.ch-dot{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:#e5534b;box-shadow:0 0 0 2px var(--solid)}.ch-dot.on{background:#5fba8a}.ch-status{display:inline-flex;align-items:center;gap:6px;color:var(--bad-t);font-size:.8rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ch-status.on{color:var(--ok-t)}.ch-status i{flex:none;width:8px;height:8px;border-radius:50%;background:currentColor}.ch-badge{flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:var(--amber);color:#1b1d1f;font:700 .72rem/20px system-ui,sans-serif;text-align:center}.ch-conv{position:relative;display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--field)}.ch-head{flex:none;display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--surface)}.ch-head-t{display:grid;min-width:0}.ch-head-t b{font-family:Iowan Old Style,Palatino Linotype,Palatino,Georgia,serif;font-size:1.2rem;font-weight:600}.ch-head-t b,.ch-head-t small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ch-head-t small{font-size:.82rem}.ch-back{display:none;width:36px;height:36px;padding:0;justify-content:center;background:transparent;color:var(--fg);border:1px solid var(--line);font-size:1.4rem;line-height:1}.ch-msgs{flex:1 1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 8px;display:flex;flex-direction:column}.ch-loading{margin:auto}.ch-older{align-self:center;margin:4px 0 10px;padding:5px 12px;background:transparent;color:var(--mut);border:1px solid var(--line);border-radius:99px;font-weight:500;font-size:.82rem}.ch-day{display:flex;justify-content:center;margin:14px 0 8px}.ch-day span{padding:2px 12px;border-radius:99px;background:var(--surface);border:1px solid var(--line);color:var(--mut);font-size:.76rem}.ch-m{display:flex;margin-top:8px}.ch-m.joined{margin-top:2px}.ch-m.mine{justify-content:flex-end}.ch-bubble{max-width:min(560px,78%);padding:7px 11px 5px;border-radius:14px;background:var(--surface2);border:1px solid var(--line);display:grid;grid-gap:4px;gap:4px;min-width:0}.ch-m.mine .ch-bubble{background:rgba(232,161,58,.15);border-color:rgba(232,161,58,.38)}.ch-m.theirs:not(.joined) .ch-bubble{border-top-left-radius:4px}.ch-m.mine:not(.joined) .ch-bubble{border-top-right-radius:4px}.ch-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}.ch-text a{color:var(--amber)}.ch-time{justify-self:end;display:inline-flex;align-items:center;gap:6px;color:var(--mut);font-size:.7rem;line-height:1}.ch-del{padding:2px;border:0;background:none;color:var(--mut);opacity:0;transition:opacity .15s;line-height:0}.ch-del svg{width:13px;height:13px}.ch-bubble:hover .ch-del,.ch-del:focus-visible{opacity:1}.ch-del:hover:not(:disabled){filter:none;color:var(--red)}@media (hover:none){.ch-del{opacity:.7}}.ch-seen{text-align:right;color:var(--mut);font-size:.72rem;margin:3px 2px 0}.ch-img{display:block;line-height:0;border-radius:8px;overflow:hidden;margin:2px -5px 0}.ch-img img{display:block;max-width:100%;max-height:300px;object-fit:contain;background:#000}.ch-dl{justify-self:start;padding:0;border:0;background:none;color:var(--mut);font-weight:400;font-size:.76rem;text-align:left}.ch-dl:hover:not(:disabled){filter:none;color:var(--fg)}.ch-file{display:flex;align-items:center;gap:10px;padding:8px 10px;margin:2px -4px 0;border:1px solid var(--line);border-radius:8px;background:rgba(0,0,0,.18);color:var(--fg);font-weight:400;text-align:left;min-width:0;max-width:100%}.ch-file:hover:not(:disabled){filter:none;border-color:var(--mut)}.ch-file-i{flex:none;width:32px;height:32px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:rgba(232,161,58,.16);color:var(--amber)}.ch-file-t{display:grid;min-width:0}.ch-file-t b{font-weight:600;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ch-file-t small{color:var(--mut);font-size:.76rem}.ch-compose{flex:none;padding:10px 12px 8px;border-top:1px solid var(--line);background:var(--surface);display:grid;grid-gap:6px;gap:6px}.ch-row{display:flex;align-items:flex-end;gap:8px}.ch-row textarea{flex:1 1;min-height:42px;max-height:160px;padding:10px 12px;resize:none;line-height:1.4}.ch-attach,.ch-send{flex:none;width:42px;height:42px;padding:0;justify-content:center;border-radius:8px}.ch-attach{background:transparent;color:var(--fg);border:1px solid var(--line)}.ch-attach:hover:not(:disabled){filter:none;border-color:var(--mut);background:var(--hover)}.ch-pending{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px dashed var(--amber);border-radius:8px;color:var(--amber);font-size:.88rem;min-width:0}.ch-pending-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg)}.ch-prog{margin-left:auto;flex:0 0 120px;height:6px;border-radius:99px;background:var(--track);overflow:hidden}.ch-prog i{display:block;height:100%;background:var(--amber);transition:width .2s}.ch-x{margin-left:auto;padding:0 6px;border:0;background:none;color:var(--mut);font-size:1.2rem;line-height:1}.ch-x:hover:not(:disabled){filter:none;color:var(--fg)}.ch-hint{margin:0;color:var(--mut);font-size:.74rem}.ch-err{margin:0;font-size:.88rem}.ch-empty{margin:auto;display:grid;justify-items:center;grid-gap:6px;gap:6px;padding:24px;text-align:center;color:var(--mut);max-width:42ch}.ch-empty b{color:var(--fg);font-size:1.05rem}.ch-empty.small{margin:auto}.ch-conv.drag{outline:2px dashed var(--amber);outline-offset:-8px}.ch-drop{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--overlay);color:var(--amber);font-weight:600;pointer-events:none}@media (max-width:760px){.ch-wrap{padding:12px 10px 0}.ch{margin:6px 0 10px;border-radius:8px}.ch-admin{grid-template-columns:minmax(0,1fr)}.ch-admin.has-active .ch-list,.ch-admin:not(.has-active) .ch-conv{display:none}.ch-list{border-right:0}.ch-back{display:inline-flex}.ch-msgs{padding:10px 10px 6px}.ch-bubble{max-width:88%}.ch-head{padding:10px 12px}}.ch-compact{margin:0;border:0;border-radius:0;grid-template-columns:minmax(0,1fr)}.ch-compact.ch-admin.has-active .ch-list,.ch-compact.ch-admin:not(.has-active) .ch-conv{display:none}.ch-compact .ch-list{border-right:0}.ch-compact .ch-list-head h2{font-size:1.15rem}.ch-compact .ch-back{display:inline-flex;width:32px;height:32px}.ch-compact .ch-head{padding:10px 12px;gap:10px}.ch-compact .ch-head-t b{font-size:1.05rem}.ch-compact .ch-av.big{width:34px;height:34px}.ch-compact .ch-msgs{padding:10px 12px 6px}.ch-compact .ch-bubble{max-width:85%}.ch-list-top{display:flex;align-items:center;gap:8px}.ch-tools{margin-left:auto;display:flex;gap:4px;flex:none}.ch-ico{width:32px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;border:1px solid var(--line);background:transparent;color:var(--mut)}.ch-ico:hover:not(:disabled){filter:none;color:var(--fg);border-color:var(--mut)}.chw-fab{position:fixed;right:22px;bottom:22px;z-index:1001;width:58px;height:58px;padding:0;border-radius:50%;justify-content:center;align-self:auto;background:var(--amber);color:#1c1c1c;box-shadow:0 8px 24px var(--shadow)}.chw-fab:hover:not(:disabled){filter:brightness(1.08)}.chw-fab.on{background:var(--surface2);color:var(--fg);border-color:var(--line)}.chw-n{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--fg);color:var(--bg);font:700 .74rem/22px system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px var(--bg)}.chw-panel{position:fixed;right:22px;bottom:94px;z-index:1000;width:min(400px,calc(100vw - 44px));height:min(620px,calc(100dvh - 120px));display:flex;flex-direction:column;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--pop);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:0 18px 50px var(--shadow)}.chw-panel>.ch{flex:1 1;background:transparent;box-shadow:none}@media (max-width:760px){.chw-panel{inset:0;width:auto;height:auto;border:0;border-radius:0}.chw-fab{right:14px;bottom:calc(14px + env(safe-area-inset-bottom));width:50px;height:50px}.chw-fab svg{width:22px;height:22px}.ch-compose{padding-bottom:calc(8px + env(safe-area-inset-bottom))}.chw-fab.on{display:none}}