@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Archivo Black'; src: url('fonts/ArchivoBlack-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #08080a;
  --panel: #121215;
  --panel2: #18181c;
  --line: #24242a;
  --line2: #2e2e36;
  --txt: #f4f4f6;
  --mut: #9a9aa6;
  --mut2: #6c6c78;
  --red: #ff1f4b;
  --pink: #e8358f;
  --vio: #8b3dff;
  --blue: #3d7bff;
  --green: #2bd17e;
  --amber: #ffb020;
  --grad: linear-gradient(90deg, #ff1f4b 0%, #e8358f 55%, #8b3dff 100%);
  --grad2: linear-gradient(135deg, #ff1f4b, #8b3dff);
  --r: 16px;
  --r2: 12px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--txt); font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 500px at 12% -10%, rgba(255,31,75,.18), transparent 60%), radial-gradient(800px 500px at 100% 0%, rgba(139,61,255,.14), transparent 60%), radial-gradient(700px 400px at 50% 110%, rgba(255,31,75,.08), transparent 60%); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
.hidden { display: none !important; }
.mut { color: var(--mut); }
.mut2 { color: var(--mut2); }
.mono { font-variant-numeric: tabular-nums; }
.grad-txt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------- Barra superior --------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 14px 24px; background: rgba(8,8,10,.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand b { white-space: nowrap; }
.logo { width: 38px; height: 38px; border-radius: 11px; background: var(--grad2); display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(255,31,75,.7); flex: none; }
.logo svg { width: 18px; height: 18px; }
.brand b { font-size: 17px; font-weight: 800; letter-spacing: -.2px; display: block; line-height: 1.1; }
.brand small { color: var(--mut); font-size: 11px; font-weight: 500; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 12px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; text-decoration: none; color: #c9c9d2; font-weight: 600; font-size: 13.5px; border: 1px solid transparent; white-space: nowrap; }
.nav a svg { width: 16px; height: 16px; opacity: .85; }
.nav a:hover { background: var(--panel2); }
.nav a.on { background: var(--panel2); border-color: var(--line2); color: #fff; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; color: #d8d8e0; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mut2); flex: none; }
.dot.g { background: var(--green); box-shadow: 0 0 0 3px rgba(43,209,126,.18); }
.dot.r { background: var(--red); box-shadow: 0 0 0 3px rgba(255,31,75,.18); }
.dot.a { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,176,32,.18); }
.dot.b { background: var(--blue); }
.dot.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.minibar { width: 54px; height: 5px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.minibar i { display: block; height: 100%; background: var(--grad); }

/* --------- Layout --------- */
main { max-width: 1440px; margin: 0 auto; padding: 26px 24px 120px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card.tight { padding: 16px; }
.card h2, h1 { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
h1.page { font-size: 28px; margin-bottom: 18px; }
h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .9px; text-transform: uppercase; color: var(--mut); font-weight: 700; }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 12px; }
.sec-title h2 { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 10px; }
.count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--panel2); border: 1px solid var(--line2); display: inline-grid; place-items: center; font-size: 12.5px; color: var(--mut); }
.link { color: #d9d9e2; text-decoration: none; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: 0; padding: 0; }
.link:hover { color: #fff; }
.link svg { width: 15px; height: 15px; flex: none; }
summary.link { list-style: none; }
summary.link::-webkit-details-marker { display: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* --------- Botones y campos --------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .08s, filter .15s, background .15s; }
.btn:hover { background: #202026; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.pri { background: var(--grad); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(255,31,75,.75); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.big { padding: 15px 26px; font-size: 15px; border-radius: 14px; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff7d95; }
.btn.ok { background: linear-gradient(90deg, #12b26a, #2bd17e); border-color: transparent; color: #04110a; }
.btn[disabled] { opacity: .45; pointer-events: none; }
label.f { display: block; font-size: 12px; font-weight: 700; color: var(--mut); margin: 0 0 7px; letter-spacing: .2px; }
.in, select.in, textarea.in { width: 100%; padding: 12px 14px; border-radius: 12px; background: #0c0c0f; border: 1px solid var(--line2); outline: none; transition: border .15s, box-shadow .15s; }
.in:focus { border-color: #ff4a6e; box-shadow: 0 0 0 3px rgba(255,31,75,.16); }
textarea.in { resize: vertical; min-height: 80px; line-height: 1.45; }
select.in { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239a9aa6' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.hint { font-size: 12px; color: var(--mut2); margin-top: 6px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: #0d0d10; border: 1px solid var(--line2); font-weight: 600; font-size: 13px; cursor: pointer; user-select: none; color: #d4d4dc; transition: all .12s; }
.chip:hover { border-color: #3c3c46; }
.chip.on { background: rgba(255,31,75,.12); border-color: #ff3b62; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,59,98,.25); }
.chip svg { width: 16px; height: 16px; }
.chip.big { padding: 13px 18px; border-radius: 14px; font-size: 14px; flex: 1 1 130px; justify-content: center; flex-direction: column; gap: 6px; }
.chip.big svg { width: 24px; height: 24px; }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: #0c0c0f; border: 1px solid var(--line2); border-radius: 12px; padding: 3px; }
.seg button { white-space: nowrap; flex: none; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--mut); }
.seg button.on { background: var(--panel2); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 0 0 1px var(--line2); }
.toggle { position: relative; width: 44px; height: 26px; border-radius: 13px; background: #2a2a31; cursor: pointer; border: 0; flex: none; transition: background .15s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle.on { background: var(--red); }
.toggle.on::after { left: 21px; }

/* --------- Estudio --------- */
.studio-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.urlbox { margin-bottom: 4px; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--mut2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.drop { border: 1.5px dashed #34343d; border-radius: 16px; padding: 18px; background: rgba(0,0,0,.25); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; transition: border .15s, background .15s; }
.drop.over { border-color: var(--red); background: rgba(255,31,75,.06); }
.drop .add { width: 112px; height: 140px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); display: grid; place-items: center; cursor: pointer; text-align: center; color: var(--mut); font-size: 12px; font-weight: 600; padding: 8px; }
.drop .add svg { width: 26px; height: 26px; margin: 0 auto 6px; color: #fff; }
.thumb { position: relative; width: 112px; height: 140px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line2); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb .x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-weight: 800; }
.thumb .n { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 800; background: rgba(0,0,0,.7); padding: 3px 7px; border-radius: 7px; }
.drop-help { flex: 1 1 220px; min-width: 200px; color: var(--mut); font-size: 13px; line-height: 1.5; }
.drop-help b { color: #fff; }
.blk { margin-top: 20px; }
.gen-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.est { font-size: 13px; color: var(--mut); }
.est b { color: #fff; }

/* --------- Tarjetas de video en marcha --------- */
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.vrow { display: flex; gap: 16px; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border .15s, transform .15s; position: relative; overflow: hidden; }
.vrow:hover { border-color: #3a3a44; }
.vrow.live::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); }
.vthumb { width: 86px; height: 152px; border-radius: 12px; overflow: hidden; flex: none; background: #1a1a1f; position: relative; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb .dur { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.72); font-size: 11px; font-weight: 800; padding: 3px 6px; border-radius: 6px; }
.vbody { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.vtitle { font-weight: 800; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcost { font-weight: 800; color: #ff5577; text-align: right; font-size: 15px; line-height: 1.1; }
.vcost small { display: block; color: var(--mut2); font-size: 11px; font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #1c1c22; border: 1px solid var(--line2); color: #cfcfd8; white-space: nowrap; }
.tag.st-trabajando, .tag.st-en_cola { color: #8ff0bd; background: rgba(43,209,126,.08); border-color: rgba(43,209,126,.3); }
.tag.st-por_aprobar { color: #ffd27a; background: rgba(255,176,32,.08); border-color: rgba(255,176,32,.35); }
.tag.st-publicado, .tag.st-programado { color: #9cc0ff; background: rgba(61,123,255,.1); border-color: rgba(61,123,255,.35); }
.tag.st-error, .tag.st-detenido { color: #ff8aa0; background: rgba(255,31,75,.1); border-color: rgba(255,31,75,.35); }
.tag.st-espera_gasto { color: #ffb020; background: rgba(255,176,32,.1); border-color: rgba(255,176,32,.4); }
.tag.st-publicando { color: #c9a4ff; background: rgba(139,61,255,.12); border-color: rgba(139,61,255,.4); }
.tag.st-descartado { color: var(--mut); }
.prog { height: 6px; border-radius: 4px; background: #24242b; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--grad); border-radius: 4px; transition: width .6s; }
.prog.done i { background: linear-gradient(90deg, #ff1f4b, #8b3dff); }
.step { font-size: 12.5px; color: var(--mut); display: flex; gap: 8px; align-items: center; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(43,209,126,.25); border-top-color: var(--green); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--line2); border-radius: var(--r); color: var(--mut); }
.empty .logo { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 15px; }
.empty b { color: #fff; font-size: 16px; display: block; margin-bottom: 6px; }

/* --------- Barra lateral --------- */
.side .card + .card { margin-top: 16px; }
.big-num { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.kv { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv:first-of-type { border-top: 0; }
.kv .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 900; font-size: 14px; }
.kv .ic svg { width: 18px; height: 18px; }
.kv .t { flex: 1; min-width: 0; }
.kv .t b { display: block; font-size: 14px; }
.kv .t small { color: var(--mut); font-size: 12px; }
.kv .v { text-align: right; font-weight: 800; font-size: 18px; }
.kv .v small { display: block; color: var(--mut2); font-size: 11px; font-weight: 600; }
.stack-bar { height: 8px; border-radius: 5px; background: #24242b; overflow: hidden; display: flex; margin: 10px 0 8px; }
.stack-bar i { display: block; height: 100%; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.3); color: #ffe0a3; font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.banner.info { background: rgba(61,123,255,.08); border-color: rgba(61,123,255,.3); color: #c7d8ff; }
.banner.bad { background: rgba(255,31,75,.08); border-color: rgba(255,31,75,.35); color: #ffc2ce; }

/* --------- Tus videos --------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 11px 14px; font-weight: 700; color: var(--mut); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13.5px; }
.tabs button.on { color: #fff; border-bottom-color: #ff3b62; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.vcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: transform .15s, border .15s; }
.vcard:hover { transform: translateY(-2px); border-color: #3a3a44; }
.vcard .ph { aspect-ratio: 9/16; background: #1a1a1f; position: relative; overflow: hidden; }
.vcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.vcard .ph .tag { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(6px); background: rgba(0,0,0,.6); }
.vcard .ph .prog { position: absolute; left: 10px; right: 10px; bottom: 10px; }
.vcard .meta { padding: 12px 13px 14px; }
.vcard .meta b { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; min-height: 35px; }
.vcard .meta .row { margin-top: 8px; font-size: 12px; color: var(--mut); }

/* --------- Detalle --------- */
.dhead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dhead h1 { font-size: 20px; margin: 0; flex: 1; min-width: 0; line-height: 1.3; }
.back { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel); display: grid; place-items: center; cursor: pointer; flex: none; }
.back svg { width: 18px; height: 18px; }
.dgrid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: start; }
.player { aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line2); position: relative; }
.player video, .player img { width: 100%; height: 100%; object-fit: cover; }
.player .ph-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--mut); background: radial-gradient(400px 300px at 50% 40%, rgba(255,31,75,.12), transparent), #0c0c0f; }
.fotos { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fotos img { width: 62px; height: 78px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line2); }
.status { display: flex; gap: 18px; align-items: center; }
.ring { width: 78px; height: 78px; flex: none; position: relative; }
.ring svg { width: 78px; height: 78px; transform: rotate(-90deg); }
.ring .c { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 16px; }
.ring .c svg { width: 28px; height: 28px; transform: none; }
.stages { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; margin-top: 14px; }
.stage-bars { display: grid; gap: 10px; }
.sb { display: grid; grid-template-columns: 22px 92px 1fr 56px; gap: 10px; align-items: center; font-weight: 600; font-size: 13px; }
.sb svg { width: 16px; height: 16px; color: #ff4f72; }
.sb .bar { height: 8px; border-radius: 5px; background: #22222a; overflow: hidden; }
.sb .bar i { display: block; height: 100%; background: var(--grad); border-radius: 5px; }
.sb .bar i.run { background: linear-gradient(90deg, #ff1f4b, #e8358f, #8b3dff, #ff1f4b); background-size: 200% 100%; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.sb .bar i.fail { background: #ff1f4b; }
.sb .tm { color: var(--mut); text-align: right; font-size: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: #0e0e11; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; }
.tile small { color: var(--mut); font-size: 11.5px; font-weight: 600; display: block; }
.tile b { font-size: 19px; font-weight: 900; display: block; margin-top: 3px; }
.tile em { font-style: normal; color: var(--mut2); font-size: 11px; }
.tile.hl { border-color: rgba(255,31,75,.45); background: rgba(255,31,75,.06); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); align-items: center; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pcard { background: #0e0e11; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pcard .hd { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.pcard .hd .ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,31,75,.1); display: grid; place-items: center; }
.pcard .hd .ico svg { width: 16px; height: 16px; color: #ff4f72; }
.pcard .hd .tm { margin-left: auto; font-size: 12.5px; color: var(--mut); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.pline { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 5px 0; color: #d6d6de; }
.pline i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b62; margin-top: 6px; flex: none; }
.pline i.run { background: var(--green); animation: pulse 1s infinite; }
.pline i.omit { background: var(--mut2); }
.pline i.fail { background: #ff1f4b; box-shadow: 0 0 0 3px rgba(255,31,75,.25); }
.pline span { flex: 1; }
.pline em { font-style: normal; color: var(--mut); font-size: 12px; white-space: nowrap; }
.pline small { display: block; color: var(--mut2); font-size: 11.5px; margin-top: 2px; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.scard { background: #0e0e11; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.scard .ph { aspect-ratio: 9/16; background: #18181c; position: relative; }
.scard .ph img, .scard .ph video { width: 100%; height: 100%; object-fit: cover; }
.scard .ph .n { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.7); font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 7px; }
.scard .bd { padding: 10px 12px 12px; font-size: 12.5px; }
.scard .bd p { margin: 0 0 8px; color: #d6d6de; line-height: 1.4; }
.warnline { color: #ffb4c2; font-size: 12px; margin: 4px 0; }
.log { font-size: 12.5px; }
.log div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.log time { color: var(--mut2); font-variant-numeric: tabular-nums; }
.log .warn { color: #ffd27a; }
.log .error { color: #ff8aa0; }
.score { font-size: 46px; font-weight: 900; line-height: 1; }
ul.clean { margin: 6px 0 0; padding-left: 18px; color: #d6d6de; line-height: 1.6; }
.edit-scene { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.edit-scene img { width: 70px; aspect-ratio: 9/16; object-fit: cover; border-radius: 9px; }

/* --------- Tablas --------- */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: rgba(255,255,255,.02); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: 170px; }
.cost-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* --------- Música / modelos --------- */
.track { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad2); color: #fff; display: grid; place-items: center; cursor: pointer; }
.play svg { width: 16px; height: 16px; }
.track input.nm { background: transparent; border: 0; font-weight: 700; font-size: 14px; width: 100%; padding: 2px 0; outline: none; }
.track .chips { margin-top: 7px; }
.track .chip { padding: 4px 10px; font-size: 11.5px; }
.star { background: none; border: 0; cursor: pointer; color: var(--mut2); font-size: 20px; }
.star.on { color: #ffcc33; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mcard img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #1a1a1f; }
.mcard .bd { padding: 12px; }

/* --------- Ajustes --------- */
.set-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { position: sticky; top: 90px; display: grid; gap: 4px; }
.set-nav a { padding: 10px 14px; border-radius: 11px; text-decoration: none; color: var(--mut); font-weight: 700; font-size: 13.5px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.set-nav a.on, .set-nav a:hover { background: var(--panel); color: #fff; }
.set-nav a .dot { margin-left: auto; }
.set-sec { scroll-margin-top: 90px; }
.set-sec + .set-sec { margin-top: 18px; }
.set-sec .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.set-sec .hd .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; }
.set-sec .hd .ic svg { width: 20px; height: 20px; }
.set-sec .hd p { margin: 2px 0 0; color: var(--mut); font-size: 13px; }
.voice { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.voice b { display: block; font-size: 13.5px; }
.voice small { color: var(--mut); }
.copy { display: flex; gap: 8px; }
.copy .in { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
ol.steps { margin: 8px 0 0; padding-left: 20px; color: #d0d0d8; line-height: 1.7; font-size: 13px; }
ol.steps code, .hint code, p code { background: #1d1d23; border: 1px solid var(--line2); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* --------- Login / onboarding / modales --------- */
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth { width: 100%; max-width: 420px; text-align: center; padding: 34px 32px; }
.auth .logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px; }
.auth .logo svg { width: 28px; height: 28px; }
.auth h1 { font-size: 26px; margin-bottom: 6px; }
.auth form { text-align: left; margin-top: 24px; display: grid; gap: 14px; }
.err { color: #ff8aa0; font-size: 13px; min-height: 18px; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(6px); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.modal.wide { max-width: 880px; }
.modal h2 { margin: 0 0 6px; font-size: 22px; }
.modal .foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; align-items: center; }
.steps-bar { display: flex; gap: 6px; margin-bottom: 22px; }
.steps-bar i { flex: 1; height: 4px; border-radius: 3px; background: #2a2a31; }
.steps-bar i.on { background: var(--grad); }
.kicker { color: #ff4f72; font-weight: 800; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 6px; }
.flow { display: flex; align-items: flex-start; justify-content: space-between; margin: 26px 0 10px; gap: 4px; position: relative; }
.flow::before { content: ''; position: absolute; left: 6%; right: 6%; top: 30px; height: 2px; background: linear-gradient(90deg, #ff1f4b, #e8358f, #8b3dff); opacity: .65; }
.flow .st { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; text-align: center; }
.flow .st .ic { width: 60px; height: 60px; border-radius: 18px; background: #141418; border: 1px solid var(--line2); display: grid; place-items: center; }
.flow .st .ic svg { width: 24px; height: 24px; color: #ff6684; }
.flow .st.last .ic { background: var(--grad2); border-color: transparent; }
.flow .st.last .ic svg { color: #fff; }
.flow .st b { font-size: 13px; }
.flow .st small { font-size: 11px; color: var(--mut); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #1d1d23; border: 1px solid var(--line2); padding: 12px 18px; border-radius: 12px; z-index: 99; font-weight: 600; box-shadow: var(--shadow); max-width: 92vw; animation: up .2s; }
.toast.bad { border-color: rgba(255,31,75,.5); color: #ffc2ce; }
@keyframes up { from { transform: translate(-50%, 10px); opacity: 0; } }

/* --------- Barra inferior (celular) --------- */
.bottom { display: none; }

@media (max-width: 1560px) {
  .brand small { display: none; }
  .top-right .pill.wide { display: none; }
}
@media (max-width: 1400px) {
  .nav { margin-left: 4px; }
  .nav a { padding: 9px 11px; }
}
@media (max-width: 1100px) {
  .grid2 { grid-template-columns: 1fr; }
  .dgrid { grid-template-columns: 1fr; }
  .dgrid .player { max-width: 360px; margin: 0 auto; }
  .stages { grid-template-columns: 1fr; }
  .cost-cards { grid-template-columns: 1fr 1fr; }
  .nav a span.lbl { display: none; }
}
@media (max-width: 820px) {
  .top { padding: 12px 16px; }
  .nav, .top-right .pill.wide { display: none; }
  main { padding: 18px 14px 110px; }
  .card { padding: 18px; }
  .vlist { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs button { white-space: nowrap; }
  .dhead .lbl { display: none; }
  .pgrid { grid-template-columns: 1fr; }
  .cost-cards { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr; }
  .set-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .set-nav a { white-space: nowrap; background: var(--panel); }
  .edit-scene { grid-template-columns: 56px 1fr; }
  .edit-scene > :last-child { grid-column: 1 / -1; }
  .flow { flex-wrap: wrap; justify-content: center; }
  .flow::before { display: none; }
  .flow .st { flex: 0 0 30%; }
  h1.page { font-size: 23px; }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(12,12,15,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bottom a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--mut); text-decoration: none; padding: 4px 6px; position: relative; min-width: 54px; }
  .bottom a svg { width: 21px; height: 21px; }
  .bottom a.on { color: #fff; }
  .bottom a.on svg { color: #ff4f72; }
  .bottom a .badge { position: absolute; top: -2px; right: 6px; }
  .modal { padding: 20px; }
  table.t .hide-m { display: none; }
}
