/* connect-1 */
.cn-bar { display: flex; gap: 12px; overflow-x: auto; padding: 10px 12px 8px; scrollbar-width: none; border-bottom: 1px solid rgba(100,116,139,.15); }
.cn-bar::-webkit-scrollbar { display: none; }
.cn-st { flex: none; width: 66px; border: 0; background: none; color: inherit; display: grid; justify-items: center; gap: 4px; padding: 0; cursor: pointer; position: relative; }
.cn-st > :first-child { width: 58px; height: 58px; border-radius: 99px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ec4899; background: #f1f5f9; }
.cn-st.seen > :first-child { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #cbd5e1; }
.cn-st.me > :first-child { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e2e8f0; }
.cn-st.add > span { width: 58px; height: 58px; border-radius: 99px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, #7c3aed, #ec4899); box-shadow: none; }
.cn-st i { position: absolute; top: 40px; right: 4px; width: 22px; height: 22px; border-radius: 99px; background: #2563eb; color: #fff; font: 800 15px/22px system-ui; font-style: normal; border: 2px solid #fff; }
.cn-st small { font-size: 11px; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-st svg, .cn-st img { width: 58px !important; height: 58px !important; object-fit: cover; }
.cn-ini { width: 100%; height: 100%; display: grid; place-items: center; font: 800 20px system-ui; background: linear-gradient(135deg, #a78bfa, #f472b6); color: #fff; }
.cn-hb { border: 0; border-radius: 99px; padding: 8px 12px; background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; font: 800 13px system-ui; }
.cn-sheet { position: fixed; inset: 0; z-index: 10300; background: rgba(8,12,24,.55); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.cn-in { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; background: var(--surface, #fff); color: var(--text, #0f172a); border-radius: 22px 22px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.cn-in h3 { margin: 0; font-size: 19px; }
.cn-sec { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(100,116,139,.08); }
.cn-sec small { font-size: 12px; opacity: .75; }
.cn-qr { grid-template-columns: 120px 1fr; align-items: center; }
.cn-qr > div:last-child { display: grid; gap: 6px; }
.cn-qrbox { width: 120px; height: 120px; background: #fff; border-radius: 12px; padding: 4px; }
.cn-qrbox svg { width: 100%; height: 100%; }
.cn-row { display: flex; gap: 6px; }
.cn-row input { flex: 1; min-width: 0; }
.cn-b { border: 0; border-radius: 12px; padding: 11px 14px; background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; font: 700 14px/1.1 system-ui, sans-serif; cursor: pointer; }
.cn-b.ghost { background: rgba(100,116,139,.18); color: inherit; }
.cn-b.wide { width: 100%; }
.cn-b.sm { padding: 8px 12px; font-size: 13px; }
.cn-link { background: none; border: 0; color: #dc2626; font-size: 12px; justify-self: start; padding: 0; }
.cn-note { margin: 0; font-size: 13px; opacity: .8; }
.cn-p { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface, #fff); }
.cn-p > :first-child { width: 40px; height: 40px; border-radius: 99px; overflow: hidden; flex: none; }
.cn-p span { flex: 1; display: grid; } .cn-p em { font-size: 12px; color: #16a34a; font-style: normal; font-weight: 700; }
.cn-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 10400; font-size: 14px; max-width: 90vw; text-align: center; }
.cn-view { position: fixed; inset: 0; z-index: 10350; background: #000; color: #fff; display: grid; grid-template-rows: auto auto 1fr auto; font-family: system-ui, sans-serif; }
.cn-bars { display: flex; gap: 4px; padding: calc(8px + env(safe-area-inset-top)) 10px 0; }
.cn-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.cn-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.cn-bars i.done b { width: 100%; }
.cn-vh { display: flex; align-items: center; gap: 8px; padding: 10px 12px; z-index: 2; }
.cn-vh > :first-child { width: 36px; height: 36px; border-radius: 99px; overflow: hidden; }
.cn-vh small { opacity: .7; } .cn-vx { margin-left: auto; background: none; border: 0; color: #fff; font-size: 22px; }
.cn-media { display: grid; place-items: center; overflow: hidden; min-height: 0; }
.cn-media img, .cn-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.cn-vf { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); z-index: 2; }
.cn-vf input { flex: 1; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 99px; padding: 10px 14px; }
.cn-tap { position: absolute; top: 90px; bottom: 90px; width: 35%; background: none; border: 0; z-index: 1; }
.cn-tap.l { left: 0; } .cn-tap.r { right: 0; }
.cn-spin { width: 40px; height: 40px; border-radius: 99px; border: 4px solid rgba(255,255,255,.25); border-top-color: #ec4899; animation: cnSpin 1s linear infinite; }
@keyframes cnSpin { to { transform: rotate(360deg); } }
/*scheme-1 dark*/ html[data-theme="dark"] .cn-st > :first-child{ box-shadow: 0 0 0 3px #0f172a, 0 0 0 5px #ec4899; } html[data-theme="dark"] .cn-st.seen > :first-child{ box-shadow: 0 0 0 3px #0f172a, 0 0 0 5px #475569; } html[data-theme="dark"] .cn-in{ background: var(--surface, #0f172a); color: var(--text, #e2e8f0); } html[data-theme="dark"] .cn-p{ background: rgba(255,255,255,.06); } 
.cn-bar--home { border-bottom: 0; padding: 4px 2px 12px; margin: 0 0 4px; }
.cn-link.vcf { color: inherit; opacity: .75; text-decoration: underline; cursor: pointer; font-size: 13px; justify-self: center; }
