/* Interfaz del creador de monografías (la hoja va aparte en hoja.css) */
html, body.mono-page { height: 100%; margin: 0; overflow: hidden; }
body.mono-page { background: var(--bg-main); color: var(--text-primary); font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif; }
.me-app { --ac: var(--color-primary, #2563eb); --line: var(--border-card, rgba(148, 163, 184, .3)); --soft: color-mix(in srgb, var(--text-primary) 6%, transparent); --ease: cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; height: 100dvh; }
.me-app button, .me-modal button { font-family: inherit; }
.me-app [hidden], .me-modal[hidden] { display: none !important; }

/* Barra superior */
.me-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-card); border-bottom: 1px solid var(--line); flex: none; z-index: 30; }
.me-flex { flex: 1; }
.me-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-primary); font-weight: 700; font-size: .84rem; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; text-decoration: none; }
.me-btn:hover { background: var(--soft); }
.me-btn:disabled { opacity: .5; cursor: default; }
.me-primary { background: var(--ac); border-color: var(--ac); color: #fff; }
.me-primary:hover { background: var(--ac); filter: brightness(1.08); }
.me-ico { width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--text-secondary, inherit); cursor: pointer; display: inline-grid; place-items: center; font-size: .92rem; }
.me-ico:hover { background: var(--soft); color: var(--text-primary); }
.me-ico:disabled { opacity: .32; cursor: default; background: transparent; }
.me-ico.on { background: color-mix(in srgb, var(--ac) 16%, transparent); color: var(--ac); }
.me-group { display: inline-flex; }
.me-name { flex: 0 1 240px; min-width: 90px; height: 38px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-primary); font: 700 .95rem 'Outfit', sans-serif; padding: 0 10px; }
.me-name:hover, .me-name:focus { border-color: var(--line); outline: 0; }
.me-saved { font-size: .74rem; color: var(--text-muted); white-space: nowrap; min-width: 66px; }
.me-seg { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; }
.me-seg button { border: 0; background: transparent; color: var(--text-secondary, inherit); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.me-seg button.on { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 1px 4px rgba(15, 23, 42, .16); }
.me-seg.full { display: flex; } .me-seg.full button { flex: 1; padding: 8px 4px; }
.me-app :focus-visible, .me-modal :focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }

/* Cuerpo */
.me-body { flex: 1; min-height: 0; display: flex; position: relative; }
.me-rail { flex: none; width: 82px; display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; background: var(--bg-card); border-right: 1px solid var(--line); }
.me-rail button { border: 0; background: transparent; color: var(--text-secondary, inherit); border-radius: 12px; padding: 10px 2px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; cursor: pointer; }
.me-rail button i { font-size: 1.12rem; }
.me-rail button:hover { background: var(--soft); }
.me-rail button.on { background: color-mix(in srgb, var(--ac) 14%, transparent); color: var(--ac); }
.me-panel { flex: none; width: 344px; overflow-y: auto; background: var(--bg-card); border-right: 1px solid var(--line); padding: 16px 16px 40px; scrollbar-width: thin; }
.me-panel h2 { font: 800 1.08rem 'Outfit', sans-serif; margin: 0 0 4px; letter-spacing: -.01em; }
.me-panel h3 { font: 700 .82rem 'Plus Jakarta Sans', sans-serif; margin: 20px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.me-hint { font-size: .78rem; color: var(--text-muted); line-height: 1.45; margin: 0 0 10px; }
.me-f { display: block; margin: 0 0 10px; }
.me-f > span, .me-lab { display: flex; justify-content: space-between; font-size: .76rem; font-weight: 700; color: var(--text-secondary, inherit); margin-bottom: 5px; }
.me-f output { font-weight: 600; color: var(--text-muted); }
.me-in, .me-panel select, .me-panel textarea, .me-dialog select, .me-dialog textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-main); color: var(--text-primary); font: 500 .88rem 'Plus Jakarta Sans', sans-serif; padding: 10px 12px; }
.me-panel textarea { resize: vertical; min-height: 74px; line-height: 1.45; }
.me-in:focus, .me-panel select:focus, .me-panel textarea:focus { outline: 0; border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 18%, transparent); }
.me-row { display: flex; gap: 8px; } .me-row > * { flex: 1; min-width: 0; }
.me-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: .84rem; font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--line); }
.me-sw:last-child { border-bottom: 0; }
.me-sw small { display: block; font-weight: 500; font-size: .74rem; color: var(--text-muted); margin-top: 1px; }
.me-sw input { appearance: none; flex: none; width: 40px; height: 23px; border-radius: 20px; background: color-mix(in srgb, var(--text-primary) 22%, transparent); position: relative; cursor: pointer; transition: background .18s; margin: 0; }
.me-sw input::after { content: ''; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .18s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.me-sw input:checked { background: var(--ac); } .me-sw input:checked::after { transform: translateX(17px); }
.me-panel input[type=range], .me-dock input[type=range] { width: 100%; accent-color: var(--ac); margin: 0; height: 22px; }
.me-color { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px 5px 5px; font-size: .78rem; font-weight: 600; cursor: pointer; min-width: 0; }
.me-color input { appearance: none; -webkit-appearance: none; width: 30px; height: 30px; border: 0; padding: 0; border-radius: 7px; background: none; cursor: pointer; flex: none; }
.me-color input::-webkit-color-swatch-wrapper { padding: 0; } .me-color input::-webkit-color-swatch { border: 1px solid rgba(128, 128, 128, .4); border-radius: 7px; }
.me-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .me-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .me-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.me-wide { width: 100%; box-sizing: border-box; }
.me-ai { width: 100%; height: 46px; font-size: .95rem; }
.me-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.me-chip { border: 1px solid var(--line); background: transparent; color: var(--text-secondary, inherit); border-radius: 999px; padding: 6px 11px; font-size: .76rem; font-weight: 600; cursor: pointer; }
.me-chip:hover { background: var(--soft); } .me-chip.on { background: var(--ac); border-color: var(--ac); color: #fff; }
.me-empty { border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px; font-size: .8rem; color: var(--text-muted); line-height: 1.45; text-align: center; }

/* Subtemas */
.me-subs { display: flex; flex-direction: column; gap: 6px; }
.me-sub { display: grid; grid-template-columns: 46px 1fr 30px; align-items: center; gap: 8px; padding: 5px; border-radius: 12px; border: 1px solid transparent; }
.me-sub:hover { background: var(--soft); } .me-sub.on { border-color: var(--ac); }
.me-sub .th { width: 46px; height: 38px; border-radius: 8px; border: 1px dashed var(--line); background: var(--bg-main) center/cover; color: var(--text-muted); font-size: .72rem; font-weight: 700; cursor: pointer; padding: 0; }
.me-sub .th.has { border-style: solid; color: transparent; }
.me-sub input { border: 0; background: transparent; color: var(--text-primary); font: 600 .85rem 'Plus Jakarta Sans', sans-serif; padding: 6px 2px; min-width: 0; width: 100%; }
.me-sub input:focus { outline: 0; box-shadow: 0 1.5px 0 var(--ac); }
.me-sub .st { font-size: .72rem; color: var(--text-muted); text-align: center; } .me-sub .st.ok { color: #16a34a; }

/* Miniaturas de formato y estilo */
.me-fmt { border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-main); padding: 8px 8px 6px; cursor: pointer; color: var(--text-secondary, inherit); font-size: .68rem; font-weight: 600; text-align: center; line-height: 1.2; display: flex; flex-direction: column; gap: 6px; }
.me-fmt svg { width: 100%; height: auto; display: block; } .me-fmt svg rect { fill: color-mix(in srgb, var(--text-primary) 24%, transparent); }
.me-fmt:hover { border-color: color-mix(in srgb, var(--ac) 60%, transparent); } .me-fmt.on { border-color: var(--ac); color: var(--ac); } .me-fmt.on svg rect { fill: var(--ac); }
.me-pre { border: 2px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0; background: var(--bg-main); cursor: pointer; color: var(--text-primary); font-size: .74rem; font-weight: 700; text-align: left; }
.me-pre.on { border-color: var(--ac); } .me-pre:hover { border-color: color-mix(in srgb, var(--ac) 60%, transparent); }
.me-pre .pv { display: block; height: 78px; position: relative; overflow: hidden; } .me-pre .pv > span { position: absolute; }
.me-pre .nm { display: block; padding: 6px 9px 7px; background: var(--bg-card); }
.me-pal { border: 2px solid transparent; border-radius: 10px; padding: 0; height: 34px; cursor: pointer; overflow: hidden; display: flex; box-shadow: inset 0 0 0 1px var(--line); } .me-pal i { flex: 1; } .me-pal.on { border-color: var(--ac); }
.me-pat { border: 1.5px solid var(--line); border-radius: 9px; height: 46px; cursor: pointer; background-color: #fff; background-position: center; padding: 0; } .me-pat.on { border-color: var(--ac); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ac) 30%, transparent); }
.me-pat.none { background: linear-gradient(to top right, transparent 48.5%, #ef4444 49%, #ef4444 51%, transparent 51.5%), #fff; }
.me-step { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; } .me-step b { min-width: 24px; text-align: center; font-size: .9rem; }

/* Mesa de trabajo */
.me-desk { flex: 1; min-width: 0; position: relative; overflow: auto; background: color-mix(in srgb, var(--bg-main) 88%, #64748b 12%); }
.me-pages { display: flex; flex-wrap: nowrap; justify-content: safe center; align-items: flex-start; gap: 26px; padding: 34px 30px 104px; min-width: min-content; min-height: 100%; box-sizing: border-box; }
.me-pages.col { flex-direction: column; align-items: center; justify-content: flex-start; }
.me-sheet { position: relative; flex: none; }
.me-sheet > .me-sl { position: absolute; left: 2px; top: -24px; font-size: .76rem; font-weight: 700; color: var(--text-secondary, inherit); display: flex; gap: 8px; }
.me-sheet > .me-sl em { font-style: normal; font-weight: 500; color: var(--text-muted); }
.me-scale { transform-origin: 0 0; box-shadow: 0 10px 34px rgba(15, 23, 42, .24); position: absolute; left: 0; top: 0; }
.me-scale .mh-cell { cursor: pointer; }
.me-scale .mh-cell:hover { outline: .5mm solid color-mix(in srgb, var(--ac) 55%, transparent); outline-offset: .2mm; }
.me-scale .mh-cell.me-sel { outline: .8mm solid var(--ac); outline-offset: .3mm; z-index: 5; }
.me-scale .mh-cell.me-drop { outline: 1mm dashed var(--ac); outline-offset: .2mm; }
.me-scale [data-e] { cursor: text; outline: 0; } .me-scale [data-e]:focus { box-shadow: 0 0 0 .5mm var(--ac); border-radius: .6mm; }
.me-scale .mh-cap:empty, .me-scale .mh-tit:empty { display: block; min-height: 3.4mm; }
.me-scale [data-e=cap]:empty::before { content: 'Título'; opacity: .38; } .me-scale [data-e=text]:empty::before { content: 'Escribe el texto o pídeselo a Doc AI'; opacity: .38; font-size: 8pt; }
.me-scale [data-e=title]:empty::before { content: 'Título de la monografía'; opacity: .4; }
.me-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6mm; text-align: center; padding: 2mm; color: color-mix(in srgb, var(--pink, #334155) 62%, transparent); font: 600 7.5pt 'Plus Jakarta Sans', sans-serif; line-height: 1.2; overflow: hidden; }
.me-ph i { font-size: 13pt; opacity: .7; }
.me-scale.panning .mh-pic { cursor: grabbing; }
.me-busy .mh-body { animation: me-pulse 1.1s ease-in-out infinite alternate; } @keyframes me-pulse { to { opacity: .35; } }
.me-zoom { position: fixed; right: 16px; bottom: 14px; display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 2px; box-shadow: 0 6px 18px rgba(15, 23, 42, .14); z-index: 18; }
.me-zoom #me-zoomv { border: 0; background: transparent; color: var(--text-primary); font-weight: 700; font-size: .78rem; min-width: 50px; cursor: pointer; }

/* Herramientas de la celda elegida */
.me-dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 6px 8px; box-shadow: 0 12px 34px rgba(15, 23, 42, .24); z-index: 20; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; animation: me-up .2s var(--ease); }
@keyframes me-up { from { opacity: 0; transform: translate(-50%, 8px); } }
.me-dock .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; flex: none; }
.me-dock .me-btn { height: 34px; padding: 0 11px; font-size: .8rem; flex: none; } .me-dock label { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; flex: none; width: 128px; }
.me-dock .ttl { font-weight: 800; font-size: .78rem; padding: 0 6px; white-space: nowrap; flex: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* Progreso de Doc AI */
.me-prog { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; font-size: .82rem; } .me-prog b { display: block; margin-bottom: 8px; }
.me-prog div { height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; } .me-prog div i { display: block; height: 100%; background: var(--ac); border-radius: 6px; transition: width .5s var(--ease); }
.me-warn { border-radius: 12px; padding: 10px 12px; font-size: .78rem; line-height: 1.45; background: color-mix(in srgb, #f59e0b 14%, transparent); margin: 10px 0; }
.me-warn i { color: #d97706; margin-right: 4px; } .me-warn a { color: inherit; text-underline-offset: 2px; }

/* Ventanas */
.me-modal { position: fixed; inset: 0; background: rgba(8, 15, 30, .58); z-index: 100; display: grid; place-items: center; padding: 16px; }
.me-dialog { background: var(--bg-card); color: var(--text-primary); border-radius: 20px; width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; box-sizing: border-box; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); --ac: var(--color-primary, #2563eb); --line: var(--border-card, rgba(148, 163, 184, .3)); --soft: color-mix(in srgb, var(--text-primary) 6%, transparent); font-family: 'Plus Jakarta Sans', sans-serif; }
.me-dialog.sm { width: min(520px, 100%); } .me-dialog h2 { font: 800 1.3rem 'Outfit', sans-serif; margin: 0 0 4px; padding-right: 40px; letter-spacing: -.02em; }
.me-dialog .x { position: sticky; float: right; top: 0; margin: -8px -8px 0 0; }
.me-dialog p { font-size: .88rem; line-height: 1.5; color: var(--text-secondary, inherit); margin: 4px 0 14px; }
.me-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.me-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-top: 12px; min-height: 120px; }
.me-imgs button { border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; padding: 0; background: var(--bg-main) center/cover; cursor: pointer; position: relative; } .me-imgs button:hover { outline: 3px solid var(--ac); }
.me-imgs button span { position: absolute; left: 0; right: 0; bottom: 0; font-size: .62rem; padding: 12px 6px 4px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-top: 14px; }
.me-doc { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-main); position: relative; } .me-doc > button.op { display: block; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.me-doc .pic { height: 118px; background: #fff center/cover; border-bottom: 1px solid var(--line); overflow: hidden; position: relative; } .me-doc .pic .mh-page { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
.me-doc .nm { padding: 8px 10px; font-weight: 700; font-size: .82rem; line-height: 1.25; } .me-doc .nm small { display: block; font-weight: 500; color: var(--text-muted); font-size: .72rem; margin-top: 2px; }
.me-doc .del { position: absolute; right: 6px; top: 6px; background: rgba(15, 23, 42, .6); color: #fff; width: 30px; height: 30px; }
.me-duplex { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 12px 0; font-size: .86rem; line-height: 1.45; } .me-duplex svg { flex: none; width: 92px; height: auto; color: var(--ac); }
.me-opts { display: grid; gap: 8px; } .me-opt { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: transparent; color: inherit; text-align: left; font-size: .9rem; font-weight: 700; width: 100%; } .me-opt small { display: block; font-weight: 500; color: var(--text-muted); font-size: .78rem; margin-top: 1px; } .me-opt i { font-size: 1.1rem; color: var(--ac); width: 24px; text-align: center; } .me-opt:hover { border-color: var(--ac); }
.me-toast { position: fixed; left: 50%; top: 66px; transform: translate(-50%, -12px); background: #0f172a; color: #fff; border-radius: 12px; padding: 11px 18px; font: 600 .86rem 'Plus Jakarta Sans', sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; max-width: calc(100vw - 32px); text-align: center; } .me-toast.on { opacity: 1; transform: translate(-50%, 0); }
.me-drag { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: color-mix(in srgb, var(--ac) 18%, rgba(8, 15, 30, .35)); pointer-events: none; color: #fff; font: 800 1.3rem 'Outfit', sans-serif; }

@media (max-width: 1240px) { .me-panel { width: 312px; } .me-top .me-btn:not(.me-primary) span { display: none; } .me-top .me-btn:not(.me-primary) { padding: 0 12px; } .me-saved { display: none; } }
@media (max-width: 760px) {
  .me-top { overflow-x: auto; scrollbar-width: none; padding: 6px 8px; gap: 6px; } .me-top > * { flex: none; } .me-flex { display: none; } .me-name { width: 130px; } .me-top .me-primary span { display: none; }
  .me-body { flex-direction: column-reverse; } .me-rail { width: auto; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; } .me-rail button { flex: 1; padding: 7px 0; min-height: 48px; }
  .me-panel { position: absolute; left: 0; right: 0; bottom: 58px; width: auto; max-height: 56%; border-right: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; z-index: 25; box-shadow: 0 -14px 34px rgba(15, 23, 42, .22); } .me-panel.closed { display: none; }
  .me-pages { padding: 32px 12px 90px; } .me-zoom { display: none; } .me-dock { bottom: 70px; left: 8px; right: 8px; transform: none; max-width: none; animation: none; } .me-in, .me-panel select, .me-panel textarea, .me-sub input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .me-app *, .me-modal * { animation: none !important; transition: none !important; } }

/* ---------- Vista: "Una hoja" / "Lado a lado" con interruptor deslizante ---------- */
.me-vtog { position: relative; display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; isolation: isolate; }
.me-vtog button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--text-secondary, inherit); font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; width: 118px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: color .25s; }
.me-vtog button.on { color: var(--text-primary); }
.me-vthumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: 118px; border-radius: 999px; background: var(--bg-card); box-shadow: 0 1px 4px rgba(15, 23, 42, .18); transition: transform .3s cubic-bezier(.3, .9, .3, 1.15); }
.me-vtog.is-side .me-vthumb { transform: translateX(118px); }
.me-sheet .me-sl b { font-weight: 600; opacity: .75; }
/* flechas de "Una hoja" */
.me-flip { display: none; position: fixed; bottom: 22px; z-index: 15; align-items: center; gap: 10px; border: 0; cursor: pointer;
    padding: 12px 14px; border-radius: 16px; background: var(--color-primary, #4f46e5); color: #fff; font: 800 .86rem 'Outfit', sans-serif; text-align: left;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .28); }
.me-flip small { display: block; font-weight: 600; font-size: .7rem; opacity: .85; }
.me-flip i { font-size: 1.1rem; }
.me-flip-next, .me-flip-prev { right: 18px; }
.me-flip:hover { filter: brightness(1.08); }
.me-desk { position: relative; }
.me-desk[data-view="front"] .me-flip-next, .me-desk[data-view="back"] .me-flip-prev { display: inline-flex; }
/* el zoom ya no flota sobre la hoja: va en la barra de arriba */
.me-top .me-zoom { position: static !important; box-shadow: none; margin-left: 6px; }
.me-sheet .me-sl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Versión gratuita: solo color (Estilo) y acomodo (Formato) ---------- */
html.me-gratis .me-dock, html.me-gratis [data-act=share], html.me-gratis [data-act=mine], html.me-gratis [data-act=download] { display: none !important; }
html.me-gratis #me-rail button:not([data-tab=formato]):not([data-tab=estilo]) { position: relative; opacity: .65; }
html.me-gratis #me-rail button:not([data-tab=formato]):not([data-tab=estilo])::after { content: '\f023'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 6px; right: 10px; font-size: .6rem; color: #f59e0b; }
html.me-gratis #me-name { pointer-events: none; }
.me-up { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 5px; font-size: .9rem; line-height: 1.4; }
