/* ============================================================
   WINR v26 — INSIDE COMMUNITY: CHAT-FIRST REDESIGN
   Discord-energy structure, Skool-tier polish, WINR cinematics.
   3-pane: channels rail / chat / members rail.
   ============================================================ */

/* Hide the old v18 lobby shell when v26 is active */
.community-lobby .cv2-shell ~ .cv-shell,
.community-lobby:has(.cv2-shell) > .cv-shell { display:none !important; }

/* Hide global top-nav (only) when inside a community (v26). Bottom nav stays. */
body.in-community .top-nav{ display:none !important; }
/* Hide the global join-notification stream + the "My communities" FAB while inside */
body.in-community #v13-join-toasts,
body.in-community .v13-join-container,
body.in-community #v17McFab{ display:none !important; }

/* Full-bleed community shell — flush from top to the bottom-nav top edge.
   Use fixed positioning so we ignore #app's 60/80 padding. */
.community-lobby:has(.cv2-shell){
  position: fixed !important;
  padding: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  overflow: hidden;
}

/* ── Root shell ── */
.cv2-shell{
  --rail: 260px;
  --rail-right: 260px;
  --header-h: 56px;
  --tabs-h: 44px;
  --line: rgba(255,255,255,0.05);
  --line-2: rgba(255,255,255,0.10);
  --txt-hi: #fafafa;
  --txt-mid: rgba(255,255,255,0.72);
  --txt-lo: rgba(255,255,255,0.46);
  /* Customizable highlight color (color wheel) — applied ONLY to channel active state */
  --cv2-accent: #FFFFFF;
  --cv2-accent-soft: rgba(255,255,255,0.10);
  position:relative;
  display:flex;
  flex-direction:column;
  height: 100%;
  max-height: 100%;
  border-radius: 14px;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(10,10,14,0.18), rgba(10,10,14,0.30));
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: cv2FadeIn .35s var(--ease-out, ease) both;
}
@keyframes cv2FadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ── Topbar (transparent, clean) ── */
.cv2-topbar{
  flex:0 0 auto;
  display:flex;align-items:center;gap:12px;
  height: 64px;
  padding: 0 20px;
  border-bottom: none !important;
  background: transparent;
  position:relative;
}
.cv2-topbar-left{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.cv2-topbar-center{
  position:absolute; left:50%; top:0; bottom:0;
  transform:translateX(-50%);
  display:flex;align-items:center;
  height: 64px;
  z-index: 1;
  pointer-events:none;
}
.cv2-topbar-center > *{pointer-events:auto}
.cv2-topbar-right{display:flex;align-items:center;gap:6px;margin-left:auto;flex:0 0 auto;z-index:2;position:relative}
.cv2-back{
  display:inline-flex;align-items:center;gap:6px;
  height:38px;padding:0 14px;border-radius:999px;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--line);
  color:var(--txt-mid);font-size:13px;font-weight:600;
  transition: all .18s ease;
}
.cv2-back:hover{ background:rgba(255,255,255,0.07); color:var(--txt-hi); border-color: var(--line-2); }
.cv2-topbar-title{
  display:flex;align-items:center;gap:10px;min-width:0;
}
.cv2-topbar-avatar{
  width:28px;height:28px;border-radius:8px;
  display:grid;place-items:center;
  font-size:13px;font-weight:800;color:#0a0a0e;
  background: #fafafa;
  background-size:cover;background-position:center;
  flex:0 0 auto;
}
.cv2-topbar-name{
  font-size:14px;font-weight:700;letter-spacing:-0.2px;
  color:var(--txt-hi);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cv2-topbar-sub{
  font-size:11px;color:var(--txt-lo);
  display:flex;align-items:center;gap:6px;
}
.cv2-topbar-spacer{flex:1}
.cv2-topbar-actions{display:flex;align-items:center;gap:6px}
.cv2-icon-btn{
  width:38px;height:38px;border-radius:10px;
  display:grid;place-items:center;
  color:var(--txt-mid);
  background:transparent;border:1px solid transparent;
  transition: all .15s ease;
}
.cv2-icon-btn:hover{ background:rgba(255,255,255,0.06); color:var(--txt-hi); border-color: var(--line); }
.cv2-icon-btn svg{ width:18px; height:18px; }
.cv2-search-box{
  display:flex;align-items:center;gap:9px;
  height:40px;padding:0 16px;
  border-radius:999px;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.12);
  width: 260px;
  transition: border-color .18s ease, background .18s ease, width .25s ease, box-shadow .18s ease;
}
.cv2-search-box:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
}
.cv2-search-box:focus-within, .cv2-search-box.has-value{
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,255,255,1);
  box-shadow: 0 6px 22px rgba(0,0,0,0.4), 0 0 0 4px rgba(255,255,255,0.06);
  width: 320px;
}
.cv2-search-box:focus-within input,
.cv2-search-box.has-value input{ color:#0a0a0e; }
.cv2-search-box:focus-within svg,
.cv2-search-box.has-value svg{ color:#0a0a0e; }
.cv2-search-box:focus-within input::placeholder,
.cv2-search-box.has-value input::placeholder{ color: rgba(10,10,14,0.45); }
.cv2-search-box input{
  background:transparent;border:0;outline:none;color:var(--txt-hi);
  font-size:13px;font-weight:500;flex:1;min-width:0;
}
.cv2-search-box svg{color:var(--txt-lo);flex:0 0 auto;transition:color .18s ease}
.cv2-search-clear{
  width:18px;height:18px;border-radius:50%;
  display:none;place-items:center;
  background:rgba(0,0,0,0.4); color:#fff;font-size:11px;line-height:1;flex:0 0 auto;
}
.cv2-search-box.has-value .cv2-search-clear{ display:grid }
.cv2-search-box.has-value .cv2-search-clear:hover{ background:rgba(0,0,0,0.6) }

/* ── Centered scope tabs (clean & minimal) ── */
.cv2-tabs{
  display:inline-flex;align-items:center;gap:4px;
  background: transparent;
  border:0;
  padding: 0;
}
.cv2-tab{
  position:relative;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size:14px;font-weight:600;letter-spacing:-0.1px;
  color: var(--txt-lo);
  background:transparent;border:0;
  display:inline-flex;align-items:center;gap:9px;
  white-space:nowrap;
  transition: color .18s ease, background .18s ease;
}
.cv2-tab svg{ width:15px; height:15px; opacity:0.6; transition: opacity .18s ease }
.cv2-tab:hover{ color: var(--txt-hi); background: rgba(255,255,255,0.04); }
.cv2-tab:hover svg{opacity:1}
.cv2-tab.active{ color: var(--txt-hi); background: transparent; }
.cv2-tab.active svg{opacity:1}
.cv2-tab.active::after{
  content:'';
  position:absolute; left: 18px; right: 18px; bottom: -10px;
  height: 2px; border-radius: 2px;
  background: rgba(255,255,255,0.85);
}
.cv2-tab-count{
  display:inline-grid;place-items:center;
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  font-size:11px;font-weight:700;
  background:rgba(255,255,255,0.07);color:var(--txt-mid);
}
.cv2-tab.active .cv2-tab-count{ background:rgba(255,255,255,0.14); color:var(--txt-hi) }
.cv2-tabbar{display:none}

/* ── Body grid ── */
.cv2-body{
  flex:1; min-height:0;
  display:grid;
  grid-template-columns: var(--rail) 1fr 0;
  background: transparent;
  transition: grid-template-columns .25s ease;
}
.cv2-shell.show-members .cv2-body{
  grid-template-columns: var(--rail) 1fr var(--rail-right);
}

/* ── Sidebar (left rail) ── */
.cv2-sidebar{
  display:flex; flex-direction:column; min-height:0;
  border-right: none !important;
  background: transparent;
}
.cv2-community-card{
  position:relative;
  margin: 14px !important;
  border-radius:14px;
  overflow:hidden;
  border: 1px solid var(--line-2) !important;
  background: rgba(20, 20, 26, 0.45) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  isolation:isolate;
  z-index: 5 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}
.cv2-community-banner{
  height:96px;background-size:cover;background-position:center;
  position:relative;
}
.cv2-community-banner::after{
  content:'';position:absolute;inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(8,8,12,0.92));
}
.cv2-banner-badges{
  position:absolute; top:10px; left:10px; right:10px;
  display:flex; align-items:center; justify-content:space-between; gap:6px; z-index:2;
}
.cv2-banner-chip{
  display:inline-flex;align-items:center;gap:5px;
  height:22px;padding:0 9px;border-radius:999px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  font-size:10.5px;font-weight:700;color:#fff;letter-spacing:0.3px;
  backdrop-filter: blur(8px);
}
.cv2-banner-chip.live{
  background: rgba(239,68,68,0.85); border-color: rgba(239,68,68,0.9);
}
.cv2-banner-chip.live .dot{ width:5px;height:5px;border-radius:50%;background:#fff;animation: cv2Breath 1.6s ease-in-out infinite; }
.cv2-community-body{
  position:relative; z-index:1;
  padding: 10px 14px 14px;
  margin-top:-22px;
}
.cv2-banner-actions{
  display:flex;align-items:center;gap:8px;
  margin-top:12px;
}
.cv2-banner-actions .cv2-join-cta{ margin-top:0; flex:1 }
.cv2-banner-icon-btn{
  width:36px;height:36px;border-radius:10px;
  display:grid;place-items:center;flex:0 0 auto;
  background:rgba(255,255,255,0.05);
  border:1px solid var(--line-2);
  color:var(--txt-mid);
  transition: all .15s ease;
}
.cv2-banner-icon-btn:hover{ background:rgba(255,255,255,0.10); color:var(--txt-hi); transform:translateY(-1px); }
.cv2-banner-icon-btn.is-active{ background:rgba(255,255,255,0.14); color:var(--txt-hi); border-color:rgba(255,255,255,0.25); }
.cv2-join-cta{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;
  height:36px;padding:0 14px;
  margin-top:12px;
  border-radius:10px;
  font-size:13px;font-weight:700;letter-spacing:-0.1px;
  color:#0a0a0e;
  background: #fafafa;
  border: 0;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cv2-join-cta:hover{ transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,0.45); filter:brightness(1.05) }
.cv2-join-cta.joined{
  background: rgba(255,255,255,0.04);
  color: var(--txt-mid);
  box-shadow: none;
  border: 1px solid var(--line-2);
}
.cv2-join-cta.joined:hover{ background:rgba(255,255,255,0.07); color: var(--txt-hi); transform:none; }
.cv2-community-name{
  font-size:15px;font-weight:800;letter-spacing:-0.3px;
  color:var(--txt-hi);
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
  margin-bottom:6px;line-height:1.2;
}
.cv2-community-meta{
  display:flex;align-items:center;gap:8px;
  font-size:11px;color:var(--txt-mid);
}
.cv2-community-meta .dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,0.2)}
.cv2-online-dot{
  width:7px;height:7px;border-radius:50%;
  background:#22c55e;box-shadow:0 0 8px rgba(34,197,94,0.7);
  animation: cv2Breath 2.2s ease-in-out infinite;
}
@keyframes cv2Breath{
  0%,100%{box-shadow:0 0 6px rgba(34,197,94,0.5)}
  50%{box-shadow:0 0 12px rgba(34,197,94,0.9)}
}

/* scope-tabs moved to topbar; legacy class kept as no-op */
.cv2-scope-tabs{display:none}

/* Channels list */
.cv2-channels{
  flex:1; min-height:0;
  overflow-y:auto;
  padding: 8px 8px 16px;
  scrollbar-width: thin;
  border-right: 1px solid var(--line) !important;
}
.cv2-channels::-webkit-scrollbar{width:8px}
.cv2-channels::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.08);border-radius:8px}
.cv2-channels::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.16)}

.cv2-section-head{
  display:flex;align-items:center;justify-content:space-between;
  padding: 14px 10px 6px;
  font-size:10.5px;font-weight:700;letter-spacing:0.8px;text-transform:uppercase;
  color:var(--txt-lo);
}
.cv2-section-add{
  width:18px;height:18px;border-radius:5px;display:grid;place-items:center;
  color:var(--txt-lo);background:transparent;
  transition: all .15s ease;
}
.cv2-section-add:hover{ background:rgba(255,255,255,0.07); color:var(--txt-hi) }

.cv2-channel{
  position:relative;
  display:flex;align-items:center;gap:8px;
  padding: 8px 10px;
  margin: 2px 0;
  border-radius: 8px;
  color:var(--txt-mid);
  font-size:14px;font-weight:500;
  cursor:pointer;
  border:1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cv2-channel .cv2-channel-icon{
  flex:0 0 auto;
  width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;
  color:var(--txt-lo);
}
.cv2-channel .cv2-channel-icon svg{ width:16px; height:16px; }
.cv2-channel-header .cv2-channel-header-icon svg{ width:18px; height:18px; }
.cv2-channel:hover{
  background:rgba(255,255,255,0.04);
  color:var(--txt-hi);
}
.cv2-channel.active{
  background: color-mix(in srgb, var(--cv2-accent) 14%, transparent);
  color: var(--txt-hi);
  border-color: color-mix(in srgb, var(--cv2-accent) 30%, transparent);
}
.cv2-channel.active .cv2-channel-icon{ color: var(--cv2-accent); }
.cv2-channel.active::before{
  content:'';position:absolute;left:-8px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;
  background: var(--cv2-accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--cv2-accent) 60%, transparent);
}
.cv2-channel-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cv2-channel-unread{
  flex:0 0 auto;
  min-width:18px;height:18px;padding:0 6px;
  border-radius:9px;
  display:grid;place-items:center;
  background: var(--cv2-accent);
  color:#0a0a0e;font-size:10px;font-weight:800;
}
.cv2-channel.live .cv2-channel-icon{color:#ef4444}
.cv2-channel-live-pulse{
  width:7px;height:7px;border-radius:50%;background:#ef4444;
  box-shadow:0 0 8px rgba(239,68,68,0.7);
  animation: cv2Breath 1.6s ease-in-out infinite;
}

/* Sidebar footer (user identity strip) */
.cv2-user-strip{
  flex:0 0 auto;
  display:flex;align-items:center;gap:10px;
  padding: 10px 12px;
  border-top:1px solid var(--line);
  background: rgba(0,0,0,0.18);
  border-right: 1px solid var(--line) !important;
}
.cv2-user-avatar{
  width:32px;height:32px;border-radius:50%;
  display:grid;place-items:center;
  font-size:13px;font-weight:800;color:#fff;
  flex:0 0 auto;background-size:cover;background-position:center;
  position:relative;
}
.cv2-user-avatar::after{
  content:'';position:absolute;right:-1px;bottom:-1px;
  width:10px;height:10px;border-radius:50%;
  background:#22c55e;border:2px solid #0a0a0e;
}
.cv2-user-info{min-width:0;flex:1}
.cv2-user-name{font-size:13px;font-weight:700;color:var(--txt-hi);line-height:1.1}
.cv2-user-status{font-size:11px;color:var(--txt-lo);margin-top:2px}

/* ── Main chat area ── */
.cv2-main{
  display:flex;flex-direction:column;min-height:0;
  background: transparent;
}
.cv2-channel-header{
  flex:0 0 auto;
  display:flex;align-items:center;gap:14px;
  height: var(--header-h);
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.cv2-channel-header-icon{
  font-size:20px;font-weight:700;color:var(--txt-lo);
  display:inline-flex;align-items:center;justify-content:center;
}
.cv2-channel-header-name{
  font-size:15px;font-weight:800;color:var(--txt-hi);letter-spacing:-0.2px;
}
.cv2-channel-header-divider{
  width:1px;height:22px;background:var(--line);
}
.cv2-channel-header-topic{
  font-size:13px;color:var(--txt-mid);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  flex:1;min-width:0;
}
.cv2-channel-header-actions{display:flex;align-items:center;gap:4px}

/* Messages */
.cv2-messages{
  flex:1;min-height:0;overflow-y:auto;
  padding: 16px 0 8px;
  scrollbar-width: thin;
  scroll-behavior:smooth;
}
.cv2-messages::-webkit-scrollbar{width:10px}
.cv2-messages::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.08);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
.cv2-messages::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.18);background-clip:padding-box;border:2px solid transparent}

.cv2-day-divider{
  display:flex;align-items:center;gap:12px;
  padding: 14px 24px 6px;
  font-size:11px;font-weight:700;color:var(--txt-lo);
  letter-spacing:0.8px;text-transform:uppercase;
}
.cv2-day-divider::before, .cv2-day-divider::after{
  content:'';flex:1;height:1px;background:var(--line);
}

/* Minimal welcome — single line, no card */
.cv2-welcome-mini{
  text-align:center;
  padding: 24px 24px 14px;
  font-size: 13px;
  color: var(--txt-lo);
  letter-spacing: 0.1px;
}
.cv2-welcome-mini b{ color: var(--txt-mid); font-weight: 700; }

/* Theme button (left-most in topbar) */
.cv2-theme-btn{ padding: 0 !important; }
.cv2-theme-btn span{ display:inline-block }
.cv2-welcome-title{
  font-size:22px;font-weight:900;letter-spacing:-0.5px;color:var(--txt-hi);
  margin-bottom:6px;
}
.cv2-welcome-sub{
  font-size:13px;color:var(--txt-mid);line-height:1.6;max-width:560px;
}

/* Message row */
.cv2-msg{
  position:relative;
  display:flex;gap:14px;
  padding: 4px 24px;
  transition: background .12s ease;
}
.cv2-msg:hover{ background: rgba(255,255,255,0.025); }
.cv2-msg.first{padding-top:14px;margin-top:2px}
.cv2-msg.first .cv2-msg-avatar{visibility:visible}
.cv2-msg .cv2-msg-avatar{visibility:hidden}
.cv2-msg.first .cv2-msg-meta{display:flex}
.cv2-msg .cv2-msg-meta{display:none}
.cv2-msg.first ~ .cv2-msg .cv2-msg-time-hover{display:block}

.cv2-msg-avatar{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background-size:cover;background-position:center;
  color:#fff;font-weight:800;font-size:14px;
  flex:0 0 auto;
  cursor:pointer;
  transition: transform .15s ease;
}
.cv2-msg-avatar:hover{ transform:translateY(-1px) scale(1.04) }
.cv2-msg-time-hover{
  display:none;
  position:absolute; left:0; width:62px; text-align:right;padding-right:6px;
  font-size:10px;color:var(--txt-lo);
  margin-top:3px;
}
.cv2-msg:hover .cv2-msg-time-hover{display:block}

.cv2-msg-body{flex:1;min-width:0}
.cv2-msg-meta{
  align-items:baseline;gap:8px;margin-bottom:2px;
}
.cv2-msg-author{
  font-size:14px;font-weight:700;color:var(--txt-hi);letter-spacing:-0.1px;
  cursor:pointer;
}
.cv2-msg-author:hover{ text-decoration:underline; text-decoration-color:rgba(255,255,255,0.3); }
.cv2-role-pill{
  display:inline-flex;align-items:center;gap:4px;
  font-size:9.5px;font-weight:800;letter-spacing:0.5px;
  padding: 2px 7px; border-radius:999px;
  background: rgba(255,255,255,0.08);
  color: var(--txt-hi);
  text-transform:uppercase;
}
.cv2-role-pill.admin{ background:rgba(255,255,255,0.06); color: var(--txt-mid) }
.cv2-msg-time{font-size:11px;color:var(--txt-lo)}
.cv2-msg-text{
  font-size:14.5px;line-height:1.55;color:var(--txt-mid);
  word-wrap:break-word;overflow-wrap:break-word;
  white-space: pre-wrap;
}
.cv2-msg-text .mention{
  background:rgba(124,92,252,0.18); color:#c4b5fd;
  padding: 1px 6px; border-radius:6px; font-weight:600;
}
.cv2-msg-img{
  max-width:380px;max-height:280px;
  border-radius:12px;margin-top:6px;
  border:1px solid var(--line-2);
  display:block;
  cursor:zoom-in;
  transition: transform .2s ease;
}
.cv2-msg-img:hover{transform:scale(1.01)}

.cv2-msg-reactions{
  display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;
}
.cv2-reaction{
  display:inline-flex;align-items:center;gap:5px;
  padding: 3px 9px;
  border-radius:999px;
  background:rgba(255,255,255,0.05);
  border:1px solid var(--line);
  font-size:12px;font-weight:600;color:var(--txt-mid);
  cursor:pointer;
  transition: all .12s ease;
}
.cv2-reaction:hover{ background:rgba(255,255,255,0.08); border-color:var(--line-2);transform:translateY(-1px) }
.cv2-reaction.mine{ background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.25); color: var(--txt-hi) }
.cv2-reaction-add{
  display:inline-flex;align-items:center;gap:3px;
  padding: 3px 8px;border-radius:999px;
  background:rgba(255,255,255,0.03);
  border:1px solid var(--line);
  color:var(--txt-lo);
  font-size:13px;
  cursor:pointer;
}
.cv2-reaction-add:hover{ background:rgba(255,255,255,0.07); color:var(--txt-hi) }

/* Hover actions */
.cv2-msg-hover{
  position:absolute;
  top: -16px; right: 24px;
  display:none;
  background: rgba(20,20,26,0.96);
  border:1px solid var(--line-2);
  border-radius:10px;
  padding:3px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2;
}
.cv2-msg:hover .cv2-msg-hover{display:flex;gap:1px}
.cv2-msg.first .cv2-msg-hover{top: -4px}
.cv2-msg-hover button{
  width:30px;height:30px;border-radius:7px;
  display:grid;place-items:center;color:var(--txt-mid);
  background:transparent;
  transition: all .12s ease;
}
.cv2-msg-hover button:hover{ background:rgba(255,255,255,0.08); color:var(--txt-hi) }

.cv2-msg.pinned{
  background: linear-gradient(90deg, rgba(255,255,255,0.04), transparent 60%);
  box-shadow: inset 3px 0 0 rgba(255,255,255,0.5);
}
.cv2-msg.pinned::before{
  content:'📌 Pinned';
  position:absolute;left:78px;top:-2px;
  font-size:10px;font-weight:700;color: var(--txt-mid);
  letter-spacing:0.5px;text-transform:uppercase;
}

/* Typing indicator */
.cv2-typing{
  flex:0 0 auto;
  padding: 4px 24px 6px;
  font-size:12px;color:var(--txt-lo);
  min-height:22px;
  display:flex;align-items:center;gap:8px;
}
.cv2-typing-dots{display:inline-flex;gap:3px}
.cv2-typing-dots span{
  width:5px;height:5px;border-radius:50%;background:var(--txt-mid);
  animation: cv2TypeBounce 1.2s infinite;
}
.cv2-typing-dots span:nth-child(2){animation-delay:.15s}
.cv2-typing-dots span:nth-child(3){animation-delay:.3s}
@keyframes cv2TypeBounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-3px);opacity:1}}

/* Composer */
.cv2-composer{
  flex:0 0 auto;
  margin: 4px 22px 18px;
  position:relative;
  background: rgba(255,255,255,0.03);
  border:1px solid var(--line-2);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.cv2-composer:focus-within{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.cv2-composer.drag-over{
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
}
.cv2-composer-row{
  display:flex;align-items:flex-end;gap:6px;
  padding: 8px 8px 8px 10px;
}
.cv2-composer-tool{
  width:36px;height:36px;border-radius:10px;
  display:grid;place-items:center;color:var(--txt-mid);
  background:transparent;flex:0 0 auto;
  transition: all .15s ease;
}
.cv2-composer-tool:hover{ background:rgba(255,255,255,0.06); color:var(--txt-hi); transform: translateY(-1px); }
.cv2-composer-input{
  flex:1;
  background:transparent;border:0;outline:none;resize:none;
  color:var(--txt-hi);
  font-size:14.5px;line-height:1.5;
  padding: 8px 4px;
  max-height: 200px;
  min-height: 22px;
  font-family: inherit;
}
.cv2-composer-input::placeholder{color:var(--txt-lo)}
.cv2-composer-send{
  width:36px;height:36px;border-radius:10px;
  display:grid;place-items:center;color:#0a0a0e;
  background: #fafafa;
  flex:0 0 auto;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  transition: all .15s ease;
}
.cv2-composer-send:hover{ transform:translateY(-1px) scale(1.04); background: #fff; filter:brightness(1.05); }
.cv2-composer-send:disabled{ background:rgba(255,255,255,0.08); color:var(--txt-lo); box-shadow:none; cursor:not-allowed; transform:none; }

.cv2-composer-hint{
  padding: 0 12px 8px;
  font-size:11px;color:var(--txt-lo);
  display:flex;align-items:center;gap:6px;
}
kbd{
  display:inline-block;padding: 1px 5px;border-radius:4px;
  background:rgba(255,255,255,0.08);
  border:1px solid var(--line-2);border-bottom-width:2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:10px;color:var(--txt-mid);
}

.cv2-mention-picker{
  position:absolute; bottom: 100%; left:8px; right:8px; margin-bottom:6px;
  background: rgba(16,16,22,0.98);
  border:1px solid var(--line-2);
  border-radius:12px;
  padding:4px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.6);
  display:none;
  z-index: 5;
}
.cv2-mention-picker.open{display:block}
.cv2-mention-item{
  display:flex;align-items:center;gap:10px;
  padding: 6px 10px;border-radius:8px;
  cursor:pointer;
}
.cv2-mention-item:hover, .cv2-mention-item.active{ background: rgba(255,255,255,0.08) }
.cv2-mention-avatar{
  width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;
  font-size:11px;font-weight:800;color:#fff;
  background-size:cover;background-position:center;
}
.cv2-mention-name{font-size:13px;font-weight:700;color:var(--txt-hi)}
.cv2-mention-handle{font-size:12px;color:var(--txt-lo);margin-left:auto}

/* ── Members rail (right, collapsible) ── */
.cv2-members-rail{
  display:flex;flex-direction:column;min-height:0;
  border-left: 1px solid var(--line);
  background: transparent;
  overflow-y:auto;overflow-x:hidden;
  padding: 0;
  width: 0;
  scrollbar-width: thin;
  transition: width .25s ease, padding .25s ease;
}
.cv2-shell.show-members .cv2-members-rail{
  width: var(--rail-right);
  padding: 14px 8px;
}
.cv2-icon-btn.is-active{
  background: rgba(255,255,255,0.10);
  color: var(--txt-hi);
  border-color: var(--line-2);
}
.cv2-members-rail::-webkit-scrollbar{width:8px}
.cv2-members-rail::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.08);border-radius:8px}

.cv2-member-row{
  display:flex;align-items:center;gap:10px;
  padding: 6px 10px;border-radius:8px;
  cursor:pointer;
  transition: background .12s ease;
}
.cv2-member-row:hover{ background:rgba(255,255,255,0.04) }
.cv2-member-row.offline .cv2-member-av,
.cv2-member-row.offline .cv2-member-name{opacity:0.45}
.cv2-member-av{
  width:32px;height:32px;border-radius:50%;
  display:grid;place-items:center;
  background-size:cover;background-position:center;
  color:#fff;font-size:12px;font-weight:800;
  flex:0 0 auto;position:relative;
}
.cv2-member-av .status{
  position:absolute;right:-1px;bottom:-1px;
  width:10px;height:10px;border-radius:50%;
  border:2px solid #0a0a0e;
}
.cv2-member-av .status.online{ background:#22c55e }
.cv2-member-av .status.idle{ background:#fbbf24 }
.cv2-member-av .status.offline{ background:#6b7280 }
.cv2-member-info{min-width:0;flex:1}
.cv2-member-name{
  font-size:13px;font-weight:600;color:var(--txt-hi);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  display:flex;align-items:center;gap:6px;
}
.cv2-member-name .crown{color:#fbbf24;display:inline-flex}
.cv2-member-role{
  font-size:11px;color:var(--txt-lo);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* Non-chat scope panels (Wins / Members / About) — modern grids */
.cv2-panel{
  flex:1;min-height:0;overflow-y:auto;
  padding: 22px 28px 28px;
  scrollbar-width: thin;
}
.cv2-panel::-webkit-scrollbar{width:10px}
.cv2-panel::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.08);border-radius:8px}

.cv2-panel-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:18px;
}
.cv2-panel-title{font-size:22px;font-weight:900;letter-spacing:-0.5px;color:var(--txt-hi)}
.cv2-panel-sub{font-size:13px;color:var(--txt-mid);margin-top:4px}

/* Mobile / narrow */
@media(max-width: 1100px){
  .cv2-shell{ --rail: 240px; --rail-right: 220px; }
}
@media(max-width: 900px){
  .cv2-shell.show-members .cv2-members-rail{
    position:absolute; right:0; top: var(--header-h);
    bottom:0; width: var(--rail-right); z-index:6;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  .cv2-shell.show-members .cv2-body{
    grid-template-columns: var(--rail) 1fr 0;
  }
  .cv2-topbar-center .cv2-tabs{ background: transparent; border: 0; padding: 0 }
}
@media(max-width: 720px){
  .cv2-shell{ border-radius: 12px; }
  .cv2-body{ grid-template-columns: 0 1fr 0 !important; }
  .cv2-sidebar{
    position:absolute; left:0; top: var(--header-h); bottom:0;
    width: var(--rail); z-index:7;
    transform: translateX(-100%);
    transition: transform .25s ease;
    background: rgba(8,8,12,0.98);
  }
  .cv2-shell.mobile-show-rail .cv2-sidebar{ transform:none }
  .cv2-search-box{display:none}
  .cv2-msg{padding-left:14px;padding-right:14px}
  .cv2-topbar-center{position:static;transform:none;flex:1;justify-content:center;overflow:hidden}
  .cv2-tab{padding: 0 10px;font-size:12px}
  .cv2-tab span:not(.cv2-tab-count){display:none}
}

/* "More" menu (3-dots) — full dropdown */
.cv2-menu-pop{
  position: fixed;
  z-index: 200;
  width: 280px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(16,16,22,0.98);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  backdrop-filter: blur(24px);
  animation: cv2FadeIn .14s ease both;
}
.cv2-menu-section{
  padding: 8px 10px 4px;
  font-size: 10.5px;font-weight: 700;letter-spacing: 0.7px;text-transform: uppercase;
  color: var(--txt-lo);
}
.cv2-menu-item{
  display: flex;align-items: center;gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;font-weight: 500;
  color: var(--txt-mid);
  background: transparent;border: 0;text-align: left;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.cv2-menu-item:hover{ background: rgba(255,255,255,0.07); color: var(--txt-hi); }
.cv2-menu-item svg{ color: var(--txt-lo); flex: 0 0 auto; width: 15px; height: 15px; }
.cv2-menu-item:hover svg{ color: var(--txt-hi); }
.cv2-menu-item.danger{ color: #ff7a7a }
.cv2-menu-item.danger svg{ color: #ff7a7a }
.cv2-menu-item.danger:hover{ background: rgba(239,68,68,0.10); color: #ff8e8e; }
.cv2-menu-item .shortcut{ margin-left:auto; font-size: 10.5px; color: var(--txt-lo); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cv2-menu-item .toggle{
  margin-left:auto; width:30px; height:18px; border-radius:999px;
  background: rgba(255,255,255,0.10); position:relative; flex:0 0 auto;
}
.cv2-menu-item .toggle::after{
  content:''; position:absolute; top:2px; left:2px; width:14px;height:14px;border-radius:50%;background:#fafafa;
  transition: transform .15s ease;
}
.cv2-menu-item .toggle.on{ background: #22c55e; box-shadow: 0 0 12px rgba(34,197,94,0.5); }
.cv2-menu-item .toggle.on::after{ transform: translateX(12px); background: #fff; }
.cv2-menu-sep{ height: 1px; background: var(--line); margin: 6px 4px; }

/* Frosted, transparent toast — no fill, white outline only */
.v8-toast{
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  backdrop-filter: blur(20px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35) !important;
  color: #fff !important;
}
.v8-toast.v8-toast-ok,
.v8-toast.v8-toast-info{ border-color: rgba(255,255,255,0.55) !important; }

/* Theme picker dropdown (v26 — anchored to topbar theme button) */
.cv2-theme-pop{
  position: fixed; z-index: 220;
  width: 360px; max-height: 60vh;
  padding: 14px;
  border-radius: 14px;
  background: rgba(8,10,14,0.92);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  backdrop-filter: blur(26px) saturate(130%);
  overflow-y: auto;
  animation: cv2FadeIn .14s ease both;
}
.cv2-theme-pop-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom: 10px;
}
.cv2-theme-pop-title{
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--txt-lo);
}
.cv2-theme-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.cv2-theme-tile{
  position:relative;
  aspect-ratio: 16/10;
  border-radius: 10px;
  border: none !important;
  background-size: cover; background-position: center;
  cursor: pointer;
  overflow:hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cv2-theme-tile:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.5); }
.cv2-theme-tile.active{ box-shadow: 0 0 0 2px rgba(255,255,255,0.18), 0 10px 24px rgba(0,0,0,0.5); }
.cv2-theme-tile .label{
  position:absolute; left:6px; bottom:6px; right:6px;
  font-size: 10.5px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  display:flex;align-items:center;justify-content:space-between;
}
.cv2-theme-tile.active::after{
  content:'✓';position:absolute;top:6px;right:8px;
  width:18px;height:18px;border-radius:50%;
  background:#fff;color:#0a0a0e;font-size:11px;font-weight:900;
  display:grid;place-items:center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Channel icon — minimal, no card bg */
.cv2-channel .cv2-channel-icon{
  width: 20px; height: 20px;
  background: transparent;
  border: 0;
  color: var(--txt-lo);
}
.cv2-channel .cv2-channel-icon svg{ width: 18px; height: 18px; }
.cv2-channel:hover .cv2-channel-icon{ color: var(--txt-mid); }
.cv2-channel.active .cv2-channel-icon{ color: var(--cv2-accent); }
.cv2-channel.voice .cv2-channel-icon{ color: #4ade80; }

/* Owner: + Add channel inline button (replaces toast) */
.cv2-section-add{ cursor:pointer; }

/* ────────────────────────────────────────────────────────────
   OWNER SERVER SETTINGS DRAWER + CHANNEL CRUD + ONBOARDING
   ──────────────────────────────────────────────────────────── */

.cv2-drawer-backdrop{
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  animation: cv2FadeIn .2s ease both;
}
.cv2-drawer{
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(960px, 95vw);
  z-index: 301;
  background: rgba(10,12,16,0.92);
  border-left: 1px solid var(--line-2);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
  display:grid; grid-template-columns: 240px 1fr;
  animation: cv2DrawerIn .26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  backdrop-filter: blur(28px) saturate(140%);
}
@keyframes cv2DrawerIn{ from{ transform: translateX(40px); opacity:0 } to{ transform:none; opacity:1 } }
.cv2-drawer-side{
  display:flex;flex-direction:column;min-height:0;
  border-right: 1px solid var(--line);
  padding: 18px 10px;
  overflow-y:auto;
}
.cv2-drawer-side h3{
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase;
  color: var(--txt-lo); padding: 8px 10px 4px;
}
.cv2-drawer-side-item{
  display:flex;align-items:center;gap:10px;
  height: 36px;padding: 0 12px;
  border-radius: 8px;
  font-size: 13.5px;font-weight: 600;
  color: var(--txt-mid);
  background:transparent;border:0;text-align:left;width:100%;
  cursor:pointer;
  transition: background .12s ease, color .12s ease;
}
.cv2-drawer-side-item svg{ color: var(--txt-lo); width:15px;height:15px; flex:0 0 auto; }
.cv2-drawer-side-item:hover{ background: rgba(255,255,255,0.05); color: var(--txt-hi); }
.cv2-drawer-side-item:hover svg{ color: var(--txt-hi); }
.cv2-drawer-side-item.active{ background: rgba(255,255,255,0.08); color: var(--txt-hi); }
.cv2-drawer-side-item.active svg{ color: var(--txt-hi); }
.cv2-drawer-side-item.danger{ color: #ff7a7a; }
.cv2-drawer-side-item.danger svg{ color:#ff7a7a; }

.cv2-drawer-main{
  display:flex;flex-direction:column;min-height:0;
  overflow:hidden;
}
.cv2-drawer-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.cv2-drawer-title{ font-size: 20px; font-weight: 900; letter-spacing:-0.4px; color: var(--txt-hi); }
.cv2-drawer-sub{ font-size: 13px; color: var(--txt-mid); margin-top: 2px; }
.cv2-drawer-close{
  width: 32px; height: 32px; border-radius: 8px;
  display:grid;place-items:center; color: var(--txt-mid);
  background: transparent; border:1px solid transparent;
  transition: all .15s ease;
}
.cv2-drawer-close:hover{ background: rgba(255,255,255,0.06); color: var(--txt-hi); border-color: var(--line); }
.cv2-drawer-body{
  flex:1; min-height:0; overflow-y:auto;
  padding: 18px 22px 22px;
}

/* Form basics */
.cv2-field{ display:block; margin-bottom: 14px; }
.cv2-label{
  display:block; font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--txt-lo); margin-bottom: 6px;
}
.cv2-input, .cv2-textarea, .cv2-select{
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px; color: var(--txt-hi);
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.cv2-input:focus, .cv2-textarea:focus, .cv2-select:focus{ border-color: rgba(255,255,255,0.30); background: rgba(255,255,255,0.06); }
.cv2-textarea{ resize: vertical; min-height: 80px; }

.cv2-checkbox-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.cv2-checkbox-row:first-of-type{ border-top: 0 }
.cv2-checkbox-meta{flex:1;min-width:0}
.cv2-checkbox-meta b{ font-size:13.5px;font-weight:700;color:var(--txt-hi);display:block;margin-bottom:2px }
.cv2-checkbox-meta span{ font-size:12px;color:var(--txt-lo); }

.cv2-btn{
  display:inline-flex;align-items:center;gap:6px;
  height: 36px; padding: 0 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.06);
  color: var(--txt-hi);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all .15s ease;
}
.cv2-btn:hover{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.25); }
.cv2-btn.primary{ background: #fafafa; color: #0a0a0e; border-color: transparent; }
.cv2-btn.primary:hover{ filter: brightness(1.08); }
.cv2-btn.danger{ background: rgba(239,68,68,0.12); color: #ff8e8e; border-color: rgba(239,68,68,0.3); }
.cv2-btn.danger:hover{ background: rgba(239,68,68,0.2); }

.cv2-row-card{
  display:flex;align-items:center;gap:12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.02);
  transition: background .12s ease;
}
.cv2-row-card:hover{ background: rgba(255,255,255,0.04); }
.cv2-row-icon{
  width: 32px; height: 32px; border-radius: 8px;
  display:grid;place-items:center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-2);
  color: var(--txt-mid); flex:0 0 auto;
}
.cv2-row-icon svg{ width:16px;height:16px; }
.cv2-row-body{flex:1;min-width:0}
.cv2-row-name{ font-size: 14px; font-weight: 700; color: var(--txt-hi); }
.cv2-row-meta{ font-size: 12px; color: var(--txt-lo); margin-top: 2px; }
.cv2-row-actions{display:flex;gap:6px}

.cv2-section-add-mini{
  display:inline-flex;align-items:center;gap:6px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.18);
  color: var(--txt-mid);
  font-size: 12px;font-weight:600;
  cursor:pointer;
  transition: all .15s ease;
}
.cv2-section-add-mini:hover{ background:rgba(255,255,255,0.08); color: var(--txt-hi); border-style:solid; }

/* Modal — channel create/edit */
.cv2-modal-backdrop{
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display:grid;place-items:center;
  padding: 20px;
  animation: cv2FadeIn .18s ease both;
}
.cv2-modal{
  width: 100%; max-width: 520px;
  background: rgba(10,12,16,0.88);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(34px) saturate(140%);
  padding: 26px 26px 22px;
  animation: cv2ModalIn .22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  position: relative;
}
.cv2-modal::before{
  content:''; position:absolute; inset:0; pointer-events:none; border-radius:20px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,0.06), transparent 60%);
}
@keyframes cv2ModalIn{ from{ transform: scale(.96); opacity:0 } to{ transform:none; opacity:1 } }
.cv2-modal-title{ font-size: 20px; font-weight: 900; letter-spacing:-0.4px; color: var(--txt-hi); margin-bottom: 4px; }
.cv2-modal-sub{ font-size: 13px; color: var(--txt-mid); margin-bottom: 20px; line-height: 1.55; }
.cv2-modal-actions{ display:flex; gap: 8px; justify-content: flex-end; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); }
.cv2-modal .cv2-field{ margin-bottom: 18px; }

.cv2-icon-picker{
  display:grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  margin-top: 4px;
}
.cv2-icon-pick{
  aspect-ratio: 1/1; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border:1px solid var(--line);
  display:grid;place-items:center;
  color: var(--txt-mid);
  cursor:pointer; transition: all .12s ease;
}
.cv2-icon-pick:hover{ background:rgba(255,255,255,0.10); color:var(--txt-hi); }
.cv2-icon-pick.active{ background: rgba(255,255,255,0.16); color: var(--txt-hi); border-color: rgba(255,255,255,0.4); }
.cv2-icon-pick svg{ width:16px;height:16px; }

/* Onboarding overlay */
.cv2-onb-backdrop{
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(14px);
  display:grid;place-items:center;
  padding: 20px;
  animation: cv2FadeIn .2s ease both;
}
.cv2-onb{
  width: 100%; max-width: 560px;
  background: rgba(14,16,20,0.96);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 32px;
  position:relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  animation: cv2ModalIn .26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cv2-onb-banner{
  height: 110px; border-radius: 14px; margin: -8px -8px 18px;
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
}
.cv2-onb-banner::after{ content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent, rgba(14,16,20,0.85)); }
.cv2-onb-step-dots{
  display:flex; gap: 6px; justify-content: center; margin-top: 14px;
}
.cv2-onb-step-dots span{
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.18);
  transition: all .2s ease;
}
.cv2-onb-step-dots span.active{ background: #fafafa; width: 24px; border-radius: 999px; }
.cv2-onb-title{ font-size: 24px; font-weight: 900; letter-spacing:-0.5px; color: var(--txt-hi); margin-bottom: 6px; }
.cv2-onb-sub{ font-size: 14px; color: var(--txt-mid); line-height: 1.6; margin-bottom: 18px; }
.cv2-onb-actions{ display:flex; gap: 8px; justify-content:space-between; align-items:center; margin-top: 22px; }
.cv2-onb-skip{ font-size: 12px; color: var(--txt-lo); background:transparent;border:0;cursor:pointer; }
.cv2-onb-skip:hover{ color: var(--txt-mid); }
.cv2-onb-pick{
  display:flex;align-items:center;gap:10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  cursor:pointer;
  transition: all .15s ease;
}
.cv2-onb-pick:hover{ background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.2); }
.cv2-onb-pick.on{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.3); }
.cv2-onb-pick .check{ width:18px;height:18px;border-radius:6px;border:1.5px solid rgba(255,255,255,0.3); display:grid;place-items:center; }
.cv2-onb-pick.on .check{ background:#22c55e; border-color:#22c55e; color:#0a0a0e; }
.cv2-onb-pick .check svg{ width:12px;height:12px;display:none; }
.cv2-onb-pick.on .check svg{ display:block; }

@media(max-width: 900px){
  .cv2-drawer{ grid-template-columns: 1fr; width: 100%; }
  .cv2-drawer-side{ display: none; }
  .cv2-drawer.show-mobile-side .cv2-drawer-side{ display: flex; position: absolute; inset: 0; z-index: 5; background: rgba(10,12,16,0.98); }
}

/* Color wheel button + popover */
.cv2-color-btn{position:relative}
.cv2-color-swatch{
  width:20px;height:20px;border-radius:50%;
  display:inline-block;
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  border: 2px solid rgba(255,255,255,0.65);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.4);
}
.cv2-color-pop{
  position: fixed; z-index: 100;
  width: 220px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(16,16,22,0.96);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  animation: cv2FadeIn .15s ease both;
}
.cv2-color-pop-title{
  font-size:11px;font-weight:700;letter-spacing:0.6px;text-transform:uppercase;
  color: var(--txt-lo);margin-bottom: 10px;
}
.cv2-color-grid{
  display:grid;grid-template-columns: repeat(6, 1fr); gap:6px;
}
.cv2-color-dot{
  width: 26px;height: 26px;border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  cursor:pointer;transition: transform .12s ease, border-color .12s ease;
  padding: 0;
}
.cv2-color-dot:hover{ transform: scale(1.12); border-color: rgba(255,255,255,0.4); }
.cv2-color-dot.active{
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}
.cv2-color-custom{
  display:flex;align-items:center;justify-content:space-between;
  margin-top: 10px;padding-top: 10px;border-top: 1px solid var(--line);
  font-size: 11px;color: var(--txt-mid);
}
.cv2-color-custom input[type="color"]{
  width: 28px;height: 22px;border:1px solid var(--line-2);border-radius:6px;
  background:transparent;padding:0;cursor:pointer;
}

/* Search highlight in messages */
.cv2-search-hit{ background: rgba(255,212,79,0.28); color: #fff; padding: 0 2px; border-radius:3px; box-shadow: 0 0 0 1px rgba(255,212,79,0.5) inset; }
.cv2-msg.cv2-hidden{display:none}
.cv2-search-banner{
  margin: 8px 22px 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,212,79,0.10);
  border: 1px solid rgba(255,212,79,0.25);
  font-size: 12px; color: var(--txt-mid);
  display:flex;align-items:center;gap:8px;
}
.cv2-search-banner b{color:#ffd44f}
.cv2-mobile-menu{display:none}
@media(max-width:720px){
  .cv2-mobile-menu{display:grid}
}
