/* ==========================================================================
   SeeQuick app styles
   ========================================================================== */

:root {
	--bg: #0f0f0f;
	--surface: #1c1c1c;
	--surface-2: #272727;
	--surface-3: #3a3a3a;
	--text: #f1f1f1;
	--muted: #aaaaaa;
	--border: #303030;
	--brand: #7c5cff;
	--brand-2: #22d3ee;
	--brand-soft: rgba(124, 92, 255, .16);
	--danger: #ff5c5c;
	--ok: #34d399;
	--overlay: rgba(0, 0, 0, .6);
	--shadow: 0 8px 30px rgba(0, 0, 0, .45);
	--topbar-h: 56px;
	--side-w: 240px;
	--mini-w: 72px;
	--radius: 12px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color-scheme: dark;
}
:root[data-theme="light"] {
	--bg: #ffffff;
	--surface: #f2f2f2;
	--surface-2: #e5e5e5;
	--surface-3: #d0d0d0;
	--text: #0f0f0f;
	--muted: #606060;
	--border: #e5e5e5;
	--brand-soft: rgba(124, 92, 255, .12);
	--overlay: rgba(0, 0, 0, .4);
	--shadow: 0 8px 30px rgba(0, 0, 0, .12);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 14px/1.45 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
[hidden] { display: none !important; }
.i { width: 24px; height: 24px; flex: none; fill: currentColor; }
.cv-muted { color: var(--muted); }
.cv-small { font-size: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.cv-topbar {
	position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 0 16px; background: var(--bg);
}
.admin-bar .cv-topbar { top: 32px; }
.cv-topbar-left, .cv-topbar-right { display: flex; align-items: center; gap: 8px; }
.cv-topbar-left { min-width: 200px; }
.cv-icon-btn {
	width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; position: relative;
}
.cv-icon-btn:hover { background: var(--surface-2); }
.cv-logo { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.cv-logo-mark {
	width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.cv-logo-mark .i { width: 16px; height: 16px; }
.cv-logo-text b { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.cv-searchbar { flex: 0 1 640px; display: flex; align-items: center; }
.cv-searchbar input {
	flex: 1; height: 40px; min-width: 0; padding: 0 16px; background: var(--bg);
	border: 1px solid var(--border); border-right: 0; border-radius: 40px 0 0 40px; outline: none;
}
.cv-searchbar input:focus { border-color: var(--brand); }
.cv-search-submit {
	width: 64px; height: 40px; display: grid; place-items: center; background: var(--surface);
	border: 1px solid var(--border); border-radius: 0 40px 40px 0;
}
.cv-search-back, .cv-search-open { display: none; }

.cv-create-btn {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 18px;
	background: var(--surface-2); font-weight: 600;
}
.cv-create-btn:hover { background: var(--surface-3); }
.cv-signin-btn {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 8px; border-radius: 18px;
	border: 1px solid var(--border); color: #3ea6ff; font-weight: 600;
}
:root[data-theme="light"] .cv-signin-btn { color: #065fd4; }
.cv-signin-btn:hover { background: rgba(62, 166, 255, .12); }
.cv-avatar-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cv-bell-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 16px; padding: 0 4px; border-radius: 8px;
	background: #cc0000; color: #fff; font-size: 11px; line-height: 16px; font-weight: 700; text-align: center;
}

/* popovers */
.cv-pop-wrap { position: relative; }
.cv-pop {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 260px; max-width: calc(100vw - 24px);
	background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 8px 0; border: 1px solid var(--border);
}
.cv-notif-pop { width: 420px; max-height: 70vh; overflow: auto; padding: 0; }
.cv-account-head { display: flex; gap: 12px; padding: 12px 16px 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.cv-account-head img { width: 40px; height: 40px; border-radius: 50%; }
.cv-account-head div { display: flex; flex-direction: column; }
.cv-account-head span { color: var(--muted); }
.cv-account-head a { color: #3ea6ff; margin-top: 6px; }
.cv-menu-item {
	display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 16px; text-align: left; white-space: nowrap;
}
.cv-menu-item:hover { background: var(--surface-2); }
.cv-menu-item.cv-danger { color: var(--danger); }

/* ---------- Sidebar ---------- */
.cv-sidebar {
	position: fixed; top: var(--topbar-h); bottom: 0; left: 0; width: var(--side-w); z-index: 40;
	overflow-y: auto; padding: 8px 12px 24px; background: var(--bg); scrollbar-width: thin;
}
.admin-bar .cv-sidebar { top: calc(var(--topbar-h) + 32px); }
.cv-sidebar-head { display: none; height: var(--topbar-h); align-items: center; gap: 8px; margin: -8px -12px 8px; padding: 0 16px; }
.cv-nav-item {
	display: flex; align-items: center; gap: 22px; height: 40px; padding: 0 12px; border-radius: 10px; white-space: nowrap;
}
.cv-nav-item:hover { background: var(--surface-2); }
.cv-nav-item.is-active { background: var(--surface-2); font-weight: 600; }
.cv-nav-mini-only { display: none; }
.cv-nav-section { padding: 6px 12px; font-weight: 600; font-size: 16px; }
.cv-nav-subs a { display: flex; align-items: center; gap: 18px; height: 40px; padding: 0 12px; border-radius: 10px; }
.cv-nav-subs a:hover { background: var(--surface-2); }
.cv-nav-subs img { width: 26px; height: 26px; border-radius: 50%; }
.cv-sidebar-foot { padding: 8px 12px; color: var(--muted); font-size: 12px; }
.cv-sidebar-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.cv-scrim { display: none; }

.cv-main { padding: calc(var(--topbar-h) + 8px) 24px 40px calc(var(--side-w) + 24px); min-height: 100vh; }
.admin-bar .cv-main { padding-top: calc(var(--topbar-h) + 40px); }

/* mini sidebar */
html.cv-mini .cv-sidebar { width: var(--mini-w); padding: 4px; }
html.cv-mini .cv-nav-item { flex-direction: column; justify-content: center; gap: 4px; height: 74px; font-size: 10px; padding: 0; }
html.cv-mini .cv-nav-full, html.cv-mini .cv-nav hr { display: none; }
html.cv-mini .cv-nav-mini-only { display: flex; }
html.cv-mini .cv-main { padding-left: calc(var(--mini-w) + 24px); }

/* watch page and verticals: sidebar slides over the content */
.cv-view-watch .cv-sidebar, .cv-view-verticals .cv-sidebar { transform: translateX(-100%); transition: transform .2s ease; width: var(--side-w); z-index: 70; top: 0; padding-top: 0; box-shadow: var(--shadow); }
.cv-view-watch .cv-sidebar-head, .cv-view-verticals .cv-sidebar-head { display: flex; }
.cv-view-watch .cv-main { padding-left: 24px; }
.cv-view-verticals .cv-main { padding-left: 24px; }
body.cv-drawer-open .cv-sidebar { transform: none; }
body.cv-drawer-open .cv-scrim { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 65; }
html.cv-mini .cv-view-watch .cv-sidebar .cv-nav-item, html.cv-mini .cv-view-verticals .cv-sidebar .cv-nav-item { flex-direction: row; height: 40px; font-size: 14px; justify-content: flex-start; gap: 22px; padding: 0 12px; }
html.cv-mini .cv-view-watch .cv-nav-full, html.cv-mini .cv-view-verticals .cv-nav-full { display: block; }

/* ---------- Buttons ---------- */
.cv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px;
	border-radius: 18px; background: var(--surface-2); font-weight: 600; white-space: nowrap;
}
.cv-btn .i { width: 20px; height: 20px; }
.cv-btn:hover { background: var(--surface-3); }
.cv-btn-primary { background: var(--brand); color: #fff; }
.cv-btn-primary:hover { background: #6a48ff; }
.cv-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.cv-btn-ghost { background: transparent; }
.cv-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.cv-btn-lg { height: 44px; padding: 0 22px; border-radius: 22px; font-size: 15px; }
.cv-btn-danger { background: var(--danger); color: #fff; }
.cv-link-btn { color: #3ea6ff; font-weight: 600; font-size: 13px; }
:root[data-theme="light"] .cv-link-btn { color: #065fd4; }
.cv-sub-btn { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--text); color: var(--bg); font-weight: 600; white-space: nowrap; }
.cv-sub-btn.is-subscribed { background: var(--surface-2); color: var(--text); }

/* ---------- Chips ---------- */
.cv-chips {
	display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none;
	position: sticky; top: var(--topbar-h); z-index: 20; background: var(--bg);
}
.admin-bar .cv-chips { top: calc(var(--topbar-h) + 32px); }
.cv-chips::-webkit-scrollbar { display: none; }
.cv-chips-inline { position: static; padding: 0 0 16px; }
.cv-chip {
	flex: none; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--surface-2);
	display: inline-flex; align-items: center; font-weight: 500; white-space: nowrap;
}
.cv-chip:hover { background: var(--surface-3); }
.cv-chip.is-active { background: var(--text); color: var(--bg); }
.cv-chip-sm { height: 28px; font-size: 13px; }

/* ---------- Page ---------- */
.cv-page-title { font-size: 20px; font-weight: 700; margin: 8px 0 16px; display: flex; align-items: center; gap: 10px; }
.cv-title-icon { width: 28px; height: 28px; }
.cv-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cv-banner { padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; background: var(--surface-2); }
.cv-banner-error { background: rgba(255, 92, 92, .15); color: var(--danger); }
.cv-empty { color: var(--muted); padding: 40px 16px; text-align: center; grid-column: 1 / -1; }
.cv-empty a { color: #3ea6ff; }
.cv-empty-big { padding: 80px 16px; }
.cv-empty-big > .i { width: 96px; height: 96px; color: var(--muted); margin: 0 auto 12px; }
.cv-empty-big h1 { color: var(--text); font-size: 24px; margin: 0 0 8px; }
.cv-loading { display: grid; place-items: center; padding: 60px; }
.cv-spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--brand); animation: cv-spin .8s linear infinite; display: inline-block; }
.cv-spinner-sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes cv-spin { to { transform: rotate(360deg); } }
.cv-sentinel { height: 1px; }

/* ---------- Hero ---------- */
.cv-hero {
	position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center;
	margin: 4px 0 24px; padding: 28px 32px; border-radius: 18px; overflow: hidden;
	background: radial-gradient(120% 140% at 0% 0%, rgba(124, 92, 255, .35), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(34, 211, 238, .25), transparent 55%), var(--surface);
}
.cv-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--brand); }
.cv-eyebrow .i { width: 16px; height: 16px; }
.cv-hero h1 { font-size: 32px; line-height: 1.15; margin: 8px 0 10px; letter-spacing: -.6px; }
.cv-hero p { color: var(--muted); max-width: 560px; margin: 0 0 18px; font-size: 15px; }
.cv-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-hero-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cv-hero-steps li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(127, 127, 127, .1); }
.cv-hero-steps b { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 18px; }
.cv-hero-steps span { font-weight: 700; }
.cv-hero-steps small { color: var(--muted); }
.cv-hero-close { position: absolute; top: 10px; right: 10px; }

/* ---------- Cards ---------- */
.cv-feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 16px; }
.cv-card { min-width: 0; }
.cv-thumb {
	position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.cv-thumb img, .cv-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.cv-thumb.cv-r-9x16 img, .cv-thumb.cv-r-9x16 video, .cv-thumb.cv-r-1x1 img, .cv-thumb.cv-r-1x1 video { object-fit: contain; background: #000; }
.cv-thumb.cv-r-9x16::before, .cv-thumb.cv-r-1x1::before { content: ""; position: absolute; inset: 0; background: var(--thumb-bg, none) center / cover, #000; filter: blur(18px) brightness(.6); transform: scale(1.2); }
.cv-thumb.cv-r-9x16 img, .cv-thumb.cv-r-1x1 img, .cv-thumb.cv-r-9x16 video, .cv-thumb.cv-r-1x1 video { position: relative; background: transparent; }
.cv-thumb .cv-hover-video { position: absolute; inset: 0; z-index: 2; background: #000; }
.cv-thumb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, var(--brand-soft), transparent); }
.cv-thumb-empty .i { width: 48px; height: 48px; }
.cv-badge-dur, .cv-badge-ver {
	position: absolute; z-index: 3; bottom: 6px; padding: 1px 5px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .8);
}
.cv-badge-dur { right: 6px; }
.cv-badge-ver { left: 6px; display: inline-flex; align-items: center; gap: 3px; background: linear-gradient(135deg, var(--brand), #4f46e5); }
.cv-badge-ver .i { width: 13px; height: 13px; }
.cv-card-meta { display: flex; gap: 12px; margin-top: 12px; }
.cv-avatar { flex: none; }
.cv-avatar img, .cv-avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.cv-avatar-40 img { width: 40px; height: 40px; }
.cv-avatar-xl img { width: 136px; height: 136px; }
.cv-card-text { min-width: 0; }
.cv-card-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-card-channel, .cv-card-stats { display: block; color: var(--muted); font-size: 13.5px; }
.cv-card-channel:hover { color: var(--text); }
.cv-studio-badge { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); color: var(--bg); vertical-align: -2px; }
.cv-studio-badge .i { width: 11px; height: 11px; }

.cv-feed-row { display: flex; flex-direction: column; gap: 12px; }
.cv-card-row { display: grid; grid-template-columns: minmax(160px, 360px) 1fr; gap: 16px; }
.cv-card-row .cv-card-meta { margin: 0; }
.cv-card-row .cv-card-title { font-size: 18px; }
.cv-upnext .cv-card-row { grid-template-columns: 168px 1fr; gap: 8px; }
.cv-upnext .cv-card-row .cv-avatar { display: none; }
.cv-upnext .cv-card-row .cv-card-title { font-size: 14px; }
.cv-upnext .cv-card-row .cv-card-channel, .cv-upnext .cv-card-row .cv-card-stats { font-size: 12px; }
.cv-upnext .cv-thumb { border-radius: 8px; }
.cv-skel { background: linear-gradient(90deg, var(--surface) 0, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: cv-shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes cv-shimmer { to { background-position: -200% 0; } }

/* ---------- Watch ---------- */
.cv-view-watch .cv-main { padding-right: 24px; }
.cv-watch { display: grid; grid-template-columns: minmax(0, 1fr) 402px; gap: 24px; max-width: 1754px; margin: 0 auto; }
.cv-player-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 170px); border-radius: var(--radius); overflow: hidden; background: #000; }
.cv-player-wrap.cv-r-9x16, .cv-player-wrap.cv-r-1x1 { aspect-ratio: 16 / 9; }
.cv-player-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(30px) brightness(.45); }
.cv-player { position: relative; width: 100%; height: 100%; object-fit: contain; }
.cv-unmute { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 6px 12px; border-radius: 16px; background: rgba(0, 0, 0, .7); color: #fff; font-weight: 600; }
.cv-generating { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff;
	background: radial-gradient(60% 80% at 50% 40%, rgba(124, 92, 255, .35), transparent 70%), #07070b; }
.cv-generating h2 { margin: 18px 0 6px; font-size: 22px; }
.cv-generating p { margin: 0 0 16px; color: #bdbdbd; max-width: 460px; }
.cv-gen-orb { position: relative; width: 84px; height: 84px; }
.cv-gen-orb span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--brand); animation: cv-spin 1.2s linear infinite; }
.cv-gen-orb span:nth-child(2) { inset: 12px; border-top-color: var(--brand-2); animation-duration: 1.6s; animation-direction: reverse; }
.cv-gen-orb span:nth-child(3) { inset: 26px; border-top-color: #fff; animation-duration: 2s; }
.cv-gen-bar { width: min(320px, 80%); height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.cv-gen-bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: cv-indet 1.6s ease-in-out infinite; }
@keyframes cv-indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.cv-gen-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 92, 92, .2); color: var(--danger); }
.cv-gen-icon .i { width: 36px; height: 36px; }

.cv-versions { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; overflow-x: auto; scrollbar-width: none; }
.cv-versions-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin-right: 4px; white-space: nowrap; }
.cv-versions-label .i { width: 18px; height: 18px; }
.cv-ver-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--surface-2); font-weight: 700; }
.cv-ver-chip small { font-weight: 500; color: var(--muted); }
.cv-ver-chip.is-active { background: var(--brand); color: #fff; }
.cv-ver-chip.is-active small { color: rgba(255, 255, 255, .8); }
.cv-ver-chip.is-busy { background: var(--brand-soft); color: var(--text); }

.cv-watch-title { font-size: 20px; line-height: 1.4; margin: 12px 0 8px; font-weight: 700; }
.cv-watch-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cv-channel-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cv-channel-info { display: flex; flex-direction: column; min-width: 0; margin-right: 12px; }
.cv-channel-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-channel-subs { color: var(--muted); font-size: 12px; }
.cv-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.cv-actions .cv-pop-wrap { position: static; }
.cv-pill { display: flex; background: var(--surface-2); border-radius: 18px; overflow: hidden; }
.cv-pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; font-weight: 600; }
.cv-pill-btn:first-child { border-right: 1px solid var(--surface-3); }
.cv-pill-btn:hover, .cv-pill-single:hover { background: var(--surface-3); }
.cv-pill-btn .i, .cv-pill-single .i { width: 22px; height: 22px; }
.cv-pill-btn.is-on .i { color: var(--brand); }
.cv-pill-single { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.cv-pill-single.is-on .i { color: var(--brand); }
.cv-pill-icon { padding: 0; width: 36px; justify-content: center; }
.cv-more-pop { right: 24px; top: auto; margin-top: 44px; }
.cv-show-sm { display: none; }

.cv-desc { margin-top: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface); }
.cv-desc-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.cv-desc-stats a { color: #3ea6ff; }
.cv-desc-text { margin: 8px 0 0; white-space: pre-line; }
.cv-tag { padding: 0 8px; border-radius: 6px; background: var(--surface-2); font-size: 12px; }
.cv-prompt { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--brand-soft); border: 1px solid rgba(124, 92, 255, .25); }
.cv-prompt-head { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.cv-prompt-head .i { width: 18px; height: 18px; color: var(--brand); }
.cv-prompt-head small { color: var(--muted); font-weight: 600; }
.cv-prompt-head .cv-link-btn { margin-left: auto; }
.cv-prompt p { margin: 6px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; }
.cv-orig { margin-top: 8px; color: var(--muted); }
.cv-orig summary { cursor: pointer; font-weight: 600; }

.cv-evolution { margin-top: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(135deg, var(--brand-soft), transparent 60%); }
.cv-evo-head { display: flex; gap: 12px; align-items: flex-start; }
.cv-evo-head > .i { color: var(--brand); width: 28px; height: 28px; }
.cv-evo-head strong { display: block; }
.cv-evo-head span { color: var(--muted); }
.cv-progress { height: 6px; border-radius: 3px; background: var(--surface-2); margin: 12px 0 0; overflow: hidden; }
.cv-progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s; }
.cv-evo-summary { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.cv-evo-summary p { margin: 0; }
.cv-evo-by { color: var(--muted); font-size: 13px; margin-top: 4px !important; }

/* comments */
.cv-comments { margin-top: 24px; }
.cv-comments-head { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.cv-comments-head h2 { font-size: 20px; margin: 0; }
.cv-sort { display: flex; gap: 8px; }
.cv-composer { display: flex; gap: 14px; margin-bottom: 28px; }
.cv-composer-body { flex: 1; }
.cv-composer textarea, .cv-reply-form textarea {
	width: 100%; resize: none; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid var(--border); padding: 4px 0 6px; outline: none; min-height: 28px;
}
.cv-composer textarea:focus, .cv-reply-form textarea:focus { border-bottom: 2px solid var(--text); }
.cv-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cv-composer-foot small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cv-composer-foot small .i { width: 16px; height: 16px; color: var(--brand); }
.cv-composer-foot > span { display: flex; gap: 8px; margin-left: auto; }
.cv-comment { display: flex; gap: 14px; margin-bottom: 20px; }
.cv-comment-body { flex: 1; min-width: 0; }
.cv-comment-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.cv-comment-top a, .cv-comment-top b { font-weight: 600; }
.cv-comment-top time { color: var(--muted); }
.cv-comment-text { margin: 4px 0 6px; white-space: pre-wrap; word-wrap: break-word; }
.cv-comment-actions { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.cv-comment-actions button { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 16px; font-weight: 600; }
.cv-comment-actions button:hover { background: var(--surface-2); color: var(--text); }
.cv-comment-actions .i { width: 18px; height: 18px; }
.cv-comment-actions .is-on .i { color: var(--brand); }
.cv-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.cv-badge .i { width: 12px; height: 12px; }
.cv-badge-ai { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.cv-badge-creator { background: var(--surface-2); }
.cv-badge-public { background: var(--brand-soft); color: var(--brand); }
.cv-badge-private { background: var(--surface-3); color: var(--muted); }
.cv-icon-btn.is-on { color: var(--brand); }
.cv-badge-shaped { background: rgba(52, 211, 153, .16); color: var(--ok); }
.cv-badge-pending { background: rgba(250, 204, 21, .16); color: #eab308; }
.cv-comment.is-ai { padding: 10px; margin-left: -10px; border-radius: 12px; background: var(--brand-soft); }
.cv-replies-toggle { color: #3ea6ff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; margin-left: -12px; }
.cv-replies-toggle:hover { background: rgba(62, 166, 255, .12); }
.cv-replies { margin-top: 4px; }
.cv-replies .cv-avatar-img { width: 24px; height: 24px; }
.cv-reply-form { display: flex; gap: 10px; margin: 6px 0 12px; }
.cv-reply-form .cv-avatar-img { width: 24px; height: 24px; }
.cv-reply-form > div { flex: 1; }
.cv-reply-form .cv-row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.cv-upnext-title { font-size: 16px; margin: 0 0 12px; }

/* ---------- Verticals ---------- */
.cv-view-verticals .cv-main { padding-bottom: 0; }
.cv-shorts { position: relative; height: calc(100vh - var(--topbar-h) - 16px); }
.cv-shorts-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.cv-shorts-track::-webkit-scrollbar { display: none; }
.cv-short { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 8px 0; }
.cv-short-stage { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.cv-short-stage video { width: 100%; height: 100%; object-fit: cover; }
.cv-short-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.cv-short-info a { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cv-short-info img { width: 32px; height: 32px; border-radius: 50%; }
.cv-short-info h3 { margin: 8px 0 0; font-size: 15px; font-weight: 500; }
.cv-short-info .cv-sub-btn { height: 30px; padding: 0 12px; margin-left: 6px; background: #fff; color: #000; }
.cv-short-info .cv-sub-btn.is-subscribed { background: rgba(255, 255, 255, .25); color: #fff; }
.cv-short-paused { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cv-short-paused .i { width: 72px; height: 72px; color: #fff; background: rgba(0, 0, 0, .45); border-radius: 50%; padding: 14px; }
.cv-short-actions { display: flex; flex-direction: column; gap: 16px; align-self: flex-end; padding-bottom: 12px; }
.cv-short-actions button, .cv-short-actions a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.cv-short-actions .cv-round-bg { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.cv-short-actions .is-on .cv-round-bg { background: var(--brand); color: #fff; }
.cv-short-ver { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; }
.cv-shorts-nav { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; }
.cv-round { background: var(--surface-2); width: 48px; height: 48px; }

/* ---------- Create ---------- */
.cv-create { max-width: 820px; margin: 0 auto; }
.cv-create-head h1 { font-size: 28px; margin: 8px 0 6px; letter-spacing: -.4px; }
.cv-create-head p { color: var(--muted); margin: 0 0 20px; }
.cv-create-form { display: grid; gap: 18px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.cv-create-form[hidden] { display: none; }
.cv-create-tabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.cv-tab { appearance: none; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 8px 8px 0 0; }
.cv-tab:hover { color: var(--text); background: var(--surface-2); }
.cv-tab.is-active { color: var(--text); border-bottom-color: var(--brand); }
.cv-upload-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 160px; padding: 24px; border: 2px dashed var(--border); border-radius: 14px; background: var(--bg); color: var(--muted); cursor: pointer; text-align: center; font-weight: 600; transition: border-color .15s, background .15s; }
.cv-upload-drop:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.cv-upload-drop .i { width: 32px; height: 32px; }
.cv-upload-drop span { font-size: 13px; max-width: 320px; }
.cv-field { display: grid; gap: 6px; position: relative; align-content: start; }
.cv-label { font-weight: 600; font-size: 13px; }
.cv-field input, .cv-field textarea, .cv-field select, .cv-input {
	width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); outline: none;
}
.cv-field input:focus, .cv-field textarea:focus, .cv-field select:focus, .cv-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cv-field-prompt textarea { font-size: 16px; line-height: 1.5; min-height: 140px; resize: vertical; }
.cv-counter { position: absolute; right: 12px; bottom: 8px; color: var(--muted); font-size: 12px; }
.cv-ideas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); margin-top: -8px; }
.cv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cv-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cv-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cv-seg-opt span { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-weight: 600; }
.cv-seg-opt small { margin-left: auto; color: var(--muted); font-weight: 500; }
.cv-seg-opt input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cv-shape { display: inline-block; border: 2px solid currentColor; border-radius: 3px; }
.cv-shape-16x9 { width: 26px; height: 15px; }
.cv-shape-9x16 { width: 13px; height: 22px; }
.cv-shape-1x1 { width: 18px; height: 18px; }
.cv-create-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cv-quota { color: var(--muted); }
.cv-fineprint { margin: 0; color: var(--muted); font-size: 12px; }
.cv-hint { color: var(--muted); font-size: 12px; margin: 0; }
.cv-span { grid-column: 1 / -1; }
.cv-row-2 { grid-template-columns: repeat(2, 1fr); }
.cv-section-title { font-size: 20px; margin: 28px 0 10px; letter-spacing: -.2px; }
.cv-list-head .cv-section-title { margin: 0 0 4px; }
.cv-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; }
.cv-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.cv-check span { display: grid; gap: 2px; }
.cv-check small { color: var(--muted); font-weight: 400; font-size: 12px; }
.cv-check a { color: #3ea6ff; text-decoration: underline; }
:root[data-theme="light"] .cv-check a { color: #065fd4; }
.cv-check-inline { align-self: end; }
.cv-advanced { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.cv-advanced > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cv-advanced > summary::-webkit-details-marker { display: none; }
.cv-advanced > summary::before { content: "+"; display: inline-block; width: 14px; font-weight: 700; color: var(--muted); }
.cv-advanced[open] > summary::before { content: "\2212"; }
.cv-advanced > summary small { color: var(--muted); font-weight: 400; }
.cv-advanced-body { display: grid; gap: 16px; padding: 4px 14px 16px; }
.cv-advanced-body .cv-field input[type=number], .cv-advanced-body .cv-field select { background: var(--surface); }
.cv-refs { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.cv-ref { display: grid; gap: 8px; }
.cv-ref-box { position: relative; aspect-ratio: 4 / 3; border: 1px dashed var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.cv-ref-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-ref-pick { display: grid; justify-items: center; gap: 4px; color: var(--muted); cursor: pointer; padding: 12px; font-size: 13px; font-weight: 600; }
.cv-ref-pick .i { width: 26px; height: 26px; }
.cv-ref.is-busy .cv-ref-box { opacity: .5; }
.cv-ref-ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.cv-ref-ctl label { display: grid; gap: 2px; flex: 1; }
.cv-ref-ctl input[type=range] { width: 100%; accent-color: var(--brand); }
.cv-estimate { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--text); font-size: 13px; }
.cv-estimate:empty { display: none; }
.cv-estimate.is-error { background: rgba(255, 92, 92, .15); color: var(--danger); }
.cv-publicnote { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.cv-publicnote .i { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 1px; }
.cv-publicnote p { margin: 0; font-size: 13px; color: var(--muted); }
.cv-publicnote a { color: var(--text); text-decoration: underline; }
.cv-requests { margin-bottom: 8px; }
.cv-requests .cv-stats { margin-bottom: 14px; }
.cv-table-requests { min-width: 980px; }
.cv-table-requests td { font-variant-numeric: tabular-nums; }
.cv-req-main { max-width: 280px; }
.cv-req-main a { color: inherit; }
.cv-req-status { display: grid; gap: 4px; justify-items: start; }
.cv-req-status small { font-size: 11px; }
.cv-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-doc { max-width: 760px; margin: 0 auto; padding: 8px 0 48px; line-height: 1.65; }
.cv-doc h1 { font-size: 30px; letter-spacing: -.4px; margin: 8px 0 6px; }
.cv-doc h2 { font-size: 19px; margin: 32px 0 8px; }
.cv-doc p, .cv-doc li { color: var(--text); }
.cv-doc ul { padding-left: 22px; }
.cv-doc li { margin: 6px 0; }
.cv-doc a { color: #3ea6ff; text-decoration: underline; }
:root[data-theme="light"] .cv-doc a { color: #065fd4; }
.cv-doc-meta { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.cv-doc-callout { padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); margin: 18px 0; }
.cv-doc-callout p { margin: 0; }

/* ---------- Channel ---------- */
.cv-banner-art { height: clamp(100px, 16vw, 200px); border-radius: 16px; background: linear-gradient(120deg, #1b1464, var(--brand) 45%, var(--brand-2)); background-size: cover; background-position: center; }
.cv-channel-head { display: flex; gap: 24px; align-items: center; padding: 20px 0; }
.cv-channel-avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.cv-channel-meta h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: -.5px; }
.cv-channel-bio { color: var(--muted); margin: 8px 0; }
.cv-channel-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.cv-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.cv-tabs a { padding: 12px 0; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.cv-tabs a.is-active { color: var(--text); border-color: var(--text); }
.cv-about { max-width: 760px; }
.cv-about-stats { list-style: none; padding: 0; display: grid; gap: 12px; }
.cv-about-stats li { display: flex; gap: 12px; align-items: center; }
.cv-channel-result { display: flex; align-items: center; gap: 24px; padding: 8px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.cv-channel-result > div { flex: 1; }
.cv-channel-result-name { font-size: 18px; font-weight: 600; }
.cv-results-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cv-feed-results .cv-card-row { grid-template-columns: minmax(200px, 500px) 1fr; }

/* ---------- Library / studio / notifications / settings ---------- */
.cv-section { margin-bottom: 32px; }
.cv-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cv-section-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; }
.cv-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cv-shelf .cv-card-title { font-size: 14px; }
.cv-profile { display: flex; align-items: center; gap: 20px; margin: 8px 0 28px; }
.cv-profile img { width: 96px; height: 96px; border-radius: 50%; }
.cv-profile h1 { margin: 0; font-size: 28px; }
.cv-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.cv-stat { padding: 16px; border-radius: 12px; background: var(--surface); }
.cv-stat b { display: block; font-size: 26px; letter-spacing: -.5px; }
.cv-stat span { color: var(--muted); }
.cv-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.cv-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.cv-table th, .cv-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cv-table th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.cv-table tr:last-child td { border-bottom: 0; }
.cv-studio-video { display: flex; gap: 12px; align-items: center; min-width: 280px; }
.cv-studio-video .cv-thumb { width: 120px; flex: none; border-radius: 8px; }
.cv-studio-video b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.cv-status-ready { background: rgba(52, 211, 153, .15); color: var(--ok); }
.cv-status-processing { background: var(--brand-soft); color: var(--brand); }
.cv-status-failed { background: rgba(255, 92, 92, .15); color: var(--danger); }
.cv-row-actions { display: flex; gap: 4px; }
.cv-row-actions .cv-icon-btn { width: 34px; height: 34px; }
.cv-row-actions .i { width: 20px; height: 20px; }
.cv-notif { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; }
.cv-notif:hover { background: var(--surface-2); }
.cv-notif.is-unread { background: var(--brand-soft); }
.cv-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); margin-top: 16px; flex: none; }
.cv-notif.is-read .cv-notif-dot { visibility: hidden; }
.cv-notif-img { width: 86px; aspect-ratio: 16 / 9; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-2); }
.cv-notif-body { flex: 1; min-width: 0; }
.cv-notif-body p { margin: 0 0 4px; }
.cv-notif-body time { color: var(--muted); font-size: 12px; }
.cv-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.cv-pop-head h3 { margin: 0; font-size: 16px; }
.cv-settings { max-width: 640px; display: grid; gap: 18px; }
.cv-settings-card { padding: 20px; border-radius: 14px; background: var(--surface); display: grid; gap: 14px; }
.cv-settings-card h2 { margin: 0; font-size: 16px; }
.cv-playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.cv-playlist-card .cv-thumb { display: grid; place-items: center; }
.cv-playlist-count { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; display: grid; place-items: center; align-content: center; gap: 4px; background: rgba(0, 0, 0, .7); color: #fff; font-weight: 700; z-index: 3; }
.cv-playlist-card h3 { margin: 10px 0 2px; font-size: 15px; }
.cv-sub-strip { display: flex; gap: 20px; overflow-x: auto; padding: 4px 0 20px; scrollbar-width: none; }
.cv-sub-strip a { display: grid; justify-items: center; gap: 6px; width: 80px; flex: none; text-align: center; font-size: 12px; }
.cv-sub-strip img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.cv-sub-strip span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Modal / toasts ---------- */
.cv-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.cv-modal-backdrop { position: absolute; inset: 0; background: var(--overlay); }
.cv-modal-card { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; }
.cv-modal-close { position: absolute; top: 10px; right: 10px; }
.cv-modal-body h2 { margin: 0 32px 16px 0; font-size: 20px; }
.cv-share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px; margin-bottom: 20px; }
.cv-share-target { display: grid; justify-items: center; gap: 6px; font-size: 12px; text-align: center; }
.cv-share-target i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-size: 18px; }
.cv-share-target i .i { width: 26px; height: 26px; }
.cv-copy { display: flex; gap: 8px; padding: 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.cv-copy input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 0 8px; }
.cv-check-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; }
.cv-check-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.cv-signin-card { text-align: center; }
.cv-signin-card .cv-logo { justify-content: center; font-size: 26px; margin-bottom: 8px; }
.cv-signin-card p { color: var(--muted); }
.cv-auth { display: grid; gap: 4px; }
.cv-auth-logo { justify-content: center; font-size: 24px; margin-bottom: 6px; }
.cv-auth h2 { margin: 0 0 4px; text-align: center; }
.cv-auth > div > p.cv-muted { text-align: center; margin: 0 0 16px; }
.cv-auth form { display: grid; gap: 14px; margin-bottom: 12px; }
.cv-auth .cv-small { text-align: center; margin: 4px 0; }
.cv-auth a { color: #3ea6ff; }
:root[data-theme="light"] .cv-auth a { color: #065fd4; }
.cv-auth .cv-check { text-align: left; }
.cv-btn-block { width: 100%; justify-content: center; }
.cv-captcha { display: flex; justify-content: center; min-height: 0; }
.cv-captcha:empty { display: none; }
.cv-auth-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(185, 28, 28, .14); color: #ff8a8a; font-size: 14px; }
:root[data-theme="light"] .cv-auth-error { color: #b91c1c; background: rgba(185, 28, 28, .08); }
.cv-auth-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); font-size: 14px; }
.cv-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.cv-toasts { position: fixed; left: 24px; bottom: 24px; z-index: 120; display: grid; gap: 8px; }
.cv-toast { max-width: 420px; padding: 12px 16px; border-radius: 10px; background: #f1f1f1; color: #0f0f0f; box-shadow: var(--shadow); animation: cv-toast-in .2s ease; }
:root[data-theme="light"] .cv-toast { background: #0f0f0f; color: #fff; }
.cv-toast.is-error { background: #b91c1c; color: #fff; }
@keyframes cv-toast-in { from { transform: translateY(10px); opacity: 0; } }

.cv-prose { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.7; }
.cv-prose a { color: #3ea6ff; }

/* ---------- Bottom nav (mobile) ---------- */
.cv-bottomnav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1312px) {
	.cv-sidebar { width: var(--mini-w); padding: 4px; }
	.cv-nav-item { flex-direction: column; justify-content: center; gap: 4px; height: 74px; font-size: 10px; padding: 0; }
	.cv-nav-full, .cv-nav hr { display: none; }
	.cv-nav-mini-only { display: flex; }
	.cv-main { padding-left: calc(var(--mini-w) + 24px); }
	body.cv-drawer-open .cv-sidebar { width: var(--side-w); padding: 0 12px 24px; z-index: 70; top: 0; box-shadow: var(--shadow); }
	body.cv-drawer-open .cv-sidebar-head { display: flex; }
	body.cv-drawer-open .cv-nav-item { flex-direction: row; height: 40px; font-size: 14px; justify-content: flex-start; gap: 22px; padding: 0 12px; }
	body.cv-drawer-open .cv-nav-full { display: block; }
	body.cv-drawer-open .cv-nav-item.cv-nav-full { display: flex; }
	body.cv-drawer-open .cv-nav hr { display: block; }
	body.cv-drawer-open .cv-nav-mini-only { display: none; }
	.cv-watch { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1000px) {
	.cv-watch { grid-template-columns: 1fr; }
	.cv-upnext .cv-card-row { grid-template-columns: 220px 1fr; }
	.cv-hero { grid-template-columns: 1fr; }
	.cv-hero-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 792px) {
	:root { --topbar-h: 52px; }
	.cv-topbar { padding: 0 8px; gap: 4px; }
	.cv-topbar-left { min-width: 0; }
	.cv-menu-btn { display: none; }
	.cv-searchbar { display: none; position: absolute; inset: 0; background: var(--bg); padding: 0 8px; z-index: 5; }
	body.cv-search-active .cv-searchbar { display: flex; }
	.cv-search-back, .cv-search-open { display: inline-grid; }
	.cv-create-btn { display: none; }
	.cv-signin-btn span, .cv-theme-btn { display: none; }
	.cv-signin-btn { padding: 0 8px; }
	.cv-sidebar { display: none; }
	body.cv-drawer-open .cv-sidebar { display: block; }
	.cv-main, html.cv-mini .cv-main, .cv-view-watch .cv-main, .cv-view-verticals .cv-main { padding: calc(var(--topbar-h) + 4px) 12px calc(72px + env(safe-area-inset-bottom)); }
	.cv-view-watch .cv-main { padding-left: 0; padding-right: 0; padding-top: var(--topbar-h); }
	.cv-view-watch .cv-watch-main > *:not(.cv-player-wrap) { margin-left: 12px; margin-right: 12px; }
	.cv-view-watch .cv-upnext { padding: 0 12px; }
	.cv-player-wrap { border-radius: 0; position: sticky; top: var(--topbar-h); z-index: 10; }
	.cv-actions { width: 100%; }
	.cv-hide-sm { display: none; }
	.cv-show-sm { display: flex; }
	.cv-bottomnav {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(56px + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--border);
	}
	.cv-bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; }
	.cv-bottomnav a.is-active { font-weight: 700; }
	.cv-bottom-create .i { width: 40px; height: 32px; padding: 4px 8px; border-radius: 16px; background: var(--surface-2); }
	.cv-feed-grid { grid-template-columns: 1fr; gap: 24px; margin: 0 -12px; }
	.cv-feed-grid .cv-thumb { border-radius: 0; }
	.cv-feed-grid .cv-card-meta { padding: 0 12px; }
	.cv-card-row, .cv-feed-results .cv-card-row { grid-template-columns: 160px 1fr; gap: 10px; }
	.cv-card-row .cv-avatar { display: none; }
	.cv-card-row .cv-card-title { font-size: 14px; }
	.cv-upnext .cv-card-row { grid-template-columns: 160px 1fr; }
	.cv-hero { padding: 20px; }
	.cv-hero h1 { font-size: 24px; }
	.cv-hero-steps { display: none; }
	.cv-hero p { font-size: 14px; margin-bottom: 14px; }
	.cv-row, .cv-row-2 { grid-template-columns: 1fr; }
	.cv-refs { grid-template-columns: 1fr 1fr; max-width: none; }
	.cv-create-form { padding: 16px; }
	.cv-channel-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.cv-channel-avatar { width: 80px; height: 80px; }
	.cv-channel-meta h1 { font-size: 24px; }
	.cv-channel-result { gap: 12px; }
	.cv-avatar-xl img { width: 64px; height: 64px; }
	.cv-shorts { height: calc(100vh - var(--topbar-h) - 60px); margin: 0 -12px; }
	.cv-short { padding: 0; }
	.cv-short-stage { border-radius: 0; width: 100%; aspect-ratio: auto; }
	.cv-short-actions { position: absolute; right: 8px; bottom: 90px; color: #fff; }
	.cv-short-actions .cv-round-bg { background: rgba(0, 0, 0, .45); }
	.cv-shorts-nav { display: none; }
	.cv-toasts { left: 12px; right: 12px; bottom: 76px; }
	.cv-notif-pop { position: fixed; left: 8px; right: 8px; top: var(--topbar-h); width: auto; }
	.cv-comments-head { gap: 12px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.cv-sidebar-legal a { color: var(--muted); text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Storyboard create flow                                             */
/* ------------------------------------------------------------------ */
.cv-sb-tabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.cv-sb-boardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cv-char-add { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 2px dashed var(--border); border-radius: 12px; background: var(--bg); color: var(--muted); cursor: pointer; font-weight: 600; font-size: 14px; }
.cv-char-add:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.cv-char-add .i { width: 20px; height: 20px; }
.cv-chars { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.cv-char { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.cv-char img { width: 100%; height: 100%; object-fit: cover; }
.cv-char-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; border: none; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.cv-char-x .i { width: 14px; height: 14px; }

.cv-scenes { display: grid; gap: 14px; margin: 8px 0 20px; }
.cv-scene { display: grid; grid-template-columns: 220px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.cv-scene.is-busy { opacity: .55; pointer-events: none; }
.cv-scene-img { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.cv-scene-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-scene-noimg .i { width: 28px; height: 28px; color: var(--muted); }
.cv-scene-regen { position: absolute; bottom: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: none; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cv-scene-regen .i { width: 14px; height: 14px; }
.cv-scene-regen:hover { background: var(--brand); }
.cv-scene-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cv-scene-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cv-scene-prompt { width: 100%; resize: vertical; min-height: 68px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.cv-scene-len { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cv-scene-len input { width: 70px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.cv-scene-rm { color: var(--muted); }
.cv-scene-rm:hover { color: var(--danger, #ef4444); }
@media (max-width: 620px) {
	.cv-scene { grid-template-columns: 1fr; }
	.cv-scene-img { max-width: 100%; }
}

/* ==========================================================================
   Model picker, paid generation, wallet and the clip editor
   ========================================================================== */

/* Model picker bar */
.cv-modelbar { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 4px; scrollbar-width: thin; }
.cv-model { flex: 0 0 auto; min-width: 150px; max-width: 220px; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 4px; transition: border-color .15s, background .15s; }
.cv-model:hover { border-color: var(--surface-3); }
.cv-model.is-active { border-color: var(--brand); background: var(--brand-soft); }
.cv-model-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cv-model-top b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-model-tag { font-size: 11px; color: var(--brand-2); white-space: nowrap; }
.cv-model.is-active .cv-model-tag { color: var(--brand); }
.cv-model-note { font-size: 11px; color: var(--muted); }

/* Paid form head */
.cv-paid-head { font-size: 13px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 4px; }
.cv-paid-head b { font-weight: 600; }
.cv-paid-foot { align-items: center; }
.cv-balance { font-size: 12px; color: var(--muted); }
.cv-balance .cv-link-btn { margin-left: 6px; }

/* Wallet (settings) */
.cv-wallet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cv-wallet-balance { font-size: 28px; font-weight: 800; display: block; line-height: 1.1; }
.cv-wallet-ledger { margin-top: 4px; }
.cv-wallet-table { width: 100%; border-collapse: collapse; }
.cv-wallet-table td { padding: 8px 0; border-top: 1px solid var(--border); vertical-align: middle; }
.cv-wallet-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.cv-wallet-delta.is-pos { color: var(--ok); }
.cv-wallet-delta.is-neg { color: var(--muted); }

/* Clip editor */
.cv-editor-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.cv-editor-lib { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px; display: grid; gap: 12px; position: sticky; top: calc(var(--topbar-h) + 12px); }
.cv-editor-libhead { font-weight: 600; }
.cv-editor-sources { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.cv-src { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; border: 1px solid transparent; text-align: left; width: 100%; }
.cv-src:hover { border-color: var(--border); background: var(--surface-2); }
.cv-src-thumb { flex: none; width: 56px; height: 34px; border-radius: 6px; overflow: hidden; background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
.cv-src-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cv-src-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cv-src-meta b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-src-meta small { color: var(--muted); font-size: 11px; }
.cv-src-add { flex: none; color: var(--muted); }
.cv-src:hover .cv-src-add { color: var(--brand); }
.cv-editor-urlrow { display: flex; gap: 6px; }
.cv-editor-urlrow input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.cv-editor-main { display: grid; gap: 14px; min-width: 0; }
.cv-editor-timeline { border: 1px dashed var(--border); border-radius: var(--radius); padding: 10px; min-height: 90px; background: var(--surface); }
.cv-editor-empty { color: var(--muted); text-align: center; margin: 24px 8px; font-size: 13px; }
.cv-editor-clips { display: grid; gap: 8px; }
.cv-clip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.cv-clip-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cv-clip-thumb { flex: none; width: 60px; height: 36px; border-radius: 6px; overflow: hidden; background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
.cv-clip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cv-clip-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cv-clip-body b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-clip-trim { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cv-clip-trim input { width: 56px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); text-align: center; }
.cv-clip-acts { flex: none; display: flex; gap: 2px; }
.cv-icon-btn { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; line-height: 1; }
.cv-icon-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.cv-icon-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 860px) {
	.cv-editor-grid { grid-template-columns: 1fr; }
	.cv-editor-lib { position: static; }
	.cv-editor-sources { max-height: 240px; }
}
