/* =====================================================================
   CREA Music — sistema visual del panel, login y postulación.
   Todo vive bajo .cm-app para no chocar con el tema de WordPress.
   ===================================================================== */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

/* ---------- Documento propio (pantalla completa) ---------- */
html:has(body.cm-standalone) { background: #05070d; }
html[data-cm-theme="light"]:has(body.cm-standalone) { background: #eef3fb; }
body.cm-standalone { margin: 0; padding: 0; min-height: 100vh; background: transparent; -webkit-text-size-adjust: 100%; }

/* ---------- Tokens ---------- */
.cm-app {
	container: cm / inline-size;
	--cm-accent: #105CDB;
	--cm-accent-2: #5B8FE6;
	--cm-accent-3: #8fb4ff;
	--cm-radius: 22px;
	--cm-radius-sm: 14px;
	--cm-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cm-ok: #22c55e;
	--cm-warn: #f59e0b;
	--cm-danger: #ef4444;
	--cm-orange: #f97316;
	--cm-indigo: #8b5cf6;
	--cm-ease: cubic-bezier(.2, .8, .2, 1);
	font-family: var(--cm-font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--cm-text);
	background: var(--cm-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: relative;
	text-align: left;
	isolation: isolate;
}
.cm-app[data-theme="dark"] {
	--cm-bg: #05070d;
	--cm-text: #eef2ff;
	--cm-muted: #a3afc9;
	--cm-faint: #7c88a5;
	--cm-glass: rgba(16, 22, 40, 0.58);
	--cm-glass-strong: rgba(14, 20, 36, 0.78);
	--cm-glass-soft: rgba(255, 255, 255, 0.045);
	--cm-glass-border: rgba(255, 255, 255, 0.085);
	--cm-glass-hi: rgba(255, 255, 255, 0.10);
	--cm-line: rgba(255, 255, 255, 0.07);
	--cm-input: rgba(6, 10, 20, 0.55);
	--cm-input-border: rgba(255, 255, 255, 0.12);
	--cm-chip: rgba(255, 255, 255, 0.07);
	--cm-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
	--cm-glow: rgba(16, 92, 219, 0.55);
	--cm-orb-1: rgba(16, 92, 219, 0.55);
	--cm-orb-2: rgba(91, 143, 230, 0.32);
	--cm-orb-3: rgba(76, 46, 210, 0.30);
	--cm-liquid-a: rgba(255, 255, 255, 0.13);
	--cm-liquid-b: rgba(255, 255, 255, 0.035);
	--cm-liquid-rim: rgba(255, 255, 255, 0.5);
	color-scheme: dark;
}
.cm-app[data-theme="light"] {
	--cm-bg: #eef3fb;
	--cm-text: #0a1124;
	--cm-muted: #4c5873;
	--cm-faint: #6b7690;
	--cm-glass: rgba(255, 255, 255, 0.62);
	--cm-glass-strong: rgba(255, 255, 255, 0.86);
	--cm-glass-soft: rgba(255, 255, 255, 0.5);
	--cm-glass-border: rgba(16, 40, 90, 0.09);
	--cm-glass-hi: rgba(255, 255, 255, 0.9);
	--cm-line: rgba(16, 40, 90, 0.08);
	--cm-input: rgba(255, 255, 255, 0.8);
	--cm-input-border: rgba(16, 40, 90, 0.14);
	--cm-chip: rgba(16, 40, 90, 0.06);
	--cm-shadow: 0 24px 50px -28px rgba(16, 40, 90, 0.35);
	--cm-glow: rgba(16, 92, 219, 0.32);
	--cm-orb-1: rgba(16, 92, 219, 0.26);
	--cm-orb-2: rgba(91, 143, 230, 0.30);
	--cm-orb-3: rgba(140, 120, 255, 0.18);
	--cm-liquid-a: rgba(255, 255, 255, 0.78);
	--cm-liquid-b: rgba(255, 255, 255, 0.42);
	--cm-liquid-rim: rgba(255, 255, 255, 0.95);
	color-scheme: light;
}

/* ---------- Reset acotado ---------- */
.cm-app *, .cm-app *::before, .cm-app *::after { box-sizing: border-box; }
.cm-app h1, .cm-app h2, .cm-app h3, .cm-app h4 { font-family: var(--cm-font); color: var(--cm-text); margin: 0; padding: 0; letter-spacing: -0.02em; line-height: 1.2; font-weight: 800; text-transform: none; }
.cm-app p { margin: 0; padding: 0; }
.cm-app a { color: var(--cm-accent-3); text-decoration: none; }
.cm-app[data-theme="light"] a { color: var(--cm-accent); }
.cm-app a:hover { text-decoration: underline; }
.cm-app img { max-width: 100%; }
.cm-app button { font-family: inherit; }
.cm-app ul, .cm-app ol { margin: 0; padding-left: 1.2em; }
.cm-app :focus { outline: none; }
.cm-app :focus-visible { outline: 2px solid var(--cm-accent-2); outline-offset: 3px; border-radius: 10px; }
.cm-app ::selection { background: rgba(16, 92, 219, 0.45); color: #fff; }

.cm-logo-light { display: none !important; }
.cm-app[data-theme="light"] .cm-logo-dark { display: none !important; }
.cm-app[data-theme="light"] .cm-logo-light { display: block !important; }
.cm-ico-moon { display: none; }
.cm-app[data-theme="light"] .cm-ico-sun { display: none; }
.cm-app[data-theme="light"] .cm-ico-moon { display: inline; }

/* ---------- Fondo con luces ---------- */
.cm-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cm-standalone .cm-bg { position: fixed; }
.cm-app > *:not(.cm-bg):not(.cm-bottom-nav) { position: relative; z-index: 1; }
.cm-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 1; will-change: transform; }
.cm-orb-1 { width: 62vmax; height: 62vmax; left: -18vmax; top: -24vmax; background: radial-gradient(circle at 40% 40%, var(--cm-orb-1), transparent 65%); animation: cm-drift-1 28s var(--cm-ease) infinite alternate; }
.cm-orb-2 { width: 48vmax; height: 48vmax; right: -16vmax; top: 10vh; background: radial-gradient(circle at 50% 50%, var(--cm-orb-2), transparent 65%); animation: cm-drift-2 34s var(--cm-ease) infinite alternate; }
.cm-orb-3 { width: 52vmax; height: 52vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(circle at 50% 50%, var(--cm-orb-3), transparent 65%); animation: cm-drift-3 40s var(--cm-ease) infinite alternate; }
.cm-grain { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; }
.cm-app[data-theme="light"] .cm-grain { opacity: .25; background-image: radial-gradient(rgba(16, 40, 90, 0.06) 1px, transparent 1px); }
@keyframes cm-drift-1 { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes cm-drift-2 { to { transform: translate(-6vmax, 8vmax) scale(.94); } }
@keyframes cm-drift-3 { to { transform: translate(-8vmax, -6vmax) scale(1.06); } }

/* ---------- Vidrio ---------- */
.cm-glass, .cm-card, .cm-stat, .cm-track, .cm-side, .cm-mobile-top, .cm-hero, .cm-modal, .cm-editor-foot {
	background: var(--cm-glass);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	backdrop-filter: blur(22px) saturate(160%);
	border: 1px solid var(--cm-glass-border);
	box-shadow: inset 0 1px 0 var(--cm-glass-hi), var(--cm-shadow);
}

/* Liquid glass: vidrio más denso, borde con luz y brillo especular. */
.cm-liquid {
	position: relative;
	isolation: isolate;
	background: linear-gradient(155deg, var(--cm-liquid-a), var(--cm-liquid-b) 42%, rgba(16, 92, 219, 0.10) 100%);
	-webkit-backdrop-filter: blur(30px) saturate(180%);
	backdrop-filter: blur(30px) saturate(180%);
	border: 1px solid transparent;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.30),
		inset 0 -1px 0 rgba(255, 255, 255, 0.04),
		inset 0 0 32px rgba(91, 143, 230, 0.10),
		0 30px 80px -24px rgba(2, 8, 28, 0.7),
		0 0 70px -18px var(--cm-glow);
}
.cm-liquid::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
	background: linear-gradient(140deg, var(--cm-liquid-rim), rgba(255, 255, 255, 0.06) 30%, rgba(91, 143, 230, 0.45) 65%, rgba(255, 255, 255, 0.22));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}
.cm-liquid-sheen {
	position: absolute; pointer-events: none; z-index: 0; border-radius: inherit; inset: 0; overflow: hidden;
	background:
		radial-gradient(120% 60% at 15% -10%, rgba(255, 255, 255, 0.22), transparent 55%),
		radial-gradient(60% 40% at 100% 110%, rgba(91, 143, 230, 0.22), transparent 70%);
}
.cm-liquid > *:not(.cm-liquid-sheen) { position: relative; z-index: 1; }
.cm-app[data-theme="light"] .cm-liquid { box-shadow: inset 0 1px 0 #fff, inset 0 0 30px rgba(91, 143, 230, 0.12), 0 30px 70px -30px rgba(16, 40, 90, 0.45), 0 0 60px -20px var(--cm-glow); }

/* ---------- Estructura del panel ---------- */
.cm-app-full { min-height: 100vh; min-height: 100dvh; }
.cm-shell { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.cm-side {
	position: sticky; top: 16px; align-self: start;
	margin: 16px 0 16px 16px; height: calc(100vh - 32px); height: calc(100dvh - 32px);
	border-radius: 28px; padding: 22px 14px 16px;
	display: flex; flex-direction: column; gap: 4px;
	background: var(--cm-glass-strong);
}
.cm-side-logo { height: 40px; width: auto !important; align-self: flex-start; object-fit: contain; margin: 4px 12px 26px; }
.cm-nav-item {
	display: flex; align-items: center; gap: 12px; position: relative;
	padding: 12px 14px; border-radius: 16px; color: var(--cm-muted);
	font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; background: none; width: 100%; text-align: left;
	transition: background .2s, color .2s, border-color .2s;
}
.cm-nav-item:hover { background: var(--cm-glass-soft); color: var(--cm-text); }
.cm-nav-item.is-active {
	color: var(--cm-text);
	background: linear-gradient(135deg, rgba(16, 92, 219, 0.32), rgba(91, 143, 230, 0.10));
	border-color: rgba(91, 143, 230, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 26px -10px var(--cm-glow);
}
.cm-nav-item.is-active svg { color: var(--cm-accent-3); }
.cm-app[data-theme="light"] .cm-nav-item.is-active svg { color: var(--cm-accent); }
.cm-nav-item .cm-badge { margin-left: auto; }
.cm-nav-label { white-space: nowrap; }
.cm-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px 6px 2px; border-top: 1px solid var(--cm-line); }
.cm-user { display: flex; gap: 11px; align-items: center; min-width: 0; padding: 0 6px; }
.cm-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--cm-accent), var(--cm-accent-2)); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; box-shadow: 0 0 0 2px var(--cm-glass-border); }
.cm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cm-user-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-user-role { font-size: 12px; color: var(--cm-faint); }
.cm-side-actions { display: flex; gap: 8px; }
.cm-side-actions .cm-btn { flex: 1; }

.cm-main { padding: 36px 44px 64px; min-width: 0; width: 100%; max-width: 1240px; margin: 0 auto; }
.cm-view { animation: cm-enter .45s var(--cm-ease) both; }
@keyframes cm-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cm-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.cm-page-title { font-size: 34px; letter-spacing: -0.035em; }
.cm-app .cm-page-sub { color: var(--cm-muted); margin-top: 6px; max-width: 640px; }
.cm-app div.cm-page-sub { max-width: 760px; margin-top: 10px; }
.cm-back { display: inline-flex; align-items: center; gap: 6px; color: var(--cm-muted); font-weight: 600; cursor: pointer; background: none; border: 0; padding: 6px 0; margin-bottom: 10px; font-size: 14px; }
.cm-back:hover { color: var(--cm-text); }

.cm-mobile-top, .cm-bottom-nav { display: none; }

/* ---------- Hero ---------- */
.cm-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 32px; margin-bottom: 22px; background: linear-gradient(125deg, rgba(16, 92, 219, 0.42), rgba(91, 143, 230, 0.12) 50%, rgba(10, 14, 28, 0.2)), var(--cm-glass); }
.cm-app[data-theme="light"] .cm-hero { background: linear-gradient(125deg, rgba(16, 92, 219, 0.16), rgba(91, 143, 230, 0.08) 50%, rgba(255, 255, 255, 0.4)), var(--cm-glass); }
.cm-hero > *:not(.cm-glow):not(.cm-hero-art) { position: relative; z-index: 1; }
.cm-glow { position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; pointer-events: none; background: radial-gradient(closest-side, var(--cm-glow), transparent 72%); filter: blur(8px); z-index: 0; }
.cm-hero-art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 300px; height: 300px; z-index: 0; pointer-events: none; opacity: .55; }
.cm-hero-art span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(143, 180, 255, 0.35); }
.cm-hero-art span:nth-child(2) { inset: 40px; border-color: rgba(143, 180, 255, 0.28); }
.cm-hero-art span:nth-child(3) { inset: 80px; border-color: rgba(143, 180, 255, 0.22); }
.cm-hero-art span:nth-child(4) { inset: 120px; background: radial-gradient(circle, rgba(91, 143, 230, 0.6), rgba(16, 92, 219, 0.1) 70%); border: 0; }
.cm-hero h2 { font-size: 30px; letter-spacing: -0.035em; }
.cm-app .cm-hero h2 { margin-bottom: 8px; }
.cm-hero p { color: var(--cm-muted); max-width: 560px; }
.cm-hero .cm-actions { margin-top: 22px; }

/* ---------- Tarjetas y grillas ---------- */
.cm-card { border-radius: var(--cm-radius); padding: 24px; }
.cm-card + .cm-card { margin-top: 16px; }
.cm-card-title { font-size: 18px; }
.cm-app .cm-card-title { margin-bottom: 4px; }
.cm-app .cm-card-sub { color: var(--cm-muted); font-size: 14px; margin-bottom: 18px; }
.cm-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cm-app .cm-card-head .cm-card-title { margin-bottom: 0; }
.cm-grid { display: grid; gap: 16px; }
.cm-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.cm-sticky { position: sticky; top: 24px; }
.cm-stack { display: flex; flex-direction: column; gap: 16px; }
.cm-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cm-spacer { flex: 1; }
.cm-section-title { font-size: 20px; display: flex; align-items: center; gap: 12px; }
.cm-app .cm-section-title { margin: 30px 0 14px; }

.cm-stats { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; }
.cm-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-stat { border-radius: var(--cm-radius); padding: 20px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .25s var(--cm-ease), border-color .2s, box-shadow .25s; position: relative; overflow: hidden; }
.cm-stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, var(--cm-glow), transparent); opacity: 0; transition: opacity .3s; }
.cm-stat:hover { transform: translateY(-2px); border-color: rgba(91, 143, 230, 0.35); }
.cm-stat:hover::after { opacity: .7; }
.cm-stat-num { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.cm-stat-label { color: var(--cm-muted); font-size: 14px; font-weight: 600; margin-top: 2px; }

/* ---------- Botones ---------- */
.cm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden;
	border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14px; line-height: 1.2; min-height: 42px;
	border: 1px solid var(--cm-glass-border); background: var(--cm-glass-soft); color: var(--cm-text);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: inset 0 1px 0 var(--cm-glass-hi);
	cursor: pointer; transition: transform .15s var(--cm-ease), box-shadow .25s, background .2s, border-color .2s; text-decoration: none !important; white-space: nowrap;
	font-family: var(--cm-font);
}
.cm-app a.cm-btn { color: var(--cm-text); }
.cm-app a.cm-btn:hover { text-decoration: none; }
.cm-btn:hover { border-color: rgba(91, 143, 230, 0.4); background: rgba(91, 143, 230, 0.10); }
.cm-btn:active { transform: scale(.98); }
.cm-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.cm-app .cm-btn.is-busy:disabled { opacity: .85; cursor: progress; }
.cm-btn.is-busy::before {
	content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
	border: 2px solid currentColor; border-right-color: transparent;
	animation: cm-spin .7s linear infinite;
}
@keyframes cm-spin { to { transform: rotate(360deg); } }
.cm-app .cm-btn.cm-btn-primary {
	color: #fff; border-color: rgba(143, 180, 255, 0.45);
	background: linear-gradient(180deg, #3d84f5 0%, #105CDB 55%, #0a4ab8 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(4, 30, 90, 0.35), 0 10px 28px -8px var(--cm-glow);
}
.cm-btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-20deg); transition: left .6s var(--cm-ease); }
.cm-app .cm-btn.cm-btn-primary:hover { background: linear-gradient(180deg, #4a8ef8 0%, #1866e6 55%, #0b4fc2 100%); border-color: rgba(143, 180, 255, 0.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 36px -8px var(--cm-glow); }
.cm-btn-primary:hover::after { left: 120%; }
.cm-btn-glass { background: var(--cm-glass-soft); }
.cm-btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--cm-muted); -webkit-backdrop-filter: none; backdrop-filter: none; }
.cm-btn-ghost:hover { background: var(--cm-glass-soft); color: var(--cm-text); border-color: transparent; }
.cm-app .cm-btn.cm-btn-danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }
.cm-app .cm-btn-danger:hover { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.6); }
.cm-app .cm-btn.cm-btn-ok { color: #86efac; border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.12); }
.cm-app .cm-btn-ok:hover { background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.6); }
.cm-app[data-theme="light"] .cm-btn.cm-btn-ok { color: #15803d; }
.cm-app[data-theme="light"] .cm-btn.cm-btn-danger { color: #dc2626; }
.cm-app .cm-btn.cm-btn-danger-solid,
.cm-app[data-theme="light"] .cm-btn.cm-btn-danger-solid {
	color: #fff; border-color: rgba(252, 165, 165, 0.45);
	background: linear-gradient(180deg, #f05252 0%, #dc2626 55%, #b91c1c 100%);
	box-shadow: 0 8px 22px -10px rgba(220, 38, 38, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cm-app .cm-btn.cm-btn-danger-solid:hover { background: linear-gradient(180deg, #f46b6b 0%, #e23a3a 55%, #c42020 100%); border-color: rgba(252, 165, 165, 0.7); }
.cm-app .cm-btn.cm-btn-danger-text { color: #fca5a5; }
.cm-app[data-theme="light"] .cm-btn.cm-btn-danger-text { color: #dc2626; }
.cm-access { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cm-access > span:last-child { color: var(--cm-muted); }
.cm-app .cm-bullets { margin: 0; padding-left: 20px; color: var(--cm-muted); display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.cm-btn-sm { padding: 7px 14px; font-size: 13px; min-height: 34px; }
.cm-btn-lg { padding: 15px 28px; font-size: 16px; min-height: 52px; }
.cm-btn-icon { width: 42px; height: 42px; padding: 0; flex: none; }
.cm-btn-sm.cm-btn-icon { width: 34px; height: 34px; }
.cm-btn-block { width: 100%; }
.cm-app .cm-btn.cm-btn-google {
	width: 100%; min-height: 56px; font-size: 16px; color: #111827; gap: 12px;
	background: linear-gradient(180deg, #ffffff, #eef2fa); border-color: rgba(255, 255, 255, 0.9);
	box-shadow: inset 0 1px 0 #fff, 0 12px 30px -10px rgba(16, 92, 219, 0.6), 0 0 0 4px rgba(91, 143, 230, 0.12);
}
.cm-app .cm-btn.cm-btn-google:hover { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 16px 40px -10px rgba(16, 92, 219, 0.75), 0 0 0 6px rgba(91, 143, 230, 0.16); border-color: #fff; }
.cm-app[data-theme="light"] .cm-btn.cm-btn-google { border-color: rgba(16, 40, 90, 0.12); }
.cm-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Formularios ---------- */
.cm-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.cm-label { font-size: 13px; font-weight: 700; color: var(--cm-text); letter-spacing: .005em; }
.cm-label .cm-opt { color: var(--cm-faint); font-weight: 500; }
.cm-help { font-size: 12.5px; color: var(--cm-faint); line-height: 1.45; }
.cm-app .cm-input {
	width: 100%; background: var(--cm-input); color: var(--cm-text); border: 1px solid var(--cm-input-border);
	border-radius: var(--cm-radius-sm); padding: 12px 15px; font: inherit; font-size: 15px; line-height: 1.4; margin: 0;
	transition: border-color .2s, box-shadow .2s, background .2s; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); min-height: 46px; height: auto; max-width: none;
}
.cm-app textarea.cm-input { resize: vertical; min-height: 104px; }
.cm-app select.cm-input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393a3c4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.cm-app select.cm-input option { background: #0e1424; color: #eef2ff; }
.cm-app[data-theme="light"] select.cm-input option { background: #fff; color: #0a1124; }
.cm-app .cm-input:hover { border-color: rgba(91, 143, 230, 0.35); }
.cm-app .cm-input:focus { outline: none; border-color: var(--cm-accent-2); box-shadow: 0 0 0 4px rgba(16, 92, 219, 0.22); }
.cm-app .cm-input::placeholder { color: var(--cm-faint); opacity: .85; }
.cm-app .cm-input[readonly] { opacity: .7; cursor: default; }
.cm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.cm-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-choice {
	display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--cm-input-border); border-radius: 16px;
	padding: 13px 15px; cursor: pointer; background: var(--cm-input); flex: 1 1 170px; min-width: 0; margin: 0;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.cm-choice:hover { border-color: rgba(91, 143, 230, 0.4); }
.cm-choice input { margin: 3px 0 0; accent-color: var(--cm-accent); flex: none; width: 16px; height: 16px; }
.cm-choice.is-on { border-color: rgba(91, 143, 230, 0.8); background: linear-gradient(135deg, rgba(16, 92, 219, 0.22), rgba(91, 143, 230, 0.06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 3px rgba(16, 92, 219, 0.14); }
.cm-choice-title { font-weight: 700; font-size: 14px; display: block; }
.cm-choice-desc { font-size: 12.5px; color: var(--cm-muted); display: block; margin-top: 2px; }
.cm-check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: 14px; margin: 0; line-height: 1.45; }
.cm-check input { margin-top: 2px; accent-color: var(--cm-accent); width: 18px; height: 18px; flex: none; }

/* Control segmentado tipo liquid glass */
.cm-segment { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--cm-glass-soft); border: 1px solid var(--cm-glass-border); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18); margin: 0 0 20px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cm-segment label, .cm-segment button { margin: 0; cursor: pointer; flex: none; }
.cm-segment input { position: absolute; opacity: 0; pointer-events: none; }
.cm-segment span, .cm-segment button { display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--cm-muted); border: 1px solid transparent; background: none; font-family: inherit; transition: background .25s, color .25s; white-space: nowrap; }
.cm-segment input:checked + span, .cm-segment button.is-on {
	color: #fff; border-color: rgba(143, 180, 255, 0.45);
	background: linear-gradient(180deg, #3d84f5, #105CDB);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px -6px var(--cm-glow);
}

/* ---------- Chips y alertas ---------- */
.cm-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--cm-chip); color: var(--cm-muted); border: 1px solid transparent; }
.cm-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.cm-chip-draft, .cm-chip-taken_down { color: var(--cm-faint); }
.cm-chip-draft::before, .cm-chip-taken_down::before { box-shadow: none; }
.cm-chip-submitted, .cm-chip-in_review, .cm-chip-pending, .cm-chip-waiting { color: #fbbf24; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.22); }
.cm-chip-changes_requested { color: #fb923c; background: rgba(249, 115, 22, 0.12); border-color: rgba(249, 115, 22, 0.25); }
.cm-chip-approved { color: var(--cm-accent-3); background: rgba(16, 92, 219, 0.18); border-color: rgba(91, 143, 230, 0.3); }
.cm-chip-uploaded { color: #c4b5fd; background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.28); }
.cm-chip-live { color: #4ade80; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.25); }
.cm-chip-rejected { color: #f87171; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.25); }
.cm-app[data-theme="light"] .cm-chip-submitted, .cm-app[data-theme="light"] .cm-chip-in_review, .cm-app[data-theme="light"] .cm-chip-pending, .cm-app[data-theme="light"] .cm-chip-waiting { color: #b45309; }
.cm-app[data-theme="light"] .cm-chip-changes_requested { color: #c2410c; }
.cm-app[data-theme="light"] .cm-chip-approved { color: var(--cm-accent); }
.cm-app[data-theme="light"] .cm-chip-uploaded { color: #6d28d9; }
.cm-app[data-theme="light"] .cm-chip-live { color: #15803d; }
.cm-app[data-theme="light"] .cm-chip-rejected { color: #b91c1c; }
.cm-chip-plain::before { display: none; }

.cm-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: linear-gradient(180deg, #3d84f5, #105CDB); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; box-shadow: 0 0 12px var(--cm-glow); }

.cm-alert { border-radius: 18px; padding: 15px 18px 15px 20px; font-size: 14px; border: 1px solid var(--cm-glass-border); background: var(--cm-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); margin-bottom: 16px; position: relative; overflow: hidden; }
.cm-alert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cm-faint); }
.cm-alert-error { border-color: rgba(239, 68, 68, 0.35); background: linear-gradient(90deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.04)); color: #fecaca; }
.cm-alert-error::before { background: var(--cm-danger); }
.cm-app[data-theme="light"] .cm-alert-error { color: #991b1b; }
.cm-alert-warn { border-color: rgba(245, 158, 11, 0.32); background: linear-gradient(90deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)); }
.cm-alert-warn::before { background: var(--cm-warn); }
.cm-alert-info { border-color: rgba(91, 143, 230, 0.35); background: linear-gradient(90deg, rgba(16, 92, 219, 0.2), rgba(16, 92, 219, 0.04)); }
.cm-alert-info::before { background: var(--cm-accent-2); }
.cm-alert-ok { border-color: rgba(34, 197, 94, 0.32); background: linear-gradient(90deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0.03)); }
.cm-alert-ok::before { background: var(--cm-ok); }
.cm-alert strong { display: block; margin-bottom: 3px; font-size: 14.5px; }
.cm-alert ul { margin-top: 6px; }
.cm-alert li { margin-bottom: 3px; }
.cm-alert-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Listas ---------- */
.cm-list { display: flex; flex-direction: column; }
.cm-list-item { display: flex; gap: 14px; align-items: center; padding: 12px; margin: 0 -12px; border-radius: 16px; cursor: pointer; min-width: 0; transition: background .2s; }
.cm-list-item + .cm-list-item { box-shadow: 0 -1px 0 var(--cm-line); }
.cm-list-item:hover { background: var(--cm-glass-soft); }
.cm-list-main { flex: 1; min-width: 0; }
.cm-list-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-list-meta { font-size: 13px; color: var(--cm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.cm-list-chip-inline { display: none; margin-top: 6px; }
.cm-thumb { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, rgba(16, 92, 219, 0.35), rgba(91, 143, 230, 0.12)); flex: none; overflow: hidden; display: grid; place-items: center; color: var(--cm-accent-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.cm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-empty { text-align: center; color: var(--cm-muted); padding: 40px 16px; }
.cm-empty-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; color: var(--cm-accent-3); background: linear-gradient(135deg, rgba(16, 92, 219, 0.3), rgba(91, 143, 230, 0.08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 10px 30px -10px var(--cm-glow); }
.cm-empty strong { display: block; color: var(--cm-text); font-size: 17px; margin-bottom: 4px; }
.cm-empty .cm-actions { justify-content: center; margin-top: 16px; }

.cm-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cm-filter { border: 1px solid var(--cm-glass-border); background: var(--cm-glass-soft); color: var(--cm-muted); border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; white-space: nowrap; transition: all .2s; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); flex: none; }
.cm-filter:hover { color: var(--cm-text); border-color: rgba(91, 143, 230, 0.4); }
.cm-filter.is-on { color: #fff; border-color: rgba(143, 180, 255, 0.45); background: linear-gradient(180deg, #3d84f5, #105CDB); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 18px -6px var(--cm-glow); }

/* ---------- Editor ---------- */
.cm-stepper { margin-bottom: 22px; }
.cm-steps { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.cm-steps::-webkit-scrollbar { display: none; }
.cm-step { display: flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--cm-glass-soft); color: var(--cm-muted); font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid var(--cm-glass-border); white-space: nowrap; font-family: inherit; transition: all .2s; flex: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cm-step:hover { color: var(--cm-text); }
.cm-step-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cm-chip); font-size: 12px; flex: none; }
.cm-step.is-on { color: var(--cm-text); border-color: rgba(91, 143, 230, 0.55); background: linear-gradient(135deg, rgba(16, 92, 219, 0.28), rgba(91, 143, 230, 0.08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 24px -10px var(--cm-glow); }
.cm-step.is-on .cm-step-num { background: linear-gradient(180deg, #3d84f5, #105CDB); color: #fff; box-shadow: 0 0 12px var(--cm-glow); }
.cm-step.is-done .cm-step-num { background: rgba(34, 197, 94, 0.18); color: var(--cm-ok); }
.cm-step-progress { display: none; }
.cm-editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; position: sticky; bottom: 16px; z-index: 20; padding: 10px 10px 10px 16px; border-radius: 24px; background: var(--cm-glass-strong); }
.cm-save-state { font-size: 13px; color: var(--cm-faint); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.cm-save-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cm-ok); box-shadow: 0 0 8px var(--cm-ok); }
.cm-save-state.is-dirty::before { background: var(--cm-warn); box-shadow: 0 0 8px var(--cm-warn); }

.cm-drop { border: 1.5px dashed rgba(91, 143, 230, 0.4); border-radius: var(--cm-radius); padding: 26px 20px; text-align: center; background: linear-gradient(180deg, rgba(16, 92, 219, 0.08), transparent), var(--cm-input); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; display: block; margin: 0; }
.cm-drop:hover, .cm-drop.is-over { border-color: var(--cm-accent-2); background: linear-gradient(180deg, rgba(16, 92, 219, 0.18), rgba(16, 92, 219, 0.04)), var(--cm-input); }
.cm-drop.is-over { transform: scale(1.01); }
.cm-drop input { display: none; }
.cm-drop-ico { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #3d84f5, #105CDB); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -8px var(--cm-glow); }
.cm-drop-title { font-weight: 700; display: block; }
.cm-drop-help { font-size: 12.5px; color: var(--cm-faint); display: block; margin-top: 4px; }
.cm-progress { height: 6px; border-radius: 999px; background: var(--cm-chip); overflow: hidden; margin-top: 12px; }
.cm-progress > div { height: 100%; background: linear-gradient(90deg, var(--cm-accent), var(--cm-accent-3)); width: 0; transition: width .2s; box-shadow: 0 0 12px var(--cm-glow); }
.cm-file { display: flex; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; border: 1px solid var(--cm-glass-border); border-radius: 16px; background: var(--cm-glass-soft); min-width: 0; }
.cm-file-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--cm-accent-3); background: rgba(16, 92, 219, 0.16); }
.cm-app[data-theme="light"] .cm-file-ico { color: var(--cm-accent); }
.cm-file-main { flex: 1; min-width: 0; }
.cm-file-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-file-meta { font-size: 12.5px; color: var(--cm-faint); }
.cm-cover-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.cm-cover-preview { width: 100%; aspect-ratio: 1; border-radius: var(--cm-radius); background: linear-gradient(135deg, rgba(16, 92, 219, 0.3), rgba(91, 143, 230, 0.06)); border: 1px solid var(--cm-glass-border); overflow: hidden; display: grid; place-items: center; color: var(--cm-accent-3); box-shadow: var(--cm-shadow); }
.cm-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cm-reqs { font-size: 14px; color: var(--cm-muted); }
.cm-reqs li { margin-bottom: 6px; }
.cm-app audio { width: 100%; height: 44px; border-radius: 999px; }

.cm-track { border-radius: var(--cm-radius); overflow: hidden; }
.cm-track + .cm-track { margin-top: 12px; }
.cm-track-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; cursor: pointer; }
.cm-track-num { width: 32px; height: 32px; border-radius: 11px; background: linear-gradient(180deg, rgba(61, 132, 245, 0.35), rgba(16, 92, 219, 0.2)); color: var(--cm-text); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.cm-track-tools { display: flex; gap: 2px; align-items: center; flex: none; }
.cm-track-body { border-top: 1px solid var(--cm-line); padding: 20px 18px; display: flex; flex-direction: column; gap: 26px; }
.cm-sub { display: flex; flex-direction: column; gap: 14px; }
.cm-sub-title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cm-accent-3); display: flex; align-items: center; gap: 10px; }
.cm-sub-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(91, 143, 230, 0.4), transparent); }
.cm-app[data-theme="light"] .cm-sub-title { color: var(--cm-accent); }
.cm-credit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.cm-credit-artist { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; }
.cm-ai { font-size: 12.5px; color: var(--cm-muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 4px; cursor: pointer; }
.cm-ai input { accent-color: var(--cm-accent); width: 16px; height: 16px; }

/* ---------- Detalle de lanzamiento ---------- */
.cm-detail-head { position: relative; overflow: hidden; display: flex; gap: 26px; align-items: center; margin-bottom: 22px; padding: 26px; border-radius: 28px; border: 1px solid var(--cm-glass-border); background: var(--cm-glass); box-shadow: inset 0 1px 0 var(--cm-glass-hi), var(--cm-shadow); }
.cm-detail-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(46px) saturate(150%); opacity: .55; z-index: 0; transform: scale(1.1); }
.cm-app[data-theme="light"] .cm-detail-bg { opacity: .35; }
.cm-detail-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 13, 0.55), rgba(5, 7, 13, 0.15)); z-index: 0; }
.cm-app[data-theme="light"] .cm-detail-head::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35)); }
.cm-detail-head > *:not(.cm-detail-bg) { position: relative; z-index: 1; }
.cm-detail-cover { width: 148px; height: 148px; border-radius: 20px; background: linear-gradient(135deg, rgba(16, 92, 219, 0.4), rgba(91, 143, 230, 0.1)); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--cm-accent-3); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.cm-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.cm-detail-info { min-width: 0; flex: 1; }
.cm-app .cm-detail-info .cm-page-title { font-size: 34px; margin: 10px 0 4px; word-break: break-word; }
.cm-detail-info .cm-page-sub { margin-top: 0; }
.cm-kv { display: grid; grid-template-columns: minmax(130px, 36%) 1fr; gap: 0; font-size: 14px; margin: 0; }
.cm-kv dt { color: var(--cm-muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--cm-line); }
.cm-kv dd { margin: 0; font-weight: 600; word-break: break-word; padding: 10px 0; border-bottom: 1px solid var(--cm-line); }
.cm-kv dt:last-of-type, .cm-kv dd:last-of-type { border-bottom: 0; }
.cm-timeline { display: flex; flex-direction: column; gap: 0; font-size: 13.5px; position: relative; }
.cm-timeline-item { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.cm-timeline-item::before { content: ""; position: absolute; left: 4px; top: 16px; bottom: 0; width: 1px; background: var(--cm-line); }
.cm-timeline-item:last-child::before { display: none; }
.cm-timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cm-accent-2); margin-top: 6px; flex: none; box-shadow: 0 0 10px var(--cm-glow); }
.cm-timeline-meta { color: var(--cm-faint); font-size: 12px; margin-top: 1px; }
.cm-status-card { display: flex; gap: 16px; align-items: flex-start; }
.cm-status-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(180deg, #3d84f5, #105CDB); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -8px var(--cm-glow); }
.cm-progress-steps { display: flex; gap: 6px; margin-top: 16px; }
.cm-progress-steps span { flex: 1; height: 5px; border-radius: 999px; background: var(--cm-chip); }
.cm-progress-steps span.is-on { background: linear-gradient(90deg, var(--cm-accent), var(--cm-accent-3)); box-shadow: 0 0 10px var(--cm-glow); }
.cm-progress-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--cm-faint); margin-top: 8px; gap: 6px; }

.cm-thread { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.cm-msg { max-width: 86%; padding: 12px 15px; border-radius: 18px 18px 18px 6px; background: var(--cm-glass-soft); border: 1px solid var(--cm-glass-border); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.cm-msg.is-mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, rgba(16, 92, 219, 0.4), rgba(91, 143, 230, 0.18)); border-color: rgba(91, 143, 230, 0.35); }
.cm-app[data-theme="light"] .cm-msg.is-mine { background: linear-gradient(135deg, rgba(16, 92, 219, 0.14), rgba(91, 143, 230, 0.08)); }
.cm-msg.is-internal { background: rgba(245, 158, 11, 0.1); border: 1px dashed rgba(245, 158, 11, 0.5); }
.cm-msg.is-change { border-color: rgba(249, 115, 22, 0.6); }
.cm-msg-meta { font-size: 11.5px; color: var(--cm-faint); margin-top: 6px; white-space: normal; }
.cm-thread-empty { text-align: center; color: var(--cm-muted); font-size: 14px; padding: 22px 10px; }
.cm-composer { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cm-line); }
.cm-app .cm-composer textarea.cm-input { min-height: 84px; }

.cm-copy-row { display: grid; grid-template-columns: minmax(140px, 30%) 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cm-line); font-size: 14px; }
.cm-copy-row:last-child { border-bottom: 0; }
.cm-copy-label { color: var(--cm-muted); }
.cm-copy-value { font-weight: 600; word-break: break-word; white-space: pre-wrap; max-height: 150px; overflow: auto; }
.cm-copy-step { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cm-accent-3); margin: 22px 0 6px; display: flex; align-items: center; gap: 10px; }
.cm-copy-step::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(91, 143, 230, 0.4), transparent); }
.cm-app[data-theme="light"] .cm-copy-step { color: var(--cm-accent); }
.cm-app .cm-copy-track { font-size: 15px; margin: 16px 0 4px; }

.cm-contract { background: var(--cm-input); border: 1px solid var(--cm-glass-border); border-radius: 18px; padding: 26px; max-height: 560px; overflow-y: auto; font-size: 14px; line-height: 1.75; }
.cm-app .cm-contract p { margin-bottom: 12px; }
.cm-contract p:first-child { text-align: center; font-size: 15px; letter-spacing: .02em; }

.cm-more { margin-top: 16px; border-top: 1px solid var(--cm-line); padding-top: 12px; }
.cm-more summary { cursor: pointer; color: var(--cm-muted); font-weight: 700; font-size: 13.5px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.cm-more summary::-webkit-details-marker { display: none; }
.cm-more summary::after { content: "▾"; font-size: 11px; }
.cm-more[open] summary::after { content: "▴"; }
.cm-more-body { margin-top: 12px; }

/* ---------- Modal, avisos y carga ---------- */
.cm-modal-back { position: fixed; inset: 0; background: rgba(2, 5, 14, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); z-index: 99998; display: grid; place-items: center; padding: 16px; animation: cm-fade .2s ease both; }
.cm-app.cm-modal-back { background: rgba(2, 5, 14, 0.55); }
.cm-modal { color: var(--cm-text); border-radius: 28px; padding: 28px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; font-family: var(--cm-font); animation: cm-pop .3s var(--cm-ease) both; background: var(--cm-glass-strong); }
.cm-app .cm-modal h3 { font-size: 21px; margin-bottom: 10px; }
.cm-modal .cm-actions { margin-top: 22px; justify-content: flex-end; }
@keyframes cm-fade { from { opacity: 0; } }
@keyframes cm-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.cm-toast-wrap { position: fixed; bottom: 28px; right: 28px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.cm-toast { color: #fff; padding: 13px 20px; border-radius: 16px; font-weight: 600; font-size: 14px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; background: rgba(10, 16, 32, 0.82); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 40px -12px rgba(0, 0, 0, 0.6); display: flex; align-items: center; gap: 10px; animation: cm-pop .3s var(--cm-ease) both; max-width: min(420px, calc(100vw - 32px)); }
.cm-toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; flex: none; }
.cm-toast.is-error::before { background: #f87171; box-shadow: 0 0 10px #f87171; }
.cm-boot { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 26px; }
.cm-boot-logo { height: 56px; display: flex; justify-content: center; }
.cm-boot-img { height: 56px; width: auto; animation: cm-breathe 1.6s ease-in-out infinite alternate; }
@keyframes cm-breathe { from { opacity: .6; } to { opacity: 1; } }
.cm-loading { min-height: 40vh; display: grid; place-items: center; }
.cm-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--cm-chip); border-top-color: var(--cm-accent-2); animation: cm-spin .8s linear infinite; box-shadow: 0 0 20px -4px var(--cm-glow); }
@keyframes cm-spin { to { transform: rotate(360deg); } }

/* ---------- Login y postulación (pantalla completa) ---------- */
.cm-auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
.cm-auth-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 40px; gap: 12px; }
.cm-auth-brand { display: inline-flex; }
.cm-auth-brand:hover { text-decoration: none; }
.cm-auth-logo { height: 44px; width: auto; }
.cm-auth-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 460px); gap: 64px; align-items: center; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 40px 48px; }
.cm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cm-accent-3); padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(91, 143, 230, 0.35); background: rgba(16, 92, 219, 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cm-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cm-accent-2); box-shadow: 0 0 12px var(--cm-accent-2); }
.cm-app[data-theme="light"] .cm-eyebrow { color: var(--cm-accent); }
.cm-app .cm-display { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.045em; margin: 22px 0 18px; font-weight: 800; }
.cm-gradient-text { background: linear-gradient(100deg, #8fb4ff 0%, #5B8FE6 40%, #105CDB 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cm-app[data-theme="light"] .cm-gradient-text { background: linear-gradient(100deg, #3d84f5, #105CDB 60%, #0a3fa3); -webkit-background-clip: text; background-clip: text; }
.cm-lead { font-size: 17px; color: var(--cm-muted); max-width: 520px; line-height: 1.6; }
.cm-app .cm-feature-list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cm-feature-list li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 10px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--cm-glass); border: 1px solid var(--cm-glass-border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 var(--cm-glass-hi); }
.cm-feature-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #3d84f5, #105CDB); box-shadow: 0 0 12px var(--cm-glow); flex: none; }
.cm-app .cm-steps-list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.cm-steps-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--cm-glass); border: 1px solid var(--cm-glass-border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 var(--cm-glass-hi); color: var(--cm-muted); font-size: 14px; }
.cm-steps-list li > span { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; background: linear-gradient(180deg, #3d84f5, #105CDB); box-shadow: 0 0 14px var(--cm-glow); }
.cm-steps-list strong { display: block; color: var(--cm-text); font-size: 15px; }
.cm-auth-card { border-radius: 32px; padding: 36px 32px 32px; display: flex; flex-direction: column; }
.cm-auth-card-icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; background: linear-gradient(180deg, #3d84f5, #105CDB); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 34px -10px var(--cm-glow); }
.cm-auth-title { font-size: 26px; letter-spacing: -0.03em; }
.cm-app .cm-auth-title { margin-bottom: 8px; }
.cm-app .cm-auth-text { color: var(--cm-muted); margin-bottom: 24px; }
.cm-app .cm-auth-legal { font-size: 12.5px; color: var(--cm-faint); text-align: center; margin-top: 14px; }
.cm-auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: var(--cm-faint); font-size: 13px; }
.cm-auth-divider::before, .cm-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--cm-line); }
.cm-auth-foot { text-align: center; color: var(--cm-faint); font-size: 13px; padding: 18px 16px 26px; }
.cm-apply-main { align-items: start; padding-top: 40px; }
.cm-apply-main .cm-auth-intro { position: sticky; top: 40px; }
.cm-app .cm-apply-card .cm-auth-title { margin-bottom: 18px; }
.cm-apply-card .cm-field { margin-bottom: 16px; }
.cm-apply-card .cm-grid-2 { gap: 0 14px; }
.cm-apply-status:empty { display: none; }
.cm-apply-done { text-align: center; padding: 30px 6px 10px; }
.cm-apply-done .cm-auth-card-icon { margin: 0 auto 20px; }
.cm-app .cm-apply-done h3 { font-size: 24px; margin-bottom: 8px; }
.cm-app .cm-apply-done p { color: var(--cm-muted); margin-bottom: 22px; }

/* ---------- Pantallas medianas: barra lateral compacta ---------- */
.cm-side-mark { display: none; width: 52px; height: 52px; border-radius: 18px; place-items: center; margin: 2px auto 22px; background: linear-gradient(180deg, #3d84f5, #105CDB); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px -8px var(--cm-glow); }
@container cm (max-width: 1120px) {
	.cm-shell { grid-template-columns: 96px minmax(0, 1fr); }
	.cm-side { padding: 18px 10px 14px; align-items: center; }
	.cm-side-logo { display: none !important; }
	.cm-side-mark { display: grid; }
	.cm-nav-item { justify-content: center; padding: 13px; width: 58px; }
	.cm-nav-label { position: absolute; left: 70px; padding: 7px 11px; border-radius: 10px; background: var(--cm-glass-strong); border: 1px solid var(--cm-glass-border); font-size: 13px; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: all .2s; z-index: 50; color: var(--cm-text); box-shadow: var(--cm-shadow); }
	.cm-nav-item:hover .cm-nav-label, .cm-nav-item:focus-visible .cm-nav-label { opacity: 1; transform: none; }
	.cm-nav-item .cm-badge { position: absolute; top: 3px; right: 3px; margin: 0; height: 18px; min-width: 18px; font-size: 10.5px; }
	.cm-side-foot { align-items: center; padding: 14px 0 0; width: 100%; }
	.cm-user { padding: 0; justify-content: center; }
	.cm-user > div:last-child { display: none; }
	.cm-side-actions { flex-direction: column; align-items: center; }
	.cm-side-actions .cm-btn { width: 42px; padding: 0; flex: none; }
	.cm-side-actions .cm-btn span { display: none; }
	.cm-main { padding: 32px 30px 60px; }
	.cm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container cm (max-width: 980px) {
	.cm-cols { grid-template-columns: minmax(0, 1fr); }
	.cm-sticky { position: static; }
	.cm-auth-main { grid-template-columns: minmax(0, 1fr); gap: 34px; max-width: 560px; padding: 10px 24px 40px; }
	.cm-apply-main .cm-auth-intro { position: static; }
	.cm-app .cm-display { font-size: clamp(36px, 8vw, 52px); margin-top: 18px; }
	.cm-cover-wrap { grid-template-columns: 200px minmax(0, 1fr); }
}

/* ---------- Celular ---------- */
@container cm (max-width: 760px) {
	.cm-shell { grid-template-columns: minmax(0, 1fr); }
	.cm-side { display: none; }
	.cm-mobile-top {
		display: flex; align-items: center; justify-content: space-between; gap: 10px;
		position: sticky; top: 0; z-index: 40; margin: 0; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 18px;
		border-radius: 0 0 24px 24px; border-top: 0; background: var(--cm-glass-strong);
	}
	.cm-mobile-top .cm-mobile-logo { height: 30px; width: auto; }
	.cm-mobile-top .cm-row { gap: 6px; flex-wrap: nowrap; }
	.cm-mobile-top .cm-avatar { width: 34px; height: 34px; font-size: 14px; }
	.cm-main { padding: 22px 16px calc(120px + env(safe-area-inset-bottom)); }
	.cm-page-head { margin-bottom: 18px; }
	.cm-page-title { font-size: 28px; }
	.cm-bottom-nav {
		display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
		position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 9990;
		padding: 7px; border-radius: 30px;
	}
	.cm-bottom-nav button { position: relative; background: none; border: 1px solid transparent; color: var(--cm-faint); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 8px 2px 7px; border-radius: 23px; cursor: pointer; font-family: inherit; transition: color .2s, background .25s; min-width: 0; }
	.cm-nav-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
	.cm-bottom-nav button.is-active { color: #fff; background: linear-gradient(180deg, rgba(61, 132, 245, 0.75), rgba(16, 92, 219, 0.75)); border-color: rgba(143, 180, 255, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 20px -6px var(--cm-glow); }
	.cm-bottom-nav .cm-badge { position: absolute; top: 2px; right: calc(50% - 24px); height: 17px; min-width: 17px; font-size: 10px; }
	.cm-grid-2, .cm-grid-3 { grid-template-columns: minmax(0, 1fr); }
	.cm-card { padding: 20px 16px; border-radius: 20px; }
	.cm-hero { padding: 24px 20px; border-radius: 24px; }
	.cm-hero h2 { font-size: 26px; }
	.cm-hero-art { width: 200px; height: 200px; right: -80px; opacity: .3; }
	.cm-stats { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cm-stat { padding: 15px 13px; border-radius: 18px; }
	.cm-stat-num { font-size: 26px; }
	.cm-stat-label { font-size: 12px; line-height: 1.3; }
	.cm-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px 6px; scrollbar-width: none; }
	.cm-filters::-webkit-scrollbar { display: none; }
	.cm-list-chip { display: none; }
	.cm-list-chip-inline { display: block; }
	.cm-thumb { width: 50px; height: 50px; }
	.cm-steps .cm-step:not(.is-on) .cm-step-label { display: none; }
	.cm-step { padding: 6px; }
	.cm-step.is-on { padding-right: 16px; }
	.cm-step-progress { display: block; height: 4px; border-radius: 999px; background: var(--cm-chip); margin-top: 8px; overflow: hidden; }
	.cm-step-progress > div { height: 100%; background: linear-gradient(90deg, var(--cm-accent), var(--cm-accent-3)); box-shadow: 0 0 10px var(--cm-glow); transition: width .3s var(--cm-ease); }
	.cm-editor-foot { bottom: calc(98px + env(safe-area-inset-bottom)); padding: 8px 8px 8px 14px; flex-wrap: nowrap; }
	.cm-editor-foot .cm-btn-lg { padding: 12px 18px; font-size: 15px; min-height: 46px; }
	.cm-editor-foot .cm-save-state { font-size: 12px; }
	.cm-cover-wrap { grid-template-columns: minmax(0, 1fr); }
	.cm-cover-preview { max-width: 300px; margin: 0 auto; }
	.cm-credit, .cm-credit-artist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; padding: 10px; border-radius: 14px; background: var(--cm-glass-soft); border: 1px solid var(--cm-glass-border); }
	.cm-credit > *:first-child { grid-column: 1 / -1; }
	.cm-credit-artist > *:nth-child(3) { grid-column: 1 / 3; }
	.cm-copy-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
	.cm-copy-label { grid-column: 1 / -1; font-size: 12.5px; }
	.cm-detail-head { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 24px; }
	.cm-detail-cover { width: 120px; height: 120px; }
	.cm-app .cm-detail-info .cm-page-title { font-size: 26px; }
	.cm-kv { grid-template-columns: minmax(0, 1fr); }
	.cm-kv dt { padding: 10px 0 0; border-bottom: 0; font-size: 12.5px; }
	.cm-kv dd { padding: 2px 0 10px; }
	.cm-msg { max-width: 92%; }
	.cm-track-head { padding: 12px; gap: 8px; }
	.cm-track-tools .cm-btn-icon { width: 34px; height: 34px; }
	.cm-track-body { padding: 18px 14px; }
	.cm-toast-wrap { right: 16px; left: 16px; bottom: calc(102px + env(safe-area-inset-bottom)); align-items: center; }
	.cm-modal { padding: 24px 18px 18px; border-radius: 26px; }
	.cm-modal .cm-actions .cm-btn { flex: 1; }
	.cm-auth-top { padding: 14px 16px; }
	.cm-auth-logo { height: 34px; }
	.cm-auth-main { padding: 6px 16px 30px; gap: 26px; }
	.cm-auth-card { padding: 28px 20px 22px; border-radius: 28px; }
	.cm-lead { font-size: 15.5px; }
	.cm-app .cm-display { font-size: 36px; margin: 16px 0 12px; }
	.cm-auth:not(.cm-apply) .cm-feature-list { display: none; }
	.cm-apply .cm-steps-list { display: none; }
	.cm-auth:not(.cm-apply) .cm-auth-main { align-content: start; }
	.cm-auth-card-icon { width: 50px; height: 50px; border-radius: 16px; margin-bottom: 16px; }
	.cm-app .cm-steps-list { margin-top: 22px; }
	.cm-segment { display: flex; }
	.cm-segment label, .cm-segment > button { flex: 1; }
	.cm-segment span, .cm-segment button { justify-content: center; }
	.cm-actions-stack { flex-direction: column; align-items: stretch; }
	.cm-actions-stack .cm-btn { width: 100%; }
	.cm-page-head .cm-actions { width: 100%; }
	.cm-page-head .cm-actions .cm-btn-primary, .cm-page-head .cm-actions .cm-btn-danger-solid { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.cm-app *, .cm-app *::before, .cm-app *::after { animation: none !important; transition: none !important; }
}

/* Embebido con shortcode en otra página: marco redondeado. */
.cm-outer { width: 100%; max-width: 1340px; margin-left: auto; margin-right: auto; }
body:not(.cm-standalone) .cm-app-full, body:not(.cm-standalone) .cm-auth { border-radius: 28px; overflow: hidden; min-height: 80vh; }
body:not(.cm-standalone) .cm-side { height: auto; min-height: 70vh; }
