/* Pantallas de la app (biblioteca, ajustes, panel del dueño, entrar, legales).
   Usa las variables de base.css. Nada de esto toca la página de revisión (/v/<id>). */

svg.i { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font: 500 11.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); }
.h1 { font: 400 46px/1.02 var(--serif); letter-spacing: -.012em; margin: 10px 0 0; text-wrap: balance; }
.small { font-size: 12.5px; color: var(--ink-mute); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #d43f44; border-color: #d43f44; }
.btn .spin { width: 15px; height: 15px; }
.soon { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--yellow-tint); color: #7a5600; font: 500 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.hide-m { }
.only-m { display: none !important; }

/* ===== Estructura: menú a la izquierda + contenido ===== */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 28px 14px 18px; border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: thin; }
.side > .wordmark { font-size: 34px; padding: 0 10px; margin-bottom: 38px; }
.nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--ink-soft); font-size: 14px; text-decoration: none; text-align: left; cursor: pointer; position: relative; }
.nav:hover { background: rgba(21, 20, 18, .045); color: var(--ink); }
.nav.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.nav .c { margin-left: auto; font: 500 11.5px/1 var(--mono); color: var(--ink-mute); }
.nav .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .lbl.fl { display: flex; align-items: baseline; gap: 4px; }
.nav .fp { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-mute); font-size: 12.5px; }
.nav .fh { flex: 0 1 auto; min-width: 2.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav.on .fp { color: var(--ink-mute); }
.nav.sub.n1 { padding-left: 52px; }
.nav.sub.n2 { padding-left: 66px; }
.nav.sub.n1::before, .nav.sub.n2::before { content: ""; position: absolute; left: 41px; top: 50%; width: 6px; height: 1px; background: var(--line-2); }
.nav.sub.n2::before { left: 55px; }
.nav.sub { padding-left: 37px; font-size: 13.5px; min-height: 33px; }
.fw { position: relative; }
.fw .fm { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--ink-mute); display: inline-flex; opacity: 0; align-items: center; justify-content: center; cursor: pointer; }
.fw .fm:hover { background: rgba(21, 20, 18, .07); color: var(--ink); }
.fw:hover .fm, .fw:focus-within .fm, .fw .fm[aria-expanded="true"] { opacity: 1; }
.fw.edit:hover .c, .fw.edit:focus-within .c { visibility: hidden; }
.nav.drop-on { background: var(--brand-tint); color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand); }
.side-label { display: flex; align-items: center; justify-content: space-between; margin: 26px 10px 6px; font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); }
.side-label button { width: 24px; height: 24px; border: 0; border-radius: 7px; background: none; color: var(--ink-mute); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.side-label button:hover { background: rgba(21, 20, 18, .07); color: var(--ink); }
.side-label button svg { width: 15px; height: 15px; }
.side-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 2px; }
.storage { padding: 0 10px 14px; font-size: 12.5px; color: var(--ink-mute); }
.storage b { color: var(--ink-soft); font-weight: 500; }
.meter { height: 5px; border-radius: 9px; background: var(--line); overflow: hidden; margin: 8px 0 7px; }
.meter i { display: block; height: 100%; min-width: 3px; border-radius: 9px; background: var(--ink-soft); transition: width .4s; }
.meter.warn i { background: var(--orange); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 74px; padding: 0 40px; background: rgba(247, 245, 240, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .ml { margin-left: auto; }
.search { position: relative; flex: 1; max-width: 440px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); pointer-events: none; }
.search .input { padding-left: 39px; height: 40px; background: var(--surface); }
.search .kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.ava { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: var(--paper-2); color: var(--ink-soft); font: 600 13px/1 var(--sans); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line); }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.body { width: 100%; max-width: 1480px; padding: 40px 40px 96px; }
.mtop { display: none; }
.tabbar { display: none; }

/* ===== Biblioteca ===== */
.lib-head { display: flex; align-items: flex-end; gap: 12px; }
.lib-head .more-t { margin-bottom: 4px; }
.chips { display: flex; gap: 7px; margin: 26px 0 30px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-soft); font: 500 13px/1 var(--sans); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip .n { font: 500 11px/1 var(--mono); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.chip .d { width: 9px; height: 9px; border-radius: 50%; background: var(--st-solid, var(--ink-mute)); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.on .n { color: #bdbab2; }
/* Chips de estado: mismos colores que la franja de cada tarjeta */
.chip[class*="st-"] { background: var(--st-bg); color: var(--st); border-color: transparent; font-weight: 600; }
.chip[class*="st-"] .n { color: var(--st); opacity: .7; }
.chip[class*="st-"]:hover { border-color: var(--st-solid); color: var(--st); }
.chip.on[class*="st-"] { background: var(--st-solid); border-color: var(--st-solid); color: #fff; }
.chip.on[class*="st-"] .d { background: currentColor; }
.chip.on[class*="st-"] .n { color: inherit; opacity: .8; }
.chip.on.st-revisar { color: #3a2a00; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 34px 24px; }
.vc { position: relative; min-width: 0; }
.vc .th { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); border-bottom: 0; isolation: isolate; }
/* Franja de estado: grande, de color fuerte, siempre en una línea. Tocarla cambia el estado. */
.vc .stb { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px 0 12px; border: 0; border-radius: 0 0 12px 12px; background: var(--st-solid); color: #fff; font: 650 14.5px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-align: left; cursor: pointer; transition: filter .12s; }
.vc .stb:hover { filter: brightness(1.06) saturate(1.05); }
.vc .stb .lb { min-width: 0; overflow: hidden; }
.vc .stb svg { margin-left: auto; width: 16px; height: 16px; opacity: .85; flex: none; }
.vc.st-revisar .stb { color: #3a2a00; }
.vc .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vc .th.vert .bg { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; filter: blur(16px) saturate(1.05); opacity: .75; }
.vc .th.vert .fg { position: relative; object-fit: contain; }
.vc:hover .th img:not(.bg) { transform: scale(1.025); }
.vc .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-mute); background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(21, 20, 18, .025) 11px 22px), var(--paper-2); }
.vc .ph svg { width: 22px; height: 22px; fill: currentColor; stroke: none; opacity: .55; }
.vc .du, .vc .ver { position: absolute; bottom: 8px; padding: 3px 6px; border-radius: 6px; background: rgba(21, 20, 18, .74); color: #fff; font: 500 10.5px/1 var(--mono); }
.vc .du { right: 8px; }
.vc .ver { left: 8px; background: rgba(247, 245, 240, .94); color: var(--ink); }
.vc .more { position: absolute; right: 8px; top: 8px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(247, 245, 240, .95); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .12s; box-shadow: 0 1px 3px rgba(21, 20, 18, .18); }
.vc:hover .more, .vc:focus-within .more, .vc .more[aria-expanded="true"] { opacity: 1; }
.vc .tt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px; font-weight: 500; font-size: 14.5px; line-height: 1.35; text-decoration: none; color: var(--ink); }
.vc .mt { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; margin-top: 8px; font-size: 12.5px; color: var(--ink-mute); }
.vc .pend { color: var(--ink); font-weight: 600; }
.vc.drag { opacity: .4; }
.vc { content-visibility: auto; contain-intrinsic-size: auto 300px; }
.vigia { height: 1px; }
.vc.sk .th { border-radius: 12px; border-color: transparent; background: linear-gradient(90deg, var(--paper-2), #f3f0e9, var(--paper-2)); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.vc.sk .tt { height: 14px; width: 70%; border-radius: 6px; background: var(--paper-2); }
.vc.sk .mt { height: 12px; width: 45%; border-radius: 6px; background: var(--paper-2); }
@keyframes sk { to { background-position: -200% 0; } }

.empty { padding: 80px 20px; text-align: center; color: var(--ink-mute); }
.empty .serif { font-size: 30px; color: var(--ink); margin: 0 auto 6px; max-width: 22ch; }
.empty p { margin: 0 auto 22px; max-width: 40ch; }

.trial { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 26px; padding: 8px 8px 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.trial b { color: var(--ink); font-weight: 600; }
.trial .dots { display: inline-flex; gap: 4px; }
.trial .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.trial .dots i.on { background: var(--brand); }
.trial a { height: 28px; padding: 0 11px; border-radius: 99px; background: var(--brand-tint); color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.trial a:hover { background: #dde2fc; }

/* Bienvenida: 3 pasos */
.welcome { margin: 0 0 40px; }
.welcome.big { max-width: 660px; margin: 24px auto 40px; }
.welcome .wh { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.welcome .wh .h1 { font-size: 40px; }
.welcome.big .wh .h1 { font-size: 50px; }
.steps { display: grid; gap: 12px; }
.welcome:not(.big) .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.stp { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 20px 22px; align-items: start; }
.stp .k { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 12px/1 var(--mono); color: var(--ink-soft); background: var(--surface); }
.stp b { font-weight: 600; font-size: 15px; }
.stp p { margin: 3px 0 14px; font-size: 13.5px; color: var(--ink-soft); }
.stp.done { background: transparent; box-shadow: none; }
.stp.done .k { background: var(--green); border-color: var(--green); color: #fff; }
.stp.done .k svg { width: 15px; height: 15px; stroke-width: 2.4; }
.stp.done b { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: var(--line-2); }
.stp.done p, .stp.done .acts { display: none; }
.stp.now { box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-card); border-color: var(--ink); }
.stp .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* Arrastrar archivos encima de la página */
.drop { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(42, 63, 216, .1); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .15s; }
.drop.on { opacity: 1; }
.drop > div { width: min(560px, 100%); padding: 56px 24px; border: 2px dashed var(--brand); border-radius: 26px; background: rgba(255, 255, 255, .92); text-align: center; color: var(--brand); }
.drop .serif { font-size: 36px; color: var(--ink); margin: 0 0 4px; }

/* Ventana de subida */
.up-zone { display: grid; justify-items: center; gap: 10px; margin: 18px 0 6px; padding: 30px 18px; border: 1.5px dashed var(--line-2); border-radius: 18px; text-align: center; transition: border-color .12s, background .12s; }
.up-zone.on { border-color: var(--brand); background: var(--brand-tint); }
.up-zone .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; }
.up-zone .ico svg { width: 22px; height: 22px; }
.up-list { display: grid; gap: 2px; margin-top: 14px; }
.up-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.up-row .nm { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-row .st { grid-column: 1; font-size: 12.5px; color: var(--ink-mute); }
.up-row .st.bad { color: var(--red); }
.up-row .st.ok { color: var(--green); }
.up-row .ac { grid-row: 1 / span 2; grid-column: 2; }
.bar { height: 5px; border-radius: 9px; background: var(--paper-2); overflow: hidden; grid-column: 1; }
.bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--brand); transition: width .2s; }
.up-pill { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px; border: 0; border-radius: 99px; background: var(--ink); color: var(--paper); font: 500 14px/1 var(--sans); box-shadow: var(--shadow-pop); cursor: pointer; }
.up-pill .ring { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--paper) var(--p, 0%), rgba(247, 245, 240, .22) 0); -webkit-mask: radial-gradient(circle, transparent 7px, #000 7.5px); mask: radial-gradient(circle, transparent 7px, #000 7.5px); }

/* Ventanas */
.modal-sub { margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.modal-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.modal .field { margin-top: 18px; }
.modal-x { float: right; margin: -8px -8px 0 8px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--ink-mute); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-x:hover { background: var(--paper); color: var(--ink); }
.modal.wide { max-width: 560px; }
.pw-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 16px; }
.pw-ic svg { width: 22px; height: 22px; }

/* Menú que se abre (⋯, Nuevo video) */
.pop-capa { position: fixed; inset: 0; z-index: 85; }
.pop { position: fixed; z-index: 86; min-width: 232px; max-width: 290px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); animation: popin .12s ease-out; }
@keyframes popin { from { opacity: 0; transform: translateY(-4px); } }
.pop button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 38px; padding: 7px 10px; border: 0; border-radius: 9px; background: none; font-size: 13.5px; text-align: left; cursor: pointer; color: var(--ink); }
.pop button:hover:not([disabled]), .pop button:focus-visible { background: var(--paper); outline: none; }
.pop button[disabled] { cursor: default; color: var(--ink-mute); }
.pop button.danger { color: var(--red); }
.pop button .pl { flex: 1; min-width: 0; }
.pop button small { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 1px; }
.pop button .tail { color: var(--ink-mute); width: 15px; height: 15px; }
.pop button.checked .tail { color: var(--brand); }
.pop .sep { height: 1px; background: var(--line); margin: 5px 6px; }
.pop .pop-t { padding: 10px 10px 8px; font-size: 12.5px; color: var(--ink-mute); }
.pop .pop-t b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.pop .pop-yo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pop .pop-yo > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pop .pop-yo .ava { width: 36px; height: 36px; cursor: default; }
.foto { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foto .ava-g { width: 76px; height: 76px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-soft); font: 600 28px/1 var(--sans); box-shadow: 0 0 0 1px var(--line); }
.foto .ava-g img { width: 100%; height: 100%; object-fit: cover; }
.foto .tx { flex: 1; min-width: 160px; }
.foto .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pop .mdot { width: 11px; height: 11px; margin: 0 3px; border-radius: 50%; background: var(--st-solid, var(--st)); flex: none; }

/* Consejo de primera vez (como Loom: poquito texto, un foco) */
.tip { position: fixed; z-index: 75; width: 248px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.45; box-shadow: var(--shadow-pop); animation: popin .2s ease-out; }
.tip::before { content: ""; position: absolute; top: -5px; right: var(--ax, 24px); width: 11px; height: 11px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
.tip.abajo::before { top: auto; bottom: -5px; }
.tip button { margin-top: 10px; height: 28px; padding: 0 11px; border: 0; border-radius: 8px; background: rgba(247, 245, 240, .14); color: var(--paper); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.tip button:hover { background: rgba(247, 245, 240, .24); }

/* ===== Biblioteca: menú solo de secciones, carpetas adentro, lista ===== */
.nav-sec { display: grid; gap: 2px; }
.lib-tools { display: flex; align-items: center; gap: 14px; margin: 26px 0 34px; }
.lib-tools .chips { flex: 1; min-width: 0; margin: 0; }
.vista { flex: none; display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--paper-2); }
.vista button { width: 36px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ink-mute); display: grid; place-items: center; cursor: pointer; }
.vista button:hover { color: var(--ink); }
.vista button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 20, 18, .12); }
.miga { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: -8px 0 14px; font-size: 13.5px; color: var(--ink-mute); }
.miga a { color: var(--ink-soft); text-decoration: none; padding: 3px 6px; border-radius: 7px; }
.miga a:hover { background: rgba(21, 20, 18, .05); color: var(--ink); }
.miga a.drop-on { background: var(--brand-tint); color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand); }
.miga .sep { color: var(--line-2); }
.miga .aca { color: var(--ink); font-weight: 500; padding: 3px 2px; }
.miga .atras { width: 32px; padding: 0; margin-right: 4px; }
.lsec + .lsec { margin-top: 48px; }
.lsec-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; }
.lsec-h h2 { margin: 0; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.lsec-h .n { font: 500 12px/1 var(--mono); color: var(--ink-mute); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.fcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .12s, box-shadow .12s; min-width: 0; }
.fcard:hover { border-color: var(--ink); box-shadow: 0 10px 30px -14px rgba(21, 20, 18, .35); }
.fcard .fa { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.fcard .fa:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fcard .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fcard .ftop { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fcard .fico { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; }
.fcard .fico svg { width: 19px; height: 19px; }
.fcard .fmeta { flex: 1; min-width: 0; }
.fcard .fnm { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .fct { margin: 3px 0 0; font: 500 11px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .fm { position: relative; z-index: 2; flex: none; width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--ink-mute); display: grid; place-items: center; cursor: pointer; }
.fcard .fm:hover, .fcard .fm[aria-expanded="true"] { background: var(--paper-2); color: var(--ink); }
.fcard .strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.fcard .strip span { aspect-ratio: 16 / 10; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.fcard .strip img { width: 100%; height: 100%; object-fit: cover; }
.fcard.drop-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); background: var(--brand-tint); }
.fcard.nueva { flex-direction: row; align-items: center; justify-content: center; gap: 8px; min-height: 76px; border-style: dashed; background: transparent; color: var(--ink-soft); font: 500 14px/1 var(--sans); cursor: pointer; }
.fcard.nueva:hover { color: var(--ink); background: var(--surface); box-shadow: none; }
.vc .fl { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vc .fl svg { width: 12px; height: 12px; flex: none; }
.vc .th .pin { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.vc .th .pin svg { width: 14px; height: 14px; }
/* Lista */
.ltab { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lhead, .lrow { display: grid; grid-template-columns: minmax(240px, 1fr) 158px minmax(0, 180px) 96px 132px 44px; align-items: center; }
/* Pantallas medianas: el nombre manda; la columna carpeta se esconde (ya se ve en qué carpeta estás) */
@media (max-width: 1240px) {
  .lhead, .lrow { grid-template-columns: minmax(220px, 1fr) 158px 92px 124px 44px; }
  .lhead .lc.car, .lrow .lc.car { display: none; }
}
.lhead { border-bottom: 1px solid var(--line); }
.lhead .lc { padding: 0 8px; }
.lhead button { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 6px; border: 0; background: none; font: 500 12px/1 var(--sans); color: var(--ink-mute); cursor: pointer; border-radius: 7px; }
.lhead button:hover { color: var(--ink); }
.lhead button.on { color: var(--ink); }
.lhead button i { font-style: normal; font-size: 9px; }
.lhead .lc.nom { padding-left: 14px; }
.lhead .lc.pen, .lrow .lc.pen { text-align: right; }
.lhead .lc.pen button { margin-left: auto; }
.lrow { min-height: 60px; border-bottom: 1px solid var(--paper-2); cursor: pointer; transition: background .1s; }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: #fbfaf7; }
.lrow.drag { opacity: .4; }
.lrow .lc { padding: 8px 14px; min-width: 0; font-size: 13.5px; }
.lrow .lc.nom { display: flex; align-items: center; gap: 12px; }
.lrow .lth { position: relative; flex: none; width: 72px; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: var(--paper-2); isolation: isolate; }
.lrow .lth img { width: 100%; height: 100%; object-fit: cover; }
.lrow .lth.vert .bg { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; filter: blur(10px); opacity: .75; }
.lrow .lth.vert .fg { position: relative; object-fit: contain; }
.lrow .lth .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-mute); }
.lrow .lth .ph svg { width: 14px; height: 14px; fill: currentColor; stroke: none; opacity: .5; }
.lrow .lnm { min-width: 0; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .lnm:hover { text-decoration: underline; text-underline-offset: 3px; }
.lrow .lmeta { display: none; }
/* El estado entra siempre completo ("Hacer de nuevo" es el más largo): columna de 158px, sin recortes */
.lrow .lc.est { padding-left: 10px; padding-right: 10px; }
.lpill { height: 28px; padding: 0 11px; border: 0; border-radius: 99px; background: var(--st-solid); color: #fff; font: 600 12px/1 var(--sans); white-space: nowrap; cursor: pointer; }
.lrow.st-revisar .lpill { color: #3a2a00; }
.lpill:hover { filter: brightness(1.06); }
.lrow .lc.car { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .lc.fec { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lrow .lc.mas { padding: 0 8px 0 0; display: flex; justify-content: flex-end; }
.lrow .more.lm { position: static; opacity: 1; width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; box-shadow: none; color: var(--ink-mute); display: inline-grid; place-items: center; cursor: pointer; }
.lrow .more.lm:hover { background: var(--paper-2); color: var(--ink); }

.vc .espera, .lrow .espera { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 99px; background: var(--yellow-tint); color: #6b5200; font: 600 11.5px/1 var(--sans); white-space: nowrap; }
.lrow .lc.pen .espera { margin-left: 6px; }
/* No disponible / cuenta suspendida */
.nodisp { padding-top: 96px; }
.nodisp .ico, .sus-caja .ico { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 17px; background: var(--paper-2); color: var(--ink-soft); display: grid; place-items: center; }
.nodisp .ico svg { width: 24px; height: 24px; }
.nodisp a:not(.btn) { color: var(--ink); }
.suspendida { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px 16px; background: var(--paper); overflow-y: auto; }
.sus-caja { width: 100%; max-width: 520px; text-align: center; }
.sus-caja .wordmark { font-size: 40px; margin-bottom: 48px; }
.sus-caja h1 { margin: 0 0 14px; font: 400 44px/1.05 var(--serif); letter-spacing: -.01em; }
.sus-caja p { margin: 0 auto 16px; max-width: 44ch; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.sus-caja .sus-motivo { padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.sus-caja a:not(.btn):not(.wordmark) { color: var(--ink); }
.sus-caja .btn { margin-top: 18px; }

/* ===== Grabar pantalla ===== */
.rec-modal h2 { font: 400 30px/1.05 var(--serif); letter-spacing: -.01em; }
.rec-modos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.rec-modo { display: grid; justify-items: center; gap: 8px; padding: 18px 8px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: 500 13.5px/1.25 var(--sans); color: var(--ink-soft); text-align: center; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.rec-modo svg { width: 24px; height: 24px; }
.rec-modos.uno { grid-template-columns: minmax(0, 1fr); }
.rec-modo:hover:not([disabled]) { border-color: var(--line-2); color: var(--ink); }
.rec-modo.on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 600; }
.rec-modo[disabled] { opacity: .45; cursor: not-allowed; }
.rec-mic { margin-top: 20px !important; }
.rec-sis { display: flex; align-items: center; gap: 14px; margin: 4px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--paper); }
.rec-sis .tx { flex: 1; min-width: 0; }
.rec-sis .tx b { display: block; font-weight: 600; font-size: 14px; }
.rec-sis .tx span { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.rec-nota { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--yellow-tint); color: #6b5200; font-size: 13px; line-height: 1.45; }
.rec-modal .msg { margin: 14px 0 0; }
.rec-prev { margin-top: 18px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.rec-prev video { width: 100%; height: 100%; object-fit: contain; }
.rec-prev.cam video { object-fit: cover; }
.rec-modal .modal-acts .btn-rec { margin-top: 0; }
.rec-barra .rb.pipb { background: rgba(247, 245, 240, .12); }
.btn-rec { margin-top: 8px; background: var(--red); border-color: var(--red); color: #fff; }
.btn-rec:hover { background: #d43f44; border-color: #d43f44; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; }
.rec-legal { text-align: center; margin: 14px 0 0; }
.rec-cuenta { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(21, 20, 18, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; text-align: center; }
.rec-cuenta .num { display: block; font: 400 168px/1 var(--serif); animation: latido 1s ease-out; }
.rec-cuenta p { margin: 4px 0 22px; color: rgba(255, 255, 255, .8); }
.rec-cuenta .btn { color: #fff; }
.rec-cuenta .btn:hover { background: rgba(255, 255, 255, .12); }
@keyframes latido { from { transform: scale(1.25); opacity: .2; } }
.rec-barra { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 99px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-pop); }
.rec-barra .rec-dot { background: var(--red); }
.rec-barra .rec-dot.vivo { animation: vivo 1.2s ease-in-out infinite; }
.rec-barra.pausa .rec-dot { animation: none; background: var(--yellow); }
@keyframes vivo { 50% { opacity: .3; } }
.rec-barra .rec-t { min-width: 46px; margin: 0 6px 0 4px; font: 500 15px/1 var(--mono); font-variant-numeric: tabular-nums; }
.rec-barra .rb { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 0; border-radius: 99px; background: rgba(247, 245, 240, .12); color: var(--paper); font: 500 14px/1 var(--sans); cursor: pointer; }
.rec-barra .rb:hover { background: rgba(247, 245, 240, .2); }
.rec-barra .rb svg { width: 16px; height: 16px; stroke-width: 2; }
.rec-barra .rb.fin { background: var(--red); color: #fff; }
.rec-barra .rb.fin svg { fill: currentColor; }
.rec-barra .rb.fin:hover { background: #d43f44; }
.rec-barra .rb.x { width: 40px; padding: 0; justify-content: center; background: none; color: #bdb9b0; }
.rec-vista { position: fixed; z-index: 109; left: 24px; bottom: 24px; overflow: hidden; background: #000; box-shadow: var(--shadow-pop); }
.rec-vista video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.rec-vista.globo { width: 150px; height: 150px; border-radius: 50%; border: 3px solid #fff; }
.rec-vista.cuadro { width: 340px; aspect-ratio: 16 / 9; border-radius: 16px; }

/* ===== Enlaces ===== */
.lk-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.lk-wrap.con-panel { grid-template-columns: minmax(0, 1fr) 380px; }
.lk-resumen { display: flex; gap: 28px; flex-wrap: wrap; margin: 22px 0 28px; color: var(--ink-soft); font-size: 14px; }
.lk-resumen b { display: block; font: 500 28px/1.1 var(--sans); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lk-orden { margin-left: auto; align-self: flex-end; }
.lk-tabla { overflow: hidden; }
.lk-tabla table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.lk-tabla th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-mute); padding: 14px 16px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lk-tabla td { padding: 14px 16px; border-bottom: 1px solid var(--paper-2); vertical-align: middle; }
.lk-tabla tr:last-child td { border-bottom: 0; }
.lk-tabla tbody tr { cursor: pointer; transition: background .1s; }
.lk-tabla tbody tr:hover { background: #fbfaf7; }
.lk-tabla tbody tr.on { background: var(--brand-tint); }
.lk-tabla .r { text-align: right; font-variant-numeric: tabular-nums; }
.lk-tabla .num { font-weight: 600; }
.lk-corto { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lk-corto .s { font: 500 13.5px/1.3 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lk-corto .s i { font-style: normal; color: var(--ink-mute); }
.lk-cp { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ink-mute); display: inline-grid; place-items: center; cursor: pointer; }
.lk-cp:hover { background: var(--paper-2); color: var(--ink); }
.lk-cp.ok { color: var(--green); }
.lk-tt { display: block; font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.lk-dest { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { display: block; }
.spark rect { fill: var(--line-2); }
.spark rect.hoy { fill: var(--ink); }
.lk-panel { position: sticky; top: 98px; padding: 22px; display: grid; gap: 20px; max-height: calc(100vh - 120px); overflow-y: auto; }
.lk-panel .cab { display: flex; align-items: flex-start; gap: 10px; }
.lk-panel .cab .s { flex: 1; min-width: 0; font: 500 16px/1.35 var(--mono); word-break: break-all; }
.lk-panel .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.lk-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-kpis div { padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.lk-kpis b { display: block; font: 500 26px/1.1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lk-kpis span { font-size: 12.5px; color: var(--ink-mute); }
.lk-graf h4, .lk-qr h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.lk-graf svg { width: 100%; height: auto; display: block; overflow: visible; }
.lk-graf .b { fill: var(--ink); }
.lk-graf .b.on { fill: var(--brand); }
.lk-graf text { font: 500 10.5px/1 var(--mono); fill: var(--ink-mute); }
.lk-graf line { stroke: var(--line); }
.lk-qr { display: grid; justify-items: start; gap: 10px; }
.lk-qr .qr { width: 168px; height: 168px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.lk-qr .qr img, .lk-qr .qr canvas { width: 146px !important; height: 146px !important; image-rendering: pixelated; }
.lk-panel .field { margin: 0; }
.lk-panel .creado { font-size: 12.5px; color: var(--ink-mute); }
.lk-prev { margin: 6px 0 0; font: 500 13px/1.4 var(--mono); color: var(--ink-mute); word-break: break-all; }
.lk-prev b { color: var(--brand); font-weight: 600; }
.field-err { margin: 6px 0 0; font-size: 13px; color: var(--red); }
.input.bad { border-color: var(--red); }
.lk-vacio { padding: 72px 24px; text-align: center; }
.lk-vacio .ico { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 17px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.lk-vacio .ico svg { width: 24px; height: 24px; }
.lk-vacio p { margin: 0 auto 24px; max-width: 34ch; color: var(--ink-soft); font-size: 16px; }
.lk-hoja-bg { display: none; }
.lk-tabla td.c-movil { display: none; }

/* ===== Ajustes ===== */
.set { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 56px; align-items: start; }
.setnav { position: sticky; top: 108px; display: grid; gap: 2px; }
.setnav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.setnav a:hover { background: rgba(21, 20, 18, .045); color: var(--ink); }
.setnav a.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.setnav a .soon { margin-left: auto; }
.sets { display: grid; gap: 72px; max-width: 760px; min-width: 0; }
.sec { scroll-margin-top: 104px; min-width: 0; }
.sec > h2 { font: 400 34px/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 6px; }
.sec > .lead { margin: 0 0 22px; color: var(--ink-soft); max-width: 60ch; }
.grp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.grp + .grp { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 14px; padding: 18px 22px; min-width: 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-weight: 500; }
.row .tx span { display: block; font-size: 13px; color: var(--ink-mute); margin-top: 1px; }
.row.col { flex-direction: column; align-items: stretch; }
.inl { display: flex; gap: 8px; }
.inl .input { flex: 1; min-width: 0; }
.input[readonly] { background: var(--paper); color: var(--ink-soft); }
.st-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font: 500 12px/1 var(--sans); background: var(--green-tint); color: var(--green); }
.st-pill.warn { background: var(--orange-tint); color: var(--orange); }
.st-pill.bad { background: var(--red-tint); color: var(--red); }
.st-pill.mute { background: var(--paper-2); color: var(--ink-soft); }
.st-pill .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.plan-now { display: flex; align-items: center; gap: 16px; padding: 22px; flex-wrap: wrap; }
.plan-now .pn { flex: 1; min-width: 200px; }
.plan-now .pn .nm { font: 600 19px/1.2 var(--sans); letter-spacing: -.02em; }
.plan-now .pn .sm { color: var(--ink-mute); font-size: 13.5px; margin-top: 3px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.plan { position: relative; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.plan .tag { align-self: flex-start; height: 24px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; background: var(--paper-2); color: var(--ink-soft); }
.plan .price { font: 500 42px/1 var(--sans); letter-spacing: -.04em; }
.plan .price small { font-size: 14.5px; letter-spacing: 0; font-weight: 400; color: var(--ink-mute); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { color: var(--green); margin-top: 2px; width: 16px; height: 16px; stroke-width: 2; }
.plan .note { font-size: 12.5px; color: var(--ink-mute); }
.plan .btn { margin-top: auto; }
.plan.hot { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan.hot .tag { background: var(--orange); color: #fff; }
.plan.hot .price small, .plan.hot .note { color: #b9b5ab; }
.plan.hot li svg { color: #7ddb9f; }
.plan .field.cod { margin: 2px 0 0; }
.plan.hot .field > span { color: #d8d4cb; }
.plan.hot .input { background: #24221f; border-color: #3d3a35; color: #fff; }
.plan.hot .input::placeholder { color: #8b867c; }
.plan .input.bad { border-color: #ff8a8f; box-shadow: 0 0 0 3px rgba(229, 72, 77, .28); }
.cod-err { margin: -6px 0 0; font-size: 13px; line-height: 1.4; color: #ff9a9e; }
.plan .note.solo { margin-top: -4px; text-align: center; }
.plans.uno { grid-template-columns: minmax(0, 1fr); max-width: 400px; }
.plan.pulse { animation: pulse 1.6s ease-out 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(247, 107, 21, .55); } 100% { box-shadow: 0 0 0 16px rgba(247, 107, 21, 0); } }

.ai-state { display: flex; align-items: center; gap: 12px; padding: 16px 20px; margin-bottom: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.ai-state .lt { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.ai-state.on .lt { background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.ai-state .tx { flex: 1; min-width: 0; }
.ai-state .tx span { display: block; color: var(--ink-mute); font-size: 12.5px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--paper-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--ink-soft); font: 500 13.5px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 20, 18, .12); }
.ai-tabs { padding: 22px; }
.how { list-style: none; counter-reset: how; margin: 22px 0 0; padding: 0; display: grid; gap: 22px; }
.how > li { counter-increment: how; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.how > li::before { content: counter(how); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 500 12px/1 var(--mono); }
.how > li > div { padding-top: 3px; min-width: 0; }
.how b { font-weight: 600; }
.how p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; }
.path { font-weight: 500; color: var(--ink); white-space: nowrap; }
.code { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 12px 10px 12px 16px; border-radius: 12px; background: var(--ink); color: #ebe8e0; }
.code pre { flex: 1; min-width: 0; margin: 0; padding-top: 7px; font: 400 13px/1.55 var(--mono); white-space: pre-wrap; word-break: break-all; }
.code pre .ph { color: #ffc56b; }
.code .btn { flex: none; height: 34px; background: rgba(247, 245, 240, .1); border-color: transparent; color: #fff; }
.code .btn:hover { background: rgba(247, 245, 240, .2); }
.code .btn.ok { background: var(--green); }
.ask { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 10px 12px 16px; border-radius: 12px; background: var(--brand-tint); color: #1d2a99; font-size: 14px; }
.ask span { flex: 1; min-width: 0; }
.ask .btn { flex: none; background: var(--surface); border-color: transparent; color: var(--brand); }
.altkey { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.altkey summary { cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink-soft); }
.keybox { margin: 4px 0 6px; padding: 16px 18px; border-radius: 14px; background: var(--yellow-tint); border: 1px solid #efdc9b; }
.keybox b { display: block; margin-bottom: 2px; }
.keybox .code { background: #2a2620; }
.keys { list-style: none; margin: 0; padding: 0; }
.keys li { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.keys li .tx { flex: 1; min-width: 0; }
.keys li .tx b { font-weight: 500; display: block; }
.keys li .tx span { font-size: 12.5px; color: var(--ink-mute); }
.keys li .mono { font-size: 12px; color: var(--ink-soft); background: var(--paper); padding: 3px 7px; border-radius: 6px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; margin: 0; border-radius: 99px; background: var(--line-2); cursor: pointer; transition: background .18s; }
.switch input:checked { background: var(--green); }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .22); transition: transform .18s; }
.switch input:checked::after { transform: translateX(18px); }
.links-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 13px; }
.links-legal a { color: var(--ink-mute); }

/* ===== Panel del dueño ===== */
.adm { display: grid; gap: 18px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 16px 18px 18px; min-width: 0; }
.tile .k { font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v { margin-top: 8px; font: 500 30px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.box { padding: 20px 22px 22px; min-width: 0; }
.box > h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.box > .small { margin: 0 0 16px; }
.hbars { display: grid; gap: 10px; }
.hb { display: grid; grid-template-columns: minmax(96px, 172px) minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: 13.5px; }
.hb .lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.hb .tr { height: 22px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.hb .tr i { display: block; height: 100%; min-width: 4px; border-radius: 0 4px 4px 0; background: var(--ink); transition: width .5s; }
.hb .nv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.hb .nv small { display: block; font-weight: 400; color: var(--ink-mute); font-size: 11px; }
.hb.fun .tr i { background: var(--brand); }
.words { display: flex; flex-wrap: wrap; gap: 8px 8px; align-items: baseline; }
.words span { display: inline-flex; align-items: baseline; gap: 6px; padding: .28em .62em; border-radius: 99px; background: var(--paper); color: var(--ink); line-height: 1.1; }
.words span small { font: 500 10.5px/1 var(--mono); color: var(--ink-mute); }
.vbars svg { width: 100%; height: auto; overflow: visible; }
.vbars .b { fill: var(--ink); transition: fill .1s; }
.vbars .b.on { fill: var(--brand); }
.vbars text { font: 500 10.5px/1 var(--mono); fill: var(--ink-mute); }
.vbars line { stroke: var(--line); }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.days .box .tot { font: 500 24px/1 var(--sans); letter-spacing: -.02em; margin: 6px 0 14px; }
.ttip { position: fixed; z-index: 90; pointer-events: none; padding: 7px 10px; border-radius: 9px; background: var(--ink); color: var(--paper); font-size: 12.5px; line-height: 1.35; box-shadow: var(--shadow-pop); white-space: nowrap; }
.ttip b { font-weight: 600; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-mute); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--paper-2); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .em { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dotc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.dotc.on { background: var(--green); }

/* Moderación (panel del dueño) */
.adm-mod { margin-top: 64px; display: grid; gap: 18px; }
.mod-h { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.mod-h .seg { margin-left: auto; }
.tbl.cuentas td { vertical-align: middle; }
.tbl.cuentas .em .nm { display: block; font-size: 12px; color: var(--ink-mute); }
.tbl.cuentas tr.sus td { background: #fdf6f6; }
.tbl.cuentas .motivo { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-mute); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl.cuentas .acc { white-space: nowrap; }
.baja h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.baja .inl { margin-top: 6px; max-width: 620px; }
.baja-v { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--paper); }
.baja-v .bth { width: 112px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-mute); flex: none; }
.baja-v .bth img { width: 100%; height: 100%; object-fit: cover; }
.baja-v .tx { flex: 1; min-width: 180px; display: grid; justify-items: start; }
.baja-v .tx b { font-weight: 600; }
.baja-v .tx span { font-size: 12.5px; color: var(--ink-mute); }
.baja-v.abajo .bth { opacity: .4; filter: grayscale(1); }

/* ===== Entrar ===== */
.auth-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 56px 16px 32px; }
.auth-page > .wordmark { font-size: 46px; margin: 0 0 40px; }
.auth { width: 100%; max-width: 424px; padding: 36px 34px 30px; }
.auth h1 { margin: 0; font: 600 22px/1.25 var(--sans); letter-spacing: -.02em; }
.auth .tag { margin: 4px 0 24px; color: var(--ink-mute); font-size: 14px; }
.auth .seg { display: flex; margin-bottom: 22px; }
.auth .seg button { flex: 1; }
.auth .or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-mute); font-size: 12.5px; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth .btn-lg { width: 100%; }
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw button { position: absolute; right: 5px; top: 5px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--ink-mute); display: grid; place-items: center; cursor: pointer; }
.pw button:hover { color: var(--ink); background: var(--paper); }
.forgot { display: block; margin: -4px 0 18px; text-align: right; font-size: 13px; color: var(--ink-mute); background: none; border: 0; padding: 0; cursor: pointer; width: 100%; }
.forgot:hover { color: var(--ink); text-decoration: underline; }
.msg { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; background: var(--red-tint); color: #a3262b; }
.msg.ok { background: var(--green-tint); color: #17713d; }
.msg.info { background: var(--brand-tint); color: #1d2a99; }
.msg button { margin-top: 8px; border: 0; background: none; padding: 0; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; }
.sent { text-align: center; padding: 8px 0 4px; }
.sent .ico { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 17px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.sent .ico svg { width: 24px; height: 24px; }
.sent p { color: var(--ink-soft); margin: 6px 0 22px; }
.auth .legal.g { margin: 10px 0 0; text-align: left; font-size: 11.5px; line-height: 1.45; }
.captcha { margin: 4px 0 14px; min-height: 65px; }
.captcha:empty { min-height: 0; margin: 0; }
.acepto { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 13px; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.acepto input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.acepto a { color: var(--ink); }
.acepto.bad { box-shadow: 0 0 0 1.5px var(--red); background: var(--red-tint); }
#acepto-msg { margin: -8px 0 14px; }
.auth .legal { margin: 20px 0 0; text-align: center; font-size: 12px; color: var(--ink-mute); }
.auth .legal a { color: var(--ink-soft); }
.auth-foot { margin-top: auto; padding-top: 36px; font-size: 12.5px; color: var(--ink-mute); }
.auth-foot a { color: var(--ink-mute); }

/* ===== Textos legales ===== */
.legal-top { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; padding: 32px 24px 0; }
.legal-top .wordmark { font-size: 30px; }
.legal-top nav { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.legal-foot .small a { color: var(--ink-soft); }
.legal-doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; font-size: 16px; line-height: 1.7; color: #2a2825; }
.legal-doc h1 { font: 400 52px/1.02 var(--serif); letter-spacing: -.012em; margin: 0 0 30px; color: var(--ink); text-wrap: balance; }
.legal-doc h2 { font: 600 20px/1.3 var(--sans); letter-spacing: -.015em; margin: 44px 0 10px; color: var(--ink); }
.legal-doc h3 { font: 600 16px/1.35 var(--sans); margin: 28px 0 8px; color: var(--ink); }
.legal-doc p { margin: 0 0 16px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 18px; padding-left: 22px; }
.legal-doc li { margin: 0 0 8px; }
.legal-doc a { color: var(--brand); }
.legal-doc code { font: 13.5px var(--mono); background: var(--paper-2); padding: 2px 5px; border-radius: 5px; }
.legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.legal-doc .tbl-wrap { margin: 0 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-doc th { text-align: left; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); min-width: 140px; }
.legal-doc td { padding: 12px 14px; border-bottom: 1px solid var(--paper-2); vertical-align: top; min-width: 140px; }
.legal-doc tr:last-child td { border-bottom: 0; }
.legal-doc h2, .legal-doc h3 { scroll-margin-top: 24px; }
.legal-doc blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); color: var(--ink-soft); }
.legal-foot { max-width: 760px; margin: 0 auto; padding: 0 24px 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ===== Celular: iOS, todo al alcance del pulgar ===== */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .days { grid-template-columns: minmax(0, 1fr); }
  .welcome:not(.big) .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .set { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .setnav { position: sticky; top: 0; z-index: 25; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 28px; padding: 10px 16px; background: rgba(247, 245, 240, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .setnav::-webkit-scrollbar { display: none; }
  .setnav a { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 13px; font-size: 13.5px; }
  .setnav a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
  .setnav a.equipo { display: none; }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hide-m { display: none !important; }
  .only-m { display: revert !important; }
  .shell { display: block; }
  .side { display: none; }
  .mtop { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 16px 4px; }
  .mtop .wordmark { font-size: 30px; }
  .mtop .ava { margin-left: auto; width: 36px; height: 36px; }
  .top { position: static; height: auto; padding: 12px 16px 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .search { max-width: none; }
  .search .input { height: 44px; border-radius: 12px; font-size: 16px; }
  .search .kbd { display: none; }
  .body { padding: 22px 16px calc(112px + env(safe-area-inset-bottom)); }
  .h1 { font-size: 38px; }
  .chips { margin: 18px -16px 22px; padding: 0 16px; }
  .chip { height: 36px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .vc .tt { font-size: 14px; margin-top: 9px; }
  .vc .mt { gap: 4px 7px; font-size: 12px; }
  .vc .stb { height: 34px; padding: 0 8px 0 10px; font-size: clamp(12px, 3.6vw, 14px); gap: 6px; }
  .vc .stb svg { width: 14px; height: 14px; }
  .vc .more { opacity: 1; width: 30px; height: 30px; right: 6px; top: 6px; }
  .welcome.big { margin-top: 8px; }
  .welcome.big .wh .h1, .welcome .wh .h1 { font-size: 36px; }
  .stp { padding: 18px; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .stp .acts .btn { height: 40px; }
  .trial { border-radius: 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgba(250, 249, 246, .92); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-top: .5px solid var(--line-2); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--ink-mute); font: 500 10.5px/1 var(--sans); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar svg.i { width: 24px; height: 24px; stroke-width: 1.6; }
  .tabbar .on { color: var(--brand); }
  .tabbar .plus .pi { width: 46px; height: 32px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; }
  .tabbar .plus .pi svg { width: 20px; height: 20px; stroke-width: 2; }
  .tabbar .plus { color: var(--ink); }
  .up-pill { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .foto { gap: 14px; }
  .foto .ava-g { width: 64px; height: 64px; font-size: 24px; }
  .foto .tx { flex: 1 1 0; min-width: 0; }
  .foto .acts { flex-basis: 100%; }
  .lib-tools { margin: 18px 0 26px; gap: 10px; }
  .lib-tools .chips { margin: 0 0 0 -16px; padding-left: 16px; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fcard { padding: 12px; gap: 10px; border-radius: 14px; }
  .fcard .ftop { gap: 8px; }
  .fcard .fico { display: none; }
  .fcard .fnm { font-size: 14.5px; }
  .fcard .fm { width: 28px; height: 28px; margin-right: -4px; }
  .fcard.nueva { min-height: 60px; font-size: 13.5px; }
  .lsec + .lsec { margin-top: 36px; }
  .miga { margin-top: -4px; }
  /* Lista en el celu: filas como en iOS */
  .ltab { border-radius: 16px; }
  .lhead { display: none; }
  .lrow { grid-template-columns: minmax(0, 1fr) 40px; min-height: 72px; }
  .lrow .lc.est, .lrow .lc.car, .lrow .lc.pen, .lrow .lc.fec { display: none; }
  .lrow .lc.nom { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; padding: 10px 0 10px 12px; }
  .lrow .lth { grid-row: 1 / span 2; width: 88px; }
  .lrow .lnm { align-self: end; font-size: 15px; }
  .lrow .lmeta { display: flex; align-items: center; gap: 6px; align-self: start; font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; min-width: 0; }
  .lrow .lmeta .lest { flex: none; }
  .lrow .lmeta .lmas { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .lrow .ldot { width: 9px; height: 9px; border-radius: 50%; background: var(--st-solid); flex: none; }
  .lrow .lc.mas { padding-right: 6px; }
  .rec-modos { gap: 8px; }
  .rec-modo { padding: 14px 6px 12px; font-size: 12.5px; }
  .rec-barra { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .rec-vista { left: 16px; bottom: calc(136px + env(safe-area-inset-bottom)); }
  .rec-vista.cuadro { width: calc(100vw - 32px); }
  .rec-cuenta .num { font-size: 120px; }
  .lk-wrap.con-panel { grid-template-columns: minmax(0, 1fr); }
  .lk-resumen { gap: 20px; margin: 16px 0 20px; }
  .lk-resumen b { font-size: 24px; }
  .lk-tabla thead { display: none; }
  .lk-tabla table, .lk-tabla tbody, .lk-tabla tr, .lk-tabla td { display: block; width: 100%; }
  .lk-tabla tr { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--paper-2); }
  .lk-tabla tr:last-child { border-bottom: 0; }
  .lk-tabla td { padding: 0; border: 0; }
  .lk-tabla td.c-link { grid-column: 1 / -1; grid-row: 1; }
  .lk-tabla td.c-dest { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .lk-tabla td.c-clics, .lk-tabla td.c-pers { display: none; }
  .lk-tabla td.c-movil { display: block !important; grid-column: 1; grid-row: 3; align-self: center; font-size: 13px; color: var(--ink-soft); }
  .lk-tabla td.c-movil b { color: var(--ink); }
  .lk-tabla td.c-spark { grid-column: 2; grid-row: 3; align-self: center; }
  .lk-hoja-bg { display: block; position: fixed; inset: 0; z-index: 88; background: rgba(21, 20, 18, .32); }
  .lk-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 89; max-height: 88vh; max-height: 88dvh; border-radius: 22px 22px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); animation: sheet .22s ease-out; }
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; max-height: 92dvh; padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); animation: sheet .22s ease-out; }
  .modal-acts .btn { flex: 1; height: 48px; }
  @keyframes sheet { from { transform: translateY(40px); opacity: .4; } }
  .pop-capa { background: rgba(21, 20, 18, .32); }
  .pop.sheet { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)); min-width: 0; max-width: none; max-height: 78vh; overflow-y: auto; padding: 8px; border-radius: 20px; animation: sheet .22s ease-out; }
  .pop.sheet button { min-height: 50px; font-size: 15.5px; padding: 8px 12px; border-radius: 12px; }
  .pop.sheet button svg.i { width: 20px; height: 20px; }
  .tip { left: 16px !important; right: 16px; width: auto; }
  .sets { gap: 56px; }
  .sec > h2 { font-size: 30px; }
  .row { padding: 16px 18px; flex-wrap: wrap; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan .btn { height: 50px; }
  .ai-tabs { padding: 18px; }
  .how > li { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
  .how > li::before { width: 26px; height: 26px; }
  .code { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 10px 10px 14px; }
  .code pre { font-size: 12.5px; padding-top: 0; }
  .code .btn { align-self: flex-end; }
  .ask { flex-direction: column; align-items: stretch; }
  .ask .btn { align-self: flex-end; }
  .keys li { padding: 14px 18px; flex-wrap: wrap; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile .v { font-size: 26px; }
  .hb { grid-template-columns: minmax(0, 1fr) 64px; gap: 4px 10px; }
  .hb .lb { grid-column: 1 / -1; }
  .hb .tr { grid-column: 1; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--paper-2); }
  .tbl td { padding: 0; border: 0; font-size: 12.5px; color: var(--ink-mute); }
  .tbl td.em { grid-column: 1 / -1; max-width: none; font-size: 14px; color: var(--ink); font-weight: 500; }
  .tbl td.r { text-align: left; }
  .tbl td[data-l]::before { content: attr(data-l) " "; }
  .tbl.cuentas tr { grid-template-columns: minmax(0, 1fr) auto; }
  .tbl.cuentas td.acc { grid-column: 2; grid-row: 1; }
  .tbl.cuentas td.em { grid-column: 1; }
  .baja-v .btn { width: 100%; }
  .auth-page { padding-top: calc(36px + env(safe-area-inset-top)); }
  .auth-page > .wordmark { font-size: 40px; margin-bottom: 28px; }
  .auth { padding: 28px 20px 24px; border-radius: 22px; }
  .auth .input { font-size: 16px; height: 48px; }
  .legal-doc { padding: 36px 16px 72px; font-size: 15.5px; }
  .legal-doc h1 { font-size: 40px; }
  .legal-top, .legal-foot { padding-left: 16px; padding-right: 16px; }
  .legal-top { flex-wrap: wrap; gap: 14px; }
  .legal-top nav { margin-left: 0; width: 100%; justify-content: flex-start; }
}
@media (max-width: 340px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Conectar tu IA: pestaña recomendada y avisos (pedido de Emi 19-11) */
.seg [data-pestana] .ia-tag { display: block; font: 600 10.5px/1.2 var(--sans); letter-spacing: .01em; color: var(--green); margin-top: 2px; }
.seg button[data-pestana] { height: auto; min-height: 34px; padding: 7px 14px; line-height: 1.15; text-align: left; }
/* Amarillo = falta hacerlo; nota gris chica = solo información; el verde queda para "Conectada" */
.ia-aviso { margin: 18px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--yellow-tint); color: #6b5200; font-size: 13.5px; line-height: 1.45; }
.ia-nota { margin: 16px 0 14px; font-size: 12.5px; line-height: 1.4; color: var(--ink-mute); }

/* ===== Ajustes › Skills (base de conocimiento de la cuenta) ===== */
.skl { list-style: none; margin: 0; padding: 0; }
.skl li { display: flex; align-items: flex-start; gap: 18px; padding: 22px; border-top: 1px solid var(--line); transition: background .6s; }
.skl li .tx { flex: 1; min-width: 0; }
.skl li .tx b { display: block; font-weight: 600; font-size: 15px; }
.skl li .tx .mono { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-mute); overflow-wrap: anywhere; }
.skl-notas { margin: 12px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.skl-notas.vacia { color: var(--ink-mute); font-style: italic; }
.skl li .acts { flex: none; display: flex; gap: 6px; }
.skl li.nueva { background: var(--brand-tint); }
.skl li.skl-vacia { padding: 22px; }
.skl-slug { margin: 12px 0 0; }
.skl-modal textarea.input { min-height: 150px; }
@media (max-width: 640px) {
  .skl li { flex-direction: column; gap: 14px; padding: 20px 18px; }
  .skl li .acts { align-self: stretch; }
  .skl li .acts .btn { flex: 1; }
}
